Agent Skills
13 min read
Updated March 2026

9 Best Agent Skills Examples & Templates [2026]

Copy-ready SKILL.md templates for the most popular agent skills in 2026. Each example includes the full template, use case, and when to use it in Claude Code or Cursor.

Published on March 14, 2026 • Templates tested in Claude Code 2026

Quick Answer

The 9 best agent skills to start with: /commit (commit messages), /review-pr (code review), /test-runner (test generation), /deploy (deployment checklist), /refactor (code cleanup), /debug (bug hunting), /document (docs), /security-audit, and /migrate (DB migrations).

⏱️ TL;DR: Copy any template below into ~/.claude/skills/[name]/SKILL.md to start.

9 Agent Skills with Full SKILL.md Templates

1

Semantic Commit Writer

/commit
Git
Beginner

Analyzes staged changes and generates a conventional commit message with type, scope, and description.

Best for: Every developer who commits code daily. Saves 2-5 minutes per commit and enforces team standards automatically.

SKILL.md Template

---
name: commit
description: >
  Generate a semantic commit message from staged git changes.
  Use when user wants to commit or asks "what commit message should I write".
---
# Commit Skill
Analyze the staged diff and write a commit following conventional commits:
Format: type(scope): description
Types: feat, fix, docs, style, refactor, test, chore, perf
Rules: ≤72 chars subject, imperative mood, no period at end
Output: Just the commit message, ready to copy-paste.
2

PR Code Reviewer

/review-pr
Code Quality
Intermediate

Performs a structured code review covering correctness, security, performance, and style with severity ratings.

Best for: Teams wanting a consistent pre-human-review pass. Catches 60-80% of common issues before reviewers see the code.

SKILL.md Template

---
name: review-pr
description: >
  Perform a comprehensive code review. Use when user asks to review
  code, check a PR, or wants feedback on changes.
---
# PR Review Skill
Review the provided code/diff for:
1. Correctness: Logic errors, off-by-one, null safety
2. Security: OWASP Top 10, input validation, auth gaps
3. Performance: N+1 queries, unnecessary re-renders, memory leaks
4. Style: Naming, DRY, complexity
Format each issue: [SEVERITY] file:line — description — suggestion
Severity: CRITICAL / HIGH / MEDIUM / LOW / INFO
3

Test Suite Generator

/test-runner
Testing
Intermediate

Writes comprehensive unit tests for a given function or module, covering happy paths, edge cases, and error states.

Best for: Developers with untested legacy code or new functions. Reduces time-to-test from hours to minutes.

SKILL.md Template

---
name: test-runner
description: >
  Generate unit tests for functions or modules. Use when user asks to
  "write tests", "add test coverage", or "test this function".
---
# Test Runner Skill
Framework: Auto-detect (Jest/Vitest/pytest/Go test)
Write tests covering:
- Happy path (normal inputs)
- Edge cases (empty, null, boundary values)
- Error states (throws, rejects)
- Integration points (mocked dependencies)
Format: Full test file, importable and runnable
Include: describe blocks, setup/teardown, assertion messages
4

Deploy Checklist

/deploy
DevOps
Advanced

Guides through a pre-deployment checklist: environment check, migration review, rollback plan, and go/no-go decision.

Best for: Engineers deploying to staging or production. Reduces deployment incidents by ensuring nothing is missed.

SKILL.md Template

---
name: deploy
description: >
  Run a deployment checklist and guide through the deploy process.
  Use when user mentions deploying, shipping, or going to production.
---
# Deploy Skill
Pre-deployment checks:
1. All tests passing? (show test command)
2. Migrations reviewed? List any schema changes
3. Environment variables configured? List required vars
4. Dependencies updated? (npm audit / pip check)
5. Rollback plan: How to revert if something breaks
6. Monitoring: What to watch in the first 30 minutes
Output: Go/No-Go recommendation with specific blockers listed
5

Code Refactoring Assistant

/refactor
Code Quality
Intermediate

Analyzes messy code and rewrites it for clarity, performance, and modern patterns, explaining each change made.

Best for: Developers dealing with legacy codebases or rapid-prototyped code that needs cleanup before production.

SKILL.md Template

---
name: refactor
description: >
  Refactor code for clarity and quality. Use when user asks to clean up,
  improve, or refactor code, or says the code is messy/hard to read.
---
# Refactor Skill
Analyze the provided code and rewrite it following these priorities:
1. Readability: Clear naming, single responsibility, remove magic numbers
2. Maintainability: Extract functions >15 lines, add types, remove duplication
3. Performance: Identify O(n²) → O(n) opportunities, lazy loading, memoization
4. Modern patterns: Replace legacy patterns with current language idioms
Format: Before/After sections with explanation of each change
6

Step-by-Step Debugger

/debug
Debugging
Beginner

Walks through a bug systematically: reproducing the issue, forming hypotheses, isolating the cause, and writing the fix.

Best for: Developers stuck on a bug. The structured approach breaks analysis paralysis and finds root causes faster.

SKILL.md Template

