From repo-wiki
Builds and maintains a GitHub wiki for a repository by distilling CLAUDE.md, README, AGENTS.md, docs/, and the code layout into structured wiki pages, then makes the wiki the first-read entry point for any agent exploring the codebase. Use when a repo has accumulated docs an agent must re-derive every session, when onboarding a new agent/person to an unfamiliar codebase, or when the user says "create a wiki", "update the wiki", or "document this repo as a wiki". Installs the first-read pointer in both CLAUDE.md (Claude Code) and AGENTS.md (Codex and other agents). Do NOT use for repos without a GitHub remote (no wiki backend exists), for single-file scripts, or as a replacement for CLAUDE.md/AGENTS.md — the wiki extends them, the pointer stays in-repo.
How this skill is triggered — by the user, by Claude, or both
Slash command
/repo-wiki:repo-wikiThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
`/init` generates a single CLAUDE.md and stops; every later agent still
/init generates a single CLAUDE.md and stops; every later agent still
re-explores the tree to answer "how is this repo shaped, where do things
live, what are the conventions". GitHub wikis are a free, versioned,
browsable home for that knowledge, but nothing keeps them generated from —
and consistent with — the in-repo docs. This skill closes both gaps: it
derives the wiki from the repo's own documentation plus structure scan, and
it installs a first-read rule so exploration starts from the distilled wiki
instead of a cold tree walk. If a repo's docs are a single short README, this
skill adds nothing — skip it.
A GitHub wiki is a separate git repo at <repo-url>.wiki.git. Pages are
markdown files at the wiki repo root; Home.md is the landing page;
filenames become page titles (Architecture.md → "Architecture"). The wiki
must be enabled once in the repo's GitHub settings (gh repo edit --enable-wiki or the web UI), and the first page must exist before the
.wiki.git remote accepts clones — create Home.md via the web UI or
gh api if the clone 404s.
Gather sources. Read, in priority order: CLAUDE.md, AGENTS.md,
README.md, everything under docs/, PLAN.md/ARCHITECTURE.md if
present, plus a structure scan (top-two-level tree, package manifests,
entry points). Sources are authoritative; the wiki never invents facts
the repo doesn't state or show.
Clone the wiki repo into a temp dir: git clone <repo-url>.wiki.git.
If it 404s, enable the wiki and seed Home.md first (see mechanics).
Generate pages. Standard set, omitting any page with nothing real to say:
Home.md — one-paragraph purpose, page index, and the freshness line
(see State below).Architecture.md — directory map, major components, how they connect.Setup.md — install, build, test, run commands, verbatim from sources.Conventions.md — coding/commit/testing conventions from
CLAUDE.md/AGENTS.md.Subsystems/<name>.md — one page per major subsystem when the repo is
big enough to warrant it.
Distill; don't mirror. A wiki page that copies README wholesale is noise —
each page answers the questions an exploring agent actually asks.Stamp and push. Add the source-SHA footer to every generated page (see State), commit to the wiki repo with a message naming the source commit, push.
Install the first-read rule. Add (or update) a short section in the
repo's agent instruction files — CLAUDE.md for Claude Code AND
AGENTS.md for Codex/other agents (create AGENTS.md with just this
section if the repo lacks one; if both exist, keep the section identical
in both):
Codebase wiki
Before exploring this codebase, read the wiki at
<repo-url>/wiki(clone:<repo-url>.wiki.git) — start at Home. It is generated from this repo's docs at a stamped commit; if the stamp is older than files you're touching, trust the repo and run/repo-wikito refresh.
This is what makes the wiki load-bearing: exploring agents read the distilled map first and fall back to tree-walking only for what the wiki doesn't cover.
On every invocation after the first, diff instead of regenerating blindly:
read each page's source-SHA footer, git diff --stat <stamped-sha>..HEAD
on the source repo, and regenerate only pages whose source files changed.
If the stamped SHA is unreachable (history rewritten), regenerate everything.
Two pieces, both visible and documented:
<repo-url>.wiki.git) — all generated pages.
Every generated page ends with a footer line:
<!-- repo-wiki: generated from <source-repo> @ <commit-sha> on <date> -->
That stamp is the staleness detector: stamp older than the touched files ⇒
page is suspect, repo wins, refresh via this skill.## Codebase wiki section in the source repo's CLAUDE.md and
AGENTS.md — the first-read pointer, duplicated so both Claude Code
(reads CLAUDE.md) and Codex/other agents (read AGENTS.md) hit it. It is
idempotently updated (replaced, not appended) in both files on each run.No hidden state anywhere else.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
Runs a structured interview session to sharpen plans or designs, producing ADRs and a glossary as output.
Applies curated color/font themes to slides, docs, and HTML artifacts. Includes 10 preset themes and can generate custom themes on demand.
npx claudepluginhub dkritarth/skills-marketplace --plugin repo-wiki