Skip to main content
rule CX Codex

flux2-models — Claude Code rule: FLUX.2 prompting guide

Rule with prompting patterns for FLUX.2 models: klein, max, pro, flex, and dev. Shows the agent how to write generation and editing prompts for each variant.

AGPL-3.0 ★ 78,316 updated 2026-10-24

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/rules/flux2-models.md
Open on GitHub

What flux2-models does

The rule explains to the agent what each FLUX.2 variant does and how to structure prompts accordingly. klein (4B/9B parameters) is the fast model for previews, wants narrative prose with lighting emphasis. max is the strongest, needs technical camera specs (Hasselblad 90mm f/2.8, Kodak Portra 400). pro balances quality and speed, takes standard detailed prompts. flex specializes in typography, text goes in quotes with font style and placement specified.

All models support reference images for editing: up to 4 for klein, up to 8-10 for the rest. Separate editing models are no longer needed. The rule includes characteristic tables, prompt examples for each model, and editing scenarios.

Installed by creating .claude/rules/flux2-models.md in the project. Works in Claude Code and Codex.

What it helps with

  • write a prompt for fast preview generation with FLUX.2 klein
  • generate a final high-quality image through max with camera parameters
  • edit an image via reference while preserving composition
  • create a poster with text through flex, specifying font and text placement
  • pick the right FLUX.2 model for a task and prompt style

Example prompts for the agent

  • Create .claude/rules/flux2-models.md with FLUX.2 prompting guidelines
  • Generate a fisherman portrait through FLUX.2 max, add Hasselblad and Portra 400 parameters
  • Write a flex prompt: poster with headline 'DESIGN SUMMIT 2025', bold sans-serif, white on purple-coral gradient

How to install flux2-models

Manually: put the files in place

.claude/rules/flux2-models.md

The paths frontmatter field limits the files

Step by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use

Questions about flux2-models

How to install flux2-models in Claude Code?

Create a .claude/rules/flux2-models.md file in the project root with the rule content.

What does the flux2-models rule do?

Tells the agent how to write prompts for FLUX.2 models. For klein, use narrative prose with lighting focus; for max, technical camera specs; for flex, quote text and specify font parameters. Includes a model table, prompt examples, and reference-based editing instructions.

What is the difference between FLUX.2 klein and max?

klein has 4B or 9B parameters, generates in under a second, supports up to 4 references, prompts written as prose. max is the strongest model, maximum quality and detail, up to 8-10 references, prompts with technical parameters (camera, lens, film stock).

Similar IDE rules

All IDE rules for AI and ML →

From the same set101

The whole set →
azure-speech-to-text azure-speech-to-text transcribes local audio files into text with word-level timestamps and speaker diarization using Azure AI Speech. Speeds up subtitle creation and audio processing in OpenMontage pipelines. CX Codex +1 913installs azure-text-to-speech azure-text-to-speech synthesizes neural voiceover audio using the Azure AI Speech REST API. Ideal for OpenMontage pipelines that need multilingual narration voices. CX Codex +1 738installs json-structured-prompting json-structured-prompting defines a JSON architecture for complex image prompts with multiple subjects, explicit positioning, and variable templates. CX Codex +1 ★ 78,316repo stars i2i-prompting i2i-prompting — a rule for writing image-to-image editing prompts with FLUX.2. Use it for targeted changes, style transfers, text edits, and staged transformations. CX Codex +1 ★ 78,316repo stars hyperframes-core hyperframes-core defines the technical contract for rendering video from HTML in HyperFrames, covering track timing data attributes, deterministic rules, and sub-compositions. CX Codex +1 ★ 78,316repo stars hyperframes-animation The hyperframes-animation skill for Claude Code builds HyperFrames motion from reusable rules and scene blueprints. Consult runtime-specific API notes when authoring choreography or auditing a composition. CX Codex +1 ★ 78,316repo stars model-selection-guide model-selection-guide — a decision rule that matches FLUX models to priorities: speed, quality, balance, typography, or image editing. Quick matrix and decision tree streamline the choice for each task. CX Codex +1 ★ 78,316repo stars widget-embedding widget-embedding guides the integration of ElevenLabs voice conversation widgets into web projects, handling visual styles, mobile layouts, and secure access. CX Codex ★ 78,316repo stars

Project sponsors

Companies that keep this analytics open