Skip to content

matthewcorven/narrated-walkthrough

v0.14.2MIT

Turn findings, a change set or a proposal into a narrated, diagram-driven walkthrough whose spoken audio, slides, captions and scrubber all follow one pre-planned timeline, with narration synthesized by a local text-to-speech model and an enforced invitation to respond when work is left open.

narrated-walkthrough

A plugin for turning findings, a change set, a proposal or a session outcome into a narrated, diagram-driven walkthrough whose spoken audio, slides, captions and scrubber all follow one pre-planned timeline.

Narration is synthesized by a local text-to-speech model, so the deck is produced without a cloud service and plays back exactly: nothing is synthesized at viewing time, so there is nothing to drift.

Why it exists

A prose summary compresses; a diagram shows; a walkthrough explains. The difference is the clock: if the audio, the diagram and the caption are positioned by three different mechanisms, they drift apart within a minute. Here one derived clock drives all three.

It also carries a contract the other presentation skills do not: when the work is left open, the walkthrough asks for an answer — in the narration, on the slide, and in the chat reply that delivers it.

What's inside

ComponentPathPurpose
narrated-walkthrough skillskills/narrated-walkthrough/SKILL.mdThe method, the clock model, the disposition contract, verification protocol and traps
Builderskills/narrated-walkthrough/scripts/build_narration.pySynthesizes missing clips, measures them, derives offsets, renders a single-file deck, serves it
Authoring methodskills/narrated-walkthrough/references/authoring-method.mdScene budgeting, narration for the ear, diagram contracts, disposition honesty
Rendering + timingskills/narrated-walkthrough/references/rendering.mdWhy the clock is derived, seeking, captions, the HUD, A2UI choices, the ask panel, browser verification
PR review walkthroughskills/narrated-walkthrough/references/pr-review-walkthrough.mdComposing change-learn, code review, playwright-report-retrieval, e2e-artifacts, Architect HUD, and A2UI PR verdict choices
Case studyskills/narrated-walkthrough/references/case-study.mdThe session that produced it, the four defects found, the measurements it narrated
Golden exampleskills/narrated-walkthrough/examples/golden/Three scenes, runnable end to end
Schemaskills/narrated-walkthrough/schemas/narrated-timeline.v1.jsonExecutable plan contract, closed at every level
Vendored Mermaidskills/narrated-walkthrough/assets/Version-pinned, hashed, MIT; inlined into every deck
Teststests/test_package.pyPlan contract, disposition contract, clock invariants, schema conformance, package shape

Quick start

cd skills/narrated-walkthrough/examples/golden
python3 ../../scripts/build_narration.py --validate   # plan contract only
python3 ../../scripts/build_narration.py --serve      # synthesize, render, serve on :8765

Then open http://127.0.0.1:8765/slides.html and press Play.

To author a real one, copy the golden directory, replace timeline.json, and delete any clip you want re-synthesized.

The plan contract

narrated-timeline/v1 is frozen to what the player actually consumes: title, scenes[], optional tts, optional disposition, optional hud, optional a2ui, plus the derived start and total_duration. It is additionalProperties: false at every level, so a speculative field fails immediately rather than lingering untested.

start and total_duration are permitted but never required — the builder writes them and the tests assert the cumulative invariant. Requiring them would invite someone to author them, which is exactly how a derived clock starts drifting.

The disposition contract

Set a disposition block when the walkthrough ends on choices or unknowns. The validator then refuses to build unless the final scene actually invites a reply, and refuses any narration that ends on a broadcast sign-off.

"disposition": {
  "kind": "choices_and_unknowns",
  "prompt": "Which way do you want to go?",
  "options": ["Fix the bug", "Ship the feature", "Park it"],
  "note": "Any answer works, including none. Type it in the chat, or use the microphone."
}

The chat reply that accompanies the deck must ask the same question, offer the same options, and say that no answer is acceptable.

The HUD and A2UI choices

Two optional blocks extend the deck without changing the clock contract:

  • hud — an Architect HUD above the slides with stat cards, trends, agent nodes that offer a copyable chat handoff, and artifact links. oversight_default picks the starting depth (executive, lead, full); artifact links appear only at full. The header also collapses to a compact Play/Pause and progress bar once the full controls scroll away.
  • a2ui — A2UI v1.0 messages (createSurface, updateComponents, updateDataModel) that drive the action surface. Leave it out and the player derives a default stream from disposition; supply it when you need explicit components. A chosen option dispatches an a2ui:action event and appears in window.state().lastA2uiAction.

Both are closed and optional: an unknown key fails the plan contract, and neither replaces the disposition.

Local speech

No defaults are shipped. endpoint, model and voice are required plan configuration; omit one and the build stops with the field named and the curl -s <host>/v1/models hint. A silent fallback would aim requests at whatever is listening on a port that belongs to someone else.

Any OpenAI-compatible /v1/audio/speech endpoint works. Requests pin response_format: "wav" and length is measured from the RIFF header, so no platform-specific audio tool is involved. Voices are server-defined; set tts.anchor_scene (or an explicit tts.ref_audio + tts.ref_text) along with optional language and temperature: 0.0 so every scene conditions on one consistent speaker voice. --only <scene> re-records one scene in place, and --force rebuilds all clips and re-derives every offset.

Offline by default

Mermaid is vendored and inlined, not fetched. assets/mermaid.min.js.gz is version-pinned (12.3.0), MIT-licensed, hash-recorded in assets/mermaid.VENDORED.md, and embedded directly into every deck — so a rendered walkthrough has no sibling file to lose and makes no network requests. The builder refuses to run without a mermaid_source; --cdn is the only path to the network, and it pins the same exact version. A deck that silently pulls from a CDN cannot be verified as offline, and an unpinned major means a walkthrough recorded today may render differently later — the wrong shape for a frozen timeline.

Build output

audio/ and slides.html are generated, not committed — the same reasoning as visual-proposal's evidence/. --no-audio renders the deck from the durations already recorded in the plan, so a reviewer can inspect layout, diagrams, captions and the ask panel without running a model.

Boundaries

  • Not a Marp/PDF proposal generator — that is visual-proposal.
  • Not a diff explainer — that is change-learn.
  • The deck reports; it does not authorize the work it describes.
  • Audio quality and audibility are verified by the human, never by the agent.

Requirements

python3 (stdlib only) and a reachable TTS endpoint for the full path (--no-audio needs neither). Mermaid is a vendored local asset, so the rendered deck makes no network requests at all.

Install

copilot plugin marketplace add matthewcorven/corven-agent-tools
copilot plugin install narrated-walkthrough@corven-agent-tools

Tests

python3 -m unittest discover -s tests -v