director

director is a command for Claude Code from artokun/comfyui-mcp. It costs 16 tokens per session (1,837 once invoked), scanned A, original, MIT.

A command for turning a written story into a short video by dividing it into scenes and creating images and video clips for them. It can also resume an unfinished project from saved progress.

In plain words
What is it for?
Use it to create a short film from a story description or continue a previously started video project.
Why use it?
It organizes the multi-step process of planning scenes, generating their visual frames, making clips, and joining them into one video.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the comfy plugin — 42 skills, 11 commands, 4 agents, 2 hooks shipped together

Good fit Use it to create a short film from a story description or continue a previously started video project.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/artokun/comfyui-mcp/director
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/artokun/comfyui-mcp

Made for: Claude Code.

Or install comfy, the plugin that ships this one along with the rest of its 42 skills, 11 commands, 4 agents, 2 hooks.

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 director

README.md
[![agentmods](https://agentmods.dev/badge/commands/artokun/comfyui-mcp/director.svg)](https://agentmods.dev/commands/artokun/comfyui-mcp/director)
Your own site
<a href="https://agentmods.dev/commands/artokun/comfyui-mcp/director"><img src="https://agentmods.dev/badge/commands/artokun/comfyui-mcp/director.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,837 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.00016 $0.01837
Opus 5 $0.00008 $0.00919
Sonnet 5 $0.00003 $0.00367
Haiku 4.5 $0.00002 $0.00184

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

Security

Grade A, and why

director 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 8d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • director — 97% identical, 36 lines differ
plugin/commands/director.md · 135 lines

How it starts

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

/comfy-director — Story-to-Video Production Pipeline

The user wants to create a short film from a story description. This command chains three model families (Z-Image, Qwen Edit, WAN FLF) to generate start frames, end frames, and video clips for each scene, then concatenates them into a final video.

Requires the director, z-image-txt2img, qwen-image-edit, and wan-flf-video skills. Load them before executing.

Instructions

  1. Parse the arguments. The argument is: $ARGUMENTS

    • If the argument is resume or starts with resume, look for the most recent director_state_*.json file in ~/code/comfyui-mcp/workflows/ and resume from the saved phase. Skip to the Resumption section below.
    • If the argument is a story/description, proceed with a new project.
    • If no argument was provided, ask the user for their story.
  2. Create the state file. Generate a project ID from the current timestamp (e.g., story_20260216_143022). Initialize the state file at ~/code/comfyui-mcp/workflows/director_state_{project_id}.json with the story text and empty scenes array.

  3. Phase 1: Story Planning. Break the story into 2-6 scenes. For each scene, write:

    • description: What happens (1-2 sentences)
    • start_prompt: Detailed Z-Image prompt for the opening frame (natural language, descriptive, include camera/lighting/style cues)
    • edit_prompt: Qwen Edit instruction to transform the start frame into the end frame
    • video_prompt: WAN motion description (include motion verbs: "walks", "turns", "reaches", "camera pans")

    Anchor frame strategy: For each scene, decide if the start or end frame is the "anchor" (more complex composition). Generate the anchor first, edit to create the other.

    Present the scene plan to the user for approval before proceeding. Update the state file with scene definitions.

  4. Ask orientation. Ask the user if they prefer portrait (480x720 video, 832x1472 frames) or landscape (832x480 video, 1472x832 frames). Default to portrait for character-focused stories, landscape for environment/action stories.

Read the full file on GitHub · 135 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. 8d ago First seen · 135 lines · 16 tokens per session scan A 9263ad87cc16

Subscribe to this mod's changes

director is a command published in the GitHub repository artokun/comfyui-mcp (729 stars, last pushed 2d ago), licensed MIT. It adds 16 tokens to every session and 1,837 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.