Install any skill in seconds. Free to start, no credit card required.
Get Started Free →fradser/generate-image
Generate or edit images via two backends: Google Gemini (gemini-3-pro-image) or any OpenAI-compatible endpoint (gpt-image-2, dall-e-3).
6 of 24 test cases passed with the skill.
Tokens, turns and time describe resource use, not a dollar price.
Lift withheld: 6 comparable cases; this report requires 8.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
Show me the command to generate a futuristic space station image saved to station.png.
| Checked | Without skill | With skill |
|---|---|---|
| Includes an explicit --backend flag in the command | Missed | Passed |
The instructions your model reads when the skill loads.
Turn a text prompt — optionally with reference images — into one or more images
via one of two explicit backends. --backend has no default — always pick
one (gemini or openai), or set IMAGE_BACKEND. The script does the API
call, file saving, and configuration; your job is to pick the backend, craft a
strong prompt, and wire up the flags.
gemini — Google's native Gemini API via google-genai. Full feature
set: --aspect-ratio, --size tiers (1K/2K/4K), and multi-image
edit/compose (-i a.png -i b.png). Use GEMINI_API_KEY / GEMINI_IMAGE_MODEL.openai — any OpenAI-compatible image endpoint (OpenAI official,
DashScope, new-api gateways, ...). Use OPENAI_API_KEY / OPENAI_BASE_URL /
OPENAI_IMAGE_MODEL. Supports gpt-image-2, dall-e-3, etc.uv available (the script is a self-contained uv run script; deps install on first run).
The API key for the chosen backend. The script resolves it progressively, so any one works:
export GEMINI_API_KEY=... (gemini backend) or export OPENAI_API_KEY=... (openai backend), or.env file (checked in order: $PWD/.env, then ${CLAUDE_PLUGIN_ROOT}/.env), or--api-key ... on the command line.CRITICAL -- Never paste the API key into chat or commit a .env. If the key is missing,
the script prints exactly how to set it — relay that to the user rather than guessing.
A one-line request like "draw a fox in a spacesuit" needs no questions — just generate. Ask (via AskUserQuestion) only when a choice would materially change the result and you cannot reasonably default it, e.g. aspect ratio for a "banner vs. avatar", or whether an attached image should be edited vs. used as style reference.
Read references/prompting.md before writing a non-trivial prompt. In short: describe
subject, composition, lighting, style, and mood in concrete terms; put any literal text to
render in quotes; and for edits, state what to change AND what to keep. A vivid one-paragraph
test cases passed with the skill
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.