/splicedeck:cutting-a-deliverablefrom splicedeck
Drives splicedeck to turn a source video into a delivered file. Covers verb order (inspect→draft→splice→verify→deliver), preconditions, and the common trap of confusing source handles with source keys.
Ships in splicedeck. 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.
splicedeck's tool list tells you what each verb takes. It cannot tell you the order, or what each verb needs the previous one to have done. That is this file.
Parameters and envelopes are owned by docs/agent-surface.md §4. Do not learn them
from here — run spd <verb> --help, or read that document. The verb table with
cost and surface columns is in references/verb-table.md,
generated from the code.
inspect → draft → splice → verify → deliver
Each arrow is a real dependency, not a convention.
inspect --path <file> reads the source and mints a source handle (s1).
Nothing downstream works without one. The path is workspace-relative; an
absolute path refuses PATH_OUTSIDE_WORKSPACE.draft starts a cut sheet from a source handle, a bookmark and a delivery
profile, and mints a sheet handle (c1). It needs casebook/parties/<party>/
to exist as a directory. A party is created by a human, by hand.
In a directory that is not yet a workspace, spd init writes bookmarks/,
profiles/, elements/ and casebook/ first. It never overwrites.splice adds a segment to the sheet's body lane. A sheet with an empty body
lane cannot be delivered.verify runs every gate and records a state_hash.deliver encodes and muxes. It compares the sheet against the hash verify
recorded, so any change to the sheet after verify requires another
verify. That is what SHEET_NOT_VERIFIED means.preview substitutes for deliver when you want a bounded span at a lower rung.
It has the same preconditions.
draft and splice both take a parameter called source, and they mean
different things.
| Verb | source is | Example |
|---|---|---|
draft | a source handle, minted by inspect | s1 |
splice | a source key from the sheet's sources[] | a |
Passing s1 to splice refuses UNKNOWN_HANDLE with an empty retry_with. Read
the key out of the sheet:
python -c "import json,sys; print([s['key'] for s in json.load(open(sys.argv[1]))['sources']])" sheets/<party>/<id>.sheet.json
Every time value is an integer at 90000 ticks per second. There are no floats anywhere in the time domain, and the grid is why a cut lands where the sheet says.
| Duration | Ticks |
|---|---|
| one second | 90000 |
| ten seconds | 900000 |
| one frame at 25 fps | 3600 |
| one frame at 30000/1001 | 3003 |
Ranges are in / out / at, never origin-plus-extent, so moving a cut changes
one number. out is the first tick not kept.
ready is a cheap survey of what is present. trial is the expensive one: it
proves encoders by test-encoding them.
Never read ffmpeg -encoders and never lower a rung on a guess. A listed
encoder is not a proven encoder — on the reference machine h264_nvenc is listed
and fails at open, while h264_qsv works and appears in no guide. That gap is why
trial exists. If deliver refuses ENCODER_UNPROVEN, run trial, do not
substitute an encoder yourself.
If ready reports no speech tier, hear, quote and captions-from-speech will
refuse. Everything else still works: a machine with ffmpeg and no speech tier
delivers a finished video.
free and cheap verbs return in under ten seconds and report no progress.
heavy verbs (deliver, preview, caption, hear, watch) return a job
handle and report progress. A 124-second source delivered in about 157 seconds on
the reference machine, so do not treat a slow deliver as a hang.
Cancelling a running job from an MCP host does not work today — the stdio loop
is single-threaded, so nothing arrives during a call. From a terminal, spd cancel --job j1 and Ctrl-C both work.
Handles (s1, c1, g1, j1) are minted by the pipeline and recorded in
.spd/, so one issued by an MCP session still resolves in a terminal an hour
later. Never invent a handle. An unknown one refuses UNKNOWN_HANDLE.
Writing verbs accept key for idempotent replay: the same key with the same
arguments returns the memoised reply, and with different arguments refuses
KEY_REUSED. A key must be an identifier — letters, digits, dot, underscore,
hyphen, beginning and ending alphanumeric. Never build a key out of a path.
stdout carries exactly one JSON envelope. Progress and diagnostics go to stderr,
so spd verify --sheet c1 | jq .value never breaks.
| Exit code | Means |
|---|---|
| 0 | a reply |
| 1 | a refusal — the envelope is still on stdout |
| 2 | a usage error |
| 130 | cancelled |
A refusal is not a crash. It carries its own correction. When one arrives, use the
recovering-from-a-refusal skill.
spd init # only in a directory that is not already a workspace
mkdir -p casebook/parties/demo
spd inspect --path media/talk.mov
spd draft --party demo --source s1 --bookmark baseline --profile wide-1080
spd splice --sheet c1 --source a --in_ticks 0 --out_ticks 900000 \
--source_in_ticks 0 --cause manual --why "opening ten seconds"
spd verify --sheet c1
spd deliver --sheet c1
baseline is the only bookmark that ships. The twelve selectable ones are an open
design question (docs/bookmarks.md B-2) and must not be invented — naming one
would fix a public name by accident.
Do not plan a session around these; they refuse by design or by defect.
hear, quote). The speech binary has no working
download source. The refusal TIER_BINARY_ABSENT names a fetch command that
cannot currently succeed.recall/ is built and tested but no verb reads it, so
every draft reports findings_used: 0.cutting-vertical-clips skill.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/contributing-to-splicedeckThe change workflow for the splicedeck codebase itself - adding or changing a verb, a refusal code, a gate or a package, and the checks that must pass. Use when editing anything under splicedeck/, checks/ or docs/, when a check fails and the reason is not obvious, when asked how to add a verb or a refusal, or when two documents disagree about what is correct./cutting-vertical-clipsCuts a vertical clip out of a finished master with splicedeck, keeping the subject in frame. Use when asked for a vertical cut, a short, a clip for phones, a 9:16 or 1080x1920 export, when a subject drifts out of frame, or when carve, watch, NEEDS_FRAMING, SOURCE_TOO_NARROW, WINDOW_ASPECT or SUBJECT_MODEL_ABSENT come up./Other plugins' skills for the same job
npx claudepluginhub ihuzaifashoukat/splicedeck --plugin splicedeck