image2

image2 is a skill for Codex from DAMNDAGER/Image2-Studio. It costs 57 tokens per session (620 once invoked), scanned A, original, MIT.

An image-generation and editing skill that sends requests to a locally configured image service. It can create, transform, or edit images using the provider selected in that service.

In plain words
What is it for?
Use it to generate new images, edit existing images, transform images, or create images from references while describing the intended subject, composition, style, lighting, and constraints.
Why use it?
It gives image requests a defined local route and uses the provider already configured by the user. If the service is not set up, it identifies that instead of making an unsupported request.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it to generate new images, edit existing images, transform images, or create images from references while describing the intended subject, composition, style, lighting, and constraints.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/damndager/image2-studio/image2
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 DAMNDAGER/Image2-Studio --skill image2
Clone the repo
git clone --depth 1 https://github.com/DAMNDAGER/Image2-Studio

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 image2

README.md
[![agentmods](https://agentmods.dev/badge/skills/damndager/image2-studio/image2/github.svg)](https://agentmods.dev/skills/damndager/image2-studio/image2)
Your own site
<a href="https://agentmods.dev/skills/damndager/image2-studio/image2"><img src="https://agentmods.dev/badge/skills/damndager/image2-studio/image2/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 image2

Your own site · 80×15
<a href="https://agentmods.dev/skills/damndager/image2-studio/image2"><img src="https://agentmods.dev/badge/skills/damndager/image2-studio/image2.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 620 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 original No closer match found 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.00057 $0.00620
Opus 5.5 $0.00023 $0.00248
Sonnet 5.5 $0.00011 $0.00124
Haiku 4.5 $0.00006 $0.00062

Measured 2mo ago against content hash 0029e0661b5a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

image2 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 2mo 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.

skills/image2/SKILL.md · 30 lines

How it starts

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

Local Image2

Use the local Image2 service as the primary image-generation path. Do not use the built-in imagegen tool.

Workflow

  1. Optimize the user's prompt while preserving intent. Make subject, action, composition, viewpoint, style/material, lighting, palette, aspect ratio, and constraints explicit. Do not invent text, logos, people, or objects. For edits, state what must be preserved and what must change.
  2. Prefer the installed global CLI when available: %CODEX_HOME%\skills\image2\Image2CLI.exe --prompt "...". The installer places a non-secret image2-client.json beside it so the CLI knows the service, token, output directory, and launcher. If the packaged CLI is unavailable, use the project image2_cli.py with its absolute path.
  3. The local backend uses the active provider selected in the HTML console. There is no default provider; if setup is incomplete, direct the user to the local API settings instead of attempting a real request.
  4. If the local service is unavailable, let the configured CLI launcher start it and retry once. For a restricted Codex sandbox, request one host-approved network-enabled execution for the service process before a real provider request. Keep the service on 127.0.0.1.
  5. For a public reference image URL, add --image-url "https://...". For a local attachment, add --image-path "C:\path\to\image.png", repeating it for multiple images up to eight.
  6. Inspect the CLI JSON response, read the returned local output path, and include the generated image in the conversation. Briefly report the optimized prompt and active provider.

Simulation

For a requested safety check or dry run, use --dry-run. Confirm the active provider model, route, request body mode, size, and quality, then stop before the final provider request. A dry run must not call an external provider or consume image quota.

Security

  • Never print, copy, or place an API key in HTML, JavaScript, prompts, shell arguments, logs, or conversation output.
  • Provider keys are entered through the local console and stored by the backend in the operating-system credential store. The frontend only receives a configured/not-configured flag.
  • Keep the service bound to 127.0.0.1; never expose it on 0.0.0.0.
  • Treat custom provider URLs and reference image URLs as untrusted input. Use the backend validation and do not bypass its limits.
  • If a provider reports an outbound-network failure, stop retrying in the restricted sandbox, request one approved network-enabled service execution, and retry only once after approval.

Read the full file on GitHub · 30 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago First seen · 30 lines · 57 tokens per session scan A 0029e0661b5a

Subscribe to this mod's changes

image2 is a skill published in the GitHub repository DAMNDAGER/Image2-Studio (3 stars, last pushed 2mo ago), licensed MIT. It adds 57 tokens to every session and 620 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

image2 compared with skills from other repositories

image2 next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
image2DAMNDAGER/Image2-StudioSkill32mo agoMITA57Codex
openai-compatible-imagegenSyh1906/openai-compatible-imagegenSkill63yesterdayMITA102Codex
xiaohongshu-titlemengke-wang/xiaohongshu-ai-workbenchSkill6183mo agoMITA157Codex
xiaohongshu-magazinemengke-wang/xiaohongshu-ai-workbenchSkill6183mo agoMITA184Codex
xiaohongshu-suitemengke-wang/xiaohongshu-ai-workbenchSkill6183mo agoMITA119Codex
xiaohongshu-comment-replymengke-wang/xiaohongshu-ai-workbenchSkill6183mo agoMITA102Codex
xiaohongshu-conversion-pathmengke-wang/xiaohongshu-ai-workbenchSkill6183mo agoMITA168Codex