| name | go-code-quality |
| description | Run Go repository quality checks and decide which checks apply before story PR readiness. |
| triggers | ["go test","make lint","make vet","Go quality"] |
Go Code Quality
Use this skill in Go repositories. Only run commands that exist in the repository.
Discovery
Check for:
go.mod,
Makefile,
.pre-commit-config.yaml,
golangci-lint config,
- existing test scripts in
scripts/.
Preferred Checks
Run applicable checks in this order:
pre-commit run --all-files
make lint
make vet
make test
go test ./...
If a make target is missing, do not invent it. Fall back to the closest existing command.
Failure Handling
- Fix deterministic failures caused by the current branch.
- Do not hide failures by weakening tests or removing assertions.
- Do not edit generated files directly. Find and run the generator.
- If a failure is unrelated or flaky, capture evidence and let the orchestrator decide retry or escalation.
Output
Report:
- commands run,
- pass/fail result,
- changed files,
- unresolved failures,
- suspected root cause if blocked.