val1813/kwcode/typehint

Claude Code and agent skill by val1813/kwcode

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install val1813/kwcode/typehint

SKILL.md

领域知识

  • Python 3.10+用内置类型(list[str], dict[str, int], str | None),低版本用typing模块
  • Optional[X]等价于X | None,表示可能为None,不表示"可选参数"
  • 函数签名:所有公开函数标注参数类型和返回类型,内部函数可省略
  • 泛型:TypeVar定义类型变量,Generic[T]创建泛型类,bound限制上界
  • Protocol:结构化子类型(鸭子类型的静态版),定义接口不需要继承
  • TypedDict:字典的精确类型,每个key有独立类型,total=False允许可选key
  • Literal:限制值为几个字面量之一,如Literal["read", "write"]
  • Callable[[参数类型], 返回类型]标注回调函数,参数多时用Protocol替代
  • overload装饰器:同一函数不同参数组合返回不同类型时使用
  • TYPE_CHECKING:避免运行时循环导入,仅在类型检查时导入

经验规则(自动生成)

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
655
Repository forks
92
7-day trend score
32

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/val1813/kwcode/typehint/badge)](https://verified-skill.com/skills/val1813/kwcode/typehint)

Something wrong with this skill or its page? Tell us.