agentleFS
WhiteBiteWhiteBite/repo-aeo/skills/repo-discoverability/SKILL.md

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

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

    Facts first: Read .discoverability/project.yml, package.json, README.md, AGENTS.md before proposing anything.

    line 27
  2. Very specific:

    Never: run npm publish, git tag, git push --force, delete files, or change repository settings without an explicit human ACK string and a …

    line 30
  3. Very specific:

    Verify: every change: tests, npm pack --dry-run, link checks.

    line 34
  4. Very specific:

    Never hand-edit the committed ledger to match a probe.

    line 50
  5. Very specific:

    If .discoverability/project.yml does not exist yet, run rdk init (preview first) to scaffold it from package.json and the git remote.

    line 64
  6. Very specific:

    When the audit reports readme.demo_visual, pick the surface by where the before/after difference manifests, then read …

    line 96
  7. Distinctive:

    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 …

    line 109
  8. Distinctive:

    If the score dropped, revert the patch and re-plan.

    line 135
  9. Very specific:

    Every executed or prepared submission lands in .discoverability/submissions.json with channel, mechanism, artifact, dedupe_key, target and …

    line 168
  10. Very specific:

    After submitting, close the loop with rdk track: it projects the ledger through live probes into one status list where each item carries an …

    line 174

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Facts first. Read .discoverability/project.yml, package.json, README.md, AGENTS.md before proposing anything. If a value is unknown, mark it TODO — do not guess.
  2. 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.
  3. Small diffs. One finding per commit-sized change. No drive-by rewrites.
  4. Verify every change: tests, npm pack --dry-run, link checks.
  5. Heavy logic lives in scripts/ (code does not burn context; only its output does). Prefer running the CLI over re-implementing checks inline.
  6. 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.
  7. Track the campaign. rdk track is read-only by default and prints the canonical status with a per-item action queue. PRs opened outside the ledger are pulled in with rdk track --adopt; live probe results rewrite recorded statuses only through rdk track --sync. Both mutate .discoverability/submissions.json and need the same guard chain as submit: --apply --ack <ACK> --reason "<why>" --plan-digest <DIGEST>. Never hand-edit the committed ledger to match a probe; let --sync do 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-comment

If .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:

FindingWhy it mattersFixRiskEffort
github.topics_count (8 of 20)topics are a GitHub search keyadd 4 capability topics to keywords.github_topicslowS
readme.first_success_pathagents/users drop off before installmove install+run block above the foldlowS
npm.exports missing requireCJS consumers breakadd require condition to exportsmediumM
agents.existsagents guess how to testdraft AGENTS.md, human review requiredlowS

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-digest

When 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 showsSurface
agent conversation / tool flowterminal + that harness theme
file contents / shapefiles + shell
command outcome, human or generic actorterminal + shell
rendered UIa 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 onlyno picture: prose or a markdown table
defining mechanism unfolds in timeanimated 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 regress

If 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 only

channels 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 generated server.json with a bearer token, deduped against an existing listing. Requires the npm package already published with the mcpName marker.
  • web-form (MCP directories): RDK prepares the payload and the exact field checklist, records status prepared, 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 the npm pack / npm publish / npm view checklist; 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, exports with import + require, types, sideEffects only when certain, engines, files including llms.txt / llms-full.txt / AGENTS.md.
  • Agent-facing: AGENTS.md with 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-sync writes 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 flags readme.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.

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.