Agent skill

Edit Comfy Workflow

by peteromallet in peteromallet/VibeComfy

Edit an existing VibeComfy or ComfyUI workflow, ready template, recipe, scratchpad, or target graph.

MITAuto-check passedAI & LLM Engineering

Install Edit Comfy Workflow

skills CLI
$ npx skills add peteromallet/VibeComfy --skill edit-comfy-workflow -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install peteromallet/VibeComfy edit-comfy-workflow --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/peteromallet/VibeComfy.git skills-src && mkdir -p .claude/skills && cp -r skills-src/docs/agent-skill/skills/edit-comfy-workflow .claude/skills/edit-comfy-workflow && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
edit-comfy-workflow
GitHub stars
150
Token cost
~2.2k tokens
SKILL.md length
986 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

Edit an existing VibeComfy or ComfyUI workflow, ready template, recipe, scratchpad, or target graph.

  • The user asks to tweak prompts/seeds/steps/resolution
  • SKILL.md covers Shared Edit Spine, Fast Path, Edit Shape and Validate, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Splice a pattern into a workflow

What it does

Edit Comfy Workflow is an agent skill from peteromallet/VibeComfy. Edit an existing VibeComfy or ComfyUI workflow, ready template, recipe, scratchpad, or target graph. Use when the user asks to tweak prompts/seeds/steps/resolution, alter nodes, splice a pattern into a workflow, convert JSON to editable Python, or make a graph change without necessarily running it.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Diffusion and image models. It works with Python and ComfyUI. The licence is MIT.

When your agent uses it

  • The user asks to tweak prompts/seeds/steps/resolution
  • Splice a pattern into a workflow
  • Convert JSON to editable Python
  • Make a graph change without necessarily running it

Example prompts

  • “/edit-comfy-workflow”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit b1429c6. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash and python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Edit Comfy Workflow loads about 2.2k tokens when it runs. Until then it costs about 80 tokens; SKILL.md has 986 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~80
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from peteromallet/VibeComfy at commit b1429c6, republished under its MIT licence (© peteromallet). 986 words, ~2,183 tokens.

