dshark3y

GPT Image 2 Skill — AI skill for Claude Code

AI community

Claude Code skill for generating and editing images with OpenAI's gpt-image-2.

How to install GPT Image 2 Skill

This entry records only its repository, not the path inside it, so there is no exact command to give. Open dshark3y/gpt-image-2-skill and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What GPT Image 2 Skill does

Claude Code skill for generating and editing images with OpenAI's gpt-image-2.

Alternatives in AI

  • CLI 代理 API — English 中文 一个为 CLI 提供 OpenAI/Gemini/Claude/Codex 兼容 API 接口的代理服务器 19k ★
  • WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★
  • Azure OpenAI .net — GPT-4, embeddings, DALL-E, and Whisper client 1.8k ★

README

GPT Image - Claude Code Skill

Claude can't reliably call OpenAI's image API from memory. The surface keeps moving, the size constraints are easy to get wrong, and more often than not Claude either guesses the signature or silently skips "generate me an image" tasks entirely. This skill fixes that.

Two CLI scripts wrapped as a [Claude Code](https://claude.com/claude-code) skill: `generate.py` for text-to-image with `gpt-image-2`, and `edit.py` for editing or compositing up to 10 reference images. Dependencies install on first run via `uv` and PEP 723 inline metadata. No glue code. No boilerplate.

Requirements

Requirement Purpose
uv Runs the scripts and manages dependencies automatically. No pip install needed.
OpenAI API key Must have access to gpt-image-2. Requires API organization verification.
Claude Code (optional) Only needed if you want Claude to invoke the skill automatically. The scripts also work standalone.

Installing uv

`uv` is a fast Python package manager from Astral. It replaces `pip` + `venv` + `pyenv` with a single tool that's roughly 10-100x faster. These scripts rely on `uv run` to fetch dependencies on first invocation, so it must be installed.

**macOS / Linux:**

curl -LsSf https://astral.sh/uv/install.sh | sh

**Windows (PowerShell):**

powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

**Homebrew:**

brew install uv

**Verify the install:**

uv --version

If `uv` isn't on your PATH after install, restart your shell or follow the on-screen instructions from the installer. Full docs: .

Setup

**1. Clone or copy the skill into your Claude Code skills directory.**

# User-wide (recommended)
git clone https://github.com/dshark3y/gpt-image-2-skill.git ~/.