code-walkthrough
Guide a visible, verified code walkthrough in Neovim with Terminal Control and Navi, optionally recording the presentation with OBS or retaining terminal…
от skillmds★ 42 звезды на GitHub
Установить code-walkthrough в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Code Walkthrough
Use a verified tour: establish the real code and output first, then guide attention through one immutable Navi tour.
Prepare The Session
Confirm
termctrl, Neovim 0.10 or newer, andnavi.nvimare available.Start Neovim in the project root as a visible foreground session:
termctrl run walkthrough -- nvimUse Terminal Control from another process to inspect and drive that same session. Prefer
interactthrough the Terminal Control MCP when available; otherwise usetermctrl show,termctrl send, andtermctrl wait.Resize before composing the tour if the visible terminal is too narrow. Keep the size stable while presenting or recording.
The session is ready when the human and agent see the same settled Neovim screen and the agent can inspect it through Terminal Control.
Establish The Journey
- Ask what the viewer should understand or be able to explain afterward when the outcome is unclear.
- Read the relevant code and run the narrowest command that proves its current behavior.
- Inspect the actual visible result. Do not write notes from an expected or remembered result.
- Choose one conceptual journey. A useful journey often moves from public behavior to the mechanism that produces it, then to the observed result.
Do not combine an overview, failure diagnosis, implementation tour, and fix into one sequence. The journey is established when each planned stop is necessary to answer one coherent question.
Author One Immutable Tour
Create a JSON file outside the source tree when the tour is temporary. Use literal patterns when they are unique and stable; use line numbers only when exact positions are the point.
[
{
"file": "src/example.test.ts",
"pattern": "it(\"updates subscribers\"",
"end_pattern": "expect(runs).toBe(2)",
"message": "The public contract starts here: one write must cause one additional run."
},
{
"file": "src/example.ts",
"pattern": "export function notify",
"end_pattern": "subscriber()",
"message": "The implementation reaches every subscriber through this loop."
}
]
Load it without modifying it:
:NaviLoad /absolute/path/to/tour.json
Apply these rules:
- Create at most one tour per assistant response.
- Treat a shown tour as immutable. Do not rewrite its stops or notes in the same response.
- Start at the behavior or call site before entering implementation details.
- Use one range stop for adjacent lines that form one simple mechanism.
- Use multiple stops only for a genuine journey between distinct locations.
- Put most of the explanation in short, casual Navi notes; keep chat brief.
- Keep concise verified output at the decisive assertion or result when it helps explain the behavior.
- If verification disproves the explanation, stop and say so. Clear or replace the tour only in the next response.
The tour is complete when every stop resolves, the first stop is visible, and its notes agree with the verified code and output.
Present The Tour
Let the viewer control the pace unless asked to drive:
]n next stop
[n previous stop
<leader>np pick a stop
<leader>nc clear the tour
These are recommended mappings, not Navi defaults. If they are unavailable, use :NaviNext, :NaviPrev, :NaviPick, and :NaviClear.
Pause for questions without replacing the active tour. A follow-up explanation may focus the current range or inspect output, but a different conceptual journey belongs in a later tour.
Record With OBS
Use OBS when the desired artifact is the human-facing presentation, including natural pacing, narration, window chrome, or other visual context.
- Add a Window Capture source for the terminal window containing
termctrl run. - Crop unrelated tabs, prompts, notifications, and private paths before recording.
- Set the terminal size, font size, OBS canvas, and capture crop before authoring the tour so notes wrap exactly as they will in the recording.
- Perform a short test recording. Verify text legibility, microphone level, terminal contrast, and that Navi notes fit without clipping.
- Start OBS recording, present the immutable tour, then stop recording after the final frame has held long enough to read.
OBS is the primary recording in this branch. Terminal Control remains the agent-control and verification surface.
Retain Terminal Evidence
Use Terminal Control artifacts when the user wants a terminal-native replay, a screenshot, or debugging evidence rather than a full OBS presentation.
Capture the current screen at any time with
termctrl save walkthrough --format png --out artifacts/current.Recording must be enabled when the session starts; it cannot currently be added to an already-running foreground session.
For a terminal-native recording, restart deliberately with
--recordbefore presenting:termctrl run walkthrough --record artifacts/walkthrough.termc
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл code-walkthrough?
Guide a visible, verified code walkthrough in Neovim with Terminal Control and Navi, optionally recording the presentation with OBS or retaining terminal evidence. Use when the user wants an agent-led code tour, code-along, live source explanation, or recorded terminal walkthrough.
Как установить скилл code-walkthrough?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-walkthrough запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…