Synthèse automatique
Cette skill transforme une longue vidéo en clips verticaux prêts à publier, en faisant de Claude l'orchestrateur d'un pipeline interactif en 10 étapes, de la transcription à l'export.
Points forts
- Transcription accélérée par GPU avec faster-whisper et horodatages au niveau du mot
- Notation des segments candidats sur cinq critères pondérés (accroche, cohérence autonome, intensité émotionnelle, densité de valeur, qualité de la chute) avec validation par l'utilisateur
- Détection automatique du type de contenu (talking-head, capture d'écran, podcast) pour choisir le cadrage vertical adapté
- Rendu de sous-titres animés via Remotion (styles Bold/Bounce/Clean) et export optimisé par plateforme avec FFmpeg
Limites
- Dépend d'un environnement local lourd : venv Python, faster-whisper, GPU, Remotion et FFmpeg doivent être installés
- Skill spécifique à Claude Code (outils AskUserQuestion, Task, Bash) et non portable telle quelle vers d'autres assistants
- La qualité du découpage repose entièrement sur le jugement de Claude lors de l'analyse du transcript, sans garantie de résultat
À utiliser lorsqu'on dispose d'une longue vidéo ou d'un podcast et qu'on veut en extraire rapidement des extraits verticaux sous-titrés pour Shorts, TikTok ou Reels.
À éviter si l'on n'a pas d'environnement GPU/FFmpeg configuré ou si l'on cherche un simple redimensionnement vidéo sans analyse de contenu.
Analyse de sécurité
PrudenceThe skill is a legitimate, transparent video-processing pipeline. It does not exfiltrate data, disable safety, or run curl|sh style payloads. The main risk is environmental: it discovers a project root (including the current working directory) and executes shell/Python scripts plus a virtualenv activate file from that root, meaning it inherits whatever is on disk. That is a standard but real trust assumption, so caution rather than safe.
- •Project root discovery falls back to "$(pwd)" and then runs bash scripts from that directory ($SHORTS_ROOT/scripts/*.sh, *.py), so invoking the skill inside an untrusted working directory could execute attacker-supplied scripts.
- •Activates a Python virtualenv by sourcing $HOME/.video-skill/bin/activate or $HOME/.shorts-skill/bin/activate — normal, but sourcing arbitrary activate scripts executes whatever is in them.
- •Broadly grants Bash/Write/Edit and writes intermediate artifacts to /tmp/claude-shorts; no sandboxing guidance is given, though paths are non-destructive.
- •No evidence of network exfiltration, credential access, obfuscation, or destructive commands; all Bash usage is for ffmpeg/whisper/rendering style local tooling.
Exemples
Create shorts from ~/Videos/episode-42.mp4 — give me the 5 best TikTok-ready vertical clips with bold captions.Extract clips from demo-recording.mov for Instagram Reels, 30-45 seconds each, with clean animated captions.Transcribe ~/Videos/keynote.mp4, score the strongest segments and show them to me so I can choose which ones to render as YouTube Shorts.name: shorts description: > Interactive longform-to-shortform video creator. Extracts viral-ready short clips from long videos using Claude as the orchestrator. Transcribes with faster-whisper (GPU), Claude scores and presents candidate segments interactively, user picks and adjusts, Remotion renders premium animated captions (Bold/Bounce/Clean styles), FFmpeg exports platform-optimized files (YouTube Shorts, TikTok, Instagram Reels). Use when user says "shorts", "short clips", "shortform", "extract clips", "tiktok from video", "reels from video", "vertical clips", or "create shorts". allowed-tools:
- Bash
- Read
- Write
- Edit
- AskUserQuestion
- Task
shorts — Interactive Shortform Video Creator
You are an interactive shortform video producer. You guide the user through a 10-step pipeline where YOU (Claude) analyze the transcript, identify the best segments, present them for approval, snap boundaries to natural audio cut points, and render premium vertical videos with animated captions.
Pre-Flight
Before starting, locate the project root:
# Try common locations in priority order
SHORTS_ROOT=""
for dir in "$HOME/.claude/skills/shorts" "$HOME/.claude/skills/claude-shorts" "$HOME/claude-shorts" "$(pwd)"; do
if [ -f "$dir/SKILL.md" ]; then
SHORTS_ROOT="$dir"
break
fi
done
if [ -z "$SHORTS_ROOT" ]; then
echo "ERROR: shorts skill project root not found. Please run from the project directory or install with install.sh"
fi
Set up the temp directory (configurable via SHORTS_TMP environment variable):
SHORTS_TMP="${SHORTS_TMP:-/tmp/claude-shorts}"
mkdir -p "$SHORTS_TMP/clips"
10-Step Interactive Pipeline
Step 1: PREFLIGHT
Run safety checks on the input video:
bash "$SHORTS_ROOT/scripts/preflight.sh" INPUT_FILE [OUTPUT_DIR]
If preflight fails, report errors and stop. If warnings exist, report them and ask the user whether to proceed.
Also detect GPU capabilities:
bash "$SHORTS_ROOT/scripts/detect_gpu.sh"
Report to user: input duration, resolution, GPU status, estimated processing time.
Step 2: TRANSCRIBE
Transcribe with faster-whisper (GPU-accelerated, word-level timestamps). Audio extraction is handled internally by transcribe.py:
VENV="$HOME/.video-skill"
[ -d "$VENV" ] || VENV="$HOME/.shorts-skill"
source "$VENV/bin/activate"
python3 "$SHORTS_ROOT/scripts/transcribe.py" INPUT_FILE \
--output $SHORTS_TMP/transcript.json
Output is dual-format JSON:
segments[]— WhisperX-style with word timestamps (for Claude to read)captions[]— Remotion-native{text, startMs, endMs}array (for rendering)
Report to user: transcription time, word count, language detected.
Step 3: DETECT CONTENT TYPE
Auto-detect whether the video is talking-head, screen recording, or podcast:
python3 "$SHORTS_ROOT/scripts/detect_content.py" INPUT_FILE \
--output $SHORTS_TMP/content_type.json
Report detected type to user. Ask if they want to override.
- talking-head: Face-tracked center crop to 9:16
- screen: Letterboxed framed layout (content centered, dark padding)
- podcast: Side-by-side speaker tracking or center crop
Step 4: ANALYZE — Claude Reads Transcript
Read the full transcript directly:
Read $SHORTS_TMP/transcript.json
Also load the scoring rubric:
Read $SHORTS_ROOT/references/scoring-rubric.md
Score 8-12 candidate segments (15-55 seconds each) on 5 dimensions:
| Dimension | Weight | What to look for | |-----------|--------|------------------| | Hook strength | 0.30 | Bold claims, curiosity gaps, value promises, pattern interrupts | | Standalone coherence | 0.25 | Makes complete sense without any context from the rest of the video | | Emotional intensity | 0.20 | Strong opinions, surprise reveals, humor, passion | | Value density | 0.15 | Actionable insights, data points, frameworks per second | | Payoff quality | 0.10 | Satisfying conclusion — punchline, reveal, call-to-action |
Weighted score = sum of (dimension_score * weight), scale 0-100.
For each candidate, identify:
- Start/end timestamps (to the nearest second)
- A suggested hook line (first 3 seconds of text overlay)
- Brief rationale (1 sentence explaining why this segment works)
Transcript cleanup: While analyzing, also produce cleaned captions for rendering.
Read the captions[] array from transcript.json, then:
- Remove filler words (um, uh, you know, like, sort of, I mean, right, basically, actually)
- Fix obvious transcription errors based on surrounding context
- Consolidate incomplete sentence fragments where appropriate
- Keep all timestamps unchanged — only modify the
textfield
Write the cleaned transcript to $SHORTS_TMP/transcript_cleaned.json using the same
JSON structure as transcript.json (both segments and captions arrays). The captions
array should contain the cleaned text; copy segments as-is.
Step 5: PRESENT — Show Candidates Interactively
Present candidates in a formatted table:
| # | Time | Dur | Score | Hook | Why |
|---|---------------|------|-------|-----------------------------------|----------------------------------------|
| 1 | 04:22 → 05:01 | 39s | 87 | "Nobody talks about this..." | Contrarian take with data backing |
| 2 | 12:45 → 13:28 | 43s | 82 | "Here's the exact framework..." | Complete actionable method, clean arc |
| 3 | 08:11 → 08:52 | 41s | 79 | "I tested this for 6 months..." | Personal story + surprising result |
Then ask the user using AskUserQuestion:
- Which segments? — "all", specific numbers, or "none, re-analyze"
- Caption style? — bold (ALL CAPS pop-in), bounce (bouncy colorful), clean (minimal fade)
- Platform? — youtube, tiktok, instagram, or all
Step 6: APPROVE — Interactive Adjustment Loop
After user selects segments:
- Show selected segments with exact timestamps
- Allow timecode adjustments ("move segment 2 start back 3 seconds")
- Confirm final selections
- Estimate render time (~15-30s per segment with Remotion)
Write approved segments to:
cat > $SHORTS_TMP/approved_segments.json << 'EOF'
{
"segments": [
{
"id": 1,
"start": 262.0,
"end": 301.0,
"hook_line1": "Nobody talks about this...",
"hook_line2": "The hidden cost of scaling",
"score": 87
}
],
"style": "bold",
"platform": "all",
"content_type": "talking-head"
}
EOF
Step 7: SNAP BOUNDARIES — Audio-Aware Cut Points
Snap segment boundaries to natural audio cut points so clips never cut mid-word or mid-sentence:
python3 "$SHORTS_ROOT/scripts/snap_boundaries.py" \
--segments $SHORTS_TMP/approved_segments.json \
--transcript $SHORTS_TMP/transcript.json \
--input-video INPUT_FILE \
--output $SHORTS_TMP/snapped_segments.json
The script:
- Loads word-level timestamps from the transcript
- Snaps start times to the nearest word boundary (prefers sentence starts)
- Extends end times to the next sentence boundary (. ? !) if within 3 seconds
- Adds 300ms padding after the last word
- Uses FFmpeg silencedetect to find natural pauses near cut points
- Enforces min 5s / max 60s duration, clamps to video bounds
Use --no-silence to skip silence detection (faster, word-boundary snapping only).
Report to user: adjustment deltas per segment (e.g., "start +150ms, end +362ms").
From this point forward, use snapped_segments.json instead of approved_segments.json.
Step 8: PREPARE — Extract Clips + Compute Reframe
Extract each snapped segment via FFmpeg stream copy (near-instant, lossless).
Use the snapped start/end times from $SHORTS_TMP/snapped_segments.json:
ffmpeg -y -ss START -to END -i INPUT_FILE -c copy \
$SHORTS_TMP/clips/clip_01.mp4
Compute reframe coordinates for each clip:
python3 "$SHORTS_ROOT/scripts/compute_reframe.py" \
--clips-dir $SHORTS_TMP/clips/ \
--content-type CONTENT_TYPE \
--output $SHORTS_TMP/reframe.json
Report to user: clips extracted, content type per clip, reframe strategy.
Step 9: RENDER via Remotion
Render all snapped segments with the selected caption style:
node "$SHORTS_ROOT/remotion/render.mjs" \
--segments $SHORTS_TMP/snapped_segments.json \
--reframe $SHORTS_TMP/reframe.json \
--captions $SHORTS_TMP/transcript_cleaned.json \
--style STYLE \
--clips-dir $SHORTS_TMP/clips/ \
--output-dir $SHORTS_TMP/render/
The render script:
- Bundles the Remotion project once (~5-10s)
- Opens a shared Chrome instance
- Renders each segment sequentially (~15-30s each)
- Outputs 1080x1920 MP4 files
Report progress to user as each segment renders.
Step 10: EXPORT — Platform-Optimized Encoding
Export rendered shorts with platform-specific encoding:
bash "$SHORTS_ROOT/scripts/export.sh" \
--input-dir $SHORTS_TMP/render/ \
--platform PLATFORM \
--output-dir ./shorts/
Platform encoding specs:
- YouTube Shorts: H.264 High 4.2, 12 Mbps, AAC 192k
- TikTok: H.264, CRF 18, -preset slow, AAC 128k
- Instagram Reels: H.264 High 4.2, 4.5 Mbps maxrate 5000k, AAC 128k
- All: Exports all three variants per clip
With NVENC GPU: h264_nvenc -preset p5 -tune hq for 5-10x faster encoding.
Present final summary table:
| # | File | Platform | Duration | Size |
|---|---------------------------|-----------|----------|--------|
| 1 | shorts/short_01_yt.mp4 | YouTube | 39s | 12.3MB |
| 1 | shorts/short_01_tt.mp4 | TikTok | 39s | 8.7MB |
| 1 | shorts/short_01_ig.mp4 | Instagram | 39s | 7.1MB |
Post-export validation: Run validation on all exported files:
bash "$SHORTS_ROOT/scripts/validate.sh" --output-dir ./shorts/
Checks: file is playable, resolution is 1080x1920, audio track exists and isn't silent, file size is within platform limits, video codec is H.264, duration is 3-90 seconds. If any file fails, report the issues to the user. Failed files should be re-rendered or re-exported before delivery.
Important Rules
- Always run preflight before any processing
- Always present segments for approval — never auto-render without user confirmation
- Always report costs — Remotion rendering is free (local), only potential cost is GPU power
- Handle errors gracefully — if any step fails, report the error and suggest fixes
- Clean up on success — offer to delete $SHORTS_TMP/ after export
- Respect the user's choices — if they say "re-analyze", go back to Step 4
- Stream copy for extraction — never re-encode when cutting segments (use -c copy)
- One segment at a time for progress reporting during render
- Load references when needed — scoring-rubric.md for Step 4, caption-styles.md for style questions
Caption Style Reference
| Style | Font | Look | Best for | |-------|------|------|----------| | bold | Montserrat Bold | ALL CAPS, pop-in, yellow active word | Business, education, motivation | | bounce | Bangers | Bouncy scale, rotating bright colors | Entertainment, reactions, energy | | clean | Inter Bold | Minimal fade-in, white + shadow | Professional, calm, interviews |
Load references/caption-styles.md for detailed visual specs and spring configs.
Configurable Parameters
These defaults work well for most content. Offer alternatives when the user has specific needs.
| Parameter | Default | Flag/Var | When to change |
|-----------|---------|----------|----------------|
| Whisper model | large-v3 | --model small | Low VRAM (< 6 GB) |
| Screen zoom | 0.55 | --zoom 0.4 | More context visible in screen recordings |
| Cursor tracking | enabled | --no-cursor-track | Static screen content (slides, documents) |
| Silence detection | enabled | --no-silence | Faster processing, word-boundary-only snapping |
| Score threshold | 60 | (SKILL.md instruction) | Lower for longer videos with fewer highlights |
| Segment duration | 15-55s | (SKILL.md instruction) | Adjust per platform (TikTok prefers 21-34s) |
| Temp directory | /tmp/claude-shorts/ | SHORTS_TMP env var | Systems with limited /tmp space |
| Export platform | all | --platform youtube | Single-platform targeting |
Error Recovery
- Transcription fails: Check venv activation, try
--model smallfor less VRAM - Remotion render fails: Check
cd remotion && npm install, verify node_modules exists - Export fails: Check FFmpeg version (
ffmpeg -version), try CPU encoding if NVENC fails - Out of disk space: Clean $SHORTS_TMP/, check with
df -h /tmp
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/interactive-shortform-video-creator-ms47voh8/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/interactive-shortform-video-creator-ms47voh8' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/interactive-shortform-video-creator-ms47voh8/download' --output '.skill-downloads/interactive-shortform-video-creator-ms47voh8/SKILL.md.part' && mv '.skill-downloads/interactive-shortform-video-creator-ms47voh8/SKILL.md.part' '.skill-downloads/interactive-shortform-video-creator-ms47voh8/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/interactive-shortform-video-creator-ms47voh8/SKILL.md' && test -s '.skill-downloads/interactive-shortform-video-creator-ms47voh8/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/shorts' && cp -R '.skill-downloads/interactive-shortform-video-creator-ms47voh8' '.claude/skills/shorts'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/interactive-shortform-video-creator-ms47voh8'openskills read 'interactive-shortform-video-creator-ms47voh8'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/interactive-shortform-video-creator-ms47voh8/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Fragments d'écriture
Contenu
Extrayez des fragments d'écriture bruts via un entretien intensif, sans imposer de structure. Capturez idées, citations et mots porteurs pour une utilisation ultérieure.
Rédaction UI et audit
Contenu
Rédigez ou auditez les textes d'interface (boutons, erreurs, états vides, infobulles) dans le monorepo, en suivant la source de vérité du design system.
Extraction MIDI/score
Contenu
Extrait le MIDI ou la partition d'une production musicale existante via l'outil MCP CogMusic et confirme la disponibilité du fichier.