comfyui-prompt-engineer
Craft model-specific prompts optimized for the target checkpoint and identity method. Handles FLUX, SDXL, SD1.5, and Wan video models with proper syntax, quality tags, and negative prompts. Use when generating or refining prompts for ComfyUI workflows.
What this skill does
# ComfyUI Prompt Engineer
Generates optimized prompts tailored to specific models and identity methods. Different models respond differently to prompts.
## Model-Specific Prompt Rules
### FLUX.1 (dev/schnell/Kontext)
- **Style**: Natural language descriptions work best
- **CFG**: 3.5-4 (very low)
- **Quality tags**: Minimal - FLUX doesn't need "masterpiece, best quality"
- **Length**: Medium (50-100 words)
- **Structure**: `{subject description}, {setting}, {lighting}, {camera/style}`
**Good FLUX prompt:**
```
photorealistic portrait of a woman with auburn hair and green eyes, freckles across
her nose and cheeks, wearing a cream knit sweater, sitting in a cafe with warm ambient
lighting, shallow depth of field, shot on Sony A7IV, 85mm lens
```
**Bad FLUX prompt (too many quality tags):**
```
masterpiece, best quality, 8k uhd, highly detailed, photorealistic portrait...
```
### SDXL (RealVisXL, Juggernaut, etc.)
- **Style**: Quality tags at front help significantly
- **CFG**: 7-9
- **Quality tags**: Include `masterpiece, best quality, photorealistic`
- **Length**: Medium-long (50-150 words)
- **Structure**: `{quality tags}, {trigger word}, {subject}, {details}, {setting}, {style}`
- **Weighted syntax**: Supported `(important:1.3)` or `((very important))`
**Good SDXL prompt:**
```
masterpiece, best quality, sage_character, photorealistic portrait of a woman,
detailed skin texture with freckles, emerald green eyes, auburn copper hair,
natural lighting from window, indoor setting, shallow depth of field,
RAW photo quality, 8k uhd, film grain
```
### SD 1.5
- **Style**: Tag-based works best
- **CFG**: 7-8
- **Quality tags**: Essential
- **Length**: Shorter (30-80 words)
- **Structure**: `{quality}, {trigger}, {subject}, {details}, {style tags}`
### Wan 2.1/2.2 (Video)
- **Style**: Concise motion descriptions
- **CFG**: 5-7
- **Quality tags**: Minimal
- **Length**: Short (20-50 words)
- **Focus**: Describe the motion, not just the appearance
- **Structure**: `{subject}, {action/motion}, {setting}, {quality}`
**Good Wan prompt:**
```
young woman with auburn hair, talking naturally with gentle hand gestures,
seated at a modern desk, soft studio lighting, high quality
```
### AnimateDiff
- **Style**: Same as base model (SD1.5/SDXL) but add motion keywords
- **Motion keywords**: Include camera/subject motion description
- **Length**: Same as base model
## With Identity Methods
### InstantID Prompts
**Key adjustments:**
- DO NOT describe specific facial features (the model provides them)
- DO describe everything else: clothing, pose, setting, lighting
- Keep CFG at 4-5
```
photorealistic portrait, wearing black leather jacket, standing in an alley,
dramatic side lighting, urban setting, moody atmosphere, 8k quality
```
### PuLID Prompts
**Key adjustments:**
- Can include some facial descriptions (PuLID is more tolerant)
- Method "neutral" for realistic, "fidelity" for exact match
- CFG 5-7
```
sage_character, photorealistic portrait, green eyes visible, natural makeup,
professional headshot, neutral grey background, studio lighting
```
### IP-Adapter FaceID
**Key adjustments:**
- Describe the style you want, not the face
- weight_type "style transfer" for 3D→realistic
- Standard CFG for base model
```
photorealistic portrait, DSLR photo quality, natural skin texture,
warm indoor lighting, bokeh background, professional photography
```
### FLUX Kontext (Editing)
**Key adjustments:**
- Describe the EDIT, not the full image
- Be specific about what to change
- Mention what to preserve
```
Change the outfit to a formal black evening dress while keeping the face,
hair, and pose exactly the same. Add subtle jewelry.
```
### With Character LoRA
**Key adjustments:**
- ALWAYS include trigger word first
- Don't describe features the LoRA has learned
- Focus on what varies: pose, clothing, setting, lighting
```
sage_character, standing on a rooftop at sunset, wind blowing hair,
wearing casual summer dress, city skyline behind, golden hour lighting,
cinematic composition
```
## Negative Prompt Templates
### Universal Negative (SDXL/SD1.5)
```
(worst quality:1.4), (low quality:1.4), blurry, deformed, bad anatomy,
bad hands, extra fingers, missing fingers, extra limbs, fused fingers,
text, watermark, signature, jpeg artifacts, username, error
```
### Photorealism Negative
```
3d render, cartoon, anime, illustration, painting, drawing, cgi,
plastic skin, smooth skin, airbrushed, video game, doll, mannequin,
oversaturated, artificial lighting
```
### Video Negative (Wan/AnimateDiff)
```
static, frozen, jerky motion, low quality, blurry, distorted face,
bad anatomy, glitch, artifacts, flickering, jittery, unnatural movement
```
### FLUX Negative (keep minimal)
```
blurry, low quality, distorted, deformed, ugly, watermark, text
```
## Prompt Construction Workflow
1. **Get character profile** from `projects/{project}/characters/{name}/profile.yaml`
2. **Get target model** from inventory/user preference
3. **Apply model rules** from above
4. **Add identity method modifiers** if applicable
5. **Include trigger word** if LoRA is being used
6. **Draft positive + negative** pair
7. **Review against past successes** in character's `generation_history`
8. **Adjust CFG** recommendation based on method stack
## Reference
- `references/prompt-templates.md` - Full template library with examples
- `references/workflows.md` - CFG and sampler settings per workflow
- Character profiles in `projects/` for trigger words and feature descriptions
Related in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.