image-optimize

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

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.

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

Made for: Claude Code, Codex.

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. Scan, not verified.
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 $0.00040 $0.01644
Opus 5 $0.00020 $0.00822
Sonnet 5 $0.00008 $0.00329
Haiku 4.5 $0.00004 $0.00164

Measured 2d ago against content hash eb6265bd434c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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. 2d 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 6mo ago), licensed MIT. It adds 40 tokens to every session and 1,644 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

mine

Mine a project or conversation into your MemPalace — extract and store memories for later retrieval.

MemPalace/mempalace · 21 tokens

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

python-testing

Python testing best practices using pytest including fixtures, parametrization, mocking, coverage analysis, async testing, and test organization. Use when writing or improving Python tests.

mturac/everything-openai-codex · 35 tokens

database-migrations

Database migration best practices for schema changes, data migrations, rollbacks, and zero-downtime deployments across PostgreSQL, MySQL, and common ORMs (Prisma, Drizzle, Django, TypeORM, golang-migrate). Use when planning or implementing database schema changes.

mturac/everything-openai-codex · 61 tokens

docker-patterns

Docker and Docker Compose patterns for local development, container security, networking, volume strategies, and multi-service orchestration. Use when setting up containerized development environments or reviewing Docker configurations.

mturac/everything-openai-codex · 40 tokens

python-patterns

Python-specific design patterns and best practices including protocols, dataclasses, context managers, decorators, async/await, type hints, and package organization. Use when working with Python code to apply Pythonic patterns.

mturac/everything-openai-codex · 45 tokens