What the tech

Search

/ opens search from anywhere. Esc closes it.

Tools

Get the newsletter

golang-code-style: a Claude Code skill by Samuel Berthe

For Go developers who want clarity rules a linter cannot enforce, such as early returns and named conditions. Skip it if you want naming or linter setup, which sibling skills cover.

Score
72of 100
Rank
#155of 239
Installs
46.2Kon skills.sh
Security
Clear 4 scanners
Updated
2026
Context
~123tokens always

Install

npx skills add https://github.com/samber/cc-skills-golang --skill golang-code-style

Run it in your terminal. View the source

Using the Claude app rather than Claude Code? You can add a skill there too. How to add it in the app

What does golang-code-style do?

golang-code-style is a skill by samber with Go style rules that need judgment rather than a formatter. It breaks lines past about 120 characters at meaningful points, puts each argument on its own line once a call has four or more, and uses var for zero values and := otherwise. Slices and maps must be initialized, composite literals must name fields, errors return early, and needless else blocks go. Conditions with three or more parts become named booleans. Functions stay short with at most four parameters. For large reviews it splits the work across up to five sub-agents, one per concern, and merges their findings.

When should you use golang-code-style?

Use it when

  • You are reviewing Go code for readability
  • You are setting coding standards for a Go team
  • Nested if-else chains make a function hard to read

Skip it when

  • You need Go naming rules or linter config
  • Your team follows a different Go style guide

What it needs and what it can touch

You need

  • Go installed

What it can do

  • Reads and edits project files
  • Runs shell commands (go, golangci-lint, git)
  • May start sub-agents for large reviews

From reading its instructions, not from running it.

Why it scores 72

Strongest on upkeep (100 of 100), weakest on adoption (49).

  • Adoption35 points 49
  • Upkeep20 points 100
  • Trust20 points 65
  • Quality15 points 100
  • Reader answers10 points Not enough answers yet, so this does not count

How the formula works

Is golang-code-style safe to install?

Every scanner that checked it passed it. Scanners often miss what other scanners catch, and a skill can change after a scan. Read its source before you install it.

ScannerResultDate
Gen Agent Trust HubPassedSep 14, 2026
SocketPassedSep 14, 2026
SnykLow riskSep 14, 2026
ZeroLeaksPassedApr 15, 2026

Details

Installs
46,235
Repository stars
3,824
Last repository change
Tokens always loaded
about 123
Tokens when used
about 2,224
License
MIT
Data confidence
High

Alternatives to golang-code-style

All skills for this job
  • simplify

    For TypeScript and React developers who want freshly written code tidied without behavior changes.

    Score 49 21.4K installs

    Get simplify
  • rust-best-practices

    For Rust developers who want code written and reviewed against Apollo GraphQL's handbook.

    Score 75 22.8K installs Official

    Get rust-best-practices