New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

ComfyUI prompt engineering knowledge covering CLIP text

by artokun · MIT license · ★ 759 on GitHub · updated Sep 21

ComfyUI Prompt Engineering cover

ComfyUI prompt engineering knowledge covering CLIP text encoding syntax, weight modifiers, model-specific prompting strategies, and best practices

---
name: prompt-engineering
description: ComfyUI prompt engineering knowledge covering CLIP text encoding syntax, weight modifiers, model-specific prompting strategies, and best practices
globs:
  - "**/*.json"
---

# ComfyUI Prompt Engineering

## CLIP Text Encoding Fundamentals

ComfyUI uses CLIP (Contrastive Language-Image Pre-training) text encoders to convert text prompts into conditioning tensors. The `CLIPTextEncode` node takes a text string and a CLIP model, producing a `CONDITIONING` output for the KSampler.

### Token Limit

CLIP processes text in **77-token chunks**. Each word is typically 1-3 tokens. Prompts exceeding 77 tokens are silently truncated unless you use the BREAK token or a multi-clip encoding node.

## Weight Syntax

Overview

ComfyUI uses CLIP (Contrastive Language-Image Pre-training) text encoders to convert text prompts into conditioning tensors. The CLIPTextEncode node takes a text string and a CLIP model, producing a CONDITIONING output for the KSampler.

Manual install (npx, ZIP)
Claude Codenpx skills add artokun/comfyui-mcp --skill prompt-engineering -g -a claude-code
Claude Code (manual)mkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/artokun/comfyui-mcp/tar.gz/1d5b12b1b499 \ | tar -xz -C ~/.claude/skills --strip-components=3 comfyui-mcp-1d5b12b1b499/plugin/skills/prompt-engineering
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/33ab44065421b47db679/prompt-engineering.zip" -OutFile "$env:TEMP\prompt-engineering.zip"; Expand-Archive "$env:TEMP\prompt-engineering.zip" -DestinationPath "$HOME\.claude\skills" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md11.5 KB
Read the files here
artokun/1d5b12b1 file
SKILL.md
Show the full text310 lines

ComfyUI Prompt Engineering

CLIP Text Encoding Fundamentals

ComfyUI uses CLIP (Contrastive Language-Image Pre-training) text encoders to convert text prompts into conditioning tensors. The CLIPTextEncode node takes a text string and a CLIP model, producing a CONDITIONING output for the KSampler.

Token Limit

CLIP processes text in 77-token chunks. Each word is typically 1-3 tokens. Prompts exceeding 77 tokens are silently truncated unless you use the BREAK token or a multi-clip encoding node.

Weight Syntax

Emphasis (Attention Weights)

Adjust how strongly the model attends to specific words or phrases:

Syntax Effect Equivalent Weight
(word:1.3) Increase emphasis by 30% Explicit weight 1.3
(word:0.7) Decrease emphasis by 30% Explicit weight 0.7
(word) Slight increase (word:1.1)
((word)) Moderate increase (word:1.21) — 1.1^2
(((word))) Strong increase (word:1.331) — 1.1^3
[word] Slight decrease (word:0.9091) — 1/1.1
[[word]] Moderate decrease (word:0.8264) — 1/1.1^2
Weight Rules
  • Valid range: 0.0 to 2.0 (going beyond 1.5 often causes artifacts)
  • Default weight: 1.0 for unmodified tokens
  • Nesting stacks multiplicatively: ((word)) = 1.1 * 1.1 = (word:1.21)
  • Phrases: (red sports car:1.3) applies weight to the entire phrase
  • Mixing: (detailed face:1.4), (blurry background:0.6), combined in one prompt
Examples
a (beautiful:1.3) woman with (flowing red hair:1.2), wearing a blue dress, (sharp focus:1.1)
(masterpiece:1.4), (best quality:1.3), a knight in (ornate armor:1.2), standing on a cliff, (dramatic lighting:1.1), cinematic

BREAK Token

The BREAK keyword forces CLIP to end the current 77-token chunk and start processing subsequent text in a new chunk. This is critical for long prompts.

When to Use BREAK
  • Prompt exceeds ~60 words (approaching the 77-token limit)
  • You want to separate conceptually distinct parts of the prompt
  • Certain details are being ignored (they may be past the 77-token cutoff)
