Golang code style conventions — line length and breaking, variable declarations, control flow clarity, when comments help vs hurt. Use when writing or reviewing Go code, asking about style or clarity, or establishing project coding standards. Not for naming conventions (→ See `samber/cc-skills-golang@golang-naming` skill), linter configuration (→ See `samber/cc-skills-golang@golang-lint` skill), or doc comments (→ See `samber/cc-skills-golang@golang-documentation` skill).
84
81%
Does it follow best practices?
Impact
84%
1.27xAverage score across 3 eval scenarios
Passed
No findings from the security scan
Generic slice search and %q string validator
These are not visible to scoring or included in the download.
/home/agent/go/pkg/mod/cache/lock
Generic type parameter
100%
100%
No any/interface{}
100%
100%
%q in validator errors
100%
50%
Multiple rules use %q
100%
50%
Unexported helpers
100%
80%
Minimal public surface
30%
70%
Early return in validator
100%
100%
No else after return
100%
100%
range loop in search
100%
40%
:= for non-zero values
100%
100%
Idiomatic Go iteration and error-handling patterns
These are not visible to scoring or included in the download.
/home/agent/go/pkg/mod/cache/lock
Range-n in Repeat
0%
100%
Range-n in Retry
0%
0%
Range-over-slice in Process
100%
100%
Range-over-slice in ValidateAll
100%
100%
If-init form in ValidateAll
100%
100%
If-init form in Retry
100%
0%
Early success return in Retry
100%
100%
No else after guard
100%
100%
Go 1.22+ in go.mod
100%
100%
Module name in go.mod
100%
100%
Standard library and lo package for Go collection operations
These are not visible to scoring or included in the download.
/home/agent/go/pkg/mod/cache/download/github.com/samber/lo/@v/list
/home/agent/go/pkg/mod/cache/download/github.com/samber/lo/@v/v1.53.0.info
/home/agent/go/pkg/mod/cache/download/github.com/samber/lo/@v/v1.53.0.lock
/home/agent/go/pkg/mod/cache/download/github.com/samber/lo/@v/v1.53.0.mod
/home/agent/go/pkg/mod/cache/download/github.com/samber/lo/@v/v1.53.0.zip
lo dependency declared
0%
100%
lo imported in source
0%
100%
lo.GroupBy used
0%
100%
lo.Filter or lo.Filter used for FilterInStock
0%
100%
lo.Chunk used
0%
100%
slices package used for sorting
0%
100%
Canonical file order
100%
100%
One primary type per file
100%
100%
Unexported helpers
100%
100%
Explicit slice/map initialization
75%
100%
19a0626
Table of Contents
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.