generate-video

generate-video is a command for Claude Code from Comfy-Org/comfy-skills. It costs 12 tokens per session (2,261 once invoked), scanned A, original, MIT.

A command for generating, editing, or extending videos through Comfy Cloud, an online service for running ComfyUI workflows.

In plain words
What is it for?
Use it for text-based video creation, video editing, and extending existing video content when the required Comfy Cloud model or workflow is available.
Why use it?
It gives the agent a defined way to turn a description or existing media into a video without requiring the user to assemble the workflow manually.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the comfy-cloud plugin — 12 commands shipped together

Good fit Use it for text-based video creation, video editing, and extending existing video content when the required Comfy Cloud model or workflow is available.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/comfy-org/comfy-skills/generate-video
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Comfy-Org/comfy-skills

Made for: Claude Code.

Or install comfy-cloud, the plugin that ships this one along with the rest of its 12 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for generate-video

README.md
[![agentmods](https://agentmods.dev/badge/commands/comfy-org/comfy-skills/generate-video/github.svg)](https://agentmods.dev/commands/comfy-org/comfy-skills/generate-video)
Your own site
<a href="https://agentmods.dev/commands/comfy-org/comfy-skills/generate-video"><img src="https://agentmods.dev/badge/commands/comfy-org/comfy-skills/generate-video/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for generate-video

Your own site · 80×15
<a href="https://agentmods.dev/commands/comfy-org/comfy-skills/generate-video"><img src="https://agentmods.dev/badge/commands/comfy-org/comfy-skills/generate-video.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,261 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.02261
Opus 5 $0.00006 $0.01130
Sonnet 5 $0.00002 $0.00452
Haiku 4.5 $0.00001 $0.00226

Measured 9d ago against content hash b1e776db0af5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

generate-video scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude-code/commands/generate-video.md · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generate, edit, or extend a video using Comfy Cloud based on the user's description: $ARGUMENTS

Follow these steps exactly:

Step 0 — Route the named model family. If the user named a provider, model, or capability (e.g. "Kling", "Veo", "Sora", "Runway", "MiniMax"), check both routes before doing anything else: one search_nodes lookup with the named term (for the partner/API node), and one search_templates lookup with the family name (for an OSS template). Some families — MiniMax H3 is a current example — ship as BOTH OSS weights and a paid partner node under the same display title; others exist only as a partner node. Tell them apart by internal name (an OSS template/node uses a plain prefix like video_*; a partner/API node uses api_* and lives under a partner/ category) and, where the search results expose it, row tags.

  • Family exists only as partner/API (no matching OSS template, node category starts with partner/): route directly. Try partner_generate first — see its tool description for the currently-wired model ids. Pass type: "video" plus the partner's model slug, prompt, and any optional fields (aspect_ratio/seed/duration/medias[]). On success, return the artifact URL(s) and stop — do NOT continue with the workflow steps below. If partner_generate returns "unknown model" or "not yet implemented", continue to Step 1.
  • Family exists as both OSS and partner/API: do NOT auto-route to the paid path. Tell the user both options exist — OSS (no partner/API fee, but running it still spends ordinary Comfy Cloud compute credits, and it's typically slower; it's only actually free of charge when the user runs it themselves on their own local ComfyUI install) vs. paid partner/API (fast, no local hardware concern, costs the partner's per-run price on top of compute) — and ask which they want, unless they already said which one (e.g. "the free version", "local", "OSS", or named a paid partner product explicitly) or one route is genuinely infeasible right now. Once the route is chosen: partner/API continues as in the bullet above; OSS continues to Step 1 using the matching template.

Never tell a user the OSS route doesn't exist for a family that has one — that's a wrong answer, not a cautious one.

  1. Use search_templates with relevant queries like "text to video", "image to video", or "video generation" to find a pre-built video workflow template. Filter by tag "video" if the text search returns too many image results. If a good template exists, use it as the base workflow instead of building from scratch.

  2. If no suitable template was found, use search_models to find an appropriate video model. Common video models include: LTX-Video, Wan Video, HunyuanVideo, AnimateDiff, CogVideoX. Pick the best match based on the user's description.

  3. If the user provides an input image (for image-to-video), use upload_file to upload it first. Use the returned filename in a LoadImage node.

  4. Build a ComfyUI API-format workflow JSON with the appropriate video nodes. Video workflows typically use specialized loader nodes (e.g. LTXVLoader, WanVideoModelLoader), video-specific samplers, and video output nodes (e.g. VHS_VideoCombine). If using a template, modify the prompt and settings as needed.

  5. Validate the workflow has inputs and outputs before submitting. Confirm the JSON contains:

    • At least one input node the user's intent flows through (CLIPTextEncode for the prompt, LoadImage for image-to-video, etc.).
    • At least one output/save node wired to the final video tensor (e.g. VHS_VideoCombine, SaveAnimatedWEBP, SaveVideo, or the partner node's own save output).

    API-backed partner nodes (Kling, Nano Banana, Gemini, Veo, etc.) often produce a video tensor but do not include a save node by default — you must add one and wire it to their output. Without it the job runs successfully but produces nothing retrievable, wasting compute. Do not skip this check.

  6. Call submit_workflow with the workflow JSON. Note: video generation typically takes longer than image generation (30s-2min+).

Read the full file on GitHub · 62 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 62 lines · 12 tokens per session scan A b1e776db0af5

Subscribe to this mod's changes

generate-video is a command published in the GitHub repository Comfy-Org/comfy-skills (190 stars, last pushed 4d ago), licensed MIT. It adds 12 tokens to every session and 2,261 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.