BREAK Example
masterpiece, best quality, a beautiful Japanese garden with cherry blossoms,
stone lanterns, koi pond, traditional wooden bridge, morning mist
BREAK
highly detailed, 8k uhd, photorealistic, volumetric lighting,
depth of field, golden hour, award-winning photography

Each chunk is encoded independently and then concatenated as conditioning, so all tokens are processed.

Embeddings / Textual Inversions

Embeddings (textual inversions) are pre-trained token sets that encode complex concepts into a single trigger word.

Syntax
embedding:easynegative
embedding:badhandv4
embedding:bad-image-v2-39000
Usage in Prompts
  • Place embedding triggers directly in the prompt text
  • Most commonly used in negative prompts to improve quality
  • The embedding .safetensors or .pt file must be in models/embeddings/
Common Negative Embeddings
Embedding Best For Description
easynegative SD 1.5 General quality improvement
badhandv4 SD 1.5 Fixes hand deformities
bad-image-v2-39000 SD 1.5 Reduces artifacts
negativeXL_D SDXL SDXL-specific negative embedding
ac_neg1 SDXL Alternative SDXL negative
Example with Embeddings

Positive: a portrait of a woman, masterpiece, best quality Negative: embedding:easynegative, embedding:badhandv4, worst quality, low quality

Model-Specific Prompting

SD 1.5

Negative prompt: IMPORTANT. SD 1.5 is sensitive to negatives.

Positive prompt structure:

(masterpiece:1.2), (best quality:1.2), subject description, details, style tags

Recommended negative prompt:

worst quality, low quality, normal quality, lowres, watermark, signature,
text, jpeg artifacts, blurry, bad anatomy, bad hands, extra fingers,
missing fingers, extra limbs, deformed, disfigured, mutation, ugly

Key notes:

  • Quality tags like masterpiece, best quality make a large difference to output
  • Responds well to danbooru-style tags: 1girl, long hair, blue eyes, school uniform
  • Embedding-based negatives (easynegative) work well
  • Keep prompts concise, since each chunk is limited to 77 tokens
SDXL (1.0 / Turbo / Lightning)

Negative prompt: Moderate importance. SDXL is less sensitive to negatives than SD 1.5.

Positive prompt structure:

subject description with natural language, detailed description of scene and style

Recommended negative prompt:

blurry, low quality, deformed, ugly, bad anatomy, disfigured, poorly drawn face,
mutation, mutated, extra limbs, watermark, text

Key notes:

  • SDXL understands natural language better than tag-based prompts
  • Dual CLIP encoders (CLIP-L + CLIP-G). Use CLIPTextEncodeSDXL for separate control
  • CLIPTextEncodeSDXL has separate text_g (global description) and text_l (local details) fields
  • Supports longer prompts natively (two 77-token chunks via dual CLIP)
  • Quality tags are less critical but still helpful
  • SDXL Turbo: 1-4 steps, CFG 1.0-2.0, minimal negative prompt needed
  • SDXL Lightning: 4-8 steps, CFG 1.0-2.0, often works with empty negative
Flux (Flux.1 schnell / dev)

Negative prompt: NOT USED. Flux operates at CFG=1.0 with no negative conditioning.

Positive prompt structure:

Detailed natural language description. Flux excels with descriptive sentences
rather than comma-separated tags. Describe the scene as if writing a paragraph.

Key notes:

  • CFG must be 1.0. Higher values cause artifacts
  • No negative prompt. Connect nothing or empty string to negative conditioning
  • T5-XXL encoder understands complex sentences and spatial relationships
  • Flux handles compositional prompts better than SD models
  • Longer prompts (200+ tokens) work well thanks to T5 encoder
  • Prompt structure: describe the scene naturally, like a caption
  • Schnell: 4 steps, simple scheduler
  • Dev: 20-50 steps, sgm_uniform scheduler
Flux Prompt Example
A serene Japanese garden in autumn. A stone path leads through a grove of maple
trees with bright red and orange leaves. A small wooden bridge crosses a koi pond
where golden fish swim beneath the surface. Morning mist rises from the water,
and soft sunlight filters through the canopy. The scene is photorealistic with
warm, natural lighting and shallow depth of field.
SD3 / SD3.5

Negative prompt: Minimal. SD3 needs little negative guidance.

