Skip to content
Agent Orchestration
Skill

/image-generation

Google AI Studio / Gemini API key

From plugin
middleman
1814 skills
Install
$ npx -y skills add SawyerHood/middleman --skill image-generation --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/image-generation

Context preview

The summary Claude sees to decide when to auto-load this skill.

Google AI Studio / Gemini API key

SKILL.md

image-generation.SKILL.md
name: image-generation
description: Generate images using Google Gemini (gemini-3-pro-image-preview). Requires GEMINI_API_KEY.
envVars:
  - name: GEMINI_API_KEY
    description: Google AI Studio / Gemini API key
    required: true

Image Generation

Generate images using Google Gemini (`gemini-3-pro-image-preview`) for both text-to-image and image-to-image workflows.

Use the packaged CLI:

middleman image generate \
  --prompt "a cute robot bee in a garden" \
  --output "/path/to/output.png"

Image-to-image generation is supported with repeated `--input-image` flags:

middleman image generate \
  --prompt "turn this sketch into a painted poster with a limited teal and coral palette" \
  --input-image "/path/to/sketch.png" \
  --input-image "/path/to/reference.jpg" \
  --output "/path/to/output.png"

Options

  • `--prompt` (required): text description of the image to generate
  • `--output` (required): output file path (extension auto-detected when omitted)
  • `--input-image` (optional, repeatable): local source image(s) to send alongside the prompt
  • `--aspect-ratio` (optional): aspect ratio like `16:9`, `1:1`, `4:3`
  • `--size` (optional): image size, default `1K`

Output

The script prints JSON:

  • Success: `{ "ok": true, "file": "/path/to/output.png", "mimeType": "image/png" }`
  • Failure: `{ "ok": false, "error": "..." }`
Ships withmiddleman

A local-first multi-agent orchestration platform. One manager, many workers, zero tab-juggling. Middleman is pre-v1, experimental, and updated constantly. Expect breaking changes.

Get the whole plugin
Stats
181
Stars
21
Forks
Maintained
Maintenance
TypeScript
Language
Apache-2.0
License
3mo ago
Last commit
6mo ago
Created

Repo: SawyerHood/middleman