baoyu-compress-image
Compresses images to WebP (default) or PNG with automatic tool selection.
Skill by JimLiu
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jimliu-baoyu-compress-image
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/baoyu-compress-image
What's inside
- Skill name
baoyu-compress-image- Description
- 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.
- License
- MIT
- Instructions
- 70 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Instructions read files in your home folder (~/.ssh, ~/.aws…)
Files (2)
- SKILL.md
- main.ts · scripts/
SKILL.md (first lines)
# Image Compressor
Compresses images using best available tool (sips → cwebp → ImageMagick → Sharp).
## Script Directory
Scripts in `scripts/` subdirectory. `{baseDir}` = this SKILL.md's directory path. Resolve `${BUN_X}` runtime: if `bun` installed → `bun`; if `npx` available → `npx -y bun`; else suggest installing bun. Replace `{baseDir}` and `${BUN_X}` with actual values.
| Script | Purpose |
|--------|---------|
| `scripts/main.ts` | Image compression CLI |
## Preferences (EXTEND.md)
Check EXTEND.md in priority order — the first one found wins:
| Priority | Path | Scope |
|----------|------|-------|
| 1 | `.baoyu-skills/baoyu-compress-image/EXTEND.md` | Project |
| 2 | `${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-compress-image/EXTEND.md` | XDG |
| 3 | `$HOME/.baoyu-skills/baoyu-compress-image/EXTEND.md` | User home |
If none found, use defaults.
**EXTEND.md supports**: Default format, default quality, keep-original preference.
## Usage
```bash
${BUN_X} {baseDir}/scripts/main.ts <input> [options]
```
## Options
| Option | Short | Description | Default |
|--------|-------|-------------|---------|
| `<input>` | | File or directory | Required |
| `--output` | `-o` | Output path | Same path, new ext |
| `--format` | `-f` | webp, png, jpeg | webp |
| `--quality` | `-q` | Quality 0-100 | 80 |
| `--keep` | `-k` | Keep original | false |
| `--recursive` | `-r` | Process subdirs | false |
| `--json` | | JSON output | false |
## Examples
```bash
# Single file → WebP (replaces original)
${BUN_X} {baseDir}/scripts/main.ts image.png
# Keep PNG format
${BUN_X} {baseDir}/scripts/main.ts image.png -f png --keep
# Directory recursive
${BUN_X} {baseDir}/scripts/main.ts ./images/ -r -q 75
# JSON output
${BUN_X} {baseDir}/scripts/main.ts image.png --json
```
**Output**:
```
image.png → image.webp (245KB → 89KB, 64% reduction)
```
## Extension Support
Custom configurations via EXTEND.md. See **Preferences** section for paths and supported options.From JimLiu/baoyu-skills, MIT.
More from JimLiu/baoyu-skills
- 0.827score
baoyu-url-to-markdown
JimLiu
Fetch any URL and convert to markdown using baoyu-fetch CLI (Chrome CDP with site-specific adapters).
SkillBFreshness: B★ 26.9KClaude Code +9 - 0.827score
baoyu-image-gen
JimLiu
AI image generation with OpenAI GPT Image 2.5, Azure OpenAI, Google, OpenRouter, DashScope, Z.AI GLM-Image, MiniMax, Jimeng, Seedream, Replicate and Agnes APIs.
SkillBFreshness: B★ 26.9KClaude Code +9 - 0.770score
baoyu-post-to-x
JimLiu
Posts content and articles to X (Twitter).
SkillCFreshness: C★ 26.9KClaude Code +9 - 0.770score
baoyu-cover-image
JimLiu
Generates article cover images with 5 dimensions (type, palette, rendering, text, mood) combining 11 color palettes and 7 rendering styles.
SkillCFreshness: C★ 26.9KClaude Code +9 - 0.770score
baoyu-wechat-summary
JimLiu
Summarizes WeChat group chat highlights into a structured digest using the local wx-cli binary (https://github.com/jackwener/wx-cli).
SkillCFreshness: C★ 26.9KClaude Code +9 - 0.770score
baoyu-youtube-transcript
JimLiu
Downloads YouTube video transcripts/subtitles and cover images by URL or video ID.
SkillCFreshness: C★ 26.9KClaude Code +9 - 0.770score
baoyu-markdown-to-html
JimLiu
Converts Markdown to styled HTML with WeChat-compatible themes.
SkillCFreshness: C★ 26.9KClaude Code +9 - 0.770score
baoyu-xhs-images
JimLiu
Generates infographic image card series with 12 visual styles, 8 layouts, and 3 color palettes.
SkillCFreshness: C★ 26.9KClaude Code +9 - 0.770score
baoyu-article-illustrator
JimLiu
Analyzes article structure, identifies positions requiring visual aids, generates illustrations with Type × Style × Palette three-dimension approach.
SkillCFreshness: C★ 26.9KClaude Code +9 - 0.770score
baoyu-comic
JimLiu
Knowledge comic creator supporting multiple art styles and tones.
SkillCFreshness: C★ 26.9KClaude Code +9 - 0.770score
baoyu-danger-gemini-web
JimLiu
Generates images and text via reverse-engineered Gemini Web API.
SkillCFreshness: C★ 26.9KClaude Code +9 - 0.770score
baoyu-danger-x-to-markdown
JimLiu
Converts X (Twitter) tweets and articles to markdown with YAML front matter.
SkillCFreshness: C★ 26.9KClaude Code +9
Signals
- Stars
- 26,925
- Forks
- 2,950
- Open issues
- 13
- Last commit (this folder)
- Apr 19, 2026 (6 months ago)
- Last release
- Jun 18, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/JimLiu/baoyu-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.338score
baoyu-compress-image
guanyang
Compresses images to WebP (default) or PNG with automatic tool selection.
SkillCFreshness: C★ 980Claude Code +9 - 0.299score
baoyu-compress-image
SassumiX
Compresses images to WebP (default) or PNG with automatic tool selection.
SkillCFreshness: C★ 2Claude Code +9 - 0.246score
baoyu-compress-image
chengyihua
Compresses images to WebP (default) or PNG with automatic tool selection.
SkillDFreshness: DClaude Code +9
More from JimLiu
- 0.827score
baoyu-url-to-markdown
JimLiu
Fetch any URL and convert to markdown using baoyu-fetch CLI (Chrome CDP with site-specific adapters).
SkillBFreshness: B★ 26.9KClaude Code +9 - 0.827score
baoyu-image-gen
JimLiu
AI image generation with OpenAI GPT Image 2.5, Azure OpenAI, Google, OpenRouter, DashScope, Z.AI GLM-Image, MiniMax, Jimeng, Seedream, Replicate and Agnes APIs.
SkillBFreshness: B★ 26.9KClaude Code +9 - 0.770score
baoyu-post-to-x
JimLiu
Posts content and articles to X (Twitter).
SkillCFreshness: C★ 26.9KClaude Code +9 - 0.770score
baoyu-cover-image
JimLiu
Generates article cover images with 5 dimensions (type, palette, rendering, text, mood) combining 11 color palettes and 7 rendering styles.
SkillCFreshness: C★ 26.9KClaude Code +9 - 0.770score
baoyu-article-illustrator
JimLiu
Analyzes article structure, identifies positions requiring visual aids, generates illustrations with Type × Style × Palette three-dimension approach.
SkillCFreshness: C★ 26.9KClaude Code +9 - 0.770score
baoyu-comic
JimLiu
Knowledge comic creator supporting multiple art styles and tones.
SkillCFreshness: C★ 26.9KClaude Code +9
Cite this page
baoyu-compress-image skill. Agent Mart. https://agentmart.dev/skills/jimliu-baoyu-compress-image (last updated 2026-10-24)