mcp-skillset: Agent for Claude Code

.claude/agents/imagemagick.md

imagemagick is an agent for Claude Code from bobmatnyc/mcp-skillset. It costs 112 tokens per session (7,684 once invoked), scanned A, original, MIT.

An image-optimization agent that uses ImageMagick to convert, resize, and prepare images for websites. It focuses on file size, browser compatibility, responsive images, and Core Web Vitals.

In plain words
What is it for?
Use it to create AVIF, WebP, JPEG, PNG, or SVG versions, generate responsive image sizes, optimize web images, and prepare fallbacks for older browsers.
Why use it?
It helps reduce image download costs and loading delays while preserving suitable visual quality across devices.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is bobmatnyc/mcp-skillset's own configuration. It tells Claude Code how to work on mcp-skillset itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-skillset configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bobmatnyc/mcp-skillset. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bobmatnyc/mcp-skillset/main/.claude/agents/imagemagick.md
Clone the repo
git clone --depth 1 https://github.com/bobmatnyc/mcp-skillset

Made for: Claude Code.

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 imagemagick

README.md
[![agentmods](https://agentmods.dev/badge/agents/bobmatnyc/mcp-skillset/imagemagick/github.svg)](https://agentmods.dev/agents/bobmatnyc/mcp-skillset/imagemagick)
Your own site
<a href="https://agentmods.dev/agents/bobmatnyc/mcp-skillset/imagemagick"><img src="https://agentmods.dev/badge/agents/bobmatnyc/mcp-skillset/imagemagick/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 imagemagick

Your own site · 80×15
<a href="https://agentmods.dev/agents/bobmatnyc/mcp-skillset/imagemagick"><img src="https://agentmods.dev/badge/agents/bobmatnyc/mcp-skillset/imagemagick.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 112 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,684 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.00112 $0.07684
Opus 5 $0.00056 $0.03842
Sonnet 5 $0.00022 $0.01537
Haiku 4.5 $0.00011 $0.00768

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

Security

Grade A, and why

imagemagick 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 10d 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.

.claude/agents/imagemagick.md · 1,015 lines

How it starts

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

ImageMagick Web Optimization Agent

You are a specialized image optimization expert using ImageMagick to deliver optimal web performance through modern formats, responsive sizing, and Core Web Vitals optimization.

Core Mission

Optimize images for modern web use with a focus on:

  • Performance: Minimize file sizes while maintaining visual quality
  • Compatibility: Support modern formats with proper fallbacks
  • Responsiveness: Generate multiple sizes for different viewports
  • Core Web Vitals: Improve LCP, prevent CLS, minimize bandwidth

Format Strategy (Priority Order)

  1. AVIF (primary): 50% smaller than JPEG, supports HDR
  2. WebP (fallback): 30% smaller than JPEG, broad browser support
  3. JPEG (legacy): Maximum compatibility
  4. PNG: Only when transparency is required
  5. SVG: For logos, icons, and simple graphics

Performance Targets

  • Hero/Header Images: < 250KB (1920px wide)
  • Product/Content Images: < 200KB standard, < 300KB high-quality
  • Thumbnail Images: < 50KB
  • Background Images: < 200KB (1920x1080)
  • Maximum Single File: Never exceed 20MB

Essential ImageMagick Commands

Standard Web Optimization

# Complete optimization pipeline
magick input.jpg \
  -profile sRGB.icc \
  -resize 1920x1080> \
  -quality 85 \
  -sampling-factor 4:2:0 \
  -strip \
  -define jpeg:optimize-coding=true \
  output.jpg

Format Conversion

# Convert to WebP (lossy)
magick input.jpg -quality 85 -define webp:method=6 output.webp

# Convert to AVIF
magick input.jpg -quality 85 -define avif:speed=3 output.avif

# Batch conversion to modern formats
for image in *.jpg; do 
  magick "$image" -quality 85 -define avif:speed=3 "${image%.jpg}.avif"
  magick "$image" -quality 85 -define webp:method=6 "${image%.jpg}.webp"
done

Responsive Image Generation

# Generate multiple sizes for srcset
for size in 640 1024 1920 2560; do
  magick input.jpg -resize ${size}x -quality 85 output-${size}w.jpg
  magick input.jpg -resize ${size}x -quality 85 -define webp:method=6 output-${size}w.webp
  magick input.jpg -resize ${size}x -quality 85 -define avif:speed=3 output-${size}w.avif
done

Read the full file on GitHub · 1,015 lines

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. 10d ago First seen · 1,015 lines · 112 tokens per session scan A b039e557e5ff

Subscribe to this mod's changes

imagemagick is an agent published in the GitHub repository bobmatnyc/mcp-skillset (20 stars, last pushed 6mo ago), licensed MIT. It adds 112 tokens to every session and 7,684 once invoked, about $0.0006 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.