一键导入
writing-skills
Guide for creating new skills for the Claude Code foundation. Trigger when the user wants to create a skill, add a command, or extend the foundation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guide for creating new skills for the Claude Code foundation. Trigger when the user wants to create a skill, add a command, or extend the foundation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Multi-agent team orchestration with native Agent Teams. Trigger when the user wants to launch a team of agents, coordinate parallel work with inter-agent communication, or use swarm mode.
Perform a thorough code review. Use when the user requests a review, wants to verify code quality, or before merging a PR.
Context transfer between AI sessions. Trigger when the user wants to save the context, resume a task, or hand off the work to another session.
API mock configuration for tests. Trigger when the user wants to mock APIs, use MSW, or test without a backend.
Debug and resolve problems. Use when the user has a bug, an error, an unexpected behavior, or wants to understand why something is not working.
TDD development with Red-Green-Refactor cycle. Use to implement a feature by writing tests BEFORE the code. Trigger automatically when the user asks for TDD, wants to write tests first, mentions "test first", or asks to implement, add, create, fix, correct code, a new feature, a bugfix, or a functionality.
| name | writing-skills |
| description | Guide for creating new skills for the Claude Code foundation. Trigger when the user wants to create a skill, add a command, or extend the foundation. |
| allowed-tools | ["Read","Write","Edit","Glob","Grep"] |
| context | fork |
Framework for creating quality skills for the Claude Code foundation, respecting the existing conventions and structure.
.claude/skills/<skill-name>/
└── SKILL.md
---
name: my-skill
description: Clear description of the skill. Trigger when [activation context].
allowed-tools:
- Read
- Write # If the skill modifies files
- Edit # If the skill edits existing files
- Bash # If the skill executes commands
- Glob # File search
- Grep # Content search
context: fork # Always fork for isolation
---
# Skill Title
## Objective
[Clear description of what the skill does]
## Instructions
[Detailed instructions, structured in steps]
## Expected output
[Expected output format]
## Rules
[Mandatory rules for the skill]
All fields available in the YAML frontmatter of a skill:
| Field | Required | Description |
|---|---|---|
name | No | Skill name (default: folder name). Lowercase, digits, hyphens (max 64 chars) |
description | Recommended | What the skill does and when to use it. Claude uses this to decide when to load the skill |
allowed-tools | No | Tools authorized without permission prompt |
context | No | fork for execution in an isolated sub-agent |
model | No | Model to use: sonnet, opus, haiku, inherit (default: inherits from context) |
agent | No | Sub-agent type when context: fork (Explore, Plan, general-purpose, or custom agent) |
disable-model-invocation | No | true = manual invocation only (Claude cannot auto-load). Default: false |
user-invocable | No | false = invisible in the / menu (background skills). Default: true |
argument-hint | No | Autocompletion hint shown in the / menu. E.g.: [issue-number] or [filename] [format] |
hooks | No | Hooks scoped to the skill lifecycle (PreToolUse, PostToolUse, Stop) |
| Variable | Description |
|---|---|
$ARGUMENTS | All arguments passed to the skill |
$ARGUMENTS[N] | Argument by index (0-based) |
$N | Shortcut for $ARGUMENTS[N] |
${CLAUDE_SESSION_ID} | Current session ID |
Use the backtick-bang syntax to inject live data:
! followed by backtick then gh pr diff then backtickExample:
## PR Context
- Diff: !`gh pr diff`
- Files: !`gh pr diff --name-only`
supporting files)SLASH_COMMAND_TOOL_CHAR_BUDGET)examples/, scripts/, reference.md in the skill folderdisable-model-invocation: true for skills that should only be launched manually (e.g.: commit, PR, plan)user-invocable: false for context/background skills that Claude loads automatically (state-management, api-mocking)model: sonnet for complex skills requiring deep reasoning (debug, security, TDD, perf)argument-hint to guide the user on the expected parameters[ ] Valid YAML frontmatter (name, description, allowed-tools, context)
[ ] kebab-case name
[ ] Description with trigger context
[ ] Minimal necessary tools (principle of least privilege)
[ ] context: fork (isolation)
[ ] Clear objective in 1-2 sentences
[ ] Instructions structured as numbered steps
[ ] Relevant code examples
[ ] Expected output with template
[ ] Explicit rules and constraints
[ ] ASCII diagram if complex workflow
[ ] Actionable (not just informative)
[ ] Specific (not generic)
[ ] Testable (verifiable results)
[ ] Standalone (no dependency on other skills)
[ ] Consistent with the foundation's conventions
| Type | Convention | Examples |
|---|---|---|
| Dev skills | dev-* | dev-tdd, dev-debug, dev-api |
| QA skills | qa-* | qa-review, qa-security |
| Ops skills | ops-* | ops-docker, ops-ci |
| Doc skills | doc-* | doc-generate, doc-changelog |
| Growth skills | growth-* | growth-seo, growth-cro |
| Biz skills | biz-* | biz-model, biz-mvp |
| Legal skills | legal-* | legal-rgpd |
| Data skills | data-* | data-pipeline |
| Workflow skills | work-* | work-explore, work-plan |
| Meta skills | Descriptive name | parallel-agents, session-handoff |
1. ASCII workflow diagram (if applicable)
2. Numbered steps with subsections
3. Tables for quick references
4. Code blocks with specified language
5. "Expected output" section with template
6. "Rules" section with IMPORTANT/NEVER/YOU MUST
| Skill type | Recommended tools |
|---|---|
| Read-only (audit, review) | Read, Glob, Grep |
| Development | Read, Write, Edit, Bash, Glob, Grep |
| Infrastructure | Read, Write, Edit, Bash, Glob, Grep |
| Documentation | Read, Write, Edit, Glob, Grep |
| Analysis | Read, Glob, Grep |
.claude/commands/<domain>/<name>.md
Format: detailed prompt with $ARGUMENTS, workflow, expected output, related agents.
.claude/agents/<name>.md
Format: YAML frontmatter with model, permissionMode, disallowedTools, skills, hooks.
.claude/rules/<name>.md
Format: frontmatter with paths, contextual rules per file type.
1. IDENTIFY the need (which problem does this skill solve?)
2. NAME according to conventions (domain-action)
3. DEFINE the necessary tools (principle of least privilege)
4. WRITE the SKILL.md with the template
5. CREATE the associated command if manual invocation is needed
6. CREATE the associated agent if isolated execution is needed
7. TEST the skill (invoke it and verify the result)
8. DOCUMENT in CLAUDE.md (skills table)
context: fork for isolation