← 返回 Skills 市场
dsewell-583h0

Best Video Gen Script

作者 dsewell-583h0 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
66
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (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.

安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install best-video-gen-script
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /best-video-gen-script 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug best-video-gen-script
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 66 次。

如何安装 Best Video Gen Script?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install best-video-gen-script」即可一键安装,无需额外配置。

Best Video Gen Script 是免费的吗?

是的,Best Video Gen Script 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Best Video Gen Script 支持哪些平台?

Best Video Gen Script 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Best Video Gen Script?

由 dsewell-583h0(@dsewell-583h0)开发并维护,当前版本 v1.0.0。

💬 留言讨论