skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
1How It Works & Mechanism
Meta-skill: A guide on "how to create a skill" in itself, with its core deliverables being a set of process specifications + three local Python tools.
Skill creation involves these steps:
Primary principle is "conciseness": The context window is a shared resource; only provide information that the model does not already know.
The context window is a public good.
Select degrees of freedom based on task fragility: Use text instructions (high freedom) for variable scenarios, and parameterized scripts (low freedom) for fragile workflows.
**High freedom (text-based instructions)**: Use when multiple approaches are valid, decisions depend on context, or heuristics guide the approach.
Specifies skill directory anatomy: Required SKILL.md (frontmatter + body), optional scripts/references/assets resource directories.
Every skill consists of a required SKILL.md file and optional bundled resources:
Progressive disclosure with three-level loading: Metadata is always in context, the body loads upon trigger, and resources load on demand.
Skills use a three-level loading system to manage context efficiently:
Step 3 uses init_skill.py to generate the template directory (SKILL.md + sample files in scripts/references/assets).
scripts/init_skill.py <skill-name> --path <output-directory>
Step 5 uses package_skill.py to validate before packaging into a .skill (zip format) file.
scripts/package_skill.py <path/to/skill-folder>
Explicitly forbids including miscellaneous docs like README/INSTALLATION_GUIDE/CHANGELOG to prevent context pollution.
Do NOT create extraneous documentation or auxiliary files, including:
2Core Capabilities
3External Dependencies
| Kind | Dependency / Endpoint |
|---|---|
| cli | python3 |
| package | PyYAML(解析 frontmatter) |
4Recommended Governance & Evidence
- scripts/: Execute local script or command: scripts/init_skill.py
- 本地工作目录: File read/write and artifact output: Create skill directory and SKILL.md
5Second-Pass Verification
- [ok] 文件面核对 — §1 共 7 个文件:SKILL.md、LICENSE.txt、2 个 references、3 个 scripts,与 internal_assets 一致。
- [ok] 脚本执行真伪 — §3「执行外部程序」无命中(脚本由模型按 SKILL.md 指示调用);三个脚本源码实读确认存在。
- [ok] 凭证读取反例 — §3 两条凭证命中经回原文核对为 SKILL.md 的 'challenge each' 文本与示例 'token validation middleware',非 env/凭据读取,故 credential_reads 判空。
- [ok] 写盘复核 — §3 写盘 10 条命中 init_skill.py(mkdir/write_text/chmod)与 package_skill.py(mkdir/zipf.write),与 file_writes 一致。
- [ok] 网络与注入面 — §3 无 URL、无网络请求命中;注入面仅剩用户输入经 yaml.safe_load 解析的语义校验缺口(设计边界)。
- [ok] 档位判定复核 — 本地脚本 + 本地读写、无网络无凭证 → 🔵 blue 成立。
6Verdict & Scenarios
0b2639ac219971bd…