Creates new Agent Skills for AI Agents following best practices and documentation. Use when the user wants prompts 'create a new skill ...' or 'use your meta skill to ...'.
Create new Agent Skills for AI Agents by following a structured workflow based on best practices and comprehensive documentation.
This skill helps you create new Agent Skills for Claude Code. Before starting, read the comprehensive documentation files in the docs/ directory for complete context.
Required Reading - Read these files in order before creating a skill:
What is a Skill?
SKILL.md file with YAML frontmatterThree Sources of Skills:
~/.claude/skills/ - Available across all your projects.claude/skills/ - Shared with team via gitProgressive Disclosure (3 Levels):
name and description in YAML frontmatterKey Principle: Only relevant content enters the context window at any time.
Ask the user these questions:
Document the answers for reference.
Create skills in the project's .claude/skills/ directory for team sharing:
mkdir -p .claude/skills/<skill-name>
Naming conventions:
processing-pdfs, analyzing-spreadsheets, managing-databaseshelper, utils, toolsNote: Project skills (.claude/skills/) are automatically shared with your team via git. For personal skills only you use, create in ~/.claude/skills/ instead.
Every skill must have:
---
name: Your Skill Name
description: Brief description of what this Skill does and when to use it
---
# Your Skill Name
## Instructions
[Clear, step-by-step guidance for Claude]
## Examples
[Concrete examples of using this Skill]
Frontmatter Requirements:
name: Required
processing-pdfs, analyzing-datadescription: Required, max 1024 characters
Optional Frontmatter (Claude Code only):
allowed-tools: Restrict which tools Claude can use (e.g., Read, Grep, Glob)Structure the instructions as:
Best Practices:
[reference.md](reference.md)Example workflow format:
### Workflow
1. **First step description**:
```bash
command to run
Second step description:
Third step...
#### Step 5: Write the Examples Section
Provide 2-4 concrete examples showing:
- Different use cases
- Various input formats
- Step-by-step execution
- Expected outcomes
**Example format:**
```markdown
### Example 1: Descriptive Title
User request:
User's exact request text
You would:
1. First action
2. Second action with command:
```bash
actual command
#### Step 6: Add Supporting Files (Optional)
If the skill needs additional context:
1. Create files alongside SKILL.md
2. Reference them from instructions: `[forms.md](forms.md)`
3. Use progressive disclosure - split by topic/scenario
**Common supporting file types:**
- Additional instructions (e.g., `advanced_usage.md`)
- Reference documentation (e.g., `api_reference.md`)
- Scripts in `scripts/` directory
- Templates in `templates/` directory
- Configuration examples
**Script guidelines:**
- Make executable: `chmod +x scripts/*.py`
- Add PEP 723 inline dependencies for Python scripts
- Include usage instructions in SKILL.md
- Return clear output for Claude to parse
#### Step 7: Test the Skill
1. Verify file structure:
```bash
ls -la .claude/skills/<skill-name>/
Check YAML frontmatter is valid:
head -10 .claude/skills/<skill-name>/SKILL.md
Test with relevant queries:
Iterate based on testing:
Since project skills are automatically shared with your team, commit them to git:
git add .claude/skills/<skill-name>
git commit -m "Add <skill-name> skill"
git push
Note: Team members will get the skill automatically when they pull the latest changes.
Description writing:
Instruction organization:
Skill scope:
File references:
[file.md](file.md) not absolute pathsscripts/helper.py ✓scripts\helper.py ✗Degrees of Freedom:
MCP Tool References:
ServerName:tool_nameBigQuery:bigquery_schema, GitHub:create_issuePattern 1: Transcription skill
Pattern 2: Morning debrief skill
Pattern 3: Meta-skill (this one)
User request:
Create a skill that reviews Python code for best practices
You would:
mkdir -p .claude/skills/python-code-review
---
name: reviewing-python-code
description: Reviews Python code for PEP 8 compliance, security issues, and performance. Use when reviewing Python code, checking code quality, or analyzing Python files.
allowed-tools: Read, Grep, Glob
---
User request:
Build a skill for analyzing CSV data with statistics and visualizations
You would:
mkdir -p .claude/skills/csv-analysis/scripts
mkdir -p .claude/skills/csv-analysis/templates
scripts/analyze.py - Statistical analysis scriptscripts/visualize.py - Chart generation scripttemplates/report_template.md - Output template# /// script
# requires-python = ">=3.10"
# dependencies = ["pandas", "matplotlib", "seaborn"]
# ///
User request:
Create a skill for writing technical documentation with our company's style guide
You would:
mkdir -p .claude/skills/tech-docs/{templates,examples,guidelines}
SKILL.md - Overview and workflowguidelines/style_guide.md - Company style rulesguidelines/api_docs.md - API documentation specificsguidelines/user_guides.md - User guide standardstemplates/api_template.md - API doc templatetemplates/guide_template.md - User guide templateexamples/ - Sample documentationUser request:
Add spell correction to our transcribe skill
You would:
cat .claude/skills/transcribe/SKILL.md
touch .claude/skills/transcribe/spell_corrections.md
# Spell Corrections
- "cloud code" → "claude code"
- "API" → "API" (ensure caps)
...
Creating skills is about packaging expertise into discoverable, composable capabilities. Follow these principles:
Skills transform general-purpose Claude into a specialist for your domain. Start small, test early, and expand as needed.
下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer