baoyu-compress-image SKILL.md skillA

baoyu-compress-image from jimliu/baoyu-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add jimliu/baoyu-skills/baoyu-compress-image@v1.56.1

Pins v1.56.1 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
jimliu/baoyu-skills
Path
skills/baoyu-compress-image/SKILL.md
Versions recorded
5
Latest version
v1.56.1, committed Nov 1, 2026
First version recorded
Mar 8, 2026
Size
2,196 bytes
Repository stars
27,167
License
MIT

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.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Image Compressor

Tool auto-selection order: sips → cwebp → ImageMagick → Sharp.

## Script Directory

`{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.

| Script | Purpose |
|--------|---------|
| `scripts/main.ts` | Image compression CLI |

## Preferences (EXTEND.md)

First 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]
${BUN_X} {baseDir}/scripts/main.ts image.png                    # → WebP, replaces original
${BUN_X} {baseDir}/scripts/main.ts image.png -f png --keep      # keep PNG format and original
${BUN_X} {baseDir}/scripts/main.ts ./images/ -r -q 75           # directory, recursive
```
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add jimliu/baoyu-skills/baoyu-compress-image@sha256:e93d107e4ffa1c27

The line at the top of this page pins the label v1.56.1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_m2po26rqf4f6ppo6.svg)](https://markdownregistry.com/a/art_m2po26rqf4f6ppo6)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Mar 8, 2026 and Nov 1, 2026, about one every 60 days.

versioncommittedcommitsizeaudit
v1.56.1 latest2026-11-01 d2b8bc3 2,196 BA view · diff
v1.56.12026-04-19 2c800c6 2,409 BA view · diff
v1.56.12026-03-09 c43ed57 5,274 BA view · diff
v1.56.12026-03-09 154ccfe 5,013 BA view · diff
git:20260308.a7025132026-03-08 a702513 5,126 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (2196 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

jimliu/baoyu-skills · 27,167 stars · license MIT · pushed 2026-11-01 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_m2po26rqf4f6ppo6
GET https://markdownregistry.com/api/v1/resolve?ref=jimliu/baoyu-skills/baoyu-compress-image
GET https://markdownregistry.com/api/v1/blob/e93d107e4ffa1c27f213880e7f830961a6bab07e43a1695aae12314851e09d2c

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from jimliu/baoyu-skills

release-skills SKILL.md skill
jimliu/baoyu-skills · .claude/skills/release-skills/SKILL.md · Universal release workflow. Auto-detects version files and changelogs. Supports Node.js, Python, Rust, Claude Plugin…
git:20260505.80a1c29 · audit A · 27,167 stars
CLAUDE.md CLAUDE.md file
jimliu/baoyu-skills · CLAUDE.md
git:20260613.b0ac523 · audit B · 27,167 stars
baoyu-article-illustrator SKILL.md skill
jimliu/baoyu-skills · skills/baoyu-article-illustrator/SKILL.md · Analyzes article structure, identifies positions requiring visual aids, generates illustrations with Type × Style ×…
v1.117.4 · audit A · 27,167 stars
baoyu-comic SKILL.md skill
jimliu/baoyu-skills · skills/baoyu-comic/SKILL.md · Knowledge comic creator supporting multiple art styles and tones. Creates original educational comics with detailed…
v1.117.4 · audit B · 27,167 stars
baoyu-cover-image SKILL.md skill
jimliu/baoyu-skills · skills/baoyu-cover-image/SKILL.md · Generates article cover images with 5 dimensions (type, palette, rendering, text, mood) combining 11 color palettes and…
v1.117.5 · audit A · 27,167 stars
baoyu-danger-gemini-web SKILL.md skill
jimliu/baoyu-skills · skills/baoyu-danger-gemini-web/SKILL.md · Generates images and text via reverse-engineered Gemini Web API. Supports text generation, image generation from…
v1.56.2 · audit B · 27,167 stars
baoyu-danger-x-to-markdown SKILL.md skill
jimliu/baoyu-skills · skills/baoyu-danger-x-to-markdown/SKILL.md · Converts X (Twitter) tweets and articles to markdown with YAML front matter. Uses reverse-engineered API requiring user…
v1.117.3 · audit A · 27,167 stars
baoyu-diagram SKILL.md skill
jimliu/baoyu-skills · skills/baoyu-diagram/SKILL.md · Create professional diagrams with configurable dark/light theme via CSS custom properties. Use this skill whenever the…
v1.118.0 · audit A · 27,167 stars
baoyu-electron-extract SKILL.md skill
jimliu/baoyu-skills · skills/baoyu-electron-extract/SKILL.md · Extracts resources and JavaScript from any installed Electron app (`.asar` bundle), restoring original sources from…
v1.119.0 · audit A · 27,167 stars
baoyu-format-markdown SKILL.md skill
jimliu/baoyu-skills · skills/baoyu-format-markdown/SKILL.md · Formats plain text or markdown files with frontmatter, titles, summaries, headings, bold, lists, and code blocks. Use…
v1.57.0 · audit A · 27,167 stars
baoyu-image-gen SKILL.md skill
jimliu/baoyu-skills · skills/baoyu-image-gen/SKILL.md · AI image generation with OpenAI GPT Image 2.5, Azure OpenAI, Google, OpenRouter, DashScope, Z.AI GLM-Image, MiniMax…
v2.2.0 · audit A · 27,167 stars
baoyu-infographic SKILL.md skill
jimliu/baoyu-skills · skills/baoyu-infographic/SKILL.md · Generate professional infographics with 21 layout types and 22 visual styles. Analyzes content, recommends layout×style…
v1.117.4 · audit A · 27,167 stars

Every file in jimliu/baoyu-skills

Other files named baoyu-compress-image

baoyu-compress-image SKILL.md skill
quriosity-agent/qcut · qcut/.claude/skills/qcut-toolkit/baoyu/baoyu-compress-image/SKILL.md · Compresses images to WebP (default) or PNG with automatic tool selection. Use when user asks to "compress image"…
git:20260305.7e4067d · audit A · 43 stars
baoyu-compress-image SKILL.md skill
quriosity-agent/qcut · qcut/resources/default-skills/qcut-toolkit/baoyu/baoyu-compress-image/SKILL.md · Compresses images to WebP (default) or PNG with automatic tool selection. Use when user asks to "compress image"…
git:20260305.7e4067d · audit A · 43 stars
baoyu-compress-image SKILL.md skill
quriosity-agent/qcut · qcut/.agents/skills/qcut-toolkit/baoyu/baoyu-compress-image/SKILL.md · Compresses images to WebP (default) or PNG with automatic tool selection. Use when user asks to "compress image"…
git:20260525.2b74e19 · audit A · 43 stars

Browse by kind, by grade A, or by owner.