/splicedeck:recovering-from-a-refusalfrom splicedeck
Recovers from splicedeck refusals in one turn using retry_with suggestions, refusal codes, and four recovery rules. Use when spd exits 1 or refusal codes appear.
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.
A splicedeck refusal is a successful call that carries its own correction. It is not an error to report and not a wall to work around. Ninety-four codes exist so that recovery is one turn rather than a diagnosis.
The full catalogue, generated from the code, is in references/refusal-codes.md. Read it when you need a specific code. The four rules below are what you need every time.
1. When retry_with is non-empty, send one of those calls verbatim.
The server built them from what it already knows — the handles that exist, the bookmarks that are shipped, the rung that is proven. Re-deriving the arguments yourself turns a one-turn recovery into a guessing loop, and you will get it wrong in exactly the places the server would not.
{"ok": false, "refused": "SHEET_NOT_VERIFIED",
"retry_with": [{"verb": "verify", "args": {"sheet": "c1"}}]}
Send verify(sheet="c1"). Do not construct something similar.
2. When needs_human is true, stop and report human_step.
No call you can send fixes it. Saying so plainly is the correct outcome. Inventing a workaround here is worse than stopping, because the workaround usually means disabling the thing that refused.
3. Never install anything in response to a refusal.
FFMPEG_ABSENT does not mean "go and get ffmpeg". This project never installs,
downloads, vendors or bundles ffmpeg — that is a deliberate rule, not an omission,
and docs/first-run.md §4 gives the three reasons. The same holds for
TIER_BINARY_ABSENT. Report the step; the human runs it.
4. A refusal is not a reason to change the plan.
Most refusals mean one call is missing, not that the approach is wrong. Add the call and continue.
| Code | What it really means | Do this |
|---|---|---|
UNKNOWN_HANDLE | The handle was never minted here — or, on splice, you passed a source handle where a sheet source key belongs | inspect first; for splice, read sources[].key out of the sheet |
SHEET_NOT_VERIFIED | The sheet changed since verify | run verify again, then retry |
GATE_BLOCKING | A gate fails, commonly an empty body lane | run verify to see which; splice a segment if the body is empty |
BOOKMARK_UNKNOWN | No bookmark by that name | retry_with lists the ones that exist; only baseline ships |
UNKNOWN_PARTY | No directory at casebook/parties/<party>/ | a human creates it; mkdir is the whole step |
ENCODER_UNPROVEN | ffmpeg lists it, this machine cannot run it | run trial; never substitute an encoder yourself |
NOT_ON_WORD_EDGE | A cut edge falls inside a word | retry_with carries two calls, one keeping the word and one excluding it — pick by meaning |
VALUE_NOT_PERMITTED | An argument carried a value where an identifier belongs, usually a key that looks like a path | send a plain identifier |
RIGHTS_MISSING | An asset has no licence record | human step; delivery will not proceed without one |
LANE_DISK_SHORT | Not enough free space for the planned run | report the numbers; the human frees space |
{"ok": false, "verb": "deliver", "refused": "CODE",
"plain": "one sentence, at most 160 characters",
"retry_with": [{"verb": "…", "args": {…}}],
"needs_human": false,
"human_step": "present only when needs_human is true",
"spent": {"class": "heavy", "ms": 13}}
On MCP the envelope is in structuredContent and isError is false — a
refusal is deliberately not a JSON-RPC error, because hosts flatten protocol errors
to a string and the model would then see the sentence and never retry_with.
On the CLI the envelope is on stdout and the exit code is 1.
Every code is one of three, and the class tells you what to expect before you look.
always — a machine fix always exists, so retry_with is never empty. If you
see an empty one on an always code, that is a bug worth reporting.sometimes — check retry_with; it may be empty depending on state.human — needs_human is true. Rule 2.retry_with is empty and the class is alwaysThat is a defect, not a puzzle. It has happened: five construction sites once
passed a dict where a tuple of calls belonged, so callers received the strings
["verb", "args"]. If you see it, say so rather than guessing at the arguments —
the guess will look like it worked and will not be what the server meant.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub ihuzaifashoukat/splicedeck --plugin splicedeck4 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-a-deliverableDrives splicedeck to turn a source video into a delivered file - the verb order, what each verb needs from the one before it, and the traps between them. Use when asked to edit, cut, trim, caption or render a video with splicedeck, when working with a cut sheet or a delivery profile, when running spd commands, or when deciding which splicedeck verb to call next./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.