go-build-and-test
Installation
SKILL.md
Go build and test
Use this skill when a Go repository is failing to build or test and the next move is to verify toolchain state, reproduce the failure across the affected packages, and separate code defects from environment or CI-parity problems.
Use this skill when
go build,go test, or the repository's Go validation command is failing.- A Go CI job fails but local commands appear green.
- Toolchain mismatches, stale
GOROOTorGOTOOLDIRoverrides, orGOPATHconfusion may be loading the wrong standard library or tools. govulncheckreports standard-library findings that may already be fixed in a newer Go patch release.- Tests appear flaky because of platform assumptions, background writes, or
t.TempDir()cleanup races. - A Go test depends on repo fixture files and may be reading local-only or ignored files that CI does not have.
Do not use this skill when
- The real question is about Go error-constructor signatures, covariance, or concrete-vs-interface error design.
- The cause is completely unknown across the system and you need language-agnostic root-cause investigation first.
- The task is mainly about API-boundary validation or schema typing rather than build, test, or toolchain behavior.