CtrlK
BlogDocsLog inGet started
Tessl Logo

golang-code-style

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

1.27x
Quality

81%

Does it follow best practices?

Impact

84%

1.27x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Evaluation results

77%

-16%

Building a Shared Go Utility Package

Generic slice search and %q string validator

The agent wrote 1 file outside the evaluated workspace (Without this skill)

These are not visible to scoring or included in the download.

/home/agent/go/pkg/mod/cache/lock

Criteria
Without this skill
With this skill

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%

75%

-1%

Pipeline Utility Functions

Idiomatic Go iteration and error-handling patterns

The agent wrote 1 file outside the evaluated workspace (With this skill)

These are not visible to scoring or included in the download.

/home/agent/go/pkg/mod/cache/lock

Criteria
Without this skill
With this skill

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%

100%

70%

Product Catalog Package

Standard library and lo package for Go collection operations

The agent wrote 627 files outside the evaluated workspace (With this skill)

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

Criteria
Without this skill
With this skill

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%

Repository
samber/cc-skills-golang
Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents

Is this your skill?

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.