---
name: debug
description: >
  Debug an issue step by step. Use when user is stuck on a bug,
  reports an error, or says "this isn't working" or "why is this broken".
---
# Debug Skill
Follow this debugging methodology:
1. Reproduce: What exact steps trigger the issue?
2. Observe: What IS happening vs. what SHOULD happen?
3. Hypothesize: List 3 most likely root causes, ranked by probability
4. Isolate: Suggest smallest test case to confirm each hypothesis
5. Fix: Write the specific code change with explanation
6. Verify: How to confirm the fix works and regression tests to add
7

API Documentation Writer

/document
Documentation
Beginner

Generates JSDoc, TSDoc, or OpenAPI documentation for functions, classes, and REST endpoints.

Best for: Any developer who hates writing docs. Auto-generates from code signatures and adds examples.

SKILL.md Template

---
name: document
description: >
  Generate documentation for code. Use when user asks to document,
  add comments, write docs, or generate JSDoc/TSDoc.
---
# Document Skill
Generate documentation based on what's provided:
- Functions/methods: JSDoc with @param, @returns, @throws, @example
- Classes: Class description, constructor, public methods
- REST endpoints: OpenAPI/Swagger format with request/response schemas
- Modules: Module-level overview with exports table
Quality bar: Each doc should answer "what does this do and how do I use it?"
8

Security Vulnerability Auditor

/security-audit
Security
Advanced

Scans code for OWASP Top 10 vulnerabilities, hardcoded secrets, and insecure patterns with remediation guidance.

Best for: Before merging any user-facing code. Catches injection, XSS, auth issues, and exposed secrets before they ship.

SKILL.md Template

---
name: security-audit
description: >
  Audit code for security vulnerabilities. Use when user asks about
  security, wants a security review, or is preparing to deploy.
---
# Security Audit Skill
Check for OWASP Top 10 + common issues:
1. Injection (SQL, NoSQL, command, LDAP)
2. Broken Authentication / Authorization
3. Sensitive Data Exposure (hardcoded secrets, logging PII)
4. XSS and CSRF vulnerabilities
5. Insecure Dependencies (list outdated packages)
6. Security Misconfiguration
Per finding: File:line, description, severity (Critical/High/Medium/Low), remediation code
9

Database Migration Helper

/migrate
Database
Advanced

Generates safe database migration scripts with rollback procedures for schema changes.

Best for: Backend developers making schema changes. Prevents data loss and provides a tested rollback path.

SKILL.md Template

---
name: migrate
description: >
  Generate database migration scripts. Use when user needs to change
  a schema, add columns, rename tables, or migrate data.
---
# Migrate Skill
For the described schema change, generate:
1. UP migration: SQL with forward migration
2. DOWN migration: SQL to completely reverse the change
3. Data migration: Script to transform existing rows if needed
4. Validation query: SELECT to verify migration succeeded
5. Estimated impact: Rows affected, lock time estimate, downtime risk
Target: PostgreSQL by default, flag if MySQL/SQLite syntax differs

How to Install These Agent Skills

Installing any of these skills takes under 60 seconds:

# Create skill directory (replace "commit" with your skill name)
mkdir -p ~/.claude/skills/commit

# Save the SKILL.md content
cat > ~/.claude/skills/commit/SKILL.md << 'EOF'
---
name: commit
description: >
  Generate a semantic commit message from staged changes.
---
# Commit Skill
[paste template content here]
EOF

# Verify it's discovered (type in Claude Code chat)
# /commit

For more installation options, see our complete Claude Code skills guide or browse the full verified catalog at mcpdirectory.app/skills.

Frequently Asked Questions

What are agent skills examples?

Agent skills examples are real SKILL.md files that demonstrate how to build specific AI coding workflows. They show the exact frontmatter format, instruction structure, and output expectations for skills like /commit, /review-pr, and /test-runner. You can copy them directly and customize for your stack.

Where can I find agent skills on GitHub?

Search GitHub for 'SKILL.md site:github.com claude code' to find thousands of examples. The OpenClaw organization (github.com/openclaw) maintains official starter packs. You can also browse the curated collection at mcpdirectory.app/skills for verified, reviewed skills.

How do I use agent skill templates?

Copy the SKILL.md content, create a directory at ~/.claude/skills/[skill-name]/ (global) or .claude/skills/[skill-name]/ (project), save the file there, and you're done. Type /skill-name in Claude Code to invoke it. Customize the instructions to match your team's standards.

What is the best agent skills repo to follow?

For general-purpose skills: openclaw/claude-skills-starter-pack. For full-stack development: vercel-labs/fullstack-claude-skills. For security-focused skills: devsecops-community/security-skills-collection. For a curated meta-list: anthropics-community/awesome-claude-code-skills.

Are agent skills free to use?

Yes. SKILL.md files are plain text and entirely free to use, copy, and modify. The skills themselves don't cost anything — you only pay for the underlying Claude API usage (which you're already paying for as a Claude Code user). Most community skills are MIT-licensed on GitHub.

Browse 50+ More Agent Skills

Explore the full catalog of verified agent skills at mcpdirectory.app — each with install instructions, ratings, and community reviews.