.claude/skills/test/SKILL.md
Run Go unit tests. Use after code changes to verify correctness.
npx skillsauth add PeterBooker/veloria testInstall 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 unit tests with optional package targeting and verbose output.
/test - Run all unit tests/test ./internal/repo/... - Run tests in specific package/test -v ./internal/manager/... - Verbose outputRun tests
If $ARGUMENTS specifies a package, use that:
go test -timeout 5m $ARGUMENTS 2>&1
Otherwise, run all packages:
go test -timeout 5m ./... 2>&1
Parse results
Report:
## Test Results
### Passed
- [list of passed tests]
### Failed
- [list of failed tests with error details]
### Summary
- Total: N | Passed: N | Failed: N | Skipped: N
- Duration: Ns
On failure, read the failing test and corresponding source files to understand the failure, then suggest a fix.
-v for verbose output when debugging specific test failures-run TestName to run a single test-short to skip long-running tests during iteration/race-check instead/integration-test insteaddevelopment
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.
tools
Run CPU and memory profiling with pprof to identify performance hotspots. Use when investigating high resource usage.