Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add SawyerHood/middleman --skill image-generationgit clone --depth 1 https://github.com/SawyerHood/middlemanWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/sawyerhood/middleman/image-generation)<a href="https://agentmods.dev/skills/sawyerhood/middleman/image-generation"><img src="https://agentmods.dev/badge/skills/sawyerhood/middleman/image-generation/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/sawyerhood/middleman/image-generation"><img src="https://agentmods.dev/badge/skills/sawyerhood/middleman/image-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00023 | $0.00357 |
| Opus 5.5 | $0.00009 | $0.00143 |
| Sonnet 5.5 | $0.00005 | $0.00071 |
| Haiku 4.5 | $0.00002 | $0.00036 |
Grade A, and why
image-generation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
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 like16:9,1:1,4:3--size(optional): image size, default1K
Output
The script prints JSON:
- Success:
{ "ok": true, "file": "/path/to/output.png", "mimeType": "image/png" } - Failure:
{ "ok": false, "error": "..." }
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 46 lines · 23 tokens per session scan A 5880026e61c3
image-generation is a skill published in the GitHub repository SawyerHood/middleman (185 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 23 tokens to every session and 357 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
image-generation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| image-generationSawyerHood/middleman | Skill | 185 | 5mo ago | Apache-2.0 | A | 23 | Claude Code, Codex |
| foundry-config-setupmicrosoft/agent-framework | Skill | 15k | yesterday | MIT | A | 65 | Claude Code, Codex |
| rowboat-spacesrowboatlabs/rowboat | Skill | 18k | yesterday | Apache-2.0 | A | 60 | Claude Code, Codex |
| create-tech-designhumanlayer/humanlayer | Skill | 13k | yesterday | Apache-2.0 | A | 16 | Claude Code, Codex |
| deploy-docker-composeomnigent-ai/omnigent | Skill | 11k | yesterday | Apache-2.0 | A | 84 | Claude Code, Codex |
| haikuagno-agi/agno | Skill | 43k | yesterday | Apache-2.0 | A | 0 | Claude Code, Codex |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 78 | Claude Code |