
Tuzi Compress Image
This handles image compression with automatic tool fallback, trying sips, then cwebp, then ImageMagick, then Sharp until something works. It defaults to WebP at 80% quality and can process single files or entire directories recursively. The EXTEND.md configuration system is thoughtful, checking project level first then falling back to your home directory for personal defaults. You can keep originals or replace them, output as WebP, PNG, or JPEG, and get either human readable or JSON output. It's the kind of thing you'd wire up to a pre-commit hook or run manually when a designer dumps a folder of PNGs into your repo and you need to shrink them fast.
- skills.sh installs
- 172
- GitHub stars
- 39
- last updated
- Aug 21, 2026
Install
$ npx -y skills add tuziapi/tuzi-skills --skill tuzi-compress-image --agent claude-codeInstalls into .claude/skills of the current project.
Files
Image Compressor
Compresses images using best available tool (sips → cwebp → ImageMagick → Sharp).
Script Directory
Scripts in scripts/ subdirectory. Replace ${SKILL_DIR} with this SKILL.md's directory path.
| Script | Purpose |
|---|---|
scripts/main.ts | Image compression CLI |
Preferences (EXTEND.md)
Use Bash to check EXTEND.md existence (priority order):
# Check project-level first
test -f .tuzi-skills/tuzi-compress-image/EXTEND.md && echo "project"
# Then user-level (cross-platform: $HOME works on macOS/Linux/WSL)
test -f "$HOME/.tuzi-skills/tuzi-compress-image/EXTEND.md" && echo "user"
┌────────────────────────────────────────────────────────┬───────────────────┐ │ Path │ Location │ ├────────────────────────────────────────────────────────┼───────────────────┤ │ .tuzi-skills/tuzi-compress-image/EXTEND.md │ Project directory │ ├────────────────────────────────────────────────────────┼───────────────────┤ │ $HOME/.tuzi-skills/tuzi-compress-image/EXTEND.md │ User home │ └────────────────────────────────────────────────────────┴───────────────────┘
Sponsors
Details
- Repository
- github.com/tuziapi/tuzi-skills
- First seen
- Jun 3, 2026
More from tuziapi/tuzi-skills
All 20- Tuzi Xhs Images170
- Tuzi Article Illustrator165
- Tuzi Format Markdown165
- Tuzi Markdown To Html164
- Tuzi Url To Markdown164
- Tuzi Cover Image160
- Tuzi Post To X159
- Tuzi Slide Deck159
- Tuzi Copy Polish158
- Tuzi Danger Gemini Web156
- Tuzi Danger X To Markdown156
- Release Skills151
- Tuzi Update Claude Md150
- Tuzi Short Video329
- Tuzi Image Gen208
- Tuzi Comic191
- Tuzi Video Gen189
- Tuzi Infographic178
- Tuzi Post To Wechat174