Skip to content
Skill

Go build release

Builds reproducible, verifiable Go release binaries with signing and SBOMs

Go build release is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
90
Last commit
License
MIT
Listing updated

Similar skills

About Go build release

This skill guides an agent through producing Go release artifacts that anyone can rebuild and check. It covers version stamping from build info, reproducible builds with trimpath and disabled cgo, cross-compilation for multiple platforms, and a GoReleaser setup that produces checksums, SBOMs and signatures from a tag-triggered pipeline.

The skill also covers supply-chain steps such as cosign keyless signing, SLSA provenance attestations and the verification commands to publish with a release. For containers it explains when to use ko versus a multi-stage Dockerfile on a distroless base, and it sets versioning rules such as never moving published tags and retracting bad releases.

The agent works with the Go toolchain and git, and can run goreleaser for config checks and snapshot dry runs. GoReleaser, cosign, syft and ko are optional and used only when the project adopts them. Detailed reference files cover a full GoReleaser config and supply-chain commands.

When your agent uses it

Build and release Go binaries that are reproducible and verifiable: version stamping, -trimpath builds, cross-compilation, GoReleaser, checksums, SBOMs, cosign signing, build provenance attestations, and container images with ko or a multi-stage Dockerfile. Use when: "release a Go binary", "set up GoReleaser", "cross-compile", "reproducible build", "sign the release", "generate an SBOM", "build provenance", "publish a container image", "version command shows (devel)". Not for: test and lint pipelines (go-ci), shrinking the binary or image (go-binary-size), auditing dependencies (go-dependency-audit).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 3 files (13 KB) on GitHub on 2 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

Download the skill folder from https://github.com/eduardo-sl/go-agent-skills and copy it into your agent's skills folder.

What it does

Version stamping
Shows how to read version and commit from build info or inject them with ldflags.
Reproducible builds
Covers trimpath, pinned toolchains, disabled cgo and checksum comparison across clean builds.
Cross-compilation
Explains building for other GOOS and GOARCH targets and the cgo trade-offs.
GoReleaser automation
Provides a release config for multi-target builds, archives, checksums and dry runs.
Signing and attestations
Covers checksum signing with cosign, SBOM generation and provenance attestations.
Container image publishing
Compares ko builds with multi-stage distroless Dockerfiles and digest referencing.

Good for

  • Set up GoReleaser for a Go CLI with Linux, macOS and Windows builds
  • Make a Go binary build reproducible and compare checksums across clean builds
  • Sign release checksums with cosign and publish verification commands
  • Generate an SBOM and provenance attestation for a Go release
  • Publish a multi-arch Go service container image without a Dockerfile
  • Fix a version command that shows (devel) instead of the release tag

Go build release FAQ

What tools does Go build release need?

It requires the Go toolchain and git. GoReleaser, cosign, syft and ko are optional and used when the project adopts them.

Does Go build release change how I test or lint my Go code?

No. Test and lint pipelines are handled by a separate skill, go-ci, and the skill points there instead.

Does Go build release shrink the binary or container image?

No. Binary and image size are covered by the go-binary-size skill, which this one defers to.

Where should releases be built?

The skill recommends a tag-triggered CI job rather than a local machine, so the build inputs are recorded.

Does Go build release run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Go build release?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Go build release?

The closest alternatives to Go build release are Ci cd, Release changelog harness, Shipping, Release readiness and Deployment patterns.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from eduardo-sl/go-agent-skills

  1. Guides Go agents in designing HTTP REST APIs, handlers, middleware and shutdown

    • Open source
    • 90 GitHub stars
    • Developer tools
  2. Reviews Go project structure, dependency direction and module boundaries

    • Open source
    • 90 GitHub stars
    • Developer tools
  3. Guides an AI agent to build Go command-line tools with clean flags, streams and exit codes

    • Open source
    • 90 GitHub stars
    • Developer tools
  4. Guides Go code toward constructor injection, explicit wiring and no global state

    • Open source
    • 90 GitHub stars
    • Developer tools
  5. Guides Go code toward idiomatic design patterns like functional options and factories

    • Open source
    • 90 GitHub stars
    • Developer tools
  6. Guides building Go GraphQL servers with gqlgen, covering N+1 batching and query limits

    • Open source
    • 90 GitHub stars
    • Developer tools