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).
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.
| Scanner | Result | Date |
|---|---|---|
| Gen Agent Trust Hub | Passed | Sep 14, 2026 |
| Socket | Passed | Sep 14, 2026 |
| Snyk | Low risk | Sep 14, 2026 |
| ZeroLeaks | Passed | Apr 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
Did it do the job for you?
Alternatives to golang-code-style
All skills for this job-
Get simplifysimplify
For TypeScript and React developers who want freshly written code tidied without behavior changes.
-
Get rust-best-practicesrust-best-practices
For Rust developers who want code written and reviewed against Apollo GraphQL's handbook.