t2i-parameter-handling
Skill by mcmonkeyprojects
Guides an AI assistant through adding or modifying SwarmUI text-to-image parameters, from registration and validation to ComfyUI workflow consumption. Intended for developers working on the SwarmUI codebase.
Install t2i-parameter-handling
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/t2i-parameter-handling ~/.claude/skills/t2i-parameter-handlingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/mcmonkeyprojects/SwarmUI /tmp/SwarmUI && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/SwarmUI/.agents/skills/t2i-parameter-handling ~/.gemini/antigravity-cli/skills/t2i-parameter-handlingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install t2i-parameter-handling in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through adding or changing text-to-image (t2i) parameters in SwarmUI. It covers where a parameter is declared and registered, and how its type, defaults, bounds, groups, feature flags and metadata are set. It also explains how generation code reads the parameter and translates it into ComfyUI workflow nodes.
The skill sets rules for this work. It asks the assistant to add a new parameter only when a user has directly asked for one. It asks that parameter descriptions be left blank for the human operator to fill in. It lists the relevant source paths and a checklist for verifying the generated control, metadata and a representative Comfy workflow. It is aimed at developers working on the SwarmUI codebase.
Written from the project's SKILL.md and checked against it.
What it can do
- Register parametersDeclares a typed parameter in T2IParamTypes or ComfyUIBackendExtension and registers it with Register<T>.
- Consume parametersReads a registered parameter in the generation path using TryGet or Get with a fallback.
- Set feature gatingAssigns FeatureFlag and Permission so a parameter is gated to capable backends or models.
- Rename safelyKeeps old presets, metadata and API input working through a one-way ParameterRemaps entry.
- Choose validation valuesGuides Min, Max, Step, ViewType and GetValues so bounds and options are valid.
- Verify changesChecks the control, dependencies, metadata and a Comfy workflow, then reviews the git diff.
What you need
- SwarmUI source code checkout
- ComfyUI backend
Try asking
- Add a new Comfy-only parameter to SwarmUI with a safe default.
- Rename an existing t2i parameter and keep old presets working.
- Add a slider with validation bounds for a numeric SwarmUI parameter.
Good to know
- Only add a new parameter when a user has directly instructed it.
- Agents should leave parameter Description fields blank for the human operator.
- Do not hand-code frontend controls unless the generic renderer cannot express the behavior.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/t2i-parameter-handling/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB
Alternatives to t2i-parameter-handling
All alternatives →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
t2i-parameter-handling: common questions
When should a new SwarmUI parameter be added?
Only when a user has directly instructed it. If one seems useful, the assistant should explain the idea and ask the user first.
Where are SwarmUI parameters registered?
Broadly applicable parameters are registered in T2IParamTypes with Register<T> in RegisterDefaults(). Comfy-only parameters are registered in ComfyUIBackendExtension in OnInit().
How can a parameter be found in the code?
Search by both the field name and the generated ID. The ID is the lowercase parameter name with non-lowercase letters removed, via CleanTypeName.
How do I install t2i-parameter-handling?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is t2i-parameter-handling free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is t2i-parameter-handling 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 t2i-parameter-handling?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
