frontend-eng-team
AGENTS.md8 starsChanged 4 months agoMITView on GitHub
Source of truth: All role definitions live in .agents/roles/. This file is the cross-tool entry point — Claude Code, Copilot, and any other AI agent should start here and load the canonical contracts from .agents/. The six roles in the multi-agent pipeline are defined in .agents/roles/. Two of them are conditional — the pipeline skips them when the task does not warrant the extra cost. The full pipeline is orchestrated in .agents/pipeline.md: 0. Task classification — type (feature | bugfix…
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,196 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 repository6 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ai-dev-workflowCopilot instructions
- component-conventionsSkill
- loop-engineeringSkill
- pm-clarifySkill
- pr-prepSkill
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 77
Every phase runs an RCC self-critique inner loop (max 3 iterations) and appends a summary to .agents/memory/*.jsonl — downstream phases …
- Distinctive: line 91
All memory files are gitignored by default — they are personal workspace, not team-shared.
- Very specific: line 199
All roles enforce .agents/conventions.md (loaded once as canonical non-negotiables.
- Very specific: line 222
Every phase appends a JSONL summary to .agents/memory/.
≈ “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
Agent Role Contracts
Source of truth: All role definitions live in
.agents/roles/. This file is the cross-tool entry point — Claude Code, Copilot, and any other AI agent should start here and load the canonical contracts from.agents/.
Canonical role definitions
The six roles in the multi-agent pipeline are defined in .agents/roles/.
Two of them are conditional — the pipeline skips them when the task does not
warrant the extra cost.
PM
- Purpose: Turns fuzzy feature requests into precise PRDs (Problem, Scope, Acceptance criteria, Success metrics)
- Activation:
/pmin Claude Code, or load the role file into any other tool - When: New features only. Skipped for bug fixes, refactors, chores, docs.
- Artifact:
branch-prd.mdat project root (transient, gitignored) - Clarify escalation:
/pm-clarify— devs/testers ask questions grounded in the PRD, escalate to human PM only when the PRD does not cover it
Architect
- Purpose: Decomposes tasks into structured implementation plans
- Activation:
/architectin Claude Code, or load the role file into any other tool - Key traits: Systems thinking, precision, skepticism of complexity, tags
the plan with
sensitive:*when the change touches high-risk surfaces - Loop: RCC self-critique, max 3 iterations
Implementer
- Purpose: Executes plans with expert-level craft
- Activation:
/implementin Claude Code, or load the role file into any other tool - Key traits: Precision, discipline, production-grade code
- Loop: RCC self-critique, max 3 iterations
Reviewer
- Purpose: Provides structured, actionable feedback — including baked-in
Security and SRE basics (tokens in
localStorage, silent catches, missing timeouts, missinguseEffectcleanup) - Activation:
/reviewin Claude Code, or load the role file into any other tool - Key traits: Staff-level review experience, teaching focus
Prod-Readiness — conditional
- Purpose: Dedicated Security + SRE pass with a 10-item checklist
- Activation: Invoked automatically by the pipeline only when the plan
carries a
sensitive:*tag (sensitive:security,sensitive:auth,sensitive:pii,sensitive:payments,sensitive:network,sensitive:reliability). Backed by theprod-readinesshaiku subagent. - Verdict: PASS / CONCERNS / BLOCK
Verifier
- Purpose: Quality gate with a 10-bucket checklist (plan coverage, tooling gates, conventions, tests, constraints+structure, PR size, accessibility, performance, production+security/SRE, prod-readiness handoff). FAIL expands sub-item detail.
- Activation:
/verifyin Claude Code, or load the role file into any other tool - Key traits: Evidence-based verification, production readiness
Pipeline orchestration
The full pipeline is orchestrated in .agents/pipeline.md:
- Task classification — type (feature | bugfix | refactor | chore | docs)
and sensitivity (
sensitive:*tags). Determines which phases fire. - Phase 0 — PM: produces the PRD (features only)
- PRD approval gate: human reviews and explicitly approves (only if PM ran)
- Phase 1 — Architect: produces the structured plan, tags it sensitive when applicable
- Plan approval gate: human reviews and explicitly approves the plan
- Phase 2 — Implementer: executes the approved plan
- Phase 3 — Reviewer: provides feedback on the implementation
- Phase 3.5 — Prod-Readiness: Security + SRE deep pass — only if plan has
sensitive:*tag - Phase 4 — Verifier: runs the 10-bucket checklist for the final PASS/FAIL gate
- Outer loop: on FAIL, return to the Implementer with a prioritized issue list (max 3 outer iterations)
Every phase runs an RCC self-critique inner loop (max 3 iterations) and appends
a summary to .agents/memory/*.jsonl — downstream phases read the summaries
first to save tokens.
Memory
Persistent JSONL memory lives in .agents/memory/:
- Schema:
.agents/memory/schema.md - Append helper:
.agents/memory/append.sh <file> <phase> <iter> <status> <summary> [flags] - Files:
prd.jsonl,plans.jsonl,implementations.jsonl,reviews.jsonl,prod_readiness.jsonl,verifications.jsonl,clarifications.jsonl - All memory files are gitignored by default — they are personal workspace, not team-shared. Committing them is opt-in per team.
Downstream phases read summaries with grep:
grep "\"branch\":\"$(git rev-parse --abbrev-ref HEAD)\"" .agents/memory/plans.jsonl | tail -1Open full artifacts only when a summary is insufficient. This is where the token savings compound over the life of a branch.
How to activate the agents
Claude Code
Slash commands are wired to the canonical definitions:
/pipeline [task] # Full pipeline orchestration with approval gates
/pm [task] # PM role — features only
/pm-clarify [question]# Dev/tester PRD clarification
/architect [task] # Architect role only
/implement # Execute the Architect's plan
/review # Review the Implementer's changes
/verify # Run the 10-bucket quality gateEach Claude Code command file in .claude/commands/ reads the matching .agents/roles/*.md
and follows its contract exactly.
Copilot
See .github/copilot-instructions.md for the
end-to-end paste-driven workflow. In short:
- Open the relevant
.agents/roles/<role>.mdfile. - Paste its contents into the Copilot chat with the directive: "Activate this role and follow its contract."
- Provide the task (or the prior phase's output) as input.
Other AI tools
Any tool that supports a project-level instruction file (the AGENTS.md convention)
will land here first. Treat this file as a router: load the role files in .agents/roles/
and the orchestration in .agents/pipeline.md, follow the contracts as written, and
read CLAUDE.md for project constraints before producing code.
File map
.agents/ ← Canonical role definitions (source of truth)
README.md (overview and usage guide)
pipeline.md (orchestrator — phases, gates, RCC, JSONL hooks)
conventions.md (canonical non-negotiables — TS/React/HTTP/styling/testing/a11y/perf/security)
roles/
pm.md (new — features only)
architect.md
implementer.md
reviewer.md
prod-readiness.md (new — conditional, invoked on sensitive:* tags)
verifier.md
memory/ (new — JSONL persistence; gitignored)
schema.md
append.sh
prd.jsonl, plans.jsonl, ... (created on demand by append.sh)
.claude/commands/ ← Claude Code entry points (delegate to .agents/)
pipeline.md
pm.md (new)
pm-clarify.md (new — thin invoker for the skill)
architect.md
implement.md
review.md
verify.md
agents/ ← Versioned subagents (plugin)
repo-explorer.md (haiku)
frontend-reviewer.md (sonnet)
test-runner.md (haiku)
verifier.md (sonnet, 10-bucket checklist)
prod-readiness.md (haiku, conditional)
skills/ ← Versioned skills (plugin + skills.sh)
component-conventions/
pr-prep/
pm-clarify/
loop-engineering/
.claude-plugin/ ← Plugin + marketplace manifests
plugin.json
marketplace.json
.github/copilot-instructions.md ← Copilot entry point (paste workflow for .agents/)
AGENTS.md ← This file — generic multi-tool entry point
CLAUDE.md ← Project identity, rules, conventions
branch-prd.md ← Transient PRD artifact (gitignored, features only)
branch-plan.md ← Transient plan artifact (gitignored)Handoff flow
All roles enforce .agents/conventions.md (loaded once as canonical
non-negotiables; subagents that do not inherit CLAUDE.md load it explicitly).
Task
↓ [classify: type + sensitivity]
↓
PM (features only) → branch-prd.md → [PRD APPROVAL GATE — human]
↓
ARCHITECT (RCC inner loop) → branch-plan.md (with sensitive:* tags) → [PLAN APPROVAL GATE — human]
↓
IMPLEMENTER (RCC inner loop) → changed files
↓
REVIEWER (baked-in Security/SRE basics) → structured feedback
↓
PROD-READINESS (only if plan tagged sensitive:*) → PASS/CONCERNS/BLOCK
↓ BLOCK → back to IMPLEMENTER (counts against outer 3-iteration cap)
↓ PASS/CONCERNS ↓
VERIFIER (10-bucket checklist) → PASS or FAIL
↓ PASS → human approves merge
↓ FAIL → back to IMPLEMENTER (outer loop, max 3 iterations)Every phase appends a JSONL summary to .agents/memory/. Downstream phases
read summaries first, artifacts second. This is the token discipline that
keeps the pipeline cheap over a branch's lifecycle.
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.

