Agent skill

Video Generate

by huangruiteng in huangruiteng/CS-Notes

使用 videogenerate.py 脚本生成视频,需要提供文件名和 prompt,可选提供首帧图片(URL或本地路径)。

MITAuto-check passed

Install Video Generate

skills CLI
$ npx skills add huangruiteng/CS-Notes --skill video-generate -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install huangruiteng/CS-Notes video-generate --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/huangruiteng/CS-Notes.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.trae/openclaw-skills/video-generate .claude/skills/video-generate && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
video-generate
GitHub stars
4k
Token cost
~237 tokens
SKILL.md length
51 words
Files
2 (incl. scripts)
Skills in repo
39
Repo updated
First seen
Licence
MIT

At a glance

使用 videogenerate.py 脚本生成视频,需要提供文件名和 prompt,可选提供首帧图片(URL或本地路径)。

  • Works in 4 steps: 准备目标文件名(如 output.mp4)和清晰具体的 prompt。 → (可选) 准备首帧图片,可以是 HTTP… → 运行脚本 python scripts/video_generate.py ""… → …
  • SKILL.md covers 适用场景, 使用步骤, 认证与凭据来源 and 输出格式, plus 1 more section
  • Runs Python scripts from its folder; calls python; needs MODEL_VIDEO_API_KEY and ARK_API_KEY

What it does

Video Generate is an agent skill from huangruiteng/CS-Notes. 使用 videogenerate.py 脚本生成视频,需要提供文件名和 prompt,可选提供首帧图片(URL或本地路径)。

