一键导入
go-test-coverage
Analyzes Go test coverage and suggests improvements
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyzes Go test coverage and suggests improvements
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Validates Go concurrency patterns
Validates Go context.Context usage patterns
Validates Go error handling patterns
Reviews code for Hexagonal Architecture compliance
Validates Go interface design and abstractions
Performs security review on code changes
基于 SOC 职业分类
| name | go-test-coverage |
| description | Analyzes Go test coverage and suggests improvements |
Coverage numbers are a floor, not a ceiling. A test that executes code but asserts nothing is noise. Semantic coverage is what matters: do your tests catch real bugs? Mutation testing (Gremlins) validates this by introducing small bugs — if your tests pass, they are too weak.
1. [ ] Tests assert specific return values — not just `err == nil` 2. [ ] Table-driven tests for multiple scenarios using `t.Run` 3. [ ] Error branches tested explicitly 4. [ ] Edge cases: empty/nil input, zero values, boundary conditions 5. [ ] Tests deterministic — no `time.Now()`, no global state, no random without seed 6. [ ] Mocks implement port interfaces, not concrete types 7. [ ] Integration tests use `//go:build integration` tag 8. [ ] Coverage ≥80% on `internal/domain` and `internal/app` 9. [ ] Test file naming: `foo_test.go` alongside `foo.go` 10. [ ] `make ci` passes with all tests<mutation_testing>
Run make mutation-test-dry for a fast check. For critical domain code, run make mutation-test: