核心要点
- Agent Skills 是一套面向 AI 编码代理的生产级工程技能库,将资深工程师的工作流、质量门禁和最佳实践编码为可复用的技能,让 AI 代理在开发的每个阶段保持一致行为。
- 提供 10 个斜杠命令,覆盖从需求定义(
/spec)到上线(/ship)的完整开发生命周期,每个命令会自动激活对应技能。
- 支持 70+ 种 AI 代理(Claude Code、Cursor、Codex、Copilot、Cline 等),可通过开放的 skills CLI 一键安装,也支持各工具的原生集成方式。
- 技能会根据当前任务自动激活:设计 API 触发
api-and-interface-design,构建 UI 触发 frontend-ui-engineering,无需手动调用。
- **
/build 支持自主执行模式**:批准计划后自动生成计划并逐个实现任务,但仍保持测试驱动和逐任务提交,遇到失败或风险步骤会暂停。
正文
Agent Skills
面向 AI 编码代理的生产级工程技能。技能将资深工程师构建软件时使用的工作流、质量门禁和最佳实践编码化。这些技能经过打包,使 AI 代理在开发的每个阶段都能一致地遵循它们。


DEFINE PLAN BUILD VERIFY REVIEW SHIP
┌──────┐ ┌──────┐ ┌──────┐ ┌──────┐ ┌──────┐ ┌──────┐
│ Idea │──▶│ Spec │──▶│ Code │──▶│ Test │──▶│ QA │──▶│ Go │
│Refine│ │ PRD │ │ Impl │ │Debug │ │ Gate │ │ Live │
└──────┘ └──────┘ └──────┘ └──────┘ └──────┘ └──────┘
/spec /plan /build /test /review /ship
命令
10 个斜杠命令,映射到开发生命周期。每个命令会自动激活正确的技能。
| 你正在做什么 | 命令 | 核心原则 | |-------------------|---------|---------------| | 定义要构建什么 | /spec | 先写规格,再写代码 | | 规划如何构建 | /plan | 小而原子的任务 | | 增量式构建 | /build | 一次一个切片 | | 证明它能工作 | /test | 测试即证明 | | 设定质量标准 | /constraints | 一次决定,处处执行 | | 合并前审查 | /review | 改善代码健康度 | | 审计 Web 性能 | /webperf | 先测量,再优化 | | 审计可访问性 | /a11y | 自动化是冒烟测试;人工验证才能完成审计 | | 简化代码 | /code-simplify | 清晰胜于聪明 | | 发布到生产环境 | /ship | 更快即更安全 |
在 Claude Code 中,这些命令以插件命令的形式安装。当内置命令同名时(例如 /review),请使用带命名空间的形式:/agent-skills:review。
规格已经存在后想减少手动步骤?/build 会自动生成计划并在一次批准的执行中实现每个任务——你只需批准一次计划,然后它自主运行。它移除的是任务之间的人工介入,而不是验证:每个任务仍然是测试驱动的、单独提交的,遇到失败或风险步骤时会暂停。
技能也会根据你正在做的事情自动激活——设计 API 会触发 api-and-interface-design,构建 UI 会触发 frontend-ui-engineering,等等。
快速开始
最快路径——任意代理,一条命令。 开放的 skills CLI(https://github.com/vercel-labs/skills)可安装到 70+ 种代理(Claude Code、Cursor、Codex、Copilot、Cline 等):
npx skills add addyosmani/agent-skills # 安装全部 26 个技能
npx skills add addyosmani/agent-skills --list # 安装前浏览
或者获取单个技能:
npx skills add addyosmani/agent-skills --skill code-review-and-quality # 合并前的五轴审查
npx skills add addyosmani/agent-skills --skill interview-me # 需求拷问,一次一个问题
npx skills add addyosmani/agent-skills --skill test-driven-development # 红-绿-重构,强制执行
只安装单个技能? 按技能执行的 npx 安装只会复制 skills/<name>/,而不会复制仓库级的 references/ 目录。技能仍然可用,但指向共享补充检查清单的路径将不可用。请使用整仓库集成、克隆仓库,或将所需的检查清单复制到已安装技能内的 references/ 目录中。此可移植性缺口记录在 #361。
更喜欢原生集成? 在下方选择你的工具。
市场安装:
/plugin marketplace add addyosmani/agent-skills
/plugin install agent-skills@addy-agent-skills
SSH 错误? 市场通过 SSH 克隆仓库。如果你没有在 GitHub 上设置 SSH 密钥,请添加 SSH 密钥,或在 marketplace-add 步骤中使用完整 HTTPS URL 强制 HTTPS 克隆:
/plugin marketplace add https://github.com/addyosmani/agent-skills.git
/plugin install agent-skills@addy-agent-skills
如果 /plugin install 在 Windows 或 macOS 上仍然失败并报 [email protected]: Permission denied (publickey),推荐的变通方法是配置 Git 一次性将 GitHub SSH URL 重写为 HTTPS,用于子进程克隆:
git config --global url."https://github.com/".insteadOf [email protected]:
本地 / 开发:
git clone https://github.com/addyosmani/agent-skills.git
claude --plugin-dir /path/to/agent-skills
将工作流技能放在 .cursor/skills/ 下(从 agent-skills/skills/ 同步),将简短策略放在 .cursor/rules/ 下的 .mdc 文件中——不要把完整技能粘贴到规则里。两个目录都位于你的项目中;本仓库不附带 .cursor/ 文件夹。参见 docs/cursor-setup.md。
作为原生插件安装,用于技能和子代理。在受影响的 Antigravity CLI 版本中,旧版命令 TOML 被报告为已转换,但其包装命令无法被发现;请直接调用底层的命名空间技能。参见 docs/antigravity-setup.md(lifecycle-workflows-and-command-compatibility)。
从仓库安装:
agy plugin install https://github.com/addyosmani/agent-skills.git
从本地克隆安装:
git clone https://github.com/addyosmani/agent-skills.git
agy plugin install ./agent-skills
作为原生技能安装以自动发现,或添加到 GEMINI.md 以获得持久上下文。参见 docs/gemini-cli-setup.md。
从仓库安装:
gemini skills install https://github.com/addyosmani/agent-skills.git --path skills
从本地克隆安装:
gemini skills install ./agent-skills/skills/
将技能内容添加到你的 Windsurf 规则配置中。参见 docs/windsurf-setup.md。
将技能复制到 .opencode/skills/ 或 ~/.config/opencode/skills/,添加项目本地的 AGENTS.md,并使用内置的 skill 工具进行代理驱动的执行。可选斜杠命令可添加到 .opencode/commands/ 下。参见 docs/opencode-setup.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.


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
10 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 | | Set the quality bar | /constraints | Decide it once, enforce it everywhere | | Review before merge | /review | Improve code health | | Audit web performance | /webperf | Measure before you optimize | | Audit accessibility | /a11y | Automation is a smoke test; manual verification completes the audit | | Simplify the code | /code-simplify | Clarity over cleverness | | Ship to production | /ship | Faster is safer |
In Claude Code these install as plugin commands. Where a built-in command has the same name, as /review does, use the namespaced form: /agent-skills:review.
Want fewer manual steps once the spec exists? **/build auto** generates the plan and implements every task in a single approved pass — you approve the plan once, then it runs autonomously. It removes the human stepping between tasks, not the verification: every task is still test-driven and committed individually, and it pauses on failures or risky steps.
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
Fastest path — any agent, one command. The open skills CLI installs into 70+ agents (Claude Code, Cursor, Codex, Copilot, Cline, and more):
npx skills add addyosmani/agent-skills # install all 26 skills
npx skills add addyosmani/agent-skills --list # browse before installing
Or grab individual skills:
npx skills add addyosmani/agent-skills --skill code-review-and-quality # five-axis review before merge
npx skills add addyosmani/agent-skills --skill interview-me # requirements interrogation, one question at a time
npx skills add addyosmani/agent-skills --skill test-driven-development # red-green-refactor, enforced
Installing one skill? A per-skill npx install copies only
skills/<name>/, not the repo-level references/ directory. The skill still
works, but paths to supplementary shared checklists are unavailable. Use a
whole-repo integration, clone the repository, or copy the needed checklist into
a references/ directory inside the installed skill. This portability gap is
tracked in #361.
Prefer a native integration? Pick your tool below.
Marketplace install:
/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 use the full HTTPS URL to force HTTPS cloning during the marketplace-add step:
```bash
/plugin marketplace add https://github.com/addyosmani/agent-skills.git
/plugin install agent-skills@addy-agent-skills
```
If /plugin install still fails with [email protected]: Permission denied (publickey) on Windows or macOS, the recommended workaround is to configure Git once to rewrite GitHub SSH URLs to HTTPS for subprocess clones:
```bash
git config --global url."https://github.com/".insteadOf [email protected]:
```
Local / development:
git clone https://github.com/addyosmani/agent-skills.git
claude --plugin-dir /path/to/agent-skills
Put workflow skills under .cursor/skills/ (sync from agent-skills/skills/) and short policies in .cursor/rules/*.mdc — do not paste full skills into rules. Both directories live in your project; this repo does not ship a .cursor/ folder. See docs/cursor-setup.md.
Install as a native plugin for skills and subagents. In affected Antigravity CLI releases, legacy command TOMLs are reported as converted but their wrapper commands are not discoverable; invoke the underlying namespaced skills directly. See docs/antigravity-setup.md.
Install from the repo:
agy plugin install https://github.com/addyosmani/agent-skills.git
Install from a local clone:
git clone https://github.com/addyosmani/agent-skills.git
agy plugin install ./agent-skills
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:
gemini skills install https://github.com/addyosmani/agent-skills.git --path skills
Install from a local clone:
gemini skills install ./agent-skills/skills/
Add skill contents to your Windsurf rules configuration. See docs/windsurf-setup.md.
Copy skills to .opencode/skills/ (or ~/.config/opencode/skills/), add a project-local AGENTS.md, and use the built-in skill tool for agent-driven execution. Optional slash commands can be added under .opencode/commands/.
See docs/opencode-setup.md.
Use agent definitions from agents/ as Copilot personas and skill content in .github/copilot-instructions.md. The lifecycle slash commands (/spec, /plan, /build, /test, /review, /ship) are Claude Code commands and do not appear in Copilot; invoke the skills by name (/spec-driven-development, …) instead. See docs/copilot-setup.md.
Using the standalone copilot CLI? Install it as a plugin — see docs/copilot-cli-setup.md.
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/
Install as a native Codex plugin (Codex CLI v0.122+):
codex plugin marketplace add addyosmani/agent-skills
codex plugin add agent-skills@agent-skills
The first command registers the marketplace; the second installs the plugin. Codex reads the root skills/ directory directly through .codex-plugin/plugin.json. Once installed, invoke skills in chat using @ (e.g., @spec-driven-development). See docs/codex-setup.md for local installation and troubleshooting.
Install natively with the built-in cmd skills command. Command Code clones the repo, discovers every SKILL.md, and installs into .commandcode/skills/:
cmd skills add addyosmani/agent-skills # pick skills to install (project)
cmd skills add addyosmani/agent-skills --global # install for all projects (~/.commandcode/skills/)
cmd skills add addyosmani/agent-skills -s spec-driven-development # install a specific skill
Installed skills show up in the TUI slash menu, e.g. /spec-driven-development. See docs/commandcode-setup.md.
Skills are plain Markdown - they work with any agent that accepts system prompts or instruction files. See docs/getting-started.md. Hosts that install the pack but aren't listed above are in docs/other-hosts.md.
Adoption
Already installed? How you roll the pack out depends on your codebase. The **Adoption Guide** covers two paths: the full lifecycle from day one for a greenfield project, or an incremental, verification-first rollout for an established codebase.
All 26 Skills
The commands above are entry points. The pack includes 26 skills total — 25 lifecycle skills plus the using-agent-skills meta-skill. Each skill is a structured workflow with steps, verification gates, and anti-rationalization tables. You can also reference any skill directly.
Meta - Discover which skill applies
| Skill | What It Does | Use When | |-------|-------------|----------| | using-agent-skills | Maps incoming work to the right skill workflow and defines shared operating rules | Starting a session or deciding which skill applies |
Define - Clarify what to build
| Skill | What It Does | Use When | |-------|-------------|----------| | interview-me | One-question-at-a-time interview that extracts what the user actually wants instead of what they think they should want, until ~95% confidence | The ask is underspecified, or the user invokes "interview me" / "grill me" | | 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 | | constraint-driven-development | Interviews you for a quality bar with sane default thresholds, writes CONSTRAINTS.md, places each check by cost, and catches agents silencing checks or skipping tests to get green | No standards are written down, or an agent is producing more than anyone reads |
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 | | doubt-driven-development | Adversarial fresh-context review of every non-trivial decision in-flight - CLAIM → EXTRACT → DOUBT → RECONCILE → STOP, with optional user-authorized cross-model escalation | Stakes are high (production, security, irreversible), working in unfamiliar code, or a confident output is cheaper to verify now than to debug later | | 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 | | accessibility-engineering | Audit an existing interface for WCAG 2.2 AA conformance and remediate the violations found - axe-core and pa11y commands, keyboard and screen reader testing, severity triage | Auditing a page or component for accessibility before shipping |
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 | | observability-and-instrumentation | Structured logging, RED metrics, OpenTelemetry tracing, symptom-based alerting - instrument as you build | Adding telemetry, or shipping anything that runs in production | | 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 | | web-performance-auditor | Web Performance Engineer | Core Web Vitals audit with Quick/Deep modes and a metric-honesty rule; run it via /webperf | | accessibility-auditor | Accessibility Engineer | WCAG 2.2 AA audit with a scorecard and findings ranked by real user impact; run it via /a11y |
See docs/agents.md for the decision matrix, orchestration rules, and how personas compose with skills and slash commands.
Reference Checklists
Quick-reference material that skills pull in when needed:
| Reference | Covers | |-----------|--------| | definition-of-done.md | Project-wide standing bar every change clears, contrasted with per-task acceptance criteria | | testing-patterns.md | Test structure, naming, mocking, React/API/E2E examples, anti-patterns (JavaScript/TypeScript) | | 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 | | observability-checklist.md | On-call questions, structured logging, RED/USE metrics, tracing, symptom-based alerting, pre-launch gate | | orchestration-patterns.md | Endorsed multi-persona orchestration patterns, anti-patterns, and the "personas don't invoke personas" rule |
How Skills Work
Every skill follows a consistent anatomy:
┌─────────────────────────────────────────────────┐
│ 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
The portable core stays in shared directories. Host-specific paths are native discovery conventions, not branding aliases; renaming or merging them would break the tools that scan those exact locations.
| Layer / consumer | Repository paths | Purpose | |---|---|---| | Shared workflow core | skills/ (26 skills) | Portable SKILL.md workflows used by every integration | | Shared review material | agents/ (5 personas), references/ (7 checklists) | Specialist reviewers and pack-level checklists carried by whole-repo installs | | Claude Code adapter | .claude/commands/ (10 commands), .claude-plugin/, hooks/ | Slash-command wrappers, marketplace metadata, and lifecycle hooks | | Gemini CLI adapter | .gemini/commands/ (10 commands) | Gemini-native TOML command wrappers | | Antigravity CLI adapter | commands/ (10 commands), plugin.json | Legacy TOML wrappers and the root plugin manifest; see the known wrapper limitation | | Codex adapter | .codex-plugin/, .agents/plugins/ | Codex plugin metadata and marketplace registration; Codex consumes skills/ directly | | GitHub Copilot CLI adapter | plugin.json | Root plugin metadata; Copilot CLI discovers skills/ by convention and does not register the lifecycle wrappers | | Contributor tooling | scripts/ (13 scripts), evals/ (26 case files), .github/workflows/ | Validation, routing evals, and CI | | Documentation | docs/ | Universal guidance and per-tool setup guides |
Tools without a checked-in adapter directory install or copy the shared skills/ core into their own native location. The Quick Start links the setup guide for each supported host.
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.
How it compares
Wondering how this stacks up against Superpowers or Matt Pocock's skills? See **docs/comparison.md** for an honest, side-by-side look at how the three are shaped differently and when to reach for each — including a link to a controlled head-to-head experiment.
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, CONTRIBUTING.md for guidelines, and docs/advanced-per-agent-configuration.md for applying model routing, tool restrictions, and other per-agent runtime controls without breaking the portable SKILL.md frontmatter.
Team
agent-skills is built and maintained by:
| | Name | GitHub | Role | |---|------|--------|------| |
| Addy Osmani | @addyosmani | Creator | |
| Federico Bartoli | @federicobartoli | Collaborator | |
| Joan León | @nucliweb | Collaborator |
License
MIT - use these skills in your projects, teams, and tools.