Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

magic-text2video魔术文字 2 视频

Agent Skill

用于辅助视频生成、动画合成、脚本化剪辑或 Remotion 等视频项目开发。它适合让 Agent 组织镜头、生成素材说明、维护合成代码或排查渲染问题。使用时需要确认分辨率、时长、素材路径和导出格式;涉及外部素材、人物肖像或商业发布时,应先核对版权授权和内容审核要求。

总安装

9,278

周安装

379

GitHub Stars

公开资料未说明

下载量

3,002
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:magic-text2video(魔术文字 2 视频)
来源仓库:https://github.com/zhangyuangao/magic-text2video
安装命令:
openclaw skills install magic-text2video
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install magic-text2video

简介

用于辅助视频生成、动画合成、脚本化剪辑或 Remotion 等视频项目开发。

  • 适用于从文本自动生成视频作业,支持远程渲染服务调用。
  • 需提供脚本内容与 API 密钥以提交至第三方视频生成平台。
  • 涉及人物肖像或商业用途时,须核实素材版权与使用许可。
  • magic-text2video 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
magic-text2video
description
Create a text-to-video job from user-provided copy. Submits to the remote video service via one API key.
homepage
metadata
{ "openclaw": { "emoji": "🎬", "requires": { "bins": ["python"], "env":["MAGIC_API_KEY"], "primaryEnv":"MAGIC_API_KEY" } } }

Text to Video Skill

Create a video generation task from text. The job is submitted immediately; Polling to obtain task status and video URL.

When to Use

USE this skill when:

  • "把这段文字生成视频"
  • "帮我把这段文案做成视频"
  • "用这段文字生成一个视频"
  • User provides a script or paragraph and asks to turn it into video

When NOT to Use

DON'T use this skill when:

  • User asks for video editing, trimming, or effects → use video-editing tools
  • User asks for screen recording or capture → use recording tools
  • User asks only for video status of an existing job → explain where to find files instead

Prerequisites

export MAGIC_API_KEY="your-key"

MAGIC_API_KEY is required by the remote video service client.


Overall Flow (Agent Guidance)

  1. Extract the full text from the user's message, denoted as TEXT (i.e., the script to be used for video generation).
  2. Use the video-create subcommand to create a task, read the JSON from stdout, and extract the task_id.
  3. Explicitly inform the user of the task_id in the chat (optionally include the original JSON output for debugging).
  4. Use the video-wait subcommand with the task_id as --task-id, polling until successful.
  5. video-wait 的 stdout 中提取 video_url.
  6. Explicitly inform the user of the final video_url in the chat (you may also include the original output).

Python Client (Step-by-step with Chat Output)

Step 1: Create a video task and print the task_id to the chat

  1. Extract the text the user wants to generate a video from and assign it to TEXT.

- If the text contains double quotes ", properly escape them before constructing the command (for example, by replacing " with \") to avoid shell parsing errors.

  1. Run the following command (executed by the agent/tool; {baseDir} will be replaced with the Skill directory):
python3 {baseDir}/scripts/media_gen_client.py video-create \
  --text  "TEXT"
  1. Read the stdout from this command. The expected output will be JSON, for example:
   {
    "biz_code": 10000,
    "msg": "Success",
    "data": {
        "task_id": "2032443088023777280"
    },
    "trace_id": "664c6e22-1edd-11f1-bf4c-8262dce7d13f"
  }
  1. Parse the task_id from stdout (e.g., "abc-123"), and inform the user in the chat: "A text-to-video task has been created, task_id: abc-123. I will keep polling for the task status, and send you the video URL once it is ready."

Step 2: Poll the task until success and output video_url in the chat

  1. Use the task_id obtained in the previous step and refer to it as task_id.
  1. Run the following command to poll the task status (check every 10 seconds and wait up to 600 seconds); if it times out, wait a while and retry:
python3 {baseDir}/scripts/media_gen_client.py video-wait --task-id YOUR_TASK_ID --poll 10 --timeout 600
  1. Read the stdout from this command. When the task succeeds, the script should output information including the video_url, for example:
   {
    "biz_code": 10000,
    "msg": "Success",
    "data": {
        "task_id": "1234567890",
        "task_status": 2,
        "video_url": "https://www.magiclight.com/examplevideo.mp4"
    },
    "trace_id": "c89aeca8-1edd-11f1-bf4c-8262dce7d13f"
}
  1. Parse the key fields from stdout:
  • status (e.g., 2)
  • video_url (e.g., "https://example.com/path/to/video.mp4")
  1. In the chat, respond to the user as follows:
  • Optionally (but recommended for debugging), first display the full JSON output inside a code block.
  • Then summarize the key information in natural language, for example:

> "Task completed ✅ > task_id: abc-123 > Video URL: https://example.com/path/to/video.mp4"

  1. If the stdout indicates that the task failed or timed out (for example, if the status is "failed" or there is no video_url):
  • Explain the reason for failure in the chat (include any error message, if available).
  • Inform the user that they can retry later, or check their input, quota, etc.

Expected Script Output Contract

  • The agent must always:

- Parse the stdout JSON. - Clearly communicate the task_id and video_url to the user in the chat. - If necessary, optionally display the raw JSON output in a code block.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

71.81%
按下载量换算2,156

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills