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 | $0.00012 | $0.00179 |
| Sonnet 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 9d 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.
- 9d ago First seen · 46 lines · 23 tokens per session scan A 5880026e61c3
image-generation is a skill published in the GitHub repository SawyerHood/middleman (181 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 23 tokens to every session and 357 once invoked, about $0.0001 per session on Opus 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.
Other skills, from other repositories
gpt-image-2-style-library
Choose GPT-Image2 / gpt-image-2 visual styles and industrial prompt templates from the awesome-gpt-image-2 style library. Use when an agent needs to create, rewrite, classify, or improve image-generation prompts with repository-backed templates, categories, style tags, scene tags, pitfalls, and example cases.
feature-demo-recording
Record a demo video of a web feature from a real browser. Two modes -- a NARRATED film where measured voiceover drives the timeline (designed slides, subtitles, punch-in camera, rendered from an HTML timeline), and a SILENT evidence clip for a PR or a QA pass. Use when the user asks to record a video, demo, or screen…
image-authoring
Author images and diagrams as code — SVG, Pillow, Excalidraw, mermaid. Load when asked to draw, illustrate, or make an image, icon, logo, poster, or diagram.
imagemagick
Edit and convert images with the ImageMagick magick CLI — resize, crop, convert format, compress, rotate, montage, annotate. Use for any still-image transformation.
ffmpeg
Process audio and video with the ffmpeg / ffprobe CLIs — convert, trim, extract audio, resize, change format, make GIFs, inspect media. Use for any audio/video transformation.
pptx-maker
Generate or restyle a PowerPoint deck. Use when the user wants to create or edit a .pptx presentation, build slides from text or a URL, or design a reusable slide style.