image-compress
Compress images to a target file size using macOS sips. No dependencies required.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Compress images to a target file size using macOS sips. No dependencies required.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyze pi session transcripts to discover patterns that could become AGENTS.md rules, skills, or prompt templates. Mines your usage history for automation opportunities.
Build PR-focused context packs (PR description + git diff + full changed files + related files via Scribe), then budget-fit and token-check with o200k-base.
Review a pull request for bugs, style issues, and guideline compliance. Local review - does not post to GitHub.
Build LLM-ready code dumps with optional docs, then count tokens with tokencount (o200k-base) against a context budget (for example 272k for GPT-5).
Multi-model code review. Runs code-review skill with 3 models in parallel, then synthesizes findings.
Compress videos to a target file size using ffmpeg two-pass encoding. Useful for Discord/Slack upload limits.
| name | image-compress |
| description | Compress images to a target file size using macOS sips. No dependencies required. |
Compress images to a target file size using macOS built-in sips. Works with PNG, JPEG, HEIC, TIFF, and more.
~/dev/pi-skills/image-compress/compress.sh <input> [output] [options]
Options:
--target MB - Target size in MB (default: 5)--width WIDTH - Scale to width (maintains aspect ratio)--format FORMAT - Convert to format: jpeg, png, heic, tiff (default: keep original)--quality 0-100 - JPEG/HEIC quality (default: 85)If no output is specified, creates <input>_compressed.<ext> in the same directory.
# Compress to 5MB (default), auto-resize
compress.sh photo.png
# Target 2MB
compress.sh photo.png out.png --target 2
# Convert to JPEG (often much smaller)
compress.sh photo.png out.jpg --format jpeg
# Specific width
compress.sh photo.png out.png --width 2000
# High quality JPEG
compress.sh photo.png out.jpg --format jpeg --quality 95
Note: Uses decimal MB (1 MB = 1,000,000 bytes) to match Finder.