agentleFS
feifeibearfeifeibear/SeeReel/.agents/skills/seereel-cli/SKILL.md

seereel-cli

Skill16 starsChanged 6 months agoMITView on GitHub

Use when a user asks an AI agent to operate SeeReel through seereelcli, seereel.studio, CLI workflow creation, node control, TOS publish, render polling, repair, download, handoff, or stitch commands.

  • Reads credentials
  • Installs packages

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. About 0 are common, 12 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill when the user wants an AI agent to operate SeeReel through the local CLI instead of manually clicking the web UI.

    line 8
  2. Distinctive:

    Do not invent, request from hidden memory, scrape, or expose API keys.

    line 23
  3. Very specific:

    Prefer the route the human explicitly configured.

    line 26
  4. Distinctive:

    Default Agent Plan setup:

    line 28
  5. Distinctive:

    Create an Agent Plan API key in Ark.

    line 31
  6. Distinctive:

    If the npm package is published:

    line 54
  7. Very specific:

    Default base URL is https://seereel.studio.

    line 81
  8. Distinctive:

    If the deployment requires a shared access token:

    line 87
  9. Distinctive:

    Default: create a visible workflow, then stop for human review.

    line 101
  10. Distinctive:

    Only continue after the human confirms Agent Plan is configured and the workflow is acceptable.

    line 122
  11. Distinctive:

    If the human explicitly asks for full automation:

    line 129
  12. Distinctive:

    Do not use local ffmpeg splitting or local recovered MP4 imports for cloud-only intermediates.

    line 153
  13. Very specific:

    Use --stitch-partial only when the human accepts a shorter cut made from ready shots:

    line 157
  14. Distinctive:

    Update a video node prompt:

    line 190
  15. Very specific:

    Use --publish-tos when the tailframe will be used as a Seedance reference.

    line 213
  16. Distinctive:

    Prefer CLI/API over browser automation.

    line 240
  17. Very specific:

    Always use --json when you need to parse results.

    line 241
  18. Very specific:

    Use --jsonl or --progress for long render/stitch runs so the agent can observe progress without polling /api/state in another shell.

    line 242
  19. Distinctive:

    Do not call paid generation before Agent Plan is configured and the human has approved continuing.

    line 245
  20. Very specific:

    Keep local scratch media out of the final story.

    line 246

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SeeReel CLI

Use this skill when the user wants an AI agent to operate SeeReel through the local CLI instead of manually clicking the web UI.

SeeReel has two surfaces:

  • Web app: human review and takeover surface.
  • CLI/API: agent operation surface. Everything important must remain visible in the web app.

Boundary

Boundary: transport and node operations only. This skill owns local/published CLI installation, configuration, handoff, status inspection, node patching, TOS publish, render/poll, download, and stitch commands.

It does not decide the script, casting, production design, camera grammar, storyboard sequence, or final consistency verdict. Use seereel-script-chat, seereel-casting-assets, seereel-cinematography, and seereel-canvas-review for those creative stages, then use the CLI to persist and operate their outputs.

Human Credential Boundary

Do not invent, request from hidden memory, scrape, or expose API keys.

For real generation, the human can use the default Agent Plan setup, a BytePlus standard Ark API key, or a Volcengine CN standard Ark API key. Prefer the route the human explicitly configured; when all three are configured, Seedance uses BP > CN > Agent Plan.

Default Agent Plan setup:

  1. Open/pay for Volcengine Agent Plan.
  2. Create an Agent Plan API key in Ark.
  3. Paste it into the SeeReel web top-bar API Keys control under Agent Plan settings for browser/manual work.
  4. For CLI automation, run:
seereelcli configure --base-url https://seereel.studio --agent-plan-token "<human-pastes-key-here>"

or set SEEREEL_AGENT_PLAN_TOKEN / ARK_AGENT_PLAN_KEY in the AI runtime environment.

Standard API key setup:

seereelcli configure --base-url https://seereel.studio --api-key "<BP_ARK_API_KEY>" --api-key-route byteplus
seereelcli configure --base-url https://seereel.studio --api-key "<CN_ARK_API_KEY>" --api-key-route volcengine-cn

or set BP_ARK_API_KEY / BP_SEEDANCE_API_KEY for BytePlus, CN_ARK_API_KEY / CN_SEEDANCE_API_KEY for CN, or ARK_AGENT_PLAN_KEY for Agent Plan in the AI runtime environment.

Browser credentials and CLI credentials are cookie-scoped separately on online deployments. Treat that isolation as intentional. For online base URLs, a raw webUrl belongs to the CLI cookie scope; return handoffUrl when a human needs to open and continue editing the AI-created workflow in a normal browser. For localhost, 127.0.0.1, or ::1, return the explicit webUrl directly; local CLI-created sessions automatically appear in the browser session list across cookie identities and do not need an encrypted handoff token.

Install

If the npm package is published:

npm install -g seereelcli
seereelcli skill install --agent all

The npm package bundles this skill. seereelcli skill install --agent all copies it into local Codex, Claude, Cursor, and generic .agents skill folders. seereelcli skill print prints the bundled SKILL.md when an agent needs to read or mirror it manually.

Current repo-local install:

git clone https://github.com/feifeibear/seereel-agent.git
cd seereel-agent
npm install
npm install -g ./packages/seereel-cli
seereelcli --help

