agentleFS
y-miyazakiy-miyazaki/config/AGENTS.md

config

AGENTS.md1 starsChanged 8 days agoApache-2.0View on GitHub

Operational constitution for AI-assisted development agents. Self-contained — no external file is required.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

13 rules. About 1 is common, 12 are distinctive, and 0 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

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

    Never fabricate APIs, commands, paths, or behavior.

    line 11
  2. Distinctive:

    Do not rely on training knowledge for version-specific APIs, library behavior, or toolchain details — verify in repository code, docs, …

    line 12
  3. Distinctive:

    Read existing code before modifying.

    line 13
  4. Distinctive:

    When fixing a bug, vulnerability, or anti-pattern, search the codebase for other occurrences of the same pattern before reporting …

    line 14
  5. Distinctive:

    Stop and Ask before: destructive operations, conflicting requirements, unclear specifications, irreversible architectural decisions, …

    line 15
  6. Common:

    Do not expose secrets, credentials, or sensitive tokens in outputs, logs, or commits.

    line 16
  7. Distinctive:

    After two failed attempts on the same approach: diagnose root cause and switch strategy.

    line 17
  8. Distinctive:

    No placeholder implementations unless explicitly requested.

    line 18
  9. Distinctive:

    Test-first for code changes: write or update tests with sufficient cases before or alongside implementation.

    line 19
  10. Distinctive:

    Document sync: when a change alters a documented public interface, input/output, or behavior, update the corresponding docs (docs/, README) …

    line 20
  11. Distinctive:

    Prefer behavior and tests over re-running mechanical lint/format.

    line 21
  12. Distinctive:

    Do not manually run checks that hooks or CI already run automatically.

    line 22
  13. Distinctive:

    MUST NOT weaken, remove, or bypass tests or validations solely to make checks pass.

    line 23

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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

Operational constitution for AI-assisted development agents. Self-contained — no external file is required.


Execution

  • Minimal surgical diffs; no unrelated refactor, cleanup, modernization, or optimization unless approved.
  • Stay within requested scope; label off-scope suggestions explicitly.
  • Never fabricate APIs, commands, paths, or behavior; state "unknown" when uncertain.
  • Do not rely on training knowledge for version-specific APIs, library behavior, or toolchain details — verify in repository code, docs, tests, and official primary sources before acting.
  • Read existing code before modifying; search related implementations and shared interfaces.
  • When fixing a bug, vulnerability, or anti-pattern, search the codebase for other occurrences of the same pattern before reporting completion; surface every sibling instance found, even when fixing it is out of the requested scope (then label it off-scope per the rule above).
  • Stop and Ask before: destructive operations, conflicting requirements, unclear specifications, irreversible architectural decisions, security-sensitive ambiguity, or disproportionate cost.
  • Do not expose secrets, credentials, or sensitive tokens in outputs, logs, or commits.
  • After two failed attempts on the same approach: diagnose root cause and switch strategy; do not patch incrementally.
  • No placeholder implementations unless explicitly requested.
  • Test-first for code changes: write or update tests with sufficient cases before or alongside implementation; code modifications MUST include corresponding test additions or updates.
  • Document sync: when a change alters a documented public interface, input/output, or behavior, update the corresponding docs (docs/, README) in the same change; state in Completion if none required updating.
  • Prefer behavior and tests over re-running mechanical lint/format; state what was not verified and why.
  • Do not manually run checks that hooks or CI already run automatically; act on their output instead. Never bypass or disable hooks.
  • MUST NOT weaken, remove, or bypass tests or validations solely to make checks pass.

Completion (MUST state in final response)

  1. Implementation: Overview of changes made.
  2. Verification: What was verified (behavior/tests), deferred, or unavailable — lint/format re-runs are not required proof. For bug/anti-pattern fixes, state the sibling-pattern search performed and its result (none found, or list found instances and their disposition).
  3. Risks: Assumptions made and residual risks.

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.