一键导入
go-code-review
Language-specific review guidance for Go code including idiomatic patterns, test conventions, and build commands
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Language-specific review guidance for Go code including idiomatic patterns, test conventions, and build commands
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate a comprehensive manual testing guide from a Jira issue, GitHub PR URLs, or both. Use when the user wants test steps, a QE test plan, or a testing guide for code changes.
Create Jira issues — story, bug, epic, feature, initiative, task, or feature-request — with CNTRLPLANE, OCPBUGS, GCP, HyperShift, ARO, ROSA conventions and type-specific templates
Generate triage reports and post findings to Jira and Slack
Query and deduplicate open CVE vulnerability issues from OCPBUGS for Node team components
Check whether a Jira issue is well-groomed and ready for /jira:solve
Analyze and compare disruption across one or more Prow CI job runs by examining interval data, audit logs, pod logs, and CPU metrics
| name | go-code-review |
| description | Language-specific review guidance for Go code including idiomatic patterns, test conventions, and build commands |
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.
Use this skill when reviewing Go source code. Its sections are referenced during the unit test coverage, idiomatic code, and build verification review steps.
t.Run() for subtests to provide clear test case identificationt.Parallel() at the top of test functions and subtests where tests are independent-race flag — avoid shared mutable state between parallel tests_test.go suffixt.Helper() in test helper functions so failure messages report the caller's line numberFollow the conventions in Effective Go and the Go Code Review Comments wiki. Key reminders:
gofmt. Unformatted code is a blocking issueMixedCaps / mixedCaps. Avoid stuttering (http.Server not http.HTTPServer). Acronyms are all caps (URL, HTTP, ID)fmt.Errorf("context: %w", err) to preserve the chain for errors.Is() / errors.As()context.Context as the first parameter to functions that perform I/O or may be long-runningUse the following commands in priority order during build verification:
make test if a Makefile with a test target exists; otherwise go test -race ./...make verify if available; otherwise go vet ./...make build if available; otherwise go build ./...