Create, manage, and share Skills to extend Claude's capabilities in Claude Code.
This guide shows you how to create, use, and manage Agent Skills in Claude Code. Skills are modular capabilities that extend Claude's functionality through organized folders containing instructions, scripts, and resources.
- Claude Code version 1.0 or later
- Basic familiarity with Claude Code
Agent Skills package expertise into discoverable capabilities. Each Skill consists of a SKILL.md file with instructions that Claude reads when relevant, plus optional supporting files like scripts and templates.
How Skills are invoked: Skills are model-invoked—Claude autonomously decides when to use them based on your request and the Skill's description. This is different from slash commands, which are user-invoked (you explicitly type /command to trigger them).
Benefits:
- Extend Claude's capabilities for your specific workflows
- Share expertise across your team via git
- Reduce repetitive prompting
- Compose multiple Skills for complex tasks
Learn more in the Agent Skills overview.
For a deep dive into the architecture and real-world applications of Agent Skills, read our engineering blog: [Equipping agents for the real world with Agent Skills](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills).Skills are stored as directories containing a SKILL.md file.
Personal Skills are available across all your projects. Store them in ~/.claude/skills/:
mkdir -p ~/.claude/skills/my-skill-nameUse personal Skills for:
- Your individual workflows and preferences
- Experimental Skills you're developing
- Personal productivity tools
Project Skills are shared with your team. Store them in .claude/skills/ within your project:
mkdir -p .claude/skills/my-skill-nameUse project Skills for:
- Team workflows and conventions
- Project-specific expertise
- Shared utilities and scripts
Project Skills are checked into git and automatically available to team members.
Skills can also come from Claude Code plugins. Plugins may bundle Skills that are automatically available when the plugin is installed. These Skills work the same way as personal and project Skills.
Create a SKILL.md file with YAML frontmatter and Markdown content:
---
name: your-skill-name
description: Brief description of what this Skill does and when to use it
---
# Your Skill Name
## Instructions
Provide clear, step-by-step guidance for Claude.
## Examples
Show concrete examples of using this Skill.Field requirements:
name: Must use lowercase letters, numbers, and hyphens only (max 64 characters)description: Brief description of what the Skill does and when to use it (max 1024 characters)
The description field is critical for Claude to discover when to use your Skill. It should include both what the Skill does and when Claude should use it.
See the best practices guide for complete authoring guidance including validation rules.
Create additional files alongside SKILL.md:
my-skill/
├── SKILL.md (required)
├── reference.md (optional documentation)
├── examples.md (optional examples)
├── scripts/
│ └── helper.py (optional utility)
└── templates/
└── template.txt (optional template)
Reference these files from SKILL.md:
For advanced usage, see [reference.md](reference.md).
Run the helper script:
```bash
python scripts/helper.py input.txt
```Claude reads these files only when needed, using progressive disclosure to manage context efficiently.
Use the allowed-tools frontmatter field to limit which tools Claude can use when a Skill is active:
---
name: safe-file-reader
description: Read files without making changes. Use when you need read-only file access.
allowed-tools: Read, Grep, Glob
---
# Safe File Reader
This Skill provides read-only file access.
## Instructions
1. Use Read to view file contents
2. Use Grep to search within files
3. Use Glob to find files by patternWhen this Skill is active, Claude can only use the specified tools (Read, Grep, Glob) without needing to ask for permission. This is useful for:
- Read-only Skills that shouldn't modify files
- Skills with limited scope (e.g., only data analysis, no file writing)
- Security-sensitive workflows where you want to restrict capabilities
If allowed-tools is not specified, Claude will ask for permission to use tools as normal, following the standard permission model.
Skills are automatically discovered by Claude from three sources:
- Personal Skills:
~/.claude/skills/ - Project Skills:
.claude/skills/ - Plugin Skills: bundled with installed plugins
To view all available Skills, ask Claude directly:
What Skills are available?
or
List all available Skills
This will show all Skills from all sources, including plugin Skills.
To inspect a specific Skill, you can also check the filesystem:
# List personal Skills
ls ~/.claude/skills/
# List project Skills (if in a project directory)
ls .claude/skills/
# View a specific Skill's content
cat ~/.claude/skills/my-skill/SKILL.mdAfter creating a Skill, test it by asking questions that match your description.
Example: If your description mentions "PDF files":
Can you help me extract text from this PDF?
Claude autonomously decides to use your Skill if it matches the request—you don't need to explicitly invoke it. The Skill activates automatically based on the context of your question.
If Claude doesn't use your Skill, check these common issues:
Too vague:
description: Helps with documentsSpecific:
description: Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.Include both what the Skill does and when to use it in the description.
Personal Skills: ~/.claude/skills/skill-name/SKILL.md
Project Skills: .claude/skills/skill-name/SKILL.md
Check the file exists:
# Personal
ls ~/.claude/skills/my-skill/SKILL.md
# Project
ls .claude/skills/my-skill/SKILL.mdInvalid YAML prevents the Skill from loading. Verify the frontmatter:
cat SKILL.md | head -n 10Ensure:
- Opening
---on line 1 - Closing
---before Markdown content - Valid YAML syntax (no tabs, correct indentation)
Run Claude Code with debug mode to see Skill loading errors:
claude --debugRecommended approach: Distribute Skills through plugins.
To share Skills via plugin:
- Create a plugin with Skills in the
skills/directory - Add the plugin to a marketplace
- Team members install the plugin
For complete instructions, see Add Skills to your plugin.
You can also share Skills directly through project repositories:
Create a project Skill:
mkdir -p .claude/skills/team-skill
# Create SKILL.mdgit add .claude/skills/
git commit -m "Add team Skill for PDF processing"
git pushWhen team members pull the latest changes, Skills are immediately available:
git pull
claude # Skills are now availableEdit SKILL.md directly:
# Personal Skill
code ~/.claude/skills/my-skill/SKILL.md
# Project Skill
code .claude/skills/my-skill/SKILL.mdChanges take effect the next time you start Claude Code. If Claude Code is already running, restart it to load the updates.
Delete the Skill directory:
# Personal
rm -rf ~/.claude/skills/my-skill
# Project
rm -rf .claude/skills/my-skill
git commit -m "Remove unused Skill"One Skill should address one capability:
Focused:
- "PDF form filling"
- "Excel data analysis"
- "Git commit messages"
Too broad:
- "Document processing" (split into separate Skills)
- "Data tools" (split by data type or operation)
Help Claude discover when to use Skills by including specific triggers in your description:
Clear:
description: Analyze Excel spreadsheets, create pivot tables, and generate charts. Use when working with Excel files, spreadsheets, or analyzing tabular data in .xlsx format.Vague:
description: For filesHave teammates use Skills and provide feedback:
- Does the Skill activate when expected?
- Are the instructions clear?
- Are there missing examples or edge cases?
You can document Skill versions in your SKILL.md content to track changes over time. Add a version history section:
# My Skill
## Version History
- v2.0.0 (2025-10-01): Breaking changes to API
- v1.1.0 (2025-09-15): Added new features
- v1.0.0 (2025-09-01): Initial releaseThis helps team members understand what changed between versions.
Symptom: You ask a relevant question but Claude doesn't use your Skill.
Check: Is the description specific enough?
Vague descriptions make discovery difficult. Include both what the Skill does and when to use it, with key terms users would mention.
Too generic:
description: Helps with dataSpecific:
description: Analyze Excel spreadsheets, generate pivot tables, create charts. Use when working with Excel files, spreadsheets, or .xlsx files.Check: Is the YAML valid?
Run validation to check for syntax errors:
# View frontmatter
cat .claude/skills/my-skill/SKILL.md | head -n 15
# Check for common issues
# - Missing opening or closing ---
# - Tabs instead of spaces
# - Unquoted strings with special charactersCheck: Is the Skill in the correct location?
# Personal Skills
ls ~/.claude/skills/*/SKILL.md
# Project Skills
ls .claude/skills/*/SKILL.mdSymptom: The Skill loads but doesn't work correctly.
Check: Are dependencies available?
Claude will automatically install required dependencies (or ask for permission to install them) when it needs them.
Check: Do scripts have execute permissions?
chmod +x .claude/skills/my-skill/scripts/*.pyCheck: Are file paths correct?
Use forward slashes (Unix style) in all paths:
Correct: scripts/helper.py
Wrong: scripts\helper.py (Windows style)
Symptom: Claude uses the wrong Skill or seems confused between similar Skills.
Be specific in descriptions: Help Claude choose the right Skill by using distinct trigger terms in your descriptions.
Instead of:
# Skill 1
description: For data analysis
# Skill 2
description: For analyzing dataUse:
# Skill 1
description: Analyze sales data in Excel files and CRM exports. Use for sales reports, pipeline analysis, and revenue tracking.
# Skill 2
description: Analyze log files and system metrics data. Use for performance monitoring, debugging, and system diagnostics.commit-helper/
└── SKILL.md
---
name: generating-commit-messages
description: Generates clear commit messages from git diffs. Use when writing commit messages or reviewing staged changes.
---
# Generating Commit Messages
## Instructions
1. Run `git diff --staged` to see changes
2. I'll suggest a commit message with:
- Summary under 50 characters
- Detailed description
- Affected components
## Best practices
- Use present tense
- Explain what and why, not howcode-reviewer/
└── SKILL.md
---
name: code-reviewer
description: Review code for best practices and potential issues. Use when reviewing code, checking PRs, or analyzing code quality.
allowed-tools: Read, Grep, Glob
---
# Code Reviewer
## Review checklist
1. Code organization and structure
2. Error handling
3. Performance considerations
4. Security concerns
5. Test coverage
## Instructions
1. Read the target files using Read tool
2. Search for patterns using Grep
3. Find related files using Glob
4. Provide detailed feedback on code qualitypdf-processing/
├── SKILL.md
├── FORMS.md
├── REFERENCE.md
└── scripts/
├── fill_form.py
└── validate.py
SKILL.md:
---
name: pdf-processing
description: Extract text, fill forms, merge PDFs. Use when working with PDF files, forms, or document extraction. Requires pypdf and pdfplumber packages.
---
# PDF Processing
## Quick start
Extract text:
```python
import pdfplumber
with pdfplumber.open("doc.pdf") as pdf:
text = pdf.pages[0].extract_text()
```
For form filling, see [FORMS.md](FORMS.md).
For detailed API reference, see [REFERENCE.md](REFERENCE.md).
## Requirements
Packages must be installed in your environment:
```bash
pip install pypdf pdfplumber
```Claude loads additional files only when needed.
Write Skills that Claude can use effectively Learn how Skills work across Claude products Use Skills programmatically with TypeScript and Python Create your first Skill