Skip to main content

🎯 Skills

Skills are domain-specific best practice workflows that encapsulate expert-level knowledge and processes.

What Are Skills?​

Skills are like expert recipes:

  • πŸ“ Code review skill - Knows what angles to review code from
  • πŸ§ͺ TDD skill - Masters the rhythm of Red-Green-Refactor
  • πŸ”’ Security audit skill - Understands common vulnerabilities and protections

Skill Categories​

πŸ” Code Analysis Skills​

SkillDescription
code-reviewMulti-dimensional code review
security-auditSecurity vulnerability scanning
performance-analysisPerformance bottleneck analysis
complexity-checkCode complexity checking

πŸ§ͺ Testing Skills​

SkillDescription
unit-test-designUnit test design
integration-testIntegration testing strategy
e2e-test-flowEnd-to-end test flows
coverage-analysisCoverage analysis

πŸ—οΈ Architecture Skills​

SkillDescription
system-designSystem architecture design
api-designAPI interface design
database-designDatabase design
microservicesMicroservice decomposition

πŸ“ Documentation Skills​

SkillDescription
api-documentationAPI documentation generation
code-commentsCode commenting standards
readme-generationREADME generation
changelogChangelog

Skill Workflow​

Taking the code review skill as an example:

Relationship Between Skills and Agents​

  • Agent = Expert role (e.g., "Code Reviewer")
  • Skill = Specific capabilities the expert has (e.g., "Security Audit")

An agent can have multiple skills:

code-reviewer agent
β”œβ”€β”€ code-review skill
β”œβ”€β”€ security-audit skill
β”œβ”€β”€ performance-analysis skill
└── best-practices skill

Custom Skills​

Create them in the ~/.claude/skills/ directory:

---
name: my-custom-skill
description: My custom skill
---

# My Custom Skill

## Workflow
1. Step one
2. Step two
3. Step three

## Checklist
- [ ] Check item 1
- [ ] Check item 2

πŸ’‘ Tip: Skills are composable β€” complex workflows can be built from multiple basic skills!