Reduce the size of compiled Go binaries and container images: linker flags, inlining budget, CGO and build tags, embedded assets, dependency weight, and measuring what actually costs bytes. Use when a binary or image is too large, when shrinking a CLI for distribution, or when auditing what a dependency adds to the build.
Install
npx skills add eduardo-sl/go-agent-skills --skill go-binary-sizenpx skills add eduardo-sl/go-agent-skills --skill go-binary-size -a claude-code -gnpx skills add eduardo-sl/go-agent-skills --skill go-binary-size -a codex -ggemini skills install https://github.com/eduardo-sl/go-agent-skills.git --path 'skills/(workflow)/go-binary-size'gh skill install eduardo-sl/go-agent-skills go-binary-sizegit clone --depth 1 https://github.com/eduardo-sl/go-agent-skills /tmp/eduardo-sl__go-agent-skills
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R '/tmp/eduardo-sl__go-agent-skills/skills/(workflow)/go-binary-size' ~/.claude/skills/go-binary-size # Claude Code
cp -R '/tmp/eduardo-sl__go-agent-skills/skills/(workflow)/go-binary-size' ~/.agents/skills/go-binary-size # Codex, Cursor, Gemini CLI, Copilot, OpenCode