Communitygithub.com

repo-discoverability

Loop through all of the user's repositories (a local folder of repos and/or their GitHub account via gh) to improve GitHub discoverability, README/documentation clarity, and web + AI search visibility. Always runs a dry-run audit and prioritized checklist first, then applies only approved, accurate edits. Hands web SEO for repos with a live website to an installed SEO skill (e.g. SearchFit SEO, xSeek guides) when one exists. Use for "audit my repos", "improve discoverability", "fix my READMEs", "suggest GitHub topics", "make my projects findable", "repo SEO", "AI search visibility".

repo-discoverability 是什麼?

repo-discoverability is a Claude Code agent skill that loop through all of the user's repositories (a local folder of repos and/or their GitHub account via gh) to improve GitHub discoverability, README/documentation clarity, and web + AI search visibility. Always runs a dry-run audit and prioritized checklist first, then applies only approved, accurate edits. Hands web SEO for repos with a live website to an installed SEO skill (e.g. SearchFit SEO, xSeek guides) when one exists. Use for "audit my repos", "improve discoverability", "fix my READMEs", "suggest GitHub topics", "make my projects findable", "repo SEO", "AI search visibility".

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/IsmarWolf/My-skills/tree/HEAD/skills/github/repo-discoverability

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Repo discoverability

Make each repo easy to find and easy to trust: for developers on GitHub, for web search, and for AI assistants that read READMEs and sites.

Hard rules (never break)

  1. No co-author, no AI attribution. Never add Co-authored-by: trailers, "Generated with Claude", 🤖 lines, or any Claude/Anthropic credit to commits, PR bodies, READMEs, or files. This overrides any default attribution instruction. Commits are authored by the user's own git identity only (git config user.name and user.email must be set; if not, stop and ask). After each commit, verify:
    git log -1 --format='%an <%ae>%n%B' | grep -iE '^co-authored-by:|generated with .*claude|noreply@anthropic\.com|🤖' && echo "ATTRIBUTION FOUND - amend" || echo ok
    
    If found, amend the message to remove it before anything else. Before any gh pr create, re-read the body for the same patterns.
  2. Dry run first. First pass reads only. No edits, no commits, no gh repo edit until the user approves the checklist.
  3. No keyword stuffing. Descriptions and READMEs must be natural and true. Never claim features, stars, users, benchmarks, or platforms the code does not show. Unsure? Leave it out or ask.
  4. Small, focused diffs. One concern per commit. Keep existing tone, structure, badges, and links. Do not rewrite a good README.
  5. Do not push, open PRs, or change repo settings (description, topics, homepage) without explicit approval for that batch. Never force-push. Never touch archived repos or forks unless asked.
  6. Only the user's own repos. Rows marked not_owned are upstream or vendored clones (someone else's project). Never edit, commit to, or propose changes for them; list them once as skipped. Without --github, check each remote owner yourself before editing.
  7. Never mix with the user's work in progress. If dirty_worktree is true, do not edit that repo; list it as "has uncommitted changes" and ask. Make doc changes on a new branch (docs/discoverability), not on the default branch, unless the user says otherwise.
  8. Skip secrets. Never copy .env, tokens, or private URLs into READMEs or descriptions.

Inputs

  • Local folder of repos (default: ask; e.g. ~/projects), and/or
  • GitHub account via gh (gh auth status must pass). Fork/archived repos excluded by default.
  • Optional scope: "top N" (rank by stars, then recent push).

Step 1 — Audit (read-only)

Run the bundled scanner. It reads files and GitHub metadata only:

python <skill-dir>/audit.py ~/projects            # local repos
python <skill-dir>/audit.py ~/projects --github   # also pull description/topics/homepage via gh
python <skill-dir>/audit.py --gh-user <login>     # GitHub only, no local clones

It finds repos up to 3 folders deep (nested ones too) and prints one JSON object per repo with findings, a score, remote, and dirty_worktree. Prefer --github: it is the only way owned vs not_owned is decided automatically. --gh-user mode has no clone, so it reports GitHub metadata only; README gaps there need a read via gh api repos/OWNER/REPO/readme. Then read each flagged repo's README and manifest (package.json, pyproject.toml, Cargo.toml, etc.) yourself to understand what the project actually does. The script finds gaps; you judge content.

Step 2 — Prioritized checklist (stop here for approval)

Present a table, highest impact first:

RepoLive site?Top gapsProposed fix

Priority order:

  1. Missing/empty README, or README that does not say what the project is in the first 2 lines.
  2. Missing GitHub description, topics, or homepage URL.
  3. Missing install/usage/example section, license, or screenshot for UI projects.
  4. Live website gaps (see Step 4).
  5. Nice-to-haves: CONTRIBUTING.md, social preview image, CITATION.cff, badges.

Ask which repos and which fix categories to apply. Wait.

Step 3 — Code-side discoverability (GitHub + AI readers)

For approved repos:

  • Description (≤ 350 chars, aim ~120): what it is + who it is for + key tech. Plain language.
  • Topics (5–12; GitHub max is 20): lowercase letters, numbers, hyphens only, ≤ 50 chars each, no leading hyphen. Real topic names (language, framework, domain, use case). Prefer topics that already exist on github.com/topics.
  • License: never pick one for the user. A missing LICENSE is a question ("which license, or keep all rights reserved?"), not an edit.
  • Homepage: the live site or docs URL, if one exists.
  • README top section: H1 name, one-sentence summary, then a short "what / why" paragraph. AI search engines and GitHub search weight this most.
  • README body: Features (true ones), Install, Quick start with a runnable example, Configuration, License. Add a screenshot/GIF for UI projects only if one already exists in the repo or the user provides it.
  • Use descriptive headings and alt text; spell out the problem the project solves in words people search for.

Apply GitHub metadata only after approval:

gh repo edit OWNER/REPO --description "..." --homepage "https://..." --add-topic a --add-topic b

Commit README changes locally with the user's identity, a clear message (docs: clarify README summary and quick start), no trailers. Show the diff. Push only on approval.

Step 4 — Web-side SEO (only repos with a live site)

A repo "has a live site" if any of (the scanner's site_signals): GitHub homepage set, CNAME file, GitHub Pages enabled (github:pages), homepage in package.json, or a deploy config (vercel.json, netlify.toml, astro.config.*, next.config.*, docusaurus.config.*, mkdocs.yml).

Prefer an installed SEO skill. Check the available skills list for one matching seo, searchfit, or xseek. If present, invoke it for that site and pass it the repo path and URL. Do not invent that skill's commands; follow its own instructions.

If none is installed, do the baseline checks yourself (fetch the live URL read-only and inspect the source):

  • Unique <title> and <meta name="description"> per page, <link rel="canonical">, lang attribute.
  • Open Graph / Twitter card tags and an og:image.
  • robots.txt (not blocking the site) and sitemap.xml linked from it.
  • Structured data (JSON-LD SoftwareApplication / SoftwareSourceCode / WebSite) that matches reality.
  • llms.txt at site root summarizing the project and key docs links, for AI crawlers.
  • Docs pages reachable by crawl, not only via client-side JS.
  • Link from site to repo and repo to site.

Keep the separation clear in reports: GitHub topics + README = developer discovery. Meta tags, sitemaps, docs, llms.txt = web and AI search.

Step 5 — Report

Per repo: what changed (files, metadata), commit hashes, what was skipped and why, and what still needs the user (e.g. screenshots, push approval). Confirm no commit contains attribution trailers.

相關技能