flux-best-practices
Comprehensive guide for BFL FLUX image generation models. Covers prompting, T2I, I2I, structured JSON, hex colors, typography, multi-reference editing, and model-specific best practices for FLUX.2 and FLUX.1 families.
What this skill does
# FLUX Best Practices Use this skill when generating prompts for any BFL FLUX model to ensure optimal image quality and accurate prompt interpretation. ## When to Use - Creating prompts for FLUX.2 or FLUX.1 models - Text-to-image (T2I) generation - Image-to-image (I2I) editing with FLUX.2 models - Structured scene generation with JSON - Typography and text rendering - Multi-reference style transfer - Color-accurate brand generations ## Quick Reference ### Prompt Structure Formula ``` [Subject] + [Action/Pose] + [Style/Medium] + [Context/Setting] + [Lighting] + [Camera/Technical] ``` ### Model Selection | Use Case | Recommended Model | Notes | | ------------------- | ----------------- | -------------------------------------- | | Fastest generation | FLUX.2 [klein] | 4B or 9B, sub-second | | Highest quality | FLUX.2 [max] | Best detail, grounding search | | Production balanced | FLUX.2 [pro] | Quality + speed | | Typography/text | FLUX.2 [flex] | Best text rendering | | Local/development | FLUX.2 [dev] | Open weights | | Image editing | FLUX.2 [pro/max] | Pass image URL directly to input_image | | Inpainting | FLUX.1 Fill | Object removal/completion | | Context editing | FLUX.1 Kontext | Older model, prefer FLUX.2 | ### Critical Rules 1. **NO negative prompts** - FLUX does not support negative prompts; describe what you want 2. **Be specific** - Vague prompts produce mediocre results 3. **Use natural language** - Prose/narrative style works best 4. **Specify lighting** - Lighting has the biggest impact on quality 5. **Quote text** - Use "quoted text" for typography rendering 6. **Hex colors** - Use #RRGGBB format with color description ## Related For API integration (endpoints, polling, webhooks), see the **bfl-api** skill. ## Rules Reference Read individual rule files for detailed guidance: - [rules/core-principles.md](rules/core-principles.md) - Universal FLUX prompting principles - [rules/flux2-models.md](rules/flux2-models.md) - FLUX.2 family: klein, max, pro, flex, dev - [rules/flux1-models.md](rules/flux1-models.md) - FLUX.1 family: older generation of FLUX.2 models - pro, Kontext, Fill - [rules/t2i-prompting.md](rules/t2i-prompting.md) - Text-to-image prompting patterns - [rules/i2i-prompting.md](rules/i2i-prompting.md) - Image-to-image editing with FLUX.2 - [rules/json-structured-prompting.md](rules/json-structured-prompting.md) - Complex scene composition - [rules/hex-color-prompting.md](rules/hex-color-prompting.md) - Precise color specification - [rules/typography-text.md](rules/typography-text.md) - Text rendering and typography - [rules/multi-reference-editing.md](rules/multi-reference-editing.md) - Multi-image references - [rules/negative-prompt-alternatives.md](rules/negative-prompt-alternatives.md) - Positive alternatives - [rules/model-selection-guide.md](rules/model-selection-guide.md) - Choosing the right model ## Example Prompt ``` A weathered fisherman in his 70s with deep wrinkles and a salt-and-pepper beard, wearing a navy cable-knit sweater, standing at the helm of his wooden boat. Golden hour sunlight from the left creates dramatic rim lighting on his profile. Shot on Hasselblad with 85mm lens at f/2.8, shallow depth of field with harbor lights creating soft bokeh in the background. Kodak Portra 400 color science. ```
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.