본문으로 건너뛰기
cccskills
무료GitHub에 공개

baoyu-compress-image

Reduce image file sizes by compressing individual files or whole folders into WebP, PNG, or JPEG. The skill selects an available compression tool automatically and lets you control quality, include subfolders, and choose whether to keep originals.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

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.

설치 방법 보기

이럴 때 유용합니다

  • Converting images to WebP
  • Compressing a folder and its subfolders
  • Adjusting compression quality
  • Keeping originals while creating compressed copies

포함된 파일(2)

  • SKILL.md2.4 KB
  • scripts/main.ts9.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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.

ScriptPurpose
scripts/main.tsImage compression CLI

Preferences (EXTEND.md)

Check EXTEND.md in priority order — the first one found wins:

PriorityPathScope
1.baoyu-skills/baoyu-compress-image/EXTEND.mdProject
2${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-compress-image/EXTEND.mdXDG
3$HOME/.baoyu-skills/baoyu-compress-image/EXTEND.mdUser home

If none found, use defaults.

EXTEND.md supports: Default format, default quality, keep-original preference.

Usage

${BUN_X} {baseDir}/scripts/main.ts <input> [options]

Options

OptionShortDescriptionDefault
<input>File or directoryRequired
--output-oOutput pathSame path, new ext
--format-fwebp, png, jpegwebp
--quality-qQuality 0-10080
--keep-kKeep originalfalse
--recursive-rProcess subdirsfalse
--jsonJSON outputfalse

Examples

# 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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Analyze an article, choose where illustrations would help, and generate images with consistent types, styles, and colors. Save the illustration plan and prompts, then insert image references into the article's Markdown.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Add illustrations where an article needs visual support
  • Illustrate tutorial steps and workflows
  • Create comparison images using article-specific details
JimLiu/baoyu-skills2.7만2026년 9월 11일 업데이트

Turn educational topics or biographies into original comics with planned panels and recurring characters. Choose an art style, mood, and layout, then produce storyboards, image prompts, illustrated pages, and a combined PDF.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Explaining a learning topic through a comic
  • Turning a person's biography into a comic
  • Creating a four-panel tutorial comic
JimLiu/baoyu-skills2.7만2026년 9월 11일 업데이트

Create article cover images based on the topic and tone of the text. Choose the composition, colors, rendering style, text amount, and mood, with reference images and aspect ratios to guide the result.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Creating a cover image for a blog article
  • Making a cover with a title and subtitle
  • Matching a cover to reference colors or composition
JimLiu/baoyu-skills2.7만2026년 9월 11일 업데이트

Generate text and images through a reverse-engineered Gemini Web API, an interface reconstructed from the web service. Use reference images for descriptions or variations, and continue conversations across requests with saved sessions.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Generating images from written prompts
  • Describing the contents of reference images
  • Creating variations from an existing image
JimLiu/baoyu-skills2.7만2026년 9월 11일 업데이트

Save X posts, threads, and Articles as Markdown with source and author details. Images and videos can also be downloaded locally. Conversion uses an unofficial API and requires consent before use.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Saving an X post with its source details
  • Archiving a thread as Markdown
  • Extracting the full text of an X Article
JimLiu/baoyu-skills2.7만2026년 9월 11일 업데이트

Turn system structures, processes, and concepts into dark-themed diagrams. Create architecture diagrams, flowcharts, timelines, and other visual explanations as scalable SVG files, with PNG versions for use as images.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Explain system components and their connections
  • Map process steps and decision branches
  • Show interactions in chronological order
JimLiu/baoyu-skills2.7만2026년 9월 11일 업데이트

JimLiu의 스킬 모두 보기

이 스킬의 문제 신고