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.
npx skills add TGYD-helige/pi --skill image-gengit clone --depth 1 https://github.com/TGYD-helige/piWrote 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.
[](https://agentmods.dev/skills/tgyd-helige/pi/image-gen)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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
- Intent — generate or edit?
- No
image, orimageentries 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.
- No
- Strategy — one asset or many?
nproduces variants of ONE prompt, not distinct assets.- For several different assets, make one
image_generatecall per asset, each with its own prompt. Do not raisento cover distinct subjects.
- 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:
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.
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.
- 2d ago Changed · +1 lines 940b0af720aa
- 10d ago First seen · 95 lines · 61 tokens per session scan A 5d8d08621a35
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.
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…
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…
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.
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.".
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.
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.