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 mathiasbourgoin/roster --skill image-generationgit clone --depth 1 https://github.com/mathiasbourgoin/rosterWrote 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/mathiasbourgoin/roster/image-generation)<a href="https://agentmods.dev/skills/mathiasbourgoin/roster/image-generation"><img src="https://agentmods.dev/badge/skills/mathiasbourgoin/roster/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/mathiasbourgoin/roster/image-generation"><img src="https://agentmods.dev/badge/skills/mathiasbourgoin/roster/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.00021 | $0.01751 |
| Opus 5.5 | $0.00008 | $0.00700 |
| Sonnet 5.5 | $0.00004 | $0.00350 |
| Haiku 4.5 | $0.00002 | $0.00175 |
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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Image Generation
Generate or edit an image using the Codex CLI based on $ARGUMENTS.
Parse $ARGUMENTS as one of:
"<prompt>"— generate a new image"edit <path> <prompt>"— edit an existing image- Optional inline hints:
size:<WxH>,format:<png|jpg|webp>,out:<path>,style:<hint>
Examples:
"a watercolor moonlit library""edit assets/hero.png replace background with white""a minimalist OCaml logo size:512x512 out:docs/logo.png"
Step 1 — Parse and Resolve Arguments
Extract from $ARGUMENTS:
MODE:generateoreditRAW_PROMPT: the user's original descriptionINPUT_PATH: (edit mode only) path to source image — verify it exists; abort if notSIZE: default1024x1024; override ifsize:WxHpresentFORMAT: defaultpng; override ifformat:XpresentOUTPUT_PATH: ifout:<path>present, use it; otherwise ask the user where to save the result
If OUTPUT_PATH is missing and $ARGUMENTS provides no hint, ask:
"Where should I save the image? (e.g.,
assets/hero.png)"
Do not proceed until OUTPUT_PATH is resolved.
Step 2 — Prompt Refinement
Before invoking Codex, rewrite RAW_PROMPT into a detailed, visually precise prompt:
- Add composition, lighting, mood, and style details the user left implicit
- Incorporate
SIZEas an aspect ratio hint (e.g., "square 1:1 composition") - Incorporate
FORMATonly if it has visual implications (e.g., transparency for PNG) - Keep the user's intent intact — do not substitute a different concept
Store the result as REFINED_PROMPT. Show the user both the original and refined version:
Original:
<RAW_PROMPT>Refined:<REFINED_PROMPT>
If the user rejects the refinement, use RAW_PROMPT as-is.
Step 3 — Generate
Set ATTEMPT=1, MAX_ATTEMPTS=3.
Generate mode:
codex exec --full-auto "Generate a <SIZE> <FORMAT> image of: <REFINED_PROMPT>. Save the result to <OUTPUT_PATH>."
Edit mode:
codex exec --full-auto "Edit the image at <INPUT_PATH>: <REFINED_PROMPT>. Save the result to <OUTPUT_PATH>."
What ships with it
1 file 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.
- 1mo ago Changed · -5 tokens per session 5f16678da79c
- 2mo ago First seen · 161 lines · 26 tokens per session scan A e36aa724b0ec
image-generation is a skill published in the GitHub repository mathiasbourgoin/roster (2 stars, last pushed 6d ago), licensed MIT. It adds 21 tokens to every session and 1,751 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-31.
Other skills, from other repositories
ai-image-generation-studio
Install and use the official AI Image Generator package, pinned by digest, for paid hosted work on the Beatra service.
ai-storyboard-generator
Install and use the official AI Storyboard Generator package, pinned by digest, for paid hosted work on the Beatra service.
Folio Content
How to write page markdown that Folio renders correctly and that stays readable as plain markdown on GitHub — syntax cheat sheet, page templates, and anti-patterns.
atlas-cloud-media
Generate Atlas Cloud images and videos through its asynchronous media API with schema-first model selection and credential-safe polling.
humanizer-zh
Use when removing AI writing痕迹 from Chinese text to make it sound more natural and human-written.
media-tools
A guide and script for generating images, illustrations, avatars, backgrounds, and banners through configured image-generation services. It uses available API keys from environment or local secret files.