--- name: gta6-clipper description: GTA 6 Clipper. Turns GTA 6 streams into ready-to-post vertical clips (facecam on top, gameplay below, hook title, word-by-word captions, post caption + hashtags). Activates on "set up the GTA 6 clipper", "clip this stream ", "find me today's biggest GTA 6 streams and clip them", /gta6-clipper, /clip, or any request to clip a YouTube, Twitch or Kick stream. Downloads audio only, transcribes on the PC, marks loud moments and chat spikes, the Claude session itself reads the transcript 12 minutes at a time and scores moments (no API keys), then downloads only the needed minutes and renders 3 clips per stream. Works on a Claude subscription or free via Ollama (ollama launch claude). Windows edition (Windows 10/11, 64-bit). --- # GTA 6 Clipper Stream link (YouTube, Twitch, Kick) or nothing -> 3 ready-to-post 1080x1920 clips per stream. Everything except the picking runs on this PC. The picking is done by YOU (this Claude Code session), so it runs on the user's Claude subscription, or on a local model through Ollama. No API keys. `S` = this skill's folder (usually `~/.claude/skills/gta6-clipper`, i.e. `C:\Users\\.claude\skills\gta6-clipper`). Always run Python through the skill's venv: `"$S/.venv/Scripts/python.exe" "$S/scripts/gta6clip.py" ...`. Quote paths (they often contain spaces). Forward slashes work in both Git Bash and PowerShell. ## 0. "Set up the GTA 6 clipper" Run `powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$S/scripts/setup.ps1"` (Bash timeout 600000, first run downloads ~800 MB). It checks FFmpeg, Deno, uv, the Python venv (yt-dlp, faster-whisper, OpenCV, Pillow), the Whisper model and the face detector, installs what's missing (no admin needed) and prints READY or what is still missing. Tell the user in plain words what was installed and that it's ready. If any command later says "Not set up yet", run setup first. Re-run setup if YouTube downloads start failing (it updates yt-dlp). ## 1+2. Get the streams ready ("prep") - Given links: `prep [ ...]` - Given nothing ("find today's biggest GTA 6 streams"): run `discover` (default 7 streams, `--limit N`), show the list, then `prep` all of the URLs it printed. Don't wait for approval unless the user asked to choose. - Age-restricted YouTube streams (common with GTA) and Kick need the browser login: add `--cookies firefox`. On Windows Chrome/Edge cookies usually can't be read while the browser is open (Chrome encrypts them): use Firefox, or a `cookies.txt` exported with a browser extension (`--cookies C:/path/cookies.txt`). If a download fails with "Sign in to confirm your age" / 403, retry with it. - `--jobs 2` (default) preps 2 streams at once. Don't go higher on a 16 GB PC. - Long streams take a while (4 h stream: a few min download + ~10-25 min transcript, depends on the CPU). Run prep in the background for 2+ streams and tell the user it's running. Prep downloads only the audio, transcribes it locally, marks where the streamer got loud and (YouTube replays) where chat sped up, and writes `chunks/chunk_NN.md`: 12-minute pieces with `<>` and `<>` markers. It prints the run folder for each stream. ## 3. Pick the moments (you do this) Read `references/picking.md` first, every time. Then for each run folder: 1. Read every `chunks/chunk_NN.md`, one at a time, in order. 2. For each chunk write `picks/chunk_NN.json` (same NN): a JSON array of candidate moments, `[]` if nothing qualifies. Write the file even when it's empty: that's how progress is tracked. 3. `status ` shows which chunks still have no picks file. Keep going until `chunks_left` is empty. Multiple streams: give each stream its own subagent (Agent tool, general-purpose) with the run folder path and the instruction "read references/picking.md, then do step 3 of SKILL.md for this run folder". Up to 4 at once. If you're running on a local Ollama model, skip subagents and do the streams one after another. ## 4. Make the clips `render ` (defaults: `--top 3 --min-score 7`). It ranks all picks, drops overlaps, snaps to sentence edges, downloads only those minutes, finds the facecam, stacks facecam on top of gameplay (or blurred full-frame if there's no facecam), burns in the hook title + word-by-word captions, normalises audio and writes `clips/clip_NN_.mp4` + `clip_NN_<title>.txt` (title, post caption, hashtags) + `summary.json`. - If fewer than 3 clips came out because scores were low, say so; offer `--min-score 6` rather than quietly lowering the bar. - Pass the same `--cookies` as prep if the stream needed it (it's remembered in stream.json). - Render streams one after another (each uses ffmpeg + whisper on a short piece; fast). ## 5. Report Per stream: stream length -> moments found -> clips kept, total time, and each clip's title, timestamp, length, layout (facecam / cam / gameplay) and file path. Open the clips folder with `explorer.exe "<run>\clips"` (Windows path, backslashes). Remind the user: watch every clip before posting, and only clip streamers who are fine with clipping. ## Other requests - "Make clip 2 longer / start earlier / different hook": edit that entry in the matching `picks/*.json` (times or hook), delete the old mp4, re-run render (it re-picks deterministically, so the same top picks come back with the change). - "Give me 5 clips": `render <run> --top 5`. - Check one frame per clip after render. If the top panel shows the wrong face (the stream switches between full-screen layouts mid-clip, or a face on screen gets mistaken for the facecam), add `"layout": "gameplay"` (or `"cam"`) to that pick in `picks/*.json`, delete its mp4 and re-run render. - Disk: prep deletes the audio after transcribing and render deletes downloaded sections (`--keep` keeps them). Runs live in `~/GTA6-Clips/` (or `$GTA6_CLIPS_DIR`); delete finished ones only if the user says so. ## Free mode (no subscription) Same skill, same prompts. The user installs Ollama, pulls a model sized to their MEMORY (Settings -> System -> About -> Installed RAM): 16 GB -> `qwen3.5:9b`, 32 GB+ -> `qwen3.5:27b`, then runs `ollama launch claude` and picks the model. Be honest if asked: it's slower and the picks are rougher than Claude's. ## Windows notes - Setup installs into the skill folder (`.venv`, `models`, and `bin/ffmpeg` if winget isn't there). It records the tool paths in `config.json`, so it works right away without restarting the terminal. - Speech to text is faster-whisper on the CPU. An NVIDIA GPU with CUDA 12 + cuDNN can be used with `GTA6_WHISPER_DEVICE=cuda GTA6_WHISPER_COMPUTE=float16` (optional; CPU is the safe default). - If Windows Defender / SmartScreen asks about ffmpeg, deno or uv, they're the official builds: allow them.