universal-agent-workflow-template
AGENTS.md0 starsChanged 7 months agoMITView on GitHub
Orientation file. Read this first to understand what this repo is and where things live. Then read AGENT_GUIDE.md for how to work in this codebase. [Project Name] — [One sentence description of the project] Owner: [Your name] Stack: [e.g., Python 3.13+, FastAPI, PostgreSQL, etc.] Status: [e.g., Active development / Production] Startup: Read AGENT_GUIDE.md (Cursor IDE) or CHATGPT.md (paste-context workflow) for project context. For non-engineer POCs, start with START_HERE.md. Run make check to confirm template health. Work: Pick one task. Follow…
- Reads credentials
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 repository8 other files it gives its agents.
- .cursor/rules/code-reviewer.mdcCursor rule
- .cursor/rules/debugger.mdcCursor rule
- .cursor/rules/expert-review.mdcCursor rule
- .cursor/rules/minimalist.mdcCursor rule
- .cursor/rules/red-team.mdcCursor rule
- .cursor/rules/test-first.mdcCursor rule
- .cursor/rules/worker-gate.mdcCursor rule
- code-reviewSkill
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 39
Startup: Read AGENT_GUIDE.md (Cursor IDE) or CHATGPT.md (paste-context workflow) for project context.
- Very specific: line 43
Cleanup: Run make check and, after adding project tests, make test.
- Very specific: line 74
Do not skip design docs. The Worker Gate requires docs/designs/<feature>/ before any source code.
- Distinctive: line 75
Do not create files over 500 lines.
- Very specific: line 76
Do not commit .env files or API keys.
- Distinctive: line 77
Do not use raw dicts across layer boundaries.
- Distinctive: line 78
Do not add composite scores or derived classifications in data layers.
≈ “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 — Repository Map
Orientation file. Read this first to understand what this repo is and where things live. Then read
AGENT_GUIDE.mdfor how to work in this codebase.
What This Repo Is
[Project Name] — [One sentence description of the project]
Owner: [Your name] Stack: [e.g., Python 3.13+, FastAPI, PostgreSQL, etc.] Status: [e.g., Active development / Production]
Directory Map
[project-root]/
AGENTS.md <-- You are here
AGENT_GUIDE.md <-- Agent session guide (all Cursor models)
CHATGPT.md <-- Agent session guide (ChatGPT/Codex users)
src/[package]/ <-- Source code
[module1]/ <-- [Brief description]
[module2]/ <-- [Brief description]
tests/ <-- Test suite
docs/ <-- Documentation
designs/ <-- Feature design docs (Worker Gate artifacts)
scripts/ <-- Hooks, utilities
hooks/ <-- Pre-commit enforcement scripts
.cursor/
agents/ <-- 23 specialist agent definitions
rules/ <-- Cursor rules (always-on gates)
.github/workflows/ <-- CI pipelineSession Protocol
Startup: Read AGENT_GUIDE.md (Cursor IDE) or CHATGPT.md (paste-context workflow) for project context. For non-engineer POCs, start with START_HERE.md. Run make check to confirm template health.
Work: Pick one task. Follow the Worker Gate protocol — design docs before any source code. For handoff-bound POCs, fill the product brief first and complete the engineer handoff packet before review.
Cleanup: Run make check and, after adding project tests, make test. For completed POCs, run make validate-handoff HANDOFF=<path>. Git commit with descriptive message.
Expert Review Process
Standard quality gate: 8-expert, 2-wave deliberation defined in .cursor/rules/expert-review.mdc.
- Wave 1 (security): Red Team, Security Hardener, Code Reviewer, Data Flow Guardian
- Wave 2 (architecture): Solution Architect, Test Architect, Compliance Auditor, Infrastructure Engineer
- Wave 3 (synthesis): PM deduplicates, severity-ranks, produces batched fix plan
Invoke after shipping 5+ features, before staging/production, or after SAST fixes.
Where to Find What
| Need | Read |
| Worker Gate protocol | .cursor/rules/worker-gate.mdc |
| Test-first protocol | .cursor/rules/test-first.mdc |
| Security checks | .cursor/rules/red-team.mdc |
| Code review checklist | .cursor/rules/code-reviewer.mdc |
| Expert review protocol | .cursor/rules/expert-review.mdc |
| Non-engineer POC start | START_HERE.md |
| Product brief template | docs/templates/PRODUCT_BRIEF.md |
| Engineer handoff template | docs/templates/ENGINEER_HANDOFF.md |
| Vibe-coding smells | docs/VIBE_CODING_SMELLS.md |
| Architecture/layers | docs/ARCHITECTURE.md |
| Coding conventions | docs/CONVENTIONS.md |
| Feature design docs | docs/designs/ |
What Not to Do
- Do not skip design docs. The Worker Gate requires
docs/designs/<feature>/before any source code. - Do not create files over 500 lines. Split into modules.
- Do not commit
.envfiles or API keys. Use environment variables. - Do not use raw dicts across layer boundaries. Parse into typed models at the boundary.
- Do not add composite scores or derived classifications in data layers. Surface raw data; let higher layers decide.
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.

