Skip to content
Agentmart
Submit a tool

workflows

Knowledge about ComfyUI workflow API format, node connections, and common patterns.

Skill by hybridindie

IndexedMIT★ 3
Write a review

Chalk Labs

Need help deploying workflows?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/hybridindie-workflows

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Knowledge about ComfyUI workflow API format, node connections, and common patterns. Use when helping users build, modify, or understand workflows.

Use cases: backend, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/workflows

What's inside

Skill name
workflows
Description
Knowledge about ComfyUI workflow API format, node connections, and common patterns. Use when helping users build, modify, or understand workflows.
License
MIT
Instructions
89 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# ComfyUI Workflow Building Guide

## API Format

ComfyUI workflows use a JSON format where each node is a key-value pair:

```json
{
  "1": {
    "class_type": "KSampler",
    "inputs": {
      "seed": 42,
      "steps": 20,
      "cfg": 7.0,
      "sampler_name": "euler",
      "scheduler": "normal",
      "denoise": 1.0,
      "model": ["2", 0],
      "positive": ["3", 0],
      "negative": ["4", 0],
      "latent_image": ["5", 0]
    }
  }
}
```

- **Keys** are string node IDs (e.g., `"1"`, `"2"`)
- **`class_type`** is the ComfyUI node type name
- **`inputs`** contains parameters and connections
- **Connections** use the format `["source_node_id", output_index]`

## Common Node Chains

### txt2img (text to image)
`CheckpointLoaderSimple` -> `CLIPTextEncode` (positive) -> `KSampler` -> `VAEDecode` -> `SaveImage`

### img2img (image to image)
`LoadImage` -> `VAEEncode` -> `KSampler` (with denoise < 1.0) -> `VAEDecode` -> `SaveImage`

### ControlNet
`LoadImage` -> `ControlNetLoader` + `ControlNetApply` -> feed into `KSampler` positive conditioning

### LoRA Stacking
`CheckpointLoaderSimple` -> `LoraLoader` (chain multiple) -> `KSampler`

## Key Nodes Reference

| Node | Purpose | Key Inputs |
|------|---------|------------|
| `CheckpointLoaderSimple` | Load a model checkpoint | `ckpt_name` |
| `CLIPTextEncode` | Encode text prompt | `text`, `clip` |
| `KSampler` | Run diffusion sampling | `model`, `positive`, `negative`, `latent_image`, `steps`, `cfg`, `seed` |
| `VAEDecode` | Decode latent to image | `samples`, `vae` |
| `VAEEncode` | Encode image to latent | `pixels`, `vae` |
| `SaveImage` | Save output image | `images`, `filename_prefix` |
| `LoadImage` | Load input image | `image` (filename) |
| `LoraLoader` | Apply LoRA weights | `model`, `clip`, `lora_name`, `strength_model`, `strength_clip` |
| `ControlNetLoader` | Load ControlNet model | `control_net_name` |
| `ControlNetApply` | Apply ControlNet | `conditioning`, `control_net`, `image`, `strength` |

## Using the Workflow Tools

**Quick decision guide** — pick the tool by what you need to do:

| Goal | Tool |
|------|------|
| Build a new workflow from scratch | `comfyui_create_workflow` |
| Modify an existing workflow | `comfyui_modify_workflow` |
| Understand a workflow (human-readable text or Mermaid) | `comfyui_summarize_workflow` |
| Understand a workflow (machine-readable dict) | `comfyui_analyze_workflow` |
| Check a workflow for errors before running | `comfyui_validate_workflow` |
| Execute a workflow | `comfyui_run_workflow` |

1. **`comfyui_create_workflow`** — Start from a built-in template. Accepted template names are listed in the tool's docstring: `txt2img`, `img2img`, `upscale`, `inpaint`, `txt2vid_animatediff`, `txt2vid_wan`, `controlnet_canny`, `controlnet_depth`, `controlnet_openpose`, `ip_adapter`, `lora_stack`, `face_restore`, `flux_txt2img`, `sdxl_txt2img`. The `params` argument defaults to `""`, which applies the predefined settings for the selected template (e.g., default dimensions, steps, and cfg values baked into that template); pass a JSON string when you want overrides. (Note: `comfyui_list_workflows` returns server-side `/workflow_templates` from front-end packages — a different set, not these MCP-built-in templates.)
2. **`comfyui_modify_workflow`** — Add/remove nodes, change connections, update parameters on an existing workflow. Operations: `add_node`, `remove_node`, `set_input`, `connect`, `disconnect`. The docstring spells out each op's exact field shape. The call is atomic — if any operation fails, the call raises and the input workflow is unmodified.
3. **`comfyui_validate_workflow`** — Returns `{valid, errors, warnings, node_count, pipeline}`. `errors` (list[str]) are blocking; `warnings` (list[str]) are non-blocking concerns like missing model files or suspicious inputs.
4. **`comfyui_summarize_workflow`** — Human-readable overview. Pass `output_format="text"` (default) or `"mermaid"` for diagram markup.
5. **`comfyui_analyze_workflow`** — Returns the analysis as a structured dict (`node_count`, `class_types`, `flow`, `models`, `parameters`, `pipeline`, `prompt_nodes`, `negative_nodes`). Use this when you want to read fields like `pipeline` programmatically; use `comfyui_summarize_workflow` for the human-readable rendering.
6. **`comfyui_run_workflow`** — Submit a workflow for execution. Use `wait=True` to block until done. The response is always a dict envelope: `{status, prompt_id, outputs, elapsed_seconds, warnings?}` where `status` is one of `submitted` / `completed` / `interrupted` / `error` / `timeout`. With `wait=False` you get just `{status: "submitted", prompt_id, warnings?}` — poll `comfyui_get_progress` or `comfyui_get_job` to follow up.

## Tips

- Always validate a workflow before running it.
- Use `comfyui_list_nodes` to check what node types are available on the connected ComfyUI instance.
- Use `comfyui_get_node_info` to get detailed input/output specs for a specific node type.
- Node IDs must be unique strings. When adding nodes, pick IDs that don't conflict with existing ones.
- The `seed` parameter controls reproducibility. Use a fixed seed for consistent results, or -1 for random.

From hybridindie/comfyui_mcp, MIT.

Signals

Stars
3
Forks
0
Open issues
0
Last commit (this folder)
May 12, 2026 (5 months ago)
Last release
Oct 6, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from hybridindie

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get workflows running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying workflows?

CallGet help
Cite this page

workflows skill. Agent Mart. https://agentmart.dev/skills/hybridindie-workflows (last updated 2026-10-24)