comfyui-workflow
Skill4 starsChanged 3 months agoApache-2.0View on GitHub
Select, preserve, inspect, validate, patch, convert, and promote complete ComfyUI workflows from Story-Film's extension-local comfyui_workflows library.
In this repository139 other files it gives its agents.
- 3d-animation-short-generatorSkill
- ace-step-xlSkill
- adapt-screenplaySkill
- asset-approvalSkill
- audience-simSkill
- audio-masterSkill
- batch-recoverySkill
- beat-sheetSkill
- book-planSkill
- brand-promo-video-generatorSkill
- campaign-brandSkill
- campaign-deliverySkill
- character-bibleSkill
- character-simSkill
- comfyui-api-v2Skill
- comfyui-assetsSkill
- comfyui-binding-auditSkill
- comfyui-cliSkill
- comfyui-discoverSkill
- comfyui-handoffSkill
- comfyui-mcpSkill
- comfyui-offline-batchSkill
- comfyui-runSkill
- comfyuiSkill
- comfyui-troubleshootSkill
- content-repurposeSkill
- context-shardsSkill
- continuity-checkSkill
- co-op-game-intro-generatorSkill
- creative-pressure-testSkill
- creative-production-specSkill
- crew-reviewSkill
- decision-tree-interviewSkill
- delivery-qcSkill
- design-systemSkill
- dialogue-audio-authoritySkill
- dialogue-timing-preflightSkill
- dialogue-voiceSkill
- director-bookSkill
- documented-creative-discoverySkill
- edit-assistSkill
- editorial-packageSkill
- editorial-reconciliationSkill
- editor-project-exportSkill
- edit-planSkill
- evidence-researchSkill
- ffmpegSkill
- film-completenessSkill
- film-masterSkill
- generation-budgetSkill
- generation-model-setupSkill
- generation-packSkill
- generation-workflow-setupSkill
- guided-production-wizardSkill
- h3-prompt-writingSkill
- handdrawn-live-video-generatorSkill
- imagemagickSkill
- kdenlive-exportSkill
- krea-2Skill
- llm-model-lifecycleSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 8 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Do not ask the user to rebuild its model stack through separate adapter/checkpoint/VAE/text-encoder/LoRA questions.
- Distinctive: line 28
Before constructing a new graph:
- Distinctive: line 42
Start from the exact selected project-owned source.
- Very specific: line 46
When a live server is available, validate every required class and input against /object_info.
- Distinctive: line 47
Verify the concrete model/resource names already stored in the workflow against the active server and node dropdowns where applicable.
- Distinctive: line 50
Run workflow-family contract validation when a contract applies.
- Distinctive: line 55
If finalization reports a graph error, repair only the selected project-owned copy and retry.
- Very specific: line 72
use story_comfy live node/model discovery (node-search, node-info, model inventory/search, and other approved live-schema operations) to …
- Distinctive: line 74
use only live-discovered class names, inputs, output types, and resource choices.
- Distinctive: line 76
do not install missing custom nodes or download models without the user's separate approval.
- Very specific: line 78
when the workflow is intended to become a reusable Story-Film choice, save or copy the validated JSON into …
- Very specific: line 80
Do not require a generate-new catalog entry before honoring an explicit user request to author a workflow.
- Distinctive: line 88
If a selected workflow names unavailable resources, report the blocker.
- Very specific: line 114
When mapping comfyui_handoff.json, process one shot or cue at a time.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
ComfyUI Workflow
Read
../../references/WORKFLOW_SELECTION.md../../references/COMFYUI_WORKFLOWS.md../../references/COMFYUI_NATIVE_API.md../../references/COMFYUI_SECURITY.md../../references/COMFYUI_BOUNDED_WORKFLOW.md../../references/COMFYUI_WORKFLOW_CONTRACTS.md../../references/REFERENCE_AUTHORITY.md../../references/DIALOGUE_AUDIO_AUTHORITY.md
Workflow-first rule
A complete selected workflow is the generation configuration.
Do not ask the user to rebuild its model stack through separate adapter/checkpoint/VAE/text-encoder/LoRA questions. Do not let legacy model_preferences.json override the selected workflow.
Before constructing a new graph:
- read
generation-workflow-setup; - build the relevant numbered workflow catalog with
scripts/workflow_catalog.py; - let the user choose by number;
- record the selection;
- materialize a project-owned copy.
Bundled workflow sources are under ../../comfyui_workflows/<task>/<model>/. They are actual editable workflows, not sanitized blueprints.
Bounded production workflow path
For ordinary Story-Film production recovery or workflow creation, use the Pi-native story_comfy_workflow tool when available after a workflow has been selected/materialized.
- Start from the exact selected project-owned source.
- Preserve that source. Never edit the bundled or package-custom extension original in place.
- Identify UI versus API format.
- Inspect the graph and required node classes.
- When a live server is available, validate every required class and input against
/object_info. - Verify the concrete model/resource names already stored in the workflow against the active server and node dropdowns where applicable.
- Stage current project inputs and references.
- Patch only named production values that the selected graph actually exposes: approved prompts, project input identities, output prefixes/IDs, requested dimensions, seeds, durations, or other explicit production parameters.
- Run workflow-family contract validation when a contract applies.
- For reference-driven graphs, write/audit
04_generation/comfyui/reference_bindings.jsonlso prompt ordinals, graph inputs,REF-###/MEDIA-###, staged paths, and hashes agree. - Confirm the requested result reaches a live output node or documented retrievable output path.
- Promote only a live-validated runnable API graph into
04_generation/comfyui/workflows/.
If finalization reports a graph error, repair only the selected project-owned copy and retry. Do not replace it wholesale with a guessed model-family graph.
Source discovery
The numbered workflow catalog can contain only:
- Story-Film built-ins under
comfyui_workflows/<task>/<model>/; - user/custom workflows under
comfyui_workflows/custom/<task>/<model>/.
There is no four-choice limit. Story-Film never scans ComfyUI userdata, project workflow folders, arbitrary external paths, or template catalogs. A newly authored/exported workflow becomes selectable only after it is copied into the appropriate comfyui_workflows/custom/ directory.
Explicit workflow authoring
Workflow creation remains a supported Story-Film capability when the user explicitly asks to create, build, author, or design a new ComfyUI workflow.
This explicit authoring path is separate from catalog discovery:
- use
story_comfylive node/model discovery (node-search,node-info, model inventory/search, and other approved live-schema operations) to learn what the running ComfyUI actually supports; - build exactly one bounded candidate in a project staging/candidate location, never directly in the runnable workflow directory;
- use only live-discovered class names, inputs, output types, and resource choices;
- validate required inputs, links, output exposure, and model/resource availability;
- do not install missing custom nodes or download models without the user's separate approval;
- promote a project-specific candidate only after validation;
- when the workflow is intended to become a reusable Story-Film choice, save or copy the validated JSON into
comfyui_workflows/custom/<task>/<model>/, refresh the catalog, and select the resultingpackage-customworkflow normally.
Do not require a generate-new catalog entry before honoring an explicit user request to author a workflow. Conversely, do not silently author a new workflow merely because no existing catalog entry is ideal.
Model and prompt behavior
The selected workflow owns its concrete checkpoint, diffusion model, VAE, text encoders, LoRAs, audio models, upscalers, and node-specific model fields.
Prompt adapters remain allowed for prompt grammar. Infer the applicable prompt adapter from the selected workflow/model family when needed; do not ask for a second generation model selection.
If a selected workflow names unavailable resources, report the blocker. Do not silently swap to another model or workflow.
Bundled offline commands
python scripts/comfyui_workflow.py inspect WORKFLOW.json
python scripts/comfyui_workflow.py classes WORKFLOW.json
python scripts/comfyui_workflow.py patch WORKFLOW.json --node 12 --input text --value 'new prompt' --out patched.jsonWorkflow selection and materialization:
python scripts/workflow_catalog.py catalog PROJECT --category video --url http://127.0.0.1:8188
python scripts/workflow_catalog.py choose PROJECT 3
python scripts/workflow_catalog.py materialize PROJECT video --url http://127.0.0.1:8188Live validation:
python scripts/comfyui_control.py validate --workflow WORKFLOW.jsonStory-Film mapping
When mapping comfyui_handoff.json, process one shot or cue at a time. Map only named inputs that the selected live workflow actually exposes. Canon and approved prompts remain authoritative.
Done
The workflow choice is durable, the source is preserved, the project-owned copy is known, required node classes and resource names are explicit, requested edits are minimal, and the runnable API graph passes the available preflight checks.
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
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.

