df-video-intake
Skill4 starsChanged 2 months agoApache-2.0View on GitHub
Parse a video (mp4/mov/webm) into a transcript + timestamped frames so Claude can consume it, then extract context — specifically Dark Factory requirements — from it. Use when given a recording, demo, app walkthrough, screen recording, or "video" to summarize or turn into requirements/specs; when asked to "watch", "process", "consume", or "transcribe" a video; or to extract requirements/context from a demo for a dark factory build (PO vision, data contracts, validation rules, test scenarios).
- Installs packages
In this repository43 other files it gives its agents.
- skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- agent-notepadSkill
- architecture-reviewerSkill
- backend-service-auditorSkill
- channel-listenerSkill
- code-reviewerSkill
- coder-file-transferSkill
- cold-start-generatorSkill
- creating-skillsSkill
- critical-thinkingSkill
- dark-factory-buildSkill
- dependency-risk-auditorSkill
- df-adversary-gateSkill
- df-app-walkthroughSkill
- df-context-storeSkill
- df-data-transform-lensSkill
- df-dispatch-subagentsSkill
- df-infrastructureSkill
- df-observabilitySkill
- df-product-ownerSkill
- df-qaSkill
- df-solution-architectSkill
- df-tdd-developerSkill
- df-ui-verifySkill
- dx-maintainability-reviewerSkill
- frontend-auditorSkill
- handoffSkill
- microservices-architectSkill
- production-readiness-reviewerSkill
- repo-docsSkill
- requirements-discoverySkill
- sc-auditSkill
- sc-devSkill
- scope-initSkill
- scope-retireSkill
- security-threat-modelerSkill
- service-mapperSkill
- test-quality-gatekeeperSkill
- vercel-react-best-practicesSkill
- vinculum-loopSkill
- vinculum-mapSkill
- web-design-guidelinesSkill
- work-autonomouslySkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
If a tool is missing the script prints the exact install command and exits — install, then re-run.
- Very specific: line 78
Write the extraction as a new, source-derived doc next to the video (e.g.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dark Factory — Video Intake
Overview
Claude cannot read video or audio natively (the Read tool handles images, PDFs, and
notebooks only). This skill decomposes a video into things Claude can read — a
timestamped transcript and sampled frames — then guides turning that into
Dark Factory requirements via df-product-owner and df-data-transform-lens.
Two phases: Intake (mechanical, a script) → Extract (judgment, you + the DF skills).
When to Use
- The user hands you a video/recording/demo/walkthrough and wants it summarized, documented, or turned into requirements.
- "Can you watch / process / consume / transcribe this video?"
- "Extract requirements from this demo recording for the dark factory build."
- A screen-recorded SME/customer walkthrough that should become a PO requirements package.
Prerequisites
ffmpeg(+ffprobe) —brew install ffmpeg(macOS) /apt install ffmpeg(Debian).whisper-cpp—brew install whisper-cpp(provides thewhisper-clibinary). The ggml model auto-downloads to~/.cache/whisper-cppon first run and is reused after.- On Apple Silicon whisper-cli uses Metal/GPU automatically (≈24 s for a 9-min clip).
If a tool is missing the script prints the exact install command and exits — install, then re-run.
Phase 1 — Intake (run the script)
One command does probe → audio → transcript → frames:
bash "${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/skills/df-video-intake}/scripts/extract-video.sh" "<path/to/video.mp4>" [interval_seconds] [model]interval_seconds(default 12) — one frame every N seconds. ~9 min → ~45 frames.model(default small.en) —base.en(faster, ~148 MB) ·small.en(best quality/speed) ·medium.en(slower, more accurate).
Output lands in <video-dir>/<video-basename>-extract/:
probe.txt, audio.wav, transcript.txt, transcript.srt (timestamped), frames/iv_NNNN.jpg.
Frame ↔ time: iv_NNNN.jpg ≈ (NNNN-1) × interval seconds in. This is the join key
back to the SRT.
Why fixed-interval, not scene detection
For screen recordings, ffmpeg scene-change detection (select='gt(scene,0.3)')
fails — the UI changes gradually (scrolling, inline edits), so it yields ~0 frames.
Fixed-interval sampling guarantees coverage and clean timestamp alignment. (Scene
detection is still fine for edited video with hard cuts — not the usual demo case.)
Phase 2 — Extract (read, then turn into DF requirements)
- Read
transcript.txtin full. For a narrated demo it carries ~80% of the semantics and is cheap (text). The.srtgives you[mm:ss]timestamps to cite. - Read frames selectively, guided by the transcript. Each image costs context, so
don't bulk-read all 45 — jump to the timestamps where the narration references a
screen/state (
iv_NNNN ≈ time/interval). The transcript says intent; the frame is ground truth (demos often narrate one thing while showing another — frames catch it). - Invoke the DF lens + PO skills — this skill ends where they begin:
df-data-transform-lens— name the data nodes (origin/authority/governance) and transforms (pure|effect) the demo reveals.df-product-owner— produce Vision + Requirements (data contracts + validation rules) + Test Scenarios from the transcript+frames.
- Tag every claim
Confirmed(stated/shown) ·Inferred·Assumption·Open. A demo is one person's narration — never silently promote a guess to a requirement. - Cite evidence inline:
[mm:ss]for narration,ivNNNNfor the frame that proves it. - Flag effects — any ask that sends/charges/notifies/writes-external or reads PHI (e.g. "test against a real chart") so the SA assigns idempotency + compensation.
Output artifact convention
- Write the extraction as a new, source-derived doc next to the video (e.g.
requirements-docs/<name>-requirements-extraction.md), with frontmatter marking itstatus: source-derived (NOT canonical). - Do not silently mutate governed
docs/po/docs. If the repo already has a PO package, add a short "Relationship to existing docs/po" table mapping each extracted requirement to existing scenarios (Inferred), and offer a separate reconcile/gap-check. - End with an Open questions list — the things a cold Solution Architect would need
answered before designing (the
df-product-ownerexit-gate test).
Verification
transcript.txtis non-empty and coherent (skimwhisper.logif not — bad audio, wrong model, or a non-English track needs a non-.enmodel).- Frame count ≈
duration / interval; spot-read one mid frame for legibility. - Every requirement in the output carries a tag + at least one
[mm:ss]/ivNNNNcite. - Effects and Open questions sections are present.
Worked example
A ~9-minute product demo, run through this skill end to end (intake script → transcript+frames → df-product-owner), yielded a dozen requirements and several state-change test scenarios in PO format. Keep your own worked examples in your organisation layer, next to the artifacts they cite.
Troubleshooting
| Problem | Cause | Fix |
ffmpeg/whisper-cpp missing | not installed | run the printed brew install … line |
| Transcript empty / garbled | non-English audio, or .en model on non-English | use small / medium (no .en suffix) |
| Too many / too few frames | interval wrong for length | pass a larger interval for long videos, smaller for short |
| Wrong/garbled words for jargon | acronyms/domain terms | normal — confirm against frames; keep a glossary, tag Inferred/Open |
| Frames unreadable (tiny text) | downscaled source | zoom into the frame region, or lower interval near the key moment |
Resources
scripts/extract-video.sh— the intake pipeline (executed, not loaded into context).- Pairs with:
df-data-transform-lens,df-product-owner(and downstreamdf-solution-architect).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

