Generate a short video from a text description through wan2.7-t2v on JieKou.AI and save it as a file. Use when the user asks you to create a video. Each run is billed by the second and cannot be cancelled: confirm with the user first.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Video Generation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/maimorylab-video-generation)
---
name: bootagent-video-generation
description: "Generate a short video from a text description through wan2.7-t2v on JieKou.AI and save it as a file. Use when the user asks you to create a video. Each run is billed by the second and cannot be cancelled: confirm with the user first."
---
# Video generation
Generated by BootAgent. It calls `wan2.7-t2v` on the user's JieKou.AI account. BootAgent rewrites this Skill when the model or Provider changes, so do not edit it.
## When to use
When the user asks you to create a short video clip from a description. Video is the most expensive thing this Skill can do; read the rules below first.
## Command
Run the script from the user's working directory, using the absolute path to this Skill:
```bash
node <this Skill's directory>/scripts/run.mjs video --prompt "<description>" [--duration <seconds>] [--size <W*H>] [--negative-prompt "<text>"] [--out <directory>]
```
- `--prompt`: a full description of the video: subject, motion, camera, mood.
- `--duration`: length in seconds. Billed by the second; ask the user before going above the default of 5.
- `--size`: resolution as width*height, for example `1280*720` or `1920*1080`. Larger costs more.
- `--negative-prompt`: what must not appear.
- `--out`: directory for the file. Default `~/.bootagent/output`, outside the Skill directory.
- `--timeout`: seconds to wait for the result. Default 600.
The script submits the task, prints `task: <id>` to stderr, waits for it, downloads the video before the Provider's link expires, and prints the saved file path to stdout. If it times out (exit code 7), the task may still finish: fetch it later with
```bash
node <this Skill's directory>/scripts/run.mjs video-result --task <id> [--out <directory>]
```
instead of submitting the same prompt again.
## Rules
- Every run costs money, billed by the second of video, and a submitted run cannot be cancelled. Before each run, tell the user the prompt, the duration and the resolution or aspect ratio you will use, and wait for them to agree. Never retry a failed or timed-out run on your own: a timed-out run may still finish and be billed.
- Never print, echo or log environment variables, `~/.bootagent/skill-env/jiekou.env`, or anything that could reveal the API key. The script reads the key itself; you never need it.
- Only send files the user asked about. They go to the user's own Provider and nowhere else.
## Exit codes
| Code | Meaning | What to tell the user |
| --- | --- | --- |
| 0 | Success | Report the result. |
| 2 | Bad arguments or input file | Fix the command, or ask the user for the right file. |
| 3 | Setup problem: Node.js older than 18, or no API key found | Ask the user to restart the Agent so it picks up `BOOTAGENT_JIEKOU_API_KEY`, or to reinstall this Skill from BootAgent. |
| 4 | The Provider refused the request | Show the Provider's message. The model may not support this input; the user can choose another model in BootAgent. |
| 5 | The Provider rejected the API key | Ask the user to check the JieKou.AI key in BootAgent. |
| 6 | The Provider was unreachable, busy or timed out | Suggest trying again later. |
| 7 | The task was submitted but had not finished in time | Tell the user it may still finish and be billed; offer to fetch it with `video-result` instead of submitting again. |
`node <this Skill's directory>/scripts/run.mjs check` confirms the key is available without sending a request.