Edit: Aug 4th - I just discovered there is a bug with the node that actually increases the prompt generation time by a lot when using this node since it has to rebuild the wildcards everytime... So this was a bad mistake on my part and I rushed out the release of this too quickly, I am releasing the fixed node soon
VERSION 2 — COMPLETE REWRITE. MUCH EASIER.
If you used v1: forget the YAML files, build scripts, and twin-router setup. v2 replaces all of that with one ComfyUI node. Install the node, paste a wildcard tag. If you want to replace the 'Subject' within the wildcard prompt, type your new Subject description replacement prompt into a text box in the Node then run the workflow...
I also have a custom node that will extract a Lora from your prompt, so you can create custom wildcards and embed the Lora you want to be added into the prompt.
TLDR (how to use it)
1. Put your wildcard prompt in the node's text input (same as Impact Wildcard Processor).
2. Want a specific person instead of a random one? Fill in the Subject field.
3. Want a locked outfit? Fill in the Wardrobe field (optional and only works with specific wildcards that dont require full nudity).
4. Queue. Done.
Example wildcard tag:
uw-krea2-nsfw/router/portrait-bedroom-pics
Leave populate + randomize on if you want a new scene every queue.
WHAT THIS IS (plain English)
This is an upgraded version of the Impact Pack wildcard node.
The normal Impact Wildcard Processor expands tags into full prompts. This node does the same thing, but it can intercept specific parts of a wildcard before the full expansion finishes — so you can swap them out.
In practice, that means:
- The scene, pose, lighting, and camera still come from the wildcard (random or fixed, your choice).
- The subject (who appears) can be YOUR character — just paste a description in the Subject field.
- The outfit can be locked the same way in the Wardrobe field.
No sidecar files. No code generation. No maintaining duplicate YAML trees.
WHAT CHANGED FROM V1
v1 (older download on this page):
- YAML character files + a build script to generate twin routers
- Starfire and Ivy examples shipped in the zip
- Workflows used ImpactWildcardProcessor
v2 (this upload — recommended for new installs):
- One node: Wildcard Clause Expander
- Type your character directly in the node UI
- Works with the updated v2 workflow (WildcardClauseExpander → PromptLoraExtractor)
The v1 sidecar zip (krea2-custom-character-companion-*.zip) stays available as an older version if you still want file-based kits. For everyone else, use v2.
NODE FIELDS
wildcard_text Your router tag or wildcard prompt (required)
subject_override Natural-language identity (hair, face, skin, age 18+, etc.) — optional
wardrobe_override Costume or outfit paragraph — optional
populate On = expand wildcards (same idea as Impact)
randomize On = new random picks each queue
INSTALL
1. Install the base uw-* wildcard pack (required):
Extract into custom_wildcards/ under your Impact Pack folder.
2. Extract THIS zip into ComfyUI/custom_nodes/ (folder: ComfyUI-WildcardClause/).
3. Recommended: PromptAspectSize resolver node
4. Optional: Prompt LoRA Extractor (pulls <lora:...> tags out of the expanded text)
https://civarchive.com/models/2818995/lora-extractor-comfyui-node-used-with-uw-wildcards-pack
5. Restart ComfyUI. Look for "Wildcard Clause Expander" under utils/prompt.
6. Easiest start: grab the v2 Turbo + Raw workflow
AI agents: see AGENT-INSTALL.md inside the zip.
RELATED DOWNLOADS (same as above)
Base wildcards (required)
Aspect / width-height resolver (recommended)
LoRA Extractor (optional)
https://civarchive.com/models/2818995/lora-extractor-comfyui-node-used-with-uw-wildcards-pack
Turbo + Raw workflows (recommend, all nodes above pre-wired in one HQ Krea2 workflow)
Description
v1.0.1 — Install layout + builder path fix
- Clarifies install: extract Character Expansion INTO your base pack folder (e.g. custom_wildcards/uw-krea2/), not as a sibling under custom_wildcards/
- After install, characters/, identity/, generated/, tools/, and Build-CharacterKits.ps1 sit next to shared/ and krea2/
- Build-CharacterKits.ps1 finds .\krea2\ next to the script; clearer errors + optional -Krea2Dir override
- Adds INSTALL-LAYOUT.md with the final directory tree
- Fixes v1.0.0 failure where the builder only searched an internal maintainer path (user-wildcards/krea2)
Requires base krea2-uw ≥ v1.0.0 (pairs with v1.1.0 with-aspect).
FAQ
Comments (8)
I feel like I'm following the directions closely...but everytime I try to run .\Build-CharacterKits.ps1 it tells me I don't have krea2 folder and to install the base....which I have and can generate successfully from. Any chance you can post a final directory structure?
Hey! sorry about that, yes I will do that now. Let me run your error through on my side and figure out what the discrepency is.
Hey I just uploaded a version 1.0.1 zip. So please redownload that, the build.ps1 file is a little different.
You're right to ask for a final tree — the v1.0.0 docs/builder were confusing.
Correct layout: Character Expansion goes INTO your base pack folder (not next to it under custom_wildcards/).
Example:
ComfyUI/custom_nodes/comfyui-impact-pack/custom_wildcards/
└── uw-krea2/ ← your base pack folder
├── shared/ ← from base zip
├── krea2/ ← from base zip (must contain krea2-nsfw-templates.yaml)
├── characters/ ← from Character Expansion
├── identity/
├── generated/
├── tools/
└── Build-CharacterKits.ps1 ← run from THIS folder
Install:
1) Base pack already extracted so you have uw-krea2/shared + uw-krea2/krea2
2) Extract Character Expansion INTO uw-krea2/ (merge folders)
3) From that folder: .\Build-CharacterKits.ps1
If you extracted Character Expansion as a sibling under custom_wildcards/, move characters/, identity/, generated/, tools/, and Build-CharacterKits.ps1 into uw-krea2/, then re-run.
Why gens worked but the builder failed: Impact already loads the YAML; the v1.0.0 builder only looked for an internal path (user-wildcards/krea2). v1.0.1 looks for .\krea2\ next to the script and ships INSTALL-LAYOUT.md with this tree.
@Vesperra Trying it now.
Getting a venv python error now...I'll see if Claude can fix it.
Looks related to ComfyUI portable...working through that now.
Fixed for comfyui portable...I'll message you the new file.
Hey everyone who downloaded this, if you had a problem with the original setup / install please redownload the newest version zip I have v1.0.1
Brad pointed out the error with the build and I realized that the install directory was confusing so I fix it and provided an example directory structure in my post so you can see how the folders need to look when you unzip everything.









