Example catalog

August 16, 2026 ยท View on GitHub

The examples are small, runnable programs built against Watch Skill's public interfaces. They are numbered by learning path, not release order.

Before you run them

From the repository root:

uv sync --extra all
uv run watch-skill doctor

Commands below assume uv run --no-sync. If Watch Skill is already installed in your active environment, invoke python and watch-skill directly instead.

#ExampleMain requirementWhat you should learn
01Watch and askNetwork for the sample URLIndex one video and answer from cited evidence.
02Focused momentExample 01 or another indexed videoResample a narrow time window at higher density.
03Cross-video searchTwo or more indexed videosFind relevant moments across the library.
04UI loopPlaywright and a vision providerCapture, critique, fix, and verify a local page.
05Multilingual ArabicOCR extrasPreserve the source language through OCR, search, and answers.
06Agent integrationMCP or REST extraExpose the same engine to an external agent.
07Lessons and statsAn indexed videoStore a correction and inspect its cost/token effect.
08Loop typesVision provider; capture support variesApply the loop to generated video, games, and monitors.
09Framework adaptersThe selected framework extraHand native tools to LangChain, CrewAI, or Agents SDK.
10Structured extractionAn indexed clipProduce chapters, a bug report, and hook analysis.
11Batch modePillow and ffmpegIndex a folder and query it as one collection.
12Library memoryPillow and ffmpegSynthesize an answer whose evidence spans multiple clips.
13Self-improvementLocal lessons enabledEvaluate lessons and retire guidance the pipeline outgrew.
14Browser verificationPlaywright and a vision providerCatch a transient flow bug that a final screenshot cannot show.
15Private offline workflowOCR extra and ffmpegRun acquisition, OCR, indexing, and answers with cloud use disabled.
16Shareable viewerAny indexed videoExport one self-contained HTML report.
17Freshness and offlineffmpegAn overwritten video becomes a new revision; offline stays offline with keys set; an empty critique is inconclusive.
18Live watchffmpeg, PillowA state change reported while the source is still playing, then finalised into ordinary indexed memory.
19Live browserPlaywright chromiumPage pixels and console/network/DOM evidence, both before the page closes, against a broken local fixture.
20Observer LoopPlaywright chromiumA postcondition frozen first, a correction that waits for a named human, and a verdict from a separate process.
20Observer LoopPlaywright chromiumSuccess declared first, a correction that waits for a human, and a verdict from a separate verifier process.

Useful commands

watch-skill list
watch-skill clean --dry-run
watch-skill stats --cost

Most examples write only to the configured Watch Skill data directory. Examples that make temporary clips identify their workspace in the output and remove it when the process exits. The shareable-viewer example writes the requested HTML file intentionally.

Contributing an example

Keep each example focused on one outcome. Include a README.md, a runnable entry point, the exact command, prerequisites, and representative output. Network-backed examples should provide a local or generated alternative when that is practical.