artokun/comfyui-mcp/director
Claude Code and agent skill by artokun/comfyui-mcp
- community
Checking that the SKILL.md file is still in the repository.
Full production pipeline covering story to scenes, Z-Image start frames, Qwen Edit end frames, WAN FLF video clips, ffmpeg concatenation
Install
npx vskill@latest install artokun/comfyui-mcp/directorSKILL.md
The same SKILL.md was published earlier as artokun/comfyui-mcp/director.
Director — Story-to-Video Production Pipeline
Overview
The Director skill runs a complete short film production from a text story. It breaks the story into scenes, generates start/end frames for each, creates video clips from frame pairs, and concatenates everything into a final video.
The pipeline runs Story Planning → Z-Image Hero + Character Refs → Qwen Edit Chain (all frames) → WAN 2.2 FLF Video Clips → ffmpeg Concatenation.
Key architectural decisions:
- 1 hero frame + edit chain for character consistency (NEVER independent Z-Image per scene)
- Inter-scene frame continuity. Scene N's end frame IS Scene N+1's start frame (same image file, no edit gap)
- Character reference images fed into Qwen Edit's extra image slots
- State file persists to disk for context compaction survival
- Each scene is independently retryable without affecting others
clear_vrambetween every model family switch
CRITICAL: Inspect modes + verify every output
This pipeline drives the user's live canvas across many stages, so two habits are non-negotiable:
- Inspect node modes before each render. After loading any pack/template/subgraph and before
panel_run, check each node'smode(panel_graph_outlinemarks [bypass]/[mute];panel_query_graphdetail rows carry it). Abypassnode is skipped (passes input through); amutenode and everything downstream don't execute. If the path, branch, or switch you need is bypassed or muted, enable it withpanel_set_node_mode(set the wanted nodeactive, the unwanted onebypass/mute). Never assume a switch or route is already active. - Verify the output matches before moving on. Every Phase-N render is a gate. Look at the produced frame or clip (view it) and confirm it matches the intent BEFORE advancing or reporting progress. If it's wrong, diagnose (wrong prompt path? a bypassed/muted builder or switch? wrong widget? wrong ref image?), fix, and rerun. Do NOT declare a phase done or report progress you haven't verified.
- Confirm VIDEO renders via the filesystem, not /history. For a
VHS_VideoCombine/ LTX / WAN clip, do NOT rely onget_history/queue(action:"status") to confirm it exists. VHS-style video nodes write the .mp4 but frequently do NOT register an output in ComfyUI's/history(prompt shows done, empty outputs, no error). Confirm the file withget_image (action:"list_outputs")(now lists videos too, taggedkind: "video") byfilename_prefix+ fresh mtime, then chain it forward withupload_image (action:"stage"). - Bypass completed stages before queuing the next one. If you build the multi-stage pipeline on ONE canvas (e.g. Krea2 → LTX → WAN) rather than running each phase in isolation, once a stage has run and its output is captured/staged,
panel_set_node_mode(mode:"bypass")that stage's nodes BEFORE youpanel_runthe next stage. Otherwisepanel_runre-executes the whole graph and you pay for and wait on already-finished work, a real and costly failure mode. Keep only the active stage live; feed the prior output forward withupload_image (action:"stage")(bypass the producer, feed its captured output to the consumer's loader).
CRITICAL: Character Consistency
Independent Z-Image generations per scene produce different-looking characters. This was the #1 problem discovered during testing. The solution:
- Generate ONE hero frame with Z-Image. It establishes the main character, setting, and lighting
- Generate character reference images: close-up portraits of each character, key props, and the background
- Create ALL other scene frames via the Qwen Edit chain from the hero, with character refs in extra image slots
- This keeps the same face, clothing, and environment across every frame
8-Phase Pipeline
State File Format
Saved at ~/code/comfyui-mcp/workflows/director_state_{project_id}.json. Updated after every edit or phase completion.
Models Used Per Phase
| Phase | Model Family | Key Models | VRAM | |
|---|---|---|---|---|
| 2: Hero + Refs | Z-Image | redcraftRedzimageUpdatedJAN30_redzibDX1.safetensors | ~17GB | |
| 4: Edit Chain | Qwen Edit | qwen_image_edit_2511_bf16.safetensors + Lightning LoRA | ~17-18GB | |
| 6: Video Clips | WAN 2.2 I2V | Remix NSFW Hi+Lo (built-in lightning) | ~22-24GB |
CRITICAL: clear_vram between every model family switch.
Phase 1: Story Planning
Break the story into 2 to 6 scenes. For each scene, identify:
- description: what happens (1 to 2 sentences)
- start frame: what the opening frame looks like
- end frame: what the closing frame looks like
- video_prompt: motion description for FLF transition
Identify a hero frame, the single most representative scene image that establishes the main character and setting. This hero will anchor all other frames via Qwen Edit.
Also identify which character reference images are needed (portraits of each character, key props, background).
CRITICAL: Inter-Scene Frame Continuity
The end frame of Scene N must be the EXACT same image file as the start frame of Scene N+1. Do NOT create separate Qwen-edited start frames for subsequent scenes. That causes visible jumps at scene boundaries when the videos are concatenated.
The frame chain for video generation:
Only Scene 1 needs a unique start frame. All other scenes inherit their start from the previous scene's end.
Edit Chain Planning
The edit chain produces only end frames (plus Scene 1's unique start frame). Map which end frame derives from which source:
- Some end frames edit directly from the hero
- Later end frames may chain from earlier end frames
- Keep chains shallow (max 4 to 5 deep) to minimize drift
Example chain:
Phase 2: Hero + Character References — Z-Image
Generate with Z-Image RedCraft DX1 (10 steps, CFG 1, euler/simple):
- Hero frame: the establishing shot with main character + key elements
- Character ref portraits: close-up of each character (man, woman, animal, etc.)
- Background ref: the setting without characters
Add to negative prompts for character refs to exclude wrong subjects (e.g., "woman, female" when generating man portrait).
Hero Frame Workflow Template
Queue hero + all refs while Z-Image checkpoint is loaded (same checkpoint, different prompts).
Phase 3: Hero Review
Show hero frame and all character refs. User approves or requests regeneration with new seed.
Phase 4: Edit Chain — Qwen Image Edit
CRITICAL: Consistency Rules for Edit Prompts
- Always explicitly anchor clothing. "The man wears his grey t-shirt" in EVERY prompt
- Always state what doesn't change. "Same bedroom, same warm lighting, same clothing"
- Use strong emotion words. "extremely shocked and startled" >> "surprised"
- Include proportionality. "Her head and body should be proportional and natural looking"
- Prevent head enlargement. In embrace/close-up poses, Qwen Edit tends to enlarge heads. Add an explicit "do not enlarge her head, keep the same small natural size as in the original image"
- Describe the transformation, not just the end state
Workflow Template (with Character Reference Slots)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugin/skills/director/SKILL.md
Popularity
- Repository stars
- 758
- Repository forks
- 127
- Repository npm downloads, 7 days
- 35,200
- 7-day trend score
- 57
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 30 Jul 2026, 3 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/artokun/comfyui-mcp/director)