What problem does it solve? Translating an application's packaging analysis into a working snap manifest is error-prone: snapcraft.yaml syntax, interface plugs, layouts, hooks, and OCI-specific concerns like glibc mismatches and merged-/usr layouts all have subtle rules. This Skill reads the structured snap-analysis.json produced by snap-analyzer or snap-oci-analyzer and generates every required file, then runs snapcraft pack and iterates until the build succeeds. ## Core Features & Use Cases - Manifest and hook generation: Writes snap/snapcraft.yaml (core24, snapcraft 8.x), lifecycle hook scripts, and a SNAP_PACKAGING.md guide with build, install, and interface-connection instructions. - OCI rendering mode: When the analysis contains an oci key, it refines the docker-to-snap scaffold in place, rendering platforms, system-usernames, override-build/override-prime steps, content interfaces, and configure/install hooks without ever modifying the container rootfs directly. - Patch mode: When snap-validation-results.json reports failures, it patches the manifest via scripts/patch_snapcraft.py (adding plugs, layouts, or override steps) and rebuilds, supporting the analyze-package-validate loop. - Use Case: After running snap-analyzer on a Go web service, invoke this Skill to produce a complete snap package with strict confinement, the correct plugs, and a tested build, ready for validation. ## Quick Start Package this application as a snap using the snap-analysis.json produced by the analyzer and build it with snapcraft.