codebase-explainer
Turn a codebase into an onboarding playlist — Claude-authored analysis docs plus NotebookLM explainer videos (one overview + one per subsystem).
Skill by TheophilusChinomona
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/theophiluschinomona-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
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
- Python package
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
- Turn a codebase into an onboarding playlist — Claude-authored analysis docs plus NotebookLM explainer videos (one overview + one per subsystem). Use when asked to explain a codebase, onboard onto a repo, make explainer/walkthrough videos of the code, or 'help me understand how this whole thing works'.
- License
- MIT
- Instructions
- 81 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (5)
- SKILL.md
- build_videos.py
- notebooklm_runner.py
- plan_state.py
- preflight.py
SKILL.md (first lines)
# Codebase Explainer
Produces an onboarding playlist for a repository: narration-friendly Markdown
docs plus NotebookLM **explainer videos** (one overview + one per subsystem).
Claude does the judgement stages (map, author docs); Python scripts do the
mechanical stages (preflight, build). Built on `notebooklm-py` via its CLI.
## Outputs (in the target repo)
- `docs/onboarding/00-overview.md`, `NN-<subsystem>.md` — analysis docs
- `docs/onboarding/videos/*.mp4` — generated videos
- `docs/onboarding/index.md` — playlist linking each doc → its video
- `.claude/idev/codebase-explainer/plan.json` — build plan (you author this)
- `.claude/idev/codebase-explainer/state.json` — resumable progress
## Stage 1 — Preflight
Run and read the JSON:
```bash
python3 "${CLAUDE_PLUGIN_ROOT}/skills/codebase-explainer/preflight.py"
```
If `ready` is false, surface each `messages` line to the user (install /
`notebooklm login`) and STOP until resolved. Auth is an interactive Google
login the user performs once.
## Stage 2 — Map the codebase
Read existing idev caches first when present (they are a head start):
`.claude/idev/smart-context/index.json`, `.claude/idev/project-map/project.map.md`,
`.claude/idev/architecture-scanner/cache.json`. Then dispatch the
`onboarding-guide` agent to identify: tech stack, entry points, and the major
**subsystems** (name, purpose, boundary paths, key files, dependencies, primary
data flow). If few/no subsystems are detected (tiny repo), plan an overview
video only.
## Stage 3 — Author docs + build plan
Write to `docs/onboarding/`:
- `00-overview.md` — architecture, how the pieces fit, main end-to-end flows.
- `NN-<subsystem>.md` — one per subsystem: purpose, how it works, key files,
dependencies, data flow. Write **prose that explains concepts**, not code dumps.
Then write `.claude/idev/codebase-explainer/plan.json`:
```json
{
"style": "whiteboard",
"videos": [
{"key": "overview", "title": "Overview",
"notebook_name": "<repo> — Overview",
"sources": ["docs/onboarding/00-overview.md", "<1-2 key entry files>"],
"instructions": "Explain how this system works for a new developer: architecture and main flows.",
"output": "docs/onboarding/videos/00-overview.mp4",
"doc": "docs/onboarding/00-overview.md"},
{"key": "<subsystem-key>", "title": "<Subsystem>",
"notebook_name": "<repo> — <Subsystem>",
"sources": ["docs/onboarding/01-<subsystem>.md", "docs/onboarding/00-overview.md", "<key raw file>"],
"instructions": "Explain the <subsystem> for a new developer: responsibilities, key files, main data flow.",
"output": "docs/onboarding/videos/01-<subsystem>.mp4",
"doc": "docs/onboarding/01-<subsystem>.md"}
]
}
```
- `sources` are file paths (docs + a few key raw files for grounding — hybrid).
- `style` applies to every video for a consistent look; set it to the `--style <visual-style>` value from `$ARGUMENTS` (default `whiteboard` if omitted).
- If a `subsystem` positional argument was given in `$ARGUMENTS`, limit `videos` to the overview entry plus that one subsystem's entry only (still write the overview doc for context, but omit all other subsystem docs from plan.json).
- If few/no subsystems were detected (tiny repo, same as Stage 2), omit the per-subsystem `NN-<subsystem>.md` docs and include only the overview video in plan.json.
## Stage 4 — CHECKPOINT (mandatory)
STOP. Tell the user the docs are in `docs/onboarding/` and ask them to review/edit
before any videos are generated. Nothing has been sent to NotebookLM yet. Only
continue on explicit approval.
## Stage 5 — Build & generate
```bash
python3 "${CLAUDE_PLUGIN_ROOT}/skills/codebase-explainer/build_videos.py" \
--plan .claude/idev/codebase-explainer/plan.json \
--state .claude/idev/codebase-explainer/state.json \
--index docs/onboarding/index.md
```
Generates sequentially (overview first), polling and downloading each video.
On a failure (e.g. NotebookLM daily limit) it records progress and stops — tell
the user which videos remain and that **re-running the same command resumes**,
skipping completed videos. Report the final playlist at `docs/onboarding/index.md`.From TheophilusChinomona/idev, MIT.
More from TheophilusChinomona/idev
- 0.521score
branch-sync
TheophilusChinomona
Syncs the current feature branch with the team base branch (merge base into feature) before creating a PR, resolving merge conflicts safely with build/test…
SkillBFreshness: BClaude Code +9 - 0.517score
browse
TheophilusChinomona
Interactive browser QA using xd://browser or (optionally) the gstack browse binary for headed mode.
SkillBFreshness: BClaude Code +9 - 0.516score
db-preflight
TheophilusChinomona
Scans DBScripts/ folder for unapplied database migrations and surfaces them before builds or at session start.
SkillBFreshness: BClaude Code +9 - 0.516score
env-preflight
TheophilusChinomona
Session environment sanity check — verifies cwd is the repo root, git auth is live, DB env vars are present, and reports active sandbox constraints.
SkillBFreshness: BClaude Code +9 - 0.516score
eval-harness
TheophilusChinomona
Evaluation framework for capability and regression evals with pass@k metrics.
SkillBFreshness: BClaude Code +9 - 0.516score
context-switching
TheophilusChinomona
Switches between development modes (dev, review, research) by loading the appropriate context.
SkillBFreshness: BClaude Code +9 - 0.516score
continuous-learning
TheophilusChinomona
Automatically extracts reusable patterns from sessions and saves them as learned skills.
SkillBFreshness: BClaude Code +9 - 0.513score
api-contract-validation
TheophilusChinomona
Discovers and validates API endpoints between frontend and backend.
SkillBFreshness: BClaude Code +9 - 0.513score
build-check
TheophilusChinomona
Auto-detects the project's build system and runs compile/type-check after file changes, auto-fixing straightforward errors (max 3 attempts).
SkillBFreshness: BClaude Code +9 - 0.508score
architecture-scanner
TheophilusChinomona
DEPRECATED — Use project-map, backend-patterns, and frontend-patterns instead.
SkillBFreshness: BClaude Code +9 - 0.508score
file-index
TheophilusChinomona
DEPRECATED — Use smart-context for feature-to-file lookups.
SkillBFreshness: BClaude Code +9 - 0.472score
auto-learning
TheophilusChinomona
Instinct-based learning system that observes sessions via hooks and evolves patterns into skills/commands/agents.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 25, 2026 (4 months ago)
- Last release
- Jun 25, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/TheophilusChinomona/idev
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from TheophilusChinomona
- 0.521score
branch-sync
TheophilusChinomona
Syncs the current feature branch with the team base branch (merge base into feature) before creating a PR, resolving merge conflicts safely with build/test…
SkillBFreshness: BClaude Code +9 - 0.517score
browse
TheophilusChinomona
Interactive browser QA using xd://browser or (optionally) the gstack browse binary for headed mode.
SkillBFreshness: BClaude Code +9 - 0.516score
db-preflight
TheophilusChinomona
Scans DBScripts/ folder for unapplied database migrations and surfaces them before builds or at session start.
SkillBFreshness: BClaude Code +9 - 0.516score
context-switching
TheophilusChinomona
Switches between development modes (dev, review, research) by loading the appropriate context.
SkillBFreshness: BClaude Code +9 - 0.516score
continuous-learning
TheophilusChinomona
Automatically extracts reusable patterns from sessions and saves them as learned skills.
SkillBFreshness: BClaude Code +9 - 0.516score
env-preflight
TheophilusChinomona
Session environment sanity check — verifies cwd is the repo root, git auth is live, DB env vars are present, and reports active sandbox constraints.
SkillBFreshness: BClaude Code +9
Cite this page
codebase-explainer skill. Agent Mart. https://agentmart.dev/skills/theophiluschinomona-codebase-explainer (last updated 2026-10-24)