AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Gpt Image

skill-aiai-mastermind-aiai-mastermind-tools-and-skills-gpt-image · by AiAi-Mastermind

Use when asked to generate, create, make, render, draw, or mock up an image, photo, picture, hero image, illustration, icon, texture, sprite, or visual asset from Claude Code, and no usable OPENAI_API_KEY is set but Codex CLI is installed and signed in to ChatGPT (OAuth). Also triggered by /gpt-image. Routes image generation through Codex's built-in tool, never the OpenAI API.

No reviews yet
0 installs
17 views
0.0% view→install

Install

$ agentstack add skill-aiai-mastermind-aiai-mastermind-tools-and-skills-gpt-image

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-aiai-mastermind-aiai-mastermind-tools-and-skills-gpt-image)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Gpt Image? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

gpt-image

Overview

Generate images from Claude Code using a ChatGPT subscription (no paid API key) by delegating to Codex CLI's built-in image_gen tool, which runs through the user's ChatGPT OAuth session.

Core rule: a ChatGPT OAuth login is NOT an API key. Do not call the OpenAI Images API — the OAuth token lacks image scope and returns 401 missing scopes: api.model.images.request. Codex's built-in image_gen tool needs no key. Always route through Codex.

When to use

  • Any request to generate / create / make / render / draw an image, photo, mockup, hero, banner, illustration, icon, sprite, or texture from Claude Code.
  • The machine has Codex CLI plus a ChatGPT login, and there is no usable OPENAI_API_KEY.

Do NOT use when: a real OPENAI_API_KEY is available and direct API control is wanted, or the asset is better authored as code/SVG.

Prerequisites

  • codex --version succeeds (Codex CLI installed).
  • Codex is signed in to ChatGPT (authenticated via OAuth).
  • Do not read the key out of ~/.codex/auth.json — Claude Code's credential safety layer blocks it, and there is no usable image key there anyway. If image generation fails, report the error; do not hunt for a key.

Workflow

  1. Write a brief (plain text): shared style + per-image subject/composition + aspect ratio + ABSOLUTE destination path + constraints ("only write these files, no git, don't edit the repo").
  2. Run Codex headless:

``bash codex exec --sandbox workspace-write \ -c sandbox_workspace_write.network_access=true \ --skip-git-repo-check "$(/ first. Instruct Codex to mv (never cp) each file to the absolute destination, then rmdir the emptied session folder. Never touch other session folders (the user's prior work).

  1. Verify: open the saved images, confirm subject/quality/brand, confirm the destination holds the files and the cache session is gone.

Brief template (copy, fill the brackets)

GENERATE  images using your BUILT-IN image_gen tool (one call each).
Do NOT call the OpenAI Images API and do NOT write an SDK script.
After each image, MOVE it (mv, not cp) to the ABSOLUTE path given, then
rmdir the now-empty ~/.codex/generated_images/ folder.
Do not run git or modify any other file.

SHARED STYLE: 
AVOID: 

1)  ->  -> /abs/path/name1.png
2) ...
When done, print each saved ABSOLUTE path.

Aspect ratios

Built-in output comes in buckets: landscape ~1672×941, square ~1254×1254, portrait 1024×1536. Exact pixel dimensions need a post-crop/resize step (e.g. sips).

Common mistakes

| Mistake | Fix | |---|---| | Calling the OpenAI Images API with the OAuth token | 401 missing scope. Use the built-in image_gen tool. | | cp instead of mv | Leaves a 1:1 duplicate in ~/.codex/generated_images (wasted disk). Always mv, then rmdir the empty session dir. | | Relative output path | Resolves to Codex's cwd (often repo root), not your folder. Use ABSOLUTE paths. | | n>1 for different scenes | n = variants of ONE prompt. Distinct images need distinct image_gen calls. | | Sandbox blocks the network call | Add -c sandbox_workspace_write.network_access=true. | | Trusting "done" | The tool reports success even when composition drifts. Open the files and check. | | Reading ~/.codex/auth.json for a key | Blocked and pointless. Let Codex use its own session. |

Portability

This skill is machine-local. To use it on another computer, that machine needs: Claude Code, Codex CLI installed, and Codex signed in to ChatGPT. Copy this gpt-image/ folder into that machine's ~/.claude/skills/.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.