# Go build release

> Go build release is an open-source agent skill for developer tools. Builds reproducible, verifiable Go release binaries with signing and SBOMs. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/eduardo-sl/go-agent-skills/tree/main/skills/(workflow)/go-build-release
- **Repository:** https://github.com/eduardo-sl/go-agent-skills
- **GitHub stars:** 90
- **License:** MIT
- **Skill name:** go-build-release
- **Collection:** https://github.com/eduardo-sl/go-agent-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

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).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/eduardo-sl/go-agent-skills/tree/HEAD/skills/(workflow)/go-build-release)
- [Asks for: Read, Edit, Write, Glob, Grep, Bash(go:*), Bash(git:*), Bash(goreleaser:*)](https://github.com/eduardo-sl/go-agent-skills/blob/HEAD/skills/(workflow)/go-build-release/SKILL.md)
- [License: MIT](https://github.com/eduardo-sl/go-agent-skills/tree/HEAD/skills/(workflow)/go-build-release)

## Features

- **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

## Install

### Any agent

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

## 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 Go refactoring, Ci cd, Release changelog harness, Go documentation and Go ci.

## Where this comes from

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

## Alternatives

- [Go refactoring](https://ai-powered.com/skills/go-refactoring): Go refactoring is an open-source agent skill for developer tools.
- [Ci cd](https://ai-powered.com/skills/ci-cd): Ci cd is an open-source agent skill for developer tools.
- [Release changelog harness](https://ai-powered.com/skills/release-changelog-harness): Release changelog harness is an open-source agent skill for developer tools.
- [Go documentation](https://ai-powered.com/skills/go-documentation): Go documentation is an open-source agent skill for developer tools.
- [Go ci](https://ai-powered.com/skills/go-ci): Go ci is an open-source agent skill for developer tools.
- [Shipping](https://ai-powered.com/skills/shipping): Shipping is an open-source agent skill for developer tools.
- [Release](https://ai-powered.com/skills/release-marko-php): Release is an open-source agent skill for developer tools.
- [Go observability](https://ai-powered.com/skills/go-observability): Go observability is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/go-build-release
