Skills System: Reusable AI Agent Capabilities
Skills are persistent markdown files that teach PocketPaw how to handle specific types of tasks. They’re loaded into the agent’s context on every interaction.
What is a Skill?
A skill is a SKILL.md file stored in ~/.claude/skills/ (the standard Claude SDK location). Each skill defines:
- When to activate — Trigger phrases or conditions
- How to execute — Step-by-step instructions
- What tools to use — Tool chains and sequences
- Output format — Expected response structure
Creating Skills
Via the Skill Generator Tool
The agent can create skills using the skill_gen tool:
User: Create a skill for writing daily standup summariesAgent: [uses skill_gen] → Created skill: daily-standup.mdManually
Create a markdown file in ~/.claude/skills/:
# Code Review Skill
## TriggerWhen the user asks to review code, a PR, or a diff.
## Steps1. Read the file or diff provided2. Analyze for: - Bug risks - Performance issues - Security concerns - Code style3. Provide structured feedback
## Output Format### SummaryBrief overall assessment.
### Issues Found- **[severity]** Description of issue (line X)
### Suggestions- Improvement suggestionsSkill Loading
Skills are loaded by the SkillLoader and injected by the AgentContextBuilder:
- On startup, all
*.mdfiles are scanned from three directories (in priority order):~/.agents/skills/— central skills (from skills.sh)~/.claude/skills/— Claude Code / SDK standard location~/.pocketpaw/skills/— PocketPaw-specific (legacy)
- Skill content is injected into the system prompt
- The agent uses skills as reference when handling matching requests
- After creating a new skill via
skill_gen, the loader is reloaded
When using the Claude Agent SDK backend, skills are also auto-discovered via setting_sources — the SDK natively reads SKILL.md files from ~/.claude/skills/ and .claude/skills/ (project-level).
Skill Directory
~/.claude/skills/├── daily-standup.md├── code-review.md├── meeting-notes.md└── git-workflow.mdBest Practices
- Keep skills focused — One skill per task type
- Be specific — Clear trigger conditions prevent false matches
- Include examples — Show the expected output format
- Reference tools — Specify which tools to use
- Test and iterate — Try the skill and refine it
Related
Context Building
How skills are loaded and injected into the agent’s context window.
Deep Work
Autonomous project execution that leverages skills for specialized tasks.
Cron Scheduler
Schedule recurring tasks that can trigger skill-based workflows.