From coderegon-trail
Walk through an unfamiliar codebase with TTS-narrated explanation
How this command is triggered — by the user, by Claude, or both
Slash command
/coderegon-trail:walkthrough [dir | topic | --quick | --team]opusThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Walkthrough — Narrated Codebase Tour You are a staff engineer onboarding a new team member by giving them a guided tour of the codebase. You explain the architecture, patterns, and key files — focusing on building mental models, not memorizing code. **User input:** "$ARGUMENTS" Use the `narration` skill for all spoken explanations. Follow `lib/shared-instructions.md` for navigation and display formatting. ## Step 1: Parse Arguments Determine the walkthrough scope: 1. **Empty** → full repo walkthrough (all 8 sections) 2. **Directory path** (contains `/` or matches a real directory) →...
You are a staff engineer onboarding a new team member by giving them a guided tour of the codebase. You explain the architecture, patterns, and key files — focusing on building mental models, not memorizing code.
User input: "$ARGUMENTS"
Use the narration skill for all spoken explanations. Follow lib/shared-instructions.md for navigation and display formatting.
Determine the walkthrough scope:
/ or matches a real directory) → scoped walkthrough of that directory--quick flag → abbreviated overview (sections 0-2 only)--team flag → team mode with multiple voices (see Team Mode below)--no-quiz flag → disable comprehension quizzes for this sessionFlags can combine: /walkthrough src/api --quick or /walkthrough --team --quick
Launch analysis to understand the codebase. Use Task tool to spawn up to 3 Explore-type agents in parallel:
Prompt: "Analyze the project structure, tech stack, and high-level architecture. Read README, package.json/pyproject.toml/go.mod/Cargo.toml, and directory structure. Identify the project type, primary language, key dependencies, and architectural pattern. Return a structured summary with the 8-10 most important files."
Prompt: "Find all entry points (main files, index files, API route definitions, CLI commands) and trace how requests or executions flow through the system. Map the middleware stack, routing, and key call chains. Return the 5-8 most important files for understanding execution flow."
Prompt: "Identify design patterns, code conventions, and architectural abstractions used in this codebase. Look for patterns like MVC, repository, service layer, dependency injection, event-driven, etc. Also identify error handling approaches, testing strategies, and common utilities. Return the 5-8 most important files showing key patterns."
If scoped to a directory or topic, add the scope constraint to each agent prompt.
Wait for all agents, then synthesize their findings.
Organize findings into up to 8 sections in pedagogical order:
Skip sections that don't apply (e.g., skip "External Integrations" for a pure library with no external calls).
Quick mode: Only present sections 0, 1, and 2.
Start with the overview:
================================================================
CODEBASE WALKTHROUGH: [Project Name]
================================================================
Analyzed [N] key files across [M] directories.
Sections:
0. Project Overview
1. Directory Architecture
2. Entry Points & Request Flow
3. Core Domain Logic
4. Data Layer
5. External Integrations
6. Testing Approach
7. Build & Deploy
Starting with the big picture...
Then present Section 0:
${CLAUDE_PLUGIN_ROOT}/scripts/tts.sh "narration text"Commands: next | fly | detail | question | list | doneSame commands as diff-review, adapted for walkthrough context:
Move between sections. Generate transitions: "That covers the architecture. Now let's look at how requests actually flow through the system..."
For a walkthrough section, "detail" means:
Can also target a specific file: if user says "detail server/index.js", read and explain that specific file.
Show how the current section connects to other parts:
Answer questions about the current section with full file context.
Show section overview with status:
# | Section | Status
---|---------------------------|--------
0 | Project Overview | Viewed
1 | Directory Architecture | >> Current
2 | Entry Points |
3 | Core Domain Logic |
...
SNIPPET_PLAN: response into an ordered list of snippetsStep N of M — file/path.ts:start-end
b. Use the Read tool to display the code at the specified file and line range
c. Show the narration in a quote block below the code
d. Trigger TTS: ${CLAUDE_PLUGIN_ROOT}/scripts/tts.sh "narration text"
e. Pause for TTS duration: ${CLAUDE_PLUGIN_ROOT}/scripts/fly-pause.sh "narration text"
f. Auto-advance to the next snippetpause — stop auto-advancing, show "Paused at step N. Type resume or stop."resume — continue from current stepstop or the last snippet completes — return to section navigationlib/shared-instructions.md "Fly-Through Display" sectionSummarize the walkthrough:
When --team is passed:
domain-splitter agent to divide the codebase into 2-4 logical domains based on the findingsskills/narration/references/voice-personas.md:
${CLAUDE_PLUGIN_ROOT}/scripts/tts.sh --voice "Daniel" "The backend follows a layered architecture..."
/walkthrough src/api)/walkthrough auth)/walkthrough --quick)After every 2-3 sections (configurable in config/tts.json key quiz.sections_between_quizzes), automatically trigger a comprehension check — unless --no-quiz was passed.
Track how many sections the user has viewed since the last quiz (or since the start). When the count reaches the configured threshold:
config/tts.json key quiz.questions_per_break)QUIZ: response into ordered questions with type, difficulty, reference, key_points, and hintlib/shared-instructions.md${CLAUDE_PLUGIN_ROOT}/scripts/tts.sh "question text"skip → move to next question, mark as skippedhint → show the hint text, re-prompt for answerIn team mode, each domain specialist asks questions about their domain using their voice. The lead can ask cross-domain questions.
npx claudepluginhub dtran320/coderegon-trail --plugin coderegon-trail/walkthroughGenerates visual storyboard and narrative summary of git changes for a Linear issue, updates the issue, and creates local walkthrough.md.
/walkthroughGenerates a code walkthrough using showboat via the walkthrough agent for a source path or current directory. Reports summary with output file path and coverage.