Prompt engineering image

From event4u-app/agent-config · View interactive version

Prompt engineering image is an AI agent skill from the GitHub repository event4u-app/agent-config. Translate an image brief into provider-specific prompt grammar per model. Use when writing or refining an image-generation prompt for Ideogram, Flux, Gemini, GPT Image 2, or Recraft.

How to use this skill

Skill file

prompt-engineering-image

Translate an image brief into a provider-specific prompt string. Each model

has distinct prompt grammar — this skill applies the right structure per adapter.

When to use

Per-provider prompt grammar

Ideogram (text-in-image: logos, banners, typographic art)

(banner), magic_prompt_option: AUTO (let Ideogram enrich).

Flux (photoreal: product shots, portraits, scenes)

clean white background, 50 mm lens bokeh, ultra sharp"`.

Recraft (vector / SVG logos and icons)

style: icon (for simplified marks), style: realistic_image (raster fallback).

Gemini-image / GPT Image 2 (general art, edits, multimodal)

"Remove the background and replace with a solid pastel blue".

Procedure

  1. Receive the brief — extract: subject, style, output format (raster/vector/banner),

target provider (from image-provider-routing or explicitly stated).

  1. Structure the prompt blocks — subject · style · composition · technical params.
  2. Apply provider grammar from the section above for the target model.
  3. Tune for the job shape — text-literal first for Ideogram; noun-phrase first for Flux;

minimal + style: param for Recraft; natural language for Gemini/GPT.

  1. Inspect the adapter header — open

node_modules/@event4u/agent-config/src/scripts/ai-image/adapters/<provider>.sh

and confirm the param enums (aspect/style/model) the prompt relies on still match.

  1. Emit the prompt in the Output format below.

Output format

  1. Target provider — name + adapter file reference.
  2. Prompt string — the exact string to pass to the adapter, ready to copy.
  3. Key params — any model-specific fields (aspect ratio, style, negative prompts).
  4. Variant (optional) — one alternative phrasing when the brief is ambiguous.

Gotcha

are ASSUMED from the adapter header comments. Verify against live API docs before

promotion; never hardcode these in production without a smoke trace.

Actual rendering requires adapter promotion to stable per provider-lifecycle-discipline.

on vector output — strip them to avoid prompt budget waste.

Good example: Ideogram brief for a bakery logo — lead with the text literal:

'"Le Four" in warm serif, vintage French patisserie style, cream and terracotta'.

Bad example: Sending a photorealism-heavy Flux prompt to Recraft — the style

descriptors will be ignored and the vector output will be wrong.

Do NOT

they have no effect on vector output and waste the prompt budget.

verify against the adapter header / provider docs first.

artist's style in a prompt without the rights check (image-likeness-and-rights).

See also

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.