AGENTS.md_generator
AGENTS.md5 starsChanged 3 months agoMITView on GitHub
This file is for coding agents (Codex/Claude/Cursor/etc.). Keep it strict and actionable. - Project: AGENTS.md Generator - Stack: python - Root: . - Start with: - README.md - CI: .github/workflows/ <!-- AGENTSGEN:END section=repo_context --> - Work only within the requested scope and preserve local conventions. - Prefer focused changes; use 300 changed lines as a review signal, not a hard limit. - Never discard user files, handwritten content, migrations, or data. - Never hardcode tokens/keys. Never print secrets; document required…
- Installs packages
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 repository2 other files it gives its agents.
- docs/llms.txtllms.txt
- llms.txtllms.txt
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
23 rules. About 3 are common, 20 are distinctive, and 0 are very specific to this project.
≈3
Common · estimate
Many files like this have a rule of this kind.
≈20
Distinctive · estimate
This author's own choices. Worth a look.
0
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 10
Keep changes small and verifiable.
- Distinctive: line 28
Prefer focused changes; use 300 changed lines as a review signal, not a hard limit.
- Distinctive: line 29
Never discard user files, handwritten content, migrations, or data.
- Common: line 30
Never hardcode tokens/keys.
- Distinctive: line 31
Run side-effecting or destructive operations only with existing authorization.
- Distinctive: line 32
Before changing these areas, confirm intent unless the current task already authorizes it:
- Distinctive: line 44
Read the nearest instructions.
- Distinctive: line 47
Verify the changed behavior with the narrowest useful evidence, then run broader checks appropriate to the change.
- Distinctive: line 48
Update docs and contracts when behavior changes.
- Distinctive: line 55
Run the repository's full test suite or the closest documented equivalent.
- Distinctive: line 56
If a check cannot run, state why and name the remaining command.
- Distinctive: line 63
Prefer direct code and explicit errors over new abstractions.
- Common: line 65
Keep logs free of secrets and personal data.
- Distinctive: line 66
Add types or comments where they clarify a public or non-obvious contract.
- Distinctive: line 75
Add or update tests when behavior changes.
- Distinctive: line 76
Run repo checks before finishing.
- Distinctive: line 79
Do not rewrite unrelated code.
- Distinctive: line 80
Do not refactor without confirming intent.
- Common: line 81
Do not commit secrets or local env files.
- Distinctive: line 84
Ask a short clarifying question before making big changes.
- Distinctive: line 115
Prefer standard library where reasonable
- Distinctive: line 116
Ensure CLI help output is clear and stable <!-- AGENTSGEN:END section=python -->
- Distinctive: line 129
When you finish work, include:
≈ “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
This file is for coding agents (Codex/Claude/Cursor/etc.). Keep it strict and actionable.
Overview
<!-- AGENTSGEN:START section=overview -->- Project: AGENTS.md Generator
- Stack: python (vanilla)
- Keep changes small and verifiable.
<!-- AGENTSGEN:END section=overview --><!-- AGENTSGEN:START section=repo_context -->Repo context
- Project: AGENTS.md Generator
- Stack: python
- Root:
. - Start with:
README.md
- CI:
.github/workflows/
<!-- AGENTSGEN:END section=repo_context --><!-- AGENTSGEN:START section=guardrails -->Guardrails
- Work only within the requested scope and preserve local conventions.
- Prefer focused changes; use 300 changed lines as a review signal, not a hard limit.
- Never discard user files, handwritten content, migrations, or data.
- Never hardcode tokens/keys. Never print secrets; document required environment-variable names.
- Run side-effecting or destructive operations only with existing authorization.
- Before changing these areas, confirm intent unless the current task already authorizes it:
- schema changes
- auth/payments/crypto
- deletions or large refactors
- new build tooling/CI changes
- new major dependencies
- A change is complete when behavior, relevant tests, and affected docs agree.
<!-- AGENTSGEN:END section=guardrails --><!-- AGENTSGEN:START section=workflow -->Workflow
- Read the nearest instructions; inspect the current worktree and reproduce the behavior before editing.
- Isolate work when changes overlap or run concurrently; otherwise keep the workflow lightweight and preserve existing user changes.
- Implement the smallest coherent change. Reuse a service layer for genuinely shared mechanics; avoid speculative abstractions.
- Verify the changed behavior with the narrowest useful evidence, then run broader checks appropriate to the change. For visual changes, compare the same important view/state before and after when feasible.
- Update docs and contracts when behavior changes; distinguish local checks from CI, deployment, and release status.
- Report what changed, what evidence passed, and any material limitation. Do not commit, push, or deploy unless requested.
<!-- AGENTSGEN:END section=workflow --><!-- AGENTSGEN:START section=verification -->Verification
- Run the repository's full test suite or the closest documented equivalent.
- If a check cannot run, state why and name the remaining command.
<!-- AGENTSGEN:END section=verification --><!-- AGENTSGEN:START section=style -->Style (python)
- Match existing naming, formatting, and module boundaries.
- Prefer direct code and explicit errors over new abstractions.
- Validate external input at system boundaries.
- Keep logs free of secrets and personal data.
- Add types or comments where they clarify a public or non-obvious contract.
- Reuse current dependencies unless a new one materially reduces complexity.
<!-- AGENTSGEN:END section=style -->Rules Of Engagement
<!-- AGENTSGEN:START section=rules -->DO
- Prefer small diffs.
- Add or update tests when behavior changes.
- Run repo checks before finishing.
DON'T
- Do not rewrite unrelated code.
- Do not refactor without confirming intent.
- Do not commit secrets or local env files.
If uncertain
- Ask a short clarifying question before making big changes.
Warnings
- (none)
<!-- AGENTSGEN:END section=rules -->Commands
<!-- AGENTSGEN:START section=commands -->- Test:
make test - Lint:
make lint - Format:
make format - Run a single test: (not specified)
- Where configs live:
.github/workflows/,Makefile,pyproject.toml
<!-- AGENTSGEN:END section=commands --><!-- AGENTSGEN:START section=python -->Python project notes
Local setup
- Create venv:
python -m venv .venv && source .venv/bin/activate - Install:
pip install -e .
Common commands
- Tests:
pytest - Lint:
ruff check . - Format:
ruff format .
Packaging expectations
- Keep dependencies minimal
- Prefer standard library where reasonable
- Ensure CLI help output is clear and stable
<!-- AGENTSGEN:END section=python -->Repo Structure
<!-- AGENTSGEN:START section=structure -->- Source:
src - Config:
.github/workflows/,Makefile,pyproject.toml
<!-- AGENTSGEN:END section=structure -->Output Protocol
<!-- AGENTSGEN:START section=output_protocol -->When you finish work, include:
- Summary (1-3 bullets)
- Files changed (list paths)
- Verification (exact commands to run)
<!-- AGENTSGEN:END section=output_protocol -->Maintainer reference: docs/agent-guidelines.md contains optional review guidance.
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.

