Agent skill

Image Generation

by SawyerHood in SawyerHood/middleman

Generate images using Google Gemini (gemini-3-pro-image-preview).

Apache-2.0Auto-check passedMedia & Creative

Install Image Generation

skills CLI
$ npx skills add SawyerHood/middleman --skill image-generation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install SawyerHood/middleman image-generation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/SawyerHood/middleman.git skills-src && mkdir -p .claude/skills && cp -r skills-src/apps/backend/src/swarm/skills/builtins/image-generation .claude/skills/image-generation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
image-generation
GitHub stars
184
Token cost
~346 tokens
SKILL.md length
86 words
Files
3
Skills in repo
3
Repo updated
First seen
Licence
Apache-2.0

At a glance

Generate images using Google Gemini (gemini-3-pro-image-preview).

  • Tasks that involve Image generation
  • SKILL.md covers Options and Output
  • Runs TypeScript and JavaScript scripts from its folder
  • Tasks that involve LLM API integration

What it does

Image Generation is an agent skill from SawyerHood/middleman. Generate images using Google Gemini (gemini-3-pro-image-preview). Requires GEMINIAPIKEY.

Its SKILL.md is about 350 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `generate.d.ts` and `generate.js`).

It sits in Media & Creative, covering Image generation and LLM API integration. It works with Google Gemini. The repository describes itself as: The middle manager for your agents. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Image generation
  • Tasks that involve LLM API integration

Example prompts

  • “/image-generation”

Requirements

  • Node.js
  • A credential in GEMINI_API_KEY

What it can do on your machine

Read from SKILL.md and the folder at commit 27b9602. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (TypeScript and JavaScript), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Image Generation loads about 346 tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 86 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~27
When it runs · the whole SKILL.md, loaded when a task matches
~346

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from SawyerHood/middleman at commit 27b9602, republished under its Apache-2.0 licence (© SawyerHood). 86 words, ~346 tokens.

Download SKILL.mdSave it as .claude/skills/image-generation/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
image-generation
description
Generate images using Google Gemini (gemini-3-pro-image-preview). Requires GEMINI_API_KEY.

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:

bash
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:

bash
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": "..." }

© SawyerHood, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files in apps/backend/src/swarm/skills/builtins/image-generation of SawyerHood/middleman.

  • SKILL.md
  • generate.d.ts
  • generate.js

Open the folder on GitHubat commit 27b9602

Compare with similar skills

Image Generation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Image Generation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Image Generation this skillSawyerHood/middleman184—~346Automated safety check: PassApache-2.0
Multi Method Image Generationbam-bam-2/solo-skills367—~457Automated safety check: NotesMIT
Google Gemini Mediasundial-org/awesome-openclaw-skills6631 repos~4.5kAutomated safety check: PassMIT
Nanobananaaiskillstore/marketplace433—~994Automated safety check: PassMIT
Nanobananaminicoohei/ai-agent-camp347—~554Automated safety check: PassNone
Thumbnail Creatormohitagw15856/pm-claude-skills1.4k—~6.3kAutomated safety check: PassMIT

Similar skills

  • Multi Method Image Generation

    bam-bam-2/solo-skills

    사용자가 "모든 방법 총동원해서 이미지로 만들어줘" 같이 이미지 제작에 가진 능력을 다 쓰라고 요청할 때 사용.

    367 GitHub stars~457 tokensUpdated 26 days ago
    Media & CreativeAuto-check: notes
  • Google Gemini Media

    sundial-org/awesome-openclaw-skills

    Use the Gemini API (Nano Banana image generation, Veo video, Gemini TTS speech and audio understanding) to deliver end-to-end multimodal media workflows and code templates for "generation +…

    663 GitHub starsUsed in 1 repo~4.5k tokens
    Media & CreativeAuto-check passed
  • Nanobanana

    aiskillstore/marketplace

    Generate, edit, and restore images with Google's Nano Banana (Gemini image models).

    433 GitHub stars~994 tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Nanobanana

    minicoohei/ai-agent-camp

    Gemini画像生成APIでテキストから画像生成、既存画像の編集を行うスキル. An agent skill from minicoohei/ai-agent-camp.

    347 GitHub stars~554 tokensUpdated 4 days ago
    Media & CreativeAuto-check passed
  • Thumbnail Creator

    mohitagw15856/pm-claude-skills

    Generate article or newsletter thumbnail candidates using the Gemini API from inside Claude Code.

    1.4k GitHub stars~6.3k tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • A skill your agent uses when writing code that calls the Gemini API for text generation, multi-turn chat, multimodal understanding, image generation, video generation, streaming responses…

    225 GitHub stars~4.6k tokensUpdated today
    Media & CreativeAuto-check passed

More from SawyerHood/middleman

  • Cron Scheduling

    SawyerHood/middleman

    Create, list, and remove persistent scheduled tasks using cron expressions.

    184 GitHub stars~349 tokensUpdated 4 mo ago
    Auto-check passed
  • Memory

    SawyerHood/middleman

    Update persistent swarm memory in ${SWARMMEMORYFILE} when the user explicitly asks to remember, update, or forget durable information.

    184 GitHub stars~297 tokensUpdated 4 mo ago
    Auto-check passed

Works with

Questions about Image Generation

What does Image Generation do?

Generate images using Google Gemini (gemini-3-pro-image-preview). Image Generation is an agent skill from SawyerHood/middleman. Generate images using Google Gemini (gemini-3-pro-image-preview).

When should I use Image Generation?

Image Generation fits situations like: tasks that involve Image generation; tasks that involve LLM API integration.

How do I install Image Generation in Claude Code?

Run `npx skills add SawyerHood/middleman --skill image-generation -a claude-code`. Or copy the skill folder (apps/backend/src/swarm/skills/builtins/image-generation in SawyerHood/middleman) into .claude/skills/image-generation in your project. Claude Code loads it when a task matches its description.

How do I install Image Generation in Codex?

Run `npx skills add SawyerHood/middleman --skill image-generation -a codex`. Or copy the skill folder (apps/backend/src/swarm/skills/builtins/image-generation in SawyerHood/middleman) into .agents/skills/image-generation in your project. Codex loads it when a task matches its description.

Can I use Image Generation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add SawyerHood/middleman --skill image-generation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/image-generation, .gemini/skills/image-generation, .github/skills/image-generation and .opencode/skills/image-generation in your project.

What does Image Generation need to run?

Going by SKILL.md and its folder, Image Generation needs TypeScript and JavaScript for the scripts in its folder. Our summary lists: Node.js; A credential in GEMINI_API_KEY.

Does Image Generation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Image Generation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Image Generation use?

Image Generation is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Image Generation use?

About 346 tokens (SKILL.md is roughly 1.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Image Generation?

Skills that share tags, products or a category with Image Generation: Multi Method Image Generation (bam-bam-2/solo-skills, 367 stars), Google Gemini Media (sundial-org/awesome-openclaw-skills, 663 stars), Nanobanana (aiskillstore/marketplace, 433 stars) and Nanobanana (minicoohei/ai-agent-camp, 347 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Image Generation?

SawyerHood (a GitHub user) maintains it in SawyerHood/middleman, which has 184 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on May 21, 2026.

Source: SawyerHood/middleman on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.