agentleFS
markoblogomarkoblogo/AGENTS.md_generator/AGENTS.md

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.

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

    Keep changes small and verifiable.

    line 10
  2. Distinctive:

    Prefer focused changes; use 300 changed lines as a review signal, not a hard limit.

    line 28
  3. Distinctive:

    Never discard user files, handwritten content, migrations, or data.

    line 29
  4. Common:

    Never hardcode tokens/keys.

    line 30
  5. Distinctive:

    Run side-effecting or destructive operations only with existing authorization.

    line 31
  6. Distinctive:

    Before changing these areas, confirm intent unless the current task already authorizes it:

    line 32
  7. Distinctive:

    Read the nearest instructions.

    line 44
  8. Distinctive:

    Verify the changed behavior with the narrowest useful evidence, then run broader checks appropriate to the change.

    line 47
  9. Distinctive:

    Update docs and contracts when behavior changes.

    line 48
  10. Distinctive:

    Run the repository's full test suite or the closest documented equivalent.

    line 55
  11. Distinctive:

    If a check cannot run, state why and name the remaining command.

    line 56
  12. Distinctive:

    Prefer direct code and explicit errors over new abstractions.

    line 63
  13. Common:

    Keep logs free of secrets and personal data.

    line 65
  14. Distinctive:

    Add types or comments where they clarify a public or non-obvious contract.

    line 66
  15. Distinctive:

    Add or update tests when behavior changes.

    line 75
  16. Distinctive:

    Run repo checks before finishing.

    line 76
  17. Distinctive:

    Do not rewrite unrelated code.

    line 79
  18. Distinctive:

    Do not refactor without confirming intent.

    line 80
  19. Common:

    Do not commit secrets or local env files.

    line 81
  20. Distinctive:

    Ask a short clarifying question before making big changes.

    line 84
  21. Distinctive:

    Prefer standard library where reasonable

    line 115
  22. Distinctive:

    Ensure CLI help output is clear and stable <!-- AGENTSGEN:END section=python -->

    line 116
  23. Distinctive:

    When you finish work, include:

    line 129

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

  1. Read the nearest instructions; inspect the current worktree and reproduce the behavior before editing.
  2. Isolate work when changes overlap or run concurrently; otherwise keep the workflow lightweight and preserve existing user changes.
  3. Implement the smallest coherent change. Reuse a service layer for genuinely shared mechanics; avoid speculative abstractions.
  4. 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.
  5. Update docs and contracts when behavior changes; distinguish local checks from CI, deployment, and release status.
  6. 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.

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.