---
name: image-prompt-builder
description: Convert a structured ad design brief and layout plan into high-quality Chinese and English image-generation prompts, negative prompts, aspect ratio, recommended pixels, Chinese text fidelity reminders, and reference-image usage instructions. Use only after brief parsing and layout planning.
---

# Image Prompt Builder

## Purpose

Build image-generation prompts that preserve Chinese text, aspect ratio, layout, style, and production constraints.

## When To Use

Use after `brand-brief-parser`, `ad-copywriter`, `industry-style-library`, and `layout-planner`.

## Inputs

- Design brief
- Copy hierarchy
- Layout plan
- Industry style profile
- Asset rules
- Typography notes

## Workflow

1. Confirm the design type and real-world ratio.
2. Include exact Chinese text in quoted form.
3. Describe text hierarchy and layout before visual decoration.
4. Add color, material, industry elements, and output quality.
5. Add hard constraints.
6. Produce Chinese prompt, English prompt, negative prompt, recommended pixels, text fidelity reminders, and reference image instructions.
7. Use `references/chinese_text_prompt_rules.md` when Chinese fidelity is critical.

## Output Format

```json
{
  "prompt_cn": "",
  "prompt_en": "",
  "negative_prompt": "",
  "aspect_ratio": "",
  "recommended_pixels": "",
  "text_fidelity_note": "",
  "reference_image_instructions": ""
}
```

## Rules

- Do not create prompts before layout planning.
- Put exact Chinese text in visible quotation marks.
- If flat 2D is required, explicitly prohibit real-scene rendering.
- If using a reference image, state whether to borrow style or preserve elements.
- Include readability and printability in output quality.

## Failure Checks

- Prompt omits exact Chinese text.
- Prompt contradicts flat 2D requirement.
- Negative prompt lacks text-error prevention.
- Recommended pixels do not match the ratio.
