agentleFS
SanHsienSanHsien/agent-skills/AGENTS.md

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

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
  1. Distinctive:

    When a task matches a skill, invoke it and follow its workflow in full.

    line 17
  2. Distinctive:

    Instead, the agent must internally follow this lifecycle:

    line 37
  3. Very specific:

    Every skill lives in skills/<name>/SKILL.md

    line 99
  4. Distinctive:

    Every skill has: Overview, When to Use, Process, Common Rationalizations, Red Flags, Verification

    line 102
  5. Distinctive:

    Before opening a PR, search the upstream repository's open PRs and issues for work that touches the same files or rules.

    line 116
  6. Very specific:

    Prefer small, focused PRs over large refactors of widely shared files (for example, files under scripts/), which are more likely to collide …

    line 117
  7. Distinctive:

    Always: Run the CONTRIBUTING.md pre-flight checks before creating a new skill directory

    line 121
  8. Distinctive:

    Always: Follow the skill-anatomy.md format for new skills

    line 122
  9. Distinctive:

    Always: Check the upstream repo's open PRs and issues for overlap before opening a new PR

    line 123
  10. Distinctive:

    Never: Add skills that are vague advice instead of actionable processes

    line 124
  11. Distinctive:

    Never: Duplicate content between skills — reference other skills instead

    line 125

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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-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.

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, then incremental-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 tools

Skill 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 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
  • Shared references are in the root references/ directory; the emerging convention for self-contained, distributable skills keeps a skill's own references inside skills/<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.md 2026-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.md is 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.