opusclip-clip
Skill2 starsChanged 14 days agoMITView on GitHub
Send picked stream windows to OpusClip and bring back ready-to-post 9:16 clips. Uses ClipAnything, genre Gaming, the Gameplay layout preset (facecam 30% on top, gameplay 70% below), captions and a moment-specific prompt, through the OpusClip MCP tools or the REST script. Polls the projects, lists clips with titles and scores, downloads them and bleeps profanity. Use when the user wants to clip a VOD or a plan with OpusClip.
- Reads credentials
In this repository15 other files it gives its agents.
- campaignsSkill
- captions-copySkill
- clip-deskSkill
- clipping-pageSkill
- clip-rulesSkill
- countdownSkill
- cut-windowsSkill
- find-streamsSkill
- hooks-titlesSkill
- launch-daySkill
- pick-momentsSkill
- schedule-postSkill
- scoreboardSkill
- setupSkill
- vodwatchSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
Check progress with opusclip_list_projects, then opusclip_list_clips and opusclip_describe_clip.
- Distinctive: line 60
No more than 4 projects process at once.
- Distinctive: line 69
If the automatic layout cut off the facecam, a kill feed or the minimap, fix the framing in the OpusClip editor.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Clip with OpusClip
Credits are the user's money. Show the exact requests and the credit estimate, and get a clear yes before anything is created.
Settings for GTA streams
| Setting | Value | Why |
curationPref.model | ClipAnything | Multimodal: it reads visual, audio and sentiment cues, so it works on gameplay with little dialogue, and it takes prompts (Pro and Business). |
curationPref.genre | Gaming | A documented genre value. |
curationPref.customPrompt | specific to the moment, e.g. "the alligator attack and his reaction, from the first sighting to the escape" | A specific prompt beats "funny moments". |
curationPref.clipDurations | [[0,30],[30,60]] | Always send it; the API has rejected requests without it. |
curationPref.range | the window from plan.json | Only the range is processed and billed. |
brandTemplateId | preset-fancy-Gameplay, or the user's Brand Kit with the Gameplay layout | The API has no separate gameplay-layout flag. |
renderPref.layoutAspectRatio | portrait | 9:16 |
importPref.sourceLang | en (or auto) |
Path A: MCP tools (interactive)
Requires /mcp to be authenticated (see the setup skill).
Jobs routed
url(sources up to 10 h):opusclip_submit_projectwith the VOD URL and the plan's window, using the parameter names the tool's schema shows (URL, range or start/end, model, prompt, clip durations, brand template). Ifplan.jsonhas"timeline": {"state": "unchecked"}(or"pending"), runtimeline.py --planfirst, once YouTube has processed the VOD (seevodwatch).Jobs routed
upload(over 10 h, Kick, local files), which includes every GTA 6 launch VOD: runcut_windows.py --planfirst. Then either use Path B, whereopusclip_api.py batchdoes the 4-step V2 upload, or callopusclip_create_upload_link, upload the cut exactly as that tool's response says, and pass the returned upload id toopusclip_submit_project. The help center lists the MCP submit tool's sources as YouTube or Vimeo, so test a Twitch link before relying on it.- Check progress with
opusclip_list_projects, thenopusclip_list_clipsandopusclip_describe_clip. opusclip_preview_clipsto look at them.opusclip_export_clipfor the HD file. List and describe return preview URLs only.- Fixes go through
opusclip_edit_clip(it supportsdryRun; operations includeset_captions,trim_section,remove_pausesandset_style, and undo works for 72 h). For bleeps useopusclip_create_censor_job.
The hook asks before opusclip_submit_project, because it spends credits, and before every other OpusClip tool that isn't read-only (opusclip_create_upload_link included). Still ask the user yourself first, with the credit estimate.
Path B: REST script (automation, batches)
Needs OPUSCLIP_API_KEY in the environment.
S="${CLAUDE_PLUGIN_ROOT}/scripts"
python3 -I "$S/cut_windows.py" --plan gtavi/scans/<slug>/plan.json # first, if any job routes "upload"
python3 -I "$S/opusclip_api.py" --dry-run batch gtavi/scans/<slug>/plan.json # exact requests, sends nothing
python3 -I "$S/opusclip_api.py" batch gtavi/scans/<slug>/plan.json --yes --wait # after the user says yes
python3 -I "$S/opusclip_api.py" clips <projectId> --top 10 --plan gtavi/scans/<slug>/plan.json # title, score*, length, VOD in/out
python3 -I "$S/opusclip_api.py" download <projectId> --top 5 --out gtavi/clips/<projectId> --plan gtavi/scans/<slug>/plan.json
python3 -I "$S/opusclip_api.py" censor <projectId> <clipId> --yes # bleep profanityFor a single window with no plan:
python3 -I "$S/opusclip_api.py" create --url "<VOD url>" --start 4:11:30 --end 4:21:30 \
--prompt "<moment-specific prompt>" --title "<Streamer> GTA 6 4:11:30" --yes --waitBehaviour of batch:
- No more than 4 projects process at once.
- It backs off on
429, stops on403 API_MONTHLY_CAP_REACHED(tell the user thereset_atdate), and saves project ids into the plan so a re-run resumes. uploadjobs needcut_windows.py --planfirst.urljobs from a scan of a VOD's 2-second fragments are held back untilpython3 -I "$S/timeline.py" --plan <plan.json>has moved them onto the processed VOD's timeline (vodwatch'sreport.mdsays when).
Check every clip before it moves on
frame_sheet.py --video gtavi/clips/<projectId>/01_*.mp4 --out /tmp/c1.jpg, then Read it:- Is the facecam in the top band and the action readable?
- If the automatic layout cut off the facecam, a kill feed or the minimap, fix the framing in the OpusClip editor. Facecams in these streams are often a small box at the edge of the 16:9 frame.
- Are the captions correct? Do names spell right? Add a brand vocabulary in OpusClip (Pro and up) if they keep failing.
- Is the score high and does the clip deliver? The
scorefield is what OpusClip's own CLI reads; the app calls it the Virality Score (0 to 99). It is a prediction, not a promise. - Write the credit line into
clips.json(for example"credit": "IShowSpeed (YouTube)"). VOD time = job start in plan.json + clip time; log that ingtavi/provenance.csv. OpusClip's clip times for anuploadjob are inside the uploaded cut, not the stream;download --planwritesvodStart/vodEndintoclips.jsonfor you. Then hand off tohooks-titles,captions-copyandclip-rules.
Never
- Post or schedule from this skill. That is
schedule-post, behindclip-rules. - Share a project publicly without asking.
- Caption a clip "made with OpusClip" unless OpusClip actually produced it.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

