一键导入
image-compress
Compress images to reduce file size while preserving quality. Use when images are slowing down builds, uploads, or page loads.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Compress images to reduce file size while preserving quality. Use when images are slowing down builds, uploads, or page loads.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Scaffold repo-local Ralph autonomous harness under scripts/ralph/. Use when user runs /flow-next:ralph-init.
Collect, deduplicate, enrich, triage, and convert code comments (TODO/FIXME/HACK/NOTE/OPTIMIZE/SECURITY/DEBT) into structured, dependency-ordered task lists ready for autonomous agents. Use when processing technical debt, converting code notes into tracked work, preparing task backlogs, or generating executable task graphs. Triggers: TODO triage, fixme list, tech debt scan, task extraction, comment analysis.
Converts any MCP server into a standalone skill package with zero runtime dependencies (no MCP process required). Trigger when user says: "convert this MCP to a skill", "I don't want to use MCP anymore", "wrap MCP X as a skill", "MCP is too heavy", "turn MCP capabilities into a skill". Does: connects to MCP server to extract tool schemas, analyzes source code to infer equivalent Bash commands, generates a ready-to-use skill package and registers it with the agent, optionally asks user to remove the original MCP. Does NOT: execute MCP tool calls to complete tasks (that's using MCP, not converting it); wrap existing Bash scripts as skills (use skill-creator); execute MCP business logic. Optional dependency: skill-creator (improves generated SKILL.md quality).
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Creates high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services. Use when building MCP servers to integrate APIs, designing tool schemas, or implementing Python (FastMCP) or TypeScript (MCP SDK) servers. Triggers include "MCP server", "tool schema", "model context protocol", or "FastMCP".
Builds and refactors production-ready Python CLI tools and packages with modern pyproject layouts, uv workflows, and robust testing.
| name | image-compress |
| description | Compress images to reduce file size while preserving quality. Use when images are slowing down builds, uploads, or page loads. |
Compress images to reduce file size with minimal quality loss.
# Using sharp (Node.js)
npx sharp-cli input.png --resize 800 output.png
# Using magick (ImageMagick)
magick input.jpg -quality 85 -resize 1200 output.jpg
# Using cwebp (WebP)
cwebp -q 80 input.png -o output.webp
# Using avifenc (AVIF)
avifenc input.png -o output.avif
# Using Pillow
python3 -c "from PIL import Image; i=Image.open('input.png'); i.save('output.jpg', quality=85, optimize=True)"
# Reduce to max 1200px width, 85% quality
magick input.png -resize 1200x1200/> -quality 85 output.jpg
# All PNGs in directory
for f in *.png; do magick "$f" -quality 85 -resize 1200x1200\> "${f%.png}-compressed.jpg"; done
# WebP with good compression
cwebp -q 80 -resize 1200 0 input.png -o output.webp
| Use Case | Quality | Format |
|---|---|---|
| High quality (screenshots) | 90% | PNG/WebP |
| Photos | 85% | JPEG/WebP |
| Thumbnails | 70% | WebP/AVIF |
| Icons/Logos | Lossless | PNG/WebP |
find . -type f \( -iname "*.png" -o -iname "*.jpg" -o -iname "*.jpeg" \) -size +100k -exec ls -lh {} \;
Inspired by opencode-image-compress - Image compression for OpenCode.