with one click
skill-patterns
// Expertise in designing Claude Code skills. Use when creating new skills, refining existing ones, designing skill templates, or understanding how skills work.
// Expertise in designing Claude Code skills. Use when creating new skills, refining existing ones, designing skill templates, or understanding how skills work.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | skill-patterns |
| description | Expertise in designing Claude Code skills. Use when creating new skills, refining existing ones, designing skill templates, or understanding how skills work. |
| title | Skill Patterns |
| stratum | 2 |
| branches | ["agentic"] |
Expertise in designing Claude Code skills. Load this skill when creating new skills or refining existing ones.
A skill is passive expertise that Claude discovers and uses when relevant. Skills inform; they don't execute.
| Aspect | Description |
|---|---|
| Trigger | Claude determines relevance from YAML description |
| Action | Content loads into context |
| Scope | Runs in main context (not isolated) |
| Purpose | Provide expertise, patterns, conventions |
Skills MUST be in a subdirectory with SKILL.md file:
.claude/skills/
āāā my-skill/ # Subdirectory required!
āāā SKILL.md # Must be named SKILL.md
SKILL.md MUST have YAML frontmatter:
---
name: my-skill
description: What this skill does AND when Claude should use it. Be specific about trigger contexts.
---
# Skill Content
[The expertise content here]
IMPORTANT: The old ## Activation Keywords section is NOT a real Claude Code feature. It was a documentation convention that doesn't actually work. Skills are discovered via the description field in YAML frontmatter.
---
name: [skill-name]
description: [What this skill provides AND when to use it. Include trigger contexts.]
---
# [Skill Name]
## Purpose
One-sentence description of what expertise this provides.
---
## Core Knowledge
[The main content - patterns, rules, templates, etc.]
---
## Usage Patterns
[How to apply this knowledge]
---
## Anti-Patterns
[What NOT to do]
---
## Related Skills
- `related-skill` ā Brief description
The description field is HOW Claude discovers your skill. Write it well.
| Good | Why |
|---|---|
| "Expertise in Python testing patterns including pytest, fixtures, mocking. Use when user asks about testing, pytest, fixtures, or test coverage." | Clear what + when |
| "SEACOW meta-framework for organizational design. Use when designing structures, asking 'where should this go', or creating conventions." | Clear domain + triggers |
| "Provides test conventions for this workspace. Use when user asks about test conventions, testing patterns, or verification methods." | Specific to workspace + clear triggers |
| Bad | Why |
|---|---|
| "Helps with testing" | Too vague, when? |
| "Python stuff" | No trigger context |
| "test, pytest, fixture, mock" | Just keywords, no context |
Skills should practice progressive disclosure:
| Size | Lines | Use Case |
|---|---|---|
| Micro | <100 | Single concept, quick reference |
| Standard | 100-300 | Domain expertise, patterns |
| Large | 300-500 | Complex domain, many rules |
| Split | 500+ | Break into multiple skills |
If a skill exceeds 500 lines, consider:
## See Also for deep dives| Skill Type | Location |
|---|---|
| Meta (building skills/agents) | /.claude/skills/skill-name/SKILL.md |
| Domain expertise | /.claude/skills/domain-name/SKILL.md |
| Project-specific | /project/.claude/skills/skill-name/SKILL.md |
---
name: [domain]-conventions
description: [What expertise this provides AND when Claude should use it. Be specific about trigger contexts.]
---
# [Domain] Conventions
## Purpose
[One sentence: what expertise this provides]
---
## Quick Reference
| Concept | Rule |
|---------|------|
| [Concept 1] | [Brief rule] |
| [Concept 2] | [Brief rule] |
---
## Core Patterns
### [Pattern 1]
[Description and example]
### [Pattern 2]
[Description and example]
---
## Usage Examples
### Example: [Scenario]
[Code or content example]
---
## Anti-Patterns
| Don't | Do Instead |
|-------|------------|
| [Bad practice] | [Good practice] |
---
## Related Skills
- `[skill-name]` ā [Brief purpose]
| Don't | Do Instead |
|---|---|
| Put skill.md directly in skills/ folder | Use subdirectory: skills/name/SKILL.md |
| Use "## Activation Keywords" section | Use YAML description field |
| Vague description ("helps with code") | Specific what + when description |
| Massive monolithic skills | Split into focused sub-skills |
| Duplicate content from other skills | Reference other skills |
| Include execution logic | Skills inform, agents execute |
skills: fieldskills/name/SKILL.md format?name and description?If you have skills using the old format (direct .md file with ## Activation Keywords):
mkdir .claude/skills/skill-name/mv skill-name.md skill-name/SKILL.mdname and description## Activation Keywords sectionseacow-conventions ā SEACOW framework for placementagent-patterns ā How agents use skills