
Description
golang-code-style is an agent skill from the samber cc-skills-golang collection that sets out Go code style conventions for a coding agent. It covers the style rules that need human judgment, since linters handle formatting: line length and where to break lines, variable declarations, control flow clarity, and when comments help and when they hurt. The skill says lines beyond about 120 characters must be broken at semantic boundaries rather than at arbitrary columns, and that function calls with four or more arguments take one argument per line. It follows the Go proverb that clear is better than clever, and it asks that when a rule is ignored, a comment explains why. The skill refers to companion skills for naming, design patterns and struct and interface design, all in the same collection. It also describes an orchestration mode, where an agent fans out sub-agents to review independent style concerns across a large codebase and merges their findings. The skill is listed on skills.sh, where the page shows install counts, GitHub stars and security audit results, all of which pass.…
Highlights
- Line length and breaking rules
- Variable declaration guidance
- Control flow clarity
- When comments help and when they hurt
- Multi-agent review of large codebases
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate golang-code-style.
People also visit
golang-code-style FAQ
What does this skill cover?
Go code style rules that need judgment, such as line length, variable declarations, control flow and when to add comments.
What is the line length rule?
There is no rigid limit, but lines beyond about 120 characters must be broken at semantic boundaries, and calls with four or more arguments use one argument per line.
How do I install it?
Run npx skills add https://github.com/samber/cc-skills-golang --skill golang-code-style.
Does it cover naming?
No. The skill points to companion skills in the same collection for naming, design patterns and struct and interface design.
What are the security audit results?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
How popular is it?
The page shows about 42.1K installs, and the repository has 3.5K GitHub stars.
What are the best golang-code-style alternatives?
Popular alternatives to golang-code-style include golang-error-handling, golang-testing and golang-patterns. See all golang-code-style alternatives




