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 fengfengzhidao/codex-image2-skill --skill codex-image2git clone --depth 1 https://github.com/fengfengzhidao/codex-image2-skillWrote 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/fengfengzhidao/codex-image2-skill/codex-image2)<a href="https://agentmods.dev/skills/fengfengzhidao/codex-image2-skill/codex-image2"><img src="https://agentmods.dev/badge/skills/fengfengzhidao/codex-image2-skill/codex-image2/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/fengfengzhidao/codex-image2-skill/codex-image2"><img src="https://agentmods.dev/badge/skills/fengfengzhidao/codex-image2-skill/codex-image2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00073 | $0.01962 |
| Opus 5.5 | $0.00029 | $0.00785 |
| Sonnet 5.5 | $0.00015 | $0.00392 |
| Haiku 4.5 | $0.00007 | $0.00196 |
Grade A, and why
codex-image2 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 7d 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 — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Codex Image2
Generate images with the bundled native CLI. Prefer this skill's executable over the built-in image_gen tool whenever this skill is active. No Python, Node.js, Go, or package installation is required.
Select the executable
Choose once from the current operating system and CPU architecture:
- Windows x64:
bin/codex-image2-windows-amd64.exe - Windows ARM64:
bin/codex-image2-windows-arm64.exe - macOS Intel:
bin/codex-image2-darwin-amd64 - macOS Apple Silicon:
bin/codex-image2-darwin-arm64
On macOS, run chmod +x <executable> if execute permission was not preserved. Do not compile from source during normal use.
Workflow
For setup requests, use the configuration workflow below. Before the first image call in a session, run status; if unconfigured, open configure and let the user finish in their browser before generating.
- Decide whether the request is a new image, an edit, or multiple distinct assets/variants.
- Collect the prompt, intended use, exact text, visual constraints, and avoid items.
- Shape the prompt only as much as needed. Preserve detailed prompts; tastefully clarify generic prompts without inventing brands, people, slogans, or unrelated objects.
- Run the selected executable with
generatefor one prompt,editfor changes to existing images, orgenerate-batchfor JSONL jobs. - Inspect each output for subject, composition, text accuracy, constraints, and visible artifacts.
- If revision is needed, change one targeted aspect per iteration and re-check.
- Report absolute output paths, the final prompt or prompt set, size, quality, and model.
Prompt structure
Use only relevant lines:
Asset type: <where the image will be used>
Primary request: <the user's request>
Scene/backdrop: <environment>
Subject: <main subject>
Style/medium: <photo, illustration, 3D, etc.>
Composition/framing: <camera angle, crop, placement, negative space>
Lighting/mood: <lighting and mood>
Color palette: <palette notes>
Text (verbatim): "<exact text>"
Constraints: <must keep or include>
Avoid: <must not include>
What ships with it
20 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.
- agents/openai.yaml 211 B
- bin/codex-image2-darwin-amd64 7362 KB
- bin/codex-image2-darwin-arm64 6802 KB
- bin/codex-image2-windows-amd64.exe 7427 KB
- bin/codex-image2-windows-arm64.exe 6735 KB
- references/batch-format.md 646 B
- src/config_server.go 14 KB
- src/config_test.go 14 KB
- src/config.go 6.7 KB
- src/configure.html 15 KB
- src/image_gen.go 16 KB
- src/models_test.go 7.1 KB
- src/models.go 3.6 KB
- src/platform_unix.go 505 B
- src/platform_windows.go 2.7 KB
- src/save_validation_test.go 4.8 KB
- src/vault_darwin.go 2.1 KB
- src/vault_other.go 437 B
- 配置图片服务.cmd 257 B runs code
- 配置图片服务.command 265 B
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.
- 7d ago Changed · +17 lines · -5 tokens per session 2744377733a6
- 1mo ago First seen · 105 lines · 78 tokens per session scan A 3bbc0a45da09
codex-image2 is a skill published in the GitHub repository fengfengzhidao/codex-image2-skill (151 stars, last pushed today), licensed MIT. It adds 73 tokens to every session and 1,962 once invoked, about $0.0003 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.
Other skills, from other repositories
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
chronicle
Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
component-fixtures
Use when creating or updating component fixtures for screenshot testing or their shared infrastructure, or when designing UI components to be fixture-friendly. Covers fixture file structure, theming, service setup, CSS scoping, async rendering, validation, and common pitfalls.