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 checking a change actually works.
Of the AGENTS.md files we read, the 11,691 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.
- llms-full.txtllms.txt
- llms.txtllms.txt
- repo-discoverabilitySkill
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 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.
5
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
- Very specific: line 49
Do run npm test before committing.
- Very specific: line 52
Do keep packages/repo-aeo-mcp free of runtime dependencies too: it reuses repo-aeo for the engine and implements the MCP transport itself.
- Very specific: line 55
Do keep .discoverability/project.yml and packages/rdk-cli/package.json in sync — rdk audit compares them.
- Very specific: line 57
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.
- Very specific: line 59
Don't: add runtime dependencies to packages/rdk-cli without discussing it: zero dependencies is a deliberate product property (npx stays …
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
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/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 stdioThere 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
| Path | Purpose |
packages/rdk-cli/src/yaml.js | dependency-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.js | axis weights and the 0–100 model |
packages/rdk-cli/src/fix/patches.js | idempotent safe autofix patches |
packages/rdk-cli/src/generate/index.js | deterministic artifact generators |
packages/rdk-cli/src/commands/ | CLI commands (init, audit, fix, npm-surface, github-sync, skill) |
packages/repo-aeo-mcp/src/tools.js | the 9 MCP tools; every tool is read-only except the guarded sync |
packages/repo-aeo-mcp/src/history.js | metric history in .discoverability/cache/metrics.json (trends) |
packages/repo-aeo-mcp/src/server.js | dependency-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.yml | source of truth for this repository's metadata |
Do / Don't
- Do run
npm testbefore 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-mcpfree of runtime dependencies too: it reusesrepo-aeofor the engine and implements the MCP transport itself. - Do keep
.discoverability/project.ymlandpackages/rdk-cli/package.jsonin sync —rdk auditcompares them. - Do add a new check as a declarative entry in the matching
src/audit/checks/*.jsmodule, withwhy/fixtext that a non-author can act on. - Don't add runtime dependencies to
packages/rdk-cliwithout 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_metadatamust keep requiring the ack string, a reason and an explicitapply: 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 fixtwice must produce no diff.
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.

