From codex-image-gallery
Starts or reuses a local web gallery for browsing Codex-generated images from ~/.codex/generated_images.
How this skill is triggered — by the user, by Claude, or both
Slash command
/codex-image-gallery:codex-image-galleryThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Start a local browser gallery for Codex image outputs. This skill is self-contained: the server lives in `scripts/server.mjs`, and the UI template lives in `assets/index.html`.
Start a local browser gallery for Codex image outputs. This skill is self-contained: the server lives in scripts/server.mjs, and the UI template lives in assets/index.html.
Run commands from this skill directory, the directory containing this SKILL.md.
node scripts/server.mjs
The server prints the actual URL. It starts at http://127.0.0.1:8765/ and tries later ports if the default is occupied.
Check the default URL first:
node -e 'fetch("http://127.0.0.1:8765/api/images").then(r => r.json()).then(j => console.log(j.rootPath, j.items.length)).catch(() => process.exit(1))'
If this succeeds, reuse the running server at http://127.0.0.1:8765/.
If the API check fails, check for a running server process:
pgrep -fl 'node .*server\.mjs' || true
When a process exists but the default URL fails, inspect its stdout or try likely later ports because the server auto-increments when a port is occupied.
Verify any reused URL before reporting success:
node -e 'fetch("http://127.0.0.1:8765/api/images").then(r => r.json()).then(j => console.log(j.rootPath, j.items.length))'
If the server chose another port, use that port.
Start the server if none is running:
node scripts/server.mjs
Keep the process running for the user and read stdout for the URL.
Open the browser unless the user asks for URL-only:
open http://127.0.0.1:8765/
Default image root:
~/.codex/generated_images
Use a different folder with:
GALLERY_ROOT=/path/to/images node scripts/server.mjs
Before declaring the skill healthy after edits, run:
node --check scripts/server.mjs
Then start the server and verify:
GET /api/images returns JSON with rootPath and items/images/<relative-path> returns image content for at least one listed itemassets/index.htmlReport the URL, image root, whether the server was reused or newly started, and any verification failure. Keep the answer short.
npx claudepluginhub daymade/claude-code-skills --plugin codex-image-galleryGenerates images using Codex CLI's built-in imagegen skill, optionally with reference images. Useful for creating visuals from natural language requests.
Batch-generates images via OpenAI Images API with random prompt sampling and an HTML gallery viewer.
React/TypeScript web app for OpenAI image generation and editing via Images API or Responses API. Supports text-to-image, reference image editing, smart size selector, parameter control, IndexedDB history with deduplication, and ZIP export/import.