Cuts gameplay footage into platform-optimized video files using ffmpeg: vertical 9:16 for Shorts/TikTok/Reels, 4:5 and 16:9 for Reddit/X, plus looping GIF. Burns hook text, adds end card, normalizes loudness.
Ships in game-marketing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Turn one gameplay recording into the files each platform wants, from a single command. The agent
needs a footage path, an in and out point, and the hook line. It writes .mp4 and .gif files
into marketing/clips/ and prints each path, size and duration.
The script is scripts/clip_cut.py. It uses Python 3 (standard library only) and calls ffmpeg
and ffprobe. It is tested on Linux; macOS and Windows should work but their font paths are untested
(add --font if auto-detection fails). Hook and end card text need ffmpeg's drawtext filter.
Some builds, such as the default Homebrew ffmpeg on macOS, leave it out; the script stops early
and says so. Then install a build with it or use --end-card with an image and no text. Text is drawn with ffmpeg drawtext, so no
image editor is needed.
Look in the repo first. Ask only for what is missing.
marketing/, videos/, footage/ and trailer/
folders for .mp4, .mov or .mkv files first, and offer what you find.12.5) or m:ss (1:02.5). If the user has none, suggest one
(step 1 below).marketing/shorts/<post-id>.md if shorts-script wrote one. Otherwise ask.
It must be true in the current build.press/, marketing/, store capsule art) or a short line plus a short
URL. Use the redirect from docs/LINKS.md ("Short links"), not a long UTM link.YYYY-MM-DD-<platform>-<slug> from docs/LINKS.md. Use the slug as the file name.Pick the moment. Ask the user for the footage path. Suggest a cut where the hook is on screen
within the first 1.5 to 3 seconds: the mechanic, the surprise, or the problem. Cut out logos,
title cards, menus and slow intros. Aim for 10 to 60 seconds for vertical video and about 1 minute for X; keep Reddit clips to about 30 seconds. If the user is unsure, open the
file with ffprobe to get its length, and propose two or three in and out pairs with one line
on what each shows. Output: chosen --start and --end.
Choose shapes per platform. Output: the --shape list.
| Platform | Shape | Notes |
|---|---|---|
| YouTube Shorts, TikTok, Instagram Reels | 9x16 (1080x1920) | One file for all three. |
| Reddit, X feed | 4x5 (1080x1350) | Takes more feed height than 16:9. |
| Reddit, X, YouTube, Bluesky | 16x9 (1920x1080) | Safe default for desktop. Use MP4, not GIF, on Bluesky. |
| Reddit (GIF subs), Discord, press kit, Steam page | gif | Silent, looping, small. A press kit also wants 3 to 5 GIFs and 60 to 90 s of raw gameplay with no text or music (--mute, no --hook). |
Choose the fit. --fit crop (default) fills the frame and cuts the sides. Use --crop-x PX
when the action is off centre (left edge of the window, in source pixels). Use --fit blur
when HUD, subtitles or UI text would be cut: the whole picture sits on a blurred copy of itself.
Run the script. Draft only: the files stay local. Example for one Short and its Reddit versions:
python3 skills/marketing/clip-cut/scripts/clip_cut.py footage/run3.mp4 \
--start 41.2 --end 58 --shape 9x16 4x5 16x9 gif \
--hook "This boat can fly. Hold jump." \
--end-text "Wishlist on Steam" --end-url "yourgame.com/s/fly" \
--speed 1.15 --out-dir marketing/clips --name 2026-11-26-yt-boat-fly
Useful flags: --hook-seconds 3, --end-card art.png, --end-seconds 3, --mute,
--font path.ttf, --text-scale 0.9, --gif-width 720, --gif-max-mb 8, --fps 30.
Add --dry-run to print the ffmpeg commands without running them. Run --help for all.
What it does: trims, forces a constant frame rate, crops or blur-fits, draws the hook in the
safe area (on 9:16 it stays out of the right edge, the top 14% and the bottom 35%), draws the end card over
the last seconds, applies the speed to video and audio, and normalises the audio to about
-14 LUFS with the music kept. The GIF uses a generated palette, loops forever, and shrinks
(width and frame rate) until it is under --gif-max-mb.
Look at it. Grab one frame from the hook and one from the end card, and show them to the user or ask them to watch the files:
ffmpeg -v error -ss 1 -i marketing/clips/<name>-9x16.mp4 -frames:v 1 /tmp/hook.png
ffmpeg -v error -sseof -1 -i marketing/clips/<name>-9x16.mp4 -frames:v 1 /tmp/end.png
Check that the hook is readable, not cut, and not over the action.
Hand over. Tell the user which file goes where. Ask the user to upload and report back with
the post URLs. Never upload or post. Add one row per post to marketing/posts.csv (see
docs/LINKS.md) with url left empty.
Verify (final check). Run this and confirm each file has the right size, a duration near
the expected one, h264 plus aac for video (no audio if --mute), and gif for the GIF:
for f in marketing/clips/<name>-*; do
echo "$f: $(ffprobe -v error -show_entries stream=codec_name,width,height:format=duration -of csv=p=0 "$f" | tr '\n' ' ')"
done
Files in --out-dir (default: current folder), named <name>-<shape>.<ext>:
marketing/clips/2026-11-26-yt-boat-fly-9x16.mp4 1080x1920 H.264 + AAC 48 kHz, 30 fps
marketing/clips/2026-11-26-yt-boat-fly-4x5.mp4 1080x1350
marketing/clips/2026-11-26-yt-boat-fly-16x9.mp4 1920x1080
marketing/clips/2026-11-26-yt-boat-fly-gif.gif 720 px wide, 15 fps, loops
The script prints one line per file: path, size, duration, audio or not, and MB. It exits 1 if any shape failed, and 2 on bad arguments.
Name each file after its post ID from docs/LINKS.md (--name <post-id>). One clip posted to
three platforms gets three post IDs with the same date and slug. The end card URL is the short
redirect that forwards to the UTM-tagged store link for that post ID.
A week after posting, read for each post ID: views, average view duration (or percent viewed),
and store visits and wishlists by utm_content (the post ID) in Steamworks UTM Analytics. Note which hook
and which shape held viewers. marketing-retro reads marketing/posts.csv for the rest.
--crop-x either. Check a frame before posting.--gif-max-mb under it. Long or busy clips (particles, water, camera
pans) grow fast: cut to 3 to 8 seconds, or post MP4 instead.--fps 30). If sync is still off, set OBS to constant frame rate
or record to MKV and remux. The warning about variable frame rate is a hint, not a full check.shorts-script) and
later lines to about 6. Split the line or shorten it.--font /path/to/Bold.ttf. On Linux install fonts-dejavu-core.ffmpeg missing or without drawtext: install a full build (brew install ffmpeg,
apt install ffmpeg, winget install ffmpeg).--mute and add music in the app, or
keep the speed low.loudnorm. Measured result on test clips
was -14.0 to -14.1 LUFS.Last verified 2026-11-26.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/game-marketing:clip-cutfrom game-marketing
npx claudepluginhub manalens/game-marketing-skills --plugin game-marketing22 skills in this plugin
/attribution-reportAttribution report for an indie game: which channels, creators, campaigns and posts get credit for wishlists, installs, purchases and revenue over weeks or months, under two or more attribution models (first touch, last touch, last non-direct, linear, position-based, time decay), with cost per wishlist and revenue per dollar when you give your spend. Use for "which creator brought the most sales", "attribution for my launch", "first touch vs last touch for my game", "is my TikTok actually driving purchases", "ROI of my ads" or "where should I spend my marketing budget". Works from Steam UTM Analytics CSVs and a spend sheet; Manalens is the documented default for website, install and revenue credit. Not for the weekly per-post content review (`marketing-retro`) or in-game funnels and drop-off (`player-funnel`).
/devlog-from-gitFinds devlog Short and post ideas in a game's git history: player-visible changes for a daily "Update #N" series, and real bugs, cut features and design problems for "there was a problem" Conflict Shorts, each with the commit before and after so both states can be recorded. Use for "what can I post about this week", "turn my commits into devlog content", "find bugs to make Shorts about", "devlog ideas from my changelog". Not for writing the final script and post text (`shorts-script`) or cutting the video (`clip-cut`).