/benai-marketing:video-repurposingfrom BenAI Marketing
Repurposes long-form video into platform-ready social clips (LinkedIn, TikTok, Reels) with word-level captions using FFmpeg and Remotion. Runs intake, proposes edit plan with timestamps, previews in Remotion Studio, and renders on approval.
Ships in BenAI Marketing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turns long-form video into platform-ready clips with captions. FFmpeg for fast CLI operations, Remotion for styled compositions you can preview before rendering. Battle-tested on a real LinkedIn publishing pipeline; the rules below exist because breaking them produced visibly worse clips.
Opening Clip (CRITICAL):
Closing Clip (CRITICAL):
Clean Cut Points (every cut, no exceptions):
Editing modes - pick ONE in intake:
<Sequence> blocks + premountFor={60} (see Composition Rules below). Do not use TransitionSeries - it has a null-props bug that crashes Studio in current Remotion versions.createVolumeFn pattern and the TransitionSeries bug workaround.Transcription-first timestamps (CRITICAL - the single source of truth):
startMs/endMs = whisper timestamps of the first and last spoken words → these define the captionsaudioEndMs = endMs + audioBufferMs per clip. Whisper timestamps run ~200-700ms ahead of actual speech, so without the buffer the last word gets clippedendMsSource video prep (before anything else):
-movflags +faststart is mandatory: without it the moov atom sits at the end of the file and Remotion reads the whole file before it can seek, making Studio crawl. Already-H.264 files remux losslessly: ffmpeg -i in.mp4 -c copy -movflags +faststart out.mp4public/ with no spaces in filenamesWorkflow:
All styled output (captions, title cards, graphics) uses the user's brand, captured once in intake and reused forever:
| Setting | What to ask | Default if they have no preference |
|---|---|---|
| Colors | brand dark, background/light, 1-2 accents | dark #0A0A14, light #F5F2EA, accent #B8E0B0 |
| Fonts | heading font (Google Fonts name) | Inter (via @remotion/google-fonts) |
| Caption style | frosted pill (default) or bold pill | frosted |
| Background rule | never pure #000 black - use the brand dark | applies to everyone |
Store the answers in the Remotion project (a BRAND constant or src/lib/brand.ts) so every composition reads from one place. All code in the references uses example values - swap in the user's kit.
Phase 1: SETUP ──→ Phase 2: INTAKE ──→ Phase 3: EDIT PATH ──→ Phase 4: ITERATE ──→ Phase 5: RENDER
(one-time) (mandatory) (copy-first OR (feedback loop) (user approves)
video-first)
If a Remotion project already exists, skip to Phase 2.
which ffmpeg || brew install ffmpeg; Node 18+^4.0.242, React ^18.x). Complete working code: references/reference-implementation.mdscripts/setup-whisper.ts and scripts/transcribe.ts from THIS SKILL's scripts/ folder into the project's scripts/, then run npx ts-node scripts/setup-whisper.ts (installs whisper.cpp + base.en model into .whisper/, GPU-accelerated)Ask before any editing. Do not proceed without clear answers.
Intent & Goal: What's the goal (LinkedIn clip, teaser/trailer, highlight reel, full edit, another platform)? Who is the audience? Video Source: Where is the video (YouTube URL, local file, folder of clips)? Existing copy/script, or discover from the video? Format & Duration: Target duration? Output format (16:9, 9:16, 1:1)? Polish level? Editing mode: Hard cuts (default for social) or crossfades (trailers/montages)? Brand kit: Collect it if this is the first session (table above); otherwise reuse. Content: Specific moments to include or exclude? Reveal the ending or create curiosity?
Then route: has copy → Phase 3A; no copy → Phase 3B.
public/ (prep rules above: H.264 + faststart, no spaces)npx ts-node scripts/transcribe.ts (references/transcription.md)1-3. Same prep as 3A 4. Analyze the transcript: hooks, insights, quotable complete thoughts 5. Suggest narrative structure per the goal; create copy/captions from selected segments 6. Propose the edit plan - clips, timestamps, spoken words at boundaries, reasoning 7. User approves before any editing
npm run dev) - show the user only after QA passesreferences/intelligent-editing.md has per-task-type questions and quality checks.
Only on explicit approval. Social-quality render:
npx remotion render CompositionName out/video.mp4 --video-bitrate 50M --audio-bitrate 320k
src/compositions/<platform>/CONFIG block at the top - the only place to edit. Document every timestamp with the actual spoken words as a commentsrc/Root.tsxThe hard-cut pattern (default):
const CLIPS = [
{
label: 'Hook',
startMs: 148_920, // "The reason most automations fail..." (whisper timestamp of first word)
endMs: 238_340, // "...and that's what makes it work." (whisper timestamp of last spoken word)
audioBufferMs: 200, // per-clip: small when the next sentence starts fast, up to 700 when there's a gap
},
] as const;
const clips = CLIPS.map((c) => {
const audioEndMs = c.endMs + c.audioBufferMs;
return {...c, audioEndMs, startFrame: msToFrames(c.startMs), endFrame: msToFrames(audioEndMs),
duration: msToFrames(audioEndMs - c.startMs)};
});
// premountFor={60} is MANDATORY on every Sequence - it preloads the next clip 2s early.
// Without it OffthreadVideo hasn't decoded the next clip's first frame and you get a black flash at the cut.
<Sequence from={0} durationInFrames={clips[0].duration} premountFor={60}>
<OffthreadVideo src={staticFile('source_h264.mp4')} startFrom={clips[0].startFrame} endAt={clips[0].endFrame} />
</Sequence>
Total duration = sum of clip durations. No overlap, no subtraction.
Captions: never import the captions JSON (bloats the bundle, kills hot reload) - fetch(staticFile(...)) with delayRender/continueRender, pre-filtered to clip ranges. Full pattern + the frosted-pill recipe: references/captions.md.
| Platform | Resolution | FPS | Max duration | Notes |
|---|---|---|---|---|
| 1920x1080 (16:9) | 30 | 10 min | H.264 MP4; native-feeling hard cuts | |
| TikTok / Reels / Shorts | 1080x1920 (9:16) | 30 | 60-90s | word-highlight captions carry sound-off viewing |
| Square feed | 1080x1080 (1:1) | 30 | - |
| Task | FFmpeg | Remotion |
|---|---|---|
| Stitching | Same codec, no styling | Anything styled or previewed |
| Captions | SRT burn-in | TikTok-style word highlighting |
| Teasers | Quick cuts | Text overlays, branded elements |
FFmpeg = fast CLI, batch, format conversion. Remotion = styled content, preview-before-render, React.
Read as needed:
| File | Contents |
|---|---|
| references/intelligent-editing.md | Editing workflow, questions by task type, quality checks |
| references/video-analysis.md | ffprobe analysis |
| references/transcription.md | Whisper transcription + the timestamp-drift/audioBufferMs pattern |
| references/qa-testing.md | QA tests before user preview |
| references/stitching.md | Combining clips (hard-cut default) |
| references/transitions.md | Crossfade mode + TransitionSeries bug workaround |
| references/captions.md | Word-level captions, frosted pill style, async loading |
| references/teasers.md | 30-second teasers/trailers |
| references/title-cards.md | Chapter headers, bumpers |
| references/graphics-generation.md | Thumbnails, overlays, social graphics |
| references/ffmpeg-basics.md | FFmpeg patterns, faststart/moov, AV1 handling |
| references/remotion-setup.md | Project setup |
| references/remotion-tips.md | Animations, timing, springs |
| references/reference-implementation.md | Complete working project code |
@remotion/install-whisper-cpp, NOT Python whisper (10x faster, Metal GPU). base.en for speed, medium.en for final quality. whisperCppVersion: '1.5.5' and tokenLevelTimestamps: true are requiredaudioBufferMs always, verify by earpremountFor={60}+faststartTransitionSeries null-props bug - use plain Sequence hard cutsreferences/captions.md (opens in a new tab)references/ffmpeg-basics.md (opens in a new tab)references/graphics-generation.md (opens in a new tab)references/intelligent-editing.md (opens in a new tab)references/qa-testing.md (opens in a new tab)references/reference-implementation.md (opens in a new tab)references/remotion-setup.md (opens in a new tab)references/remotion-tips.md (opens in a new tab)references/stitching.md (opens in a new tab)references/teasers.md (opens in a new tab)references/title-cards.md (opens in a new tab)references/transcription.md (opens in a new tab)references/transitions.md (opens in a new tab)references/video-analysis.md (opens in a new tab)scripts/setup-whisper.ts (opens in a new tab)scripts/transcribe.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub benaios/benai-skills --plugin benai-marketing15 skills in this plugin
/bens-linkedin-post-writerRepurpose YouTube videos, blog articles, guides, or raw insights into high-performing LinkedIn posts that match Ben Van Sprundel's tone of voice and writing style. A step-by-step, interactive process: never output a complete post immediately. Each step presents suggestions, waits for the user's decision, then advances to the next step.
Use when the user shares a YouTube link, blog URL, transcript, document, insight, or idea and wants a LinkedIn post, or asks to repurpose content for LinkedIn.
Triggers: "LinkedIn post", "LinkedIn content", "repurpose", "write a post", "post about", "turn this into a post", "create a LinkedIn post", "LinkedIn from YouTube", "LinkedIn from blog".
/bens-voiceDraft or judge content in Ben van Sprundel's voice. Use EVERY TIME output is written as Ben or scored against his tone - Circle community replies, LinkedIn posts, newsletters, Slack messages, YouTube scripts, DMs, emails. Triggers include "reply as Ben", "draft in Ben's voice", "Ben voice engine", "judge this draft", "does this sound like Ben". Includes a deterministic red-flag linter plus an LLM rubric judge; every draft must pass before it ships./carousel-builderBuild a Ben AI image-first carousel (Type B) from provided source content and export it as a PDF. Give it a newsletter, a YouTube transcript, a LinkedIn post, or a raw brief; it picks the slide count (3-10), writes the copy in Ben's voice, renders every slide with Higgsfield GPT Image 2, composites the real-logo brand footer in code, and assembles the PDF. Use whenever the user (or an orchestrator/routine) says "build a carousel", "turn this into a carousel", "make a LinkedIn/Instagram carousel", or "repurpose this into slides"./competitor-radarBuild and weekly-refresh a branded HTML "Competitor Radar" dashboard that tracks a roster of competitors across YouTube, Instagram, LinkedIn, TikTok, community, and SEO. Use when the user wants to track competitors, monitor competitor socials/engagement/subscribers, build a competitor dashboard, or refresh the weekly competitor report. Gathers real data via connectors (YouTube, Apify, Firecrawl), renders a two-tab (Demo/Actual) dashboard in Ben AI branding, deploys it to a stable Vercel URL via git push, and posts the link to Slack./competitor-scanSet someone up, from scratch, with their own weekly Competitor Radar dashboard. Use when a user wants to start tracking competitors, build their own competitor dashboard, monitor rivals' socials/SEO/subscribers, or "set me up with something like the competitor radar." Runs an interactive Q&A (niche, competitors, which platforms), can auto-discover and recommend competitors, wires up Apify + Firecrawl connectors, builds a branded HTML dashboard, deploys it to a stable Vercel URL, and schedules a weekly/monthly cloud routine to refresh and Slack it. This is the giveaway companion to the `competitor-radar` skill./customer-intelligence-reportAnalyze Fireflies meetings and Circle community posts, for one person, a team, or everything, then produce a weekly or daily Customer Intelligence Report as a BenAI-branded HTML dashboard in the instant-ui design language. Surfaces recurring themes across a trailing window, pain points, technical patterns, and stuck members needing follow-up, each backed by verbatim quotes. Blends both connectors, degrades gracefully if one is down, stores no secrets. Fully data-driven and customizable: sources, sections, scope, cadence, and recurring window are all configurable. Use when the user says "customer intelligence report", "community pulse", "analyze our meetings", "weekly community report", "what themes came up in calls", "who is stuck", "Fireflies report", "Circle report", or "meeting intelligence".4 plugins in 2 repositories ship this exact skill · first indexed Sep 18, 2026
Other plugins' skills for the same job