image-generation

image-generation is a skill for Claude Code, Codex from Negai-ai/AgentClaw. It costs 58 tokens per session (1,692 once invoked), scanned A, original, Apache-2.0.

A guide for creating and editing raster images, such as PNG or JPEG files, from text prompts or reference images using supported image-generation services.

In plain words
What is it for?
It helps create or edit illustrations, product mockups, concept art, thumbnails, and other visual assets.
Why use it?
It gives developers a repeatable process for choosing an image provider and producing usable image files instead of handling each service differently.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps create or edit illustrations, product mockups, concept art, thumbnails, and other visual assets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/negai-ai/agentclaw/image-generation
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 Negai-ai/AgentClaw --skill image-generation
Clone the repo
git clone --depth 1 https://github.com/Negai-ai/AgentClaw

Made for: Claude Code, 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-generation

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/negai-ai/agentclaw/image-generation"><img src="https://agentmods.dev/badge/skills/negai-ai/agentclaw/image-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,692 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 71
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00058 $0.01692
Opus 5 $0.00029 $0.00846
Sonnet 5 $0.00012 $0.00338
Haiku 4.5 $0.00006 $0.00169

Measured 9d ago against content hash b8086b95cda7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

image-generation 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 9d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/nano_banana_generate_image.py, scripts/openai_generate_image.py, scripts/seedream_generate_image.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

agentclaw/skills/builtin_skills/image-generation/SKILL.md · 154 lines

How it starts

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

Image Generation Skill

Use this skill for image creation and image editing work that should call an image provider API and save usable raster files.

Provider Selection

Current complete provider:

  • OpenAI GPT Image Image API: read references/openai.md; use scripts/openai_generate_image.py for repeatable command-line generation and editing. This runner also accepts an OpenAI-compatible base_url for GPT Image compatible providers.
  • Nano Banana image generation: read references/nano_banana.md; use scripts/nano_banana_generate_image.py for Nano Banana 2, Nano Banana Pro, and Nano Banana generation/editing.
  • Seedream image generation on Volcengine Ark: read references/seedream.md; use scripts/seedream_generate_image.py for Seedream 5 text-to-image, image-to-image, coherent image groups, streaming, and web search.

Reserved provider integration:

  • Future providers should add one references/<provider>.md file and one scripts/<provider>_generate_image.py runner following references/provider_contract.md.

Workflow

  1. Capture the visual brief: subject, style, composition, aspect ratio, output count, quality, format, destination folder, and any reference images.
  2. Pick the provider. OpenAI is the supported default in this skill.
  3. Check the provider API key before calling the script. If the key is missing, tell the user the exact variable to configure; after the user provides or confirms the key, write/update it in the project .env and update the current temporary environment before retrying.
  4. Read the matching provider reference when API parameters, edits, masks, streaming, or model limits matter.
  5. Use the provider script for deterministic file output when possible; otherwise write a small one-off call using the same output contract.
  6. Save generated files to the requested path, or to generated_images when no path is specified.
  7. Return the saved file paths, output_dir, provider/model, size/quality/format, revised prompt when available, and any provider response ID. For user-visible Markdown images, use browser-safe URLs only; if the script returns local output_paths, call create_download_url for each image and use the returned URL instead of embedding local paths.

Read the full file on GitHub · 154 lines

Files

What ships with it

7 files 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. 9d ago First seen · 154 lines · 58 tokens per session scan A b8086b95cda7

Subscribe to this mod's changes

image-generation is a skill published in the GitHub repository Negai-ai/AgentClaw (342 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 58 tokens to every session and 1,692 once invoked, about $0.0003 per session on Opus 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-30.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens

chengfeng-check-updates

An environment manager for a video-editing system. It checks whether its skills and runtime—the software needed to run them—are installed and compatible.

Agentchengfeng/chengfeng-videocut-skills · 120 tokens