/nlsmdn:code-tourfrom nlsmdn
Give an interactive tour of code, starting with an overview of the changes and tracing concrete inputs through entry points, calls, state changes, and branches, pausing for questions at each step. Use for "code-tour", "give me a tour of the code", or "walk me through this code step by step". Defaults to staged changes, then unpushed commits when nothing is staged; accepts --staged, --changed, --unstaged, --unpushed, --all, or a target. Reuses relevant QA screenshots and logs. Use qa-tour for a walkthrough the user operates in the running app, and explain for a one-shot explanation or generated documentation.
Ships in nlsmdn. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Teach the selected code in the main conversation, following execution from a concrete input through its observable result. Keep the tour read-only unless the user explicitly requests an edit. Preparation is source inspection and reuse of existing evidence; it does not require starting the app or running QA.
Read project instructions and git status --short. Accept one scope flag; with no
flag or target, use --staged; if nothing is staged, use --unpushed. Announce the
resolved scope.
| Scope | Selection |
|---|---|
--staged (default; --unpushed when empty) | Staged changes: git diff --cached. |
--changed / --unstaged | Unstaged changes: git diff, plus relevant untracked files from git ls-files --others --exclude-standard. |
--unpushed | Changes across unpushed commits, identified with git rev-list HEAD --not --remotes; establish the range's base before reading its aggregate diff. Exclude working-tree changes. |
--all | The current project, organized into input-driven flows. |
| Target alone | The named feature, path, symbol, command, or request in the current code. With a scope flag, the target narrows that scope. |
An explicit scope that is empty stays empty, as does the default once its unpushed
fallback is empty too: report it and ask for another scope or target. Do not
substitute pushed commits. For --unpushed, ask for an explicit range or another
scope if there is no remote/upstream or no reliable base. An explicit revision or
range selects that historical code. Outside Git, a target or --all can still be
toured; ask for one when none was supplied.
Scope selects the changes to explain, not just filenames. Follow unchanged callers,
dependencies, and contracts when needed to connect those changes, identifying them
as existing context. Read the selected version: git show :path for staged files,
git show <revision>:path for committed code, and working-tree files for current
code. Do not mix unstaged edits into a staged explanation or switch checkouts.
For mixed working-tree changes, read both diffs to distinguish the selected delta.
Inspect the selected changes, relevant project docs, callers, implementations, and tests. Build an itinerary around behavior rather than diff order or file order. Group distinct features into separate flows; include supporting schemas, config, tests, and non-runtime changes where they explain a flow. If the selection is only configuration, docs, or tests, trace the consuming tool or test invocation instead of inventing an application entry point.
Choose a concrete input for each flow:
Before presenting a flow, establish its participating symbols/files and the main call and data relationships. Trace across callbacks, async boundaries, client/server handoffs, storage, and return/render paths. Keep hypothetical example values clearly separate from observed output; mark unresolved dynamic dispatch as uncertain.
Look for QA evidence paths already given in the conversation or project test docs.
Otherwise inspect indexes under $QA_EVIDENCE_DIR/<project>/ (or
${TMPDIR:-/tmp}/qa/<project>/ when it is unset), where <project> is named as the
qa skill names it: the folder grouping several checkouts of the repo, or else the
checkout directory without suffixes such as -dev2. The QA convention is <feature-slug>/index.md, with
-2, -3 suffixes for repeat runs of the same feature. Match the index's
checkout/build identity, scope, and scenarios rather than choosing the newest
directory indiscriminately. Durable runs may instead be linked from docs/tests/.
Read the matching index and only relevant artifacts. Check that each file exists and inspect its content before describing it; view screenshots rather than inferring their contents from filenames. Match UI evidence to the component, scenario, state, and viewport/device; match logs or request/response captures to the invocation and branch being explained. The index distinguishes original failures and retests: preserve that distinction. Label older or mismatched captures as historical context, not proof of the selected code's current behavior. If evidence is absent, expired, or unidentifiable, say so briefly and continue from source without running QA.
The first tour response contains:
Stop here and wait for the user. Do not append the full walkthrough to the overview. For later flows, introduce their code map before their first implementation stop.
Each stop covers one cohesive execution step, not an arbitrary whole file.
Open every stop with a progress header, including a stop re-presented or resumed after a question or side task, so the user can rejoin the tour without scrolling:
Follow it with a location line: app area › module or layer › file › symbol, plus how execution got here from the previous stop (which caller renders, calls, or dispatches to it). Describe the file's role in the app, not only its path.
Orient within the file too, in a line or two rather than a listing: what else the file
holds (its main exports, components, hooks, or sections) and where the excerpt sits
among them, such as inside which function, after which hook, or before which return.
When the excerpt is hard to follow on its own, keep a few enclosing lines, such as the
function signature or the surrounding block, and replace skipped spans with …
instead of showing the whole file.
Then the stop itself:
diff
excerpt with -/+ lines from the scope's diff, or a before/after pair when the
diff is hard to read, then say in a sentence or two what the old code did and what
behaves differently now. For a new file, say what it replaces or where that logic
lived before, if anywhere. A --all or target tour without a base has no
"before"; skip this there.[Rendered empty state](/absolute/path/Q2-empty.png) or a log/capture link.
Name the scenario/state and any material mismatch. Include a short relevant log
excerpt when it helps connect the source to the output.For staged or historical code that differs from the working file, label the excerpt's version and its line numbers explicitly; warn that opening the working-file link may show different code. Never present those coordinates as current-file lines.
End each stop with one line naming the next stop, invite questions or feedback, then end the turn and wait. Do not advance on silence. “Next”, “continue”, or equivalent advances one stop; a question keeps the current stop open. Answer follow-ups at the requested depth, then return to the same place. Honor requests to skip, reorder, or cover several steps together.
Feedback is not automatic permission to edit. If the user explicitly requests a change, complete it and re-read affected code before resuming. Likewise, incorporate user edits, rechecking affected references and evidence compatibility without silently widening the original scope. Keep the remaining itinerary current.
Finish once the selected flows and queued branches have been covered or explicitly skipped. Recap how inputs become outcomes, link the key code and evidence, and name any skipped or unresolved pieces. Do not turn the tour into an unsolicited review, documentation-writing task, or QA run.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub nielsmadan/skills --plugin nlsmdn65 skills in this plugin
/blind-spotsSurface consequential decisions a plan, design, or research brief left silently assumed, by interviewing the user in dependency order. Use when the user says "blind spots", "grill me", "stress-test this plan", "poke holes in this", "what am I missing", "interrogate this design", "what haven't I decided", or needs a loose idea or research brief clarified before work begins. Do NOT use for a clear factual lookup, to explain a previous reply in more detail (use `huh`), to generate ideas when it is unclear what to build (use `ideation`), or to review an already-written plan with agents (use `review-plan`)./brainstormWork out how to solve a problem the user can already name — interview them with `blind-spots` to understand it, generate structurally different approaches, validate each with an independent critic, then present the survivors with trade-offs and a recommendation. Use when the user says "brainstorm", "brainstorm approaches", "how should we solve/approach/tackle X", "what are our options", "compare approaches", "think this through with me", or wants solutions weighed before committing. Works on any topic, with codebase recon when a repo is involved; `--debate` adds external advisors for high-stakes calls. Do NOT use when stuck on what to build or what the problem is (use `ideation`), to probe an already-chosen plan (use `blind-spots`), or to pick a library or service (use `evaluate-tech`)./check-agent-logsSearch past Claude Code, Codex, Cursor CLI, Devin CLI, Droid, and Pi session logs to recover context from earlier work across the current project and sibling checkouts. Use when a bug, topic, or decision was handled in a previous session but its agent or checkout is unknown; when the user says "we fixed/discussed this before", "find the session where", "recover prior context", "check agent logs", "check Claude projects", "search past sessions/transcripts", or "which checkout was that in". Do not use for aggregate failure-pattern analysis; use review-logs for that./codebase-reviewReview a whole codebase aspect by aspect, with aspects fitted to the project type (mobile, desktop, web frontend, static site, CLI, backend, library) — docs truth-check, architecture, tests, security, the type's foundations, feature deep dives, consistency, roadmap — writing a doc per aspect and a verified findings ledger that doubles as the TODO. Plans first (recon, `blind-spots`, `review-plan`, plan approval), then walks the plan with the user aspect by aspect — agents review and verify in the background, the user confirms rulings and decides judgment calls one at a time. `--auto` runs independently after the gate, with decision waves at the end. `--fix` hands settled findings through `crew` to worker sessions, integrated locally, never pushed. Use for "codebase review", "review the whole codebase", "onboard me to this repo", "deep dive this app", "audit the code base", "review and fix everything". Not for a diff or PR (code-review), a CLI release pass (release-review), or building a feature (longshot)./codebase-review-typescriptSupply TypeScript and JavaScript structural evidence to codebase-review using dependency-cruiser, ESLint complexity, and Git churn. Use for whole-codebase import-cycle and complexity-hotspot investigation, or when discovered as a project-local codebase-review extension. Does not replace review-typescript's type-design checks or review a diff./code-guideCoach the user through writing a feature themselves, one small step at a time, the way an experienced developer would build it. Each step comes with the code to type and a checkpoint that proves it works, such as logging the endpoint's response shape before typing it, or rendering a hardcoded value before wiring the real one. After each step the agent reads the user's diff and verifies it. The happy path comes first and edge cases come last. Use when the user says "code-guide", "guide me to write", "help me write this myself", "I want to code it myself", "coach me through implementing", "walk me through building this feature", "don't write it for me", or wants to learn by typing the code. Do NOT use for console or dashboard setup (use guide), explaining existing code (use code-tour), or when the agent should implement the change itself (use plan or longshot).