codebase-explainer
Generate an evidence-backed HTML explanation of how a codebase works at a specific snapshot, from architecture and module boundaries down to execution paths…
Skill by choplin
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/choplin-codebase-explainer
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/codebase-explainer
What's inside
- Skill name
codebase-explainer- Description
- Generate an evidence-backed HTML explanation of how a codebase works at a specific snapshot, from architecture and module boundaries down to execution paths and representative code. Use when someone needs to understand a repository, subsystem, module, feature, or cross-cutting concern as it exists now; to become able to maintain AI-authored code; or to trace how a behavior is implemented. This explains current code rather than a git diff, and surfaces incidental concerns without becoming an exhaustive code review.
- License
- MIT
- Instructions
- 157 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (5)
- SKILL.md
- template-codebase-explainer.html · assets/
- codebase-explainer.lua · filters/
- authoring.md · references/
- build.sh · scripts/
SKILL.md (first lines)
# Codebase Explainer
Generate a snapshot explanation that lets a reader answer a concrete question about
the current implementation. Build understanding in layers: orientation, mental
model, boundaries, execution paths, code evidence, and maintenance implications.
This skill is generation only. Read code, repository history, local documentation,
and purpose-relevant external sources, then write only under the output directory.
Do not change the explained repository, switch branches, publish the result, or
claim to have performed an exhaustive review.
## Inputs
Resolve inputs from the request and conversation before asking questions:
| Input | Default |
|---|---|
| Purpose | The concrete question the reader wants answered |
| Scope | Paths and symbols needed to answer that question, not the whole repository |
| Depth | Enough detail to achieve the stated purpose |
| Snapshot | Current worktree, including in-scope uncommitted files |
| Output | `.agents/codebase-explainer/{yyyy-mm-dd}-{scope-slug}/` |
| Language | Conversation language, otherwise repository documentation language |
Proceed without confirmation when purpose, scope, and depth are clear. Present a
short investigation plan and ask once when materially different interpretations
exist, the requested scope is unusually broad, or a multi-page site is likely.
State the proposed purpose, paths or systems to trace, exclusions, depth, and output
shape. Do not ask merely because the user omitted paths; discovering relevant paths
is part of the work.
## Required dependencies
Resolve `[[explainer-html-docs]]` as the shared `explainer-html-docs` skill. Stop
with a clear message if it is unavailable. Before authoring, read both:
- this skill's [`references/authoring.md`](references/authoring.md);
- `explainer-html-docs/references/authoring-contract.md`.
The bundled `scripts/build.sh` delegates all mechanical HTML generation to that
skill. Do not hand-author the page shell or fork its base assets.
## Workflow
### 1. Fix the question and snapshot
Write a one-sentence success condition: what the reader should understand or be
able to do after reading. Use it to decide what deserves investigation.
Record the repository root, requested ref, resolved commit, branch when applicable,
and worktree state. If the worktree is dirty, distinguish the base commit from the
uncommitted snapshot. Do not checkout another ref; inspect it with read-only Git
commands or a temporary extracted copy when necessary.
### 2. Build a purpose-led map
Start broad and shallow:
- inventory manifests, entry points, module boundaries, generated-code markers,
repository instructions, READMEs, ADRs, and relevant tests;
- identify the smallest set of components that can answer the question;
- name likely entry points, state/data owners, side-effect boundaries, and exits;
- load an installed language-reference skill for the dominant implementation
language when one is available.
Do not read every file by default. A whole-codebase request still needs a purpose-led
map, not a file-by-file catalog.
### 3. Trace the implementation
Follow representative paths in understanding order rather than directory order:
1. the external or user-visible entry;
2. orchestration and policy decisions;
3. core abstractions and state transitions;
4. persistence, network, process, or other side effects;
5. failure handling and observable outputs;
6. tests that demonstrate or constrain the behavior.
Read definitions and important call sites together. Search for construction,
registration, configuration, and tests before assigning responsibility to a type or
function. For cross-cutting concerns, trace at least one end-to-end path and then
show where the pattern varies.
Follow external documentation, services, and related repositories when they can
materially change the answer. Keep the search bounded by the success condition;
stop following references when another hop would not change the mental model.
Record every external source used and any material source that was inaccessible.
### 4. Separate evidence from interpretation
Use these epistemic categories consistently:
- **Observed implementation** — directly supported by the snapshot's code or
configuration.
- **Documented intent** — explicitly stated in an ADR, design document, comment,
issue, or other attributable source.
- **Inference** — a plausible explanation not explicitly established by evidence.
- **Concern** — a maintenance, correctness, safety, or operability risk encountered
while tracing the requested behavior.
Never turn an inference into documented intent. When an apparent concern is
intentional, cite the evidence for that intent and still explain any residual
trade-off. Report only concerns encountered in the purpose-led investigation;
state that this was not an exhaustive review.
### 5. Choose one page or a site
Default to one self-contained `index.html`. Use a multi-page site only when the
answer contains several independently useful mental models or execution paths that
each need their own orientation and walkthrough. Repository size and file count are
not reasons by themselves.
For one page, author `<OUTPUT>/src/index.md` and build into `<OUTPUT>/index.html`.
For a site, author `<OUTPUT>/src/index.md`, one source per independent topic, and
`<OUTPUT>/src/nav-manifest.js`; build into `<OUTPUT>/site/`. Keep sources because
they record what was synthesized; never edit generated HTML.
The site builder requires its destination to be absent or empty and installs theFrom choplin/explainer-studio, MIT.
More from choplin/explainer-studio
- 0.552score
diff-explainer
choplin
Generate a reviewer-facing HTML explanation of a git diff — for a PR, a branch, a commit range, or uncommitted work — including the context behind the change…
SkillBFreshness: B★ 1Claude Code +9 - 0.552score
explainer-content-workflow-base
choplin
Shared internal contract for complete source-explainer workflows from source-specific extraction and reports through reusable content modeling, immutable run…
SkillBFreshness: B★ 1Claude Code +9 - 0.552score
explainer-html-docs
choplin
The design system and deterministic generator for any skill that produces self-contained explainer HTML.
SkillBFreshness: B★ 1Claude Code +9 - 0.549score
explainer-audio-dialogue
choplin
Write one human-readable two-speaker A:/B: dialogue from an exact Guide plan.
SkillBFreshness: B★ 1Claude Code +9 - 0.549score
book-explainer-generate-site
choplin
Internal site-production phase that builds a local PDF or EPUB book reading site from an exact run request, Content brief, Run Manifest, canonical structure…
SkillBFreshness: B★ 1Claude Code +9 - 0.549score
epub-explainer-summarize
choplin
Digest a DRM-free reflowable EPUB into a source-locator-anchored Markdown overview without rasterizing its text, structure, tables, footnotes, or media.
SkillBFreshness: B★ 1Claude Code +9 - 0.549score
explainer-audio-cast-base
choplin
Internal resource package invoked by audio guide planning, dialogue authoring, and narration.
SkillBFreshness: B★ 1Claude Code +9 - 0.549score
explainer-audio-guide-plan
choplin
Create a source-grounded Guide plan for one audio guide by applying resolved policy, mapping atomic Content brief obligations through a named whole-guide…
SkillBFreshness: B★ 1Claude Code +9 - 0.549score
explainer-audio-voicevox
choplin
Convert one content-accepted human-readable A:/B: dialogue into a propositionally identical VOICEVOX AquesTalk-kana script, verify pairing, and validate every…
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
explainer-audio-narrate
choplin
Synthesize an existing A:/B: VOICEVOX-kana dialogue script into AAC/m4a with local VOICEVOX and ffmpeg.
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
explainer-audio-dialogue-review
choplin
Independently validate one human-readable audio dialogue against its listener destination, Guide plan, source-grounded coverage, explanatory depth, and…
SkillBFreshness: B★ 1Claude Code +9 - 0.544score
explainer-audio-guide
choplin
Coordinate creation, review, VOICEVOX preparation, narration, continuation, or selective rebuilding of one audio guide from an exact existing source or report.
SkillBFreshness: B★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 20, 2026 (2 months ago)
- Last release
- Aug 20, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/choplin/explainer-studio
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from choplin
- 0.552score
explainer-html-docs
choplin
The design system and deterministic generator for any skill that produces self-contained explainer HTML.
SkillBFreshness: B★ 1Claude Code +9 - 0.552score
diff-explainer
choplin
Generate a reviewer-facing HTML explanation of a git diff — for a PR, a branch, a commit range, or uncommitted work — including the context behind the change…
SkillBFreshness: B★ 1Claude Code +9 - 0.552score
explainer-content-workflow-base
choplin
Shared internal contract for complete source-explainer workflows from source-specific extraction and reports through reusable content modeling, immutable run…
SkillBFreshness: B★ 1Claude Code +9 - 0.549score
explainer-audio-dialogue
choplin
Write one human-readable two-speaker A:/B: dialogue from an exact Guide plan.
SkillBFreshness: B★ 1Claude Code +9 - 0.549score
explainer-audio-cast-base
choplin
Internal resource package invoked by audio guide planning, dialogue authoring, and narration.
SkillBFreshness: B★ 1Claude Code +9 - 0.549score
book-explainer-generate-site
choplin
Internal site-production phase that builds a local PDF or EPUB book reading site from an exact run request, Content brief, Run Manifest, canonical structure…
SkillBFreshness: B★ 1Claude Code +9
Cite this page
codebase-explainer skill. Agent Mart. https://agentmart.dev/skills/choplin-codebase-explainer (last updated 2026-10-24)