Short-Form Video: Plan First, Shoot Second
Shorts Engine — Open source CLI planning engine for YouTube Shorts, TikTok, and Instagram Reels
AI video generation tools are everywhere. Sora, Kling, Runway. But deciding what to make, in what order, to what platform spec, at what cost — that's still all manual work.
Shorts Engine automates the planning part. Feed it a request file and it outputs a complete production plan: platform specs, camera motion, B-roll recommendations, cost routing, execution order, recovery paths, and AI generation prompts. TypeScript CLI, 127 tests passing.
⚠️ What This Tool Does NOT Do
Shorts Engine does not generate actual video. AI video API integration (Sora, Kling, etc.), TTS generation, and platform auto-upload are not yet implemented. This is a planning engine — it tells you what to make and how, not make it for you.
Story comes before tools."
What Comes Out of One Request File
| Output | Description |
|---|---|
| Validation + normalization | Input format check and standardization |
| Platform output spec | YouTube/TikTok/Reels specs auto-applied, out-of-range auto-corrected |
| Novel → shorts planning | Convert novel episodes to short-form scenarios |
| Motion planning | Camera movement patterns with repeat-prevention rules |
| B-roll planning | Contextually matched supplementary clip recommendations |
| Cost routing | 5 deterministic rules auto-select cheapest backend |
| Execution plan | Per-node retry, fallback, and cost plan |
| Recovery simulation | Predicted auto-recovery paths on error |
| AI prompt generation | Ready-to-use prompts for video generation tools |
| Narrative DNA | studio philosophy-based scene_archetype + emotional_texture |
Supported Platforms
Search optimization, clear hook
Motion energy, instant captions
Visual consistency, brand finish
5 Cost Routing Rules
- Rule ACandidate score below 0.6 → no premium engine
- Rule BCache hit → return immediately (always first priority)
- Rule CBatch ≥5 + GPU available → prefer GPU
- Rule DPremium engine only for final high-value stages
- Rule ERetry cost > expected gain → go straight to fallback
Getting Started
Request File Structure
npm test → 127 tests passed, 0 failedOutput Fields
Get Started on GitHub
MIT License · Completely Free · TypeScript
127 tests passed · Node.js 24+
YouTube Shorts / TikTok / Instagram Reels