test-code — coverage where it counts
Add and run code-level tests with the project's own runner (Jest/Vitest/pytest/go test/…). Part of
the wf-tester team. This pass doesn't need the QA engine — it works in the repo, so it composes the
existing SKULL guardrails rather than reinventing them.
Reuse, don't reinvent
cap-tdd— for any new behavior: red (failing test) → green (make it pass) → refactor. Never weaken a test to go green.testmedic— when the suite is flaky: detect via reruns, quarantine honestly, root-cause the non-determinism.wf-codebase-audit— surfacesTESTfindings (untested critical paths, wrong tests) across the repo.guardian— the honesty gate: blocks skipped/weakened tests and false "done" claims.
What to cover
- Detect the stack + runner — read the manifest and existing tests; use the same framework and conventions.
- Critical paths first — the code that would hurt most if it broke: money/auth/data-write/permission checks, core domain logic, error handling.
- Edge cases — boundaries, empty/null, failure injection, concurrency where it applies.
- Coverage as a signal, not a target — chase the untested risky lines, not a percentage. Report the gaps you deliberately left.
How
- Run the existing suite first (
npm test/pytest/go test ./...) and record the baseline. - Add tests pass by pass; keep each test independent and deterministic.
- Feed results into the run so they show up in
skull.htmlalongside the other lanes (write a small
CTRF or a summary the skull-dashboard skill can read from .skull/qa/).
Output
Tracked findings for untested critical paths, a short coverage-gap note, and green new tests — never a
green suite bought by deleting assertions.