image-edit

image-edit is a skill for Codex from danielgwilson/luxin. It costs 147 tokens per session (1,195 once invoked), scanned A, a copy of agent-image-generation, MIT.

An image-editing add-on that changes an existing image from a written prompt. It supports tasks such as replacing backgrounds, restyling images, repairing details, and making variations through a hosted service.

In plain words
What is it for?
Use it for image-to-image edits, background replacement, restyling, detail repair, and controlled visual variations.
Why use it?
It removes the need to set up an image provider before transforming an image.

Skill for Codex

Written for Codex: reads $CODEX_HOME. Also seen: mentions Codex; built for openclaw.

Good fit Use it for image-to-image edits, background replacement, restyling, detail repair, and controlled visual variations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/danielgwilson/luxin/image-edit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add danielgwilson/luxin --skill image-edit
Clone the repo
git clone --depth 1 https://github.com/danielgwilson/luxin

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for image-edit

README.md
[![agentmods](https://agentmods.dev/badge/skills/danielgwilson/luxin/image-edit/github.svg)](https://agentmods.dev/skills/danielgwilson/luxin/image-edit)
Your own site
<a href="https://agentmods.dev/skills/danielgwilson/luxin/image-edit"><img src="https://agentmods.dev/badge/skills/danielgwilson/luxin/image-edit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for image-edit

Your own site · 80×15
<a href="https://agentmods.dev/skills/danielgwilson/luxin/image-edit"><img src="https://agentmods.dev/badge/skills/danielgwilson/luxin/image-edit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 147 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,195 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 83% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00147 $0.01195
Opus 5.5 $0.00059 $0.00478
Sonnet 5.5 $0.00029 $0.00239
Haiku 4.5 $0.00015 $0.00120

Measured 3d ago against content hash 18397463a4cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

image-edit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

83% identical to agent-image-generation — 20 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/image-edit/SKILL.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Image Edit

This is an intent-named Luxin entry for agents searching for image editing. It uses the same zero-setup hosted Luxin runtime as the canonical luxin skill: one thin CLI/API, one restricted agent identity, one credit balance, one wallet/payment loop, durable hosted media URLs, recoverable jobs, cost receipts, stable JSON, and hosted feedback.

Use this skill when the task asks to edit, vary, restyle, transform, or repair an existing image, including image-to-image work and model-specific edit parameters.

Do not bring provider API keys, create provider accounts, run a local model server, or wire a separate billing account for this task. Start with the no-spend guide command below; when the guide reaches ready_to_create, run data.next_command only if data.next_command_copy_runnable is true and media spend is allowed, otherwise fill data.next_command_missing_inputs or run data.recommended_no_spend_command to verify safely. Keep generated work in Luxin so future agents can recover and cite it.

First Command

IMAGE_SKILL_DISCOVERY_SOURCE=skills-sh-image-edit npm_config_update_notifier=false npx -y luxin-cli@latest create --guide --model openai.gpt-image-2-edit --prompt "replace the background but keep the subject"

Main Runtime Command

IMAGE_SKILL_DISCOVERY_SOURCE=skills-sh-image-edit npm_config_update_notifier=false npx -y luxin-cli@latest edit --input image_... --model openai.gpt-image-2-edit --prompt "EDIT_PROMPT" --max-estimated-usd-per-image 0.25 --json

Install This Intent Skill

Prefer the GitHub slug so skills.sh can track the marketplace install:

npx skills add danielgwilson/luxin --full-depth --skill image-edit -g -a codex -y

The canonical Luxin entry remains available as:

npx skills add danielgwilson/luxin --full-depth --skill luxin -g -a codex -y

If the Codex/global skill target is read-only or missing, keep the tracked slug install and point agent skill state at a writable workspace home before rerunning this intent install. The skills.sh Codex adapter writes to $HOME/.agents; CODEX_HOME keeps Codex profile state on the same writable path:

Read the full file on GitHub · 101 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago Changed 18397463a4cb
  2. 5d ago Changed · -2 lines · +52 tokens per session 09d5ea5c4203
  3. 2mo ago First seen · 103 lines · 95 tokens per session scan A 400a91fa922b

Subscribe to this mod's changes

image-edit is a skill published in the GitHub repository danielgwilson/luxin (2 stars, last pushed 4d ago), licensed MIT. It adds 147 tokens to every session and 1,195 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 83% identical to agent-image-generation, differing in 20 lines, and is treated as a copy.

Related

image-edit compared with skills from other repositories

image-edit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
image-editdanielgwilson/luxinSkill24d agoMITA147Codex
motionOpenDCAI/GameFactory-3ASkill1.0k10d agoApache-2.0A0Claude Code, Codex
3d_objectOpenDCAI/GameFactory-3ASkill1.0k10d agoApache-2.0A0Claude Code, Codex
3d_sceneOpenDCAI/GameFactory-3ASkill1.0k10d agoApache-2.0A0Claude Code, Codex
cg_videoOpenDCAI/GameFactory-3ASkill1.0k10d agoApache-2.0A0Claude Code, Codex
audioOpenDCAI/GameFactory-3ASkill1.0k10d agoApache-2.0A0Claude Code, Codex
game-cg-directorOpenDCAI/GameFactory-3ASkill1.0k10d agoApache-2.0A95Claude Code, Codex