repo-aeo
llms.txt2 starsChanged 2 months agoMITView on GitHub
Make any repository, npm package and docs site findable and recommendable to humans, AI agents and search engines. This is the concatenated documentation intended for LLM grounding. Regenerate with rdk fix. English | Русский [](./LICENSE) [](https://nodejs.org) Make any repository, npm package and docs site findable and recommendable for humans, AI agents and search engines. RDK scores how discoverable your repository is, fixes the parts that can be fixed automatically, and keeps it from regressing in CI. It is the tool…
- Installs packages
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- repo-discoverabilitySkill
The file
We split this llms-full.txt into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 71
Commit to it and exactly two files ever appear in your repository: the workflow above and .discoverability/project.yml, the generated …
- Very specific: line 128
Every write operation requires an explicit flag.
- Distinctive: line 199
Keep discoverability from regressing with a weekly GitHub Action audit.
- Very specific: line 200
Run a distribution campaign: prepare entries for the relevant curated lists, submit reviewable PRs, track them in …
- Very specific: line 279
One root llms.txt pair: No per-path or per-section corpora like Ray's sectioned llms-full.txt files or Cloudflare's per-product variants.
- Distinctive: line 284
npms.io is fetched, not computed: If npms.io goes away, the npm axis falls back to registry metadata only.
≈ “Common” is an estimate: at least 1 in 5 of the 4,067 llms.txt 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
<!-- rdk:generated:start -->
# repo-aeo — full documentation
> Make any repository, npm package and docs site findable and recommendable to humans, AI agents and search engines.
This is the concatenated documentation intended for LLM grounding. Regenerate with `rdk fix`.
---
# README
# repo-aeo — Repo Discoverability Kit (RDK)
**English** | [Русский](README.ru.md)
[](./LICENSE)
[](https://nodejs.org)
<p align="center"><img src="./assets/rdk-hero.png" width="100%" alt="repo-aeo preview: a repository scored 0-100 across six discoverability axes"></p>

Make any repository, npm package and docs site **findable and recommendable** for
humans, AI agents and search engines.
RDK scores how discoverable your repository is, fixes the parts that can be fixed
automatically, and keeps it from regressing in CI. It is the tool you point at a
repo that is *good but invisible*.
The audit runs **49 checks in under 300 ms offline** on this repository
(measured with `rdk audit --format json`, `duration_ms` field) and carries **0
runtime dependencies**, so `npx` stays fast and the supply chain stays small.
## Quickstart
**Prerequisites:** Node.js >= 18
```bash
# 1. try it without installing anything (read-only audit, ~300 ms)
npx repo-aeo audit
# 2. scaffold the config and the missing files (reviewable diff)
npx repo-aeo init --apply
# 3. preview the safe autofixes, apply them if you like the diff
npx repo-aeo fix
npx repo-aeo fix --apply
# 4. staying? pin the engine so your team and CI run the same version
npm install --save-dev repo-aeo
```
Two-minute setup for a repository you do not own yet: clone it, run
`npx repo-aeo audit`, then `npx repo-aeo init --apply`. Everything the CLI writes is a
reviewable diff — it never publishes, tags or force-pushes. The one exception
lives in CI: the opt-in autofix job force-pushes its own dated
`rdk/autofix-<date>` bot branch and opens a reviewable PR.
## Ways to use it
You fork nothing and install nothing permanently. Pick the surface that
matches how you work — each pulls the engine on demand:
| You want | You write | What lands in your repo |
| --- | --- | --- |
| A CI gate on every pull request | `uses: WhiteBite/rdk-discoverability@v1` in a workflow | `.github/workflows/rdk.yml` (~6 lines) |
| A one-off audit from the terminal | `npx repo-aeo audit` | nothing, until you run `rdk init` |
| A monitoring tool for your AI agent | `claude mcp add rdk -- npx repo-aeo-mcp serve` | nothing (client-side config) |
| The agent skill in OpenCode/Claude/Codex | `npx repo-aeo skill install` | nothing (a symlink) |
Commit to it and exactly two files ever appear in your repository: the
workflow above and `.discoverability/project.yml`, the generated source of
truth for your metadata. The two RDK repositories (engine and the action
wrapper) stay ours — they are the factory, not a dependency you carry.
## The problem
You shipped a good package, but nobody finds it: npm search buries it,
AI assistants recommend the incumbents, and the README explains the
philosophy for 90 lines before the first runnable example.
Fixing that once is the easy half. The hard half is keeping it fixed: six
months later a contributor's PR "tidies up" the README with a banner and a
table of contents, the quickstart sinks below line 60, the tests stay green
— and the package quietly disappears from search results and AI answers
again. Nobody notices, because nothing in CI watches discoverability.
RDK makes it a tested property: audit locally, gate in CI on every pull
request.
## Who is it for
- Maintainers publishing an npm package for the first time.
- Teams whose library is good but invisible in AI answers, npm search and GitHub search.
- Agent-tooling authors who want their repo to be usable by coding agents out of the box.
- Researchers and OSS projects that need citation and discovery metadata.
## What you get
Three layers, because a one-off script is not enough:
| Layer | What it is | Where |
| --- | --- | --- |
| **Repo Kit** | `.discoverability/project.yml` as the single source of truth, plus templates and generators | `.discoverability/`, `packages/rdk-cli/src/generate/` |
| **Skillpack** | Agent instructions with progressive disclosure: audit → plan → patch → verify → distribute | `skills/repo-discoverability/` |
| **Automation** | [GitHub Action](https://github.com/WhiteBite/rdk-discoverability) on `pull_request`, `workflow_dispatch` and weekly cron, dogfooded by this repo's own CI | `.github/workflows/rdk-audit.yml` |
| **Monitoring** | MCP server with 9 read-mostly tools, trend history and live GitHub / site / npms probes | `packages/repo-aeo-mcp/` |
## Commands
```bash
npx repo-aeo init # create .discoverability/project.yml + minimal safe files
npx repo-aeo audit # score 0-100 + findings (json | markdown | github-comment)
npx repo-aeo fix # preview safe autofixes; --apply to write them
npx repo-aeo npm-surface # package.json publish surface + npm pack --dry-run
npx repo-aeo github-sync # push description/homepage/topics (needs --apply --ack --reason --plan-digest)
npx repo-aeo channels # list every distribution channel, applicability and next action (read-only)
npx repo-aeo submit # submit to a distribution channel: --channel <id> (needs --apply --ack --reason --plan-digest)
npx repo-aeo share # print a ready-to-post message for a community channel (--channel <id> | --list)
npx repo-aeo track # campaign dashboard: live status, adopt existing PRs, sync the ledger
npx repo-aeo skill install # link the agent skill into OpenCode/Claude/Codex skill dirs
npx repo-aeo-mcp serve # the same engine as an MCP server: 9 read-mostly tools
claude mcp add rdk -- npx repo-aeo-mcp serve
docker run -i repo-aeo-mcp serve
```
Every write operation requires an explicit flag. `audit` is read-only and works
offline; `--online` adds link checks and live GitHub metadata.
## Examples
### 1. Score a repository
```bash
$ npx repo-aeo audit # measured on fixtures/demo-repo, offline
score: 58/100 (grade D) · checks: 26/48 passed · findings: 9 error, 13 warn, 13 info (19 autofixable) · mode: offline (use --online for link + GitHub checks)
```
### 2. Fix what is safe to fix
```bash
$ npx repo-aeo fix --dry-run # review the diff
$ npx repo-aeo fix --apply # 16 files: README sections, AGENTS.md draft, llms.txt, CITATION.cff, ...
```
### 3. Check the publish surface
```bash
$ npx repo-aeo npm-surface --pack
| exports | conditions: import, require; subpaths: . |
⚠️ present in the repo but not in the tarball: llms.txt
```
### 4. Keep it from regressing in CI
```yaml
# .github/workflows/rdk.yml — in YOUR repository
- uses: actions/checkout@v4
- uses: WhiteBite/rdk-discoverability@v1
with:
min_score: ${{ vars.RDK_MIN_SCORE || 0 }}
```
GitHub downloads the action, the action pulls the engine from npm — nothing
to install or fork. This is the same action this repository's own CI runs.
The CLI itself never force-pushes; the workflow's opt-in autofix job (gated by
`safety.allow_autofix`) force-pushes only its own dated `rdk/autofix-<date>`
bot branch and opens a PR for review.
### 5. Monitor it continuously
```bash
$ npx repo-aeo-mcp score
Discoverability score: 100/100 (grade A)
checks passed: 49/49 - errors 0 - warnings 0 - autofixable 0
trend: no history yet
```
The first run records the score; every subsequent run prints the delta instead
(for example `trend: 90 -> 96 (up)`).
### 6. Teach an agent to do it
```text
skills/repo-discoverability/SKILL.md → description triggers on
"make repo discoverable", "add topics", "improve README for users and agents",
"prepare npm metadata", "generate AGENTS.md", "optimize for AI search",
"run a distribution campaign", "submit to awesome lists"
```
## Use cases
- Score a repository's discoverability and get a prioritised fix list.
- Generate and maintain `AGENTS.md`, `llms.txt` and `llms-full.txt` for a repo.
- Prepare `package.json` metadata, exports and tarball contents before an npm release.
- Fill GitHub description, homepage and specific search topics from one config file.
- Keep discoverability from regressing with a weekly GitHub Action audit.
- Run a distribution campaign: prepare entries for the relevant curated lists, submit reviewable PRs, track them in `.discoverability/submissions.json`.
- Watch score, npm search score and GitHub signals from an MCP client or a cron job.
## Discoverability Score
Six weighted axes, renormalised over the axes that apply to your project:
| Axis | Weight | Covers |
| --- | --- | --- |
| GitHub metadata | 20 | description, homepage, specific search topics |
| README primitives | 25 | first success path, 2–5 examples, audience sections, sourced claims |
| Agent readiness | 15 | `AGENTS.md` with working commands, do/don't rules |
| npm readiness | 20 | description, keywords, exports, types, tarball hygiene |
| Docs readiness | 12 | `llms.txt`, JSON-LD, link health |
| Trust & hygiene | 8 | LICENSE, SECURITY.md, CONTRIBUTING.md, CODEOWNERS, no leaked secrets |
Grades: A ≥ 90 · B ≥ 80 · C ≥ 70 · D ≥ 55 · F below. Full model:
[`docs/scoring.md`](./docs/scoring.md).
## Why choose this
- **One config file drives everything.** `.discoverability/project.yml` feeds the
README, `AGENTS.md`, `llms.txt`, npm metadata and GitHub topics — no drift
between them.
- **Same audit locally and in CI.** Ships as a CLI, an agent skill and a GitHub
Action, so a human and an agent run identical checks.
- **Audit-only by default.** Writes need an explicit flag; publish/tag/release
are out of scope entirely and require a human ACK string.
- **Deterministic generators.** Zero runtime dependencies, no LLM in the loop:
every generated line is traceable to the config or to a file in the repo.
## How RDK compares
Most tools in this space anchor to a **served website** (llms.txt validators,
GEO graders, Lighthouse), a **published package** (npms.io) or a **docs build**
(framework generators). RDK anchors to the **git working tree**: it audits and
repairs the repository itself, before anything is served or published.
### Direct comparables: repo-local artifact graders and generators
| Tool | Unit of analysis | Scores | Generates | Validates | Writes to GitHub | Agent interface | CI |
| --- | --- | --- | --- | --- | --- | --- | --- |
| **RDK (this repo)** | git working tree | 0-100 rubric, 6 axes | llms.txt, llms-full.txt, AGENTS.md, JSON-LD, CITATION.cff, templates | freshness, structure, link probes (`--online`) | guarded sync (ack + reason + preview) | MCP server + agent skill | marketplace Action |
| [repo-health-radar](https://github.com/xxrraa/repo-health-radar) | git working tree | 0-100 + letter grade, 6 human-maintainer axes | - | 35 checks (docs, CI, release readiness, activity) | - | - | composite Action |
| [GitHub community profile](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/about-community-profiles-for-public-repositories) | repo, hosted checklist | checklist | - | presence + supported location of trust files | - | - | built into github.com |
| [standard-readme](https://github.com/RichardLitt/standard-readme) + [remark preset](https://github.com/RichardLitt/standard-readme-preset) | README.md | pass/fail lint | scaffold only | section spec for human readers | - | - | remark CLI |
| [readme-score](https://github.com/clayallsopp/readme-score), [ReadmeAI](https://github.com/eli64s/readme-ai), README templates | README.md | richness proxies (code blocks, images) | LLM-written README | - | - | - | - |
| [cffinit](https://github.com/citation-file-format/cff-initializer-javascript) / [cffconvert](https://github.com/citation-file-format/cffconvert) | CITATION.cff | - | CFF via a human form / format conversions | version-pinned JSON schemas | - | - | [reject-only gate](https://github.com/citation-file-format/cffconvert-github-action) |
| [codemeta-generator](https://github.com/codemeta/codemeta-generator) | a GitHub repo page | - | CodeMeta JSON-LD | JSON-LD context | - | - | - |
| [npms.io](https://npms.io/about) | published package | quality/maintenance/popularity | - | - | - | - | - |
| [Repomix](https://github.com/yamadashy/repomix) / [ai-digest](https://github.com/khromov/ai-digest) | repo content | - | one packed context file | secret scan before output | - | CLI/MCP consumption | - |
### Adjacent territory: sites, indexes and agent context
| Tool | Unit of analysis | Scores | Generates | Validates | Writes to GitHub | Agent interface | CI |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [Lighthouse Agentic Browsing](https://developer.chrome.com/docs/lighthouse/agentic-browsing/llms-txt) | served site | pass/fail audits | - | llms.txt presence, H1, links | - | - | via Lighthouse CI |
| [llms-txt-hub](https://github.com/thedaviddias/llms-txt-hub) / [llms-txt-check](https://github.com/portdeveloper/llms-txt-check) | served site | - | - | presence at visit time; file claims vs what the site serves | - | browser extension | - |
| Framework generators ([Starlight](https://github.com/delucis/starlight-llms-txt), [mkdocs](https://github.com/pawamoy/mkdocs-llmstxt), Docusaurus, Mintlify) / [firecrawl](https://github.com/firecrawl/llmstxt-generator) | docs build or crawl | - | llms.txt (+ full) at build time | - | - | - | docs pipeline |
| [agentmarkup](https://github.com/agentmarkup/agentmarkup) | site build | - | llms.txt, JSON-LD, markdown mirrors | yes, at build | - | - | build step |
| [geo-score](https://github.com/jianruntech/geo-score) and GEO skill packs / [Searchstack](https://github.com/alexpospekhov/searchstack-aeo) | served site / external AI engines | 0-100 rubric | - | crawlability, markup, citations; brand visibility in AI answers | - | skill pack | cron |
| [DeepWiki](https://deepwiki.com) and [open-source](https://github.com/AsyncFuncAI/deepwiki-open) [clones](https://github.com/AIDotNet/OpenDeepWiki) | public repo, hosted | - | auto-wiki and diagrams | - | - | remote MCP | - |
| [Context7](https://github.com/upstash/context7) / [mcpdoc](https://github.com/langchain-ai/mcpdoc) | third-party docs | - | - | - | - | MCP consumption of llms.txt | - |
| [OpenSSF Scorecard](https://github.com/ossf/scorecard), Socket, Snyk | repo / dependencies, security | 0-10 risk-weighted aggregate | - | supply-chain risk | results only | Socket MCP | scorecard-action |
| [CHAOSS](https://github.com/chaoss/metrics) / [libraries.io](https://github.com/librariesio/libraries.io) | community events / package index | metric catalog, no composite | dashboards | - | - | - | self-hosted platform |
Orthogonal by design: Scorecard grades how safe a repo is to consume,
community standards grade human onboarding, packers serialize content,
DeepWiki hosts a generated wiki and CHAOSS measures community behaviour over
time. None of them repairs the repository; RDK does not replace any of them.
### Where RDK is deliberately narrower
- **No codebase packing.** Repomix and ai-digest ship the repo as one context
file; RDK points agents at the right files (llms.txt, AGENTS.md) instead of
serializing content.
- **No CFF schema validation.** RDK generates a CITATION.cff stub; validating
it against the versioned schema is cffconvert's job, and the community's
fix story there is reject-in-CI, never rewrite.
- **One root llms.txt pair.** No per-path or per-section corpora like Ray's
sectioned `llms-full.txt` files or Cloudflare's per-product variants.
- **Repo-local llms.txt checks.** "Does the served site match the file" is
only an MCP tool and an `--online` probe, not a full served-vs-file diff
like llms-txt-check.
- **npms.io is fetched, not computed.** If npms.io goes away, the npm axis
falls back to registry metadata only.
- **The ack string is a reusable constant.** A determined model can type it;
single-use, argument-bound tokens (as in mature write-gated MCP servers)
close that loop tighter. Preview-by-default and the reason audit log are
the compensating controls here.
- **The rubric is heuristic, not observational.** A 96/100 means the repo
satisfies the checks, not that it outranks anything in a population-wide
model like npms.io's.
- **No activity or adoption axis.** repo-health-radar and CHAOSS grade
maintainer responsiveness, release cadence and contributor diversity from
event history; RDK scores artifacts only, so a well-documented dead repo
scores high here.
- **No visibility-in-engines measurement.** Searchstack probes Google, AI
Overviews and chat assistants about your brand; RDK can only make the repo
legible, never observe how engines actually rank it.
- **Location-awareness of trust files is GitHub's job.** The community
profile accepts CODE_OF_CONDUCT in `.github/`, root or `docs/`; RDK's checks
look at fixed paths.
### What llms.txt provably buys
Consumed **on demand** by agents: the [spec](https://llmstxt.org) states the
file is "used on demand, when an agent needs information about a topic while
assisting a user", for inference rather than training. OpenClaw ships llms.txt
discovery as default agent behavior since 2026-02; Chrome's
[Lighthouse Agentic Browsing](https://developer.chrome.com/docs/lighthouse/agentic-browsing/llms-txt)
scores sites on it; Cloudflare, Mintlify, GitBook, Wix and Yoast publish or
generate it as the ecosystem convention, and tools like
[mcpdoc](https://github.com/langchain-ai/mcpdoc) feed it to IDE agents.
What it does **not** buy: none of GPTBot, ClaudeBot, PerplexityBot,
Google-Extended or Bingbot documents fetching `/llms.txt` during training or
indexing crawls — their official bot pages contain no mention of it. The
defensible value is inference-time agents, repo-reading tooling and the
discoverability audits above, not crawler traffic.
### Where RDK leads
- The only tool above whose unit of analysis is the working tree: everything
is fixable before the first deploy or publish. The nearest twin,
repo-health-radar, shares the shape (zero-dep CLI, marketplace action,
min-score gate) but grades human-maintainer axes and ships no autofixes,
MCP server or agent artifacts.
- README primitives are scored for agent consumption (install-command
detectability, quickstart placement, parseable structure); the numeric
README graders that exist reward human presentation instead.
- Cross-source coherence (config vs package.json vs GitHub vs README) has no
analog; topic managers are write-only wrappers.
- Double-run idempotency (`rdk fix` twice produces no diff) is a tested gate,
where codemod ecosystems treat it as folklore.
- A write-guarded MCP tool with reason logging and tool annotations on every
tool, in a zero-runtime-dependency package that audits fully offline.
## Status
Actively developed. v0.1 ships the CLI, the skill, the Action **and** the MCP
server. IDE packaging is next
([roadmap issues](https://github.com/WhiteBite/repo-aeo/issues)).
## Repository map
| Path | Purpose |
| --- | --- |
| `packages/rdk-cli/` | the `repo-aeo` package (zero dependencies) |
| `packages/repo-aeo-mcp/` | the `repo-aeo-mcp` MCP server (9 tools, stdio, Dockerfile) |
| `skills/repo-discoverability/` | SKILL.md + references + scripts for coding agents |
| `.github/workflows/` | CI: the PR discoverability audit (dogfoods the marketplace action) and the tag-driven release |
| `fixtures/demo-repo/` | before/after demo repository |
| `docs/` | architecture, configuration, scoring, MCP plan, links |
| `REPORT.md` | real audit output and PR comment sample |
## License
MIT — see [LICENSE](./LICENSE). Citation metadata: [CITATION.cff](./CITATION.cff).
<!-- rdk:generated:end -->
## Hand-written notes
<!-- Everything below the end marker is preserved by `rdk fix`. Put hand-written context here; the block above is regenerated from .discoverability/project.yml. -->
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.

