agent-setup-bundle / templates
AGENTS.md0 starsChanged 3 months agoMITView on GitHub
This document establishes the machine-readable operational policy, tech stack conventions, and mandatory quality gates for AI coding agents operating in this repository. AI agents must use these exact commands. Do NOT guess package manager or CLI flags.
- Reads credentials
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 33,398 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 repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- core/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
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
- Distinctive: line 52
Modular Boundary Isolation: Never import database drivers or external API clients directly into UI components or pure domain models.
- Distinctive: line 53
Anti-Monolith Constraint: Keep individual files under ~150-200 lines.
- Very specific: line 54
Strict TypeScript & TDD: Never use any or delete functional code to satisfy type errors.
- Very specific: line 57
Environment Variables: Never commit secrets. Reference .env.example for all required environment variables.
≈ “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.
Files
Agent Context & Operational Policy (AGENTS.md)
<!-- Standardized by the Agentic AI Foundation (AAIF) -->This document establishes the machine-readable operational policy, tech stack conventions, and mandatory quality gates for AI coding agents operating in this repository.
1. Project Identity & Stack Architecture
- Project Name:
<project-name> - Domain / Description:
<1-2 sentence high-level overview of purpose> - Architecture Pattern:
<Clean Architecture | Modular Feature-Based | Monorepo | Microkernel> - Core Runtime & Stack:
- Language / Runtime:
<e.g. TypeScript 5.x / Node 22 / Python 3.12 / Rust 1.80> - Framework:
<e.g. Next.js 15 (App Router) | FastAPI | Axum> - Database & ORM:
<e.g. PostgreSQL + Drizzle ORM | SQLite + Prisma> - Styling & UI:
<e.g. Tailwind CSS v4 + Motion.dev>
- Language / Runtime:
2. Mandatory Commands (Executable Truth)
AI agents must use these exact commands. Do NOT guess package manager or CLI flags.
| Action | Command | Verification Signal |
| Install Dependencies | pnpm install | Exit code 0, pnpm-lock.yaml synced |
| Development Server | pnpm dev | Server listening on http://localhost:3000 |
| Production Build | pnpm build | Clean bundle in .next/ or dist/ |
| Run Unit / Integration Tests | pnpm test | All test suites passing |
| Typecheck (TypeScript Safety Gate) | npx tsc --noEmit | 0 errors |
| Linter & Formatter | pnpm lint | 0 lint violations |
3. Directory Topography & Module Boundaries
src/
├── app/ # Route handlers & React Server Components (Presentation/Entrypoint)
├── components/ # Presentational UI components (Atomic / Bento)
├── domain/ # Pure business models, types, and domain rules (Zero external dependencies)
├── services/ # Application services & business logic
├── adapters/ # External integration adapters (DB, 3rd party APIs)
└── lib/ # Shared utilities and helpers4. Invariants & Guardrails (Never-Do Rules)
- Modular Boundary Isolation: Never import database drivers or external API clients directly into UI components or pure domain models.
- Anti-Monolith Constraint: Keep individual files under ~150-200 lines. Refactor multi-concern files into dedicated submodules.
- Strict TypeScript & TDD: Never use
anyor delete functional code to satisfy type errors. Always write tests first for new business logic. - Context Engineering & Scratchpad Storage: Any tool output or test log exceeding 100 lines / 5 KB must be offloaded to
./scratch/. - Interactive Planning & Living Document Integrity: In all planning sessions (
/plan) and documentation updates, preserve discovered facts and unaffected sections; never perform destructive full-file rewrites. - Environment Variables: Never commit secrets. Reference
.env.examplefor all required environment variables.
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.

