quietshrink
它能做什么
这个技能让 AI 智能体在 Apple Silicon Mac 上压缩视频文件,尤其是屏幕录制。适合需要在聊天、邮件或 GitHub 中分享大型录制文件的人。
适用场景
- ✓当你想把屏幕录制压缩到足够小,以便通过邮件或聊天发送的时候。
- ✓当你需要压缩 .mov 或 .mp4 文件,而画质没有明显下降的时候。
- ✓当你想在压缩前检查视频文件的详细信息的时候。
技能链接
https://github.com/HKUDS/CLI-Anything/blob/main/quietshrink/agent-harness/cli_anything/quietshrink/skills/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我压缩屏幕录制,这样我可以通过邮件发送,同时不损失画质。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体运行压缩工具,它使用 Mac 的硬件视频编码器来缩小文件。画质预设控制文件缩小的程度。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
quietshrink — Agent Skill
You have access to cli-anything-quietshrink, a CLI for compressing video files on macOS Apple Silicon. It uses the Media Engine (hardware HEVC encoder), not the CPU, so encoding is fast and silent.
When to use it
- User wants to compress a screen recording, screencast, or any .mov/.mp4 file
- File is too large to share (chat, email, GitHub)
- Need smaller files but cannot tolerate visible quality loss
- Apple Silicon Mac (M1/M2/M3/M4) — best results
Don't use this on non-screen content (camera footage, vlogs) — savings will be much smaller because there are no duplicate frames to drop.
Commands
# Compress with default transparent quality
cli-anything-quietshrink compress <input> [output]
# Compress with specific preset
cli-anything-quietshrink compress -q tiny <input> # smallest
cli-anything-quietshrink compress -q transparent <input> # default, visually lossless
cli-anything-quietshrink compress -q pristine <input> # near-source quality
# Inspect a file before compressing
cli-anything-quietshrink probe <input>
# List quality presets
cli-anything-quietshrink presets
# Verify environment
cli-anything-quietshrink doctor
All commands accept --json for machine-readable output.
Quality presets
| Preset | q | Typical reduction | SSIM | Use case |
|---|---|---|---|---|
tiny |
50 | ~90% | ~0.95 | Chat/email — small artifacts OK |
balanced |
55 | ~88% | ~0.99 | Docs/sharing — high quality |
transparent (default) |
60 | ~87% | ~0.99+ | Anything important — visually lossless |
pristine |
70 | ~84% | ~0.997 | Archival — near-source |
JSON output schema
compress returns:
{
"input": "/path/to/input.mov",
"output": "/path/to/output.mov",
"input_size": 105952129,
"output_size": 12345678,
"saved_bytes": 93606451,
"saved_percent": 88.3,
"duration_seconds": 193.3,
"elapsed_seconds": 87,
"encoding_speed": "2.2x",
"quality_preset": "transparent",
"q_value": 60,
"gop": 600
}
probe returns:
{
"path": "...",
"size_bytes": 105952129,
"size_mb": 101.04,
"codec": "h264",
"width": 3024,
"height": 1964,
"framerate": "120/1",
"duration_seconds": 193.31
}
Decision flow for agents
User wants to share a recording
├─ Is it on Apple Silicon Mac? → use quietshrink
│ ├─ For chat/email/quick share → -q tiny
│ ├─ For docs/important sharing → -q transparent (default)
│ └─ For archival/editing → -q pristine
└─ Not on Mac? → falls back to software, less efficient
Before processing, run doctor to verify environment.
For unfamiliar files, run probe to understand resolution/codec/duration.
Errors and recovery
ffmpeg not found→brew install ffmpeghevc_videotoolbox not available→brew reinstall ffmpegcompression_failed→ check input file isn't corrupted; try--verbosemode to see ffmpeg errors
Source
- Main repo: https://github.com/achiya-automation/quietshrink
- Bash CLI:
quietshrinkcommand (via the install script) - Why this approach works: see WHY.md
常见问题
它能在任何 Mac 上使用吗?
该技能专为 Apple Silicon Mac 设计,例如 M1 到 M4 机型,在这些机器上效果最好。
它适合摄像机拍摄的视频吗?
不太适合。该技能说明,在摄像机素材上节省的空间要少得多,因为可以删除的重复帧较少。
有哪些画质选项?
有名为 tiny、transparent 和 pristine 的预设,从最小文件到最接近原始画质的都有。
详情
作者的原始描述
Compress macOS screen recordings with zero CPU stress using Apple Silicon's hardware HEVC encoder. Typically reduces file size 70-90% while staying visually lossless. Computer stays silent during encoding.
repo: HKUDS/CLI-Anything
热度
- GitHub 星标
- 58k
- 排名
- #3238
- 许可证
- Apache-2.0
- 更新时间
- 2026/9/21
评论
- …
同一仓库的更多技能
cli-anything-3mf
58k帮你的智能体检查和修复 3D 打印文件,包括查找圆孔、调整孔径、修复网格,以及比较两个文件。
cli-anything-qgis
58k帮你的智能体在终端中打开、编辑和导出 QGIS 地图项目,包括图层、要素、打印布局和处理工具。
cli-anything-adguardhome
58k帮你的智能体管理 AdGuard Home,这是一款全网络广告拦截器,可管理过滤规则、DNS 重写、客户端和查询日志。
cli-anything-anygen
58k帮你的智能体借助 AnyGen 服务,根据文字提示生成幻灯片、文档、网站和图表。