From repo root without global install:

npm run cli -- --help

Configure

Default base URL is https://seereel.studio.

seereelcli configure --base-url https://seereel.studio

If the deployment requires a shared access token:

seereelcli configure --access-token "$SEEREEL_ACCESS_TOKEN"

For local development:

seereelcli configure --base-url http://localhost:5173

Review-First Default Flow

Default: create a visible workflow, then stop for human review.

seereelcli workflow "一个失眠导演在午夜便利店遇见未来的自己" \
  --duration 60 \
  --style "neo-noir, rain reflections, grounded sci-fi" \
  --json

For online deployments, return the one-time handoffUrl to the user, not the raw webUrl. It should look like:

https://seereel.studio/api/handoff/xxxxxxxx

Tell the human the handoff link transfers the session from the CLI cookie identity to their current browser identity, then they can edit script, shot prompts, assets, duration, references, and generation choices in the web UI. After a handoff is claimed, keep using the browser/web UI as source of truth unless the human asks you to continue from a CLI-owned session.

For local development base URLs such as http://localhost:5173, return the webUrl directly. The browser can see CLI-created local sessions in /api/state and the session list automatically, so do not require or create an encrypted handoff token for ordinary localhost review.

Full Video Flow

Only continue after the human confirms Agent Plan is configured and the workflow is acceptable.

seereelcli status --session latest --deep --json
seereelcli render --session latest --stitch --progress --json

If the human explicitly asks for full automation:

seereelcli workflow "用户的视频创意" --duration 60 --render --stitch --jsonl

For cloud-only production runs where local files are only user-provided inputs and all generated intermediates must live in the SeeReel session:

seereelcli workflow "用户的视频创意" \
  --cloud-only \
  --reference-image ./route.png \
  --duration 30 \
  --render \
  --stitch \
  --output ./final.mp4 \
  --jsonl

--cloud-only uploads --reference-image as an input asset, generates server-side storyboard assets before Seedance render, stitches through SeeReel, returns the correct review link for the base URL (explicit local webUrl, online handoffUrl), and downloads only the final cloud artifact to --output. Do not use local ffmpeg splitting or local recovered MP4 imports for cloud-only intermediates.

Report the final downloadUrl. If a shot fails, report the shot id and failure; do not silently skip it. Use --stitch-partial only when the human accepts a shorter cut made from ready shots:

seereelcli render --session latest --stitch --stitch-partial --progress --json

For policy failures or stuck renders, use the recovery loop before asking the human to intervene:

seereelcli status --session latest --deep --json
seereelcli node poll --id shot_xxxxxxxx --json
seereelcli node update-prompt --id shot_xxxxxxxx --prompt "safer Seedance prompt" --duration 8 --json
seereelcli render --session latest --repair-policy safe-retry --max-attempts 2 --stitch-partial --progress --json

--jsonl emits agent-readable progress events such as session_created, shot_submitted, task_id, poll_status, retrying, and stitch_ready.

Download the final video through the CLI instead of writing a private fetch script:

seereelcli download --session latest --output ./final.mp4

Node Operations

Inspect one node:

seereelcli node get --id shot_xxxxxxxx --json
seereelcli node get --id asset_xxxxxxxx --json
seereelcli node get --id ses_xxxxxxxx --json

Update a video node prompt:

seereelcli node update-prompt --id shot_xxxxxxxx \
  --prompt "新的 Seedance 视频 prompt,保留角色服装和场景连续性" \
  --title "03 重新追上自己" \
  --duration 15 \
  --json

Generate or poll one video node:

seereelcli node generate --id shot_xxxxxxxx --wait --json
seereelcli node poll --id shot_xxxxxxxx --json

Generate a rendered shot tailframe:

seereelcli node tailframe --id shot_xxxxxxxx --publish-tos --canvas-node --json

Use --publish-tos when the tailframe will be used as a Seedance reference. Seedance cannot fetch local /media/... URLs.

Open VLM review and repair:

seereelcli node review --id shot_xxxxxxxx --frame-count 8 --json
seereelcli node repair --id shot_xxxxxxxx --json
seereelcli final-review --session latest --json
seereelcli final-review --session latest --repair --json

Operate asset nodes:

seereelcli node update-prompt --id asset_xxxxxxxx --prompt "角色参考图 prompt" --json
seereelcli node generate --id asset_xxxxxxxx --model seedream-5-lite --json
seereelcli node review --id asset_xxxxxxxx --json

Publish storyboard references to TOS:

seereelcli publish-storyboards --session latest --json

Rules

  • Prefer CLI/API over browser automation.
  • Always use --json when you need to parse results.
  • Use --jsonl or --progress for long render/stitch runs so the agent can observe progress without polling /api/state in another shell.
  • Refresh status before continuing after a human web edit.
  • Browser credentials and CLI credentials are cookie-scoped separately on online deployments. Raw online webUrl may not be visible in a bare browser; use seereelcli handoff --session latest --json and return the one-time handoffUrl for human takeover. On localhost, return the explicit webUrl directly; local CLI sessions appear in the browser session list automatically and do not require an encrypted handoff token.
  • Do not call paid generation before Agent Plan is configured and the human has approved continuing.
  • Keep local scratch media out of the final story; SeeReel web state is the source of truth.
  • For Seedance references, only remote http(s) URLs are valid. Publish local references to TOS first.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.