youtube-to-heygen-video

Installation
SKILL.md

YouTube to HeyGen Avatar Video

Converts YouTube videos into 60-second vertical avatar videos using your HeyGen AI clone. Analyzes the video with Gemini AI, rewrites as an Alex Hormozi-style script, generates a social media caption, and creates the avatar video.

What It Does

  1. Sends YouTube URL to Gemini 2.0 Flash for direct video analysis
  2. Generates a ~180-word Alex Hormozi-style script (≈60 seconds of speaking)
  3. Creates a social media caption with SEO keywords and hashtags
  4. Sends script to HeyGen API for avatar video generation (1080x1920 vertical)
  5. Polls for completion and stores video URL in gemini_video_agent database table

How to Run

# Generate avatar video from YouTube
python3 skills/youtube-to-heygen-video/scripts/youtube_to_heygen_video.py "https://www.youtube.com/watch?v=VIDEO_ID"
Installs
4
GitHub Stars
55
First Seen
Apr 8, 2026
youtube-to-heygen-video — kevinbadi/ai-os-skills