AI Income LabJoin AI Income Lab ↗

How-to · By · Published · Updated

OpenCode Skill That Trims Long Videos Into Shorts

Diagram for the OpenCode video trim skill guide: prompt: Describe the cut: hook first, no filler; process: Faster Whisper, hook finder, trim; short: 9x16 stack and animated subtitles.
Prompt → Process → Short

Quick answer

Prompt OpenCode to create a skill that turns a long video into a 1.5 to 2.5 minute 16x9 cut that starts on a hook and removes filler words. It writes a transcribe script with Faster Whisper that outputs word-level timestamps and confidence, plus a script of about 100 lines that finds hooks and lists filler words. On a 10-minute tutorial it took about five minutes of CPU to produce a cut of about a minute and a half, and an existing Shorts skill made the 9x16 version in under 30 seconds. I used the free Qwen 3.6 model in OpenCode Zen.

Prices and plan names change. Confirm them on the vendor page before you buy. Checked November 15, 2026.

This is a May 2026 build in the OpenCode web interface. It is a first working pass, not a polished editor, and I check every cut before I publish. The OpenCode link on this site is an affiliate link. For the OpenCode basics and plans, see the OpenCode Go guide.

1. Write a precise prompt

My first prompt was weak and the skill came out as a short-form cutter. I rewrote it: create a skill that takes a long-form video and outputs a shorter video no longer than 1.5 to 2.5 minutes in 16x9, so it is not a Short, that starts on a clear hook, removes filler words and is tuned for virality. OpenCode created it in the right folder for skills as viral short cutter, and I approved the file writes.

2. Transcribe with word timestamps

The skill’s transcribe.py uses Faster Whisper to write JSON with words, timestamps and confidence scores. The later steps need that file to add subtitles, find hooks and cut filler words precisely.

3. Find a hook and trim

A second script of about 100 lines looks for compelling openings in the first seconds, a low filler-word ratio, good pacing and questions, and lists the filler words to cut. Running it on a 10-minute tutorial took about five minutes of CPU processing and produced a trimmed video of about a minute and a half. I ran it through the free Qwen 3.6 in OpenCode Zen, so building it cost no credits.

4. Make the Short and add subtitles

My existing Shorts skill converted the 16x9 cut into a 9x16 vertical in under 30 seconds. It detected where the talking head sat and stacked it below the screen share. I then asked OpenCode to add a subtitle script inside the same skill. It transcribed the Short and burned animated captions into the middle of the frame. They worked, but I wanted bigger text and a better animation.

Done when

What I didn't cover

Watch the walkthrough

Watch on YouTube: This AI Skill Edits Your Videos For Free!. Also on this site with notes: the watch page.

From the video

Lines from the video's transcript that this guide does not cover, lightly trimmed. Each time opens the video at that point. Read the full transcript.

FAQ

Does it cost credits?

Not in my run: I used a free model in OpenCode Zen. CPU processing happens on your own machine.

How long does it take?

About five minutes of CPU for a 10-minute video, and under 30 seconds for the vertical conversion.

Are the subtitles finished?

No. The first pass worked but needed bigger text and better animation.

Sources

Written by . I’ve shipped software since 2013 and test AI tools on real builds for the AI Automation Station YouTube channel. Each guide shows the date it was last updated and lists the sources it relies on.

Build the next one with AI Income Lab

Step-by-step courses, reusable templates, and a community that answers when you get stuck.

Members get the Claude Code & Skills and Codex Tutorials & Courses lessons.

Join AI Income Lab ↗From $29/month. Cancel anytime.
Join 2,900+ members building with AI

Not ready to join? Get the weekly build notes: new guides and tested builds in one short email.