openai-gpt-image-2

openai-gpt-image-2 is a skill for Claude Code, Codex from joonlab/joonlab-claudecode-setting-for-share. It costs 179 tokens per session (2,752 once invoked), scanned A, original, MIT.

An image-generation and editing tool for OpenAI’s gpt-image-2 model. It can create images from text prompts or edit provided images, including masked areas.

In plain words
What is it for?
Use it to make posters, portraits, product compositions, and other prompted images, or to edit an existing image with references and masks.
Why use it?
It provides a command-line way to create or modify images while choosing output paths, sizes, quality, and formats. It can also combine multiple reference images into one result.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; positional $N argument.

Good fit Use it to make posters, portraits, product compositions, and other prompted images, or to edit an existing image with references and masks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/joonlab/joonlab-claudecode-setting-for-share/openai-gpt-image-2
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 joonlab/joonlab-claudecode-setting-for-share --skill openai-gpt-image-2
Clone the repo
git clone --depth 1 https://github.com/joonlab/joonlab-claudecode-setting-for-share

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 openai-gpt-image-2

README.md
[![agentmods](https://agentmods.dev/badge/skills/joonlab/joonlab-claudecode-setting-for-share/openai-gpt-image-2/github.svg)](https://agentmods.dev/skills/joonlab/joonlab-claudecode-setting-for-share/openai-gpt-image-2)
Your own site
<a href="https://agentmods.dev/skills/joonlab/joonlab-claudecode-setting-for-share/openai-gpt-image-2"><img src="https://agentmods.dev/badge/skills/joonlab/joonlab-claudecode-setting-for-share/openai-gpt-image-2/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 openai-gpt-image-2

Your own site · 80×15
<a href="https://agentmods.dev/skills/joonlab/joonlab-claudecode-setting-for-share/openai-gpt-image-2"><img src="https://agentmods.dev/badge/skills/joonlab/joonlab-claudecode-setting-for-share/openai-gpt-image-2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 179 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,752 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.
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.00179 $0.02752
Opus 5 $0.00089 $0.01376
Sonnet 5 $0.00036 $0.00550
Haiku 4.5 $0.00018 $0.00275

Measured 11d ago against content hash 70b60ff8cb85, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

openai-gpt-image-2 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 11d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/check_size.py, scripts/compose_prompt.py, scripts/generate_image.py), 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.

claude/skills/openai-gpt-image-2/SKILL.md · 196 lines

How it starts

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

OpenAI gpt-image-2

OpenAI의 SOTA 이미지 모델 gpt-image-2로 이미지 생성편집을 수행합니다.

  • 모델 ID: gpt-image-2 (스냅샷: gpt-image-2-2026-04-21)
  • 인증: OPENAI_API_KEY 환경변수 (스크립트가 매 실행 시 동적으로 읽음)
  • 기본값: quality=high, size=auto, format=png, 저장 위치 ~/Downloads/

Quick Start

# 1) 기본 생성 (텍스트 → 이미지, quality=high가 기본)
uv run ~/.claude/skills/openai-gpt-image-2/scripts/generate_image.py \
  "Photorealistic portrait of an elderly sailor on a small fishing boat at dawn"

# 2) 출력 경로/해상도 명시
uv run ~/.claude/skills/openai-gpt-image-2/scripts/generate_image.py \
  "K-pop concert poster, neon, vertical" \
  -o ~/Downloads/poster.png \
  --size 1024x1536

# 3) 이미지 편집 (참조 이미지 + 프롬프트, 최대 16장)
uv run ~/.claude/skills/openai-gpt-image-2/scripts/generate_image.py \
  "Combine these four items into a cohesive gift basket on a white background" \
  -i body-lotion.png -i soap.png -i incense-kit.png -i bath-bomb.png \
  -o ~/Downloads/basket.png

# 4) 마스크 인페인팅
uv run ~/.claude/skills/openai-gpt-image-2/scripts/generate_image.py \
  "Replace the masked region with a window overlooking the ocean" \
  -i room.png --mask room_mask.png

워크플로우 (11-slot + 점진 quality)

1단계 — 11-slot prompt contract 채우기

복잡한 비주얼(포스터, 인포그래픽, 슬라이드, 광고, UI mockup, 텍스트 포함 이미지)은 11개 slot 전부 채워서 작성:

[Purpose] [Core brief] [Required elements] [Context] [Style]
[Composition] [Light/material/color] [Layout] [Text rules]
[Constraints] [Output]

상세 정의/카테고리별 우선순위/Cookbook 튜닝 규칙은 references/prompt-contract.md 참고. 카테고리별(infographic/slide/product/UI/character) 사전 채워둔 패턴은 references/use-cases.md 참고.

빠른 초안용은 3-slot: [Subject] + [Context] + [Style]만으로 시작 가능.

2단계 — 사이즈 사전 검증 (선택, 비표준 사이즈일 때만)

비표준 --size WxH를 쓸 거면 호출 전에 검증:

uv run scripts/check_size.py --size 1920x1080
uv run scripts/check_size.py --suggest-presets   # 8개 프리셋 표

정사각/HD/2K 프리셋만 쓸 때는 생략 가능. auto는 항상 안전.

3단계 — 점진 quality (low → high)

기본은 high($0.21/장)지만 탐색 단계는 --quality low($0.006/장, 35배 저렴)로 시작 → 구도/구성 검증 → 만족 시 high로 재실행. 텍스트가 많거나 세밀한 인포그래픽/UI는 처음부터 high.

Read the full file on GitHub · 196 lines

Files

What ships with it

5 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. 11d ago First seen · 196 lines · 179 tokens per session scan A 70b60ff8cb85

Subscribe to this mod's changes

openai-gpt-image-2 is a skill published in the GitHub repository joonlab/joonlab-claudecode-setting-for-share (10 stars, last pushed 1mo ago), licensed MIT. It adds 179 tokens to every session and 2,752 once invoked, about $0.0009 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.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

chengfeng-check-updates

An environment manager for a video-editing system. It checks whether its skills and runtime—the software needed to run them—are installed and compatible.

Agentchengfeng/chengfeng-videocut-skills · 120 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens