go-review

go-review is a skill for Claude Code, Codex from MH4GF/claude-code. It costs 212 tokens per session (1,419 once invoked), scanned A, original, MIT.

A Go change reviewer focused on design rather than routine formatting or type checks. Go is a programming language, and table-driven tests are tests that run many named cases from one shared data table.

In plain words
What is it for?
Use it to review Go diffs for reusable table-driven tests, incorrect boundaries between controllers, adapters, repositories, and domain code, transaction rollback issues, and comment or test-name consistency.
Why use it?
It helps reveal duplicated tests, misplaced responsibilities between application layers, and unsafe transaction boundaries that standard linters may miss.

Skill for Claude CodeCodex

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/mh4gf/claude-code/go-review
Any agent
npx skills add MH4GF/claude-code --skill go-review
Clone the repo
git clone --depth 1 https://github.com/MH4GF/claude-code

Made for: Claude Code, Codex.

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-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/mh4gf/claude-code/go-review.svg)](https://agentmods.dev/skills/mh4gf/claude-code/go-review)
Your own site
<a href="https://agentmods.dev/skills/mh4gf/claude-code/go-review"><img src="https://agentmods.dev/badge/skills/mh4gf/claude-code/go-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 212 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,419 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 $0.00212 $0.01419
Opus 5 $0.00106 $0.00709
Sonnet 5 $0.00042 $0.00284
Haiku 4.5 $0.00021 $0.00142

Measured 5d ago against content hash 7cb2b9bf0e97, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

go-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 5d 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.

user-scope-backup-2026-07-04/skills/go-review/SKILL.md · 88 lines

How it starts

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

go-review

Go の diff から「lint で止められない設計レベル」だけを抽出するレビュー skill。

対象範囲

*.go の追加・変更が対象。次のような Go プロジェクトを想定する

  • golangci-lint v2 中心の厳格な lint 運用 (depguard / forbidigo を含む)
  • adapter/controller / adapter/listener / adapter/repository のような onion 風レイヤ構成

対象外 (lint でカバーされる領域)

レビュー開始前に対象リポの lint / formatter 設定を確認する。これらが既に止める領域は指摘しない。重複指摘は読み手の認知負荷を増やすだけ。

確認すべき設定の例

  • linter — golangci-lint を中心とした構成 (staticcheck / gosec / revive / govet / errorlint 系)
  • フォーマッタ — gofumpt / gci
  • アーキテクチャ制約 — depguard で表現されたパッケージ間 import 規約
  • 固有禁止 API — forbidigo で deny された API 呼び出し
  • 文言 — dupword / misspell

リポ次第で lint が止める一般的な領域

  • import の並び順 / 未使用 import / 未使用変数
  • フォーマット
  • 型整合性
  • err wrap / err 比較の作法
  • レイヤ間 import 違反
  • プロジェクト固有の禁止 API 呼び出し

報告前に再確認する。上の項目に該当する指摘は最終レポートから外す。

観点

Table-driven test への押し戻し

次のパターンを挙げる

  • sibling test — TestXxx_A, TestXxx_B, TestXxx_C のように同 subject の variation を別関数で書いている
  • t.Run を 3-5 個ベタ書きで並べているケース — struct slice + ループに集約できないか確認する

折り畳み後の struct はドメインモデルへ揃えた命名にする (実モデル名と乖離する独自命名があれば別観点として挙げる)。

レイヤ越境疑い

depguard は import の方向だけを止める。次は人 / AI 判断

  • この型は本当に adapter/controller 配下に置くべきか、domain/usecase/ へ出すべきか
  • この関数の置き場として cmd/dispatch/ のどちらが妥当か
  • repository の中に business logic が紛れていないか

責務分離を直接問う形で指摘する。例えば「なぜ通常のハンドラと分けているのか」のように、分割の根拠を要求する。

トランザクション境界

db.WithTx 等で囲うべき複数 query が個別になっていないか。defer tx.Rollback() の置き忘れ。並行更新が起きる場面のテスト有無 — reproducer の不在はレグレッションを誘う (deadlock / race)。

テストケース名 / コードコメントの言語整合

テストケース名 (t.Run("...", ...) の第 1 引数) とコードコメント (// / /* */) は、チームの利用言語に揃える。プロジェクトが日本語運用なら日本語、英語運用なら英語にする。次のパターンを挙げる

  • 日本語チームに英語のテスト名 / コメントが混入している
  • 英語チームに日本語のテスト名 / コメントが混入している

報告フォーマット

次のテンプレで出力する。

## go-review 指摘事項

対象: <files>

- `path/file.go:42` — 現状: <観察> / 問題: <なぜ良くないか> / 提案: <修正案>
- `path/file.go:80` — ...

優先度は付けない。挙げた指摘事項はすべて呼び出し元が対応する前提。該当なしの場合は「指摘事項なし」と書く。でっちあげ禁止。

自分の出力に対する自己チェック

報告前に次を確認する

  • 対象外リストに該当する指摘を書いていないか (特に depguard / forbidigo の領域)
  • 同じ file:line への重複指摘が無いか
  • 「あった方が良い」だけの根拠の弱い指摘を挙げていないか
  • 報告の語彙が日本語の用語規約 (prh.yml 等があれば) に違反していないか

Read the full file on GitHub · 88 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. 5d ago First seen · 88 lines · 212 tokens per session scan A 7cb2b9bf0e97

Subscribe to this mod's changes

go-review is a skill published in the GitHub repository MH4GF/claude-code (2 stars, last pushed yesterday), licensed MIT. It adds 212 tokens to every session and 1,419 once invoked, about $0.0011 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-08-31.

Related

Other skills, from other repositories

golang-testing

Go testing best practices including table-driven tests, test helpers, benchmarking, race detection, coverage analysis, and integration testing patterns. Use when writing or improving Go tests.

affaan-m/ECC · 37 tokens

golang-patterns

Go-specific design patterns and best practices including functional options, small interfaces, dependency injection, concurrency patterns, error handling, and package organization. Use when working with Go code to apply idiomatic Go patterns.

affaan-m/ECC · 45 tokens

ast-grep

Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for…

JanDeDobbeleer/oh-my-posh · 80 tokens

gen-test

Generate idiomatic tests for Go packages and handlers in the Meshery project.

meshery/meshery · 18 tokens

golang-testing

Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI…

samber/cc-skills-golang · 115 tokens

golang-samber-oops

Structured error handling in Golang with samber/oops — error builders, stack traces, error codes, error context, error wrapping, error attributes, user-facing vs developer messages, panic recovery, and logger integration. Apply when using or adopting samber/oops, or when the codebase already imports…

samber/cc-skills-golang · 74 tokens