Skip to content

/generate

Generate one or more images, optionally with reference images, through Codex CLI's built-in imagegen skill

shell
$ npx -y skills add KingGyuSuh/codex-image-in-cc --skill generate --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/generate
How auto-invocation works

Context preview

The summary Claude sees to decide when to auto-load this skill.

Generate one or more images, optionally with reference images, through Codex CLI's built-in imagegen skill

SKILL.md

generate.SKILL.md
description: Generate one or more images, optionally with reference images, through Codex CLI's built-in imagegen skill
argument-hint: '[--ref <reference-image> ...] <natural-language image request>'
allowed-tools: Bash(node:*)

Generate Codex Image

Leading `--ref <path>`, `--reference <path>`, or `--image <path>` arguments are reference images for generation, not edit targets. Repeat the flag for multiple references (max 5); quote paths with spaces.

Run:

node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-image.mjs" generate "$ARGUMENTS"

Output rules:

  • Show the command stdout to the user verbatim — Codex prints one `SAVED: <absolute path>` line per saved image.
  • If the exit code is non-zero, show stderr and stop.
  • Do not run any additional image generation unless the user explicitly asks for another attempt.
Read it on GitHub ↗
Ships withcodex-image

Claude Code plugin that exposes Codex CLI's built-in imagegen skill as /codex-image:* user-invoked plugin skills. The plugin does not implement image generation itself.

Get the whole plugin, auto-invoked
Stats
24
Stars
0
Views
3
Forks
Active
Maintenance
JavaScript
Language
Apache-2.0
License
17d ago
Last commit
3mo ago
Created

Repo: KingGyuSuh/codex-image-in-cc