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
- #141of 200
- Installs
- 45.6Kon 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
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
It can
- 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
- 45,583
- Repository stars
- 3,778
- 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 vercel-react-best-practicesvercel-react-best-practices
For React and Next.js developers who want slow pages and heavy bundles fixed by a ranked rulebook.
-
Get CavemanCaveman
For developers who want terse commit messages, one-line review comments and lower token spend.
-
Get emil-design-engemil-design-eng
For designers and front-end developers who want tuned motion and small touches of polish in web UI.
-
Get security-auditsecurity-audit
For developers who want a source-based security review, from one question up to a full multi-agent audit.