Positive prompt structure:

Natural language description, supports very long detailed prompts thanks to T5-XXL

Key notes:

  • Triple CLIP architecture: CLIP-L + CLIP-G + T5-XXL
  • Supports much longer prompts than SD 1.5 or SDXL
  • Natural language works better than tag-based prompting
  • CFG 4-7 (lower than SD 1.5)
  • Minimal negatives needed. low quality, blurry is usually sufficient
  • Use CLIPTextEncodeSD3 node for model-specific encoding if available

Prompt Structure Best Practices

  1. Quality modifiers (if SD 1.5/SDXL): masterpiece, best quality, highly detailed
  2. Subject: a young woman, a cyberpunk cityscape, a golden retriever
  3. Subject details: with long flowing red hair, wearing a white dress
  4. Action/pose: standing in a field, looking at the camera, running
  5. Environment: in a sunlit meadow, at night in a neon-lit street
  6. Composition: close-up portrait, full body shot, wide angle
  7. Lighting: dramatic lighting, soft natural light, studio lighting, golden hour
  8. Style/medium: oil painting, photograph, digital art, watercolor, anime
  9. Technical quality: 8k, uhd, photorealistic, sharp focus, depth of field
Quality Boosters

These tokens generally improve output quality across SD 1.5 and SDXL:

masterpiece, best quality, highly detailed, 8k, photorealistic,
ultra-detailed, sharp focus, professional, award-winning

For photorealism specifically:

photorealistic, hyperrealistic, RAW photo, DSLR, 8k uhd,
film grain, Fujifilm XT3, sharp focus, natural lighting

For anime/illustration:

masterpiece, best quality, highly detailed, anime,
beautiful detailed eyes, detailed face, illustration

LoRA Trigger Words

LoRA (Low-Rank Adaptation) models are fine-tuned on specific concepts and require their trigger words to activate the learned concept.

Rules
  • Trigger words are specific to each LoRA. Check the LoRA's model page for its triggers
  • Place trigger words in the prompt naturally: a photo of ohwx woman in a garden (where ohwx is the trigger)
  • Some LoRAs use style triggers: in the style of pixar3d
  • Multiple LoRAs can be stacked, but each needs its own trigger word in the prompt
  • LoRA strength (in the LoraLoader node) interacts with prompt weight. Usually keep one at default
Common Patterns
# Character LoRA
a photo of sks person, wearing casual clothes, in a park

# Style LoRA
a landscape painting, autumn forest, in the style of impressionism, masterpiece

# Concept LoRA
a character wearing mecha_armor, standing in a battlefield, detailed

Wildcards and Dynamic Prompts

If ComfyUI-Impact-Pack or a wildcard node pack is installed, you can use dynamic prompt syntax:

Wildcard Syntax
a {red|blue|green|yellow} car parked on a {sunny|rainy|snowy} street

Each {option1|option2|option3} randomly selects one option per generation.

Wildcard Files

Wildcard .txt files (one option per line) can be referenced:

a __haircolor__ haired woman wearing a __clothing__ in __location__

Where haircolor.txt, clothing.txt, and location.txt are in the wildcards directory.

CLIPTextEncode Variants

Node Use Case Notes
CLIPTextEncode Standard single-CLIP encoding Works with all models
CLIPTextEncodeSDXL SDXL dual-CLIP with separate G/L fields Better SDXL control
CLIPTextEncodeSD3 SD3 triple-CLIP encoding For SD3/SD3.5 models
CLIPTextEncodeFlux Flux T5-based encoding For Flux models
ConditioningCombine Merge two conditionings Stack different prompt aspects
ConditioningSetArea Regional prompting Apply conditioning to specific image areas
ConditioningSetMask Mask-based conditioning Apply prompt only where mask is active

Common Prompting Mistakes

  1. Using negative prompts with Flux: Flux ignores negatives and CFG > 1 causes artifacts
  2. Tag-based prompts for Flux/SD3: These models prefer natural language descriptions
  3. Exceeding 77 tokens without BREAK: Tokens past the limit are silently dropped
  4. Weight > 1.5: Causes color bleeding, artifacts, and distortion
  5. Conflicting terms: (bright:1.3) (dark:1.3) confuses the model
  6. Embedding without file: Using embedding:name without the .safetensors file installed causes errors
  7. Wrong LoRA trigger words: The prompt must contain the exact trigger word(s) for the LoRA to activate
  8. Quality tags in Flux prompts: masterpiece, best quality are meaningless for Flux. Describe quality naturally

