AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

Baoyu Image Compressor

Compresses and converts images to WebP (default), PNG, or JPEG with automatic tool selection.

UtilitiesBeginner★ 27,392⑂ 2,989AI score 10/10Last updated: Nov 6, 2026

What it does

  • Converts and compresses images to WebP (default), PNG, or JPEG to shrink file size.
  • Auto-selects the best available encoder in the order sips → cwebp → ImageMagick → Sharp.
  • Handles single files or entire directories, with -r for recursive subfolder processing.
  • Lets you control quality (0–100), output path, and whether to keep the original; --json emits machine-readable results.
  • Supports per-project / XDG / home-level EXTEND.md files to set your default format, quality, and keep-original preference.

Who it's for

  • Anyone shrinking images for blogs, docs, or websites.
  • Frontend developers optimizing assets for faster page loads.
  • Designers and writers batch-processing screenshots or mockups.

Example uses

  1. "Convert this screenshot to webp" → image.png → image.webp (245KB → 89KB, 64% reduction)
  2. "Compress the whole images folder at quality 75" → recursive run with -r -q 75
  3. "Keep PNG format and don't delete the original" → -f png --keep for a safe optimization pass

· · · 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)
  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 AI 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
  3. Copy the skill into place: mkdir -p ~/.claude/skills && cp -r baoyu-skills/skills/baoyu-compress-image ~/.claude/skills/
  4. Make sure a runtime exists: bun is used if installed, otherwise npx -y bun. To install Bun directly: curl -fsSL https://bun.sh/install | bash.
  5. (Optional) macOS ships with sips; for better results install extra encoders with brew install webp imagemagick.
  6. Restart Claude Code, then ask something like "compress this image" and the skill will trigger automatically.