go-code-review

go-code-review is a skill for Claude Code from openshift-eng/ai-helpers. It costs 22 tokens per session (586 once invoked), scanned A, original, Apache-2.0.

A set of code review rules for Go, a programming language, covering idiomatic patterns, test conventions, and build checks.

In plain words
What is it for?
Use it to assess Go code structure, table-driven tests, race safety, naming, error paths, and related review practices.
Why use it?
It gives Go reviews language-aware guidance instead of applying only generic code-quality rules.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the code-review plugin — 4 skills, 2 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/openshift-eng/ai-helpers/go-code-review
Any agent
npx skills add openshift-eng/ai-helpers --skill go-code-review
Clone the repo
git clone --depth 1 https://github.com/openshift-eng/ai-helpers

Made for: Claude Code.

Or install code-review, the plugin that ships this one along with the rest of its 4 skills, 2 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for go-code-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/openshift-eng/ai-helpers/go-code-review.svg)](https://agentmods.dev/skills/openshift-eng/ai-helpers/go-code-review)
Your own site
<a href="https://agentmods.dev/skills/openshift-eng/ai-helpers/go-code-review"><img src="https://agentmods.dev/badge/skills/openshift-eng/ai-helpers/go-code-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 586 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.00586
Opus 5 $0.00011 $0.00293
Sonnet 5 $0.00004 $0.00117
Haiku 4.5 $0.00002 $0.00059

Measured 3d ago against content hash 41a3a55cc5cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

go-code-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/code-review/skills/go-code-review/SKILL.md · 42 lines

How it starts

The opening of the file, as written. The whole thing — 42 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Go Language Review

This skill provides Go-specific guidance for code quality reviews. It is loaded automatically by the pre-commit-review command when --language go is specified or when .go files are detected among the changed files.

When to Use This Skill

Use this skill when reviewing Go source code. Its sections are referenced during the unit test coverage, idiomatic code, and build verification review steps.

Test Conventions

  • Table-driven tests: Prefer table-driven tests for functions with multiple input/output combinations
  • Subtests: Use t.Run() for subtests to provide clear test case identification
  • Parallel tests: Use t.Parallel() at the top of test functions and subtests where tests are independent
  • Race detection: Tests must be compatible with the -race flag — avoid shared mutable state between parallel tests
  • File co-location: Test files must be co-located with source files using the _test.go suffix
  • Test helpers: Use t.Helper() in test helper functions so failure messages report the caller's line number
  • Behavior-focused: Test names should describe behavior, not implementation. Test both success and error paths

Idiomatic Go

Follow the conventions in Effective Go and the Go Code Review Comments wiki. Key reminders:

  • Formatting: All code must be formatted with gofmt. Unformatted code is a blocking issue
  • Naming: Use MixedCaps / mixedCaps. Avoid stuttering (http.Server not http.HTTPServer). Acronyms are all caps (URL, HTTP, ID)
  • Error handling: Check every error. Wrap with fmt.Errorf("context: %w", err) to preserve the chain for errors.Is() / errors.As()
  • Interfaces: Keep interfaces small. Accept interfaces, return concrete types
  • Early returns: Handle error cases first; keep the happy path at the lowest indentation level
  • Context: Pass context.Context as the first parameter to functions that perform I/O or may be long-running

Read the full file on GitHub · 42 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 42 lines · 22 tokens per session scan A 41a3a55cc5cd

Subscribe to this mod's changes

go-code-review is a skill published in the GitHub repository openshift-eng/ai-helpers (116 stars, last pushed 2d ago), licensed Apache-2.0. It adds 22 tokens to every session and 586 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.