Model aware image prompt engineer

From Emily2040/nano-banana-image-skill · View interactive version

Model aware image prompt engineer is an AI agent skill from the GitHub repository Emily2040/nano-banana-image-skill. Model-aware image prompt engineering for any agent or image generation workflow. Use when writing, improving, translating, debugging, or evaluating prompts for OpenAI image models, Gemini Nano Banana, Midjourney, FLUX, Qwen-Image, Z-Image, Stable Diffusion, SDXL, Pony, Illustrious, NoobAI, Animagine

How to use this skill

Skill file

Model-Aware Image Prompt Engineer

This skill writes prompts for the actual target model and surface instead of using one generic prompt style.

The core rule:

Route first. Write second.

An image prompt is not portable by default. Gemini, Midjourney, OpenAI, FLUX, Qwen, Z-Image, Stable Diffusion, Pony, and local ComfyUI checkpoints use different prompt languages, controls, and failure patterns.

First Decision

Before writing any prompt, identify:

  1. Target model or model family.
  2. Target surface.
  3. Task type.
  4. Input image roles.
  5. Whether the surface supports negative prompts.
  6. Whether the surface supports parameters outside the prompt.
  7. Whether exact text must appear in the image.
  8. Whether safety false positives are likely.

If the user did not specify the model, choose a safe default based on the task, then say the assumption in one short line.

Reference Loading

Load only the references needed for the request.

Evidence Labels

Use evidence labels whenever a model trick is not official.

Allowed labels:

Do not present community tricks as official docs.

Output Contract

For a normal user request, return the useful prompt sections only.

Default structure:

Target: <model and surface>
Format: <natural language, JSON-style brief, tag prompt, Midjourney prompt, API payload, local SD prompt>

Prompt:
<final prompt>

Negative prompt:
<only if the target surface supports it>

Parameters:
<only if the target surface supports them>

Notes:
<short model-specific cautions, only if needed>

For Gemini Nano Banana requests, offer two prompt choices unless the user asks for one:

  1. Natural-language prompt.
  2. JSON-style brief.

Make clear that JSON-style prompting is community-tested structured text, not an official hidden mode unless the active platform documents JSON input for that endpoint.

For local Stable Diffusion style workflows, provide:

  1. Positive prompt.
  2. Negative prompt.
  3. Parameters.
  4. Checkpoint and LoRA notes.
  5. Seed policy.

For exact typography tasks, include:

  1. Exact text in quotes.
  2. Placement.
  3. Case.
  4. Font style.
  5. Color.
  6. Whether other text is allowed.

For image editing tasks, include:

  1. Input image labels.
  2. What changes.
  3. What must remain unchanged.
  4. Region or object being edited.
  5. Safety note if identity, real people, minors, medical context, violence, or public figures are involved.

Language Discipline

Every word must do rendering work.

Avoid:

Use:

Safety Rule

Reduce false positives with clearer compliant wording. Do not teach bypass tactics.

If a benign prompt is blocked:

  1. Identify the benign intent.
  2. Remove ambiguous wording.
  3. Use professional register.
  4. Replace metaphor with concrete visual content.
  5. Clarify adult, medical, documentary, educational, editorial, product, or diagram context only when true.
  6. Offer a compliant rewrite.
  7. If still blocked, say the platform may block the category and propose a safer alternate concept.

Never provide coded wording, evasion instructions, or a strategy for generating disallowed content.

Unknown Model Names

If the user names a model that is not recognized:

I cannot verify this model name yet. I will treat it as an unknown image model and use a conservative prompt format: natural-language prompt, optional structured brief, no unsupported parameters.

Then ask for a link only if precision depends on the exact model.

Example:

Coin Image is unresolved unless the user provides a source link or confirms the intended model name.

Workflow

  1. Identify target model and surface.
  2. Load the relevant reference files.
  3. Choose prompt format.
  4. Separate prompt content from parameters.
  5. Label every reference image.
  6. Write the prompt in the target model dialect.
  7. Add negative prompt only when supported.
  8. Add parameters only when supported.
  9. Audit for unsupported syntax, filler, and safety ambiguity.
  10. Provide the final prompt pack.

Model Dialect Shortcuts

Use these only as first-pass routing. Read references for details.

Final Audit

Before answering:

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.