.claude/skills/coverage/SKILL.md
Run tests with coverage analysis and identify untested code paths. Use to find gaps before releases.
npx skillsauth add PeterBooker/veloria coverageInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run Go tests with coverage profiling to identify untested code paths.
/coverage - Coverage for all packages/coverage ./internal/repo/... - Coverage for specific packageRun tests with coverage
If $ARGUMENTS specifies a package:
go test -coverprofile=coverage.out -covermode=atomic -timeout 5m $ARGUMENTS 2>&1
Otherwise, run all packages:
go test -coverprofile=coverage.out -covermode=atomic -timeout 5m ./... 2>&1
Generate coverage summary
go tool cover -func=coverage.out 2>&1
Identify low-coverage packages
Parse the output and flag packages below 50% coverage.
Report findings
## Coverage Results
### Package Summary
| Package | Coverage | Status |
|---------|----------|--------|
### Overall
- Total coverage: N%
### Low Coverage (< 50%)
- [packages needing attention]
### Uncovered Functions
- [key uncovered functions in critical packages]
Cleanup
rm -f coverage.out
Pay special attention to coverage in:
internal/repo/ - Data access layerinternal/manager/ - Orchestration logicinternal/index/ - Search indexinginternal/search/ - Search API handlersgo tool cover -html=coverage.out -o coverage.html-tags integration and Docker_test.go) are excluded from coverage automaticallydevelopment
Run Go unit tests. Use after code changes to verify correctness.
development
Run gosec and govulncheck to find security vulnerabilities. Use before releases or after dependency changes.
tools
Trigger reindexing of a specific WordPress extension. Use to rebuild the search index for a plugin, theme, or core version.
development
Run Go race detector to find data races in concurrent code. Use after any change to mutexes, goroutines, or channels.