CivArchive
    ← All articles
    Published June 29, 2026by Lokitsar

    Wildcard Organizer for ComfyUI

    632 views1 reactions2 comments on CivitAI3 collected
    wildcardsresource guide

    ComfyUI Wildcard Organizer: A Small Node for Cleaner Prompt Building

    If you use wildcards in ComfyUI, you probably know the little friction points:

    • remembering the exact wildcard token name

    • digging through large wildcard folders

    • previewing what a file actually contains

    • mixing wildcard tokens with normal prompt text

    • checking what prompt string is actually being sent into the text encoder

    I built ComfyUI Wildcard Organizer to make that workflow easier. It is a small custom node for browsing your wildcard folders and building prompts directly inside ComfyUI.

    GitHub:

    https://github.com/lokitsar/ComfyUI-WildcardOrganizer

    What it does

    Wildcard Organizer gives you a searchable wildcard browser, a prompt builder, and a resolved prompt preview in one node.

    Instead of manually typing something like:

    __body_eye_color__, __cc_hairstyle_set__, __body-short__, __setting-scifi__

    you can search, preview, add, reorder, group, and resolve those pieces from inside the node.

    Search large wildcard folders

    The node scans .txt, .yaml, and .yml wildcard files recursively. It supports Impact Pack-style wildcard names, so a file path such as:

    wildcards/people/hair color.txt

    becomes:

    __people/hair-color__

    You can search by filename or key, and optionally enable content search when you need to find something inside the wildcard files.

    Preview before you add

    One thing I missed from other wildcard tools was being able to quickly see what a wildcard might produce. Selecting a result shows a preview of the file or YAML entry, so you do not have to add blind tokens to your prompt.

    Build prompts without leaving the node

    The builder lets you add wildcard rows, literal text rows, and manual prompt text. You can drag rows to reorder them, double-click to remove, and copy either individual wildcard tokens or the composed prompt.

    This is useful for small repeated prompt structures like:

    masterpiece, high quality, score_9, __body_eye_color__, eyes, __cc_hairstyle_set__, __body-short__, __setting-scifi__

    Add literal text rows

    Wildcards are not always enough by themselves. Sometimes you want a fixed phrase like eyes, wearing, standing in, or punctuation between wildcard pieces.

    The builder supports normal text rows alongside wildcard rows.

    Group rows into choices

    You can select multiple rows and press Group Choice to create a ComfyUI-style choice expression:

    {red | black | blue}

    The same grouping works with wildcard rows too:

    {__hair-color__ | __eye-color__ | __shirt__}

    See the exact resolved prompt

    The newest feature is the one I personally wanted most: a bottom Resolved Prompt box.

    The raw prompt still shows the wildcard tokens and choice expressions, but the resolved prompt shows the actual sampled text that will be sent downstream.

    For example, the raw prompt might contain:

    masterpiece, high quality, score_9, __body_eye_color__, eyes, __cc_hairstyle_set__, __body-short__, __setting-scifi__

    The resolved prompt might become:

    masterpiece, high quality, score_9, ((multicolored eyes, two-tone eyes, red eyes, orange eyes):0.9), eyes, Voluminous apricot waves hairstyle, pygmy, A Pilot flying an advanced spaceship through an asteroid field

    That makes it much easier to debug prompt behavior before you run a batch.

    Install

    Clone or download the repository into your ComfyUI custom nodes folder:

    ComfyUI/custom_nodes/ComfyUI-WildcardOrganizer

    Then restart ComfyUI.

    GitHub:

    https://github.com/lokitsar/ComfyUI-WildcardOrganizer

    Basic workflow

    1. Add utils/wildcards -> Wildcard Organizer.

    2. Set wildcard_folder to your wildcard directory.

    3. Search for a wildcard.

    4. Select a result to preview it.

    5. Press Add to put it into the builder.

    6. Add text rows if needed.

    7. Group selected rows into choices if useful.

    8. Check the Resolved Prompt box.

    9. Connect the prompt output to your text encoder.

    Notes

    The node is meant to stay lightweight. It does not replace a full prompt management system; it is just a practical utility for people who already use wildcard libraries and want a cleaner way to browse and compose them.

    It supports:

    • .txt, .yaml, and .yml wildcard files

    • recursive folder scanning

    • filename/key search

    • optional file-content search

    • favorites saved in browser local storage

    • prompt builder rows

    • literal text rows

    • choice grouping

    • resolved prompt preview

    • deterministic rerolling with a seed

    If you use a lot of wildcards in ComfyUI, I hope this saves you a few clicks and a little mental bookkeeping.

    Attachments