CtrlK
BlogDocsLog inGet started
Tessl Logo

golang-code-style

Golang code style, formatting and conventions. Use when writing code, reviewing style, configuring linters, writing comments, or establishing project standards.

91

1.06x
Quality

91%

Does it follow best practices?

Impact

92%

1.06x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Evaluation results

98%

-2%

Inventory Service: Product Catalog Handler

Safe collection initialization and variable declarations

Criteria
Without context
With context

No nil slice returns

100%

100%

No nil map returns

100%

100%

No nil updated IDs slice

100%

75%

Capacity hint from input

100%

100%

No speculative overallocation

100%

100%

Named struct fields

100%

100%

var for zero-value locals

100%

100%

:= for non-zero locals

100%

100%

JSON test: empty slice not null

100%

100%

JSON test: empty map not null

100%

100%

90%

18%

Access Control Service

Control flow clarity and function parameter design

Criteria
Without context
With context

Named booleans in CanAccess

0%

100%

Descriptive boolean names

0%

100%

No else after return in AssignPricingTier

100%

100%

Switch in HandleWebhookEvent

100%

100%

Switch default case

100%

100%

context.Context first

100%

100%

Options struct for SendNotification

100%

100%

Delivery options grouped

100%

100%

Default-then-override in AssignPricingTier

100%

100%

No ≥5 param function signatures

100%

100%

Variable init scope in if

0%

0%

88%

Metrics Report Generator

String handling, code organization, and export discipline

Criteria
Without context
With context

strconv for int conversion

0%

0%

strings.Builder in Generate

100%

100%

No += in loop

100%

100%

fmt.Sprintf for float formatting

100%

100%

Internal helpers unexported

100%

100%

Minimal exported surface

100%

100%

Generic Contains function

100%

100%

Declaration order

100%

100%

Value params for small types

100%

100%

range over index loop

100%

100%

%q in error messages

100%

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.