klap-generate-shorts
Installation
SKILL.md
Klap Generate Shorts
End-to-end workflow for generating short-form video clips from YouTube videos using the Klap API. Handles the complete pipeline: submit → process → export → download → store.
What It Does
- Submits a YouTube URL to Klap for AI-powered editing
- Polls for processing completion (~5-30 minutes)
- Lists all generated shorts with virality scores
- Exports each short (creates download URLs)
- Downloads videos locally
- Stores everything in
video_to_shorts_agentdatabase table - Sends desktop/webhook notifications when complete
How to Run
# Generate shorts from YouTube video
python3 skills/klap-generate-shorts/scripts/klap_generate_shorts.py "https://youtube.com/watch?v=VIDEO_ID"