MCPInstall

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.

Installs
86
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/kitlangton/skills --skill code-walkthrough
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads code-walkthrough automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Code Walkthrough

Use a verified tour: establish the real code and output first, then guide attention through one immutable Navi tour.

Prepare The Session

  1. Confirm termctrl, Neovim 0.10 or newer, and navi.nvim are available.

  2. Start Neovim in the project root as a visible foreground session:

    termctrl run walkthrough -- nvim
    
  3. Use Terminal Control from another process to inspect and drive that same session. Prefer interact through the Terminal Control MCP when available; otherwise use termctrl show, termctrl send, and termctrl wait.

  4. 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

  1. Ask what the viewer should understand or be able to explain afterward when the outcome is unclear.
  2. Read the relevant code and run the narrowest command that proves its current behavior.
  3. Inspect the actual visible result. Do not write notes from an expected or remembered result.
  4. 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.

  1. Add a Window Capture source for the terminal window containing termctrl run.
  2. Crop unrelated tabs, prompts, notifications, and private paths before recording.
  3. 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.
  4. Perform a short test recording. Verify text legibility, microphone level, terminal contrast, and that Navi notes fit without clipping.
  5. 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 --record before presenting:

    termctrl run walkthrough --record artifacts/walkthrough.termctrl -- nvim
    
  • Add markers at meaningful moments, then inspect or export the recording after the session ends:

    termctrl mark walkthrough contract
    termctrl mark walkthrough mechanism
    termctrl markers artifacts/walkthrough.termctrl
    termctrl video artifacts/walkthrough.termctrl --out artifacts/walkthrough.mp4
    

Do not record or retain terminal input, source, paths, or output that may contain secrets unless the user explicitly needs that artifact.

Finish

Clear the tour and stop the session unless the user wants it left open:

:NaviClear
termctrl stop walkthrough

Report the verified behavior, the journey presented, and any retained artifact paths. The walkthrough is complete when the viewer has traversed the journey, the terminal session has the requested final state, and every promised artifact has been checked.

Tool References

FAQ

What does the code-walkthrough skill do?

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.

How do I install code-walkthrough?

Run npx skills add https://github.com/kitlangton/skills --skill code-walkthrough in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/code-walkthrough/ (personal) or .claude/skills/code-walkthrough/ (project).

Which AI agents can use code-walkthrough?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is code-walkthrough safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains code-walkthrough?

It is published by kitlangton in kitlangton/skills. It has 86 recorded installs.

More from kitlangton/skills

View all →

effect

kitlangton/skills

Opinionated guide for building production TypeScript applications with Effect v4. Use when implementing Effect workflows, services, layers, schemas, configuration, schedules, caches, streams, HTTP clients, or tests.

Testing & QA2.5K installs

Popular docs & writing skills

View category →

grill-with-docs

mattpocock/skills

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

Docs & Writing1.2M installs

lark-markdown

open.feishu.cn

飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。

Docs & Writing778.7K installs

writing-beats

mattpocock/skills

Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

Docs & Writing490.7K installs

writing-shape

mattpocock/skills

Writing, exploit: shape raw material into an article, paragraph by paragraph.

Docs & Writing490.2K installs

writing-fragments

mattpocock/skills

Writing, explore: mine raw fragments, no structure yet.

Docs & Writing489.6K installs

writing-for-agents

mattpocock/skills

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

Docs & Writing479.3K installs