Baoyu Image Compressor
A skill that compresses images to WebP, PNG, or JPEG using whichever tool is available on your machine.
UtilitiesBeginner★ 26,102⑂ 2,884AI score 10/10Last updated: Sep 10, 2026
What it does
- Triggers on requests like "compress image", "optimize image", "convert to webp", or "reduce file size".
- Auto-selects the best available compressor: sips → cwebp → ImageMagick → Sharp.
- Supports format (webp/png/jpeg), quality 0–100, keeping the original, recursive folder processing, and JSON output.
- Lets you pin defaults (format, quality, keep-original) through an EXTEND.md file at project, XDG, or home scope.
Who it's for
- Writers and bloggers shrinking screenshots before publishing.
- Web developers optimizing assets for faster page loads.
- Anyone who needs to batch-convert hundreds of images at once.
Usage examples
- "Compress screenshot.png to WebP" →
image.png → image.webp (245KB → 89KB, 64% reduction) - "Recursively compress everything in ./images at quality 75"
- "Optimize but stay PNG and keep the original" (
-f png --keep)
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/JimLiu/baoyu-skills/HEAD/skills/baoyu-compress-image/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the skills/baoyu-compress-image folder from the GitHub repo JimLiu/baoyu-skills into my ~/.claude/skills/baoyu-compress-image/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/JimLiu/baoyu-skills.git /tmp/baoyu-skills && mkdir -p ~/.claude/skills && cp -r /tmp/baoyu-skills/skills/baoyu-compress-image ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/JimLiu/baoyu-skills.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r baoyu-skills/skills/baoyu-compress-image ~/.claude/skills/ - Make sure
bun(preferred) or Node'snpxis installed. Install bun with:curl -fsSL https://bun.sh/install | bash - Restart Claude Code and ask it to "compress this image".
- (Optional) Create
~/.baoyu-skills/baoyu-compress-image/EXTEND.mdto set your default format and quality.
View source on GitHub ↗License: MIT