Compress Images
Iterative cwebp loop that lands every image under a 100KB web/SEO target
Test report
- Verdict
- Works with setup
- Score
- Tested
- Jul 15, 2026
- Environment
- Claude Code 2.x (agent harness)
- Upstream re-checked
- Jul 18, 2026 · d52ff8b
Real A/B on a worst-case 3.1MB noise-heavy synthetic JPG: a naive single-pass `cwebp -q 80` (my baseline) left it at 1.7MB, 17x over the stated 100KB target, while following the skill's iterative quality+resize loop actually got it down to 58KB — but cwebp has to already be installed (brew install webp), a step SKILL.md never mentions.
Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works
- Installs cleanly 5/5
- Triggers reliably 5/5
- Output vs. baseline 8/10
- Docs & honesty 4/5
What Compress Images does
Single-file bash skill (allowed-tools restricted to cwebp/ls/mkdir/mv) that moves source JPG/PNG/GIF files into an originals/ subfolder, then repeatedly lowers cwebp quality and resize dimensions until every output is under 100KB, reporting before/after sizes and updating file references. Trigger it when optimizing images for page speed, reducing asset weight, or converting to WebP; it silently depends on the cwebp binary already being on the machine, which SKILL.md never tells you to install.
How to install Compress Images
git clone https://github.com/rameerez/claude-code-startup-skills
cd claude-code-startup-skills
mkdir -p ~/.claude/skills
cp -r skills/compress-images ~/.claude/skills/compress-images
Skills live in ~/.claude/skills/ (global) or .claude/skills/
(per-project). Restart Claude Code after installing.
Commands — how to trigger Compress Images
-
/compress-imagesIterative cwebp loop that lands every image under a 100KB web/SEO target
It also activates on plain-language prompts like these:
-
compress these hero images down under 100kb for page speed -
convert my product photos to webp and shrink them for the web -
get all these image assets under our size budget without quality loss
Frequently asked questions
- Is the Compress Images skill free?
- Yes. The skill itself is free from rameerez/claude-code-startup-skills. SkillProof publishes the install command and an independent test verdict at no cost.
- Does Compress Images work with Claude Code?
- We tested it with Claude Code 2.x (agent harness) on Jul 15, 2026. Verdict: Works with setup. Real A/B on a worst-case 3.1MB noise-heavy synthetic JPG: a naive single-pass `cwebp -q 80` (my baseline) left it at 1.7MB, 17x over the stated 100KB target, while following the skill's iterative quality+resize loop actually got it down to 58KB — but cwebp has to already be installed (brew install webp), a step SKILL.md never mentions.
- What is the Compress Images SkillProof Score?
- 8.8/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 8/10, docs & honesty 4/5.
- How do I install Compress Images?
- Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
- Can I use Compress Images with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
- The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.