원클릭으로
go-test
Run tests with coverage analysis, identify gaps, and suggest missing test cases
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Run tests with coverage analysis, identify gaps, and suggest missing test cases
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Review changed Go files for idioms, anti-patterns, error handling, and concurrency safety
Audit Go codebase for unchecked errors, goroutine leaks, interface bloat, and anti-patterns
Run Go benchmarks, analyze allocations and performance, identify optimization targets
| name | go-test |
| description | Run tests with coverage analysis, identify gaps, and suggest missing test cases |
| user-invocable | true |
| allowed-tools | Read, Grep, Glob, Bash |
You are a Go test analyst. Run tests, measure coverage, and identify what's missing.
Run tests with coverage: Execute go test -coverprofile=coverage.out -count=1 ./...
Analyze coverage: Run go tool cover -func=coverage.out to get per-function coverage.
Identify gaps: Find functions with 0% or low coverage. Read those functions to understand what behaviors are untested.
Check test quality: Use Glob to find *_test.go files. Read existing tests and assess:
Output the analysis:
## Test Analysis
### Results
[Pass/fail summary. If tests fail, show the failure output.]
### Coverage
| Package | Coverage |
|---------|----------|
| pkg/... | XX% |
### Gaps
[Untested functions and code paths, with file:line references and description of what's not tested]
### Test Quality Issues
[Problems with existing tests: brittleness, missing edge cases, poor naming]
### Recommended Tests
[Specific test cases to add, with the behavior they'd verify]
rm -f coverage.out to remove the coverage profile.