Skill / SKILL.md

Go Binary Size

eduardo-sl/go-agent-skills

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. Trigger examples: "binary is too big", "shrink the binary", "reduce image size", "strip symbols", "what is making my binary large", "ldflags -s -w". Not for: runtime speed and allocations (go-performance-review), CI setup (go-ci), release pipelines and signing (go-build-release), dependency CVEs (go-dependency-audit).
2 views 90 repository stars 0 commentsUpdated Nov 28, 2026
Overview

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. Trigger examples: "binary is too big", "shrink the binary", "reduce image size", "strip symbols", "what is making my binary large", "ldflags -s -w". Not for: runtime speed and allocations (go-performance-review), CI setup (go-ci), release pipelines and signing (go-build-release), dependency CVEs (go-dependency-audit).

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/eduardo-sl/go-agent-skills' skill-source

Use the complete skill-source/skills/(workflow)/go-binary-size directory with your client’s skill installer.

  • skills/(workflow)/go-binary-size

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/(workflow)/go-binary-size

Compatibility & requirements

Declared compatibility

Designed for Claude Code or similar AI coding agents working on Go projects. Requires the Go toolchain. upx and go-size-analyzer are optional.

Declared tools

Read Edit Write Glob Grep Bash(go:*) Bash(gofmt:*) Bash(strip:*) Bash(upx:*) Bash(gsa:*)

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
46365ec0d86ba323e9363a955030de1995dab6884c681af77591b0050ecdaeb8
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills