Tool
CLAUDE.md / AGENTS.md generator
A coding agent reads one file before it touches your repo. Answer a few questions about your stack and rules and get that file as markdown.
Tool
Start from
One or two sentences.
One item per line.
One command per line. Things an agent must not do on its own.
One rule per line.
What counts as done. One per line.
One per line.
One per line.
Generated file: CLAUDE.md
Rendered
my-app
A web app for tracking orders.
Stack
- TypeScript
- Next.js
- Postgres
Commands
- Package manager:
pnpm - Tests:
pnpm test - Lint:
pnpm lint && pnpm typecheck
Never run
pnpm buildrm -rfgit push --force
Branches and pull requests
- Work on a feature branch, never on main
- Open a pull request for every change
- Keep pull requests small and focused
Verification
- Run the tests and lint before saying a change is done
- Reproduce a bug before fixing it
- Report which checks ran and which did not
Secrets
- Never print or commit secrets
- Read them from environment variables
- Do not open .env files
Deploy
- Merging to main deploys automatically
- Do not deploy by hand
Raw text: CLAUDE.md
# my-app A web app for tracking orders. ## Stack - TypeScript - Next.js - Postgres ## Commands - Package manager: `pnpm` - Tests: `pnpm test` - Lint: `pnpm lint && pnpm typecheck` ## Never run - `pnpm build` - `rm -rf` - `git push --force` ## Branches and pull requests - Work on a feature branch, never on main - Open a pull request for every change - Keep pull requests small and focused ## Verification - Run the tests and lint before saying a change is done - Reproduce a bug before fixing it - Report which checks ran and which did not ## Secrets - Never print or commit secrets - Read them from environment variables - Do not open .env files ## Deploy - Merging to main deploys automatically - Do not deploy by hand
How it works and assumptions
The generator writes a Markdown file with the project name, a short description, the stack, the commands, the commands an agent must never run, branch and pull request rules, verification rules, secrets rules and deploy notes. Empty sections are left out. You can copy the result or download it as CLAUDE.md or AGENTS.md.
- The file is built from a fixed template. Empty fields are left out, so you only get sections you filled in.
- No AI is called. The text you type is placed as written, one line per bullet.
- Treat the output as a first draft. Keep it short, and add a rule only after an agent has broken it once.
Frequently asked questions
What is the difference between CLAUDE.md and AGENTS.md?
CLAUDE.md is the project instructions file that Claude Code reads. AGENTS.md is a similar plain-Markdown convention read by other coding agents. The content can be the same, so the generator lets you pick the file name.
What should a CLAUDE.md or AGENTS.md contain?
The commands to build, test and lint, the stack, the commands the agent must never run, how branches and pull requests work, what counts as done, and how secrets are handled. Keep it short and specific.
Where do I put the file?
In the root of the repository, so the agent loads it at the start of a session.
Related articles
Reading that goes with this tool.
- The review gates that let agents ship to production
Rules files, reproduce-before-fixing, checks that can fail and evidence in the pull request: the gates I rely on to merge agent-written code safely.
- Making a vibe-coded app production-ready: a checklist
A practical checklist for turning an AI-built app into a production-ready codebase: auth, secrets, data, tests, CI, observability, infrastructure, costs and agent rules.
- Running parallel agent sessions without chaos
One git worktree per session, no shared stash, feature branches only, clear file ownership and small pull requests: the habits that keep several coding agents from colliding.
- Leading a software team through the move to agent-built software
What changes for an engineering lead when agents write much of the code: review as the bottleneck, written rules, verification over trust, pacing and human accountability.