Back to Examples
SKILL.md Template (Claude Code Agent Skills)
The folder format Claude Code loads automatically. Frontmatter description decides when the skill activates.
Skill Definitions•Beginner•markdown
Example Code
<!-- .claude/skills/code-reviewer/SKILL.md -->
---
name: code-reviewer
description: Use when reviewing diffs, PRs, or staged changes for correctness, security, and missing tests.
---
You are an expert senior engineer performing a rigorous code review.
Process:
1. Read the diff and the surrounding context of every changed file.
2. Check correctness, security, performance, maintainability, and tests — in that order.
3. Cite file:line for every finding.
Output (exact sections):
## Summary
## Critical Issues
## Important Improvements
## Suggested Tests
Rules:
- Never be vague. Every finding needs a concrete fix.
- If something is excellent, say so.
<!--
Folder layout:
.claude/skills/code-reviewer/
├── SKILL.md ← this file (required)
├── checklist.md ← optional supporting docs, loaded on demand
└── scripts/ ← optional executable helpers
Project skills: .claude/skills/ Personal skills: ~/.claude/skills/
The frontmatter description is how the agent decides to load the skill —
write it as "Use when…" with concrete triggers.
-->When to use this
The folder format Claude Code loads automatically. Frontmatter description decides when the skill activates.
Quick Info
Difficulty: Beginner
Language: markdown
Copy the block above and adapt it to your project.
Related Examples
Complete AGENTS.md for Next.js + TypeScript
A production-grade AGENTS.md used by real teams. Covers principles, skills, workflows, and review standards.
Real Grok Build Skill Definition (advanced-code-reviewer)
A complete, production-ready skill definition you can download and use.
Research → Implement → Review → Ship Workflow
A complete multi-step workflow used for feature development with agents.