Download SKILL.mdSave it as .claude/skills/edit-comfy-workflow/SKILL.md (or your agent's skills folder).
name
edit-comfy-workflow
description
Edit an existing VibeComfy or ComfyUI workflow, ready template, recipe, scratchpad, or target graph. Use when the user asks to tweak prompts/seeds/steps/resolution, alter nodes, splice a pattern into a workflow, convert JSON to editable Python, or make a graph change without necessarily running it.

Edit Comfy Workflow

Use this when the graph needs to change. Follow the same shape as the agentic tests: identify the target, inspect it, materialize an editable Python surface if needed, make the smallest graph change, then validate.

Shared Edit Spine

Use the same spine as the Comfy app agent edit path and the structural/live agentic tests:

text
target graph -> inspect/research -> Python editable surface -> VibeWorkflow edit -> finalize_metadata -> validate/doctor -> candidate or run

For package-side edits, the editable surface is a recipe, scratchpad, or ready template. For the Comfy app, the same idea returns a candidate UI graph plus apply eligibility. Do not treat an edit candidate as an executed result; execution belongs to run-comfy-workflow.

Fast Path

bash
vibecomfy inspect <target>
vibecomfy analyze info <target>

If the target is raw JSON, load it only as import evidence and materialize Python before editing:

bash
vibecomfy import <workflow.json>
vibecomfy inspect workflows/<source-stem> --json
vibecomfy edit workflows/<source-stem> targets
vibecomfy edit workflows/<source-stem> set sampler.steps 30
vibecomfy validate workflows/<source-stem> --json

The import folder contains editable workflow.py, its canonical workflow.vibe.json companion, and byte-identical source.json; provenance stays in the bundle metadata. Standalone import and edit are local and untracked by default. To record origin and accepted changes in Astrid, add --project <existing-project> to the standalone import and edit commands. For edits, put common options after the bundle and before the verb, for example vibecomfy edit workflows/my_workflow --project demo set sampler.steps 30. If you are already using Astrid, use its native media import followed by a vibecomfy.import task; Astrid supplies the project/task context, so the executor does not take VibeComfy's --project option. The workflow onboarding guide gives the Astrid-native task command and history path.

Loading a canonical bundle executes its workflow.py to build the graph, so inspection, typed editing, capture, and validation use VibeComfy's existing Python-consent gate. In a terminal, let the prompt ask before proceeding. For an unattended command, use the explicit vibecomfy --yes ... opt-in only when the user has authorized this source; --non-interactive otherwise refuses. An Astrid-native canonical-bundle task must include the explicit python_execution_consent: "confirmed" input. Do not infer that consent from task admission or from an authority_context value. Importing raw workflow JSON and inspecting a UI JSON graph do not execute workflow Python.

The edit command supports set, add, remove, connect, disconnect, mode, and batch. A batch file or standard input lets an agent submit a single ordered group of typed changes; later operations can refer to a node added earlier in that batch. A failed batch does not save partial changes. Use --dry-run to preview and --out <directory> to write a separate bundle. For simple direct changes, you can instead edit existing node arguments in workflow.py. If you use a recipe that loads the imported folder as a VibeWorkflow, common supported controls are set_prompt, set_seed, set_steps, and set_input; first check available fields with vibecomfy inspect <folder> --field <field>. For unfamiliar node parameters, use vibecomfy node <ClassType> --inputs and visible graph evidence. Validate and diagnose the artifact you edited: the imported folder for direct edits, or the separate recipe .py if you created a variation. Validating the source folder does not check a recipe that loads it.

After a direct Python edit, run vibecomfy edit <bundle> capture to publish the Python/companion pair and record the aggregate change. Add --project to track that capture in Astrid. Capture does not invent individual edit operations. A browser candidate and ComfyUI canvas Apply are not tracked automatically; use explicit project-bound capture to add an applied canvas to the Astrid history. Import, accepted edit, capture, validation, and execution are separate actions: validation checks the exact edited bundle but does not run generation.

Typed edits and UI capture regenerate Python from the canonical graph. If a captured Python file contains extra executable code that the graph cannot represent, VibeComfy refuses the rewrite and leaves all three bundle files unchanged. Continue editing Python and capture it, or restore canonical generated source before switching back to typed edits.

Use vibecomfy validate and vibecomfy doctor for preflight. Use vibecomfy templates create when intentionally promoting an imported, reviewed bundle to a ready template; import remains the single onboarding path.

If the target is a ready template and the edit is user-specific:

bash
vibecomfy copy-to-recipe <ready_id> --out recipes/<name>.py

Then edit the Python recipe, scratchpad, or template.

Show full SKILL.md (329 more words)Show less

Edit Shape

Custom Python node

For a readable executable function, declare it once and call it with the workflow as the first argument:

python
from vibecomfy import python_node

@python_node(inputs={"value": "INT"}, outputs={"value": "INT"})
def increment(value):
    return {"value": value + 1}

first = increment(wf, value=1)
second = increment(wf, value=first.value)

Each call is a distinct vibecomfy.exec node. The function body is inert while building, io names the typed semantic ports, and the existing graph edges carry physical in_N sockets. Use python_node.from_source(...) for a full module/project and python_node.from_installed(...) for an environment-bound package. Snapshot entrypoints are package-relative; installed entrypoints are fully qualified. A shared source identity can be updated for all calls, while an explicitly selected call can be copied on edit. Preserve helper files by capturing the project root rather than extracting one function from its module.

The CLI convenience form uses the same canonical session and atomic bundle publisher:

bash
vibecomfy edit BUNDLE exec add --source-body "return {'value': value + 1}" --ports ports.json
vibecomfy edit BUNDLE exec inspect TARGET --json
vibecomfy edit BUNDLE exec export TARGET --destination exported_source

Validate source syntax, IO names, bindings, revision identity, and the exact Python/companion pair. A successful edit is not runtime evidence; queue it through run-comfy-workflow for that.

Use the lightest public API that fits:

python
from vibecomfy.cli_loader import load_bundle

def build():
    wf = load_bundle("image/z_image").workflow
    wf.set_prompt("a glass teapot on basalt")
    wf.set_seed(42)
    wf.set_steps(20)
    return wf.finalize_metadata()

Reach for patches when decorating an existing graph. Reach for blocks or direct VibeWorkflow methods only when the edit changes handles, splices nodes, or rewires topology.

Never invent node fields, sockets, or class names. Use vibecomfy node <ClassType> --inputs, visible graph data, local precedents, or search-comfy-workflows.

Validate

bash
vibecomfy validate <edited.py>
vibecomfy doctor <edited.py> --json

For converted source workflows:

bash
vibecomfy port doctor-all <source_or_edited_workflow> --json

If the edit adds custom nodes:

bash
vibecomfy nodes install-plan <edited.py>

Return Shape

For package-side edits, return the edited file path and validation evidence:

  • recipe/scratchpad/template path
  • changed intent in plain language
  • vibecomfy validate / vibecomfy doctor status
  • any node/model install plan

For Comfy app style edits, the returned object is a candidate envelope: outcome.kind, candidate.graph, apply_eligibility, graph hashes, change details, and artifact paths such as candidate.ui.json / response.json. The user still has to Apply or run it.

Boundaries

  • Do not run GPU work unless the user asked to execute or validation requires it.
  • Do not promote a one-off composition to ready_templates; use recipes/.
  • Keep upstream JSON close to upstream. Put local edits in Python.
  • If the environment is missing, hand off to vibecomfy-setup; if execution fails, hand off to debug-comfy-workflow.

© peteromallet, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in docs/agent-skill/skills/edit-comfy-workflow of peteromallet/VibeComfy.

Open the folder on GitHubat commit b1429c6

Compare with similar skills

Edit Comfy Workflow next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Edit Comfy Workflow compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Edit Comfy Workflow this skillpeteromallet/VibeComfy150—~2.2kAutomated safety check: PassMIT
ComfyUI Custom Node BuilderConstantineB6/comfy-pilot230—~897Automated safety check: PassMIT
Setupguaardvark/guaardvark2511 repos~1.2kAutomated safety check: PassMIT
AI Toolkit Trainerartokun/comfyui-mcp793—~2.7kAutomated safety check: PassMIT
Add Comfyui NodeMooshieblob1/MooshieUI207—~936Automated safety check: PassAGPL-3.0
ComfyUI Custom Node Basicsjtydhr88/comfyui-custom-node-skills294—~1.6kAutomated safety check: PassMIT

Similar skills

  • ComfyUI Custom Node Builder

    ConstantineB6/comfy-pilot

    Helps an agent write ComfyUI custom nodes in Python, including wrapping an existing script, mapping data types and handling image batches.

    230 GitHub stars~897 tokensUpdated 7 mo ago
    AI & LLM EngineeringAuto-check passed
  • Setup

    guaardvark/guaardvark

    Connect this agent to a running Guaardvark (self-hosted AI studio) and check what it can do right now.

    251 GitHub starsUsed in 1 repo~1.2k tokens
    AI & LLM EngineeringAuto-check passed
  • AI Toolkit Trainer

    artokun/comfyui-mcp

    Train custom LoRAs with ostris AI-Toolkit. An agent skill from artokun/comfyui-mcp.

    793 GitHub stars~2.7k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Add Comfyui Node

    Mooshieblob1/MooshieUI

    Adds a custom ComfyUI Python node to MooshieUI — Python class in mooshienodes.py, Rust required-class registration, and optional workflow template chain hookup.

    207 GitHub stars~936 tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • ComfyUI Custom Node Basics

    jtydhr88/comfyui-custom-node-skills

    Explains the V3 API for ComfyUI custom nodes: node classes, schema, inputs and outputs, registration and how it differs from the legacy V1 style.

    294 GitHub stars~1.6k tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check passed
  • Comfyui Launch Flags

    artokun/comfyui-mcp

    Pick the right ComfyUI startup flags for VRAM, attention, caching, and speed.

    793 GitHub stars~3.1k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed

More from peteromallet/VibeComfy

All 9 skills in this repo
  • Add Comfy Workflow Template

    peteromallet/VibeComfy

    Add a durable VibeComfy ready workflow/template from a ComfyUI source workflow.

    150 GitHub stars~700 tokensUpdated 6 days ago
    Auto-check passed
  • Debug Comfy Workflow

    peteromallet/VibeComfy

    Diagnose a VibeComfy or ComfyUI workflow that fails validation, conversion, node/model resolution, runtime execution, or output production.

    150 GitHub stars~609 tokensUpdated 6 days ago
    Auto-check passed
  • Explain Comfy Workflow

    peteromallet/VibeComfy

    Explain an existing VibeComfy or ComfyUI workflow, ready template, recipe, scratchpad, target graph, node chain, model path, prompt path, or runtime result.

    150 GitHub stars~806 tokensUpdated 6 days ago
    Auto-check passed
  • Reorganise Comfy Workflow

    peteromallet/VibeComfy

    Reorganise an existing ComfyUI workflow layout without changing runtime behavior.

    150 GitHub stars~1.4k tokensUpdated 6 days ago
    Auto-check passed
  • Run Comfy Workflow

    peteromallet/VibeComfy

    Execute an existing VibeComfy/ComfyUI workflow, ready template, recipe, or scratchpad and collect outputs.

    150 GitHub stars~1.8k tokensUpdated 6 days ago
    Auto-check passed
  • Search Comfy Workflows

    peteromallet/VibeComfy

    Search for ComfyUI workflow precedents, VibeComfy ready templates, node wiring examples, Banodoco/Hivemind community workflow knowledge, and concrete graph patterns before editing or adding a…

    150 GitHub stars~966 tokensUpdated 6 days ago
    Auto-check passed

Works with

Questions about Edit Comfy Workflow

What does Edit Comfy Workflow do?

Edit an existing VibeComfy or ComfyUI workflow, ready template, recipe, scratchpad, or target graph. Edit Comfy Workflow is an agent skill from peteromallet/VibeComfy. Edit an existing VibeComfy or ComfyUI workflow, ready template, recipe, scratchpad, or target graph.

When should I use Edit Comfy Workflow?

Edit Comfy Workflow fits situations like: the user asks to tweak prompts/seeds/steps/resolution; splice a pattern into a workflow; convert JSON to editable Python; make a graph change without necessarily running it.

How do I install Edit Comfy Workflow in Claude Code?

Run `npx skills add peteromallet/VibeComfy --skill edit-comfy-workflow -a claude-code`. Or copy the skill folder (docs/agent-skill/skills/edit-comfy-workflow in peteromallet/VibeComfy) into .claude/skills/edit-comfy-workflow in your project. Claude Code loads it when a task matches its description.

How do I install Edit Comfy Workflow in Codex?

Run `npx skills add peteromallet/VibeComfy --skill edit-comfy-workflow -a codex`. Or copy the skill folder (docs/agent-skill/skills/edit-comfy-workflow in peteromallet/VibeComfy) into .agents/skills/edit-comfy-workflow in your project. Codex loads it when a task matches its description.

Can I use Edit Comfy Workflow in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add peteromallet/VibeComfy --skill edit-comfy-workflow -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/edit-comfy-workflow, .gemini/skills/edit-comfy-workflow, .github/skills/edit-comfy-workflow and .opencode/skills/edit-comfy-workflow in your project.

What does Edit Comfy Workflow need to run?

SKILL.md names no scripts, command-line tools or credentials: Edit Comfy Workflow is instructions for the agent only. Our summary lists: Python 3.

Does Edit Comfy Workflow access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Edit Comfy Workflow safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Edit Comfy Workflow use?

Edit Comfy Workflow is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Edit Comfy Workflow use?

About 2.2k tokens (SKILL.md is roughly 8.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Edit Comfy Workflow?

Skills that share tags, products or a category with Edit Comfy Workflow: ComfyUI Custom Node Builder (ConstantineB6/comfy-pilot, 230 stars), Setup (guaardvark/guaardvark, 251 stars), AI Toolkit Trainer (artokun/comfyui-mcp, 793 stars) and Add Comfyui Node (Mooshieblob1/MooshieUI, 207 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Edit Comfy Workflow?

peteromallet (a GitHub user) maintains it in peteromallet/VibeComfy, which has 150 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 1, 2026.

Source: peteromallet/VibeComfy on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.