agent-skills

Production-grade engineering skills for AI coding agents.

86,642 stars JavaScript Markdown Skills API Spec #agent-skills#antigravity#claude-code#codex
AI Prompts & Specs

Repository: addyosmani/agent-skills


Stars: 16793

CLAUDE.md

agent-skills

This is the agent-skills project β€” a collection of production-grade engineering skills for AI coding agents.

Project Structure

text
skills/       β†’ Core skills (SKILL.md per directory)
agents/ β†’ Reusable agent personas (code-reviewer, test-engineer, security-auditor)
hooks/ β†’ Session lifecycle hooks
.claude/commands/ β†’ Slash commands (/spec, /plan, /build, /test, /review, /code-simplify, /ship)
references/ β†’ Supplementary checklists (testing, performance, security, accessibility)
docs/ β†’ Setup guides for different tools

Skills by Phase

Define: spec-driven-development
Plan: planning-and-task-breakdown
Build: incremental-implementation, test-driven-development, context-engineering, source-driven-development, frontend-ui-engineering, api-and-interface-design
Verify: browser-testing-with-devtools, debugging-and-error-recovery
Review: code-review-and-quality, code-simplification, security-and-hardening, performance-optimization
Ship: git-workflow-and-versioning, ci-cd-and-automation, deprecation-and-migration, documentation-and-adrs, shipping-and-launch

Conventions

- Every skill lives in skills/<name>/SKILL.md
- YAML frontmatter with name and description fields
- Description starts with what the skill does (third person), followed by trigger conditions ("Use when...")
- Every skill has: Overview, When to Use, Process, Common Rationalizations, Red Flags, Verification
- References are in references/, not inside skill directories
- Supporting files only created when content exceeds 100 lines

Commands

- npm test β€” Not applicable (this is a documentation project)
- Validate: Check that all SKILL.md files have valid YAML frontmatter with name and description

Boundaries

- Always: Follow the skill-anatomy.md format for new skills
- Never: Add skills that are vague advice instead of actionable processes
- Never: Duplicate content between skills β€” reference other skills instead


README.md

Agent Skills

Production-grade engineering skills for AI coding agents.

Skills encode the workflows, quality gates, and best practices that senior engineers use when building software. These ones are packaged so AI agents follow them consistently across every phase of development.

text
DEFINE          PLAN           BUILD          VERIFY         REVIEW          SHIP
β”Œβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”
β”‚ Idea β”‚ ───▢ β”‚ Spec β”‚ ───▢ β”‚ Code β”‚ ───▢ β”‚ Test β”‚ ───▢ β”‚ QA β”‚ ───▢ β”‚ Go β”‚
β”‚Refineβ”‚ β”‚ PRD β”‚ β”‚ Impl β”‚ β”‚Debug β”‚ β”‚ Gate β”‚ β”‚ Live β”‚
β””β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”˜
/spec /plan /build /test /review /ship

---

Commands

7 slash commands that map to the development lifecycle. Each one activates the right skills automatically.

| What you're doing | Command | Key principle |
|-------------------|---------|---------------|
| Define what to build | /spec | Spec before code |
| Plan how to build it | /plan | Small, atomic tasks |
| Build incrementally | /build | One slice at a time |
| Prove it works | /test | Tests are proof |
| Review before merge | /review | Improve code health |
| Simplify the code | /code-simplify | Clarity over cleverness |
| Ship to production | /ship | Faster is safer |

Skills also activate automatically based on what you're doing β€” designing an API triggers api-and-interface-design, building UI triggers frontend-ui-engineering, and so on.

---

Quick Start

<details>
<summary><b>Claude Code (recommended)</b></summary>

Marketplace install:

text
/plugin marketplace add addyosmani/agent-skills
/plugin install agent-skills@addy-agent-skills

SSH errors? The marketplace clones repos via SSH. If you don't have SSH keys set up on GitHub, either add your SSH key or switch to HTTPS for fetches only:

``bash

git config --global url."https://github.com/".insteadOf "[email protected]:"

