Back to skills
SKILL.md
Social Clip
ASecurityCreate short-form social media videos for TikTok, Instagram Reels, YouTube Shorts, and more. Use when the user asks to 'make a TikTok', 'turn this into a Reel or Short', or wants a vertical video from a product, clip, or script.
- 25 stars
- 0 votes
- 0 copies
- 13 views
- Added May 29, 2026
Works with
Security analysis
92/100- Installs packages at runtime which could introduce malicious dependencies
- Installs packages at runtime which could introduce malicious dependencies
npx -y skills add tinh2/skills-hub-registry --skill social-clip --agent claude-codeAre you the author of Social Clip?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tinh2-social-clip)---
name: social-clip
description: "Create short-form social media videos for TikTok, Instagram Reels, YouTube Shorts, and more. Use when the user asks to 'make a TikTok', 'turn this into a Reel or Short', or wants a vertical video from a product, clip, or script."
version: "1.0.3"
category: build
platforms:
- CLAUDE_CODE
permissions:
- filesystem
- shell
- network
- api
---
# Social Clip
Create short-form social media videos optimized for TikTok, Instagram Reels, YouTube Shorts, and other platforms. Two modes: create from scratch or repurpose existing long-form video.
## Prerequisites
Requires the video-toolkit skill to be installed for AI asset generation (voiceover, images, music).
```bash
TOOLKIT=~/.openclaw/workspace/claude-code-video-toolkit
cd $TOOLKIT && python3 tools/verify_setup.py
```
Install additional dependencies:
```bash
# Whisper for transcription (choose one)
pip3 install --break-system-packages openai-whisper
# OR use Remotion's built-in Whisper.cpp:
npx remotion install-whisper-cpp
# Auto-reframe (optional -- only for repurpose mode)
pip3 install --break-system-packages opencv-python mediapipe
# Clip extraction (optional -- only for repurpose mode)
pip3 install --break-system-packages librosa numpy
```
## Platform Presets
| Platform | Resolution | FPS | Duration | Aspect | Safe Zone (top/bottom/left/right) |
|---|---|---|---|---|---|
| TikTok | 1080x1920 | 60 | 15-60s | 9:16 | 150/270/40/40 |
| Instagram Reel | 1080x1920 | 30 | 15-90s | 9:16 | 120/300/40/40 |
| YouTube Short | 1080x1920 | 60 | 15-60s | 9:16 | 100/200/40/40 |
| Instagram Story | 1080x1920 | 30 | 1-15s | 9:16 | 200/250/40/40 |
| Square (Feed) | 1080x1080 | 30 | 3-60s | 1:1 | 0/0/0/0 |
| Landscape (16:9) | 1920x1080 | 30 | 3-600s | 16:9 | 0/0/0/0 |
Each preset includes platform-specific safe zones (pixels) to avoid UI overlap with profile icons, captions area, and navigation. Keep all text and critical visual elements inside safe zones.
Codec and bitrate per platform:
| Platform | Codec | Video Bitrate | Audio Bitrate |
|---|---|---|---|
| TikTok | H.264 | 8M | 128k |
| Instagram Reel | H.264 | 6M | 128k |
| YouTube Short | H.264 | 10M | 128k |
| Instagram Story | H.264 | 6M | 128k |
| Square (Feed) | H.264 | 5M | 128k |
| Landscape (16:9) | H.264 | 8M | 192k |
## Create Mode
### Step 1: Create Project
```bash
cd $TOOLKIT
cp -r templates/social-clip projects/MY_CLIP
cd projects/MY_CLIP
npm install
```
### Step 2: Write Config
Edit `src/config/clip-config.ts`:
```typescript
import { SocialClipConfig } from './types';
export const clipConfig: SocialClipConfig = {
title: 'Why devs are switching to terminal video',
platforms: ['tiktok', 'instagram-reel', 'youtube-short'],
primaryPlatform: 'tiktok',
contentType: 'talking-head',
durationSeconds: 45,
hook: {
style: 'bold-text',
text: 'Stop using video editors.',
soundEffect: 'audio/sfx/bass-drop.mp3',
animation: 'zoom-in',
},
scenes: [
{
type: 'video',
durationSeconds: 40,
media: { src: 'video/talking-head.mp4', fit: 'cover' },
},
{
type: 'text-only',
durationSeconds: 5,
text: { headline: 'Try it yourself', body: 'Link in bio' },
},
],
captions: {
enabled: true,
style: 'pop',
highlightColor: '#FFD700',
position: 'bottom',
wordsPerLine: 4,
},
audio: {
voiceover: 'audio/voiceover.mp3',
backgroundMusic: 'audio/bg-lofi.mp3',
backgroundMusicVolume: 0.12,
},
engagement: {
cta: {
text: 'Follow for dev tips',
position: 'end-card',
animation: 'slide-in',
},
},
transitions: {
default: 'zoom-rush',
durationFrames: 8,
},
thumbnail: {
frameSeconds: 1.5,
textOverlay: 'Stop Using Video Editors',
style: 'bold',
},
};
```
Scene types: `image`, `video`, `text-only`, `split`.
Scene media animations: `ken-burns-in`, `ken-burns-out`, `pan-left`, `pan-right`, `static`, `zoom-pulse`.
### Step 3: Generate Voiceover
```bash
cd $TOOLKIT
python3 tools/qwen3_tts.py \
--text "Stop using video editors. Here's how I make viral content from my terminal..." \
--speaker Ryan --tone excited \
--output projects/MY_CLIP/public/audio/voiceover.mp3 \
--cloud modal
```
**Speakers:** `Ryan`, `Aiden`, `Vivian`, `Serena`, `Uncle_Fu`, `Dylan`, `Eric`, `Ono_Anna`, `Sohee`
**Tones:** `neutral`, `warm`, `professional`, `excited`, `calm`, `serious`, `storyteller`, `tutorial`
### Step 4: Generate Background Music (optional)
```bash
cd $TOOLKIT
python3 tools/music_gen.py \
--preset lofi \
--duration 50 \
--output projects/MY_CLIP/public/audio/bg-lofi.mp3 \
--cloud modal
```
Presets: `corporate-bg`, `upbeat-tech`, `ambient`, `dramatic`, `tension`, `hopeful`, `cta`, `lofi`.
### Step 5: Transcribe for Captions
```bash
cd $TOOLKIT
python3 tools/transcribe.py \
--input projects/MY_CLIP/public/audio/voiceover.mp3 \
--output projects/MY_CLIP/public/captions/transcript.json \
--model base.en --word-timestamps
```
Output format (compatible with `@remotion/captions`):
```json
{
"segments": [
{
"text": "Stop using video editors",
"start": 0.0,
"end": 1.8,
"words": [
{ "word": "Stop", "start": 0.0, "end": 0.3 },
{ "word": "using", "start": 0.35, "end": 0.6 },
{ "word": "video", "start": 0.62, "end": 0.9 },
{ "word": "editors", "start": 0.92, "end": 1.4 }
]
}
]
}
```
The `<CaptionOverlay>` component uses `createTikTokStyleCaptions()` from `@remotion/captions` to render word-by-word animated captions synced to the transcript timestamps.
### Step 6: Sync Timing
```bash
cd $TOOLKIT
ffprobe -v error -show_entries format=duration -of csv=p=0 \
projects/MY_CLIP/public/audio/voiceover.mp3
```
Update `durationSeconds` in config to match actual audio: `ceil(audio_duration + 3)` (3s buffer for hook + CTA).
> Asset manifest format, weights, placement rules and example (needed when writing the manifest): read `references/asset-manifest.md`. If it is not installed, fetch https://raw.githubusercontent.com/tinh2/skills-hub-registry/main/build/social-clip/references/asset-manifest.md .
### Step 7: Preview and Render
```bash
cd $TOOLKIT/projects/MY_CLIP
# Preview hook frame
npx remotion still src/index.ts SocialClip-tiktok --frame=0 --output=/tmp/hook.png
# Preview mid-clip
npx remotion still src/index.ts SocialClip-tiktok --frame=900 --output=/tmp/mid.png
# Render primary platform
npm run render
# Batch render all platforms
bash ../../tools/batch_render.sh \
--project . \
--platforms tiktok,instagram-reel,youtube-short \
--output out/
```
Output: `out/tiktok/clip.mp4`, `out/instagram-reel/clip.mp4`, `out/youtube-short/clip.mp4` + thumbnails.
**Verify before delivering:** for each rendered file run
`ffprobe -v error -select_streams v:0 -show_entries stream=width,height -show_entries format=duration -of csv=p=0 out/tiktok/clip.mp4`.
Pass = width x height matches the platform preset (1080x1920 for vertical presets), duration falls inside the Duration range in Platform Presets and within 0.5s of the config's `durationSeconds`, and an audio stream exists (`ffprobe -v error -select_streams a -show_entries stream=codec_name -of csv=p=0 <file>` prints a codec). Open `/tmp/hook.png` and confirm the hook text is readable and inside the safe zone. Re-render any file that fails.
## Repurpose Mode
Take an existing long-form video and extract the best segments as short-form social clips.
### Step 1: Analyze Long-Form Video
```bash
cd $TOOLKIT
python3 tools/extract_clips.py \
--input path/to/long-form-video.mp4 \
--max-clips 5 \
--target-duration 30-60 \
--output projects/MY_CLIP/clips-manifest.json
```
The extraction tool:
1. Transcribes with Whisper to get content segments
2. Scores segments by audio energy (loud = engaging), speech density (words/second), and silence gaps (natural boundaries)
3. Identifies top N segments by engagement score
4. Outputs manifest with timestamps and suggested hook text
### Step 2: Auto-Reframe (if source is 16:9)
```bash
cd $TOOLKIT
python3 tools/auto_reframe.py \
--input path/to/long-form-video.mp4 \
--output projects/MY_CLIP/public/focus-regions.json \
--mode face-track
```
Reframe modes:
- `center` -- static center crop (no analysis needed)
- `face-track` -- OpenCV Haar cascades or MediaPipe face detection, tracks largest face
- `motion-track` -- optical flow to find area of highest motion
- `rule-of-thirds` -- positions crop at left or right third based on content density
The `<AutoReframe>` component reads `focus-regions.json` and applies an animated crop window that smoothly pans between focus regions using `interpolate()`.
### Step 3: Extract and Configure
Select clips from the manifest and create config with `autoReframe.enabled: true`:
```typescript
autoReframe: {
enabled: true,
sourceAspectRatio: '16:9',
focusMode: 'face-track',
},
```
Or provide manual focus region overrides:
```typescript
autoReframe: {
enabled: true,
focusMode: 'manual',
manualRegions: [
{ startSeconds: 0, endSeconds: 10, x: 660, y: 0, width: 608, height: 1080 },
{ startSeconds: 10, endSeconds: 25, x: 400, y: 0, width: 608, height: 1080 },
],
},
```
### Step 4: Add Captions and Render
Same as Create Mode steps 5-7. Transcribe the extracted audio, enable captions, and batch render.
## Caption Styles
| Style | Effect | Best for |
|---|---|---|
| `pop` | Words scale up with `spring()` bounce when spoken | High energy, comedy |
| `highlight` | Current word changes to `highlightColor`, others stay white | Educational, tutorial |
| `karaoke` | Words fill with color left-to-right (gradient mask) | Music, storytelling |
| `subtitle` | Traditional subtitle bar at bottom, no per-word animation | Professional, clean |
| `bounce` | Words drop in from above with gravity-like spring | Playful, casual |
Caption config defaults:
- `fontSize`: 64 for 9:16 platforms, 48 for 1:1
- `fontFamily`: Inter
- `primaryColor`: #FFFFFF
- `highlightColor`: #FFD700
- `backgroundColor`: rgba(0,0,0,0.6)
- `position`: bottom
- `wordsPerLine`: 4
## Transition Library
| Transition | Effect | Best for |
|---|---|---|
| `swipe` | Directional swipe (up/down/left/right) | Scene changes |
| `zoom-rush` | Rapid zoom in then out to next scene | High energy cuts |
| `glitch` | Digital glitch distortion | Tech content, edgy |
| `flash` | White flash between scenes | Photo reveals |
| `whip-pan` | Motion blur simulating camera whip (use `@remotion/motion-blur` `<CameraMotionBlur>`) | Fast pacing |
| `fade` | Standard opacity crossfade | Calm transitions |
| `cut` | Hard cut, no transition | Beat-synced montages |
Import custom transitions from `lib/transitions/presentations/` directly, never from barrel files. For additional variety, use GL Transitions (`remotion-gl-transitions`) for trend-matching styles.
## Content Types
| Type | Description | When to use |
|---|---|---|
| `talking-head` | Single speaker with captions, optional PiP | Advice, opinions, tutorials |
| `montage` | Multi-clip rapid cuts with even, custom, or beat-synced timing | Showcases, highlights, travel |
| `before-after` | Side-by-side or sequential comparison with split/wipe layout | Transformations, results |
| `listicle` | Numbered items with animated reveals and progress indicator | Tips, rankings, recommendations |
| `quote-card` | Styled quote with attribution and decorative quote marks | Motivation, testimonials |
| `product-showcase` | Product shots with feature callouts and optional rotation | Marketing, launches |
| `tutorial-snippet` | Quick how-to with step indicators and progress bar | Recipes, DIY, code tips |
## Hook Structure (First 3 Seconds)
Every clip must hook within 3 seconds. The `hook` config controls the opening:
- **bold-text** -- Large text slams in with `spring()` scale + shake. Pair with bass-drop SFX.
- **question** -- Typewriter question engages curiosity. "Did you know...?"
- **statistic** -- Animated counter rolls to a surprising number with `interpolate()`. "10x faster"
- **motion-burst** -- Flash + zoom + reveal. Maximum visual energy.
- **sound-effect** -- Audio sting with synced visual pulse. Whoosh, ding, dramatic.
Hook animations: `zoom-in`, `shake`, `flash`, `scale-bounce`.
> Engagement overlays, text overlays, style config, batch export, composition patterns, cost estimates and Remotion packages: read `references/reference.md`. If it is not installed, fetch https://raw.githubusercontent.com/tinh2/skills-hub-registry/main/build/social-clip/references/reference.md .
## Tips
1. **Hook is everything** -- spend 80% of creative effort on the first 3 seconds. If the hook fails, nothing else matters.
2. **Captions are mandatory** -- 85% of social video is watched with sound off. Always enable captions.
3. **Keep text in safe zones** -- each platform overlays UI on the video. Use the preset safe zones to avoid text behind profile icons or navigation.
4. **Match platform pacing** -- TikTok favors cuts every 2-3 seconds. Instagram tolerates slower pacing. YouTube Shorts split the difference.
5. **Use `zoom-rush` sparingly** -- one zoom-rush per clip is impactful, five is nauseating.
6. **End with CTA** -- the last 3-5 seconds should always include a call to action.
7. **Batch render always** -- if you are making a TikTok, render Reel and Short variants too. Nearly free and doubles your reach.
8. **Duration rule** -- for scenes with voiceover, set `durationSeconds` to `ceil(audio_duration + 3)` (3s buffer for hook + CTA).
9. **Test the hook first** -- use `npx remotion still --frame=0` to preview the opening frame before full render.
10. **Sound effects sell it** -- a bass-drop or whoosh on the hook frame increases perceived production quality dramatically.
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.