agentleFS
KangaKodeKangaKode/universal-agent-workflow-template/AGENTS.md

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

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
  1. Very specific:

    Startup: Read AGENT_GUIDE.md (Cursor IDE) or CHATGPT.md (paste-context workflow) for project context.

    line 39
  2. Very specific:

    Cleanup: Run make check and, after adding project tests, make test.

    line 43
  3. Very specific:

    Do not skip design docs. The Worker Gate requires docs/designs/<feature>/ before any source code.

    line 74
  4. Distinctive:

    Do not create files over 500 lines.

    line 75
  5. Very specific:

    Do not commit .env files or API keys.

    line 76
  6. Distinctive:

    Do not use raw dicts across layer boundaries.

    line 77
  7. Distinctive:

    Do not add composite scores or derived classifications in data layers.

    line 78

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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

AGENTS.md — Repository Map

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.

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 pipeline

Session 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

NeedRead
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 startSTART_HERE.md
Product brief templatedocs/templates/PRODUCT_BRIEF.md
Engineer handoff templatedocs/templates/ENGINEER_HANDOFF.md
Vibe-coding smellsdocs/VIBE_CODING_SMELLS.md
Architecture/layersdocs/ARCHITECTURE.md
Coding conventionsdocs/CONVENTIONS.md
Feature design docsdocs/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 .env files 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.

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.