Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generate short-form videos with AI — script writing, text-to-speech narration, stock footage selection, subtitle generation, and video assembly. Use when: creating TikTok/YouTube Shorts/Reels content, automating video production, building content pipelines.
.claude/skills/terminalskills-ai-video-generator/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 259% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 128% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 194% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 85% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 31% | 0% |
Automate creation of short-form videos (TikTok, YouTube Shorts, Instagram Reels) using AI for every step: topic research, script writing, text-to-speech narration, stock footage matching, subtitle generation, and final assembly. Inspired by MoneyPrinterTurbo (53k+ stars).
bashpip install anthropic openai requests moviepy pydub whisperx srt sudo apt install ffmpeg # Linux — or: brew install ffmpeg (macOS)
API keys needed: Anthropic or OpenAI (scripts), ElevenLabs or OpenAI TTS (voice), Pexels (free stock footage).
pythonimport anthropic def generate_script(topic, duration_seconds=45): """Generate a video script optimized for short-form content.""" client = anthropic.Anthropic() prompt = f"""Write a {duration_seconds}-second video script about: {topic} Format: HOOK (first 3 seconds): A shocking statement or question that stops scrolling BODY (main content): 3-5 punchy facts or points, each 1-2 sentences CTA (last 5 seconds): Call to action — follow, like, comment Rules: - Conversational, no complex sentences - Each sentence on its own line - ~{duration_seconds * 2.5:.0f} words ({duration_seconds}s at 150wpm) - Use power words: secret, shocking, nobody tells you, actually - No emojis or hashtags — this is a voiceover script """ response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=500, messages=[{"role": "user", "content": prompt}] ) return response.content[0].text
pythonimport requests, os def generate_voice_elevenlabs(text, output_path='narration.mp3'): """Generate voiceover using ElevenLabs.""" url = "https://api.elevenlabs.io/v1/text-to-speech/21m00Tcm4TlvDq8ikWAM" headers = {"xi-api-key": os.environ["ELEVENLABS_API_KEY"], "Content-Type": "application/json"} data = {"text": text, "model_id": "eleven_turbo_v2_5", "voice_settings": {"stability": 0.5, "similarity_boost": 0.75}} response = requests.post(url, json=data, headers=headers) with open(output_path, 'wb') as f: f.write(response.content) return output_path def generate_voice_openai(text, output_path='narration.mp3'): """Generate voiceover using OpenAI TTS (cheaper alternative).""" from openai import OpenAI client = OpenAI() response = client.audio.speech.create(model="tts-1-hd", voice="onyx", input=text) response.stream_to_file(output_path) return output_path
pythondef search_pexels_videos(query, count=5): """Search Pexels for portrait-oriented stock video clips.""" url = "https://api.pexels.com/videos/search" headers = {"Authorization": os.environ["PEXELS_API_KEY"]} params = {"query": query, "per_page": count, "orientation": "portrait", "size": "medium"} response = requests.get(url, headers=headers, params=params) videos = response.json().get('videos', []) results = [] for v in videos: files = sorted(v['video_files'], key=lambda x: x.get('height', 0), reverse=True) hd = next((f for f in files if f.get('height', 0) >= 720), files[0]) results.append({'id': v['id'], 'url': hd['link'], 'duration': v['duration']}) return results
pythondef generate_subtitles(audio_path, output_srt='subtitles.srt'): """Generate word-level subtitles using WhisperX.""" import whisperx, srt from datetime import timedelta model = whisperx.load_model("base", device="cpu") audio = whisperx.load_audio(audio_path) result = model.transcribe(audio) align_model, metadata = whisperx.load_align_model(language_code="en") aligned = whisperx.align(result["segments"], align_model, metadata, audio) subs = [] words = [w for seg in aligned["segments"] for w in seg.get("words", [])] for i in range(0, len(words), 4): group = words[i:i + 4] if not group: continue start = timedelta(seconds=group[0].get('start', 0)) end = timedelta(seconds=group[-1].get('end', 0)) text = ' '.join(w['word'] for w in group) subs.append(srt.Subtitle(index=len(subs)+1, start=start, end=end, content=text)) with open(output_srt, 'w') as f: f.write(srt.compose(subs)) return output_srt
pythonimport subprocess def assemble_video(clips, narration, subtitles, output='final.mp4'): """Assemble final video: concatenate clips, add narration and subtitles.""" concat_list = 'concat_list.txt' with open(concat_list, 'w') as f: for clip in clips: f.write(f"file '{clip}'\n") subprocess.run([ 'ffmpeg', '-y', '-f', 'concat', '-safe', '0', '-i', concat_list, '-vf', 'scale=1080:1920:force_original_aspect_ratio=increase,crop=1080:1920', '-c:v', 'libx264', '-preset', 'fast', '-an', 'temp_video.mp4' ], check=True) subtitle_filter = (f"subtitles={subtitles}:force_style='" "FontName=Arial,FontSize=18,PrimaryColour=&H00FFFFFF," "OutlineColour=&H00000000,Outline=2,Bold=1,Alignment=2'") subprocess.run([ 'ffmpeg', '-y', '-i', 'temp_video.mp4', '-i', narration, '-vf', subtitle_filter, '-c:v', 'libx264', '-c:a', 'aac', '-shortest', output ], check=True) return output
pythondef generate_video(topic, output_dir='./output'): """Complete pipeline: topic -> finished video.""" import os os.makedirs(output_dir, exist_ok=True) script = generate_script(topic) narration = generate_voice_elevenlabs(script, f'{output_dir}/narration.mp3') keywords = topic.split()[:3] videos = search_pexels_videos(' '.join(keywords), count=3) clips = [] for i, v in enumerate(videos): path = f'{output_dir}/clip_{i}.mp4' requests.get(v['url'], stream=True) # download clip clips.append(path) subs = generate_subtitles(narration, f'{output_dir}/subs.srt') return assemble_video(clips, narration, subs, f'{output_dir}/final.mp4')
A creator produces 5 technology-themed short videos for TikTok in one run:
pythontopics = [ "AI tools nobody talks about", "Apps that feel illegal to use for free", "Websites that will blow your mind", "Free AI tools every student needs", "Tech gadgets under $50 that changed my life" ] for topic in topics: output = generate_video(topic, output_dir=f'./output/{topic[:30]}') print(f"Video ready: {output}") # Each video: ~45 seconds, portrait 1080x1920, with subtitles and narration # Total cost: ~$0.25 (5 x $0.05 per video) using ElevenLabs + Claude Sonnet
A finance channel automates daily Shorts upload with trending money topics:
pythonimport schedule def daily_finance_video(): topic = "3 passive income ideas that actually work in 2025" script = generate_script(topic, duration_seconds=55) # Script output: # HOOK: "You're losing money every single day you don't know about these." # BODY: 1. Print-on-demand stores ($500-2k/mo) # 2. AI-generated content licensing ($300-1k/mo) # 3. Dividend ETF stacking ($200-800/mo passive) # CTA: "Follow for more money tips that nobody tells you about." narration = generate_voice_openai(script, './daily/narration.mp3') videos = search_pexels_videos("money finance investing", count=4) # Downloads 4 portrait clips of money/charts/lifestyle footage # Assembles with bold white subtitles, outputs 55-second Short final = assemble_video(['./daily/clip_0.mp4', './daily/clip_1.mp4'], narration, './daily/subs.srt', './daily/final.mp4') schedule.every().day.at("08:00").do(daily_finance_video)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 24,275 | 23,350 | -4% | 1 | 1 | 0% | 5,338 | 7,918 | +48% | 0 | 0 | — |
case-02 | fail→fail | 20,413 | 23,302 | +14% | 1 | 1 | 0% | 4,569 | 8,735 | +91% | 0 | 0 | — |
case-03 | fail→fail | 26,830 | 24,598 | -8% | 1 | 1 | 0% | 5,517 | 8,406 | +52% | 0 | 0 | — |
case-04 | fail→pass | 5,937 | 8,866 | +49% | 1 | 1 | 0% | 1,275 | 4,581 | +259% | 0 | 0 | — |
case-05 | fail→pass | 11,422 | 8,293 | -27% | 1 | 1 | 0% | 2,005 | 4,568 | +128% | 0 | 0 | — |
case-06 | fail→pass | 7,123 | 6,722 | -6% | 1 | 1 | 0% | 1,384 | 4,065 | +194% | 0 | 0 | — |
case-20 | pass→pass | 12,003 | 11,611 | -3% | 1 | 1 | 0% | 2,527 | 5,239 | +107% | 0 | 0 | — |
case-07 | pass→pass | 10,569 | 9,495 | -10% | 1 | 1 | 0% | 2,325 | 4,865 | +109% | 0 | 0 | — |
case-08 | fail→pass | 12,038 | 11,485 | -5% | 1 | 1 | 0% | 2,724 | 5,031 | +85% | 0 | 0 | — |
case-09 | pass→pass | 14,297 | 13,822 | -3% | 1 | 1 | 0% | 2,810 | 5,545 | +97% | 0 | 0 | — |
case-10 | fail→pass | 14,104 | 3,325 | -76% | 1 | 1 | 0% | 2,506 | 3,293 | +31% | 0 | 0 | — |
case-11 | pass→pass | 9,007 | 6,433 | -29% | 1 | 1 | 0% | 1,735 | 3,881 | +124% | 0 | 0 | — |
case-12 | fail→pass | 12,421 | 4,908 | -60% | 1 | 1 | 0% | 2,498 | 3,651 | +46% | 0 | 0 | — |
case-13 | fail→fail | 5,745 | 9,314 | +62% | 1 | 1 | 0% | 1,332 | 4,682 | +252% | 0 | 0 | — |
case-14 | pass→pass | 5,326 | 1,910 | -64% | 1 | 1 | 0% | 874 | 3,024 | +246% | 0 | 0 | — |
case-15 | fail→pass | 9,283 | 6,567 | -29% | 1 | 1 | 0% | 1,635 | 4,046 | +147% | 0 | 0 | — |
case-16 | fail→pass | 2,529 | 1,461 | -42% | 1 | 1 | 0% | 314 | 2,907 | +826% | 0 | 0 | — |
case-17 | pass→fail | 15,665 | 11,907 | -24% | 1 | 1 | 0% | 1,905 | 4,813 | +153% | 0 | 0 | — |
case-18 | fail→pass | 14,131 | 5,832 | -59% | 1 | 1 | 0% | 2,085 | 3,706 | +78% | 0 | 0 | — |
case-19 | fail→pass | 7,203 | 5,067 | -30% | 1 | 1 | 0% | 1,403 | 3,594 | +156% | 0 | 0 | — |
case-21 | pass→pass | 19,094 | 17,108 | -10% | 1 | 1 | 0% | 3,513 | 6,031 | +72% | 0 | 0 | — |
case-22 | pass→pass | 14,156 | 14,233 | +1% | 1 | 1 | 0% | 2,830 | 5,664 | +100% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +41 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.