Sources

  • Official: none found as a dedicated vendor prompting guide. CLIP (word:1.2) attention is community convention (A1111/ComfyUI), not a model-vendor spec.
  • Empirical: model-specific notes (Flux CFG=1, SD 1.5 quality tags, BREAK token) from observed ComfyUI behaviour.
1---
2name: prompt-engineering
3description: ComfyUI prompt engineering knowledge covering CLIP text encoding syntax, weight modifiers, model-specific prompting strategies, and best practices
4globs:
5 - "**/*.json"
6---
7 
8# ComfyUI Prompt Engineering
9 
10## CLIP Text Encoding Fundamentals
11 
12ComfyUI uses CLIP (Contrastive Language-Image Pre-training) text encoders to convert text prompts into conditioning tensors. The `CLIPTextEncode` node takes a text string and a CLIP model, producing a `CONDITIONING` output for the KSampler.
13 
14### Token Limit
15 
16CLIP processes text in **77-token chunks**. Each word is typically 1-3 tokens. Prompts exceeding 77 tokens are silently truncated unless you use the BREAK token or a multi-clip encoding node.
17 
18## Weight Syntax
19 
20### Emphasis (Attention Weights)
21 
22Adjust how strongly the model attends to specific words or phrases:
23 
24| Syntax | Effect | Equivalent Weight |
25|--------|--------|-------------------|
26| `(word:1.3)` | Increase emphasis by 30% | Explicit weight 1.3 |
27| `(word:0.7)` | Decrease emphasis by 30% | Explicit weight 0.7 |
28| `(word)` | Slight increase | `(word:1.1)` |
29| `((word))` | Moderate increase | `(word:1.21)` — 1.1^2 |
30| `(((word)))` | Strong increase | `(word:1.331)` — 1.1^3 |
31| `[word]` | Slight decrease | `(word:0.9091)` — 1/1.1 |
32| `[[word]]` | Moderate decrease | `(word:0.8264)` — 1/1.1^2 |
33 
34### Weight Rules
35 
36- **Valid range**: 0.0 to 2.0 (going beyond 1.5 often causes artifacts)
37- **Default weight**: 1.0 for unmodified tokens
38- **Nesting stacks multiplicatively**: `((word))` = 1.1 * 1.1 = `(word:1.21)`
39- **Phrases**: `(red sports car:1.3)` applies weight to the entire phrase
40- **Mixing**: `(detailed face:1.4), (blurry background:0.6)`, combined in one prompt
41 
42### Examples
43 
44```
45a (beautiful:1.3) woman with (flowing red hair:1.2), wearing a blue dress, (sharp focus:1.1)
46```
47 
48```
49(masterpiece:1.4), (best quality:1.3), a knight in (ornate armor:1.2), standing on a cliff, (dramatic lighting:1.1), cinematic
50```
51 
52## BREAK Token
53 
54The `BREAK` keyword forces CLIP to end the current 77-token chunk and start processing subsequent text in a new chunk. This is critical for long prompts.
55 
56### When to Use BREAK
57 
58- Prompt exceeds ~60 words (approaching the 77-token limit)
59- You want to separate conceptually distinct parts of the prompt
60- Certain details are being ignored (they may be past the 77-token cutoff)
61 
62### BREAK Example
63 
64```
65masterpiece, best quality, a beautiful Japanese garden with cherry blossoms,
66stone lanterns, koi pond, traditional wooden bridge, morning mist
67BREAK
68highly detailed, 8k uhd, photorealistic, volumetric lighting,
69depth of field, golden hour, award-winning photography
70```
71 
72Each chunk is encoded independently and then concatenated as conditioning, so all tokens are processed.
73 
74## Embeddings / Textual Inversions
75 
76Embeddings (textual inversions) are pre-trained token sets that encode complex concepts into a single trigger word.
77 
78### Syntax
79 
80```
81embedding:easynegative
82embedding:badhandv4
83embedding:bad-image-v2-39000
84```
85 
86### Usage in Prompts
87 
88- Place embedding triggers directly in the prompt text
89- Most commonly used in **negative prompts** to improve quality
90- The embedding `.safetensors` or `.pt` file must be in `models/embeddings/`
91 
92### Common Negative Embeddings
93 
94| Embedding | Best For | Description |
95|-----------|----------|-------------|
96| `easynegative` | SD 1.5 | General quality improvement |
97| `badhandv4` | SD 1.5 | Fixes hand deformities |
98| `bad-image-v2-39000` | SD 1.5 | Reduces artifacts |
99| `negativeXL_D` | SDXL | SDXL-specific negative embedding |
100| `ac_neg1` | SDXL | Alternative SDXL negative |
101 
102### Example with Embeddings
103 
104Positive: `a portrait of a woman, masterpiece, best quality`
105Negative: `embedding:easynegative, embedding:badhandv4, worst quality, low quality`
106 
107## Model-Specific Prompting
108 
109### SD 1.5
110 
111**Negative prompt: IMPORTANT. SD 1.5 is sensitive to negatives.**
112 
113Positive prompt structure:
114```
115(masterpiece:1.2), (best quality:1.2), subject description, details, style tags
116```
117 
118Recommended negative prompt:
119```
120worst quality, low quality, normal quality, lowres, watermark, signature,
121text, jpeg artifacts, blurry, bad anatomy, bad hands, extra fingers,
122missing fingers, extra limbs, deformed, disfigured, mutation, ugly
123```
124 
125Key notes:
126- Quality tags like `masterpiece, best quality` make a large difference to output
127- Responds well to danbooru-style tags: `1girl, long hair, blue eyes, school uniform`
128- Embedding-based negatives (`easynegative`) work well
129- Keep prompts concise, since each chunk is limited to 77 tokens
130 
131### SDXL (1.0 / Turbo / Lightning)
132 
133**Negative prompt: Moderate importance. SDXL is less sensitive to negatives than SD 1.5.**
134 
135Positive prompt structure:
136```
137subject description with natural language, detailed description of scene and style
138```
139 
140Recommended negative prompt:
141```
142blurry, low quality, deformed, ugly, bad anatomy, disfigured, poorly drawn face,
143mutation, mutated, extra limbs, watermark, text
144```
145 
146Key notes:
147- SDXL understands natural language better than tag-based prompts
148- Dual CLIP encoders (CLIP-L + CLIP-G). Use `CLIPTextEncodeSDXL` for separate control
149- `CLIPTextEncodeSDXL` has separate `text_g` (global description) and `text_l` (local details) fields
150- Supports longer prompts natively (two 77-token chunks via dual CLIP)
151- Quality tags are less critical but still helpful
152- **SDXL Turbo**: 1-4 steps, CFG 1.0-2.0, minimal negative prompt needed
153- **SDXL Lightning**: 4-8 steps, CFG 1.0-2.0, often works with empty negative
154 
155### Flux (Flux.1 schnell / dev)
156 
157**Negative prompt: NOT USED. Flux operates at CFG=1.0 with no negative conditioning.**
158 
159Positive prompt structure:
160```
161Detailed natural language description. Flux excels with descriptive sentences
162rather than comma-separated tags. Describe the scene as if writing a paragraph.
163```
164 
165Key notes:
166- **CFG must be 1.0.** Higher values cause artifacts
167- **No negative prompt.** Connect nothing or empty string to negative conditioning
168- T5-XXL encoder understands complex sentences and spatial relationships
169- Flux handles compositional prompts better than SD models
170- Longer prompts (200+ tokens) work well thanks to T5 encoder
171- Prompt structure: describe the scene naturally, like a caption
172- Schnell: 4 steps, simple scheduler
173- Dev: 20-50 steps, sgm_uniform scheduler
174 
175### Flux Prompt Example
176 
177```
178A serene Japanese garden in autumn. A stone path leads through a grove of maple
179trees with bright red and orange leaves. A small wooden bridge crosses a koi pond
180where golden fish swim beneath the surface. Morning mist rises from the water,
181and soft sunlight filters through the canopy. The scene is photorealistic with
182warm, natural lighting and shallow depth of field.
183```
184 
185### SD3 / SD3.5
186 
187**Negative prompt: Minimal. SD3 needs little negative guidance.**
188 
189Positive prompt structure:
190```
191Natural language description, supports very long detailed prompts thanks to T5-XXL
192```
193 
194Key notes:
195- Triple CLIP architecture: CLIP-L + CLIP-G + T5-XXL
196- Supports much longer prompts than SD 1.5 or SDXL
197- Natural language works better than tag-based prompting
198- CFG 4-7 (lower than SD 1.5)
199- Minimal negatives needed. `low quality, blurry` is usually sufficient
200- Use `CLIPTextEncodeSD3` node for model-specific encoding if available
201 
202## Prompt Structure Best Practices
203 
204### Recommended Order
205 
2061. **Quality modifiers** (if SD 1.5/SDXL): `masterpiece, best quality, highly detailed`
2072. **Subject**: `a young woman, a cyberpunk cityscape, a golden retriever`
2083. **Subject details**: `with long flowing red hair, wearing a white dress`
2094. **Action/pose**: `standing in a field, looking at the camera, running`
2105. **Environment**: `in a sunlit meadow, at night in a neon-lit street`
2116. **Composition**: `close-up portrait, full body shot, wide angle`
2127. **Lighting**: `dramatic lighting, soft natural light, studio lighting, golden hour`
2138. **Style/medium**: `oil painting, photograph, digital art, watercolor, anime`
2149. **Technical quality**: `8k, uhd, photorealistic, sharp focus, depth of field`
215 
216### Quality Boosters
217 
218These tokens generally improve output quality across SD 1.5 and SDXL:
219 
220```
221masterpiece, best quality, highly detailed, 8k, photorealistic,
222ultra-detailed, sharp focus, professional, award-winning
223```
224 
225For photorealism specifically:
226```
227photorealistic, hyperrealistic, RAW photo, DSLR, 8k uhd,
228film grain, Fujifilm XT3, sharp focus, natural lighting
229```
230 
231For anime/illustration:
232```
233masterpiece, best quality, highly detailed, anime,
234beautiful detailed eyes, detailed face, illustration
235```
236 
237## LoRA Trigger Words
238 
239LoRA (Low-Rank Adaptation) models are fine-tuned on specific concepts and require their **trigger words** to activate the learned concept.
240 
241### Rules
242 
243- Trigger words are **specific to each LoRA**. Check the LoRA's model page for its triggers
244- Place trigger words in the prompt naturally: `a photo of ohwx woman in a garden` (where `ohwx` is the trigger)
245- Some LoRAs use style triggers: `in the style of pixar3d`
246- Multiple LoRAs can be stacked, but each needs its own trigger word in the prompt
247- LoRA strength (in the `LoraLoader` node) interacts with prompt weight. Usually keep one at default
248 
249### Common Patterns
250 
251```
252# Character LoRA
253a photo of sks person, wearing casual clothes, in a park
254 
255# Style LoRA
256a landscape painting, autumn forest, in the style of impressionism, masterpiece
257 
258# Concept LoRA
259a character wearing mecha_armor, standing in a battlefield, detailed
260```
261 
262## Wildcards and Dynamic Prompts
263 
264If **ComfyUI-Impact-Pack** or a wildcard node pack is installed, you can use dynamic prompt syntax:
265 
266### Wildcard Syntax
267 
268```
269a {red|blue|green|yellow} car parked on a {sunny|rainy|snowy} street
270```
271 
272Each `{option1|option2|option3}` randomly selects one option per generation.
273 
274### Wildcard Files
275 
276Wildcard `.txt` files (one option per line) can be referenced:
277```
278a __haircolor__ haired woman wearing a __clothing__ in __location__
279```
280 
281Where `haircolor.txt`, `clothing.txt`, and `location.txt` are in the wildcards directory.
282 
283## CLIPTextEncode Variants
284 
285| Node | Use Case | Notes |
286|------|----------|-------|
287| `CLIPTextEncode` | Standard single-CLIP encoding | Works with all models |
288| `CLIPTextEncodeSDXL` | SDXL dual-CLIP with separate G/L fields | Better SDXL control |
289| `CLIPTextEncodeSD3` | SD3 triple-CLIP encoding | For SD3/SD3.5 models |
290| `CLIPTextEncodeFlux` | Flux T5-based encoding | For Flux models |
291| `ConditioningCombine` | Merge two conditionings | Stack different prompt aspects |
292| `ConditioningSetArea` | Regional prompting | Apply conditioning to specific image areas |
293| `ConditioningSetMask` | Mask-based conditioning | Apply prompt only where mask is active |
294 
295## Common Prompting Mistakes
296 
2971. **Using negative prompts with Flux**: Flux ignores negatives and CFG > 1 causes artifacts
2982. **Tag-based prompts for Flux/SD3**: These models prefer natural language descriptions
2993. **Exceeding 77 tokens without BREAK**: Tokens past the limit are silently dropped
3004. **Weight > 1.5**: Causes color bleeding, artifacts, and distortion
3015. **Conflicting terms**: `(bright:1.3) (dark:1.3)` confuses the model
3026. **Embedding without file**: Using `embedding:name` without the `.safetensors` file installed causes errors
3037. **Wrong LoRA trigger words**: The prompt must contain the exact trigger word(s) for the LoRA to activate
3048. **Quality tags in Flux prompts**: `masterpiece, best quality` are meaningless for Flux. Describe quality naturally
305 
306## Sources
307 
308- **Official:** none found as a dedicated vendor prompting guide. CLIP `(word:1.2)` attention is community convention (A1111/ComfyUI), not a model-vendor spec.
309- **Empirical:** model-specific notes (Flux CFG=1, SD 1.5 quality tags, BREAK token) from observed ComfyUI behaviour.
310 
View all files on GitHub →

