Image generation

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

Image generation is an AI agent skill from the GitHub repository event4u-app/agent-config. Generate an image from a brief — provider-agnostic blueprint then provider-specific translation, with ref-image/seed reuse for consistency. Use when generating/creating an image.

How to use this skill

Skill file

image-generation

Generate an image end-to-end: capture the brief, route to the right provider, author

a provider-specific prompt, reuse seeds for consistency, invoke the adapter, and apply

governance. All adapters are scaffold-tier (dry-run) until promoted to stable.

When to use

Procedure

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

style intent, any existing ref images or seed values for consistency.

  1. Route the provider via CODE0 —

match job shape (text-in-image → Ideogram, photoreal → Flux, vector → Recraft,

general → Gemini/GPT Image 2).

  1. Author the prompt via CODE0 —

apply provider-specific grammar (text-literal first for Ideogram, noun-phrase for Flux,

style: param for Recraft, natural language for Gemini/GPT).

  1. Reuse ref-image / seed for consistency — if the brief is part of a series, carry

the seed value or ref-image path forward. Seed reuse is the primary consistency lever;

re-describing the subject each time is not.

  1. Invoke the adapter (dry-run today) — run

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

with the assembled params. Validate the returned artifact path or dry-run confirmation.

All adapters are experimental (scaffold-tier); no live generation occurs until a

maintainer promotes the adapter via provider-lifecycle-discipline.

  1. Apply governance — run the rights check (image-likeness-and-rights) when the

brief names a real person, brand mark, or living artist's style. Attach the AI-disclosure

footer per media-governance-routing before delivering the output.

Output format

  1. Blueprint — provider choice + routing rationale + prompt string ready to copy.
  2. Provider + prompt — adapter file reference, key params (aspect ratio, style,

negative prompts), and any seed/ref-image value carried forward.

  1. Artifact path / dry-run note — the path returned by the adapter, or an explicit

note: "adapter is experimental (scaffold-tier) — dry-run plan only; no rendered

asset until promotion per provider-lifecycle-discipline."

Gotcha

flux.sh, recraft.sh, gemini-image.sh) are scaffold-tier (dry-run only). This

skill produces the blueprint + dry-run confirmation; actual renders require a maintainer

to capture a smoke trace and promote the adapter to stable. Claiming a rendered asset

exists when no adapter is stable misleads the caller.

in each prompt does not lock character or style; carrying the seed value or ref-image

path forward does. Drop the seed and character drift is inevitable across a series.

Good example: Brief for a product-shot series → route to Flux (photoreal), author

noun-phrase prompt, carry seed: 42 across all five renders, invoke adapter, note

"experimental — dry-run plan only."

Bad example: Invoking the adapter and telling the user "here is your rendered image"

while all adapters are still scaffold-tier.

Do NOT

the dry-run caveat explicitly every time.

mark, or a named living artist's style.

shape (e.g. Flux for a text-in-image logo) produces garbled output.

seed reuse is the only reliable consistency mechanism.

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.