From 5fa801633499876db8c591c563b2f5ff5a771918 Mon Sep 17 00:00:00 2001 From: Zihao Xu Date: Sat, 24 Jan 2026 23:29:40 -0800 Subject: [PATCH] docs: add test coverage guidelines to test-validate skill (#99) --- .claude/skills/test-validate/SKILL.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.claude/skills/test-validate/SKILL.md b/.claude/skills/test-validate/SKILL.md index 22a90d0..2d995cd 100644 --- a/.claude/skills/test-validate/SKILL.md +++ b/.claude/skills/test-validate/SKILL.md @@ -18,3 +18,16 @@ description: Run Python tests using the project venv # Run server (dev mode) .venv/bin/python src/server/main.py --dev ``` + +## Test Coverage Guidelines + +After making code changes, consider whether tests are needed: + +| Change Type | Test Recommendation | +|-------------|---------------------| +| Bug fix | Add regression test to prevent recurrence | +| New feature | Unit tests + integration test if affects multiple modules | +| Refactor | Existing tests should pass; add tests if behavior changes | +| Config/docs | Usually no tests needed | + +For bug fixes, ensure the test would have **failed before the fix** and **passes after**.