← Back to Skills Marketplace
dsewell-583h0

Best Video Gen Script

by dsewell-583h0 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
66
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install best-video-gen-script
Description
Turn a 60-second product explainer concept into 1080p ready-to-use scripts just by typing what you need. Whether it's generating video scripts from text prom...
README (SKILL.md)

Getting Started

Share your text prompt and I'll get started on AI script generation. Or just tell me what you're thinking.

Try saying:

  • "generate my text prompt"
  • "export 1080p MP4"
  • "write a video script for a"

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-token with the X-Client-Id header
  • The response includes a token with 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.

Best Video Gen Script — Generate Scripts for Videos Fast

This tool takes your text prompt and runs AI script generation through a cloud rendering pipeline. You upload, describe what you want, and download the result.

Say you have a 60-second product explainer concept and want to write a video script for a 30-second ad about a fitness app — the backend processes it in about 20-40 seconds and hands you a 1080p MP4.

Tip: shorter video length prompts produce tighter, more usable scripts.

Matching Input to Actions

User prompts referencing best video gen script, aspect ratio, text overlays, or audio tracks get routed to the corresponding action via keyword and intent classification.

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 Render Pipeline Details

Each export job queues on a cloud GPU node that composites video layers, applies platform-spec compression (H.264, up to 1080x1920), and returns a download URL within 30-90 seconds. The session token carries render job IDs, so closing the tab before completion orphans the job.

Base URL: https://mega-api-prod.nemovideo.ai

Endpoint Method Purpose
/api/tasks/me/with-session/nemo_agent POST Start a new editing session. Body: {"task_name":"project","language":"\x3Clang>"}. Returns session_id.
/run_sse POST Send a user message. Body includes app_name, session_id, new_message. Stream response with Accept: text/event-stream. Timeout: 15 min.
/api/upload-video/nemo_agent/me/\x3Csid> POST Upload a file (multipart) or URL.
/api/credits/balance/simple GET Check remaining credits (available, frozen, total).
/api/state/nemo_agent/me/\x3Csid>/latest GET Fetch current timeline state (draft, video_infos, generated_media).
/api/render/proxy/lambda POST Start export. Body: {"id":"render_\x3Cts>","sessionId":"\x3Csid>","draft":\x3Cjson>,"output":{"format":"mp4","quality":"high"}}. Poll status every 30s.

Accepted file types: mp4, mov, avi, webm, mkv, jpg, png, gif, webp, mp3, wav, m4a, aac.

Skill attribution — read from this file's YAML frontmatter at runtime:

  • X-Skill-Source: best-video-gen-script
  • X-Skill-Version: from frontmatter version
  • X-Skill-Platform: detect from install path (~/.clawhub/clawhub, ~/.cursor/skills/cursor, else unknown)

Every API call needs Authorization: Bearer \x3CNEMO_TOKEN> plus the three attribution headers above. If any header is missing, exports return 402.

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=\x3Cid> (get \x3Cid> 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

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)

Tips and Tricks

The backend processes faster when you're specific. Instead of "make it look better", try "write a video script for a 30-second ad about a fitness app" — concrete instructions get better results.

Max file size is 500MB. Stick to MP4, MOV, AVI, WebM for the smoothest experience.

Export as MP4 for widest compatibility.

Common Workflows

Quick edit: Upload → "write a video script for a 30-second ad about a fitness app" → Download MP4. Takes 20-40 seconds for a 30-second clip.

Batch style: Upload multiple files in one session. Process them one by one with different instructions. Each gets its own render.

Iterative: Start with a rough cut, preview the result, then refine. The session keeps your timeline state so you can keep tweaking.

Usage Guidance
This skill integrates with a remote service at mega-api-prod.nemovideo.ai and expects either an existing NEMO_TOKEN or will request an anonymous token from that API on your behalf. Before enabling: (1) Confirm you trust the nemovideo API and are comfortable uploading media files to it (exports/uploads go to that service). (2) Only put a limited-scope NEMO_TOKEN in your environment (do not reuse broad cloud credentials). (3) Be aware the skill will perform network calls for auth, session management, SSE streaming, uploads, and render requests and will read its own frontmatter/install path to set attribution headers. If any of that is unacceptable, do not provide a persistent token and avoid uploading sensitive files.
Capability Analysis
Type: OpenClaw Skill Name: best-video-gen-script Version: 1.0.0 The skill facilitates video generation via an external API (mega-api-prod.nemovideo.ai) but exhibits several risky behaviors that warrant a suspicious classification. It instructs the agent to perform environment fingerprinting by probing for specific installation paths (e.g., ~/.clawhub and ~/.cursor) to populate telemetry headers (X-Skill-Platform) and implements a backend-driven control flow where the agent is directed to execute actions based on strings received from the server's SSE stream. While these capabilities are plausibly needed for the stated purpose, the combination of environment probing and remote instruction processing represents a significant attack surface without clear evidence of malicious intent.
Capability Assessment
Purpose & Capability
The skill is a cloud-backed video/script generation interface and declares one credential, NEMO_TOKEN, which is coherent with calling a private API (mega-api-prod.nemovideo.ai). Requested config path (~/.config/nemovideo/) and the primaryEnv NEMO_TOKEN match the described backend usage.
Instruction Scope
The SKILL.md gives detailed API call flow (auth, session creation, SSE, uploads, render start/poll). This is in-scope for a cloud render service. It also instructs generating an anonymous token by POSTing to the public API if no NEMO_TOKEN is present, and to read the skill's YAML frontmatter and the install path to build attribution headers — these require network and limited filesystem access (to detect install path/frontmatter). Those operations are explainable for attribution and fallback auth, but worth noting because they perform network calls and read skill metadata at runtime.
Install Mechanism
No install spec or code files are present (instruction-only). That minimizes disk-write risk; the skill relies on network calls to the documented API endpoints rather than installing third-party binaries.
Credentials
Only a single environment variable (NEMO_TOKEN) is required and is justified by the need for Bearer authorization to the described API. No unrelated secrets or broad credential lists are requested.
Persistence & Privilege
always is false and the skill does not request elevated or permanent platform privileges. It does instruct the agent to detect its install path and read its own frontmatter for headers, which is limited in scope and normal for attribution; nothing indicates modification of other skills or system-wide settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install best-video-gen-script
  3. After installation, invoke the skill by name or use /best-video-gen-script
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Best Video Gen Script v1.0.0 — Initial Release - Instantly generate ready-to-use video scripts from simple text prompts, optimized for 60-second explainers and social content. - Automatic handling of session and API authentication, including free starter token creation for new users. - Supports uploading and editing of major video, audio, and image formats (MP4, MOV, AVI, etc.). - Streamlined cloud rendering pipeline enables 1080p MP4 exports in 20–40 seconds per job. - Real-time session management and smart error handling for common workflow interruptions. - Simple commands for script generation, exports, credits checking, and timeline state queries.
Metadata
Slug best-video-gen-script
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Best Video Gen Script?

Turn a 60-second product explainer concept into 1080p ready-to-use scripts just by typing what you need. Whether it's generating video scripts from text prom... It is an AI Agent Skill for Claude Code / OpenClaw, with 66 downloads so far.

How do I install Best Video Gen Script?

Run "/install best-video-gen-script" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Best Video Gen Script free?

Yes, Best Video Gen Script is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Best Video Gen Script support?

Best Video Gen Script is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Best Video Gen Script?

It is built and maintained by dsewell-583h0 (@dsewell-583h0); the current version is v1.0.0.

💬 Comments