/narrated-video-context:narrated-video-to-contextfrom narrated-video-context
Turn a narrated phone video (e.g. apartment fix list) into agent context with an aligned transcript and stills referenced inline.
Ships in narrated-video-context. 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.
The user filmed something and talked over it: "we need a new printer cable here", "this
tap drips". Produce a bundle an agent can work from: a clean transcript, one still per
thing referred to, and each still referenced inline right after the sentence it
illustrates. Format: references/output-format.md.
There are two modes, picked by what arrives with the video:
<video-base>.marks.json sidecar (references/marks-format.md,
written by the Narrated Video Marker Android app, or by any tool using that format).
The user pressed MARK when the subject was in frame. Marks are the anchors..marks.json next to it.references/task-profiles.md): from the user's words, else general.<video-dir>/<slug>-context/, where the slug comes from
the profile and the date.Settings only, in ${WORKSPACE:narrated-video-context}/config.json:
{"backend": "openai|deepgram|whisperx", "language": "en", "output_root": "<optional>"}.
Private profiles go in ${WORKSPACE:narrated-video-context}/profiles.md. Bundles go where
the user says, never into the workspace. Create the config on first use. Ask once which
backend has a key, and suggest openai.
Probe. ffprobe -v error -show_entries format=duration:stream=codec_type,width,height -of json <video>.
Confirm there's an audio stream. Read the sidecar if present, and check
format == "narrated-video-marks" and version == 1. complete: false is fine:
use the marks it has.
Transcribe with word timestamps.
uv run ${PLUGIN_ROOT}/scripts/transcribe.py <video> --out <out>/source/transcript.aligned.json --backend <b> [--language xx]
openai (whisper-1, word + segment timestamps; OPENAI_BASE_URL for compatible
servers) or deepgram (nova-3): hosted, cheap, light on the machine. Default.whisperx: forced alignment, best timing, but needs a GPU. Run it only on a machine
that has one. Never on a laptop without asking.<out>/source/ as well.Read the transcript (segments, not the word list) and plan the frames:
t (about 4 s before to 2 s
after). That is the sentence the frame belongs to. A mark with no speech near it still
gets a frame. Caption it from the image, and list it in ## Notes.uv run ${PLUGIN_ROOT}/scripts/find_phrase.py <transcript> "<phrase>". Take the
match's end: the camera usually lands on the thing as the sentence finishes.## Notes ("mentioned but not marked: the boiler").Grab a still per anchor.
uv run ${PLUGIN_ROOT}/scripts/grab_frame.py <video> --at <t> --id F00N --frames-dir <out>/frames [window]
--before 0.8 --after 0.4. Tapping shakes the phone, so the good frame is
just before the press.--before 0.6 --after 1.6).
It returns the sharpest, well-exposed candidate plus alternates.Look at every frame (Read the image). Keep it only if it shows what the sentence is about. If it doesn't:
alternates in order, copying the good one over frames/F00N.jpg;grab_frame.py with a wider or shifted window (e.g. --at <t+1.5>
--after 3) — the user often points the camera a beat late;## Notes.
Write the caption from what you see. Set reviewed: true.Write the bundle per references/output-format.md: context.md (clean prose, no
timestamps, each frame on its own line after its sentence) and frames.json. If the
profile has a task file (e.g. tasks.md for apartment-fix-list), write it too. It
references the same frame files. Renumber IDs if you dropped any, then delete
frames/_candidates/.
Report in a few lines: the bundle path, the mode, the frame count, and anything in
## Notes. Don't paste the transcript back.
ffmpeg/ffprobe and uv. The scripts pull their Python dependencies
(requests, opencv-python-headless) through inline uv metadata.examples/apartment-fix-list/ in the plugin repo.video-steering skill (screen recordings for software feedback) samples
frames by scene change. This skill anchors frames to what was said or marked.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
narrated-video-context@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin narrated-video-context