quietshrink
What it does
This skill lets an AI agent compress video files on Apple Silicon Macs, especially screen recordings. It is for people who need to share large recordings in chat, email, or on GitHub.
When to use it
- βWhen you want a screen recording small enough to send in an email or chat.
- βWhen you need to compress a .mov or .mp4 file without a visible drop in quality.
- βWhen you want to check a video file's details before compressing it.
Skill link
https://github.com/HKUDS/CLI-Anything/blob/main/quietshrink/agent-harness/cli_anything/quietshrink/skills/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βI want to compress my screen recording so I can send it by email without losing quality.β
5 new skills a week. 1 minute to read.
How it works
The agent runs the compression tool, which uses the Mac's hardware video encoder to shrink the file. Quality presets control how much the file is reduced.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Does it work on any Mac?
The skill is made for Apple Silicon Macs, such as the M1 through M4 models, and gives its best results there.
Is it a good fit for camera videos?
Not really. The skill says savings are much smaller on camera footage, because there are fewer repeated frames to remove.
What quality options are there?
There are presets called tiny, transparent, and pristine, from the smallest file to the one closest to the original.
Details
Original description by the author
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
Popularity
- GitHub stars
- 58k
- Ranking position
- #3238
- License
- Apache-2.0
- Updated
- 9/21/2026
Comments
- β¦
More skills from this repository
cli-anything-3mf
58kLets your agent inspect and fix 3D printing files, including finding round holes, resizing them, repairing meshes, and comparing two files.
cli-anything-qgis
58kLets your agent open, edit, and export QGIS map projects from the terminal, including layers, features, print layouts, and processing tools.
cli-anything-adguardhome
58kLets your agent manage AdGuard Home, a network-wide ad blocker, including filters, DNS rewrites, clients, and query logs.
cli-anything-anygen
58kLets your agent generate slides, documents, websites, and diagrams from a written prompt using the AnyGen service.
Similar skills
taste-application
280kHelps your agent create videos in a specific style. It can copy the editing rhythm from a reference video, generate new scenes, adjust colors, and edit everything together with other footage.
taste-distillation
280kLets your agent analyze videos to create a style pack. This includes colors, cutting rhythm, and visual elements that can be reused to create new videos with the same look.
ui-demo
280kHas your agent record polished UI demo videos. Useful for creating tutorials or showing how a web app works.