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 AiAi-Mastermind/aiai-mastermind-tools-and-skills --skill gpt-imagegit clone --depth 1 https://github.com/AiAi-Mastermind/aiai-mastermind-tools-and-skillsWrote 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/aiai-mastermind/aiai-mastermind-tools-and-skills/gpt-image)<a href="https://agentmods.dev/skills/aiai-mastermind/aiai-mastermind-tools-and-skills/gpt-image"><img src="https://agentmods.dev/badge/skills/aiai-mastermind/aiai-mastermind-tools-and-skills/gpt-image/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/aiai-mastermind/aiai-mastermind-tools-and-skills/gpt-image"><img src="https://agentmods.dev/badge/skills/aiai-mastermind/aiai-mastermind-tools-and-skills/gpt-image.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.00095 | $0.01178 |
| Opus 5 | $0.00048 | $0.00589 |
| Sonnet 5 | $0.00019 | $0.00236 |
| Haiku 4.5 | $0.00010 | $0.00118 |
Grade A, and why
gpt-image 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 12d 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 — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
gpt-image
Overview
Generate images from Claude Code using a ChatGPT subscription (no paid API key) by delegating to Codex CLI's built-in image_gen tool, which runs through the user's ChatGPT OAuth session.
Core rule: a ChatGPT OAuth login is NOT an API key. Do not call the OpenAI Images API — the OAuth token lacks image scope and returns 401 missing scopes: api.model.images.request. Codex's built-in image_gen tool needs no key. Always route through Codex.
When to use
- Any request to generate / create / make / render / draw an image, photo, mockup, hero, banner, illustration, icon, sprite, or texture from Claude Code.
- The machine has Codex CLI plus a ChatGPT login, and there is no usable
OPENAI_API_KEY.
Do NOT use when: a real OPENAI_API_KEY is available and direct API control is wanted, or the asset is better authored as code/SVG.
Prerequisites
codex --versionsucceeds (Codex CLI installed).- Codex is signed in to ChatGPT (authenticated via OAuth).
- Do not read the key out of
~/.codex/auth.json— Claude Code's credential safety layer blocks it, and there is no usable image key there anyway. If image generation fails, report the error; do not hunt for a key.
Workflow
- Write a brief (plain text): shared style + per-image subject/composition + aspect ratio + ABSOLUTE destination path + constraints ("only write these files, no git, don't edit the repo").
- Run Codex headless:
Run it in the background for batches; then read the output file.codex exec --sandbox workspace-write \ -c sandbox_workspace_write.network_access=true \ --skip-git-repo-check "$(< /abs/path/to/brief.txt)" - Force the built-in tool in the brief: tell Codex to use its built-in
image_gentool (one call per image). Explicitly forbid the OpenAI Images API and one-off SDK scripts — that path 401s on OAuth. - Single location — MOVE, don't copy. The built-in tool always writes to
~/.codex/generated_images/<session>/first. Instruct Codex tomv(nevercp) each file to the absolute destination, thenrmdirthe emptied session folder. Never touch other session folders (the user's prior work). - Verify: open the saved images, confirm subject/quality/brand, confirm the destination holds the files and the cache session is gone.
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.
- 12d ago First seen · 77 lines · 95 tokens per session scan A 19cdcf2773fd
gpt-image is a skill published in the GitHub repository AiAi-Mastermind/aiai-mastermind-tools-and-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 95 tokens to every session and 1,178 once invoked, about $0.0005 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-31.
Other skills, from other repositories
wiki-ingest
Ingest supplied source material into an Obsidian vault with provenance and claim tracking: pasted text, files staged in the selected vault's inbox or .raw archive, or explicitly approved URLs. Use for a single source or bounded batch, not for saving an assistant answer. Triggers: ingest, ingest this file, ingest this…
autoresearch
Run a bounded, source-grounded research loop, draft a cited dossier, and optionally propose a separately reviewed canonical vault merge. Use when the user wants autonomous or deep research that may access the public web. Triggers: /autoresearch, autoresearch, research this topic, deep dive into, investigate, find…
canvas
Create, inspect, and update Obsidian JSON Canvas boards with text, file, link, group, and edge nodes. Use for canvas status, canvas lists, visual maps, zones, spatial layouts, adding vault notes or media to a .canvas file, and requests such as create canvas, add to canvas, or put this on the canvas.
defuddle
Plan and, with explicit network consent, use an optional external Defuddle cleaner to extract article-like HTTPS pages as Markdown. Use for defuddle, clean this URL, strip page clutter, readable Markdown from a web page, or preparing a web source for later wiki ingestion.
obsidian-bases
Explain, draft, and validate Obsidian Bases .base files with filters, formulas, properties, summaries, and table, card, or list views. Use for Obsidian Bases, database-like vault views, dynamic tables, reading lists, task trackers, filters, formulas, summaries, and .base file edits.
obsidian-markdown
Explain, draft, or validate Obsidian Flavored Markdown syntax: properties, wikilinks, embeds, callouts, tags, comments, highlights, block references, math, and Mermaid. Use when the user explicitly requests Obsidian note formatting or syntax help, not for general Markdown or broad vault operations.