questnova502/claude-skills-sync/baoyu-compress-image
Claude Code and agent skill by questnova502/claude-skills-sync
- community
Checking that the SKILL.md file is still in the repository.
Cross-platform image compression skill. Converts images to WebP by default with PNG-to-PNG support. Uses system tools (sips, cwebp, ImageMagick) with Sharp fallback.
Install
npx vskill@latest install questnova502/claude-skills-sync/baoyu-compress-imageSKILL.md
Image Compressor
Cross-platform image compression with WebP default output, PNG-to-PNG support, preferring system tools with Sharp fallback.
Script Directory
Important: All scripts are located in the scripts/ subdirectory of this skill.
Agent Execution Instructions:
- Determine this SKILL.md file's directory path as
SKILL_DIR - Script path =
${SKILL_DIR}/scripts/<script-name>.ts - Replace all
${SKILL_DIR}in this document with the actual path
Script Reference:
| Script | Purpose | |
|---|---|---|
scripts/main.ts | CLI entry point for image compression |
Quick Start
Commands
Single File Compression
Directory Processing
Output Formats
Options
| Option | Short | Description | Default | |
|---|---|---|---|---|
<input> | Input file or directory | Required | ||
--output <path> | -o | Output path | Same path, new extension | |
--format <fmt> | -f | webp, png, jpeg | webp | |
--quality <n> | -q | Quality 0-100 | 80 | |
--keep | -k | Keep original file | false | |
--recursive | -r | Process directories recursively | false | |
--json | JSON output | false | ||
--help | -h | Show help |
Compressor Selection
Priority order (auto-detected):
- sips (macOS built-in, WebP support since macOS 11)
- cwebp (Google's official WebP tool)
- ImageMagick (
convertcommand) - Sharp (npm package, auto-installed by Bun)
The skill automatically selects the best available compressor.
Output Format
Text Mode (default)
JSON Mode
Directory JSON Mode
Examples
Compress single image
Compress with custom quality
Keep original format
Process entire directory
Get JSON for scripting
Extension Support
Custom configurations via EXTEND.md.
Check paths (priority order):
.baoyu-skills/baoyu-compress-image/EXTEND.md(project)~/.baoyu-skills/baoyu-compress-image/EXTEND.md(user)
If found, load before workflow. Extension content overrides defaults.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/baoyu-compress-image/SKILL.md
Popularity
- Repository stars
- 4
- Repository forks
- 4
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 14 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/questnova502/claude-skills-sync/baoyu-compress-image)