What problem does it solve? Snap packages often ship unused libraries, duplicated files, and build scratch that inflate their size, and manually repacking a .snap is error-prone and unsafe. This Skill reduces snap size exclusively through snapcraft.yaml edits, then rebuilds and verifies the result. ## Core Features & Use Cases - Removal-candidate analysis: Unpacks a prebuilt .snap and reports lint-flagged unused libraries, duplicates against base and content snaps, internal duplicate libs, classic cruft, and over-copied build scratch. - Safe yaml editing patterns: Applies a copy-paste pattern library for cleanup parts, prime exclusions, stage-package trimming, and license-file relocation, with hard rules that never delete license files or extension-injected files. - Rebuild verification: Compares old and new snaps for size delta, file-list diffs, lint changes, and DT_NEEDED soname regressions, then smoke-tests the trimmed snap in a disposable LXD container. - Use Case: A developer's snap is 500 MB because the gnome extension's libraries are staged locally; the Skill dedupes against gnome-46-2404, prunes docs while keeping copyright files, rebuilds, and confirms no library regressions. ## Quick Start Ask the agent to analyze the newest .snap in this repository and shrink it by editing snapcraft.yaml, then rebuild and verify the result.