Claude Skill MartBrowse skillsWhat is a Skill?
Back to list

Baoyu Compress Image

Compresses and converts images to WebP, PNG, or JPEG using whichever optimizer is available on your machine.

UtilitiesBeginner24,7492,764AI score 7/10Last updated: Jul 4, 2026

What it does

Compresses images to WebP (default), PNG, or JPEG. It auto-detects the best available tool in the order sips → cwebp → ImageMagick → Sharp, so it works with little to no setup.

  • Control quality (0–100), output path, and target format
  • Batch process folders, including subfolders with -r
  • Preserve originals with --keep, emit machine-readable results with --json
  • Pin default format, quality, and keep-original policy via EXTEND.md at project, XDG, or home scope

Who it's for

  • Writers and documenters who need lighter screenshots
  • Web developers bulk-converting assets to WebP for faster page loads
  • Content creators tired of manually optimizing images

Examples

  1. "Compress this screenshot" → image.png becomes image.webp with output like 245KB → 89KB, 64% reduction
  2. "Recursively compress ./images at quality 75" → handles nested folders in one pass
  3. "Keep PNG format and don't delete the original" → runs with -f png --keep for a safe optimization

· · · Install guide · · ·

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/JimLiu/baoyu-skills.git /tmp/baoyu-skills
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the skill: cp -r /tmp/baoyu-skills/skills/baoyu-compress-image ~/.claude/skills/
  5. Ensure a runtime: check bun --version; if missing, npx -y bun is used automatically, or install bun with curl -fsSL https://bun.sh/install | bash.
  6. Restart Claude Code and ask "compress this image" to verify.
  7. (Optional) Create ~/.baoyu-skills/baoyu-compress-image/EXTEND.md to set your default format and quality.