agentleFS
Gzyms69Gzyms69/agent-setup-bundle/templates/AGENTS.md

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.

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

    Modular Boundary Isolation: Never import database drivers or external API clients directly into UI components or pure domain models.

    line 52
  2. Distinctive:

    Anti-Monolith Constraint: Keep individual files under ~150-200 lines.

    line 53
  3. Very specific:

    Strict TypeScript & TDD: Never use any or delete functional code to satisfy type errors.

    line 54
  4. Very specific:

    Environment Variables: Never commit secrets. Reference .env.example for all required environment variables.

    line 57

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

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>

2. Mandatory Commands (Executable Truth)

AI agents must use these exact commands. Do NOT guess package manager or CLI flags.

ActionCommandVerification Signal
Install Dependenciespnpm installExit code 0, pnpm-lock.yaml synced
Development Serverpnpm devServer listening on http://localhost:3000
Production Buildpnpm buildClean bundle in .next/ or dist/
Run Unit / Integration Testspnpm testAll test suites passing
Typecheck (TypeScript Safety Gate)npx tsc --noEmit0 errors
Linter & Formatterpnpm lint0 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 helpers

4. Invariants & Guardrails (Never-Do Rules)

  1. Modular Boundary Isolation: Never import database drivers or external API clients directly into UI components or pure domain models.
  2. Anti-Monolith Constraint: Keep individual files under ~150-200 lines. Refactor multi-concern files into dedicated submodules.
  3. Strict TypeScript & TDD: Never use any or delete functional code to satisfy type errors. Always write tests first for new business logic.
  4. Context Engineering & Scratchpad Storage: Any tool output or test log exceeding 100 lines / 5 KB must be offloaded to ./scratch/.
  5. 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.
  6. Environment Variables: Never commit secrets. Reference .env.example for all required environment variables.

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.