Multi-vendor AI image generation with authentication-aware parallel dispatch. Routes to Codex (gpt-image-2 via ChatGPT OAuth), Antigravity (Gemini-family "nano-banana" image models via `agy` CLI + Gemini Code Assist; exact model chosen internally by agy), and Pollinations (flux/zimage, free with signup). Use for image generation, image creation, visual asset generation, and AI art.
Generate images and visual assets through authenticated multi-vendor routing while preserving prompt clarity, reference-image handling, cost controls, and reproducible output manifests.
Intent signature
User asks to generate images, visual assets, illustrations, product photos, concept art, mockups, or AI art.
Another skill needs shared image-generation infrastructure.
User provides reference images or asks for vendor comparison.
When to use
Generating images, visual assets, illustrations, product photos, concept art
Comparing output between multiple image models for the same prompt
Producing images from prompts within editor workflows (Claude Code, Codex, Gemini CLI)
Other skills needing image generation infrastructure (shared invocation)
When NOT to use
Editing an existing image or photo manipulation -> out of scope
Generating videos or audio -> out of scope
Inline vector art / SVG composition from structured data -> use a templating skill
Simple asset resizing or format conversion -> use a dedicated image library
Expected inputs
Image prompt or creative brief
Optional vendor, size, quality, count, output directory, and reference images
Authentication/environment state for Codex, Pollinations, or Gemini
Expected outputs
Generated image files under .agents/results/images/ or requested output directory
manifest.json with prompt, vendor, model, and reproducibility metadata
Vendor comparison outputs when --vendor all is used
Dependencies
oma image generate CLI and vendor authentication
Codex image generation, Pollinations API, or Gemini API/CLI strategy
resources/vendor-matrix.md, resources/prompt-tips.md, and the image: section of .agents/oma-config.yaml
Control-flow features
Branches by prompt ambiguity, vendor auth, cost threshold, reference-image support, path safety, and safety/timeout exit codes
Calls external vendor APIs/CLIs
Reads reference images and writes generated images plus manifests
Structural Flow
Entry
Validate that the request contains enough subject, setting, style, usage, and aspect-ratio signal.
Detect attached/reference images and vendor support.
Check authentication, cost guardrails, output path, and count limits.
Scenes
PREPARE: Clarify or amplify prompt and choose vendor strategy.
ACQUIRE: Validate auth, references, output path, and provider availability.
ACT: Invoke oma image generate with selected vendor(s), prompt, references, and options.
VERIFY: Check manifest, output files, exit code, and provider result.
FINALIZE: Return output paths and relevant warnings.
Transitions
If prompt lacks required signal, clarify or show amplified prompt before generation.
If --vendor all is requested, require every requested vendor to be available.
If reference path is supported by selected vendor, pass it automatically.
If estimated cost exceeds guardrail, require confirmation unless bypassed.
Failure and recovery
If auth is missing, report vendor-specific authentication requirement.
If reference support is unavailable for the selected vendor, reject with actionable guidance.
If local CLI is outdated, ask user to run oma update.
If generation times out or is blocked, surface exit code and provider status.
Exit
Success: images and manifest exist in the output directory.
Partial success: some vendors fail in comparison mode and failures are reported.
Failure: no image is produced and the route/cost/auth/safety blocker is explicit.
Logical Operations
Actions
Action
SSL primitive
Evidence
Validate prompt completeness
VALIDATE
Clarification protocol
Select vendor strategy
SELECT
Vendor matrix and auth state
Read reference images
READ
--reference paths
Call generation CLI/API
CALL_TOOL
oma image generate
Write image outputs
WRITE
Image files and manifest
Validate result
VALIDATE
Exit code, manifest, files
Report output
NOTIFY
Final path summary
Tools and instruments
oma image generate, oma image doctor, oma image vendor list
Codex, Pollinations, and Gemini provider paths
Prompt tips, vendor matrix, and image config
Canonical command path
oma image doctor
oma image generate "<prompt>" --vendor auto --size auto --quality auto --output json
With reference images:
oma image generate --reference "<absolute-path>" --vendor codex "<prompt>"
Resource scope
Scope
Resource target
LOCAL_FS
Reference images, generated images, manifests
PROCESS
Provider CLIs and image router commands
NETWORK
Pollinations/Gemini or provider APIs
CREDENTIALS
Provider auth and API keys
Preconditions
Prompt is sufficiently specified or user approves amplification.
Required vendor auth and output permissions exist.
Reference paths are accessible when used.
Effects and side effects
Creates image files and manifests.
May call paid or rate-limited provider APIs.
May read attached/reference images.
Guardrails
Clarify before invoking: if the user's request is ambiguous about subject, style, composition, or usage context, ask the user first or amplify the prompt explicitly (showing the user the expanded version for approval). Do NOT silently generate from a vague prompt. See Clarification Protocol below.
Authentication-aware dispatch: detect which vendor CLIs are available and run only those; with --vendor all, every requested vendor must be available (strict). Caveat: the antigravity health check verifies installation only (agy --version) — a signed-out agy passes health and fails at generate time with agy's own error.
Cost guardrail: confirm before executing runs whose estimated cost is ≥ $0.20 (configurable). --yes / OMA_IMAGE_YES=1 bypass. Default vendors pollinations (flux/zimage) and antigravity (nano-banana via Gemini Code Assist) are free, so auto-triggering on keywords is safe. Non-interactive contexts (agents, CI — no TTY on stdin): the CLI cannot prompt, so a run at/over the threshold exits 1 with a message naming --yes. Calling agents must confirm the estimated cost with the user in-conversation (use --dry-run to get the estimate), then re-run with -y.
Cancellable: SIGINT/SIGTERM aborts in-flight provider calls and the orchestrator.
Deterministic outputs: every run writes manifest.json next to the images for reproducibility.
Max n = 5: wall-time bound.
Exit codes align with oma search fetch (0, 1, 2=safety, 3=not-found, 4=invalid-input, 5=auth-required, 6=timeout).
Clarification Protocol
Before invoking oma image generate, the calling agent runs this checklist against the user's request. If any answer is "no / unknown", clarify with the user first.
Required signal (must be present or inferable):
Subject: what is the primary thing in the image? (object, person, scene)
Setting / backdrop: where is it? (context, environment)
Strongly recommended (ask if absent AND not inferable from context):
Aspect ratio / resolution: any WxH where each edge is a multiple of 16 between 16 and 3840 and aspect ∈ [1:3, 3:1] (e.g. 1024x1024 square, 2048x1152 16:9, 3840x2160 4K UHD, 1024x1536 portrait), or auto.
Amplification shortcut. For brief prompts (e.g. "a red apple"), do not pop clarifying questions if the request is genuinely that simple. Instead amplify inline and show the user the expanded version before invoking:
User: "a red apple"
Agent: "I'll generate this as: a single glossy red apple centered on a clean white background, soft studio lighting, photorealistic, shallow depth of field, 1024×1024. Shall I proceed, or would you like a different style/composition?"
Skip both clarification and amplification when the user has clearly authored a full creative brief (≥ 2 of: subject + style + lighting + composition). Respect their prompt verbatim.
Output language. Generation prompts are sent to the provider in English (image models are trained predominantly on English captions). Translate the user's request if they wrote in another language, and show them the translated version during amplification so they can correct misreadings.
Vendors
This skill follows oh-my-agent's CLI-first concept: whenever a vendor's native CLI can drive generation (and return raw bytes), the subprocess path is preferred over direct API keys. Direct API is only used as a fallback for vendors whose CLI can't yet emit raw image bytes.
Vendor
Strategy
Models
Trigger
codex
CLI-first via codex exec over ChatGPT OAuth (codex login), built-in image_gen
gpt-image-2
Logged in via Codex CLI (no API key)
pollinations
Direct HTTP via gen.pollinations.ai/v1/images/generations (free signup for key)
agy -p --dangerously-skip-permissions --add-dir <outDir> — Antigravity's agentic CLI runs over the user's Gemini Code Assist subscription. agy writes raw bytes to absolute target paths we embed in the prompt; the provider sniffs format via magic bytes and renames the file extension to match. Model selection is opaque — agy picks internally, we never name a model.
(opaque — chosen by agy)
agy CLI installed + signed in. No API key, no per-image charge.
The direct Gemini path (gemini -p stream, generativelanguage.googleapis.com API) is deprecated. agy is the supported Gemini image route — it's free with Gemini Code Assist and doesn't require billing on AI Studio.
Invocation
Standalone
/oma-image a red apple on white background
/oma-image --vendor all --size 1536x1024 jeju coastline at sunset
/oma-image -n 3 --quality high --out ./hero "minimalist dashboard hero illustration"
Shell CLI
oma image generate "<prompt>" [--vendor auto|codex|pollinations|antigravity|all] [-n 1..5] \
[--size WxH|auto] \
[--quality low|medium|high|auto] \
[--model <name>] \
[--output-dir <dir>] [--allow-external-output] \
[-r <path>]... \
[--timeout 180] [-y] [--no-prompt-in-manifest] \
[--dry-run] [--output text|json]
oma image doctor
oma image vendor list
--model <name> overrides the vendor's default model for this run — e.g. --vendor pollinations --model zimage, or a credit-gated Pollinations model like gpt-image-2. It applies to every vendor in the run set, so combine it with an explicit --vendor; antigravity ignores it (agy picks its model internally).
Reference Images (-r, --reference)
Attach up to 10 reference images (PNG/JPEG/GIF/WebP, ≤ 5MB each) to guide style, subject identity, or composition. Repeatable or comma-separated.
oma image generate -r ~/Downloads/otter.jpeg "same otter in dramatic lighting"
oma image generate -r a.png -r b.png "blend these two styles"
Supported vendors:
Vendor
Support
How
codex (gpt-image-2)
PASS
Passes -i <path> to codex exec
antigravity
PASS
Refs copied to a per-run temp dir, agy --add-dir <tmpdir> grants access, paths inlined into the prompt
pollinations
N/A
Rejected with exit code 4 when explicitly selected (requires URL hosting; see PR #2 roadmap). Under --vendor auto, reference-unsupported vendors are silently dropped from the run set instead.
Paths: absolute or relative to $CWD. Host CLIs usually expose attached images via:
Claude Code: ~/.claude/image-cache/<session>/N.png (surfaced in system messages as [Image: source: <path>])
Antigravity: workspace upload directory (exact path shown in IDE)
Codex CLI as host: user must pass the filesystem path explicitly; in-conversation attachments are not forwarded
When ALL of the following are true, the calling agent MUST pass the attached image via --reference <path> automatically. Never describe the image in prose as a workaround.
The user asks to generate or edit an image (referencing the attached one by phrases like "이거", "this image", "same style as this", "이 수달", etc.).
A host-surfaced attached image is visible to the agent (e.g. a Claude Code system message with [Image: source: <path>], or an Antigravity workspace upload path, or an explicit filesystem path in the user's message).
The selected vendor supports references (codex or antigravity).
Required action: invoke oma image generate --reference <absolute-path> --vendor <codex|antigravity> "<prompt>". If the user didn't specify a vendor, default to codex (CLI-first, widest availability). Do NOT:
Fall back to prose description ("I'll describe the otter's appearance...").
Ask the user to re-type or re-attach the path.
Claim the CLI doesn't support references without first running oma image generate --help to verify.
If the local CLI is outdated (--reference is missing from --help): tell the user to run oma update once, then retry. Do not silently degrade to prose.
If the reference path is from Claude Code's image-cache: note to the user that the path is session-scoped and suggest copying the file to a durable location if they want to reuse it later. Still proceed with the generation.
Shared Infrastructure (from other skills)
Other skills call oma image generate --output json and parse the JSON manifest from stdout.
Output Layout
Filenames follow <vendor>[-<model>]-<shortid>[-<n>].<ext> — the model segment is omitted for antigravity (opaque model), the extension reflects the sniffed format (JPEG is common), and -<n> appears only when -n > 1.
Follow resources/execution-protocol.md step by step.
See resources/vendor-matrix.md for strategy precheck rules.
Use resources/prompt-tips.md for writing effective prompts.
Before submitting, run resources/checklist.md.
Configuration
Project-specific settings: the image: section of .agents/oma-config.yaml, which oma update preserves. Shipped defaults live in the CLI (DEFAULTS in cli/commands/image/config.ts) — write only the keys you change. The legacy config/image-config.yaml is no longer read by the CLI; migration 022 moves anything you had changed there into oma-config (and deletes the file when it was never edited).
Env vars: OMA_IMAGE_DEFAULT_VENDOR, OMA_IMAGE_DEFAULT_OUT, OMA_IMAGE_YES, POLLINATIONS_API_KEY.
1---2name: oma-image3description: Multi-vendor AI image generation with authentication-aware parallel dispatch. Routes to Codex (gpt-image-2 via ChatGPT OAuth), Antigravity (Gemini-family "nano-banana" image models via `agy` CLI + Gemini Code Assist; exact model chosen internally by agy), and Pollinations (flux/zimage, free with signup). Use for image generation, image creation, visual asset generation, and AI art.4---56# Image Agent - Multi-Vendor Image Router
78## Scheduling
910### Goal
11Generate images and visual assets through authenticated multi-vendor routing while preserving prompt clarity, reference-image handling, cost controls, and reproducible output manifests.
1213### Intent signature
14- User asks to generate images, visual assets, illustrations, product photos, concept art, mockups, or AI art.
15- Another skill needs shared image-generation infrastructure.
16- User provides reference images or asks for vendor comparison.
1718### When to use
1920- Generating images, visual assets, illustrations, product photos, concept art
21- Comparing output between multiple image models for the same prompt
22- Producing images from prompts within editor workflows (Claude Code, Codex, Gemini CLI)
23- Other skills needing image generation infrastructure (shared invocation)
2425### When NOT to use
2627- Editing an existing image or photo manipulation -> out of scope
28- Generating videos or audio -> out of scope
29- Inline vector art / SVG composition from structured data -> use a templating skill
30- Simple asset resizing or format conversion -> use a dedicated image library
3132### Expected inputs
33- Image prompt or creative brief
34- Optional vendor, size, quality, count, output directory, and reference images
35- Authentication/environment state for Codex, Pollinations, or Gemini
3637### Expected outputs
38- Generated image files under `.agents/results/images/` or requested output directory
39- `manifest.json` with prompt, vendor, model, and reproducibility metadata
40- Vendor comparison outputs when `--vendor all` is used
4142### Dependencies
43- `oma image generate` CLI and vendor authentication
44- Codex image generation, Pollinations API, or Gemini API/CLI strategy
45- `resources/vendor-matrix.md`, `resources/prompt-tips.md`, and the `image:` section of `.agents/oma-config.yaml`
4647### Control-flow features
48- Branches by prompt ambiguity, vendor auth, cost threshold, reference-image support, path safety, and safety/timeout exit codes
49- Calls external vendor APIs/CLIs
50- Reads reference images and writes generated images plus manifests
5152## Structural Flow
5354### Entry
551. Validate that the request contains enough subject, setting, style, usage, and aspect-ratio signal.
562. Detect attached/reference images and vendor support.
573. Check authentication, cost guardrails, output path, and count limits.
5859### Scenes
601. **PREPARE**: Clarify or amplify prompt and choose vendor strategy.
612. **ACQUIRE**: Validate auth, references, output path, and provider availability.
623. **ACT**: Invoke `oma image generate` with selected vendor(s), prompt, references, and options.
634. **VERIFY**: Check manifest, output files, exit code, and provider result.
645. **FINALIZE**: Return output paths and relevant warnings.
6566### Transitions
67- If prompt lacks required signal, clarify or show amplified prompt before generation.
68- If `--vendor all` is requested, require every requested vendor to be available.
69- If reference path is supported by selected vendor, pass it automatically.
70- If estimated cost exceeds guardrail, require confirmation unless bypassed.
7172### Failure and recovery
73- If auth is missing, report vendor-specific authentication requirement.
74- If reference support is unavailable for the selected vendor, reject with actionable guidance.
75- If local CLI is outdated, ask user to run `oma update`.
76- If generation times out or is blocked, surface exit code and provider status.
7778### Exit
79- Success: images and manifest exist in the output directory.
80- Partial success: some vendors fail in comparison mode and failures are reported.
81- Failure: no image is produced and the route/cost/auth/safety blocker is explicit.
8283## Logical Operations
8485### Actions
86| Action | SSL primitive | Evidence |
87|--------|---------------|----------|
88| Validate prompt completeness | `VALIDATE` | Clarification protocol |
89| Select vendor strategy | `SELECT` | Vendor matrix and auth state |
90| Read reference images | `READ` | `--reference` paths |
91| Call generation CLI/API | `CALL_TOOL` | `oma image generate` |
92| Write image outputs | `WRITE` | Image files and manifest |
93| Validate result | `VALIDATE` | Exit code, manifest, files |
94| Report output | `NOTIFY` | Final path summary |
9596### Tools and instruments
97- `oma image generate`, `oma image doctor`, `oma image vendor list`
98- Codex, Pollinations, and Gemini provider paths
99- Prompt tips, vendor matrix, and image config
100101### Canonical command path
102```bash
103oma image doctor
104oma image generate "<prompt>" --vendor auto --size auto --quality auto --output json
105```
106107With reference images:
108```bash
109oma image generate --reference "<absolute-path>" --vendor codex "<prompt>"
110```
111112### Resource scope
113| Scope | Resource target |
114|-------|-----------------|
115| `LOCAL_FS` | Reference images, generated images, manifests |
116| `PROCESS` | Provider CLIs and image router commands |
117| `NETWORK` | Pollinations/Gemini or provider APIs |
118| `CREDENTIALS` | Provider auth and API keys |
119120### Preconditions
121- Prompt is sufficiently specified or user approves amplification.
122- Required vendor auth and output permissions exist.
123- Reference paths are accessible when used.
124125### Effects and side effects
126- Creates image files and manifests.
127- May call paid or rate-limited provider APIs.
128- May read attached/reference images.
129130### Guardrails
1311321. **Clarify before invoking**: if the user's request is ambiguous about subject, style, composition, or usage context, **ask the user first** or **amplify the prompt explicitly** (showing the user the expanded version for approval). Do NOT silently generate from a vague prompt. See `Clarification Protocol` below.
1332. **Authentication-aware dispatch**: detect which vendor CLIs are available and run only those; with `--vendor all`, every requested vendor must be available (strict). Caveat: the `antigravity` health check verifies installation only (`agy --version`) — a signed-out agy passes health and fails at generate time with agy's own error.
1343. **Cost guardrail**: confirm before executing runs whose estimated cost is ≥ `$0.20` (configurable). `--yes` / `OMA_IMAGE_YES=1` bypass. Default vendors `pollinations` (flux/zimage) and `antigravity` (nano-banana via Gemini Code Assist) are free, so auto-triggering on keywords is safe. **Non-interactive contexts** (agents, CI — no TTY on stdin): the CLI cannot prompt, so a run at/over the threshold exits 1 with a message naming `--yes`. Calling agents must confirm the estimated cost with the user in-conversation (use `--dry-run` to get the estimate), then re-run with `-y`.
1354. **Path safety**: output paths outside `$PWD` require `--allow-external-out`.
1365. **Cancellable**: SIGINT/SIGTERM aborts in-flight provider calls and the orchestrator.
1376. **Deterministic outputs**: every run writes `manifest.json` next to the images for reproducibility.
1387. **Max `n` = 5**: wall-time bound.
1398. **Exit codes align with `oma search fetch`** (0, 1, 2=safety, 3=not-found, 4=invalid-input, 5=auth-required, 6=timeout).
140141### Clarification Protocol
142143Before invoking `oma image generate`, the calling agent runs this checklist against the user's request. **If any answer is "no / unknown", clarify with the user first.**
144145**Required signal (must be present or inferable):**
146- [ ] **Subject**: what is the primary thing in the image? (object, person, scene)
147- [ ] **Setting / backdrop**: where is it? (context, environment)
148149**Strongly recommended (ask if absent AND not inferable from context):**
150- [ ] **Style**: photorealistic, illustration, 3D render, oil painting, concept art, flat vector, …?
151- [ ] **Mood / lighting**: bright vs moody, warm vs cool, dramatic vs minimal
152- [ ] **Usage context**: hero image, icon, thumbnail, product shot, poster? (dictates aspect ratio + composition)
153- [ ] **Aspect ratio / resolution**: any `WxH` where each edge is a multiple of 16 between 16 and 3840 and aspect ∈ [1:3, 3:1] (e.g. `1024x1024` square, `2048x1152` 16:9, `3840x2160` 4K UHD, `1024x1536` portrait), or `auto`.
154155**Amplification shortcut.** For brief prompts (e.g. "a red apple"), do not pop clarifying questions if the request is genuinely that simple. Instead **amplify inline and show the user** the expanded version before invoking:
156157> User: "a red apple"
158> Agent: "I'll generate this as: *a single glossy red apple centered on a clean white background, soft studio lighting, photorealistic, shallow depth of field, 1024×1024*. Shall I proceed, or would you like a different style/composition?"
159160Skip both clarification and amplification when the user has clearly authored a full creative brief (≥ 2 of: subject + style + lighting + composition). Respect their prompt verbatim.
161162**Category-specific briefs** (app mockup, poster, thumbnail, infographic, comic panel, avatar): consult `resources/prompt-tips.md` → *External Prompt Libraries*.
163164**Output language.** Generation prompts are sent to the provider in English (image models are trained predominantly on English captions). Translate the user's request if they wrote in another language, and show them the translated version during amplification so they can correct misreadings.
165166### Vendors
167168This skill follows oh-my-agent's CLI-first concept: whenever a vendor's native CLI can drive generation (and return raw bytes), the subprocess path is preferred over direct API keys. Direct API is only used as a fallback for vendors whose CLI can't yet emit raw image bytes.
169170| Vendor | Strategy | Models | Trigger |
171|--------|----------|--------|---------|
172| `codex` | CLI-first via `codex exec` over ChatGPT OAuth (`codex login`), built-in `image_gen` | `gpt-image-2` | Logged in via Codex CLI (no API key) |
173| `pollinations` | Direct HTTP via `gen.pollinations.ai/v1/images/generations` (free signup for key) | Free: `flux`, `zimage`. Credit-gated: `qwen-image`, `wan-image`, `gpt-image-2`, `klein`, `kontext`, `gptimage`, `gptimage-large` | `POLLINATIONS_API_KEY` set (free at https://enter.pollinations.ai). No native CLI exists. |
174| `antigravity` | `agy -p --dangerously-skip-permissions --add-dir <outDir>` — Antigravity's agentic CLI runs over the user's Gemini Code Assist subscription. agy writes raw bytes to absolute target paths we embed in the prompt; the provider sniffs format via magic bytes and renames the file extension to match. Model selection is opaque — agy picks internally, we never name a model. | (opaque — chosen by agy) | `agy` CLI installed + signed in. No API key, no per-image charge. |
175176> The direct Gemini path (`gemini -p` stream, `generativelanguage.googleapis.com` API) is deprecated. `agy` is the supported Gemini image route — it's free with Gemini Code Assist and doesn't require billing on AI Studio.
177178### Invocation
179180#### Standalone
181182```
183/oma-image a red apple on white background
184/oma-image --vendor all --size 1536x1024 jeju coastline at sunset
185/oma-image -n 3 --quality high --out ./hero "minimalist dashboard hero illustration"
186```
187188#### Shell CLI
189190```
191oma image generate "<prompt>" [--vendor auto|codex|pollinations|antigravity|all] [-n 1..5] \
192 [--size WxH|auto] \
193 [--quality low|medium|high|auto] \
194 [--model <name>] \
195 [--output-dir <dir>] [--allow-external-output] \
196 [-r <path>]... \
197 [--timeout 180] [-y] [--no-prompt-in-manifest] \
198 [--dry-run] [--output text|json]
199oma image doctor
200oma image vendor list
201```
202203`--model <name>` overrides the vendor's default model for this run — e.g. `--vendor pollinations --model zimage`, or a credit-gated Pollinations model like `gpt-image-2`. It applies to every vendor in the run set, so combine it with an explicit `--vendor`; `antigravity` ignores it (agy picks its model internally).
204205#### Reference Images (`-r`, `--reference`)
206207Attach up to 10 reference images (PNG/JPEG/GIF/WebP, ≤ 5MB each) to guide style, subject identity, or composition. Repeatable or comma-separated.
208209```
210oma image generate -r ~/Downloads/otter.jpeg "same otter in dramatic lighting"
211oma image generate -r a.png -r b.png "blend these two styles"
212```
213214Supported vendors:
215216| Vendor | Support | How |
217|--------|---------|-----|
218| `codex` (gpt-image-2) | PASS | Passes `-i <path>` to `codex exec` |
219| `antigravity` | PASS | Refs copied to a per-run temp dir, `agy --add-dir <tmpdir>` grants access, paths inlined into the prompt |
220| `pollinations` | N/A | Rejected with exit code 4 when explicitly selected (requires URL hosting; see PR #2 roadmap). Under `--vendor auto`, reference-unsupported vendors are silently dropped from the run set instead. |
221222**Paths**: absolute or relative to `$CWD`. Host CLIs usually expose attached images via:
223- **Claude Code**: `~/.claude/image-cache/<session>/N.png` (surfaced in system messages as `[Image: source: <path>]`)
224- **Antigravity**: workspace upload directory (exact path shown in IDE)
225- **Codex CLI as host**: user must pass the filesystem path explicitly; in-conversation attachments are not forwarded
226227#### Agent Behavior: Auto-forward Attached References (MANDATORY)
228229When ALL of the following are true, the calling agent MUST pass the attached image via `--reference <path>` automatically. Never describe the image in prose as a workaround.
2302311. The user asks to generate or edit an image (referencing the attached one by phrases like "이거", "this image", "same style as this", "이 수달", etc.).
2322. A host-surfaced attached image is visible to the agent (e.g. a Claude Code system message with `[Image: source: <path>]`, or an Antigravity workspace upload path, or an explicit filesystem path in the user's message).
2333. The selected vendor supports references (`codex` or `antigravity`).
234235**Required action**: invoke `oma image generate --reference <absolute-path> --vendor <codex|antigravity> "<prompt>"`. If the user didn't specify a vendor, default to `codex` (CLI-first, widest availability). Do NOT:
236237- Fall back to prose description ("I'll describe the otter's appearance...").
238- Ask the user to re-type or re-attach the path.
239- Claim the CLI doesn't support references without first running `oma image generate --help` to verify.
240241**If the local CLI is outdated** (`--reference` is missing from `--help`): tell the user to run `oma update` once, then retry. Do not silently degrade to prose.
242243**If the reference path is from Claude Code's `image-cache`**: note to the user that the path is session-scoped and suggest copying the file to a durable location if they want to reuse it later. Still proceed with the generation.
244245#### Shared Infrastructure (from other skills)
246247Other skills call `oma image generate --output json` and parse the JSON manifest from stdout.
248249### Output Layout
250251Filenames follow `<vendor>[-<model>]-<shortid>[-<n>].<ext>` — the model segment is omitted for `antigravity` (opaque model), the extension reflects the sniffed format (JPEG is common), and `-<n>` appears only when `-n` > 1.
252253```
254.agents/results/images/
255├── 20260424-143052-ab12cd/ # single-vendor run
256│ ├── pollinations-flux-ab12cd.jpg
257│ │ (or codex-gpt-image-2-ab12cd.png, antigravity-ab12cd.jpg)
258│ └── manifest.json
259└── 20260424-143122-7z9kqw-compare/ # --vendor all run
260 ├── codex-gpt-image-2-7z9kqw.png
261 ├── pollinations-flux-7z9kqw.jpg
262 ├── antigravity-7z9kqw.jpg
263 └── manifest.json
264```
265266## References
267268Follow `resources/execution-protocol.md` step by step.
269See `resources/vendor-matrix.md` for strategy precheck rules.
270Use `resources/prompt-tips.md` for writing effective prompts.
271Before submitting, run `resources/checklist.md`.
272273### Configuration
274275Project-specific settings: the `image:` section of `.agents/oma-config.yaml`, which `oma update` preserves. Shipped defaults live in the CLI (`DEFAULTS` in `cli/commands/image/config.ts`) — write only the keys you change. The legacy `config/image-config.yaml` is no longer read by the CLI; migration 022 moves anything you had changed there into oma-config (and deletes the file when it was never edited).
276Env vars: `OMA_IMAGE_DEFAULT_VENDOR`, `OMA_IMAGE_DEFAULT_OUT`, `OMA_IMAGE_YES`, `POLLINATIONS_API_KEY`.
277278- Execution steps: `resources/execution-protocol.md`
279- Vendor matrix: `resources/vendor-matrix.md`
280- Prompt tips: `resources/prompt-tips.md`
281- Checklist: `resources/checklist.md`
282- Context loading: `../_shared/core/context-loading.md`
Run npx skillmds@latest add first-fluke/oma-image in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Multi-vendor AI image generation with authentication-aware parallel dispatch. Routes to Codex (gpt-image-2 via ChatGPT OAuth), Antigravity (Gemini-family "nano-banana" image models via `agy` CLI + Gemini Code Assist; exact model chosen internally by agy), and Pollinations (flux/zimage, free with signup). Use for image generation, image creation, visual asset generation, and AI art. It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: makes network calls. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
first-fluke (@first-fluke) published this skill. Their other Agent Skills are listed on their SkillMD profile.