codex-image2

codex-image2 is a skill for Codex from fengfengzhidao/codex-image2-skill. It costs 73 tokens per session (1,962 once invoked), scanned A, original, MIT.

A command-line tool for creating and editing raster images, which are bitmap files such as photos, illustrations, and website graphics, through an OpenAI-compatible image service.

In plain words
What is it for?
Use it to generate images, edit existing images, create product or website assets, replace backgrounds, and make batches of visual variants.
Why use it?
It provides a fixed local workflow for image generation and editing without requiring extra programming languages or package installation.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it to generate images, edit existing images, create product or website assets, replace backgrounds, and make batches of visual variants.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fengfengzhidao/codex-image2-skill/codex-image2
Install

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.

Any agent
npx skills add fengfengzhidao/codex-image2-skill --skill codex-image2
Clone the repo
git clone --depth 1 https://github.com/fengfengzhidao/codex-image2-skill

Made for: Codex.

Wrote 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.

agentmods badge for codex-image2

README.md
[![agentmods](https://agentmods.dev/badge/skills/fengfengzhidao/codex-image2-skill/codex-image2/github.svg)](https://agentmods.dev/skills/fengfengzhidao/codex-image2-skill/codex-image2)
Your own site
<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.

agentmods 80×15 button for codex-image2

Your own site · 80×15
<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>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,962 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 7d ago against content hash 2744377733a6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 1 executable file (配置图片服务.cmd), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

codex-image2/SKILL.md · 122 lines

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.

  1. Decide whether the request is a new image, an edit, or multiple distinct assets/variants.
  2. Collect the prompt, intended use, exact text, visual constraints, and avoid items.
  3. Shape the prompt only as much as needed. Preserve detailed prompts; tastefully clarify generic prompts without inventing brands, people, slogans, or unrelated objects.
  4. Run the selected executable with generate for one prompt, edit for changes to existing images, or generate-batch for JSONL jobs.
  5. Inspect each output for subject, composition, text accuracy, constraints, and visible artifacts.
  6. If revision is needed, change one targeted aspect per iteration and re-check.
  7. 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>

Read the full file on GitHub · 122 lines

Changes

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.

  1. 7d ago Changed · +17 lines · -5 tokens per session 2744377733a6
  2. 1mo ago First seen · 105 lines · 78 tokens per session scan A 3bbc0a45da09

Subscribe to this mod's changes

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.

Related

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…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

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…

vercel/next.js · 95 tokens

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…

microsoft/vscode · 72 tokens

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.

microsoft/vscode · 53 tokens

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.

microsoft/vscode · 53 tokens