`

Local / development:

bash
git clone https://github.com/addyosmani/agent-skills.git
claude --plugin-dir /path/to/agent-skills

</details>

<details>
<summary><b>Cursor</b></summary>

Copy any SKILL.md into .cursor/rules/, or reference the full skills/ directory. See docs/cursor-setup.md.

</details>

<details>
<summary><b>Gemini CLI</b></summary>

Install as native skills for auto-discovery, or add to GEMINI.md for persistent context. See docs/gemini-cli-setup.md.

Install from the repo:

bash
gemini skills install https://github.com/addyosmani/agent-skills.git --path skills

Install from a local clone:

bash
gemini skills install ./agent-skills/skills/

</details>

<details>
<summary><b>Windsurf</b></summary>

Add skill contents to your Windsurf rules configuration. See docs/windsurf-setup.md.

</details>

<details>
<summary><b>OpenCode</b></summary>

Uses agent-driven skill execution via AGENTS.md and the skill tool.

See docs/opencode-setup.md.

</details>

<details>
<summary><b>GitHub Copilot</b></summary>

Use agent definitions from agents/ as Copilot personas and skill content in .github/copilot-instructions.md. See docs/copilot-setup.md.

</details>

<details>
<summary><b>Kiro IDE & CLI </b></summary>
Skills for Kiro reside under ".kiro/skills/" and can be stored under Project or Global level. Kiro also supports Agents.md. See Kiro docs at https://kiro.dev/docs/skills/
</details>

<details>
<summary><b>Codex / Other Agents</b></summary>

Skills are plain Markdown - they work with any agent that accepts system prompts or instruction files. See docs/getting-started.md.

</details>

---

All 20 Skills

The commands above are the entry points. Under the hood, they activate these 20 skills β€” each one a structured workflow with steps, verification gates, and anti-rationalization tables. You can also reference any skill directly.

Define - Clarify what to build

| Skill | What It Does | Use When |
|-------|-------------|----------|
| idea-refine | Structured divergent/convergent thinking to turn vague ideas into concrete proposals | You have a rough concept that needs exploration |
| spec-driven-development | Write a PRD covering objectives, commands, structure, code style, testing, and boundaries before any code | Starting a new project, feature, or significant change |

Plan - Break it down

| Skill | What It Does | Use When |
|-------|-------------|----------|
| planning-and-task-breakdown | Decompose specs into small, verifiable tasks with acceptance criteria and dependency ordering | You have a spec and need implementable units |

Build - Write the code

| Skill | What It Does | Use When |
|-------|-------------|----------|
| incremental-implementation | Thin vertical slices - implement, test, verify, commit. Feature flags, safe defaults, rollback-friendly changes | Any change touching more than one file |
| test-driven-development | Red-Green-Refactor, test pyramid (80/15/5), test sizes, DAMP over DRY, Beyonce Rule, browser testing | Implementing logic, fixing bugs, or changing behavior |
| context-engineering | Feed agents the right information at the right time - rules files, context packing, MCP integrations | Starting a session, switching tasks, or when output quality drops |
| source-driven-development | Ground every framework decision in official documentation - verify, cite sources, flag what's unverified | You want authoritative, source-cited code for any framework or library |
| frontend-ui-engineering | Component architecture, design systems, state management, responsive design, WCAG 2.1 AA accessibility | Building or modifying user-facing interfaces |
| api-and-interface-design | Contract-first design, Hyrum's Law, One-Version Rule, error semantics, boundary validation | Designing APIs, module boundaries, or public interfaces |

Verify - Prove it works

| Skill | What It Does | Use When |
|-------|-------------|----------|
| browser-testing-with-devtools | Chrome DevTools MCP for live runtime data - DOM inspection, console logs, network traces, performance profiling | Building or debugging anything that runs in a browser |
| debugging-and-error-recovery | Five-step triage: reproduce, localize, reduce, fix, guard. Stop-the-line rule, safe fallbacks | Tests fail, builds break, or behavior is unexpected |

Review - Quality gates before merge

| Skill | What It Does | Use When |
|-------|-------------|----------|
| code-review-and-quality | Five-axis review, change sizing (~100 lines), severity labels (Nit/Optional/FYI), review speed norms, splitting strategies | Before merging any change |
| code-simplification | Chesterton's Fence, Rule of 500, reduce complexity while preserving exact behavior | Code works but is harder to read or maintain than it should be |
| security-and-hardening | OWASP Top 10 prevention, auth patterns, secrets management, dependency auditing, three-tier boundary system | Handling user input, auth, data storage, or external integrations |
| performance-optimization | Measure-first approach - Core Web Vitals targets, profiling workflows, bundle analysis, anti-pattern detection | Performance requirements exist or you suspect regressions |

Ship - Deploy with confidence

| Skill | What It Does | Use When |
|-------|-------------|----------|
| git-workflow-and-versioning | Trunk-based development, atomic commits, change sizing (~100 lines), the commit-as-save-point pattern | Making any code change (always) |
| ci-cd-and-automation | Shift Left, Faster is Safer, feature flags, quality gate pipelines, failure feedback loops | Setting up or modifying build and deploy pipelines |
| deprecation-and-migration | Code-as-liability mindset, compulsory vs advisory deprecation, migration patterns, zombie code removal | Removing old systems, migrating users, or sunsetting features |
| documentation-and-adrs | Architecture Decision Records, API docs, inline documentation standards - document the why | Making architectural decisions, changing APIs, or shipping features |
| shipping-and-launch | Pre-launch checklists, feature flag lifecycle, staged rollouts, rollback procedures, monitoring setup | Preparing to deploy to production |

---

Agent Personas

Pre-configured specialist personas for targeted reviews:

| Agent | Role | Perspective |
|-------|------|-------------|
| code-reviewer | Senior Staff Engineer | Five-axis code review with "would a staff engineer approve this?" standard |
| test-engineer | QA Specialist | Test strategy, coverage analysis, and the Prove-It pattern |
| security-auditor | Security Engineer | Vulnerability detection, threat modeling, OWASP assessment |

---

Reference Checklists

Quick-reference material that skills pull in when needed:

| Reference | Covers |
|-----------|--------|
| testing-patterns.md | Test structure, naming, mocking, React/API/E2E examples, anti-patterns |
| security-checklist.md | Pre-commit checks, auth, input validation, headers, CORS, OWASP Top 10 |
| performance-checklist.md | Core Web Vitals targets, frontend/backend checklists, measurement commands |
| accessibility-checklist.md | Keyboard nav, screen readers, visual design, ARIA, testing tools |

---

How Skills Work

Every skill follows a consistent anatomy:

text
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ SKILL.md β”‚
β”‚ β”‚
β”‚ β”Œβ”€ Frontmatter ─────────────────────────────┐ β”‚
β”‚ β”‚ name: lowercase-hyphen-name β”‚ β”‚
β”‚ β”‚ description: Guides agents through [task].β”‚ β”‚
β”‚ β”‚ Use when… β”‚ β”‚
β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚ Overview β†’ What this skill does β”‚
β”‚ When to Use β†’ Triggering conditions β”‚
β”‚ Process β†’ Step-by-step workflow β”‚
β”‚ Rationalizations β†’ Excuses + rebuttals β”‚
β”‚ Red Flags β†’ Signs something's wrong β”‚
β”‚ Verification β†’ Evidence requirements β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Key design choices:

- Process, not prose. Skills are workflows agents follow, not reference docs they read. Each has steps, checkpoints, and exit criteria.
- Anti-rationalization. Every skill includes a table of common excuses agents use to skip steps (e.g., "I'll add tests later") with documented counter-arguments.
- Verification is non-negotiable. Every skill ends with evidence requirements - tests passing, build output, runtime data. "Seems right" is never sufficient.
- Progressive disclosure. The
SKILL.md` is the entry point. Supporting references load only when needed, keeping token usage minimal.

