/google-go-styleguide:decisions-reviewfrom google-go-styleguide
Use when reviewing Go code against Google's Go Style Decisions (the normative-but-subordinate document of opinionated style choices — naming, commentary, imports, errors, language constructs, common libraries, and test failures). Activates only on explicit request ("review with Google Go Style Decisions", "/google-go-styleguide:decisions-review") — does NOT auto-trigger on `.go` files. Findings are grouped by section, each tied to a detailed file in `sections/`.
Ships in google-go-styleguide. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Code review skill based on Google's Go Style Decisions — the second of Google's three Go style documents. Decisions is normative but not canonical: it's where Google readability mentors apply most concrete feedback, and it's subordinate to the Style Guide when conflicts arise.
[!NOTE] This skill covers the Style Decisions only. The companion skills
guide-review(the canonical foundational document) andbest-practices-review(advisory patterns) cover the other two Google Go Style documents.
/google-go-styleguide:decisions-review#initialisms, #in-band-errors) — load the matching section file and answerThis skill does not auto-activate on .go files. Decisions is opinionated, and the user should choose when to apply it.
Reviews run as a parallel fan-out of subagents, one per section (not one per individual rule). Each section file groups all the related decisions for one topic — so each subagent reasons coherently about (e.g.) all naming decisions together, instead of fragmenting tightly coupled rules across separate dispatches.
[!IMPORTANT] Before any subagent fan-out, ASK the user which model to use for the per-section subagents:
opus(highest quality, slowest),sonnet(balanced), orhaiku(cheapest, fastest). Wait for their answer — do not pick for them. Pass the chosen model name to every dispatched subagent via the Task tool'smodelparameter.Skip this step only for the Single-rule question flow below — it loads one section file directly in the main thread, no subagents.
actionable section in the index, dispatch a subagent with:
sections/NN-*.md file.go file paths to review<file>:<line> — <rule-anchor> — <one-sentence observation> or the literal string no findingsIf the user asks to check against a specific section ("review for naming and errors only") or specific rules ("only check #getters and #in-band-errors"), dispatch only the relevant section subagents — and instruct each subagent to focus on the requested rules within its file.
If the user asks about one rule specifically ("explain #receiver-names" / "does this code violate #dot-imports?"), skip the subagent fan-out: load the single section file directly in the main thread and answer.
| Category | Meaning |
|---|---|
actionable | Generates findings during review |
philosophical | Informs judgment, no findings emitted |
(Decisions has no tooling rules — the only tooling rule in the Style Guide framework is #06 Formatting / gofmt, covered by sibling skill guide-review.)
Every section file covers all the decisions in that section, with anchors matching the source doc. Use <file>#<rule-anchor> to reference a specific decision.
#underscores — Underscores#package-names — Package names#receiver-names — Receiver names#constant-names — Constant names#initialisms — Initialisms#getters — Getters#variable-names — Variable names#repetition — Repetition#comment-line-length — Comment line length#doc-comments — Doc comments#comment-sentences — Comment sentences#examples — Examples#named-result-parameters — Named result parameters#package-comments — Package comments#import-renaming — Import renaming#import-grouping — Import grouping#import-blank — Import "blank"#import-dot — Import "dot"#returning-errors — Returning errors#error-strings — Error strings#handle-errors — Handle errors#in-band-errors — In-band errors#indent-error-flow — Indent error flow#literal-formatting — Literal formatting#literal-matching-braces — Matching braces#cuddled-braces — Cuddled braces#zero-value-fields — Zero-value fields#nil-slices — Nil slices#indentation-confusion — Indentation confusion#func-formatting — Function formatting#conditional-formatting — Conditionals and loops#copying — Copying#dont-panic — Don't panic#must-functions — Must functions#goroutine-lifetimes — Goroutine lifetimes#interfaces — Interfaces#generics — Generics#pass-values — Pass values#receiver-type — Receiver type#switch-and-break — Switch and break#synchronous-functions — Synchronous functions#type-aliases — Type aliases#use-q — Use %q#use-any — Use anysections/06-common-libraries.md
#flags — Flags#logging — Logging#contexts — Contexts#cryptorand — crypto/rand#assertion-libraries — Assertion libraries#identify-the-function — Identify the function#identify-the-input — Identify the input#got-before-want — Got before want#full-structure-comparisons — Full structure comparisons#compare-stable-results — Compare stable results#keep-going — Keep going#types-of-equality — Equality comparison and diffs#level-of-detail — Level of detailGroup findings under each section, with the rule anchor noted on each finding:
### Section #N — <section name>
- path/to/file.go:42 — `#rule-anchor` — <one-sentence finding>
- path/to/file.go:87 — `#other-anchor` — <one-sentence finding>
See: sections/NN-<slug>.md#<rule-anchor>
End the review with a summary line: total findings, number of distinct rules violated, files touched.
README.md (opens in a new tab)sections/01-naming.md (opens in a new tab)sections/02-commentary.md (opens in a new tab)sections/03-imports.md (opens in a new tab)sections/04-errors.md (opens in a new tab)sections/05-language.md (opens in a new tab)sections/06-common-libraries.md (opens in a new tab)sections/07-test-failures.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/best-practices-reviewUse when reviewing Go code against Google's Go Best Practices (the auxiliary, non-canonical advisory document with pragmatic guidance for naming, error handling, documentation, variable declarations, function argument lists, complex CLIs, and tests). Activates only on explicit request ("review with Google Go Best Practices", "/google-go-styleguide:best-practices-review") — does NOT auto-trigger on `.go` files. Findings are advisory ("should") rather than prescriptive ("must"); grouped by section, each tied to a detailed file in `sections/`./guide-reviewUse when reviewing Go code against Google's Go Style Guide (the canonical, normative document). Activates only on explicit request ("review with Google Go Style Guide", "/google-go-styleguide:guide-review") — does NOT auto-trigger on `.go` files. Flags violations and groups findings by rule, each tied to a detailed file in `principles/` or `guidelines/`.Other plugins' skills for the same job
google-go-styleguide@andrsj-skills is listed by andrsj/andrsj-skills — review the source before installing
npx claudepluginhub andrsj/andrsj-skills --plugin google-go-styleguide