gpt-image2

gpt-image2 is a skill for Claude Code, Codex from seaworld008/Commonly-used-high-value-skills. It costs 32 tokens per session (3,145 once invoked), scanned B, original, MIT.

An image-generation skill that lets Codex create pictures from text or guide generation with reference images using a configured GPT Image 2 service.

In plain words
What is it for?
It helps create visual assets, variations, and images at chosen sizes or quality levels.
Why use it?
It removes the need to manually call the image service or manage returned image files.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads ~/.codex paths; mentions Codex.

Good fit It helps create visual assets, variations, and images at chosen sizes or quality levels.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/seaworld008/commonly-used-high-value-skills/gpt-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 seaworld008/Commonly-used-high-value-skills --skill gpt-image2
Clone the repo
git clone --depth 1 https://github.com/seaworld008/Commonly-used-high-value-skills

Made for: Claude Code, 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 gpt-image2

README.md
[![agentmods](https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/gpt-image2/github.svg)](https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/gpt-image2)
Your own site
<a href="https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/gpt-image2"><img src="https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/gpt-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 gpt-image2

Your own site · 80×15
<a href="https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/gpt-image2"><img src="https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/gpt-image2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,145 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 5 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Agent Snooping · line 19
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • high Agent Snooping · line 53
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • high Agent Snooping · line 184
    Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.
    Fix: Remove all code or instructions that access agent configuration directories (.claude/, .codex/, .gemini/). If configuration values are needed, pass them explicitly as parameters or environment variabl
  • medium Excessive Agency · line 48
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Rogue Agent · line 73
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00032 $0.03145
Opus 5.5 $0.00013 $0.01258
Sonnet 5.5 $0.00006 $0.00629
Haiku 4.5 $0.00003 $0.00314

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

Security

Grade B, and why

gpt-image2 scanned grade B with 1 finding 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/gpt-image2.mjs), 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

The fallback readers target provider `base_url` in `~/.codex/config.toml` and `OPENAI_API_KEY` in `~/.codex/auth.json`. Do not search other credential locations or print secrets. Existing environment variables can be che
openclaw-skills/gpt-image2/SKILL.md · 262 lines

How it starts

The opening of the file, as written. The whole thing — 262 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GPT Image 2

This skill uses the bundled scripts/gpt-image2.mjs CLI to call a configured gpt-image-2 compatible service, save image files, and report local paths. Follow host tool and credential-access requirements before selecting this path.

Use the existing imagegen skill when the user needs the official OpenAI Image API workflow with editing, masking, background work, or broader project asset generation. Use this skill when the user specifically wants this gpt-image-2 compatible drawing path, inherited Codex/OpenAI-style credentials, a configured URL/sk pair, or a simple "Codex, draw this for me" workflow backed by scripts/gpt-image2.mjs.

When to Use

  • The user asks Codex to draw, generate, create, render, or make a new image through the configured drawing service.
  • The user mentions gpt-image-2, gpt-image2, inherited Codex/OpenAI credentials, a local drawing channel, URL/sk configuration, or the included gpt-image2.mjs script.
  • The request is text-to-image with optional reference images, image count, resolution, aspect ratio, quality, and output directory.
  • The user wants saved local image files rather than prompt advice or sample API code.
  • The user asks to validate request shape with a dry run or check an official-compatible image API mode.

Do not use this skill for mask-based editing, local canvas repainting, inpainting, background removal, or precise retouch workflows. Route those to a more suitable image editing skill if one is available.

Core Capabilities

  • Text-to-image generation from natural-language prompts.
  • Reference-image guided generation with 1 to 16 local image files.
  • Prompt-only multi-variant output with -n.
  • Resolution controls: 1k, 2k, 4k.
  • Aspect-ratio controls: 1:1, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 2:1, 1:2, 21:9, 9:21.
  • Quality controls: auto, low, medium, high.
  • Local output directory selection.
  • Dry-run inspection of URL, JSON body, multipart fields, and reference image metadata.

Read the full file on GitHub · 262 lines

Files

What ships with it

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

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. 12d ago Changed 68c7702723a0
  2. 13d ago Changed · -12 lines 6961a353f34a
  3. 2mo ago Changed · -44 tokens per session b8d2c1206075
  4. 2mo ago First seen · 274 lines · 76 tokens per session scan B 37417bcdcbf9

Subscribe to this mod's changes

gpt-image2 is a skill published in the GitHub repository seaworld008/Commonly-used-high-value-skills (75 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 3,145 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

gpt-image2 compared with skills from other repositories

gpt-image2 next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gpt-image2seaworld008/Commonly-used-high-value-skillsSkill75todayMITB32Claude Code, Codex
stable-diffusion-image-generationsynthetic-sciences/openscienceSkill4.5k2d agoApache-2.0A50Claude Code, Codex
multimodal-stable-diffusiondavila7/claude-code-templatesSkill35ktodayMITA52Claude Code, Codex
managing-mcp-serversJetBrains/thinkrailSkill8.5ktodayApache-2.0A62Claude Code, Codex
beautiful-articleConardLi/garden-skillsSkill16k11d agoMITA226Claude Code, Codex
motion-showreelConardLi/garden-skillsSkill16k11d agoMITA107Claude Code, Codex
gpt-image-2ConardLi/garden-skillsSkill16k11d agoMITA177Claude Code, Codex