What problem does it solve?
It prevents broken Go implementations by forcing a documentation-first specification that can be checked by gates before any code is produced or shipped.
Core Features & Use Cases
- Formatting enforcement: Requires gofmt and goimports to be validated in CI to remove style ambiguity.
- Design and interface constraints: Standardizes interface usage (small interfaces, interface placement) to improve maintainability.
- Production-grade error handling: Requires contextual error wrapping and explicit enumeration of error messages in the spec.
- Mandatory testing patterns: Requires table-driven tests,
-race, and coverage targets to reduce regressions.
- Security and concurrency guardrails: Enforces gosec scanning and
context.WithTimeout for external calls, plus concurrency checks like goroutine leak prevention.
Use case: When building a Go service that calls external APIs and stores data, this Skill ensures the spec defines timeouts, dependencies, error cases, and table-driven tests so verification gates can approve the result.
Quick Start
Activate the golang Skill when you are writing or reviewing .go code and describe your changes as a spec that includes formatting requirements, error cases, security constraints, and table-driven tests.