agentleFS
YoussefSelkYoussefSelk/VibeCode-PlayBook/AGENTS.md

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.

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

    Always load context in this order:

    line 7
  2. Very specific:

    Only the specific agent_docs/*.md file needed for the task

    line 11
  3. Distinctive:

    Do not bulk-load every doc.

    line 13
  4. Distinctive:

    Use this unless the task is truly single-layer and low-risk.

    line 48
  5. Distinctive:

    If a change affects contracts between layers, verify both sides.

    line 73
  6. Distinctive:

    Prefer short durable docs over long repeated prompts.

    line 77
  7. Very specific:

    Keep agent_docs/active_context.md current and compact.

    line 78
  8. Distinctive:

    Do not restate the whole project in every prompt.

    line 83
  9. Distinctive:

    Do not force frameworks or folder structures the repo does not already use.

    line 84
  10. Distinctive:

    Verify before moving forward

    line 92
  11. Distinctive:

    Never hand off with vague text like "check this".

    line 108
  12. Distinctive:

    Always include reproducible validation steps.

    line 109
  13. Distinctive:

    If blocked, explicitly state blocker and smallest unblock path.

    line 110
  14. Distinctive:

    If contracts changed, handoff must call out impacted layers.

    line 111
  15. Very specific:

    If the task is vague, start with prompt-engineer.

    line 124

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

VibeCoders Playbook Agent Workflow

This repo is designed to improve agent coordination without wasting context.

Load Order

Always load context in this order:

  1. AGENTS.md
  2. agent_docs/active_context.md
  3. Only the specific agent_docs/*.md file needed for the task

Do not bulk-load every doc.

Team Roles

  • 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 checks.
  • tester Verifies the real runtime flow across layers.
  • security Performs a paranoid security review for auth, permissions, secrets, input handling, and sensitive data exposure.
  • legal Performs a legal/compliance risk review for privacy, consent, policy-sensitive flows, retention, and risky product claims.
  • reviewer Performs 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

  • db for schema or persistence changes
  • backend for API or business-logic changes
  • frontend for UI or client-state changes
  • devops for CI/CD, deployment, environment, and infrastructure delivery changes
  • tester after implementation
  • security for auth, secrets, access control, uploads, risky integrations, or sensitive data flows
  • legal for privacy, consent, analytics, retention, AI disclosures, policy-sensitive copy, or regulated/sensitive flows
  • reviewer before 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.md current 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:

  1. Plan the smallest useful pass
  2. Execute only that pass
  3. Verify before moving forward

Inter-Agent Handoff Contract

To make agents collaborate reliably, each handoff must include:

  • goal: what the next agent must achieve
  • scope: exact files/symbols/flows in scope
  • changes: what was changed (or investigated) so far
  • evidence: commands/tests/results that support the current state
  • risks: known risks, assumptions, and open questions
  • next-owner: exact next agent role and why
  • done-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.

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.