Cassette video edit
Skill Cassette-Editor/oh-my-cassette/skills/cassette-video-edit
你的随身 AI 剪辑搭档 | Pocket AI co-editor for video montage — AI video editing plugin & MCP server for Claude Code, Codex, Hermes & OpenCode
npx -y skills add Cassette-Editor/oh-my-cassette --skill cassette-video-editAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
Edit project media through the local Oh My Cassette MCP tools in Codex or Claude — a direct multi-turn conversation with the Cassette agent, with timeline previews, guided questions, and explicit export.
SKILL.md
10.7 KB, as published. Nobody here has run it
Oh My Cassette local workflow
Use this skill when the user asks Codex or Claude to edit, cut, caption, reframe, subtitle, combine, polish, add music to, or export video, image, or audio media through Cassette.
The cassette MCP server is a local stdio child process. It opens no port. It sends media and edit requests directly to the separate Cassette backend. Do not start or depend on the repository's FastAPI web-demo server for this workflow.
Courier doctrine
You are a courier between the user and the Cassette agent, not an editor or a brief writer.
- Pass the user's editing words to
cassette_run_jobasmessageVERBATIM — never rewrite, optimize, summarize, translate, or expand them. The Cassette agent is the creative brain; it reads the session's uploaded media itself. - Relay the agent's questions and plans back to the user verbatim too. You add only three things: the timeline delta, the version numbers, and the live editor link.
- Do not call
cassette_make_prompton the API transport — it is a legacy browser-transport brief builder. - Never ask upfront about model, thinking level, optimization, or BGM. Defaults match the web editor. Change model/thinking only when the user asks, via
cassette_config.
Safety and identity
- Treat only files inside the active host project roots or explicitly configured media roots as ingestible. If
cassette_ingest_mediareturnssource_path_not_allowed, ask the user to move the file into the project or run the private setup command with--allowed-root. - Never copy credentials into chat. If an affected tool returns
auth_required, show its exacterror.details.setup_commandas a private terminal command — orerror.details.reset_password_commandif the user no longer has their password. - A stored password that stopped working reports
auth_failed(orcassette_auth_failed), either inerror.detailsor insidedata.job.errors[]on a failed job. Show that error'sreset_password_commandas a private terminal command. If itscredential_sourceisenvironment, the password lives in environment variables instead, so tell the user to update those — running the reset would not take effect. - Keep the returned
session_idandjob_id. Sessions are isolated by default. Hand a session or job to another host only when the user deliberately asks for a Codex/Claude handoff. - Use only paths and resource links returned in
artifacts. Never invent an export path or ask the MCP runtime to expose another local file.
Staying current
The MCP instructions carry an UPDATE AVAILABLE: line when a newer Oh My Cassette release exists. When they do:
- Mention it once per session, with both version numbers, and then offer to run the command the line names.
- Run that command only after the user explicitly agrees, and never re-offer in the same session. It replaces the plugin on disk, so tell the user the new version applies after the host reloads (
/reload-pluginsin Claude Code, a new task in Codex). - Never fabricate a version or an update command; if the line is absent, the install is current and the subject does not come up.
Conversational editing (multi-turn)
One session is one continuous conversation with the Cassette agent on one persistent thread — the agent remembers every previous turn, and the editor_url deep link stays the same for the whole session.
- Call
cassette_ingest_mediaonce for each source asset. Omitsession_idon the first call so the runtime generates one, then reuse the returned value. - Call
cassette_list_assetsand confirm the intended files are present. - For every editing request, call
cassette_run_jobwithmessageset to the user's verbatim words, the samesession_id, andwaitomitted or false for the normal background path. Follow-ups like "make that title bigger" need no context restating — the agent remembers the conversation. - A turn ends
succeededwith the edit committed and NOTHING rendered: the envelope carriestimeline_delta,quality.timeline_ctl, and a contact-sheet artifact — that is the per-turn preview. Relay the delta and name the versions ("v3→v7: trimmed the intro to 4.0s"). - Pass
export=trueon a turn ONLY when the user expresses finish/export intent. That turn endsreview_required; evaluate and callcassette_review_completion(onlydecision=exportrenders). - If BGM is explicitly requested, use
cassette_match_exact_bgm(concrete title/artist),jamendo_music_matcher(configured mood/genre), orcassette_match_bgm(Free To Use fallback) — then continue the conversation.
Model and thinking level
cassette_config(session_id)shows the current choice and the available options;cassette_config(session_id, model=…, thinking_level=…)changes them (accepts a product id likedeepseek/deepseek-v4-proor a label like "DeepSeek V4 Pro").- The preference persists for the session and applies from the next turn — the same semantics as switching the model between turns in the web editor.
- Defaults (DeepSeek V4 Flash, low thinking) match the web editor. Do not ask upfront; change only on user request and confirm in one line.
Typed progress handling
Treat the structured phase and next_action fields as authoritative. Do not decide routing, progress, or completion from keywords in prose.
runningorexporting: callcassette_job_statuswithwait_for_change_sec=30.needs_user: present the pending question, then callcassette_answer_questionwith the samejob_idand the user'sresponse. On hosts that support MCP elicitation,cassette_job_statusmay collect the answer itself and return the already-resumed status; treat the returned phase as authoritative and do not re-answer.review_required(export turns only): evaluate the full edit result and callcassette_review_completion. Rendering begins only when the explicit decision isexport; usecontinue,needs_user, orfailedwhen that is the validated outcome.succeeded: the turn is done, nothing rendered — relay the delta + preview and continue the conversation, or re-run withexport=truewhen asked.exported: present validatedartifactsand their MCP resource links.failed,cancelled, ortimed_out: report the structured error and the runtime-derived next action. Athread_busyerror means a run is already live on this session's thread (often started from the open editor tab) — wait and retry.
The named monitoring budget is CASSETTE_MCP_MONITOR_BUDGET_SEC, defaulting to 1500 seconds. Use 30-second long-polls until a phase changes or that elapsed-time budget is reached. If it is still running when the budget expires, return the live job_id and explain that the edit continues in the background. Do not tight-poll.
API jobs persist private thread and interrupt metadata and can resume after Codex or Claude restarts. Browser-transport jobs can resume only while the same MCP process retains the browser session; after restart, surface browser_session_lost and start a new browser job if the user wants to continue.
Timeline grounding and the live editor
- Every user-visible statement about project state comes from
cassette_timeline, never from memory. Name the version in replies: "Quick edit v42→v43: trimmed the intro to 4.0s." - Lane routing: when the ask names specific clips or values and needs at most a handful of operations, read
cassette_timelinethen usecassette_edit(requiresCASSETTE_DIRECT_EDIT=1; passexpected_versionfrom the read; astale_timelineerror means re-read and retry). When it needs watching footage, music sync, or a plan, usecassette_run_job. - The session carries ONE stable
editor_url— a live view of the real editor (timeline, scrubbing preview, plan-review card; zero render) for the entire conversation. Hand it to the user once at the first turn and again at questions/review; on desktop offer to open it (open <url>on macOS,xdg-openon Linux). Do not repeat it on every status poll. cassette_job_statusresponses carrytimeline_delta(cumulative changes since the turn started) andplan_progress; relay the delta rather than re-describing the timeline.- Preview escalation, one step per explicit user ask: text digest → contact sheet (
cassette_timelinewithcontact_sheet=true) → theeditor_urllive view → full export. Never auto-render. - Showing previews in a terminal host (Claude Code, Codex CLI): the timeline digest is text — when the user asks to see the timeline, reprint
quality.timeline_ctlverbatim in a fenced code block in your reply, never a paraphrase. For the contact sheet or storyboard sheet, terminal hosts cannot render image results inline — print the sheet'scontact_sheet_uri/storyboard_sheet_uri(file://…) on its own line: most terminals make it cmd+clickable, opening the real pixels in the system image viewer. On a remote/SSH host where a localfile://link cannot resolve, give theeditor_urldeep link instead. Optionally also render an at-a-glance version in the terminal withchafa -f symbols --size <cols>x<rows>when chafa is available. Preview files are swept after ~30 days (CASSETTE_ARTIFACT_TTL_DAYS); exports are never auto-deleted. - Plan review: with
CASSETTE_PLAN_REVIEW=user(the MCP default) a job pauses with anedit_plan_reviewquestion — the plan itself, with each storyboard beat as a readable cell (no raw links). The envelope's quality also carriesstoryboard(typed beat cells) andstoryboard_sheet(a tiled image of one source frame per planned beat — show it when the host can display images). Relay the plan verbatim with the link; answer viacassette_answer_questionwithapprove,revise <feedback>, orreject. The user may instead decide in the open editor tab: aresume_not_waiting_for_usererror means the tab answered first — just re-check status. Note: typing a fresh message in the open editor tab cancels an in-flight plugin turn (the tab takes over) — that is product behavior, not an error to retry.
Cancellation and handoff
- Call
cassette_cancel_jobonly when the user asks to stop the edit. - For a deliberate host handoff, provide the exact
session_idand activejob_id; the receiving host should begin withcassette_job_statusrather than ingesting or starting a duplicate job. - Exported files remain under the shared Oh My Cassette data directory. Prefer the returned resource link or file URI rather than relocating the artifact.