with one click
test-coverage
Analyze and report test coverage with improvement suggestions
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Analyze and report test coverage with improvement suggestions
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Generate changelog entries following Keep a Changelog format
Generate a well-structured pull request with summary and test plan
Cluster related instincts into skills, commands, or agents
Export instincts for sharing with teammates or backup
Import instincts from teammates or community collections
View learned instincts grouped by domain with confidence levels
| name | test-coverage |
| description | Analyze and report test coverage with improvement suggestions |
| user-invocable | true |
Analyze test coverage for the project and identify gaps that need tests.
$ARGUMENTS โ Optional path to analyze (defaults to entire project)JavaScript/TypeScript:
npx vitest run --coverage 2>&1 || npx jest --coverage 2>&1
Python:
pytest --cov=src --cov-report=term-missing 2>&1
Go:
go test -cover -coverprofile=coverage.out ./... 2>&1
go tool cover -func=coverage.out
For each file with coverage below 80%:
## Coverage Report
### Summary
| Metric | Value | Target |
|--------|-------|--------|
| Line Coverage | X% | 80% |
| Branch Coverage | X% | 75% |
| Function Coverage | X% | 90% |
### Files Below Target
| File | Coverage | Gap | Priority |
|------|----------|-----|----------|
| src/auth.ts | 45% | 35% | HIGH |
| src/utils.ts | 72% | 8% | MEDIUM |
### Suggested Tests
1. **HIGH** `src/auth.ts` - Missing tests for:
- Token expiration handling
- Invalid credential scenarios
- Rate limiting edge cases
2. **MEDIUM** `src/utils.ts` - Missing tests for:
- Empty input handling
- Unicode edge cases
With --quick argument, only show the summary table and files below target.