/cutmate:setupfrom cutmate
Guides users through installing and configuring cutmate: detects the system, installs dependencies, selects transcription backend, downloads language models, and sets up music, captions, and theme.
Ships in cutmate. 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.
Talk to the user in their language (config language; first run: the language they write in). Replies short: the
action first, a few lines. Ask EVERY question with AskUserQuestion (≤ 4 options per question, the recommended
option first and marked "(polecane)"), never as an A/B/C text list.
Option labels: the labels below are Polish; translate them to the user's language, keep the mapping (e.g. Wypalone →
burn, whatever the label says).
Hard rules:
sudo and never types or handles a password. Commands that need sudo: the user runs them himself
with ! <command> in this chat.$CM doctor → keys).setup.sh, $CM models, the first $CM selftest, $CM smoke): Bash timeout 600000 or
run_in_background: true; on timeout re-run — downloads resume.Set the CLI (setup venv first, so a dev cutmate on PATH never shadows it) — re-run this line after step 4:
CM="$(ls "${CUTMATE_HOME:-$HOME/.cutmate}/venv/bin/cutmate" "${CUTMATE_HOME:-$HOME/.cutmate}/venv/Scripts/cutmate.exe" 2>/dev/null | head -1)"; [ -n "$CM" ] || CM="$(command -v cutmate)"
If ${CUTMATE_HOME:-$HOME/.cutmate}/config.json exists and the CLI runs:
$CM doctor → plugin_root. It differs from ${CLAUDE_PLUGIN_ROOT} (the plugin was updated or
moved, the venv still points at the old copy) → run detect (step 1) and re-run step 4's setup.sh with the same
flags as before (--gpu <gpu.kind> from detect, --local when config transcription is local; Windows:
setup.ps1 -Gpu … -Local), then go on.$CM doctor → vendor. Not ok (e.g. gsap missing — run cutmate vendor (in Claude Code: "$CM" vendor) or /cutmate:setup) → run
"$CM" vendor (it downloads gsap into the cutmate home, sha-checked; safe to repeat), check vendor is ok now. A
download error → tell the user to check the connection and run it again; renders need it.${CUTMATE_HOME:-$HOME/.cutmate}/smoke/rec/out/final.mp4
(only step 10 creates it; config.json alone proves nothing — it already holds defaults after step 5).
$CM config show, then run the pending part
without asking which section — the API-key check (API backends) and step 6 (selftest), then steps 7–10.$CM config show, summarise it in ≤ 5 lines, then ask "Którą sekcję zmienić?" (multiSelect:
Transkrypcja / GPU / język · Muzyka · Napisy i kroki · Theme) and run only those sections (Transkrypcja / GPU /
język = steps 3, 5, 6 — and step 4 when the package set changes, e.g. an API backend → local; Muzyka = 7; Napisy i
kroki = 8–9; Theme = 9b). After a transcription change run $CM selftest again (step 6); after a music, captions or
theme change run $CM smoke again (step 10).Otherwise (no config.json) run the whole wizard below.
Paused for an API key (the previous run stopped at step 5 because the key was unset; the marker is missing): config
has an API backend (groq / openai / elevenlabs) → $CM doctor → keys. Key now set → step 6 (selftest), then steps
7–10. Still unset → repeat the step-3 instructions (profile export / setx, restart Claude Code) and stop.
bash "${CLAUDE_PLUGIN_ROOT}/install/detect.sh" (Windows: powershell -ExecutionPolicy Bypass -File "${CLAUDE_PLUGIN_ROOT}\install\detect.ps1").
It prints JSON: os, pkg, gpu.kind (nvidia / apple / none), tools, disk_free_gb, cutmate.home, missing, install.
Summarise in 3 lines (system + GPU, tools found, what's missing). disk_free_gb < 10 → warn: models + venv take ≈ 8 GB.
missing empty → go on. Otherwise show the install commands and ask yes/no.
sudo (apt, dnf, pacman): the user runs them himself (! <command>); Claude never runs sudo. If it
says it needs a terminal (no TTY for the password prompt): "run it in your own terminal and tell me when done".pkg null → manual instructions (where to download each missing tool).Re-run detect until missing is empty — except on Windows after winget installs: Claude Code's shell does not see the
new PATH, so detect would keep reporting them missing. Instead tell the user to
restart Claude Code and run /cutmate:setup again (it resumes here), and stop. Then npx --yes [email protected] doctor and report any problem it shows.
Ask BEFORE installing Python packages (the package set depends on it). Options: local / groq / openai / elevenlabs.
Recommend (first, "(polecane)"): local when gpu.kind is nvidia (faster-whisper on the GPU) or apple (mlx-whisper);
groq when it is none (fast and cheap, CPU-only machines would be slow locally).
API backends need an env var:
GROQ_API_KEY (key: https://console.groq.com/keys)OPENAI_API_KEY (key: https://platform.openai.com/api-keys)ELEVENLABS_API_KEY (key: https://elevenlabs.io/app/settings/api-keys)Tell the user to add export NAME=… to his shell profile himself (Windows: setx NAME … in his own terminal) and
restart Claude Code. Never ask for an API key, never write it to a file, never echo it. Do NOT stop here: continue with
steps 4–5 (venv, config, models — none of them need the key). At the end of step 5 check only its presence:
$CM doctor → keys. Key unset → pause: "zrestartuj Claude Code ze zmienną ustawioną i uruchom /cutmate:setup"
(the re-run lands in step 0 with the marker missing and runs the selftest, then steps 7–10). Key set → go on to step 6.
Ask yes/no: venv at ${CUTMATE_HOME:-$HOME/.cutmate}/venv, ≈ 3–4 GB (PyTorch, alignment, tracking; + CUDA libraries
for NVIDIA local). On yes:
bash "${CLAUDE_PLUGIN_ROOT}/install/setup.sh" --gpu <gpu.kind> plus --local when transcription is local
(Windows: powershell -ExecutionPolicy Bypass -File "${CLAUDE_PLUGIN_ROOT}\install\setup.ps1" -Gpu <gpu.kind> plus -Local).
It takes minutes: Bash timeout 600000 or run_in_background: true; on timeout re-run — downloads resume. Then set the CLI again (line above) and run
$CM doctor. Report problems in one line each. vendor not ok → "$CM" vendor (setup.sh / setup.ps1 already tried it;
a download failure there is only a warning). carve: false → tell the user to install the HyperFrames plugin
(/plugin install hyperframes@cutmate) — it carves the music under the voice.
$CM config set transcription=<backend>. Ask the language: pl / en → $CM config set language=<l>.
Then $CM models --language <l> — first say what downloads and roughly how big (local: the whisper model ≈ 3 GB +
the alignment model ≈ 1 GB + the face / pose / hand tracking models (small, tens of MB); API backends: alignment +
tracking only). Long-running: Bash timeout 600000 or run_in_background: true; on timeout re-run — downloads resume.
API backend → now the key check from step 3 (pause if unset).
Clip: the bundled sample if ${CLAUDE_PLUGIN_ROOT}/samples/<l>.* exists (then $CM selftest with no clip), otherwise
ask the user for the path to one of his recordings where he speaks (the first 30 s are used) →
$CM selftest --clip <path>. It prints backend: … · device: … · compute: …. The first run loads the model and tries
the CUDA compute types one by one: Bash timeout 600000 or run_in_background: true; on timeout re-run — downloads resume.
NVIDIA + local must show device: cuda. If it fell back to CPU: show the WARN reason and $CM doctor → cuda.errors,
then ask: re-run setup.sh --gpu nvidia --local (polecane) or continue on CPU (slower).
Ask: HeyGen lo-fi catalogue / own folder / none.
heygen --version must be ≥ 0.3.0; missing → point to the official install instructions
https://developers.heygen.com/cli (the user installs it); older than 0.3.0 → the upgrade instructions on the same page
(the user upgrades it). The user signs in himself: ! heygen auth login --oauth.
Verify with npx --yes [email protected] media-use resolve --doctor. Signed in → $CM config set music.source=heygen.
Still not signed in → ask: retry the login (polecane) / no music for now ($CM config set music.source=none).$CM config set music.source=folder music.folder=<path>.$CM config set music.source=none.Say that the bed sits at 0.45 under the voice with carve (change only on request: music.volume).
One AskUserQuestion call with two questions:
Map Wypalone → burn, Plik .srt → srt, Oba → both, Brak → none:
$CM config set captions.9:16=<m> captions.16:9=<m>.
multiSelect: Fact-check / QA po renderze / Miniaturka (all recommended) →
$CM config set steps.factcheck=<true|false> steps.qa=<true|false> steps.thumbnail=<true|false>.
How the videos look (graphics, captions, fonts, colours). ASK — never pick a theme silently, and clean is not the
default answer.
$CM theme check clean (long-running: prefer Bash
run_in_background: true, else Bash timeout 600000; --clip <step-6 clip> when the user gave one), then READ
${CUTMATE_HOME:-$HOME/.cutmate}/checks/clean/contact.png, send its path and say in one line what it shows.$CM config set theme=clean.cutmate:theme skill with that choice (skip its menu, go
straight to its §2 / §3), passing the step-6 clip for --clip of every $CM theme check.cutmate:clone-style skill, passing the step-6 clip for --clip of every $CM theme check.
Both end with $CM theme use <name> (answer "Ustawić jako domyślny?" with Tak unless the user says otherwise). The
user cancels (Anuluj) → ask again from 3.
Then step 10: the smoke render uses the config theme.Music heygen → first resolve a bed:
npx --yes [email protected] media-use resolve --type bgm --intent "calm lo-fi" --project "${CUTMATE_HOME:-$HOME/.cutmate}/smoke-bgm" --json
and pass the local audio file path from that JSON as --music (absolute path; check the file exists). Folder music → the first audio file in that folder as --music. Then
$CM smoke --clip <path> --music <file> (drop --clip when there is no recording, drop --music for none; the clip
must be ≥ 2 s — the step-6 clip is fine). It renders —
Bash timeout 600000 or run_in_background: true; on timeout re-run — downloads resume. It prints final: and frame:.
READ the frame: PNG (at 1.5 s: title + caption), show it, and report the finalize line printed during the render (final.mp4: WxH fps … LUFS — OK or SPEC MISMATCH).
Done → summary in ≤ 5 lines: config path (${CUTMATE_HOME:-$HOME/.cutmate}/config.json), the CLI path, backend +
device, music, next step: /cutmate:edit <folder>.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
cutmate, installation, configuration, transcription, setup-wizard
Other plugins' skills for the same job
npx claudepluginhub wisniewskib/cutmate --plugin cutmate4 skills in this plugin
/clone-styleTurn a style source (a reel / video link, a local video, screenshots, a folder) into a cutmate theme that looks like it — palette, fonts, shapes, captions and motion read from the frames, then built, checked side by side with the source and saved. Use when the user runs /cutmate:clone-style or says "zrób theme jak u …" / "chcę styl jak w tej rolce"./editEdit a talking-head short (9:16) or a YouTube long-form video (16:9) from raw takes with cutmate — transcribe, pick the best takes like a human editor, fact-check, cut to -14 LUFS, word-aligned captions, theme graphics (SVG/GSAP via HyperFrames), sound effects, optional music, render, QA and a thumbnail. Use when the user asks to edit / cut / make a short, reel or long-form video from a folder of recordings./theme