Flux Best Practices

calesthio/OpenMontage/.claude/skills/flux-best-practices

作者 calesthio9327439db69021ab4b0e2776729bf3b58fdb5a87无许可证65K 个星标收录于 2026年10月9日更新于 2026年10月9日仓库5天前更新

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.

AI 生成的概览

指导为 Black Forest Labs FLUX 图像生成模型编写提示词,涵盖文生图、图像编辑与模型选择。

功能
该技能为编写 BFL FLUX 图像生成模型的提示词提供参考指导。内容涵盖提示词结构、FLUX.2 与 FLUX.1 系列的模型选择、文生图与图生图模式、结构化 JSON 场景提示词、十六进制颜色指定、文字排版渲染以及多参考图编辑。产出的是提示词指导与示例,而非图像或代码。
适用场景
适用于为任意 BFL FLUX 模型编写或优化提示词,包括文生图、图生图编辑、结构化场景构图、文字排版以及颜色准确的品牌创作。也可用于判断某个使用场景适合哪种 FLUX 模型。
运行要求
无需脚本或运行时依赖,仅为说明与参考文档。API 集成不在范围内,交由另一项技能处理。

FLUX Best Practices

Use this skill when generating prompts for any BFL FLUX model to ensure optimal image quality and accurate prompt interpretation.

Extended reference: AGENTS.md [blocked] in this directory is the long-form upstream FLUX guide (vendored from Black Forest Labs). It is supplementary reference material scoped to this skill only — SKILL.md is the loadable entry point and the authority. It does not override or extend the repository-root AGENTS.md / AGENT_GUIDE.md.

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 CaseRecommended ModelNotes
Fastest generationFLUX.2 [klein]4B or 9B, sub-second
Highest qualityFLUX.2 [max]Best detail, grounding search
Production balancedFLUX.2 [pro]Quality + speed
Typography/textFLUX.2 [flex]Best text rendering
Local/developmentFLUX.2 [dev]Open weights
Image editingFLUX.2 [pro/max]Pass image URL directly to input_image
InpaintingFLUX.1 FillObject removal/completion
Context editingFLUX.1 KontextOlder 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 [blocked] - Universal FLUX prompting principles
  • rules/flux2-models.md [blocked] - FLUX.2 family: klein, max, pro, flex, dev
  • rules/flux1-models.md [blocked] - FLUX.1 family: older generation of FLUX.2 models - pro, Kontext, Fill
  • rules/t2i-prompting.md [blocked] - Text-to-image prompting patterns
  • rules/i2i-prompting.md [blocked] - Image-to-image editing with FLUX.2
  • rules/json-structured-prompting.md [blocked] - Complex scene composition
  • rules/hex-color-prompting.md [blocked] - Precise color specification
  • rules/typography-text.md [blocked] - Text rendering and typography
  • rules/multi-reference-editing.md [blocked] - Multi-image references
  • rules/negative-prompt-alternatives.md [blocked] - Positive alternatives
  • rules/model-selection-guide.md [blocked] - 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 harborlights creating soft bokeh in the background. Kodak Portra 400 color science.

来源与署名

来源:calesthio/OpenMontage位于.claude/skills/flux-best-practices提交9327439

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架