Golang Code Style
Judgment-based Go style rules (control flow, declarations, nesting) linters can't enforce.
Test report
- Verdict
- Tested · Works
- Score
- Tested
- Jul 20, 2026
- Environment
- Claude Code 2.x (agent harness)
- Upstream re-checked
- Aug 10, 2026 · f0ece7b
Fetched the repo tree (46 SKILL.md skills in a plugin monorepo) and read skills/golang-code-style/SKILL.md plus its referenced references/details.md — both present, frontmatter parses with name+description, no hardcoded paths or exfiltration/base64/curl-pipe patterns. Self-contained prompt guidance; on the refactor task the skill produced three specific wins the baseline missed (default-then-override switch, named booleans, explicit map init to avoid nil-map panic/JSON null), while correctly deferring naming and lint-config queries to sibling skills.
Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works
- Installs cleanly 5/5
- Triggers reliably 5/5
- Output vs. baseline 8/10
- Docs & honesty 5/5
What Golang Code Style does
A prompt-only Go style guide covering the clarity decisions gofmt/linters can't make: early returns, default-then-override switches over else-if chains, named booleans for multi-operand conditions, explicit slice/map initialization, and options structs over long parameter lists. Triggers when writing or reviewing Go code, asking about style/clarity, or setting team coding standards; explicitly defers naming, lint config, and doc comments to sibling skills.
How to install Golang Code Style
Install the plugin (part of samber/cc-skills-golang), or copy skills/golang-code-style/ (SKILL.md + references/details.md) into your .claude/skills/ directory. Pure prompt guidance — no runtime beyond an optional `go` toolchain for linter enforcement.
Skills live in ~/.claude/skills/ (global) or .claude/skills/
(per-project). Restart Claude Code after installing.
Commands — how to trigger Golang Code Style
-
/golang-code-styleJudgment-based Go style rules (control flow, declarations, nesting) linters can't enforce.
It also activates on plain-language prompts like these:
-
Review this Go file for style conventions -
Clean up variable declarations in this function -
Establish our team's Go coding standards
Frequently asked questions
- Is the Golang Code Style skill free?
- Yes. The skill itself is free from samber/cc-skills-golang. SkillProof publishes the install command and an independent test verdict at no cost.
- Does Golang Code Style work with Claude Code?
- We tested it with Claude Code 2.x (agent harness) on Jul 20, 2026. Verdict: Tested · Works. Fetched the repo tree (46 SKILL.md skills in a plugin monorepo) and read skills/golang-code-style/SKILL.md plus its referenced references/details.md — both present, frontmatter parses with name+description, no hardcoded paths or exfiltration/base64/curl-pipe patterns. Self-contained prompt guidance; on the refactor task the skill produced three specific wins the baseline missed (default-then-override switch, named booleans, explicit map init to avoid nil-map panic/JSON null), while correctly deferring naming and lint-config queries to sibling skills.
- What is the Golang Code Style SkillProof Score?
- 9.2/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 8/10, docs & honesty 5/5.
- How do I install Golang Code Style?
- Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
- Can I use Golang Code Style with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
- The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.