agentleFS
WhiteBiteWhiteBite/repo-aeo/AGENTS.md

repo-aeo

AGENTS.md2 starsChanged 2 months agoMITView on GitHub

Operational instructions for coding agents (Codex, Cursor, OpenCode, Claude Code). Drafted by rdk fix, then reviewed and extended by hand — verify every command before relying on it. Fully generated instruction files are known to reduce task success, so treat this document as a reviewed contract, not a template. Project: repo-aeo — Repo Discoverability Kit (RDK). There is no build step: the CLI is plain ESM JavaScript for Node >= 18 with zero runtime dependencies. npm test is the full…

  • 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 35,266 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

6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    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. Very specific:

    Never invent tool output strings — silent store state goes in the hud annotation.

    line 76
  2. Very specific:

    Do run npm test before committing.

    line 103
  3. Very specific:

    Do keep packages/repo-aeo-mcp free of runtime dependencies too: it reuses repo-aeo for the engine and implements the MCP transport itself.

    line 106
  4. Very specific:

    Do keep .discoverability/project.yml and packages/rdk-cli/package.json in sync — rdk audit compares them.

    line 109
  5. Very specific:

    Do add a new check as a declarative entry in the matching src/audit/checks/*.js module, with why/fix text that a non-author can act on.

    line 111
  6. Very specific:

    Don't: add runtime dependencies to packages/rdk-cli without discussing it: zero dependencies is a deliberate product property (npx stays …

    line 113

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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 instructions for coding agents (Codex, Cursor, OpenCode, Claude Code). Drafted by rdk fix, then reviewed and extended by hand — verify every command before relying on it. Fully generated instruction files are known to reduce task success, so treat this document as a reviewed contract, not a template.

Project: repo-aeo — Repo Discoverability Kit (RDK).

Commands

npm test                                  # node --test "packages/*/test/*.test.js"
node packages/rdk-cli/bin/rdk.js audit    # discoverability audit (offline, read-only)
node packages/rdk-cli/bin/rdk.js audit --online   # adds link checks + GitHub API reads
node packages/rdk-cli/bin/rdk.js fix --dry-run    # preview safe autofixes
node packages/rdk-cli/bin/rdk.js fix --apply      # write the safe autofixes
node packages/rdk-cli/bin/rdk.js npm-surface      # package.json publish surface
node packages/rdk-cli/bin/rdk.js track           # campaign dashboard: live status, adopt, sync
node packages/repo-aeo-mcp/bin/repo-aeo-mcp.js score   # MCP server in CLI mode (score + trend)
node packages/repo-aeo-mcp/bin/repo-aeo-mcp.js serve   # MCP server on stdio

There is no build step: the CLI is plain ESM JavaScript for Node >= 18 with zero runtime dependencies. npm test is the full gate. There is no separate lint step yet — keep the style of the file you are editing and run npm test after every change.

Repository map

PathPurpose
packages/rdk-cli/src/yaml.jsdependency-free YAML subset parser
packages/rdk-cli/src/config.js.discoverability/project.yml loading, defaults, seeding
packages/rdk-cli/src/audit/checks/one module per axis; each check is declarative
packages/rdk-cli/src/audit/score.jsaxis weights and the 0–100 model
packages/rdk-cli/src/fix/patches.jsidempotent safe autofix patches
packages/rdk-cli/src/generate/index.jsdeterministic artifact generators
packages/rdk-cli/src/commands/CLI commands (init, audit, fix, npm-surface, github-sync, skill)
packages/repo-aeo-mcp/src/tools.jsthe 9 MCP tools; every tool is read-only except the guarded sync
packages/repo-aeo-mcp/src/history.jsmetric history in .discoverability/cache/metrics.json (trends)
packages/repo-aeo-mcp/src/server.jsdependency-free MCP stdio JSON-RPC 2.0 transport
skills/repo-discoverability/the agent skill (SKILL.md + references)
.github/workflows/CI: the PR discoverability audit (dogfoods the marketplace action) and the tag-driven release
fixtures/demo-repo/the before/after demo repo used by tests and REPORT.md
.discoverability/project.ymlsource of truth for this repository's metadata

Demo visuals (skill-owned subsystem)

The before/after demo images and GIFs are produced by a skill-owned pipeline, not by the CLI. skills/repo-discoverability/scripts/demo-terminal.html is the locked template (surfaces terminal/files/shots/single, blocks incl. gate, divider and the hud strip); skills/repo-discoverability/scripts/hero.html is the locked banner template for kind: "hero" hero docs validated by validateHero in packages/rdk-cli/src/util/slot-validate.js; render-demo.mjs is the zero-dep preparer (--prepare, --frames, --from-command); rasterize.mjs is the on-demand rasterizer that needs a scratch playwright-core; check-slot.mjs plus packages/rdk-cli/src/util/slot-validate.js are the schema gate wired into npm test; check-typography.mjs enforces display >=48 / text >=15 / micro

=13 in the same suite; skills/repo-discoverability/evals/surface-choice.json holds the surface-choice evals; references/visual-assets.md is the authoring contract.

Invariants:

  • rdk-cli and repo-aeo-mcp keep zero runtime dependencies; playwright-core is an on-demand scratch install outside the repo.
  • The repo never writes binary assets from src/ — agents commit assets per target repo.
  • GIF frame delay floor is 0.02s: browsers clamp sub-20ms delays to 100ms.
  • Asset budget ~1.5MB.
  • Body text in a locked template is >= 15px, micro text >= 13px; check-typography.mjs fails the suite otherwise.
  • Typed lines grow 2-3 chars at 0.03s; streamed outputs arrive whole/word chunks.
  • Never invent tool output strings — silent store state goes in the hud annotation.

Authoring rules live in references/visual-assets.md, not here.

Distribution tracking

node packages/rdk-cli/bin/rdk.js channels          # where to publish (read-only)
node packages/rdk-cli/bin/rdk.js track             # campaign dashboard over .discoverability/submissions.json
node packages/rdk-cli/bin/rdk.js track --json      # canonical status object (schema rdk-distribution/1)
node packages/rdk-cli/bin/rdk.js track --adopt     # pull pre-ledger rdk/* PRs into the ledger
node packages/rdk-cli/bin/rdk.js track --sync      # rewrite recorded statuses from live probes
node packages/rdk-cli/bin/rdk.js track --mark <target> --status <status>   # manual override of one row

The ledger .discoverability/submissions.json is committed state; live probe snapshots live in the git-ignored cache. Every ledger write (--adopt, --sync, --mark) requires the guard chain --apply --ack <ACK> --reason "<why>" --plan-digest <DIGEST>, where the digest comes from the dry-run preview. Non-PR channels report live presence via the crawl, http-search and registry-read probes; PR channels hydrate through gh. The weekly rdk-track workflow runs rdk track --json and upserts the tracking issue — it never writes the ledger.

Do / Don't

  • Do run npm test before committing; the suite covers the YAML parser, the audit, the patches (including idempotency), the CLI end to end, the MCP tool registry and the JSON-RPC transport.
  • Do keep packages/repo-aeo-mcp free of runtime dependencies too: it reuses repo-aeo for the engine and implements the MCP transport itself.
  • Do keep .discoverability/project.yml and packages/rdk-cli/package.json in sync — rdk audit compares them.
  • Do add a new check as a declarative entry in the matching src/audit/checks/*.js module, with why/fix text that a non-author can act on.
  • Don't add runtime dependencies to packages/rdk-cli without discussing it: zero dependencies is a deliberate product property (npx stays fast, supply chain stays small). The MCP package must stay dependency-free as well, apart from the workspace link to the CLI.
  • Don't let an MCP tool write by default: github_sync_metadata must keep requiring the ack string, a reason and an explicit apply: true.
  • Don't bump versions, create tags, publish, force-push or delete files without explicit human confirmation.
  • Don't rewrite unrelated files while fixing a specific finding.
  • Don't make a patch non-idempotent: rdk fix twice must produce no diff.

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.