image-gen

image-gen is a skill for Claude Code, Codex from sinaptik-ai/starpod. It costs 73 tokens per session (2,164 once invoked), scanned A, original, MIT.

A guide for creating or changing image files such as PNGs, JPGs, SVGs, and GIFs with code and common image tools.

In plain words
What is it for?
Use it for resizing, cropping, filtering, watermarking, charts, diagrams, simple logos, social graphics, and animated GIFs.
Why use it?
It provides concrete approaches for image editing and generation instead of leaving the implementation unspecified.

Skill for Claude CodeCodex

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

Good fit Use it for resizing, cropping, filtering, watermarking, charts, diagrams, simple logos, social graphics, and animated GIFs.

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

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/sinaptik-ai/starpod/image-gen/github.svg)](https://agentmods.dev/skills/sinaptik-ai/starpod/image-gen)
Your own site
<a href="https://agentmods.dev/skills/sinaptik-ai/starpod/image-gen"><img src="https://agentmods.dev/badge/skills/sinaptik-ai/starpod/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/sinaptik-ai/starpod/image-gen"><img src="https://agentmods.dev/badge/skills/sinaptik-ai/starpod/image-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,164 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.00073 $0.02164
Opus 5.5 $0.00029 $0.00866
Sonnet 5.5 $0.00015 $0.00433
Haiku 4.5 $0.00007 $0.00216

Measured 3mo ago against content hash 3509be61f699, 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 3mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/resize.py, scripts/watermark.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.

crates/starpod/skills/image-gen/SKILL.md · 233 lines

How it starts

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

Image Generation & Processing

Quick Reference

Task Tool Script
Batch resize Pillow python scripts/resize.py img.jpg --width 800
Add watermark Pillow python scripts/watermark.py img.jpg "DRAFT"
Data charts matplotlib + seaborn See below
Diagrams / flowcharts matplotlib + patches, or SVG See below
Image processing Pillow (PIL) See below
Social media graphics Pillow with text + shapes See below
Simple icons / logos SVG (write XML directly) See below
Animated GIFs Pillow frame assembly See below

Pillow — Image Processing

Resize and crop

from PIL import Image

img = Image.open("input.jpg")

# Resize maintaining aspect ratio
img.thumbnail((800, 600))
img.save("resized.jpg")

# Exact resize (may distort)
img_resized = img.resize((800, 600))

# Crop (left, upper, right, lower)
cropped = img.crop((100, 50, 500, 400))
cropped.save("cropped.jpg")

# Center crop to square
w, h = img.size
size = min(w, h)
left = (w - size) // 2
top = (h - size) // 2
square = img.crop((left, top, left + size, top + size))

Filters and adjustments

from PIL import ImageFilter, ImageEnhance

# Blur / sharpen
blurred = img.filter(ImageFilter.GaussianBlur(radius=3))
sharpened = img.filter(ImageFilter.SHARPEN)

# Brightness, contrast, saturation
enhancer = ImageEnhance.Brightness(img)
bright = enhancer.enhance(1.3)  # 1.0 = original

enhancer = ImageEnhance.Contrast(img)
contrast = enhancer.enhance(1.5)

# Convert to grayscale
gray = img.convert("L")

Compositing and watermarks

from PIL import Image, ImageDraw, ImageFont

img = Image.open("photo.jpg")
draw = ImageDraw.Draw(img)

# Text watermark
font = ImageFont.truetype("/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf", 36)
draw.text((20, img.height - 50), "© 2025", fill=(255, 255, 255, 128), font=font)

# Overlay image (logo in corner)
logo = Image.open("logo.png").resize((100, 100))
img.paste(logo, (img.width - 110, 10), logo)  # third arg = mask for transparency

img.save("watermarked.jpg")

Read the full file on GitHub · 233 lines

Files

What ships with it

2 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. 3mo ago First seen · 233 lines · 73 tokens per session scan A 3509be61f699

Subscribe to this mod's changes

image-gen is a skill published in the GitHub repository sinaptik-ai/starpod (85 stars, last pushed 7mo ago), licensed MIT. It adds 73 tokens to every session and 2,164 once invoked, about $0.0003 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

image-gen compared with skills from other repositories

image-gen next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
image-gensinaptik-ai/starpodSkill857mo agoMITA73Claude Code, Codex
personal-assistantbigduu/Bamboo-agentSkill26todayMITA137Claude Code
bamboo-manualbigduu/Bamboo-agentSkill26todayMITA83Claude Code, Codex
reviewbigduu/Bamboo-agentSkill26todayMITA62Codex
debugbigduu/Bamboo-agentSkill26todayMITA64Codex
planbigduu/Bamboo-agentSkill26todayMITA68Codex
researchbigduu/Bamboo-agentSkill26todayMITA70Codex