# gpt-image-playground

gpt-image-playground guides coding agents through building and deploying a React 19 web app for image generation and editing via OpenAI APIs.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 292 installs · ★ 98 repo stars
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/gpt-image-playground/SKILL.md
- Updated: 2026-10-09
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/gpt-image-playground

## What it does

This skill instructs the agent on assembling the GPT Image Playground frontend. The architecture relies on React 19, TypeScript, Vite, Tailwind CSS 3, and Zustand. Requests route either to the classic `/v1/images` endpoints or to the Responses API.

The UI implementation covers text prompts, editing with up to 16 reference files, and dimension snapping in 16px increments up to 3840px. All records stay in browser IndexedDB with SHA-256 deduplication and ZIP archive backups containing `manifest.json`.

Running the app locally requires Node.js 18+. When browser calls fail due to API CORS limits, configuring `dev-proxy.config.json` is necessary.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill gpt-image-playground -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/gpt-image-playground/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/gpt-image-playground/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill gpt-image-playground -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/gpt-image-playground/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill gpt-image-playground -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/gpt-image-playground/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/trending-skills skills/gpt-image-playground
```

2. **Manually: put the files in place**
- File: `.github/skills/gpt-image-playground/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill gpt-image-playground -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/trending-skills --path skills/gpt-image-playground
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/gpt-image-playground/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/trending-skills --skill gpt-image-playground -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/trending-skills/tree/HEAD/skills/gpt-image-playground/SKILL.md

## When to use it
- scaffold a React 19 playground for OpenAI image endpoints
- implement reference image editing for up to 16 source files
- configure a Vite development proxy to bypass CORS restrictions
- handle local storage deduplication and ZIP exports with IndexedDB

## Example prompts
- Set up gpt image playground locally with Vite dev proxy
- Configure the OpenAI image editing tool with reference images
- Deploy gpt image playground with docker compose

## Similar
- [gpt-image-edit](https://affpapa.org/en/nevibecode/skills/gpt-image-edit.md) — skill · 447000 installs
- [gpt-image-2](https://affpapa.org/en/nevibecode/skills/gpt-image-2.md) — skill · 95100 installs
- [gpt-image](https://affpapa.org/en/nevibecode/skills/gpt-image.md) — skill · 14600 installs
- [gpt-image-1-5](https://affpapa.org/en/nevibecode/skills/gpt-image-1-5.md) — skill · 625 installs
- [gpt-image-skill](https://affpapa.org/en/nevibecode/skills/gpt-image-skill.md) — skill · 156 installs
- [openai-gpt-image](https://affpapa.org/en/nevibecode/skills/openai-gpt-image.md) — skill · 145 installs

From the same set: [reason-machines/trending-skills](https://affpapa.org/en/nevibecode/by/reason-machines/trending-skills.md) — 211 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
