VibeCode-PlayBook
AGENTS.md3 starsChanged 8 months agoMITView on GitHub
This repo is designed to improve agent coordination without wasting context. Always load context in this order: Do not bulk-load every doc. - prompt-engineer Turns rough asks into clear execution prompts and chooses the right agent sequence. - db Owns schema, migrations, queries, and persistence-layer contracts. - backend Owns APIs, business logic, validation, auth, and backend contracts. - frontend Owns UI, client behavior, accessibility, and frontend-side API integration. - devops Owns CI/CD pipelines, deployment safety, infrastructure configuration, and runtime operability…
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 repository2 other files it gives its agents.
- docs/llms-full.txtllms.txt
- docs/llms.txtllms.txt
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
15 rules. About 0 are common, 12 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
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
- Distinctive: line 7
Always load context in this order:
- Very specific: line 11
Only the specific agent_docs/*.md file needed for the task
- Distinctive: line 13
Do not bulk-load every doc.
- Distinctive: line 48
Use this unless the task is truly single-layer and low-risk.
- Distinctive: line 73
If a change affects contracts between layers, verify both sides.
- Distinctive: line 77
Prefer short durable docs over long repeated prompts.
- Very specific: line 78
Keep agent_docs/active_context.md current and compact.
- Distinctive: line 83
Do not restate the whole project in every prompt.
- Distinctive: line 84
Do not force frameworks or folder structures the repo does not already use.
- Distinctive: line 92
Verify before moving forward
- Distinctive: line 108
Never hand off with vague text like "check this".
- Distinctive: line 109
Always include reproducible validation steps.
- Distinctive: line 110
If blocked, explicitly state blocker and smallest unblock path.
- Distinctive: line 111
If contracts changed, handoff must call out impacted layers.
- Very specific: line 124
If the task is vague, start with prompt-engineer.
≈ “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
VibeCoders Playbook Agent Workflow
This repo is designed to improve agent coordination without wasting context.
Load Order
Always load context in this order:
AGENTS.mdagent_docs/active_context.md- Only the specific
agent_docs/*.mdfile needed for the task
Do not bulk-load every doc.
Team Roles
prompt-engineerTurns rough asks into clear execution prompts and chooses the right agent sequence.dbOwns schema, migrations, queries, and persistence-layer contracts.backendOwns APIs, business logic, validation, auth, and backend contracts.frontendOwns UI, client behavior, accessibility, and frontend-side API integration.devopsOwns CI/CD pipelines, deployment safety, infrastructure configuration, and runtime operability checks.testerVerifies the real runtime flow across layers.securityPerforms a paranoid security review for auth, permissions, secrets, input handling, and sensitive data exposure.legalPerforms a legal/compliance risk review for privacy, consent, policy-sensitive flows, retention, and risky product claims.reviewerPerforms the final regression and risk review.
Default Flow
prompt-engineer -> owning agent(s) -> tester -> reviewer
Use this unless the task is truly single-layer and low-risk.
For security-sensitive work:
prompt-engineer -> owning agent(s) -> tester -> security -> reviewer
For legal/compliance-sensitive work:
prompt-engineer -> owning agent(s) -> tester -> legal -> reviewer
For deployment or infra-sensitive work:
prompt-engineer -> owning agent(s) -> tester -> devops -> reviewer
Ownership Rules
dbfor schema or persistence changesbackendfor API or business-logic changesfrontendfor UI or client-state changesdevopsfor CI/CD, deployment, environment, and infrastructure delivery changestesterafter implementationsecurityfor auth, secrets, access control, uploads, risky integrations, or sensitive data flowslegalfor privacy, consent, analytics, retention, AI disclosures, policy-sensitive copy, or regulated/sensitive flowsreviewerbefore calling work done
If a change affects contracts between layers, verify both sides.
Token Efficiency Rules
- Prefer short durable docs over long repeated prompts.
- Keep
agent_docs/active_context.mdcurrent and compact. - Record durable project facts in
agent_docs/project_brief.md. - Record stack and commands in
agent_docs/tech_stack.md. - Record real verification steps in
agent_docs/verification.md. - Record important decisions in
agent_docs/decisions.md. - Do not restate the whole project in every prompt.
- Do not force frameworks or folder structures the repo does not already use.
Plan -> Execute -> Verify
For any meaningful task:
- Plan the smallest useful pass
- Execute only that pass
- Verify before moving forward
Inter-Agent Handoff Contract
To make agents collaborate reliably, each handoff must include:
goal: what the next agent must achievescope: exact files/symbols/flows in scopechanges: what was changed (or investigated) so farevidence: commands/tests/results that support the current staterisks: known risks, assumptions, and open questionsnext-owner: exact next agent role and whydone-criteria: objective checks required before final sign-off
Handoff quality rules:
- Never hand off with vague text like "check this".
- Always include reproducible validation steps.
- If blocked, explicitly state blocker and smallest unblock path.
- If contracts changed, handoff must call out impacted layers.
Definition of Done
A task is only done when:
- the owning layer change is correct
- the runtime behavior is validated when relevant
- contract mismatches are checked
- reviewer-level risks are acceptable
Key Rule
If the task is vague, start with prompt-engineer.
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.

