agent-skills
AGENTS.md1 starsChanged 9 days agoMITView on GitHub
Scope: This file configures agents working on the addyosmani/agent-skills repository itself. It is not meant to be copied into other projects or into a global agent configuration; the reusable assets are the skills in skills/, not this file. A collection of skills for Claude.ai and Claude Code for senior software engineers. Skills are packaged instructions and scripts that extend Claude and your coding agents capabilities. OpenCode uses a skill-driven execution model powered by the skill tool and this repository's /skills…
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,337 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository28 other files it gives its agents.
- docs/agents.mdAGENTS.md
- .cursor/rules/no-upstream-pr.mdcCursor rule
- accessibility-engineeringSkill
- api-and-interface-designSkill
- browser-testing-with-devtoolsSkill
- ci-cd-and-automationSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- constraint-driven-developmentSkill
- context-engineeringSkill
- debugging-and-error-recoverySkill
- deprecation-and-migrationSkill
- documentation-and-adrsSkill
- doubt-driven-developmentSkill
- frontend-ui-engineeringSkill
- git-workflow-and-versioningSkill
- idea-refineSkill
- incremental-implementationSkill
- interview-meSkill
- observability-and-instrumentationSkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- security-and-hardeningSkill
- shipping-and-launchSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- test-driven-developmentSkill
- using-agent-skillsSkill
The file
We split this AGENTS.md into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
When a task matches a skill, invoke it and follow its workflow in full.
- Distinctive: line 37
Instead, the agent must internally follow this lifecycle:
- Very specific: line 99
Every skill lives in skills/<name>/SKILL.md
- Distinctive: line 102
Every skill has: Overview, When to Use, Process, Common Rationalizations, Red Flags, Verification
- Distinctive: line 116
Before opening a PR, search the upstream repository's open PRs and issues for work that touches the same files or rules.
- Very specific: line 117
Prefer small, focused PRs over large refactors of widely shared files (for example, files under scripts/), which are more likely to collide …
- Distinctive: line 121
Always: Run the CONTRIBUTING.md pre-flight checks before creating a new skill directory
- Distinctive: line 122
Always: Follow the skill-anatomy.md format for new skills
- Distinctive: line 123
Always: Check the upstream repo's open PRs and issues for overlap before opening a new PR
- Distinctive: line 124
Never: Add skills that are vague advice instead of actionable processes
- Distinctive: line 125
Never: Duplicate content between skills — reference other skills instead
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
This file provides guidance to AI coding agents (Claude Code, Cursor, Copilot, Antigravity, etc.) when working with code in this repository.
Scope: This file configures agents working on the
addyosmani/agent-skillsrepository itself. It is not meant to be copied into other projects or into a global agent configuration; the reusable assets are the skills inskills/, not this file.
Repository Overview
A collection of skills for Claude.ai and Claude Code for senior software engineers. Skills are packaged instructions and scripts that extend Claude and your coding agents capabilities.
OpenCode Integration
OpenCode uses a skill-driven execution model powered by the skill tool and this repository's /skills directory.
Core Rules
- When a task matches a skill, invoke it and follow its workflow in full; a skill applied halfway skips the exit criteria it exists for.
- Skills are located in
skills/<skill-name>/SKILL.md
Intent → Skill Mapping
The agent should automatically map user intent to skills:
- Feature / new functionality →
spec-driven-development, thenincremental-implementation,test-driven-development - Planning / breakdown →
planning-and-task-breakdown - Bug / failure / unexpected behavior →
debugging-and-error-recovery - Code review →
code-review-and-quality - Refactoring / simplification →
code-simplification - API or interface design →
api-and-interface-design - UI work →
frontend-ui-engineering - Accessibility audit / a11y review →
accessibility-engineering
Lifecycle Mapping (Implicit Commands)
OpenCode does not support slash commands like /spec or /plan.
Instead, the agent must internally follow this lifecycle:
- DEFINE →
spec-driven-development - PLAN →
planning-and-task-breakdown - BUILD →
incremental-implementation+test-driven-development - VERIFY →
debugging-and-error-recovery - REVIEW →
code-review-and-quality - SHIP →
shipping-and-launch
Execution Model
For each request, check the intent mapping above. When a skill applies, invoke it with the skill tool, follow its workflow, and finish the steps it requires (spec, plan, etc.) before implementing. Size alone does not exempt a request: a small change that matches a skill still goes through it. A request that no skill covers goes straight to the work.
This ensures OpenCode behaves similarly to Claude Code with full workflow enforcement.
Orchestration: Personas, Skills, and Commands
This repo has three composable layers. They have different jobs and should not be confused:
- Skills (
skills/<name>/SKILL.md) — workflows with steps and exit criteria. The how. Mandatory hops when an intent matches. - Personas (
agents/<role>.md) — roles with a perspective and an output format. The who. - Slash commands (
.claude/commands/*.md) — user-facing entry points. The when. The orchestration layer.
Composition rule: the user (or a slash command) is the orchestrator. Personas do not invoke other personas. A persona may invoke skills.
The only multi-persona orchestration pattern this repo endorses is parallel fan-out with a merge step — used by /ship to run code-reviewer, security-auditor, and test-engineer concurrently and synthesize their reports. Do not build a "router" persona that decides which other persona to call; that's the job of slash commands and intent mapping.
See docs/agents.md for the decision matrix and references/orchestration-patterns.md for the full pattern catalog.
Claude Code interop: the personas in agents/ work as Claude Code subagents (auto-discovered from this plugin's agents/ directory) and as Agent Teams teammates (referenced by name when spawning). Two platform constraints align with our rules: subagents cannot spawn other subagents, and teams cannot nest. Plugin agents silently ignore the hooks, mcpServers, and permissionMode frontmatter fields.
Creating a New Skill
Before you start: run the pre-flight checks in CONTRIBUTING.md, search the catalog, check open PRs (
gh pr list --state open), confirm the idea fits docs/skill-anatomy.md, and justify the gap in your PR description. Most new-skill ideas overlap an existing skill or an open PR; prefer extending an existing skill over adding a near-duplicate. CONTRIBUTING.md is the single source of truth for this workflow.
Skills in this repo are markdown-first: each lives at skills/<kebab-case-name>/SKILL.md with YAML frontmatter (name, description) and follows the section anatomy (Overview, When to Use, Process, Common Rationalizations, Red Flags, Verification). Add a scripts/ directory only when the skill ships runnable helpers; most skills are markdown only, and there are no per-skill zip packages.
For the full format, naming conventions, frontmatter rules, supporting-file thresholds, and writing principles, see docs/skill-anatomy.md, the single source of truth for skill structure. Do not restate that guidance here, link to it.
Project Structure
skills/ → Core skills (SKILL.md per directory)
agents/ → Reusable agent personas (code-reviewer, test-engineer, security-auditor, web-performance-auditor, accessibility-auditor)
hooks/ → Session lifecycle hooks
.claude/commands/ → Slash commands (/spec, /plan, /build, /test, /review, /code-simplify, /ship; plus the /webperf and /a11y specialist audits)
references/ → Supplementary checklists (testing, performance, security, accessibility, observability)
evals/ → Skill eval cases + framework (see evals/README.md)
docs/ → Setup guides for different toolsSkill Catalog by Phase
Define: interview-me, idea-refine, spec-driven-development Plan: planning-and-task-breakdown Build: incremental-implementation, test-driven-development, context-engineering, source-driven-development, doubt-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, accessibility-engineering Ship: git-workflow-and-versioning, ci-cd-and-automation, deprecation-and-migration, documentation-and-adrs, observability-and-instrumentation, shipping-and-launch
Skill Authoring Conventions
- Every skill lives in
skills/<name>/SKILL.md - YAML frontmatter with
nameanddescriptionfields - 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
- Shared references are in the root
references/directory; the emerging convention for self-contained, distributable skills keeps a skill's own references insideskills/<name>/references/ - 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
- Evals:
node scripts/run-evals.js— trigger/routing evals for every skill (CI);--behavioral <skill>for graded runs
Pull Request Guidelines (this repo)
PRs target the upstream repository's default branch. In a typical fork setup the upstream remote is upstream and your fork is origin, but the exact remote names are not what matters here.
- Before opening a PR, search the upstream repository's open PRs and issues for work that touches the same files or rules. If any overlaps, coordinate (build on it, align your rules with it, or rebase after it merges) instead of opening a conflicting PR.
- Prefer small, focused PRs over large refactors of widely shared files (for example, files under
scripts/), which are more likely to collide with in-flight work.
Boundaries
- Always: Run the CONTRIBUTING.md pre-flight checks before creating a new skill directory
- Always: Follow the skill-anatomy.md format for new skills
- Always: Check the upstream repo's open PRs and issues for overlap before opening a new PR
- Never: Add skills that are vague advice instead of actionable processes
- Never: Duplicate content between skills — reference other skills instead
Fork 維護規則(SanHsien 維護線)
本節只適用於
SanHsien/agent-skills(本 fork)。上游addyosmani/agent-skills沒有這一節。
origin/main是唯一長期分支,日常修改直接推上去;只有需要他人審查或高風險改動才開 branch → PR。- repo 只有單一長期分支(
main);tag 與 release 保留歷史版本。發布新版本時新增 tag 與 release,不要刪舊 tag 或舊 release(含0.6.9),Latest 指向最新版。升版時五份 plugin manifest 版本必須一致,並跑node scripts/validate-versions.js。原因與沿革見docs/DECISIONS.md2026-11-08。 - 不要
git push upstream。upstream/main只用來 fetch、比對,不推送、不 force-push、不刪除。 - PR、push、release 一律指向
SanHsien/agent-skills,除非維護者在當次對話明確同意回貢 上游——回貢判準見FORK.md。 - Windows 本機與 CI 的 canonical gate 是
tools/dev_check.ps1(ruff、pytest、node scripts/validate-skills.js、node scripts/validate-commands.js、tools/check_links.py);上游既有的.github/workflows/test-plugin-install.yml維持不動, 不重複覆蓋。 - 產品
skills/、commands/、.claude/commands/、.gemini/commands/、agents/、hooks/、references/、evals/、scripts/與既有docs/*.md以上游為準,不因本線需求改寫成維護索引。 - 上游同步、決策記錄、開發環境細節見
FORK.md、docs/UPSTREAM.md、docs/DEVELOPMENT.md。
Roadmap
ROADMAP.mdis the single source of truth for this repository's next work. When you finish or add work, update it in the same commit: delete finished rows, add new ones. Do not keep a to-do list in any other file.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

