Go code review guidelines for the Cog codebase
64
75%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.opencode/skills/go-review/SKILL.mdThis project uses Go for the CLI (cmd/cog/, pkg/) and support tooling (tools/).
golangci-lint runs errcheck, gocritic, gosec, govet, ineffassign, misspell, revive, staticcheck, and unused. Don't flag issues these would catch.
Error handling
pkg/errors.CodedError with error codesfmt.Errorf("failed") with no %w)Imports
github.com/replicate/cog/pkg/...)Testing
testify/require for fatal assertions and testify/assert for non-fatalif checks with t.Fatal/t.ErrorfEqual, Contains, NoError) over True/FalseConcurrency
Docker/container patterns
pkg/dockerfile/ -- template injection risksArchitecture
pkg/cli/, business logic in pkg/pkg/config/4e62b8b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.