Skills for Real Engineers. Straight from my .agents directory.
baoyu-compress-image
Agent skill fromJimLiu/baoyu-skills
Compresses images to WebP (default) or PNG with automatic tool selection. Use when user asks to "compress image", "optimize image", "convert to webp", or reduce image file size.
How to install baoyu-compress-image
npx skills add JimLiu/baoyu-skills# or add only this skill to Claude Code: copy the folder
skills/baoyu-compress-image/
# into
~/.claude/skills/baoyu-compress-image/ (all projects)
.claude/skills/baoyu-compress-image/ (one project)
1# Image Compressor23Tool auto-selection order: sips → cwebp → ImageMagick → Sharp.45## Script Directory67`{baseDir}` = this SKILL.md's directory. Resolve `${BUN_X}`: `bun` if installed; else `npx -y bun`; else suggest installing bun. Replace `{baseDir}` and `${BUN_X}` with actual values.89| Script | Purpose |10|--------|---------|11| `scripts/main.ts` | Image compression CLI |1213## Preferences (EXTEND.md)1415First found wins:1617| Priority | Path | Scope |18|----------|------|-------|19| 1 | `.baoyu-skills/baoyu-compress-image/EXTEND.md` | Project |20| 2 | `${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-compress-image/EXTEND.md` | XDG |21| 3 | `$HOME/.baoyu-skills/baoyu-compress-image/EXTEND.md` | User home |2223If none found, use defaults. **EXTEND.md supports**: default format, default quality, keep-original preference.2425## Usage2627```bash28${BUN_X} {baseDir}/scripts/main.ts <input> [options]29${BUN_X} {baseDir}/scripts/main.ts image.png # → WebP, replaces original30${BUN_X} {baseDir}/scripts/main.ts image.png -f png --keep # keep PNG format and original31${BUN_X} {baseDir}/scripts/main.ts ./images/ -r -q 75 # directory, recursive32```3334Output: `image.png → image.webp (245KB → 89KB, 64% reduction)`3536## Options3738| Option | Short | Description | Default |39|--------|-------|-------------|---------|40| `<input>` | | File or directory | Required |41| `--output` | `-o` | Output path | Same path, new ext |42| `--format` | `-f` | webp, png, jpeg | webp |43…
Excerpt shown under the repository's MIT license.
More skills in baoyu-skills
Similar skill repositories
Public repository for Agent Skills
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
