GALIAIS-Nodes
Prompt engineering, Danbooru dictionary lookup, and AI prompt refinement nodes for ComfyUI.
Nodes (50)
The detail expander fills in the face, hair, and outfit your prompt forgot
The conflict resolver catches the tags that fight each other in your prompt
Turn a tag wall into a natural-language prompt without leaving the graph
The negative prompt builder that writes your 'bad hands' list for you
The GALIAIS AI Provider is the only node in this pack that needs your API key
A sanity check for your AI provider before you waste tokens on a bad key
The style enhancer for when your prompt is fine but flat
The AI Tag Analyzer reads your prompt the way Danbooru would
The 03 layer for proportions, skin, and the non-human bits
The Final Composer is where all ten character sections finally become a prompt
The template manager saves your prompt layouts so the composer can reuse them
The 02 layer that stops every character looking the same
The 01 layer where a character becomes someone
The 09 layer for quality tags and process notes
The 07 layer for the story and mood behind the frame
This pack keeps adult content in its own box
The 08 layer for the stuff the scene needs
The 04 layer that does most of the visual work in character art
The 05 layer that makes a character do something
The 06 layer that frames the character instead of floating it
Your Composer Templates, Packed Up and Portable
The Node Everything Else Wires Into — Your Danbooru Tag Database, Loaded Once
Five Numbers That Tell You If Your Tag Database Actually Loaded
Look Up Danbooru Tags in Chinese or English
Turn Your Gigabyte Tag Dump Into a Fast Working Database — Run Once, Not Per Queue
Seven Slots, Per-Field Toggles, and Random Styles Without the Fuss
Resolve Any Messy Text Into Proper Danbooru Tags
Pick From a Curated Tag Category Instead of Guessing at Spellings
Stale Tags? See Everything Cached and Wipe It in One Click
A Deterministic Prompt-Building Engine
Turn Per-Character Sections Into One Coherent Frame
Grab a Preset and Add Your Own
Hand Your Tag Prompt to an LLM — and Keep It From Wandering
The Pack's Central Settings Hub and AI Provider
One Node That Composes a Whole Structured Anime Prompt — Tags, Artist, Quality, Negative
The Duct Tape Node for Assembling Prompt Sections
Is 'lon hair' a Real Tag? Check Before You Waste a Render
Same Tag Check, Plus a Quality Score and an Issue List
Conflict Pruning, AI Expansion, Negative Merge, Quality Score — in One Node
Package Identity, Outfit, Pose and More as One Object
A pass/fail gate for your prompt, before the sampler ever runs
A 0–100 prompt score with receipts — no AI required
Seeded prompt roulette — variations you can actually reproduce
The toggleable prompt building block that makes A/B tests painless
Fill-in-the-blank prompts without a regex in sight
The last node in the chain — actually see what your prompt became
Prompt weighting by hand, minus the hand part
The 'AI' scene node that never calls an API
Keep the tags you hate out of the entire workflow
One node that assembles a whole character prompt — and scores it
GALIAIS-Nodes
GALIAIS-Nodes is a ComfyUI custom node pack for detailed prompt construction. It focuses on Danbooru tag selection, structured character prompt composition, AI-assisted prompt refinement, and prompt inspection.
Features
- Structured character prompt nodes for identity, face, body, outfit, pose, scene, narrative, object, meta, and NSFW layers.
- Danbooru dictionary loader and lazy searchable tag selector.
- Vue DOM and legacy canvas frontend support for per-field enable toggles.
- Optional random tag filling with manual and random selections kept separate.
- OpenAI-compatible AI provider nodes for tag analysis, conflict pruning, natural prompt writing, style enhancement, and negative prompt building.
- Prompt viewer and inspector nodes for checking final output.
- Runtime DB builder, AI health check, scene director, prompt orchestrator, quality gate, multi-character coordinator, and versioned composer template packs.
Recommended Prompt Flow
| Step | Node | Purpose |
| --- | --- | --- |
| 1 | GALIAIS-Nodes Danbooru Runtime DB Builder | Build a compact runtime DB from the full dictionary when the dictionary changes. |
| 2 | GALIAIS-Nodes Danbooru DB Loader | Load the DB once and connect its DB output into tag/character nodes. |
| 3 | GALIAIS-Nodes AI Provider + AI Provider Health Check | Configure URL/key/model, optional fast service tier, retries, stream fallback, and verify latency. |
| 4 | 01-10 character nodes | Build identity, face/hair/eyes, body, outfit, pose, scene, narrative, object, meta, and NSFW sections. |
| 5 | GALIAIS-Nodes Multi Character Coordinator | Optional: combine per-role sections into a coherent multi-character relation/layout section. |
| 6 | GALIAIS-Nodes Final Composer | Compose quality, artist, character sections, custom templates, and negatives. |
| 7 | GALIAIS-Nodes Scene Director | Convert selected scene tags into layered foreground/midground/background natural language. |
| 8 | GALIAIS-Nodes Prompt Orchestrator | Run conflict pruning, blueprint generation, optional AI expansion, negative prompt merge, and quality score. |
| 9 | GALIAIS-Nodes Prompt Quality Gate + Prompt Viewer | Review actionable issues and inspect the final positive/negative prompt. |
Reference workflow plan:
docs/workflows/enterprise-character-prompt-workflow.json
For chained AI-assisted field selection, connect both outputs from the previous character node:
文本 -> 上游上下文
角色段 -> 上游提示词段
Installation
Comfy Registry
After the package is published:
comfy node install galiais-nodes
Manual Install
Clone this repository into your ComfyUI custom_nodes directory:
git clone https://github.com/GALIAIS/GALIAIS-Nodes.git ComfyUI/custom_nodes/GALIAIS-Nodes
Restart ComfyUI after installation.
Danbooru Dictionary
The Danbooru database is not bundled with this node package because it can be very large.
Use the GALIAIS-Nodes Danbooru DB Loader node and select your local runtime database.
The text-first database source is maintained separately:
https://github.com/GALIAIS/Danbooru-Tag-Database
Publishing
This repository contains Comfy Registry metadata in pyproject.toml.
Before first publication, verify:
project.nameis the final immutable registry node id.[tool.comfy].PublisherIdexactly matches the publisher id shown after@on the Comfy Registry profile.[project.urls].Repositorypoints to the public GitHub repository.- Optional registry artwork fields such as
IconandBannershould only be added after stable public image URLs are available. - Optional license metadata should be added after the project license is decided.
Manual publish:
comfy node publish
GitHub Actions publish:
- Create a repository secret named
REGISTRY_ACCESS_TOKEN. - Run the
Publish to Comfy registryworkflow manually or push a version tag such asv1.0.1.
The workflow intentionally publishes only on v* tags, so ordinary commits to
main will not push a new registry release.