/google-go-styleguide:guide-reviewfrom google-go-styleguide
Use 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/`.
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 Guide, the canonical and normative document of Google's three-part Go style framework. Each principle and guideline maps to a detailed rule file under principles/ or guidelines/.
[!NOTE] This skill covers the Style Guide only — the foundational, non-negotiable document. The companion skills
decisions-review(concrete decisions) andbest-practices-review(advisory patterns) cover the other two Google Go Style documents.
/google-go-styleguide:guide-reviewThis skill does not auto-activate on .go files. Google's Style Guide is opinionated, and the user should choose when to apply it.
Reviews run as a parallel fan-out of subagents, one per actionable rule. This keeps the main context small and each check focused on a single principle.
[!IMPORTANT] Before any subagent fan-out, ASK the user which model to use for the per-rule 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 file directly in the main thread, no subagents.
actionable rule in the index, dispatch a subagent with:
.md file.go file paths to review<file>:<line> — <one-sentence observation> or the literal string no findingstooling rules, dispatch a single subagent that verifies the tool is configured (e.g. gofmt is in CI / pre-commit / editor) and returns pass/fail — no code findings.philosophical rules entirely — they inform judgment, not findings.If the user asks to check against specific rules ("review for #07 and #09 only"), dispatch only those subagents. Same fan-out pattern, smaller set.
If the user asks about one rule specifically ("explain #01 Clarity" / "does this violate MixedCaps?"), skip the subagent fan-out: load the single rule file directly in the main thread and answer.
| Category | Meaning |
|---|---|
actionable | Generates findings during review |
tooling | Verify the tool is wired up, don't flag code |
philosophical | Informs judgment, no findings emitted |
| # | Principle | Category | Rule file |
|---|---|---|---|
| 01 | Clarity | philosophical | principles/01-clarity.md |
| 02 | Simplicity | philosophical | principles/02-simplicity.md |
| 03 | Concision | philosophical | principles/03-concision.md |
| 04 | Maintainability | philosophical | principles/04-maintainability.md |
| 05 | Consistency | philosophical | principles/05-consistency.md |
| # | Guideline | Category | Rule file |
|---|---|---|---|
| 06 | Formatting (gofmt) | tooling | guidelines/06-formatting-gofmt.md |
| 07 | MixedCaps for multi-word identifiers | actionable | guidelines/07-mixedcaps.md |
| 08 | Line length | actionable | guidelines/08-line-length.md |
| 09 | Naming | actionable | guidelines/09-naming.md |
| 10 | Local consistency | philosophical | guidelines/10-local-consistency.md |
Group findings under each violated rule:
### Rule #N — <short title>
- path/to/file.go:42 — <one-sentence finding>
- path/to/file.go:87 — <one-sentence finding>
See: <principles|guidelines>/NN-<slug>.md
End the review with a summary line: total findings, number of distinct rules violated, files touched.
README.md (opens in a new tab)guidelines/06-formatting-gofmt.md (opens in a new tab)guidelines/07-mixedcaps.md (opens in a new tab)guidelines/08-line-length.md (opens in a new tab)guidelines/09-naming.md (opens in a new tab)guidelines/10-local-consistency.md (opens in a new tab)principles/01-clarity.md (opens in a new tab)principles/02-simplicity.md (opens in a new tab)principles/03-concision.md (opens in a new tab)principles/04-maintainability.md (opens in a new tab)principles/05-consistency.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/`./decisions-reviewUse 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/`.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