# 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.

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 78316 repo stars
- Author: calesthio
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/calesthio/OpenMontage/tree/HEAD/.agents/skills/flux-best-practices/rules/i2i-prompting.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/i2i-prompting

## What it does

This rule guides an agent through image-to-image edits for FLUX.2 models. It covers changes to backgrounds, clothing, expressions, weather, seasons, objects, and visible text. The guidance also shows how to state which parts of a reference image must remain unchanged.

The material includes simple edit patterns, preservation instructions, and a stepwise method for larger transformations. An image is required as the reference input. Pass it through `input_image`; a URL is preferred over base64 when one is available. FLUX.2 [klein] supports up to 4 reference images, [pro] and [flex] up to 8, while [max] supports up to 8-10.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/rules/i2i-prompting.md` — The paths frontmatter field limits the files

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### Cursor

**Manually: put the files in place**
- File: `.cursor/rules/i2i-prompting.mdc` — Frontmatter: description, globs, alwaysApply

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/i2i-prompting.instructions.md` — The applyTo field sets which files it applies to

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/i2i-prompting.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/i2i-prompting.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/calesthio/OpenMontage/tree/HEAD/.agents/skills/flux-best-practices/rules/i2i-prompting.md

## When to use it
- change a scene background without moving the subject
- preserve composition, style, or lighting during an edit
- replace clothing or objects in a reference image
- add, revise, or remove visible text
- turn a large transformation into several prompt steps

## Example prompts
- Change the background to a beach at sunset while keeping the subject’s pose and clothing unchanged.
- Replace the modern car with a vintage model and preserve the original composition.
- Split the office-to-library transformation into separate edits, with the lighting change as its own step.

## Similar
- [fal-prompting](https://affpapa.org/en/nevibecode/skills/fal-prompting.md) — skill · 683 installs
- [ai-image-generation](https://affpapa.org/en/nevibecode/skills/ai-image-generation.md) — skill · 1000000 installs
- [image-outpainting](https://affpapa.org/en/nevibecode/skills/image-outpainting.md) — skill · 387500 installs
- [relight](https://affpapa.org/en/nevibecode/skills/relight.md) — skill · 387400 installs
- [flux](https://affpapa.org/en/nevibecode/skills/flux.md) — skill · 1100 installs
- [gpt-5-4-prompting](https://affpapa.org/en/nevibecode/skills/gpt-5-4-prompting.md) — skill · 742 installs

From the same set: [calesthio/openmontage](https://affpapa.org/en/nevibecode/by/calesthio/openmontage.md) — 101 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
