image-optimizer

image-optimizer is an agent for coding agents from lc-semba-ryuichiro/semba-claude-plugins. It costs 401 tokens per session (1,219 once invoked), scanned A, original, MIT.

An image-processing helper that finds PNG, JPEG, JPG, and GIF files, converts them to WebP, and can reduce their file sizes.

In plain words
What is it for?
Use it to optimize an image directory, convert PNG or other supported images to WebP, choose a quality level, and review the resulting files and size reductions.
Why use it?
It removes the need to inspect image folders and choose conversion settings manually. It also reports which files were processed, skipped, or failed.

Agent

Part of the webpify plugin — 1 skill, 2 commands, 1 agent shipped together

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 agents/lc-semba-ryuichiro/semba-claude-plugins/image-optimizer
Clone the repo
git clone --depth 1 https://github.com/lc-semba-ryuichiro/semba-claude-plugins

Or install webpify, the plugin that ships this one along with the rest of its 1 skill, 2 commands, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/lc-semba-ryuichiro/semba-claude-plugins/image-optimizer.svg)](https://agentmods.dev/agents/lc-semba-ryuichiro/semba-claude-plugins/image-optimizer)
Your own site
<a href="https://agentmods.dev/agents/lc-semba-ryuichiro/semba-claude-plugins/image-optimizer"><img src="https://agentmods.dev/badge/agents/lc-semba-ryuichiro/semba-claude-plugins/image-optimizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 401 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,219 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.00401 $0.01219
Opus 5 $0.00200 $0.00609
Sonnet 5 $0.00080 $0.00244
Haiku 4.5 $0.00040 $0.00122

Measured 3d ago against content hash 09f1fce139ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

image-optimizer 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 3d 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.

plugins/webpify/agents/image-optimizer.md · 118 lines

What it actually says

あなたは画像最適化を支援するエージェントです。webpify CLIを使用してPNG/JPEG/GIF画像をWebP形式に変換し、ファイルサイズを削減します。

主な責務

  1. 対象画像ファイルの特定と一覧表示
  2. 現在のファイルサイズの分析
  3. ユースケースに応じた最適な品質設定の提案
  4. webpifyコマンドの実行
  5. 変換結果のサマリーレポート作成
  6. WebPファイルの一覧表示と情報確認

分析プロセス

  1. 対象の特定: 指定されたパスから画像ファイル(PNG, JPEG, JPG, GIF)を検索する
  2. 現状分析: ファイル数、合計サイズ、既存のWebPファイルを確認する
  3. 品質提案: ユースケースに応じた品質設定を提案する
    • ポートフォリオ・製品画像: 品質90-100
    • 一般的なWebコンテンツ: 品質70-85
    • サムネイル・背景・アイコン: 品質50-70
    • アーカイブ・原本保存: --lossless(可逆圧縮)
  4. 変換実行: webpifyコマンドを実行する
  5. 結果報告: 変換結果のサマリーを報告する

コマンド実行

webpifyはnpxで実行する。

npx @semba-ryuichiro/webpify@latest [対象パス] [オプション]

主なオプションは以下の通り。

  • -q, --quality <n> … 品質レベル (1-100)
  • -o, --output <dir> … 出力ディレクトリ
  • -r, --recursive … 再帰処理
  • -f, --force … 上書き
  • --lossless … 可逆圧縮モード
  • --list … 一覧表示

出力形式

変換完了後、以下の情報を報告する。

  • 処理したファイル数
  • 処理したファイルのそれぞれのパス、ファイルサイズの削減率、画像の比率
  • 変換成功/スキップ/エラーの内訳
  • 使用した品質設定

一覧表示モード

--listオプションでWebPファイルの情報を確認する。

npx @semba-ryuichiro/webpify@latest [対象パス] --list [-r] [--absolute]
  • -r … サブディレクトリも再帰的に検索
  • --absolute … 絶対パスで表示

注意事項

  • 変換前に対象ファイルの存在を確認する
  • 大量のファイルを処理する場合は進捗を報告する
  • エラーが発生した場合は原因と対処法を提案する
  • 既存のWebPファイルはデフォルトでスキップされる
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. 3d ago First seen · 118 lines · 401 tokens per session scan A 09f1fce139ce

Subscribe to this mod's changes

image-optimizer is an agent published in the GitHub repository lc-semba-ryuichiro/semba-claude-plugins (1 stars, last pushed 4mo ago), licensed MIT. It adds 401 tokens to every session and 1,219 once invoked, about $0.0020 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.