一键导入
go-testing-guidelines
Use this skill when writing tests for Go code to strictly follow the required table-driven test format and organization standards.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use this skill when writing tests for Go code to strictly follow the required table-driven test format and organization standards.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use this skill used to understand the required development workflow, role expectations, and task execution procedure.
Use this skill when writing or refactoring Go code to ensure adherence to project standards regarding code organization, error handling, concurrency, performance, and style.
Generate implementation plans for autonomous agent execution. Use when asked to create structured implementation plans for code changes.
Review and address PR comments for the current branch's pull request. Use when the user wants to handle, triage, or fix PR review feedback. Fetches review comments, plans fixes, confirms with user, implements, and pushes.
| name | go-testing-guidelines |
| description | Use this skill when writing tests for Go code to strictly follow the required table-driven test format and organization standards. |
Consistent, table-driven tests.
func TestSomething(t *testing.T) {
specs := map[string]struct{ ... }{ ... }
for name, spec := range specs {
t.Run(name, func(t *testing.T) { /* ... */ })
}
}
testing.F.f.Add._test.go adjacent.// --- TESTS ---).t.Logf (NO fmt.Printf).t.Helper().testify (require/assert).require.Equal(t, ...) (NO require.New).t.Context() (NO Background/TODO).errors.Is.