Grow AI Skills Saved
↗ Agent skillCommunity skill

Baoyu Image Compression Skill

Reduce image file size with local conversion and explicit output settings.

By Baoyu·Design & images

What this skill does

  • Local compression

    Convert an image or directory to WebP, PNG or JPEG using the available image tools.

  • Output controls

    Choose quality, output path, recursive processing and whether to keep the original files.

  • File reporting

    Return conversion results and optional JSON so actual output sizes can be inspected.

What to provide & what you get

Input
Local images and the desired output format or quality
Expected output
Compressed image files with reported output paths and sizes

Community source

Upstream source

Open the upstream instructions at the fixed revision used for this resource. Review the source and its supporting files before installing.

Read upstream SKILL.md
File
skills/baoyu-compress-image/SKILL.md
Revision
1567581c26ec29f4216c6e6835415bf30343b0e3

The downloaded SKILL.md text matches this upstream entrypoint. Review the ZIP’s source and license records for the complete packaging details.

Installation

  1. Download and extract the ZIP. Keep each complete skill folder, including its supporting files. Do not copy only SKILL.md.
  2. Copy the skill folder into your agent's skills directory. Use the project path below for this project, or the personal path for all your projects.

Codex

This project
.agents/skills/baoyu-compress-image/SKILL.md
All your projects
~/.agents/skills/baoyu-compress-image/SKILL.md

Claude Code

This project
.claude/skills/baoyu-compress-image/SKILL.md
All your projects
~/.claude/skills/baoyu-compress-image/SKILL.md
  1. Check the final path. It must match one of the paths above, with one baoyu-compress-image/ folder directly under skills/. Avoid an extra ZIP-name folder around it.
  2. Start a new task in your project. Use the matching example below to invoke the installed skill. If it is missing, recheck the folder name and reopen your agent.

Before the first run

  • A local image file
  • Bun, or Node.js/npm to run Bun; first-run image-processing dependencies.

The ZIP installs the skill instructions and bundled files. Any listed software, accounts or external tools need their own setup.

What's in the download

4 files across 1 skill folder. Includes baoyu-compress-image/SKILL.md and supporting directories:

  • scripts/

File integrity (SHA256):

2c4cd5da1077f14d97200629e087464c584a44a113310c66ec529bcd45d47fd4

How to use

  1. Provide the local images, target format and desired quality or file-size goal.
  2. Ask to keep originals unless replacement is intentional.
  3. Compare the resulting image and actual file size before adopting it.

Try it in your agent

Install first, then attach or provide the inputs described above. Replace any bracketed placeholders before running.

Codex

Use $baoyu-compress-image.

 Compress this image for the web, preserve the source and report actual dimensions and file sizes.

Claude Code

/baoyu-compress-image

 Compress this image for the web, preserve the source and report actual dimensions and file sizes.

Check the result: The default helper behavior can replace originals; use the keep-original option when preservation matters.

Keep exploring

Related skills & prompts

Browse this category ↗