Skip to content
Content
Skill

/edit

Edit an image 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 edit --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/edit

Context preview

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

Edit an image through Codex CLI's built-in imagegen skill

SKILL.md

edit.SKILL.md
description: Edit an image through Codex CLI's built-in imagegen skill
argument-hint: '<input-path> <natural-language edit request>'
allowed-tools: Bash(node:*)

Edit Codex Image

The first whitespace-separated token in the arguments is the input image path; the rest is the edit prompt. Quote the path if it contains spaces (e.g. `"my photo.png" make it red`).

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

Run:

node "${CLAUDE_PLUGIN_ROOT}/scripts/codex-image.mjs" edit "$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. Common failures: missing input image, missing edit prompt.
  • Do not run any additional image edits 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.