SkillEngine
AGENTS.md17 starsChanged 6 months agoMITView on GitHub
The single source of truth for how AI agents operate within this repository. This document is loaded into every session. It defines the rules, the mapping from intent to skill, and the orchestration model that makes agents predictable, reliable, and safe. Read it. Follow it. No exceptions. This is not a library. It's not a framework. It's a control system for AI agents. SkillEngine encodes the workflows, quality gates, and decision-making patterns that separate production engineering from prototyping. When an…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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 repository29 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ai-opsSkill
- api-and-interface-designSkill
- browser-testing-with-devtoolsSkill
- chaos-engineeringSkill
- ci-cd-and-automationSkill
- code-review-and-qualitySkill
- code-simplificationSkill
- context-engineeringSkill
- cost-optimizationSkill
- data-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
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
17 rules. About 0 are common, 11 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Every assumption must be stated
- Distinctive: line 31
If a task matches a skill, you MUST invoke it
- Distinctive: line 33
Never implement directly if a skill applies
- Distinctive: line 34
Always follow the skill instructions exactly (do not partially apply them)
- Distinctive: line 56
Instead, the agent must internally follow this lifecycle:
- Distinctive: line 71
Follow the skill workflow strictly
- Distinctive: line 72
Only proceed to implementation after required steps (spec, plan, etc.) are complete
- Distinctive: line 84
Always check for and use skills first
- Very specific: line 120
SKILL.md: Always uppercase, always this exact filename
- Very specific: line 122
Zip file: Must match directory name exactly: {skill-name}.zip
- Very specific: line 182
Use set -e for fail-fast behavior
- Very specific: line 183
Write status messages to stderr: echo "Message" >&2
- Distinctive: line 184
Write machine-readable output (JSON) to stdout
- Distinctive: line 190
After creating or updating a skill:
- Distinctive: line 199
Document these two installation methods for users:
- Very specific: line 207
Add the skill to project knowledge or paste SKILL.md contents into the conversation.
- Very specific: line 209
If the skill requires network access, instruct users to add required domains at claude.ai/settings/capabilities.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
The single source of truth for how AI agents operate within this repository.
This document is loaded into every session. It defines the rules, the mapping from intent to skill, and the orchestration model that makes agents predictable, reliable, and safe. Read it. Follow it. No exceptions.
Repository Overview
This is not a library. It's not a framework. It's a control system for AI agents.
SkillEngine encodes the workflows, quality gates, and decision-making patterns that separate production engineering from prototyping. When an agent follows these skills, it ships code that passes review, survives incidents, and doesn't wake engineers at 3 AM.
What this repository contains:
- 28 skills — step-by-step workflows with checkpoints, anti-rationalization tables, and evidence-based verification
- 5 agent personas — specialist roles (code reviewer, security auditor, test engineer, performance auditor, SRE)
- 5 reference checklists — quick-reference material for testing, security, performance, accessibility, and reliability
- Validation pipeline — automated quality gates that enforce skill anatomy and cross-skill consistency
What this repository demands:
- Skills are mandatory, not optional
- Verification is non-negotiable
- "Seems right" is never sufficient
- Every assumption must be stated
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 - Data pipelines / ETL →
data-engineering - ML model deployment →
ai-ops - Cloud cost concerns →
cost-optimization - Resilience testing →
chaos-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 agents/README.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
Directory Structure
skills/
{skill-name}/ # kebab-case directory name
SKILL.md # Required: skill definition
scripts/ # Required: executable scripts
{script-name}.sh # Bash scripts (preferred)
{skill-name}.zip # Required: packaged for distributionNaming Conventions
- Skill directory:
kebab-case(e.g.web-quality) - SKILL.md: Always uppercase, always this exact filename
- Scripts:
kebab-case.sh(e.g.,deploy.sh,fetch-logs.sh) - Zip file: Must match directory name exactly:
{skill-name}.zip
SKILL.md Format
---
name: {skill-name}
description: {One sentence describing what the skill does, followed by one or more "Use when" trigger conditions. Include trigger phrases like "Deploy my app" or "Check logs" when helpful.}
---
# {Skill Title}
{Brief overview of what the skill does and why it matters.}
## How It Works
{Numbered list explaining the skill's workflow}
Equivalent headings like `Workflow`, `Core Process`, or `When to Use` are fine when they communicate the same structure clearly.
## Usage (Optional)
Include this section only if the skill ships runnable helpers under `scripts/`. Markdown-only skills can omit both the section and the directory entirely.
bash /mnt/skills/user/{skill-name}/scripts/{script}.sh [args]
**Arguments:**
- `arg1` - Description (defaults to X)
**Examples:**
{Show 2-3 common usage patterns}
## Output
{Show example output users will see}
## Present Results to User
{Template for how Claude should format results when presenting to users}
## Troubleshooting
{Common issues and solutions, especially network/permissions errors}Best Practices for Context Efficiency
Skills are loaded on-demand — only the skill name and description are loaded at startup. The full SKILL.md loads into context only when the agent decides the skill is relevant. To minimize context usage:
- Keep SKILL.md under 500 lines — put detailed reference material in separate files
- Write specific descriptions — helps the agent know exactly when to activate the skill
- Use progressive disclosure — reference supporting files that get read only when needed
- Prefer scripts over inline code — script execution doesn't consume context (only output does)
- File references work one level deep — link directly from SKILL.md to supporting files
Script Requirements
- Use
#!/bin/bashshebang - Use
set -efor fail-fast behavior - Write status messages to stderr:
echo "Message" >&2 - Write machine-readable output (JSON) to stdout
- Include a cleanup trap for temp files
- Reference the script path as
/mnt/skills/user/{skill-name}/scripts/{script}.sh
Creating the Zip Package
After creating or updating a skill:
cd skills
zip -r {skill-name}.zip {skill-name}/End-User Installation
Document these two installation methods for users:
Claude Code:
cp -r skills/{skill-name} ~/.claude/skills/claude.ai: Add the skill to project knowledge or paste SKILL.md contents into the conversation.
If the skill requires network access, instruct users to add required domains at claude.ai/settings/capabilities.
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.

