image-generation — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited image-generation (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Generate professional AI images using Google Gemini via the bundled CLI script.
Invoke immediately when:
Web Development
placeholder.jpg, stock-photo.png)<section class="hero"> without images)Presentations & Documents
Applications
Run the bundled CLI script via bash:
node "${CLAUDE_PLUGIN_ROOT}/mcp-server/build/cli.bundle.js" \
--prompt "Your detailed image description" \
--output "./path/to/output.png" \
--aspect-ratio "16:9"| Flag | Required | Default | Description |
|---|---|---|---|
| --prompt, -p | Yes | - | Detailed image description |
| --output, -o | No | auto-generated | Output file path |
| --aspect-ratio, -a | No | 1:1 | 1:1, 16:9, 9:16, 4:3, 3:4, 2:3, 3:2 |
| --model, -m | No | provider default | Model to use; routes the provider (gpt-image/dall-e → OpenAI, others → Gemini) |
| --reference-images, -r | No | - | Reference image paths (PNG/JPEG/WebP, repeatable or comma-separated, max 5) |
| --mask | No | - | PNG mask marking the region to repaint; OpenAI only, requires --reference-images |
| --background, -b | No | provider default | auto, transparent or opaque; OpenAI only. gpt-image-2 refuses transparent and is rejected before the request is sent |
| --output-format, -f | No | provider default | png, jpeg or webp; OpenAI only |
| --output-dir, -d | No | current directory | Output directory |
| Variable | Required | Description |
|---|---|---|
| GEMINI_API_KEY | At least one of GEMINI_API_KEY / OPENAI_API_KEY | Your Gemini API key |
| OPENAI_API_KEY | At least one of GEMINI_API_KEY / OPENAI_API_KEY | Your OpenAI API key |
| GEMINI_DEFAULT_MODEL | No | Preferred default Gemini model |
| OPENAI_DEFAULT_MODEL | No | Preferred default OpenAI model (default: gpt-image-2) |
| IMAGE_PROVIDER | No | gemini or openai — provider used when --model is omitted |
| MEDIA_PIPELINE_LOG_LEVEL | No | Logging level for stderr diagnostics |
The CLI outputs JSON:
{"success": true, "filePath": "/path/to/generated-image.png"}Or on error:
{"success": false, "error": "Error message"}Use this formula for effective prompts:
[Style] [Subject] [Composition] [Context/Atmosphere]Hero Image for Tech Startup
Minimalist 3D illustration of abstract geometric shapes floating in space,
soft gradient background from deep purple to electric blue, subtle glow effects,
modern professional aesthetic, wide composition for website headerE-commerce Product
Clean product photography of modern wireless headphones on white marble surface,
soft studio lighting from left, subtle shadows, high-end minimalist aesthetic,
centered compositionBlog Post Header
Aerial photography of winding river through autumn forest, golden hour lighting,
warm color palette with oranges and reds, cinematic wide shot, serene atmosphereApp Illustration
Flat vector illustration of person organizing digital files on floating screens,
soft pastel colors, isometric perspective, clean lines, friendly approachable styleAutomatically invoke this skill when you see:
<!-- Placeholder detection -->
<img src="placeholder.jpg" alt="Hero">
<!-- Action: Invoke skill and generate a custom hero image -->
<!-- Empty visual section -->
<section class="features">
<h2>Our Features</h2>
<!-- No images -->
</section>
<!-- Action: Invoke skill to create feature illustrations -->/* Generic stock reference */
.banner { background: url('stock-image.jpg'); }
/* Action: Invoke skill to create a unique background */skill: "image-generation" immediatelyThe CLI is dual-provider: the --model value routes the request — model names starting with gpt-image or dall-e go to OpenAI, everything else goes to Gemini. When --model is omitted, IMAGE_PROVIDER picks which provider's default model is used.
GEMINI_DEFAULT_MODEL, e.g. gemini-3-pro-image) — models are fetched dynamically from the Gemini API; the CLI falls back to the first discovered image-capable model if no default is set. Prefer Gemini for iterative creative work and when relying on the dynamically discovered model catalog.OPENAI_DEFAULT_MODEL, default gpt-image-2) — use when you specifically need OpenAI's gpt-image-2 model, or when only an OpenAI API key is configured. Note OpenAI's image sizes are limited to 1024x1024/1536x1024/1024x1536; non-matching aspect ratios are mapped to the nearest supported size with a warning.DO:
DON'T:
For advanced prompt techniques: references/prompt-crafting.md
If the MCP server is configured, you can also use:
mcp__media-pipeline__create_assetParameters: prompt, outputPath, aspectRatio, model (routes to Gemini or OpenAI by name), referenceImages (up to 5 absolute paths, PNG/JPEG/WebP), mask, background, outputFormat (the last three are OpenAI-only)
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.