comfy-edit
0
总安装量
4
周安装量
安装命令
npx skills add https://github.com/peteromallet/vibecomfy --skill comfy-edit
Agent 安装分布
trae-cn
2
opencode
2
codex
2
github-copilot
2
claude-code
2
amp
1
Skill 文档
ComfyUI Workflow Editing
Edit workflow JSON files using the VibeComfy CLI.
Repo: https://github.com/peteromallet/VibeComfy
When working in the repo, see CLAUDE.md for full command reference.
CLI Commands
All edit commands require -o output.json. Use --dry-run to preview changes.
| Command | Purpose |
|---|---|
trace WF NODE |
Show node inputs/outputs with slot names |
upstream WF NODE |
Find nodes feeding into target |
downstream WF NODE |
Find nodes fed by source |
wire WF SRC_ID SRC_SLOT DST_ID DST_SLOT -o OUT |
Connect nodes |
copy WF NODE -o OUT |
Duplicate a node |
set WF NODE key=val -o OUT |
Set widget values |
delete WF NODE -o OUT |
Remove nodes |
create WF TYPE -o OUT |
Create new node |
batch WF SCRIPT -o OUT |
Multi-step edits |
submit WF |
Run workflow in ComfyUI |
Tip: Use trace first to find slot numbers, then wire to connect.
Adding Nodes Workflow
- Find the node:
comfy_search("controlnet")(use comfy-registry skill) - Get the spec:
comfy_spec("ControlNetLoader")– see inputs/outputs - Understand the flow:
python we_vibin.py trace workflow.json <ksampler_id> - Create and wire:
python we_vibin.py create workflow.json ControlNetLoader -o step1.json
python we_vibin.py trace step1.json <new_node_id> # Find the slot numbers
python we_vibin.py wire step1.json <src_id> <src_slot> <dst_id> <dst_slot> -o step2.json
Or use batch scripts for multi-step edits (slot names work in batch mode):
create ControlNetLoader as $cn
wire $cn:control_net -> 15:control_net
Common Patterns
What nodes go together. See references/PATTERNS.md for details.
Image Generation
| Pattern | Flow |
|---|---|
| txt2img | Checkpoint â CLIP (x2) â EmptyLatent â KSampler â VAEDecode â Save |
| img2img | LoadImage â VAEEncode â KSampler (denoise<1) â VAEDecode â Save |
| inpaint | LoadImage + Mask â VAEEncodeForInpaint â KSampler â VAEDecode |
Enhancements
| Pattern | Flow |
|---|---|
| ControlNet | LoadControlNet â ControlNetApply â KSampler |
| LoRA | Checkpoint â LoraLoader â KSampler |
| Upscale | LoadUpscaleModel â ImageUpscaleWithModel â Save |
| IPAdapter | LoadIPAdapter â IPAdapterApply â KSampler |
Video
| Pattern | Flow |
|---|---|
| AnimateDiff | Checkpoint â ADE_LoadAnimateDiff â ADE_Apply â KSampler â VHS_Combine |
| Wan t2v | WanModelLoader â WanTextEncode â WanSampler â WanDecode |
| LTX | LTXVLoader â LTXVTextEncode â LTXVSampler â LTXVDecode |
| v2v | VHS_LoadVideo â VAEEncode â KSampler â VAEDecode â VHS_Combine |
Flux
| Pattern | Flow |
|---|---|
| Flux txt2img | UNETLoader + DualCLIPLoader + VAELoader â FluxGuidance â KSampler |
Batch Scripts
For multi-step edits, use batch scripts:
# Copy node, assign to variable
copy 1183 as $selector
# Set widgets
set $selector indexes="0:81"
# Wire using slot names
wire 1140:IMAGE -> $selector:image
# Delete nodes
delete 1220 1228
Run with: python we_vibin.py batch workflow.json script.txt -o out.json --dry-run