Test gap finder
Find missing tests for a change. Propose the smallest set that would fail if the new behavior broke. Do not generate a large speculative suite.
Steps
- Read the diff and locate the functions, branches, and error paths that changed.
- Find tests that already call that code. Name the file. If none exist, say so.
- List gaps as behaviors, not as file names: the input, the expected result, and why this change makes it worth a test.
- Mark each gap as now (this PR) or later (pre-existing, not introduced here).
- Validate the list by pointing at the branch or condition in the diff. Drop any gap the current tests already cover.
Example
User: What is untested in the retry helper diff?
Agent: Now — a 429 followed by a 200 should return the success response and record three attempts. Now — a non-retryable 400 should fail on the first attempt. Later — the helper still has no test for a clock that jumps backward. Existing coverage: retry.test.ts only covers the happy path with no status code.
Boundaries
Do not mark a change fully tested because a nearby file has tests. Do not invent a test framework the repo does not use; match the runner already in the project.
Lint report
Score 100. 0 errors, 0 warnings, 0 notes.
skill-lint reported no errors, warnings, or notes.
See also
- repo-maintainer, the agent that bundles this skill
- Git commit writer Dev tools
- PR review notes Dev tools
- Diff risk scan Dev tools
- Changelog from commits Dev tools
- Dependency audit notes Dev tools
- Incident timeline Dev tools
- Migration checklist Dev tools
- AGENTS.md writer Dev tools
References
- Source path skills/dev-tools/test-gap-finder
- SKILL.md 1.5 KB
- Raw SKILL.md
- Download the skill folder
- Agent Skills specification