image-optimize

image-optimize is a skill for Claude Code, Codex from ssube/conclave. It costs 40 tokens per session (1,644 once invoked), scanned A, original, MIT.

An image-processing tool that resizes, compresses, converts, and inspects image files for services with upload limits.

In plain words
What is it for?
Preparing images for Twitter, Bluesky, Gallery, DeviantArt, Patreon, or Tumblr; optimizing one image or a whole folder.
Why use it?
It helps prevent rejected uploads and reduces the need to prepare separate image versions by hand.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is --input-dir ./renders/ \.

Good fit Preparing images for Twitter, Bluesky, Gallery, DeviantArt, Patreon, or Tumblr; optimizing one image or a whole folder.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ssube/conclave
agentmods
npx agentmods add skills/ssube/conclave/image-optimize

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ssube/conclave/image-optimize"><img src="https://agentmods.dev/badge/skills/ssube/conclave/image-optimize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,644 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.00040 $0.01644
Opus 5.5 $0.00016 $0.00658
Sonnet 5.5 $0.00008 $0.00329
Haiku 4.5 $0.00004 $0.00164

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

Security

Grade A, and why

image-optimize 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.

The scan reads SKILL.md. This mod also ships 1 executable file (optimize.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.

pi/skills/image-optimize/SKILL.md · 241 lines

How it starts

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

Image Optimize Skill

Resize, compress, and format images for platform-specific requirements. Uses Pillow for image processing.

Requirements

pip install Pillow

Platform Specifications

Platform Max Size Max Dimensions Formats
Twitter 5MB 4096x4096 PNG, JPG, WebP
Bluesky 1MB 2000x2000 PNG, JPG, WebP
Gallery 16MB 4096x4096 PNG, JPG, WebP
DeviantArt 30MB 16000x16000 PNG, JPG, GIF
Patreon 10MB 5000x5000 PNG, JPG, GIF
Tumblr 10MB 4096x4096 PNG, JPG, GIF

Usage

Resize for platform

python3 {baseDir}/optimize.py resize \
  --input /path/to/image.png \
  --platform twitter \
  --output /path/to/output.png

Automatically resizes and compresses to meet platform requirements.

Manual compression

python3 {baseDir}/optimize.py compress \
  --input /path/to/image.png \
  --quality 85 \
  --output /path/to/output.jpg

Batch optimization

python3 {baseDir}/optimize.py batch \
  --input-dir /path/to/images/ \
  --platform twitter \
  --output-dir /path/to/optimized/

Get image info

python3 {baseDir}/optimize.py info /path/to/image.png

Returns dimensions, format, file size, and platform compatibility.

Convert format

python3 {baseDir}/optimize.py convert \
  --input /path/to/image.png \
  --format webp \
  --output /path/to/output.webp

Commands

resize

Resize image to fit platform requirements while maintaining aspect ratio.

Options:

  • --input: Input image path (required)
  • --platform: Target platform (required)
  • --output: Output path (default: adds platform suffix to input name)
  • --format: Output format (default: same as input or platform default)
  • --quality: JPEG/WebP quality 1-100 (default: auto for platform)

compress

Compress image to target quality or file size.

Options:

  • --input: Input image path (required)
  • --output: Output path (required)
  • --quality: Quality 1-100 (default: 85)
  • --max-size: Maximum file size in bytes (optional, iterates to find quality)
  • --format: Output format (default: same as input)

Read the full file on GitHub · 241 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 First seen · 241 lines · 40 tokens per session scan A eb6265bd434c

Subscribe to this mod's changes

image-optimize is a skill published in the GitHub repository ssube/conclave (2 stars, last pushed 7mo ago), licensed MIT. It adds 40 tokens to every session and 1,644 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-31.

Related

Other skills, from other repositories

mempalace-recall

Recall protocol for MemPalace — search the palace before answering about past work, people, projects, or prior decisions. Apply when the user asks what was decided, what happened before, who someone is, what was discussed last time, or anything that may already be filed in their memory palace; or when mempalace-recall…

MemPalace/mempalace · 94 tokens

tiered-memory

Three-tier agent memory model (hot/cold/wiki) for 20-55% context reduction per spawn.

Azure-Samples/eShopLite · 25 tokens

kami

Generate PDFs, resumes, CVs, letters, slide decks, portfolios, one-pagers, white papers, and professional documents. Use when user asks to create a PDF, make a resume, write a letter, design slides, format a document, typeset a report, build a portfolio, make a presentation, or create a one-pager. Warm parchment…

EliasOulkadi/shokunin · 0 tokens

db-sculptor

Design database schemas with Prisma/Drizzle, PostgreSQL index strategy (B-tree, GIN, GiST, BRIN, Hash), query optimization (EXPLAIN ANALYZE), migration safety (expand/contract, zero-downtime), and sharding/partitioning. Use when user asks to design schema, create migrations, optimize slow queries, add indexes, choose…

EliasOulkadi/shokunin · 123 tokens

responsive-engine

Design multi-device layouts with Container Queries, clamp() fluid typography, :has() selector, subgrid, and modern CSS units (dvh/svh/lvh). Use when user asks to make a layout responsive, handle mobile/tablet/desktop breakpoints, create fluid typography, or use Container Queries. Do NOT use for full-page layouts (use…

EliasOulkadi/shokunin · 95 tokens

api-forge

Design REST/GraphQL APIs with OpenAPI 3.1, error handling, pagination, rate limiting, webhooks, and idempotency. Use when user asks to design an API, create endpoints, define REST/GraphQL schema, or generate OpenAPI spec. Do NOT use for database schema design, frontend API integration, or non-HTTP protocols (gRPC…

EliasOulkadi/shokunin · 85 tokens