Use when creating new skills or understanding skill structure and conventions
Standard template and conventions for creating skills in .claude/skills/.
Create when:
Don't create for:
Each skill is a single SKILL.md file in its own folder. No supporting files.
---
name: category-specific-name
description: Use when [clear, actionable trigger]
---
Fields:
{category}-{specific-name} (e.g., frontend-query-hooks, supabase-migrations)frontend-*, supabase-*, general-*# ā
Good descriptions
description: Use when creating or using TanStack Query hooks for data fetching
description: Use when creating database migrations or modifying schema
# ā Bad descriptions
description: Query hooks guidelines # Not actionable
description: This skill contains... # Not a trigger
---
name: skill-name
description: Use when...
---
# Title
Brief introduction.
## Core Pattern/Convention
Primary guidelines and rules with code examples.
## Common Mistakes
- ā Wrong pattern ā ā
Correct pattern
## Related Skills
- **other-skill** - How it relates
<!-- Last compacted: YYYY-MM-DD -->
Best Practices:
.claude/skills/
āāā frontend-query-hooks/
ā āāā SKILL.md
āāā supabase-migrations/
ā āāā SKILL.md
āāā general-skill-making/
āāā SKILL.md
One folder, one file. The Skill tool only loads SKILL.md - supporting files are never read.
| Element | Pattern | Example |
|---|---|---|
| Skill name | {category}-{topic} |
frontend-query-hooks |
| Directory | Same as skill name | .claude/skills/frontend-query-hooks/ |
| File | SKILL.md (uppercase) |
Always SKILL.md |
# 1. Create directory
mkdir -p .claude/skills/frontend-form-validation
# 2. Create SKILL.md with frontmatter + content
Example:
---
name: frontend-form-validation
description: Use when implementing form validation with React Hook Form or custom validators
---
# Frontend: Form Validation
[All content here - no separate files]
<!-- Last compacted: 2026-01-15 -->
Skills are loaded via the Skill tool:
Skill("frontend-query-hooks");
The /s command extracts skill names/descriptions:
awk 'FNR<=10 && /^(name|description):/' .claude/skills/*/SKILL.md
Important: Only SKILL.md is loaded. Never create examples.md or reference.md - they won't be read.
/compact-skills