Nodes/Shima/Shima Master Prompt
ComfyUI Node

Shima Master Prompt

One prompt box that knows whether you're on SDXL, Flux, or SD1.5

By KDB-USJP·Created 6 months ago·Updated 6 months ago· 2
Shima Master Prompt
  • shima.commonparams
  • shima.controlbus
  • modelcitizen.bndl
  • model_override
  • clip_override
  • vae_override
  • panelinputs.bndl
  • positive
  • negative
  • CLIP_L_ONLY
  • CLIP_G_ONLY
  • T5_ONLY
  • vae
  • pos_string
  • neg_string
  • masterprompt.bndl
positivePositive Prompt
negativeNegative Prompt
model_type
clip_l_weight1.00
positive_l
negative_l
clip_g_weight1.00
positive_g
negative_g
t5_weight1.00
positive_t5
negative_t5
flux_guidance3.5
lumina_sysprompt
use_commonparamstrue
allow_external_linkingfalse
show_used_valuesfalse
model_type_override

Shima Master Prompt is the pack's conditioning hub: one node that takes your prompt and produces ready-to-sample conditioning, and it adapts which text encoders it uses based on the model you're actually running. Set model_type to SD1.5 and it uses the single CLIP. Pick SDXL and it layers CLIP-L and CLIP-G with independent weights. Pick SD3 or Flux and it adds a T5 field for natural-language prompting. The same node carries you across three generations of architectures without you rebuilding the graph.

This matters because "CLIP Text Encode" is fine until it isn't. SDXL genuinely benefits from splitting style (CLIP-L) from subject (CLIP-G); Flux and SD3 want a T5 encoder that understands full sentences. Doing that with stock nodes means a different wiring diagram per model. Master Prompt collapses it into one node with the L/G/T5 fields and per-encoder weight sliders, so you get the correct encoder wiring without re-plumbing.

The inputs that matter

  • positive / negative - the main prompt boxes, always present. Everything else is supplementary.
  • model_type - 14 choices (sdxl, sd1.5, sd2.x, sd3, flux, pony, illustrious, auraflow, hunyuan, lumina2, chroma, hidream, two z-image variants). The boss input that decides which encoders are live.
  • positive_l / negative_l (style/detail), positive_g / negative_g (subject), positive_t5 / negative_t5 (natural language) - the per-encoder fields, with clip_l_weight, clip_g_weight, t5_weight sliders to balance them. Leave the encoder fields empty and the main prompt is used for that encoder.
  • flux_guidance - guidance scale for Flux/Chroma, auto-applied when model_type is flux or chroma.
  • modelcitizen.bndl - plug the Model Citizen bundle here and it pulls the CLIP from it; clip_override / model_override / vae_override give manual overrides.

Outputs are the meat: positive and negative conditioning straight into your sampler, plus CLIP_L_ONLY, CLIP_G_ONLY, T5_ONLY conditioning (handy for debugging or chaining), the resolved vae, the final pos_string/neg_string, and a masterprompt.bndl for the panel system.

Install & what to expect

cd ComfyUI/custom_nodes
git clone https://github.com/KDB-USJP/shima_wf

then restart, or ComfyUI Manager → search "Shima". No models of its own - it encodes with whatever CLIP your Model Citizen (or override) provides.

The honest caveat: the pack's 14 "model types" don't all have fully distinct encoder handling, and some (like the z-image entries) map onto the same flux/16-channel family. If you're on a mainstream model, this behaves well; treat the exotic list as aspirational, not a guarantee. Also note use_commonparams defaults to true, so if you have a Shima.Commons wire attached it overrides model_type - disconnect it if your model type keeps "reverting." Compared to stock dual CLIP encoding, this is a genuine quality-of-life win for SDXL/Flux users, which is most people by now.

CategoryShima/Conditioning

Inputs (25)

NameTypeDefaultDescription
positiveSTRINGPositive PromptMain positive prompt
negativeSTRINGNegative PromptMain negative prompt
model_typeCOMBO14 options: sdxl, sd1.5, sd2.x, sd3, flux, pony, +8
shima.commonparamsoptDICTConnect Shima.Commons bundle here
shima.controlbusoptLISTConnect ControlNet chain here
modelcitizen.bndloptBNDLBundle containing CLIP (overrides individual inputs)
clip_l_weightoptFLOAT1.000–10
positive_loptSTRINGCLIP-L Positive (SDXL/SD3 style/detail)
negative_loptSTRING
clip_g_weightoptFLOAT1.000–10
positive_goptSTRINGCLIP-G Positive (SDXL/SD3 subject)
negative_goptSTRING
t5_weightoptFLOAT1.000–10
positive_t5optSTRINGT5 Positive (SD3/Flux complex text)
negative_t5optSTRING
flux_guidanceoptFLOAT3.50–100Guidance scale for Flux/Chroma models (auto-applied when model_type is flux or chroma)
lumina_syspromptoptSTRINGSystem prompt prefix for Lumina2. Leave blank to use the default. Only used when model_type is lumina2.
use_commonparamsoptBOOLEANtrueIf True, use model_type from Shima.Commons bundle.
allow_external_linkingoptBOOLEANfalseAllow connections outside the Island
show_used_valuesoptBOOLEANfalseShow actual values being used (debug)
model_type_overrideoptSTRINGOverride model_type selection
model_overrideoptMODELOptional model override
clip_overrideoptCLIPOptional CLIP override
vae_overrideoptVAEOptional VAE override
panelinputs.bndloptBNDLOverrides panel settings using an external PanelBNDLer node

Outputs (9)

NameTypeDescription
positiveCONDITIONING
negativeCONDITIONING
CLIP_L_ONLYCONDITIONING
CLIP_G_ONLYCONDITIONING
T5_ONLYCONDITIONING
vaeVAE
pos_stringSTRING
neg_stringSTRING
masterprompt.bndlBNDL