repo-discoverability
Skill2 starsChanged 2 months agoMITView on GitHub
Make a repository, npm package or docs site discoverable and recommendable to humans, AI agents and search engines. Use when asked to "make repo discoverable", "add GitHub topics", "improve README for users and agents", "prepare npm metadata", "generate AGENTS.md", "why is my package not recommended", "optimize for AI search", "GEO/AEO for my repo", "add llms.txt", "audit repo discoverability", "run a distribution campaign", "submit to awesome lists", "get my package listed", "where should I list my MCP server", "register in the MCP registry", "publish my skill to a marketplace", "get my project into registries and directories", or before publishing/releasing a package. Only activate on an explicit user request; do not use for routine code edits, commits or PRs. Produces an audit, a plan and small verified patches; never publishes, tags or force-pushes without an explicit ACK.
- Deletes or force-pushes
- Commits and pushes
In this repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms-full.txtllms.txt
- llms.txtllms.txt
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 2 are distinctive, and 8 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.
8
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 27
Facts first: Read .discoverability/project.yml, package.json, README.md, AGENTS.md before proposing anything.
- Very specific: line 30
Never: run npm publish, git tag, git push --force, delete files, or change repository settings without an explicit human ACK string and a …
- Very specific: line 34
Verify: every change: tests, npm pack --dry-run, link checks.
- Very specific: line 50
Never hand-edit the committed ledger to match a probe.
- Very specific: line 64
If .discoverability/project.yml does not exist yet, run rdk init (preview first) to scaffold it from package.json and the git remote.
- Very specific: line 96
When the audit reports readme.demo_visual, pick the surface by where the before/after difference manifests, then read …
- Distinctive: line 109
Before the table: list the product's value props from its own docs and show the one no adjacent tool offers - the defining mechanism, not …
- Distinctive: line 135
If the score dropped, revert the patch and re-plan.
- Very specific: line 168
Every executed or prepared submission lands in .discoverability/submissions.json with channel, mechanism, artifact, dedupe_key, target and …
- Very specific: line 174
After submitting, close the loop with rdk track: it projects the ledger through live probes into one status list where each item carries an …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
Repo discoverability (RDK)
Turn a repository into something that people, coding agents and search engines can find, understand and recommend. Works offline by default; every claim in the report is derived from files in the repository, never invented.
Non-negotiables
- Facts first. Read
.discoverability/project.yml,package.json,README.md,AGENTS.mdbefore proposing anything. If a value is unknown, mark itTODO— do not guess. - Never run
npm publish,git tag,git push --force, delete files, or change repository settings without an explicit human ACK string and a stated reason. Audit-only is the default mode. - Small diffs. One finding per commit-sized change. No drive-by rewrites.
- Verify every change: tests,
npm pack --dry-run, link checks. - Heavy logic lives in
scripts/(code does not burn context; only its output does). Prefer running the CLI over re-implementing checks inline. - Listings-only. RDK gets artifacts listed; it never publishes
packages, images or releases, and never tags or force-pushes. Web-form
channels and publishes are human-gated by design: RDK prepares the payload
or checklist, a human runs the submit or publish. Outbound writes (PRs to
curated lists, registry submissions) go out only after the human approves
the exact plan; record every submission in
.discoverability/submissions.json. - Track the campaign.
rdk trackis read-only by default and prints the canonical status with a per-item action queue. PRs opened outside the ledger are pulled in withrdk track --adopt; live probe results rewrite recorded statuses only throughrdk track --sync. Both mutate.discoverability/submissions.jsonand need the same guard chain assubmit:--apply --ack <ACK> --reason "<why>" --plan-digest <DIGEST>. Never hand-edit the committed ledger to match a probe; let--syncdo it under the guard.
The five phases
Phase 1 — AUDIT (collect facts)
# offline by default; --online adds link checks and GitHub API reads
node packages/rdk-cli/bin/rdk.js audit --format json
node packages/rdk-cli/bin/rdk.js audit --format markdown # human report
node packages/rdk-cli/bin/rdk.js audit --format github-commentIf .discoverability/project.yml does not exist yet, run rdk init (preview
first) to scaffold it from package.json and the git remote.
The audit scores six axes (0–100, renormalised over the axes that apply):
GitHub metadata, README primitives, agent readiness, npm readiness, docs
readiness, trust & hygiene. Each finding carries severity, why, fix,
effort and whether it is autofixable.
Phase 2 — PLAN (Finding → Why → Fix → Risk → Effort)
Build a table before touching code. Example:
| Finding | Why it matters | Fix | Risk | Effort |
github.topics_count (8 of 20) | topics are a GitHub search key | add 4 capability topics to keywords.github_topics | low | S |
readme.first_success_path | agents/users drop off before install | move install+run block above the fold | low | S |
npm.exports missing require | CJS consumers break | add require condition to exports | medium | M |
agents.exists | agents guess how to test | draft AGENTS.md, human review required | low | S |
Order by severity × weight. Anything marked error goes first.
Phase 3 — PATCH (small diffs)
Safe, idempotent autofixes (formatting, missing sections, stub files):
node packages/rdk-cli/bin/rdk.js fix # preview is the default
node packages/rdk-cli/bin/rdk.js fix --apply # only when the diff is right
node packages/rdk-cli/bin/rdk.js npm-surface # publish-surface report
node packages/rdk-cli/bin/rdk.js github-sync # preview is the default; writes need --apply --ack --reason --plan-digestWhen the audit reports readme.demo_visual, pick the surface by where the
before/after difference manifests, then read references/visual-assets.md:
| Where the difference shows | Surface |
| agent conversation / tool flow | terminal + that harness theme |
| file contents / shape | files + shell |
| command outcome, human or generic actor | terminal + shell |
| rendered UI | a real screenshot framed by the shots surface, never faked |
| where the work runs (bridge / remote runner offloads to another host) | single topology: a native Mermaid fence |
| numbers only | no picture: prose or a markdown table |
| defining mechanism unfolds in time | animated GIF via frames mode |
Before the table: list the product's value props from its own docs and show the one no adjacent tool offers - the defining mechanism, not the easiest to draw.
Make no picture when the project has no observable before/after. Fill the slot
JSON with the project's real output, render with scripts/render-demo.mjs, then
commit the asset + slot JSON and embed it in the README. Examples per surface:
references/visual-assets.md.
A quickstart shows the consumer's first successful action (install, import,
run) — not the contributor's. Move npm test, self-test and build commands
into a Development section; a reader who came to use the package should reach
a runnable line before the first test command.
Everything else (real examples, version bumps, exports redesign, claims with sources) is manual — write the smallest possible patch and keep the existing voice of the project.
Phase 4 — VERIFY
npm test # or the project's test command
node packages/rdk-cli/bin/rdk.js npm-surface # tarball contents; npm pack runs by default, --no-pack skips it
node packages/rdk-cli/bin/rdk.js audit --online # links + GitHub API
node packages/rdk-cli/bin/rdk.js audit --format json # score must not regressIf the score dropped, revert the patch and re-plan.
Phase 5 — DISTRIBUTE (get listed)
Distribution runs on channels: curated lists, registries, directories and auto-crawled indexes, each with its own mechanism. Inventory first, then act per channel:
node packages/rdk-cli/bin/rdk.js channels # every channel: mechanism, applicability, status, next action
node packages/rdk-cli/bin/rdk.js submit --channel <id> # offline preview of that channel's campaign
# after human review of the preview:
node packages/rdk-cli/bin/rdk.js submit --channel <id> \
--apply --ack <ACK> --reason "<why>" --plan-digest <DIGEST>
node packages/rdk-cli/bin/rdk.js track # read-only campaign dashboard (submit -> track loop)
node packages/rdk-cli/bin/rdk.js track --json # canonical JSON onlychannels is read-only and prints, for each channel, whether it applies to
the artifact inventory, the recorded ledger status and the next action. The
default channel is awesome-list. Mechanisms differ in what RDK may do:
git-pr(awesome lists): fork, insert a README row, open a PR. Automatable.http-json(official MCP registry): POST a generatedserver.jsonwith a bearer token, deduped against an existing listing. Requires the npm package already published with themcpNamemarker.web-form(MCP directories): RDK prepares the payload and the exact field checklist, records statusprepared, never submits. A human fills the form.passive(skills.sh-style crawlers): nothing to submit; meet the crawlability preconditions and verify presence later.cli-publish(npm registry): RDK prepares the artifact name and thenpm pack/npm publish/npm viewchecklist; it never publishes.
Every executed or prepared submission lands in
.discoverability/submissions.json with channel, mechanism, artifact,
dedupe_key, target and a status
(prepared|submitted|open|needs_changes|listed, terminal negatives
rejected|closed|unlisted|failed).
After submitting, close the loop with rdk track: it projects the ledger
through live probes into one status list where each item carries an attention
state (action_required|awaiting_review|approved|stale|none|listed|terminal)
and, when something is due, the exact guarded command to run next. On
action_required run rdk track --sync first (a changes-requested PR moves
to needs_changes, which is non-blocking), then run the emitted command
with --category filled from the exact list heading; once the PR merges or
closes, rdk track --sync (under the same guard chain) rewrites the
recorded status so the ledger reflects it. PRs opened by hand outside the
ledger come in with rdk track --adopt. Read
references/distribution-playbook.md before the first submission and for the
full tracking procedure: entry conventions, fork mechanics, per-mechanism
procedure and pacing. references/channels.md is the channel matrix.
What "good" looks like (checklist)
- README: install/run in the first 60 lines, a demo visual near the top, 2–5 short examples, sections "Who is it for", "Use cases", "Why choose this", "Status/roadmap", claims with numbers and named sources.
- GitHub: 1–2 sentence description, at least 3 lowercase hyphenated topics, homepage URL.
- npm:
description,keywords(5–15),repository,homepage,bugs,exportswithimport+require,types,sideEffectsonly when certain,engines,filesincludingllms.txt/llms-full.txt/AGENTS.md. - Agent-facing:
AGENTS.mdwith working test/lint/build commands, a repository map and do/don't rules — written or reviewed by a human. - Docs surface (when a site/homepage exists):
llms.txt,llms-full.txt, reviewed JSON-LD. - Trust:
LICENSE,SECURITY.md,CONTRIBUTING.md,CODEOWNERS,CITATION.cff, clean.gitignore/.gitattributes, no leaked secrets.
Safety rails for agents
- Publishing, tagging, releasing and force-pushing are out of scope for this skill. If the user asks for them, stop and ask for an explicit ACK.
github-syncwrites only with--apply --ack <ACK> --reason "<why>" --plan-digest <DIGEST>(the digest of the dry-run preview, so the write binds to the approved plan).- Autofix branches are reviewable: the Action opens a PR instead of pushing to the default branch.
References (load only when needed)
references/checks-catalog.md— read when you need the exact weight or fix text of a finding id.references/scoring.md— read when you need to explain or predict how the 0–100 score moves.references/mcp-manifest.md— read if the project ships an MCP server.references/geo-playbook.md— read before writing positioning or discovery copy; it explains why these moves work.references/distribution-playbook.md— read before the first submission to any channel; it explains entry conventions, fork mechanics, per-mechanism procedure and submission tracking.references/channels.md— read when choosing channels; the compact matrix of mechanism, artifact, applicability, gating and dedupe key.references/visual-assets.md— read when a repo lacks a demo visual or the audit flagsreadme.demo_visual; the no-picture rule, the "Choose the surface" guide, per-surface examples, the essence rule and the slot schema.references/funding-playbook.md— read when adding or reviewing a Sponsor/Support surface; it maps the FUNDING.yml lanes and the payment platforms that work for Russian recipients.scripts/render-demo.mjs— run after filling a slot JSON to render the before/after demo PNG from the locked template; needs playwright-core on demand.scripts/audit.sh— run if Node is not on PATH; a thin wrapper around the CLI.
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.