Its SKILL.md is about 240 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/video_generate.py`).

The licence is MIT.

Example prompts

  • “/video-generate”

Requirements

  • Python 3
  • A credential in MODEL_VIDEO_API_KEY
  • A credential in ARK_API_KEY

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. 准备目标文件名(如 output.mp4)和清晰具体的 prompt。
  2. (可选) 准备首帧图片,可以是 HTTP URL,也可以是本地文件路径(脚本会自动转为 Base64)。
  3. 运行脚本 python scripts/video_generate.py "" [first_frame]。运行之前cd到对应的目录。
  4. 脚本将输出视频的 TOS URL 并自动下载到指定文件。

What it can do on your machine

Read from SKILL.md and the folder at commit f7b4e92. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • MODEL_VIDEO_API_KEY
    • ARK_API_KEY
    • VOLCENGINE_ACCESS_KEY
    • VOLCENGINE_SECRET_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Video Generate loads about 237 tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 51 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~20
When it runs · the whole SKILL.md, loaded when a task matches
~237

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from huangruiteng/CS-Notes at commit f7b4e92, republished under its MIT licence (© huangruiteng). 51 words, ~237 tokens.

Download SKILL.mdSave it as .claude/skills/video-generate/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
video-generate
description
使用 video_generate.py 脚本生成视频,需要提供文件名和 prompt,可选提供首帧图片(URL或本地路径)。

Video Generate

适用场景

当需要根据文本描述生成视频时,使用该技能。支持通过首帧图片控制视频起始画面,首帧可以是 URL 或本地文件路径。

使用步骤

  1. 准备目标文件名(如 output.mp4)和清晰具体的 prompt。
  2. (可选) 准备首帧图片,可以是 HTTP URL,也可以是本地文件路径(脚本会自动转为 Base64)。
  3. 运行脚本 python scripts/video_generate.py <filename> "<prompt>" [first_frame]。运行之前cd到对应的目录。
  4. 脚本将输出视频的 TOS URL 并自动下载到指定文件。

认证与凭据来源

  • 优先读取 MODEL_VIDEO_API_KEY 或 ARK_API_KEY 环境变量。
  • 若未配置,将尝试使用 VOLCENGINE_ACCESS_KEY 与 VOLCENGINE_SECRET_KEY 获取 Ark API Key。

输出格式

  • 控制台输出生成的视频 URL。
  • 视频文件将被下载到指定路径。

示例

纯文本生成:

bash
python scripts/video_generate.py "cat.mp4" "一只可爱的猫"

带首帧图片生成(URL):

bash
python scripts/video_generate.py "dog_run.mp4" "一只小狗在草地上奔跑" "https://example.com/dog_start.png"

带首帧图片生成(本地文件):

bash
python scripts/video_generate.py "my_video.mp4" "图片中的人物动起来" "/path/to/local/image.jpg"

© huangruiteng, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in .trae/openclaw-skills/video-generate of huangruiteng/CS-Notes.

  • SKILL.md
  • scripts/video_generate.py

Open the folder on GitHubat commit f7b4e92

More from huangruiteng/CS-Notes

All 39 skills in this repo
  • CLI Creator

    huangruiteng/CS-Notes

    Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script.

    4k GitHub starsUsed in 2 repos~2.7k tokens
    Auto-check passed
  • Codex Thread Heartbeat

    huangruiteng/CS-Notes

    Inspect and manage guarded Codex App-native or launchd heartbeats for Codex main control threads.

    4k GitHub stars~1.5k tokensUpdated 2 days ago
    Auto-check passed
  • Slack

    huangruiteng/CS-Notes

    A skill your agent uses when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.

    4k GitHub starsUsed in 10 repos~578 tokens
    Auto-check passed
  • Codex Thread Reader

    huangruiteng/CS-Notes

    Locate and read a Codex thread by a codex thread link, thread id, or rollout path across all local CODEXHOME directories (~/.codex, ~/.codex-gpt, ...).

    4k GitHub stars~1.4k tokensUpdated 2 days ago
    Auto-check passed
  • Research Material Scout

    huangruiteng/CS-Notes

    A skill your agent uses when the user asks Codex to research, find learning materials, process "素材:" links, "请你读" / "精读" a material, build a material radar, or use SenSight-like broad information…

    4k GitHub stars~8.3k tokensUpdated 2 days ago
    Auto-check passed
  • GitHub

    huangruiteng/CS-Notes

    Interact with GitHub using the gh CLI. An agent skill from huangruiteng/CS-Notes.

    4k GitHub starsUsed in 27 repos~279 tokens
    Auto-check passed

Questions about Video Generate

What does Video Generate do?

使用 videogenerate.py 脚本生成视频,需要提供文件名和 prompt,可选提供首帧图片(URL或本地路径)。. Video Generate is an agent skill from huangruiteng/CS-Notes.

How do I install Video Generate in Claude Code?

Run `npx skills add huangruiteng/CS-Notes --skill video-generate -a claude-code`. Or copy the skill folder (.trae/openclaw-skills/video-generate in huangruiteng/CS-Notes) into .claude/skills/video-generate in your project. Claude Code loads it when a task matches its description.

How do I install Video Generate in Codex?

Run `npx skills add huangruiteng/CS-Notes --skill video-generate -a codex`. Or copy the skill folder (.trae/openclaw-skills/video-generate in huangruiteng/CS-Notes) into .agents/skills/video-generate in your project. Codex loads it when a task matches its description.

Can I use Video Generate in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add huangruiteng/CS-Notes --skill video-generate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/video-generate, .gemini/skills/video-generate, .github/skills/video-generate and .opencode/skills/video-generate in your project.

What does Video Generate need to run?

Going by SKILL.md and its folder, Video Generate needs Python for the scripts in its folder, the command-line tools its instructions call (python) and credentials named MODEL_VIDEO_API_KEY, ARK_API_KEY, VOLCENGINE_ACCESS_KEY and VOLCENGINE_SECRET_KEY. Our summary lists: Python 3; A credential in MODEL_VIDEO_API_KEY; A credential in ARK_API_KEY.

Does Video Generate access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Video Generate safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Video Generate use?

Video Generate is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Video Generate use?

About 237 tokens (SKILL.md is roughly 948 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

Who maintains Video Generate?

huangruiteng (a GitHub user) maintains it in huangruiteng/CS-Notes, which has 4,001 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on October 8, 2026.

Source: huangruiteng/CS-Notes on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.