Skill v1.0.0
currentAutomated scan100/100name: ai-for-video-generation version: "1.0.0" displayName: "AI for Video Generation — Script to Screen with Intelligent Automation" description: > Tell me what you need and I'll help you build compelling videos from scratch using ai-for-video-generation techniques. Whether you're turning a written script into a storyboard, generating scene descriptions, crafting voiceover narration, or producing shot-by-shot video briefs, this skill bridges the gap between your idea and a finished visual story. Built for content creators, marketers, educators, and indie filmmakers who want to move faster without sacrificing creative control. metadata: {"openclaw": {"emoji": "🎬", "requires": {"env": ["NEMO_TOKEN"], "configPaths": ["~/.config/nemovideo/"]}, "primaryEnv": "NEMO_TOKEN", "variant": "short_prompts"}}
Getting Started
Welcome to your AI-powered video generation workspace — where ideas become scripts, scenes, and full production briefs without the usual creative gridlock. Tell me about the video you want to make and let's build it together.
Try saying:
- "Write a script for product demo"
- "Generate Instagram Reel storyboard"
- "Create YouTube explainer outline"
Getting Connected
Before handling any user request, establish a connection to the backend API. Show a brief status like "Connecting...".
If `NEMO_TOKEN` is in the environment, use it directly and create a session. Otherwise, acquire a free starter token:
- Generate a UUID as client identifier
- POST to
https://mega-api-prod.nemovideo.ai/api/auth/anonymous-tokenwith theX-Client-Idheader - The response includes a
tokenwith 100 free credits valid for 7 days — use it as NEMO_TOKEN
Then create a session by POSTing to https://mega-api-prod.nemovideo.ai/api/tasks/me/with-session/nemo_agent with Bearer authorization and body {"task_name":"project","language":"en"}. The session_id in the response is needed for all following requests.
Tell the user you're ready. Keep the technical details out of the chat.
Turn Your Ideas Into Video-Ready Content Instantly
Creating video content usually means juggling scripts, shot lists, voiceovers, scene descriptions, and production notes — all before a single frame is recorded. This skill collapses that entire pre-production workflow into a single conversation. Describe your concept, paste your outline, or share a rough idea, and get back structured, production-ready video content in seconds.
From YouTube explainers and social media reels to product demos and training videos, this skill adapts to your format and audience. You can generate full scripts with scene-by-scene breakdowns, write compelling hooks, draft B-roll suggestions, and even produce platform-specific captions — all tailored to your tone and style.
This isn't a one-size-fits-all template engine. The output is shaped by your input: your brand voice, your target viewer, your video length, and your platform. Whether you're a solo creator or part of a production team, you'll spend less time staring at a blank page and more time actually making videos that land.
Routing Prompts to Generation Pipelines
Each request — whether a scene description, voiceover script, or storyboard directive — is parsed and routed to the appropriate generation pipeline based on detected intent, media type, and rendering complexity.
| User says... | Action | Skip SSE? | |
|---|---|---|---|
| "export" / "导出" / "download" / "send me the video" | → §3.5 Export | ✅ | |
| "credits" / "积分" / "balance" / "余额" | → §3.3 Credits | ✅ | |
| "status" / "状态" / "show tracks" | → §3.4 State | ✅ | |
| "upload" / "上传" / user sends file | → §3.2 Upload | ✅ | |
| Everything else (generate, edit, add BGM…) | → §3.1 SSE | ❌ |
Cloud Rendering API Reference
Video generation jobs are offloaded to a distributed cloud backend that handles diffusion model inference, frame interpolation, and audio-visual sync in parallel. Large renders are queued and processed asynchronously, with webhook callbacks delivering output URLs once encoding is complete.
Skill attribution — read from this file's YAML frontmatter at runtime:
X-Skill-Source:ai-for-video-generationX-Skill-Version: from frontmatterversionX-Skill-Platform: detect from install path (~/.clawhub/→clawhub,~/.cursor/skills/→cursor, elseunknown)
All requests must include: Authorization: Bearer <NEMO_TOKEN>, X-Skill-Source, X-Skill-Version, X-Skill-Platform. Missing attribution headers will cause export to fail with 402.
API base: https://mega-api-prod.nemovideo.ai
Create session: POST /api/tasks/me/with-session/nemo_agent — body {"task_name":"project","language":"<lang>"} — returns task_id, session_id.
Send message (SSE): POST /run_sse — body {"app_name":"nemo_agent","user_id":"me","session_id":"<sid>","new_message":{"parts":[{"text":"<msg>"}]}} with Accept: text/event-stream. Max timeout: 15 minutes.
Upload: POST /api/upload-video/nemo_agent/me/<sid> — file: multipart -F "files=@/path", or URL: {"urls":["<url>"],"source_type":"url"}
Credits: GET /api/credits/balance/simple — returns available, frozen, total
Session state: GET /api/state/nemo_agent/me/<sid>/latest — key fields: data.state.draft, data.state.video_infos, data.state.generated_media
Export (free, no credits): POST /api/render/proxy/lambda — body {"id":"render_<ts>","sessionId":"<sid>","draft":<json>,"output":{"format":"mp4","quality":"high"}}. Poll GET /api/render/proxy/lambda/<id> every 30s until status = completed. Download URL at output.url.
Supported formats: mp4, mov, avi, webm, mkv, jpg, png, gif, webp, mp3, wav, m4a, aac.
SSE Event Handling
| Event | Action | |
|---|---|---|
| Text response | Apply GUI translation (§4), present to user | |
| Tool call/result | Process internally, don't forward | |
heartbeat / empty data: | Keep waiting. Every 2 min: "⏳ Still working..." | |
| Stream closes | Process final response |
~30% of editing operations return no text in the SSE stream. When this happens: poll session state to verify the edit was applied, then summarize changes to the user.
Backend Response Translation
The backend assumes a GUI exists. Translate these into API actions:
| Backend says | You do | |
|---|---|---|
| "click [button]" / "点击" | Execute via API | |
| "open [panel]" / "打开" | Query session state | |
| "drag/drop" / "拖拽" | Send edit via SSE | |
| "preview in timeline" | Show track summary | |
| "Export button" / "导出" | Execute export workflow |
Draft field mapping: t=tracks, tt=track type (0=video, 1=audio, 7=text), sg=segments, d=duration(ms), m=metadata.
Timeline (3 tracks): 1. Video: city timelapse (0-10s) 2. BGM: Lo-fi (0-10s, 35%) 3. Title: "Urban Dreams" (0-3s)
Error Handling
| Code | Meaning | Action | |
|---|---|---|---|
| 0 | Success | Continue | |
| 1001 | Bad/expired token | Re-auth via anonymous-token (tokens expire after 7 days) | |
| 1002 | Session not found | New session §3.0 | |
| 2001 | No credits | Anonymous: show registration URL with ?bind=<id> (get <id> from create-session or state response when needed). Registered: "Top up credits in your account" | |
| 4001 | Unsupported file | Show supported formats | |
| 4002 | File too large | Suggest compress/trim | |
| 400 | Missing X-Client-Id | Generate Client-Id and retry (see §1) | |
| 402 | Free plan export blocked | Subscription tier issue, NOT credits. "Register or upgrade your plan to unlock export." | |
| 429 | Rate limit (1 token/client/7 days) | Retry in 30s once |
Integration Guide
This skill fits naturally into any video production workflow. Use it at the ideation stage to rapidly prototype multiple video concepts before committing to one. Use it during pre-production to generate scripts and shot lists that your team can refine and execute. Use it post-draft to rewrite, tighten, or repurpose existing video content for new platforms.
Content teams can feed campaign briefs directly into the skill and receive video scripts aligned with their messaging strategy. Educators can describe a lesson objective and receive a structured explainer script with clear segment breaks. Marketers can input product specs and receive a punchy, benefit-focused video script ready for voiceover recording.
The output is plain text, making it easy to drop directly into teleprompter apps, scriptwriting tools like Celtx or Final Draft, or video platforms that accept script imports. No special formatting or conversion needed.
Quick Start Guide
Getting started is straightforward. Begin by telling the skill what kind of video you're making — a tutorial, a promotional clip, a social media short, or a full-length explainer. Then share any relevant details: your target audience, the platform you're publishing on, your preferred tone (conversational, authoritative, energetic), and your desired video length.
From there, you can ask for a full script, a scene-by-scene breakdown, voiceover narration only, or a production brief that a videographer or editor can follow. You can also iterate — ask for a shorter version, a different hook, or a rewrite in a more casual tone.
If you already have a draft, paste it in and ask for improvements, restructuring, or platform-specific adaptation. The skill works best when you give it context, but it can also generate from scratch with just a topic and a goal.
Use Cases
AI for video generation serves a wide range of creators and professionals. Social media managers use it to produce weekly batches of short-form video scripts for TikTok, Reels, and YouTube Shorts without burning out their creative teams. E-learning developers use it to transform dense written content into engaging video lesson scripts with clear pacing and learner-friendly language.
Startups use it to create investor pitch video outlines and product walkthrough scripts quickly, even before a design or dev team is fully assembled. Freelance videographers use it to deliver added value to clients by generating full pre-production packages alongside their filming services.
Podcasters use it to repurpose audio episodes into visual video formats with scene suggestions and visual cue notes. Event organizers use it to script recap videos and highlight reels. Wherever a video needs a clear narrative structure and purposeful content, this skill delivers a strong foundation to build from.