A Claude Code skill that generates a real test suite for new or changed code. Covers happy path, boundaries, failure modes, abuse cases, idempotency, and regression anchors. Matches your project's existing test framework + conventions.
- Happy path — does it do the thing
- Input boundaries — min, max, edge values, null/undefined, wrong type
- Failure modes — dependency down, malformed input, empty results
- Security & abuse — SQL injection, prompt injection, path traversal, oversized input, unicode
- Idempotency & side effects — runs once on success, doesn't fire on failure
- Regression anchors — bug-fix tests, "old behavior still works" tests
git clone https://github.com/matthewkim323/testwrite ~/.claude/skills/testwritetestwrite src/auth.ts # all public functions in that file
testwrite src/auth.ts:validateJWT # one specific function
testwrite --diff # tests for everything in git diff HEAD
testwrite --minimal # fast: happy + 1 failure + 1 boundary per fn
testwrite --comprehensive # all categories + property-based fuzzing
testwrite --integration # integration tests instead of unit (skip mocks)
testwrite --framework pytest # override auto-detection
Or just say "write tests for X" / "test this file" / "cover this with tests".
- Run before
/prodcheck— CHECK 7 in prodcheck flags missing test coverage. testwrite fixes that. - Run before
/prwrite— your PR description's Testing section will read honestly because you actually wrote tests.
MIT.