Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

workflow-generator

Skill by mcmonkeyprojects

Guides changes to SwarmUI's C# WorkflowGenerator, which turns user parameters into ComfyUI API workflows. Written for developers adding or modifying generation steps, graph helpers, and node contracts.

  • Score 83
  • 4.8k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install workflow-generator

Built from the published package, never by AI.

git clone --depth 1 https://github.com/mcmonkeyprojects/SwarmUI /tmp/SwarmUI && mkdir -p ~/.claude/skills && cp -r /tmp/SwarmUI/.agents/skills/workflow-generator ~/.claude/skills/workflow-generator

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install workflow-generator in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill guides changes to WorkflowGenerator, the C# code in SwarmUI that translates T2IParamInput into a ComfyUI API workflow. It covers ordered generation steps, reusable graph helpers, WGNodeData media routing, model-specific behavior, and feature gating for optional nodes.

It explains how to verify a ComfyUI node's class name, inputs, and outputs in Swarm's ExtraNodes, the downloaded upstream ComfyUI code, and third-party DLNodes before using it. The skill lists the relevant source files, gives rules for choosing steps versus functions, and asks for narrow edits. It also says to respect RestrictCustomNodes and never modify downloaded upstream code. It is aimed at developers working on SwarmUI's ComfyUI backend.

Written from the project's SKILL.md and checked against it.

What it can do

  • Locate generator codePoints to the WorkflowGenerator, steps, model support, WGNodeData, and backend files that hold each part of the pipeline.
  • Verify node contractsExplains how to check a ComfyUI node's class type, inputs, outputs, and output indexes at its Python source.
  • Choose nodesRanks existing helpers, Swarm nodes, core ComfyUI nodes, and third-party nodes by semantics and availability.
  • Decide steps versus functionsExplains when to add an ordered AddStep, a model-generation hook, or a reusable WorkflowGenerator function.
  • Route media with WGNodeDataDescribes conversion and save helpers such as AsSamplingLatent, DecodeLatents, and SaveOutput.
  • Gate optional nodesDescribes feature checks for optional and third-party nodes and handling when a node is absent.

What you need

  • A checkout of the SwarmUI source repository with the ComfyUIBackend folder

Try asking

  • Add a step to WorkflowGenerator that saves audio using WGNodeData.SaveOutput
  • Find the Python definition of a ComfyUI node and check its input names
  • Gate a third-party node in WorkflowGenerator behind a discovered feature check

Good to know

  • Do not modify the dlbackend or DLNodes folders, which hold downloaded upstream code.
  • Third-party nodes need installation and feature gating to be accounted for.
  • Parameter definition changes should use the separate t2i-parameter-handling skill.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/workflow-generator/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB

Alternatives to workflow-generator

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

workflow-generator: common questions

What is WorkflowGenerator in SwarmUI?

It is the C# code that translates T2IParamInput into a ComfyUI API workflow. The skill is written for changing that code.

Where should a new Swarm-owned ComfyUI node go?

The source says to add it only under ExtraNodes and register it in the relevant NODE_CLASS_MAPPINGS.

When should a function become a generation step?

The source says to use AddStep only for core behavior mapped from user input. Otherwise, work inside existing steps or add a focused function.

How do I install workflow-generator?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is workflow-generator free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is workflow-generator safe to use?

It scores 83 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to workflow-generator?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

workflow-generator Install

Add to stack

Loading.