← Back to Skills Marketplace
lu200852

Hilight Video Generate

by lu200852 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
315
Downloads
0
Stars
1
Active Installs
3
Versions
Install in OpenClaw
/install hilight-video-generate
Description
电商视频生成技能。通过 MCP(mcporter)调用远程视频生成 API, 自动为用户生成营销短视频。支持任务创建、进度查询、视频下载。
README (SKILL.md)

Hilight Video Generator Skill

触发条件

用户出现以下意图时触发:

  • 生成视频、制作视频、做视频、创建视频
  • 电商视频、营销视频、产品视频、短视频
  • video, generate video, marketing video
  • 查询视频进度、视频状态
  • 下载视频

绝对禁止

  • 绝对禁止 在回复中明文输出 API Key。
  • 绝对禁止 把 API Key 写入日志、命令历史、聊天记录中。
  • 绝对禁止 在未实际调用 MCP 的情况下声称"已生成"或"已完成"。
  • 绝对禁止 伪造视频 URL 或任务状态。

前置条件

本技能依赖 mcporter 连接本地 MCP server(http://localhost:10620/mcp)。

通过 clawhub install hilight-video-generate 安装,clawhub hook 自动读取 clawhub.json 完成 mcporter 注册与 API Key 配置。

MCP 可用工具

通过 mcporter 连接的 hilight-video-generate MCP server 提供以下工具(tool):

具体工具名和参数以 MCP server 实际暴露为准。以下为典型接口模式。

1. 创建视频任务

  • 工具: create_video / generate_video
  • 参数:
    • title:视频标题
    • description:视频描述 / 脚本文案
    • image_url:商品封面图 URL(可选)
    • style:视频风格(可选)
    • duration:时长偏好(可选)
  • 返回: task_id、初始状态

2. 查询任务状态

  • 工具: get_task_status / query_task
  • 参数:
    • task_id:任务 ID
  • 返回: 状态(pending / processing / completed / failed)、进度百分比、预计剩余时间

3. 下载 / 获取视频

  • 工具: get_video / download_video
  • 参数:
    • task_id:任务 ID
  • 返回: 视频下载 URL、文件大小、时长

4. 列出历史任务

  • 工具: list_tasks
  • 参数:
    • page:页码(默认 1)
    • page_size:每页数量(默认 20)
    • status:按状态筛选(可选)
  • 返回: 任务列表

执行流程

流程 A:生成新视频

用户:"帮我生成一个 XX 产品的电商视频"
  1. 确认用户需求(标题、描述、风格)
  2. 通过 MCP 调用 create_video 工具
  3. 拿到 task_id,告知用户任务已提交
  4. 自动查询一次状态
  5. 如果还在处理中,告知预计时间,后续用户可随时问进度

输出模板

🎬 视频生成任务已提交!

- 任务 ID:task_abc123  ← 保存此 ID
- 标题:XX 产品营销视频
- 状态:processing(生成中)
- 预计完成:约 3-5 分钟

⏳ 稍后对我说"查一下视频进度"即可获取最新状态。

流程 B:查询进度

用户:"查一下视频进度" / "task_abc123 好了吗"
  1. 通过 MCP 调用 get_task_status
  2. 返回当前状态

输出模板(处理中)

⏳ 任务 task_abc123 状态:processing
   进度:68% | 预计剩余:约 1 分钟

输出模板(已完成)

✅ 视频已生成完成!

- 任务 ID:task_abc123
- 时长:00:30
- 文件大小:12.5 MB
- 下载链接:https://cdn.example.com/video/abc123.mp4

💡 说"下载这个视频"我帮你保存到本地。

流程 C:下载视频

用户:"下载视频 task_abc123"
  1. 通过 MCP 获取下载 URL
  2. 使用 exec curl 下载到本地
exec curl -L -o ~/Downloads/video_task_abc123.mp4 "VIDEO_DOWNLOAD_URL"
  1. 确认文件大小
exec ls -lh ~/Downloads/video_task_abc123.mp4

输出模板

📥 视频已下载!

- 文件:~/Downloads/video_task_abc123.mp4
- 大小:12.5 MB

💡 可以直接用 QuickTime 播放,或拖到剪辑软件中使用。

错误处理

错误码 含义 处理方式
401/403 API Key 无效或过期 提示用户检查 .env 文件中的 VIDEO_API_KEY
404 任务不存在 提示检查 task_id 是否正确
429 请求频率限制 等待后重试,提示用户稍候
500+ 服务端错误 告知用户服务暂时不可用,建议稍后重试
MCP 连接失败 mcporter 未启动或配置错误 提示检查 mcporter 状态和 mcporter.json 配置

API Key 管理

  • 存储位置: ~/.openclaw/workspace/skills/hilight-video-generate/.env
  • 文件权限: 600(仅当前用户可读写)
  • 更新方式: 直接编辑 .env 文件
  • 安全保证: .env 不会被提交到版本控制(gitignore 排除)
Usage Guidance
This skill appears to do what it says (create/query/download videos through a local mcporter endpoint), but pay attention to these points before installing: - Metadata omission: the registry listing claims no required env vars, but the skill and clawhub.json clearly require a VIDEO_API_KEY (secret) that will be stored in ~/.openclaw/workspace/skills/hilight-video-generate/.env. Expect the installer to prompt for that key. - The skill will run shell commands (curl, ls) to download video files to your ~/Downloads directory. Only provide API keys that are scoped/limited and verify the download host if you have security concerns; a compromised or malicious downstream URL could deliver unwanted content. - Confirm what clawhub install does (it will register the MCP service and write the .env). If possible, run installation in a sandbox or inspect clawhub's install hooks before accepting. - Ensure mcporter is legitimately configured and listening on localhost:10620 as claimed — this local service is the gateway to the remote video platform. If you want higher assurance, ask the skill provider to: update registry metadata to declare VIDEO_API_KEY as the primary credential, provide a link to the MCP server implementation or homepage, and document clawhub install actions so you can review what will be written/registered.
Capability Analysis
Type: OpenClaw Skill Name: hilight-video-generate Version: 1.0.2 The skill facilitates video generation via a local MCP server and includes instructions in SKILL.md to execute shell commands (`exec curl`) for downloading files from remote URLs. While the behavior is aligned with the stated purpose and includes explicit security constraints to prevent API key leakage, the use of direct shell execution for remote content is a high-risk capability that could be vulnerable to command injection if the agent fails to sanitize the URL provided by the external API.
Capability Assessment
Purpose & Capability
The name/description (e‑commerce video generation via MCP) matches the SKILL.md: creating tasks, querying status, and downloading videos via a local mcporter endpoint. However registry metadata declared no required env vars or primary credential while clawhub.json and SKILL.md clearly expect a VIDEO_API_KEY — a documentation/metadata mismatch.
Instruction Scope
SKILL.md stays within the stated purpose (call mcporter tools, poll status, fetch download URL). It also instructs the agent to run shell commands (exec curl, ls -lh) and to read/write a local .env under ~/.openclaw/workspace/skills/hilight-video-generate/.env. Using curl to arbitrary download URLs returned by the service is expected for download, but it means the agent will fetch/expose files from external hosts — worth noting.
Install Mechanism
Instruction-only skill with no install spec or embedded code — lowest install risk. Setup is expected to be done via clawhub (clawhub.json) which prompts for the API key; no archive downloads or installer URLs are present.
Credentials
Although the registry metadata lists no required env vars, clawhub.json defines a secret prompt VIDEO_API_KEY that will be written to a local .env. The skill will request and store a bearer API key (appropriate for the described remote service) but the omission from the declared requirements is a mismatch and should have been declared as the primary credential. The skill also expects write/read access to ~/.openclaw/workspace/... and to write a secret file there.
Persistence & Privilege
always is false and the skill only writes configuration into its own workspace .env and registers with mcporter via clawhub. It does not request system-wide changes or other skills' credentials. Autonomous invocation is enabled (normal) but combined with shell exec and downloads, this increases blast radius (noted).
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install hilight-video-generate
  3. After installation, invoke the skill by name or use /hilight-video-generate
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
- 新增详细 SKILL.md,系统化说明电商视频自动生成技能的功能、触发意图与禁止事项。 - 明确列出通过 MCP 可用的四类工具:创建视频、查询进度、下载视频、历史任务列表。 - 完善典型执行流程,包括视频生成、进度查询、视频下载的对话与操作模板。 - 明确常见错误码及对应用户提示,提升容错与交互体验。 - 详细补充 API Key 存储、权限和安全管理规范。
v1.0.1
- 修正技能名称为 "hilight-video-generate",统一文档描述和目录结构。 - 更新 MCP 服务名和 API Key 存储路径,确保与实际安装路径一致。 - install.sh/uninstall.sh 脚本同步修正服务名,防止配置和服务注册冲突。 - 文档中所有样例与指令已对应新版技能名与路径,避免用户混淆。
v1.0.0
Hilight Video Generator Skill 1.0.0 – Initial Release - Provides e-commerce video generation by integrating with a remote API via MCP (mcporter). - Supports creating marketing short videos, querying task progress, and downloading generated videos. - Strict guidelines for API key security—never expose or log API keys. - Step-by-step instructions for setup, error handling, and user prompts to guide workflow. - Includes templates for user feedback and detailed troubleshooting for common issues.
Metadata
Slug hilight-video-generate
Version 1.0.2
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 3
Frequently Asked Questions

What is Hilight Video Generate?

电商视频生成技能。通过 MCP(mcporter)调用远程视频生成 API, 自动为用户生成营销短视频。支持任务创建、进度查询、视频下载。 It is an AI Agent Skill for Claude Code / OpenClaw, with 315 downloads so far.

How do I install Hilight Video Generate?

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

Is Hilight Video Generate free?

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

Which platforms does Hilight Video Generate support?

Hilight Video Generate is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Hilight Video Generate?

It is built and maintained by lu200852 (@lu200852); the current version is v1.0.2.

💬 Comments