Details

Updated
Sep 21, 2026
License
MIT
Stars on the repo
★ 759
Checked
Source
artokun/comfyui-mcp ↗
Creator
artokun · 44 listings
View creator

Similar skills

See all →
SkillMake Japanese TV-anime style videos with codeAnime celedenfunf/reelmimic · by edenfunfMake Japanese TV-anime style videos (MP4) with code — cel-shaded characters with tapered line art, big detailed eyes, hair clumps with a specular band, comedic anime reactions (sweat drop, anger vein, sparkle eyes, ≥< eyes, dot eyes, tears), painted skies with cumulus clouds, school/street/classroom/rooftop sets with time-of-day palettes, speed/focus lines, impact frames, dramatic zooms, smears, sakura petals and anime subtitles (CJK). Canvas 2D rendered frame by frame in headless Chrome, encoded with ffmpeg. Use when a reference video or brief calls for anime / 動畫 / 日系動畫 / アニメ / cel-shaded / slice-of-life / school romance / shōnen-style reactions, or when the video-clone router picks the anime-cel style. 2D only; characters are original (Hina, Ren) or new ones built on the same rig.★ 3.6k GitHub starsSkillDirect and produce a short film made entirely in codeLemo opuscarlemomo-ai/lemo-opuscar · by lemomo-aiDirect and produce a short film made entirely in code, in one of the styles of the Lemo-Opuscar library (e.g. Impasto Oil Painting 油画厚涂, Watercolor Brush 水彩笔刷, Ukiyo-e 浮世绘, Satellite Briefing 卫星简报, Exploded Teardown 产品拆解, Microscope Story 显微叙事). Use when the user asks for a video, film, short, promo, explainer or animation (视频、短片、动画、宣传片) in a named style, including data, science and product explainers built from real material such as satellite imagery, laser scans, CAD files or archive scans (数据解说、科普、产品拆解); when they want a film made about their own topic and haven't chosen a style (help them choose); or when they ask which film styles there are. Not for editing or converting existing video files.★ 3k GitHub starsSkillGenerate Ian-style Xiaohei illustrations for articles, postsdzhng/skills · by dzhngGenerate Ian-style Xiaohei illustrations for articles, posts, blogs, Notion documents, workflows, methods, processes, structures, states, metaphors, and opinions. Use when the user asks for weird, hand-drawn, Xiaohei, article, editorial, body illustrations, illustration ideas, shot lists, title removal, image edits, or image regeneration. By default, all image text and annotations are English, even when the source article is Chinese; only use another language when the user explicitly asks.★ 1.3k GitHub starsSkillCreating game art through Scenario MCP: spritesScenario game assetsscenario-labs/skills · by scenario-labsUse when creating game art through Scenario MCP: sprites, sprite sheets, icons, props, loot, tilesets and autotile terrain transitions, seamless tiles, isometric buildings, top-down maps, pixel art, UI buttons and panels, parallax background layers or depth planes for side-scrollers, and character or concept art; or when assets need transparent backgrounds, background removal, style-consistent variation batches, upscaling, pixel-grid cleanup, or PNG export for Unity, Godot, or Unreal.★ 854 GitHub starsSkillTrain custom LoRAs with ostris AI-ToolkitAI-Toolkit LoRA Trainer (WAN 2.2 & Z-Image)artokun/comfyui-mcp · by artokunTrain custom LoRAs with ostris AI-Toolkit. Covers WAN 2.2/2.1 (people, styles, video motion) and Z-Image (Turbo & Base, low-VRAM image LoRAs). Use when the user wants to train a WAN or Z-Image LoRA; covers local + RunPod setup, dataset prep, key params, and using the result in a ComfyUI workflow.★ 759 GitHub starsSkillAnime/illustration text-to-imageANIMA 1.0 (Anima Base Ultra) Text-to-Image Workflowsartokun/comfyui-mcp · by artokunAnime/illustration text-to-image (ANIMA 1.0, ~2B Cosmos DiT). Use for anime, manga, illustrated characters; accepts Danbooru tags + natural language; runs/trains on <6GB VRAM; includes anime inpainting via Anima-LLLite ControlNet★ 759 GitHub stars

