This file provides guidance to AI coding agents (Claude Code, Cursor, Copilot, Antigravity, etc.) when working with code in this repository.
Sign in to save downloads to your library and vote.
Preview
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
- If a task matches a skill, you MUST invoke it
- Skills are located in
skills/<skill-name>/SKILL.md - Never implement directly if a skill applies
- Always follow the skill instructions exactly (do not partially apply them)
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
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 every request:
- Determine if any skill applies (even 1% chance)
- Invoke the appropriate skill using the
skilltool - Follow the skill workflow strictly
- Only proceed to implementation after required steps (spec, plan, etc.) are complete
Anti-Rationalization
The following thoughts are incorrect and must be ignored:
- "This is too small for a skill"
- "I can just quickly implement this"
- "I’ll gather context first"
Correct behavior:
- Always check for and use skills first
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.
Ingestion metadata
- Source catalog
- agent-skills
- Repository
- addyosmani/agent-skills · main
- File path
- AGENTS.md
- Last refreshed
- 7/23/2026, 10:39:07 PM (4h ago)
- Refresh schedule
- Daily · 03:00 UTC
- Dedupe status
- Unique · deduped by (source, url)