Agent skill
building-go-binaries
Build Go binaries for local development or release. Use when you need to compile the project, troubleshoot build failures, or understand the build pipeline.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/building-go-binaries
SKILL.md
Building Go Binaries
All commands run from the Go module root (installer/).
Local Development Build
task build
Builds a snapshot binary for the current platform via GoReleaser. Output goes to ./bin/. This is the only command you need for local builds.
How It Works
- Task wraps GoReleaser in snapshot mode (no git tag required, single target)
- GoReleaser config:
.goreleaser.yaml - Task runner config:
Taskfile.yml - Version info is injected via ldflags at build time (see
main.gofor the variables)
When Builds Fail
- Check that
go mod tidyhas been run (GoReleaser runs it as a pre-hook in release mode) - Check for compilation errors in the
go buildoutput - For GoReleaser-specific issues, read
.goreleaser.yamlfor the current configuration
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?