一键导入
creating-skills
How to create Claude Code skills for this project. Use when adding new skills, creating SKILL.md files, or setting up skill directories.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
How to create Claude Code skills for this project. Use when adding new skills, creating SKILL.md files, or setting up skill directories.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Flow workspace management — commands, state format, rendering, and PRs. Load this skill at the start of every session.
How to create pull requests for this project. Use when opening a PR on GitHub.
How to add new CLI commands to flow. Use when creating a new subcommand, adding flags, or modifying the command tree.
Testing conventions and patterns for this project. Use when writing tests, creating mocks, or understanding the test infrastructure.
How to update documentation for this project. Covers updating the root README, creating and updating VHS tape recordings, running gendocs, and the make commands that tie it together.
How to write PRDs for this project. Use when creating a new product requirement document, planning a feature, or adding to docs/prd/.
| name | creating-skills |
| description | How to create Claude Code skills for this project. Use when adding new skills, creating SKILL.md files, or setting up skill directories. |
| disable-model-invocation | true |
Skills are stored in .claude/skills/<skill-name>/SKILL.md and extend what Claude can do in this project.
Each skill is a directory with SKILL.md as the entrypoint:
.claude/skills/<skill-name>/
├── SKILL.md # Main instructions (required)
├── reference.md # Detailed docs (optional, loaded when needed)
├── examples.md # Example output (optional)
└── scripts/
└── helper.sh # Script Claude can execute (optional)
Every SKILL.md has two parts: YAML frontmatter and markdown content.
---
name: my-skill
description: What this skill does and when to use it
---
Your instructions here...
All fields are optional. Only description is recommended.
| Field | Default | Description |
|---|---|---|
name | dir name | Display name. Lowercase, numbers, hyphens only (max 64 chars). Becomes the /slash-command. |
description | 1st paragraph | What the skill does and when to use it. Claude uses this to decide when to load it. |
argument-hint | — | Hint for autocomplete, e.g. [issue-number]. |
disable-model-invocation | false | true = only user can invoke via /name. Prevents Claude from auto-loading. |
user-invocable | true | false = hidden from / menu. Only Claude can invoke. Use for background knowledge. |
allowed-tools | — | Tools Claude can use without asking permission, e.g. Read, Grep, Glob. |
model | — | Model override when skill is active. |
context | — | fork = run in isolated subagent context. |
agent | — | Subagent type when context: fork. Options: Explore, Plan, general-purpose, or custom. |
| Frontmatter | User can invoke | Claude can invoke |
|---|---|---|
| (default) | Yes | Yes |
disable-model-invocation: true | Yes | No |
user-invocable: false | No | Yes |
Use these in skill content for dynamic values:
$ARGUMENTS — all arguments passed when invoking$ARGUMENTS[N] or $N — specific argument by index (0-based)${CLAUDE_SESSION_ID} — current session IDThe ! backtick syntax runs shell commands before content is sent to Claude:
Current branch: !`git branch --show-current`
Recent commits: !`git log --oneline -5`
Reference skills — background knowledge Claude applies automatically:
---
name: api-conventions
description: API design patterns for this codebase
user-invocable: false
---
When writing API endpoints...
Task skills — actions invoked with /skill-name:
---
name: deploy
description: Deploy the application
disable-model-invocation: true
---
Deploy $ARGUMENTS to production:
1. Run tests
2. Build
3. Push
Keep SKILL.md under 500 lines. Move detailed reference material to separate files and reference them:
## Additional resources
- For complete API details, see [reference.md](reference.md)
- For usage examples, see [examples.md](examples.md)
mkdir -p .claude/skills/<skill-name>SKILL.md with frontmatter and instructionsdisable-model-invocation: true), or claude-only (user-invocable: false)/skill-name or ask Claude something that matches the description