image-gen

image-gen is a skill for Claude Code, Codex from TGYD-helige/pi. It costs 61 tokens per session (1,638 once invoked), scanned A, original, Apache-2.0.

A workflow guide for generating or editing bitmap images such as photos, illustrations, textures, sprites, and mockups. It covers choosing the image-generation tool, preparing prompts, and handling reference images.

In plain words
What is it for?
Use it to create new raster artwork, make image-to-image edits, replace backgrounds, remove objects, transfer styles, or produce visual variants. It is not for deterministic SVG, CSS, canvas, or other source-native work.
Why use it?
It helps decide when an AI-generated image is appropriate and when an existing SVG, icon, or code-based design should be edited directly. It also sets checks to perform before each generation request.

Skill for Claude CodeCodex

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

Good fit Use it to create new raster artwork, make image-to-image edits, replace backgrounds, remove objects, transfer styles, or produce visual variants. It is not for deterministic SVG, CSS, canvas, or other source-native work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tgyd-helige/pi/image-gen
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 TGYD-helige/pi --skill image-gen
Clone the repo
git clone --depth 1 https://github.com/TGYD-helige/pi

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-gen

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tgyd-helige/pi/image-gen"><img src="https://agentmods.dev/badge/skills/tgyd-helige/pi/image-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,638 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 pass 7 Sept 2026
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.00061 $0.01638
Opus 5.5 $0.00024 $0.00655
Sonnet 5.5 $0.00012 $0.00328
Haiku 4.5 $0.00006 $0.00164

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

Security

Grade A, and why

image-gen 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 1mo 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.

packages/pi-image-gen/skills/image-gen/SKILL.md · 100 lines

How it starts

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

Image generation

This skill guides use of the image_generate tool from @amaster.ai/pi-image-gen. The active model is fixed by pi-image-gen.defaultModel in settings — the tool has no model parameter. Run /image-gen list to see the active model, its provider, and whether its API key is set.

When to use

  • A brand-new bitmap image: concept art, product shot, cover, website hero, texture, sprite.
  • A new image guided by one or more reference images (style, composition, mood, subject).
  • Editing an existing image: inpainting, background replacement, object removal, lighting or weather changes, compositing, style transfer, character preservation.
  • Several assets or variants for one task.

When NOT to use

  • Extending or matching an existing SVG/vector icon set, logo system, or illustration library in the repo — edit those source files directly.
  • Simple shapes, diagrams, wireframes, or icons better produced in SVG, HTML/CSS, or canvas.
  • A small project-local asset edit when the source already exists in an editable native format.
  • Any task where the user clearly wants deterministic code-native output, not a generated bitmap.

Before every call

Use only parameters and values exposed by the current image_generate schema.

  1. Intent — generate or edit?
    • No image, or image entries used only as style/composition/mood references → generate.
    • Modify an existing image while preserving most of it → edit (pass that image).
    • When unsure, assume the user wants a new image unless they clearly ask to change an existing one.
  2. Strategy — one asset or many?
    • n produces variants of ONE prompt, not distinct assets.
    • For several different assets, make one image_generate call per asset, each with its own prompt. Do not raise n to cover distinct subjects.
  3. Inputs — what must the prompt preserve? Collect exact text, constraints/avoid items, and every input image's role. Ask only when a missing detail blocks a usable result; otherwise proceed.

Read the full file on GitHub · 100 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. 1mo ago Changed · +4 lines d543cb8be260
  2. 1mo ago Changed · +1 lines 940b0af720aa
  3. 1mo ago First seen · 95 lines · 61 tokens per session scan A 5d8d08621a35

Subscribe to this mod's changes

image-gen is a skill published in the GitHub repository TGYD-helige/pi (84 stars, last pushed today), licensed Apache-2.0. It adds 61 tokens to every session and 1,638 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-30.

Related

Other skills, from other repositories

vision-bridge-windows-automation

Drive Windows desktop apps (Win32/WPF/UWP), Electron windows and the browser through the vision-bridge MCP server - read the screen as structured text and click/type by element id. Use when the user asks the agent to operate a Windows GUI app, fill a form in a desktop program, read what is on screen, or automate a…

rusnetru/vision-bridge · 85 tokens

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers hosted cloud browsers for AI agents: the browser-use Python library (Browser(usecloud=True)), Playwright, Puppeteer or any CDP client.

browser-use/browser-use · 57 tokens

x402

Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — "just use it" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing…

browser-use/browser-use · 175 tokens

remote-browser

Controls an isolated Browser Use Cloud browser from a sandboxed machine with the current Browser Use CLI.

browser-use/browser-use · 22 tokens

cloud

Documentation reference for using Browser Use Cloud — the hosted API and SDK for browser automation. Use this skill whenever the user needs help with the Cloud REST API (v2, v3, or v4), browser-use-sdk (Python or TypeScript), X-Browser-Use-API-Key authentication, cloud sessions, browser profiles, profile sync, CDP…

browser-use/browser-use · 177 tokens

open-source

Documentation reference for writing Python code using the browser-use open-source library. Use this skill whenever the user needs help with Agent, Browser, or Tools configuration, is writing code that imports from browseruse, asks about @sandbox deployment, supported LLM models, Actor API, custom tools, lifecycle…

browser-use/browser-use · 137 tokens