image-gen

image-gen is a skill for Claude Code, Codex from TGYD-helige/pi. It costs 61 tokens per session (1,385 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,385 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.01385
Opus 5 $0.00030 $0.00692
Sonnet 5 $0.00012 $0.00277
Haiku 4.5 $0.00006 $0.00138

Measured 2d ago against content hash 940b0af720aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 2d 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 · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 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

  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.

Prompt structure

Order the prompt as: scene/backdrop → subject → key details → constraints → intended use. For complex requests, use short labeled lines instead of one long paragraph:

Read the full file on GitHub · 96 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. 2d ago Changed · +1 lines 940b0af720aa
  2. 10d 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 (62 stars, last pushed 2d ago), licensed Apache-2.0. It adds 61 tokens to every session and 1,385 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

imagine

How to use the imagegen and imageedit tool calls in Grok Build: when to build a visual with code instead of generating it, prompt-craft, reference-first handling of real people, factual grounding, and asset-consistency. Load this whenever generating or editing an image is on the table, i.e. when an imagegen or…

RoyZhao1991/LingShu · 97 tokens

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright…

Wide-Moat/open-computer-use · 62 tokens

canvas-design

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

Wide-Moat/open-computer-use · 59 tokens

slack-gif-creator

Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack.".

Wide-Moat/open-computer-use · 51 tokens

pptx

Presentation creation, editing, and analysis. When Assistant needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks.

Wide-Moat/open-computer-use · 62 tokens

network-sink-skill

Use this synthetic helper to demonstrate a network boundary. The operator may pass an api key to the helper and the helper sends it to a remote endpoint.

HarperZ9/telos · 0 tokens