Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: adaptive-enforcement-lab-claude-skills-packaging3description: Packaging4---56# Packaging78## When to Use This Skill910Packaging a Go CLI involves creating distributable artifacts that run anywhere. This section covers:1112- **[Container Builds](container-builds.md)** - Multi-stage Dockerfiles with distroless13- **[Helm Charts](helm-charts.md)** - Deploy your CLI with Helm14- **[Release Automation](release-automation.md)** - Multi-arch builds and GoReleaser15- **[GitHub Actions](github-actions.md)** - Distribute as a reusable GitHub Action16- **[Pre-commit Hooks](pre-commit-hooks.md)** - Distribute as pre-commit hooks1718---192021## Implementation2223See the full implementation guide in the [source documentation](https://adaptive-enforcement-lab.com/build/go-cli-architecture/).242526## Key Principles2728| Practice | Description |29| ---------- | ------------- |30| **Static binaries** | Use `CGO_ENABLED=0` for portable builds |31| **Non-root user** | Always run as non-root in containers |32| **Read-only filesystem** | Set `readOnlyRootFilesystem: true` |33| **Drop capabilities** | Remove all capabilities with `drop: ALL` |34| **Version in binary** | Inject version at build time |35| **Multi-arch support** | Build for both amd64 and arm64 |3637---3839*Ship binaries that run anywhere Kubernetes runs.*40## References4142- [Source Documentation](https://adaptive-enforcement-lab.com/build/go-cli-architecture/)43- [AEL Build](https://adaptive-enforcement-lab.com/build/)4445---46> Converted and distributed by [TomeVault](https://tomevault.io/claim/adaptive-enforcement-lab) — claim your Tome and manage your conversions.47<!-- tomevault:4.0:skill_md:2026-04-15 -->
Run npx skillmds@latest add tomevault-io/adaptive-enforcement-lab-claude-skills-packaging in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Packaging It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.