ワンクリックで
go-code-reviewer
Reviews modified Go files against Effective Go, Code Review Comments, Test Comments, and Google Go Style guidelines
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Reviews modified Go files against Effective Go, Code Review Comments, Test Comments, and Google Go Style guidelines
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | go-code-reviewer |
| description | Reviews modified Go files against Effective Go, Code Review Comments, Test Comments, and Google Go Style guidelines |
| argument-hint | ["ref"] |
| context | fork |
| model | sonnet |
| allowed-tools | Bash(git diff*) Bash(git status*) Bash(git show*) Bash(git log*) Read Glob Grep |
Review all Go files modified in the current working tree (or against an optional git ref) for adherence to Go best practices.
Identify changed Go files
$ARGUMENTS is provided (e.g. HEAD~1, main), run:
git diff --name-only $ARGUMENTS -- '*.go'git diff --name-only HEAD -- '*.go' and git diff --name-only -- '*.go'
(combine, deduplicate).go files are found, report "No Go files modified."For each changed .go file
git diff $ARGUMENTS -- <file> (or git diff HEAD -- <file> if no ref)Output a structured report
## <file path>
### Issues
- **[Category]** Description of issue.
*Guideline:* Relevant rule from Effective Go / Code Review Comments / Test Comments / Google Style.
*Location:* line N or function `Foo`
*Suggestion:* Concrete fix.
### Looks Good
- (Note anything notably well-done, if applicable)
If no issues found in a file, write "No issues found."
Summary — End with a brief summary: total files reviewed, total issues found, and the most critical ones.
Focus on issues in the changed lines (diff), but note systemic issues across the whole file when relevant. Do not comment on formatting — gofmt is enforced automatically by project hooks.
Key areas to check (see resource files for full details):
_ = err), capitalized or punctuated error strings, missing %w for wrappingURL not Url), receiver names (short abbreviation, not self/this), package name repetition, meaningless package namest.Helper() in helpers, fragile error-string matchingLoad these files for the detailed rules when reviewing:
*_test.go files