xue-xiaobao/xuexiaobao-skills · Archived

gpt-image-generation

Self-contained GPT image generation skill for creating PNG images through the ChatGPT Codex backend with prompt-file input and a minimal local Node CLI.

First seen Jun 10, 2026

Installation

$ npx skills add xue-xiaobao/xuexiaobao-skills --skill gpt-image-generation

Summary

  • Self-contained GPT image generation skill for creating PNG images through the ChatGPT Codex backend with prompt-file input and a minimal local Node CLI.
  • Use when Codex needs to generate a new image from a text prompt, read a prompt verbatim from a local file, choose a backend-supported output size and quality, or save generated images to disk.

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from xue-xiaobao/xuexiaobao-skills.

npx skills add xue-xiaobao/xuexiaobao-skills

Browse all from xue-xiaobao/xuexiaobao-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 2
Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents codex

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,709 B
  • docs README.md 2,236 B
  • docs SUMMARY.md 373 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 5 installs

SKILL.md

GPT Image Generation

Run the bundled Node CLI from this skill directory.

Workflow

  1. Work from the skill root that contains this SKILL.md.
  2. Ensure codex login has created ~/.codex/auth.json.
  3. Generate images with:
node ./scripts/cli.js \
  --prompt-file ./prompt.md \
  --size 1024x1024 \
  --quality high \
  --output ./outputs/storyboard.png
  1. Use --prompt for inline text or --prompt-file to read the prompt verbatim from disk.
  2. Treat --size as a request to the current backend, not a guaranteed capability. Do not claim 4K support; use 1024x1024 as the safe default unless the backend confirms another size.
  3. Report the absolute output path after generation.

Notes

  • Keep the prompt text unchanged when the user provides a finished prompt file.
  • The runtime entrypoint is scripts/cli.js; supporting validation tests live in scripts/test.js.
  • The CLI reads the local Codex login from ~/.codex/auth.json.
  • The CLI does not hardcode or derive any OAuth client identity; if the local access_token is near expiry, rerun codex login before generation.
  • The CLI writes PNG files and prints the backend-reported size when available.
  • If the backend rejects a requested size, retry with 1024x1024 instead of presenting the requested size as supported.