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 ويثبّتها لك.
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.
استنادا إلى تصنيف SOC المهني
| 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.