一键导入
go-review
Review Go code against the personal Go guidelines (concurrency and idioms). Use when asked to review, audit, or critique Go changes, or with /go-review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review Go code against the personal Go guidelines (concurrency and idioms). Use when asked to review, audit, or critique Go changes, or with /go-review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | go-review |
| description | Review Go code against the personal Go guidelines (concurrency and idioms). Use when asked to review, audit, or critique Go changes, or with /go-review. |
Review Go code for correctness and adherence to the personal Go guidelines.
Read both files before reviewing and treat them as the standard:
~/.config/go/concurrency.md (goroutine lifecycle, channels, close responsibility, bounded parallelism, data races, sync)~/.config/go/tips_and_tricks.md (declaration idioms, argument order, package layout, interfaces, errors, mutexes, tooling)Also apply the Go rules already in ~/.config/AGENTS.md (table-driven tests, testify, t.Parallel(), error wrapping style, gofumpt -extra, golangci-lint).
Default to the current working changes only. Determine the diff read-only:
git diff origin/main...HEAD for committed work on the branchgit diff and git status for uncommitted workNever run any mutable git command. If a target is given as an argument (a path, package, or ref), review that instead.
go in loops over external input; suggest worker pool or semaphore.-race.fmt.Errorf("doing X: %w", err), no error/failed to prefixes, no panic in library code.ctx context.Context first, error last.defer Unlock, pointer receivers, RWMutex only when justified.Group findings by severity (blocking, should fix, nit). For each: file:line, the issue, and the concrete fix. Cite the relevant guideline section. Be concise. Do not edit files unless explicitly asked.