Go Project CI Setup
Sets up Go projects with CI checks that truly catch problems, fixing common lint, format and toolchain traps.
Claude's review
8/10 Specific Go CI traps (GOTOOLCHAIN matrix, golangci-lint v1/v2 config, empty test gates) plus UTF-8, NaN and dry-run fixes.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Sets up and maintains Go projects with a CI gate that actually gates — module-path correctness, golangci-lint config that matches the installed major version, deterministic gofmt, a pinned toolchain, and meaningful test/lint jobs. Use when creating a Go module, wiring GitHub Actions for Go, debugging a golangci-lint or gofmt CI failure on an unrelated PR, or reviewing a Go CLI that shells out to git/gh.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: building-go-projects
description: Sets up and maintains Go projects with a CI gate that actually gates — module-path correctness, golangci-lint config that matches the installed major version, deterministic gofmt, a pinned toolchain, and meaningful test/lint jobs. Use when creating a Go module, wiring GitHub Actions for Go, debugging a golangci-lint or gofmt CI failure on an unrelated PR, or reviewing a Go CLI that shells out to git/gh.
---
# Go Project Setup & CI
Go's CI is deceptively easy to get *green* and hard to get *correct*. The traps
below all share one failure mode: a job that reports success while proving
nothing, or a config that breaks on a PR that never touched it. Each rule here
comes from a real green-but-wrong (or red-on-unrelated-PR) gate.
## Module path must match the repo URL
`go.mod`'s `module` line and every internal import must use the path users
actually `go install`/`go get`. A stale owner or renamed repo compiles and tests
locally but breaks `go install github.com/<owner>/<repo>@latest` for everyone.
```
module github.com/owner/project // MUST equal the canonical repo URL
```
When you rename it, rename every internal import ref too (`grep -rl old/path`).
It's a mechanical string rename; `go build`/`go vet`/`gofmt` stay clean after.
## Pin the toolchain — `GOTOOLCHAIN=auto` makes a version matrix lie
With the default `GOTOOLCHAIN=auto`, Go silently downloads and switches to the
version in `go.mod`'s `go` directive whenever the installed toolchain is older.
So a CI matrix of `['1.21','1.22','1.23']` against `go 1.24.2` in `go.mod` runs
**1.24.2 in every cell** — the matrix tests nothing it claims to.
Keep them consistent: the `go` directive, the `setup-go` version(s), and the
matrix must agree.
```yaml
# ci.yml — matrix versions must be >= the go.mod directive
strategy:
matrix:
go: ['1.24', '1.25']
...From wdm0006's repository, MIT licence.
Related skills
-
Checked
Incident postmortem writer
Writes blameless incident postmortems with fishbone and five whys analysis, so the team fixes root causes.
7/101 credit -
Checked
AWS Lambda web apps
Builds and deploys Express, Fastify or Hono apps on AWS Lambda web functions, so your site runs serverless.
7/101 credit -
Checked
Grafana synthetic checks
Writes Grafana Cloud synthetic checks in k6 with assertions that really fail, so outages get caught early.
8/101 credit -
Checked
OpenTofu Infrastructure Setup
Sets up OpenTofu infrastructure code with encrypted state, remote locking, tests and a clean move from Terraform.
7/101 credit -
Checked
Synthetic Monitoring Probes
Sets up scheduled checks that test your live site's key journeys around the clock and alert only on real outages.
7/101 credit -
Checked
Your Own Deploy Platform
Turns a plain server into your own deploy platform with Dokku, including databases and certificates.
8/101 credit