---

Project Structure

text
agent-skills/
β”œβ”€β”€ skills/ # 20 core skills (SKILL.md per directory)
β”‚ β”œβ”€β”€ idea-refine/ # Define
β”‚ β”œβ”€β”€ spec-driven-development/ # Define
β”‚ β”œβ”€β”€ planning-and-task-breakdown/ # Plan
β”‚ β”œβ”€β”€ incremental-implementation/ # Build
β”‚ β”œβ”€β”€ context-engineering/ # Build
β”‚ β”œβ”€β”€ source-driven-development/ # Build
β”‚ β”œβ”€β”€ frontend-ui-engineering/ # Build
β”‚ β”œβ”€β”€ test-driven-development/ # Build
β”‚ β”œβ”€β”€ api-and-interface-design/ # Build
β”‚ β”œβ”€β”€ browser-testing-with-devtools/ # Verify
β”‚ β”œβ”€β”€ debugging-and-error-recovery/ # Verify
β”‚ β”œβ”€β”€ code-review-and-quality/ # Review
β”‚ β”œβ”€β”€ code-simplification/ # Review
β”‚ β”œβ”€β”€ security-and-hardening/ # Review
β”‚ β”œβ”€β”€ performance-optimization/ # Review
β”‚ β”œβ”€β”€ git-workflow-and-versioning/ # Ship
β”‚ β”œβ”€β”€ ci-cd-and-automation/ # Ship
β”‚ β”œβ”€β”€ deprecation-and-migration/ # Ship
β”‚ β”œβ”€β”€ documentation-and-adrs/ # Ship
β”‚ β”œβ”€β”€ shipping-and-launch/ # Ship
β”‚ └── using-agent-skills/ # Meta: how to use this pack
β”œβ”€β”€ agents/ # 3 specialist personas
β”œβ”€β”€ references/ # 4 supplementary checklists
β”œβ”€β”€ hooks/ # Session lifecycle hooks
β”œβ”€β”€ .claude/commands/ # 7 slash commands
└── docs/ # Setup guides per tool

---

Why Agent Skills?

AI coding agents default to the shortest path - which often means skipping specs, tests, security reviews, and the practices that make software reliable. Agent Skills gives agents structured workflows that enforce the same discipline senior engineers bring to production code.

Each skill encodes hard-won engineering judgment: when to write a spec, what to test, how to review, and when to ship. These aren't generic prompts - they're the kind of opinionated, process-driven workflows that separate production-quality work from prototype-quality work.

Skills bake in best practices from Google's engineering culture β€” including concepts from Software Engineering at Google and Google's engineering practices guide. You'll find Hyrum's Law in API design, the Beyonce Rule and test pyramid in testing, change sizing and review speed norms in code review, Chesterton's Fence in simplification, trunk-based development in git workflow, Shift Left and feature flags in CI/CD, and a dedicated deprecation skill treating code as a liability. These aren't abstract principles β€” they're embedded directly into the step-by-step workflows agents follow.

---

Contributing

Skills should be specific (actionable steps, not vague advice), verifiable (clear exit criteria with evidence requirements), battle-tested (based on real workflows), and minimal (only what's needed to guide the agent).

See docs/skill-anatomy.md for the format specification and CONTRIBUTING.md for guidelines.

---

License

MIT - use these skills in your projects, teams, and tools.