improve-ut
Improve Unit Test Coverage for New Changes
SKILL.md.claude/skills/improve-ut/SKILL.md
GitHubImprove Unit Tests (UT)
Use this skill to improve test coverage after code changes.
Usage
$improve-ut
Source of Truth
Read and follow these specs first:
.trellis/spec/unit-test/index.md.trellis/spec/unit-test/conventions.md.trellis/spec/unit-test/integration-patterns.md.trellis/spec/unit-test/mock-strategies.md
If this skill conflicts with the unit-test specs, the specs win.
Execution Flow
- Inspect changed files:
git diff --name-only
- Decide test scope using unit-test specs:
- unit vs integration vs regression
- mock vs real filesystem flow
- Add/update tests using existing project test patterns
- Run validation:
npm run lint
npm run typecheck
npm run test
- Summarize decisions, updates, and remaining test gaps.
Output Format
## UT Coverage Plan
- Changed areas: ...
- Test scope (unit/integration/regression): ...
## Test Updates
- Added: ...
- Updated: ...
## Validation
- npm run lint: pass/fail
- npm run typecheck: pass/fail
- npm run test: pass/fail
## Gaps / Follow-ups
- <none or explicit rationale>