Skip to content
Content
Skill

/generate

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

From plugin
codex-image
273 skills
Install
$ 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.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/generate

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.

This command runs a full Codex agent turn and typically takes 1–3 minutes (longer for multiple images). Run it with a 10-minute Bash timeout (600000 ms) so the turn is not killed mid-generation.

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.
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
Stats
28
Stars
6
Forks
Active
Maintenance
JavaScript
Language
Apache-2.0
License
3d ago
Last commit
4mo ago
Created

Repo: KingGyuSuh/codex-image-in-cc

Other skills on codex-image.