I Built a Short-Form Clip Machine Inside Claude Code
How one developer collapsed a five-stage video repurposing workflow into a two-prompt Claude Code session — from long-form video to 28 scheduled posts across five platforms.
Posted
2 months ago
Duration
Format
Tutorial
educational
Views
1.2K
53 likes
Big Idea
The argument in one line.
Autonomous clip extraction via Claude Code collapses a five-stage video repurposing workflow into a single conversation, eliminating subscription clip tools by hosting the entire pipeline inside your own project.
Who This Is For
Read if. Skip if.
READ IF YOU ARE…
You post long-form video and want a short-form presence without hiring an editor or paying for a monthly clip tool.
You are comfortable cloning a GitHub repo and running Claude Code inside VS Code.
You want to schedule posts to five platforms simultaneously without copy-pasting or uploading manually.
You have looked at Opus Clip or similar tools and balked at the monthly cost or the lack of customization.
SKIP IF…
You do not have existing long-form content to repurpose — this pipeline repurposes, it does not originate.
You need a no-code solution; setup requires VS Code, Claude Code, and light terminal work.
TL;DR
The full version, fast.
The IX Clip Extractor Pipeline is a Claude Code project built around five skills: transcript-based clip selection using a scoring framework, face-tracked vertical reframing via MediaPipe and FFmpeg, word-level caption generation from open-source models, automated visual composition using Remotion (SVG, SFX, overlays), and multi-platform scheduling through the Late API. Setup involves cloning the repo, installing Claude Code in VS Code with bypass-permissions mode enabled, and letting Claude read the project README to configure the environment automatically. The live demo produces seven clips from one video and schedules them across YouTube Shorts, Instagram Reels, TikTok, Threads, and LinkedIn — 28 scheduled posts from a single two-prompt session in roughly 30 minutes.
Members feature
Chat with this breakdown.
Modern Creator members can chat with any breakdown — ask for the hook, quote a framework, find the exact transcript moment. Unlocks at T2: refer 3 friends + add your own API key.
Two prompts submitted. First: local video file. Pipeline runs ~30-35 min. Seven clips produced, edited with captions and compositions, scheduled to 4 platforms = 28 posts. Late dashboard confirms scheduling.
19:05 – 20:37
09 · Demo 2: Podcast Clip Extraction
Lex Fridman YouTube URL submitted. Claude downloads first hour, runs batch face-tracking, produces 7 podcast clips in output subfolder.
20:37 – 21:31
10 · Final Thoughts + Next Steps
LinkedIn plug for behind-the-scenes content. Subscribe + Finn CTA repeated. Teases next system video.
Atomic Insights
Lines worth screenshotting.
Claude Code with bypass-permissions mode enabled can run a five-stage pipeline autonomously without a single manual approval step.
The clip selection framework inside the skill file is more valuable than any individual tool in the stack — it decides what is worth posting.
Remotion lets you define video compositions in code instead of timelines, which means Claude can write and execute edits programmatically with no editor open.
MediaPipe plus EMA smooth plus FFmpeg is a fully open-source face-tracking stack that reframes talking-head video vertically without a subscription.
A two-prompt session producing 28 scheduled posts is only possible because clip selection is human-approved while editing and publishing are fully autonomous.
The Late API abstracts multi-platform posting to a single call — switching platforms means changing a config value, not rebuilding the pipeline.
The pipeline supports three source layouts out of the box: screen-share split, speaker side-by-side, and close-up — covering most content formats.
Iteration happens in conversation: fixing a missing thumbnail CTA or adding a new composition is a follow-up prompt, not a code refactor.
Storing all skills in a versioned .claude/ folder makes the pipeline portable and shareable — the same repo works for any creator who clones it.
The entire system replaces Opus Clip and similar SaaS tools at the cost of hosting your own Claude Code project.
Takeaway
Five stages, one repo, zero editors — the ownership math.
WHAT TO LEARN
The clip extractor is not a shortcut — it is a skills-based architecture where Claude Code holds the pipeline logic and you hold the creative decisions.
Claude Code bypass-permissions mode is what makes autonomous multi-step pipelines practical — without it, every file operation pauses for manual approval.
The clip selection skill file is the most valuable piece of the system — the framework that defines what makes a moment worth posting determines output quality more than any downstream tool.
Remotion lets you define video compositions in code rather than timelines, which means Claude can write and execute edits programmatically without an editor open.
A two-prompt session producing 28 scheduled posts is only possible because clip selection is human-approved while editing and publishing are fully autonomous.
MediaPipe plus EMA smooth plus FFmpeg is a self-hosted face-tracking stack that reframes talking-head video vertically at no subscription cost.
The Late API abstracts multi-platform posting to a single integration — switching platforms means changing a config value, not rebuilding the pipeline.
Iteration on the system happens in conversation with Claude: fixing a missing thumbnail CTA or adding a new visual composition is a follow-up prompt, not a code refactor.
Glossary
Terms worth knowing.
IX Clip Extractor Pipeline
A five-stage Claude Code agent system that automates clip selection, vertical reframing, transcription, video editing, and social scheduling from a single long-form video source.
Remotion
An open-source library that lets developers create and render videos programmatically using code rather than a timeline-based editor.
MediaPipe
An open-source framework for on-device ML pipelines, used here for real-time face detection that keeps the speaker centered during vertical reframing.
EMA smooth
Exponential Moving Average smoothing applied to the face-tracking bounding box, preventing jittery crop movement in the reframed output.
Late API
A social media scheduling API that supports posting to 13 platforms from a single integration, used as the publish stage in this pipeline.
Bypass-permissions mode
A Claude Code setting that allows the agent to execute file operations and run commands without pausing to request manual approval for each action.
WhisperX
An open-source speech recognition model that produces word-level timestamps, enabling precise caption alignment in the editing stage.
Quotables
Lines you could clip.
00:09
“It picks the best moments, reframes everything vertically, and it edits all of it. Plus, it schedules it across every single platform.”
Complete pipeline promise, no setup needed→ TikTok hook↗ Tweet quote
13:07
“This is like a five-month work that I am giving away for free in this video.”
00:00This ClotCode pipeline takes any YouTube video, any podcast, and any call and turns them into a full week of short form content.
00:09It picks the best moments, reframes everything vertically, and it edits all of it. Plus, it schedules it across every single platform.
00:18It doesn't require any expensive subscription. It is fully customizable and no editing software, just Claude code doing all the work for you.
00:27All the clips that you see right here have come from my long form YouTube videos. This clip's inside YouTube.
00:35This clip's inside TikTok. The whole pipeline analyzes the full transcript of those videos, picks the strongest moments, reframes everything vertically with my face tracking.
00:46It adds the captions with my branding color, the overlays, the whole editing process, and it basically schedules all of those posts across all my five social platforms, Instagram, TikTok, Threads, YouTube, and, uh, LinkedIn.
01:02I didn't have to open any other app or editors once. Just a conversation with Claude. If you guys don't know me yet, I'm Enrique.
01:09For the last year and a half, I have been spending all my time building agentic systems, specifically for sales and marketing. In this video, I'm gonna show you exactly how this clip extractor pipeline works.
01:22I'm going over three things. First, setting up clot code, your agent brain inside BS code. Second, I will be walking you through the five stages of the pipeline.
01:33And third, I'm gonna show you in real time how the entire system goes from start to end with real examples. So this is where everything starts. You give it a long form video, and Claude starts to read the entire transcript generated by WhisperX.
01:50It goes through every single moment and picks the clips that would actually perform very well. It is not random. It actually has a framework that is following that basically allows Claude to pull out what's worth posting.
02:05Once it has all the clips picked, it reframes everything vertically.
02:11So it finds your face like this layout here, and it locks the crop so you stay center the whole time. These are some examples of the source video layouts that are available inside the system, like screen share.
02:25As you can see, upper half is me sharing the screen. Bottom half is me centered in the center in the bottom half.
02:34And here we have speaker side by side. This is in the case if you upload a video from a podcast, uh, where you can see two speakers, one of the on the upper half and one in the bottom half.
02:47And they work also if there's just a a close-up layout. The close-up layout is just one single speaker on the screen. And then after that, it generates the entire captions worth level accurate straight from the audio, um, transcription process, leveraging the open source models that we do have in the system.
03:11And we get all the time stamps properly from that video. So then we can from those clips that we pick that Claude picks, and then it moves on into the auto editing process. This is where it all comes together.
03:24So the overlays, the illustrations, uh, the transitions, the sound effects, everything gets composed automatically here.
03:32You're not dragging things down or putting things on the timeline, doing it manually yourself.
03:38You're not opening any, uh, editor platform. You're just letting Cloud Code handle the full composition using Remotion and all the trained skills that you can see here.
03:51Remotion is a tool that allows to edit and create videos with just code. And this is the same exact approach that I have used for all the short form clips that I have posted on my social medias.
04:03And the way I approach this are is creating all the compositions that you can see here. Uh, Claude has created all these compositions when editing my short form videos. And this is the same approach that you're gonna see when we go into the process of sharing an example.
04:20This is one of the examples that I wanted to share with that you also saw at the beginning of the video. And then finally, it publishes everything across all the social platforms that you want to connect with the AI agent social media manager.
04:35Alright. So it is worth mentioning at this point that I already dedicated a specific video for the AI agent social media manager, where I go over a very similar process like the one in this video, setting up Cloud Code inside the developer platform that we're using, and then inserting the AI agent social media manager system that I'm giving you away for free.
04:56It's on GitHub. And then configuring, uh, my favorite social media API, late.
05:03Uh, this API allows you to post through 13 different social platforms, get analytics, social media DMs, and everything from a very affordable price.
05:13You can even start for free. That video is already uploaded on my YouTube, so go check that out. So at this tab here, Claude is gonna take all those finished clips and is gonna schedule them across your platforms on your content calendar.
05:28You don't have to copy and paste and upload them one by one. It is already done for you and managed by your content social media agent. And the outcome that you can see here are 50 posts, 10 clips times four platforms from one video.
05:45And short form clips work very well for me to bring awareness to my main valuable long form video that I post on YouTube. And this is just one pipeline.
05:54I'm building the entire system on my channel, giving it to you guys. So the next video, I'm gonna probably walk you through something better.
06:03So stay up to date, follow, subscribe, and turn the bell. Alright.
06:08So if you wanna get all the sauce from this video, the AI agent social media manager system that I just referenced to you, the IX clip extractor system, just have a conversation with Vin. I'm gonna leave her WhatsApp and her number if you wanna use SMS.
06:24Just text her saying, hey. I came from Enrique's video. I wanna get the system, and she will bring you up the link access to the specific repos that I'm giving you away, uh, for free.
06:37Remember, I did mention to you that we have the AI agent social media manager system, so go check that out if you don't have that system set up yet. But now we're gonna go over setting up the IX clip extractor pipeline. And if you have used Claude code before, you can have this running in less than five minutes.
06:53Just clone the repo and follow my instructions that I'm gonna give now. Alright, people. So the developer platform that we're using is Versus Code.
07:01So if you don't have Versus Code yet on your computer, please download Versus Code. Once you have Versus Code, the first thing that we're gonna do is we're gonna head into the sidebar on the left. We're gonna click on extensions, and we're gonna type Claude Code.
07:16We're gonna click on it. We're gonna install Claude Code, and you will be able to see this, uh, little icon on the top right where this is basically allowing you to open a regular chat conversation with Claude. Uh, this is in the case if you prefer regular chat interface than using the terminal.
07:36K? Okay. So another thing that I really recommend people to do is turn on allow by pass permissions mode.
07:42This is basically the mode that the mode that allows Claude to, um, do things without asking you for any permissions. Uh, so Claude does all of this stuff autonomously. It can be a little bit dangerous, but, uh, it's worth it.
07:59Alright. Once you have that in place, we're gonna make sure we connect your well, you connect your Anthropic account. So you're gonna click Cloud dot AI subscription.
08:07This is gonna allow you to open a tab on your window to allow the connection of your Anthropic account.
08:15Make sure the Anthropic account that you're authorizing is correct. Alright. So once you have that done, you're gonna head into the GitHub repo that we're giving away, and you're gonna click on code, and you're gonna clone either of these three options here.
08:30You're gonna copy the URL. You're gonna go back into your chat interface with Claude, and you're gonna take Claude. Hey, Claude.
08:37Can you help me set up the system on another project inside BS code? And then he's gonna go over checking the entire repo for you, uh, understanding all the requirements, and he's gonna do the whole setup.
08:50And he's gonna open that system on another window. Easy, quick. That's how you get your entire clip extractor pipeline, uh, system implemented into your own project.
09:02Now let's finish the setup. Alright. So here we are on another conversation with Claude to finish the entire setup.
09:08So what I just did, I just told Claude, hey. Can you guide me through the entire setup for me, please? And this is on the new project.
09:16Right? On the new project with our own ClipExtractor pipeline system in place with the, uh, Anthropic account connected already to my Claude, um, code instance here.
09:28And he basically guides me through the entire process reading the readme file that we do have here set up for you to get your entire system ready and start rolling. And he basically goes, uh, into checking all the requirements, all the dependencies, and he gets the entire system completed for me, installing all of these components, all of these tools that we're using, and he also is bringing me up a a couple of important pieces for me to under Okay?
10:00You can also, in this same conversation, ask Claude about the structure of the entire system. As you can see here, we have multiple folders. We do we do have the Claude folder.
10:11We do have the output folder, the public folder, remoteion folder, and the tools folder. Okay?
10:17And also the Cloud. M d and the environment, uh, files.
10:21So starting with the Cloud folder, inside this folder, we do have the click skills folder, and this is where we are storing all of the skills skills that I'm giving you away in the system. There are basically the skills necessary to get all of the outputs, uh, from all of the things that I have mentioned already.
10:40Uh, everything from, um, doing the clip selection, doing the clip extraction, doing the, uh, editing process, uploading, uh, those videos so we can post them, and all of that is optimized.
10:55All of the skills are here, and you can customize them to your needs because they're made with that intention for you to use. Alright.
11:03With that being said, we do have this folder. Right? This folder is basically the output folder.
11:09This is where we are gonna get all the all the clips from the specific videos that we are going to push through the, uh, pipeline. Okay? And you are gonna get them with their respected subfolder with their date and the idea or the concept of the video itself.
11:28In this case, here are all the seven clips from this video that I just extracted. Now inside the public folder, as you can see here, here's where we are storing all of the audios, right, all of the sound effects that we are using for the editing process.
11:44The logos, as you can see here, these are visuals that we are adding on the videos to give them more, uh, sauce. And here are the videos, the long form videos that we are importing for the extraction of the clips.
12:01Uh, we store them also here. Okay? So the other folder that we have here is the promotion folder.
12:07This is the folder that is already trained with all of the compositions, all of the components, and all of the playbooks that I have used for the editing process, uh, on my clips.
12:19And this is the folder that I'm giving you to do to you, uh, to use, um, and start making your own compositions, your own components, and we're gonna dive deep into that in a bit.
12:30Okay? And then we have the tools, the tools folder. This is super important.
12:34This is where we have all of the sauce for the whole, uh, clip extractor tool specifically. This is where we store all the specific tools that make all of this whole process work together alongside Claude.
12:49This is where we are placing tools like MediaPipe, EMA Smooth, and FFmpeg together to make all of this auto reframing process work.
12:58I'll be honest with you. This is like a five month work that I'm giving away for free in this video. So please leave a like, subscribe, or comment anything that actually brings a lot of value to me.
13:10And here we have the environment file. This is where we are storing all the API keys from the platforms that we're using. And finally, we do have the claud dot m d file.
13:20This is basically the root file that, uh, has all the context of the entire pipeline system here.
13:27So if you wanna get more context of all the pieces of this exact system, please install the system, clone it yourself, and ask questions to Claude. Alright.
13:38So we're gonna navigate into the third step of the video that is basically showing you the examples in action of how this entire, uh, clip extractor pipeline works.
13:49So I'm gonna start with having two prompts, and this is gonna be all that I'm gonna do. The two prompts are well, I'm gonna start with the first one. It says, I have a long form video, and then I'm basically referencing a file on my, uh, comp this one here is the Cloud Creatives video with no editing.
14:07I recommend this video. I'll leave it down on the description. It's basically supporting it's basically an extension of the AI agent social media manager, but this is more focused on how you can create content creatives with Cloud Code alongside you.
14:22So what I just did, I just copied the path, and I just referenced the path in the chat. And I said, I want to get clips from it and schedule them over my weekly content.
14:32So I'm gonna push this for the other prompt I have. Can you use your magic and focus on the first one hour, uh, the first hour of this video to get the best clips? I want you to find six well, seven high quality clips from this podcast.
14:48And then I'm basically referencing this podcast, uh, from Lex Fridman, uh, with the creator of Open Claw.
14:56And we're gonna see how everything develops. Cool. So this is what I got here.
15:08What was done? The clip selection, clip extraction, transcription, editing, rendering, and schedule.
15:15All for me. Literally, it took, like, thirty minutes, thirty five minutes. I'm gonna explain more of the process that happened as you as you could saw on the actual timeline itself.
15:28Claude asked me for three questions mainly. How many clips do I want? Uh, the actual process of, uh, do you want me to schedule this for the content the weekly, uh, content calendar?
15:40Yes, I said. And he basically managed all of that. It was actually two questions if I remember well.
15:46So this was the first prompt. This is what I got. We got all the weekly content calendar coming from just one video, and everything got posted on YouTube shorts, Instagram reels, TikTok, threads.
16:01And, yeah, let me take a look at my late, uh, dashboard. And, yeah, as you can see here, here's the late dashboard. You will be able to see that first video.
16:13You will be able to see that all the videos got distribute by one day. This was posted on well, schedule on March 3 up to March 9. And here we have the video with the proper cloud code, the proper title, and the video itself getting loaded and posted.
16:34And here's the video, the clip itself. You will be able to see that we are adding the captions in the right place. It is basically highlighting with my branding color the most impactful, um, words on the video.
16:49You just saw one composition getting created supporting what I was saying, and another composition here.
16:56That's the pattern process for all of these clips. And at the end, we do have the call to action. Uh, watch the full video, Claude Creatives.
17:04It doesn't have my thumbnail specifically, but that's one thing that I can just go back with Claude and tell Claude, hey. At the end of each of the clips, you didn't add the thumbnail on the call to action.
17:17I will recommend you train Claude better on that process. That's my fault, um, because this is just a template that I just installed on the computer recently.
17:28But, yeah, I'm just giving you the quick idea of if you are the owner of this system, you can do whatever you want, and that requires training. That requires iteration of you using the system and tailoring it to your needs and to your likings.
17:43Okay? So I'm just gonna give a quick overview from start to end. As you can see, Claude went through all this process here.
17:51Um, I'm not gonna go into everything, but as you can see here, he was triggering the proper skills. He was basically going through the phases of the pipeline.
18:01And some of the times, he asked me questions to continue the next step, like the question of how many clips you want out of this video?
18:11Do you want me to post this now on and schedule it through your content, uh, weekly calendar? Yes. Uh, no.
18:19You can be like, yes. No. Let me review the videos and and stuff like that.
18:23Um, but, yeah, that was the first prompt. Really well outputs. Let me take a look at all of them again.
18:29One thing, just the title on the first one. The second one, we got the one problem with my AI social media manager. I mean, sick.
18:38You just saw high quality videos. The editing was really well done. And it's just crazy to see that seven videos got posted to four platforms.
18:50I mean, let me count. One two three four five six seven times four. Seven times four is 28.
18:58So 28 posts. Alright. So let's move on into the second prompt, and this prompt was basically referencing an actual YouTube video itself.
19:10We just left the YouTube video. And Claude just went through all of this process triggering first the clip selection out of that video.
19:20Uh, it used some of the tools that it already has, uh, in the system, like YouTube DLP. And it basically broke down the clips for me and score them and give them back to me so I could approve, uh, if I really like them.
19:39It downloaded the first hour of the video. It run the batch face tracking to reframe on all of the seven clips, and it ended up with the final delivery of all these clips here as you can see.
19:52Basically, store all of them inside the output folder, but he missed placing them inside a sub full sub folder. So what I just told him was, yes, create a sub folder and place them there. And here we have the subfolder containing the seven clips from the podcast, uh, from Lex, uh, Lex Fridman, uh, talking with the creator of OpenClaw.
20:17Isn't this so cool? Like, this now replaces the total need of external tools out there that are not even necessary anymore because you can host them on your own project, your own system, leveraging this this one agent tool.
20:34Crazy. So this video was just meant for you to get clear on how you can implement this system, understand how I've been using it, and get you started with actually putting it into action for yourself.
20:47So we just got into the end of the video. So if you want to talk more about this, can't find me on LinkedIn. Connect with me.
20:55I'm posting all the behind the scenes of everything that I do. So, yeah, drop a comment below if you have any questions. I try to read all of them.
21:04And if you want to have access to the pipeline, all the free resources, or you just want to chat about what's possible with this stuff, please talk with Finn.
21:14I left her number down below, so she will get you set up with all of the requirements that you need.
21:21Subscribe if you still want to see the rest of the sales and marketing systems that I'm sharing through these videos. I will see you in the next one.
The Hook
The bait, then the rug-pull.
In the first nine seconds, the promise is already on the table: long-form in, a full week of short-form out, no editing software touched. What follows is not a concept pitch but a working system — five stages, one repo, two prompts, twenty-eight scheduled posts.
Frameworks
Named ideas worth stealing.
01:42model
IX Clip Extractor Pipeline
1. Smart Selection
2. Auto-Reframe
3. Auto-Transcribe
4. Auto-Edit
5. Publish
Five-stage agentic workflow that converts any long-form video into edited short-form clips scheduled across multiple platforms.
Steal forAny video repurposing workflow or content calendar automation
02:11list
Source Video Layouts
Screen-share (top: screen, bottom: face)
Speaker side-by-side (two-host podcast split)
Close-up (single speaker)
Three reframing templates that handle the most common long-form video formats for vertical output.
Steal forAny face-tracked vertical reframing system
CTA Breakdown
How they asked for the click.
06:09link
“Just have a conversation with Finn. I am gonna leave her WhatsApp and her number if you wanna use SMS.”
Unusual CTA — repo access is gated behind texting an AI agent named Finn. No direct GitHub link shown on screen, which adds friction but filters for serious viewers.
A 39-minute walk-through of Anthropic's new Claude Certified Architect exam guide, translated from a 40-page PDF into five domains, three demos, and five rules.
An 18-minute walkthrough of how Claude Opus 4.6 spawns specialized AI teams from a single prompt -- what it costs, when to use it, and what the live output actually looks like.