More from artokun

SkillTrain custom LoRAs with ostris AI-ToolkitAI-Toolkit LoRA Trainer (WAN 2.2 & Z-Image)artokun/comfyui-mcp · by artokunTrain custom LoRAs with ostris AI-Toolkit. Covers WAN 2.2/2.1 (people, styles, video motion) and Z-Image (Turbo & Base, low-VRAM image LoRAs). Use when the user wants to train a WAN or Z-Image LoRA; covers local + RunPod setup, dataset prep, key params, and using the result in a ComfyUI workflow.★ 759 GitHub starsSkillAnime/illustration text-to-imageANIMA 1.0 (Anima Base Ultra) Text-to-Image Workflowsartokun/comfyui-mcp · by artokunAnime/illustration text-to-image (ANIMA 1.0, ~2B Cosmos DiT). Use for anime, manga, illustrated characters; accepts Danbooru tags + natural language; runs/trains on <6GB VRAM; includes anime inpainting via Anima-LLLite ControlNet★ 759 GitHub starsSkillAuthoring & Publishing ComfyUI Custom Nodesartokun/comfyui-mcp · by artokunAuthoring & publishing ComfyUI custom nodes to the Comfy Registry, covering node structure, pyproject.toml spec, comfy-cli publishing, and CI★ 759 GitHub starsSkillTrain a custom anime LoRA on the ANIMA base modelCitron Anima LoRA Trainerartokun/comfyui-mcp · by artokunTrain a custom anime LoRA on the ANIMA base model with Citron's local Gradio trainer (kohya sd-scripts), <6GB VRAM, character/style LoRAs; covers setup, dataset prep, training params, and using the result in the anima-base workflow★ 759 GitHub starsSkillDiscover Civitai models with the BUILT-IN downloadmodelCivitai + comfyui-mcpartokun/comfyui-mcp · by artokunDiscover Civitai models with the BUILT-IN download_model action:"search_civitai" and install/generate them locally. Find a checkpoint/LoRA/embedding on Civitai, download it into ComfyUI, and use its trigger words. Optionally pair the official Civitai MCP for community features (images browsing, posting, collections).★ 759 GitHub starsSkillDiagnose and fix video/image color OBJECTIVELYColor Correction (measure, don't eyeball)artokun/comfyui-mcp · by artokunDiagnose and fix video/image color OBJECTIVELY with the get_image (action:"analyze_color") tool (scopes/stats such as black/white points, contrast, saturation, clipping, cast) instead of eyeballing a contact sheet. Covers the "washed out" signature, why reference color-match (mkl/ColorMatch/ColorMatchAdobe) CAN'T add contrast a flat source lacks, the levels/contrast-stretch fix (core AdjustContrast / CurveEditor), the measure→fix→re-measure loop, the side-by-side sandbox pattern, and where to place the fix in a render graph (after decode, before save). Use when a render looks washed out / flat / dull / over-saturated / color-cast, or when deciding between a color-match and a contrast/levels fix.★ 759 GitHub stars