Test Gap Analyzer
Identify missing unit, integration, regression, and edge-case test scenarios for recently changed code.
Use when changed code needs missing unit, integration, regression, and edge-case scenarios identified.
Inputs
- changed files or diff summary
- current tests covering those files
- known product edge cases or failure reports
Outputs
- Missing test scenarios
- Risk ranking
- Suggested next tests
Before you begin
- Reading and copying the procedure require no terminal setup. Check requirements for any packaged programs separately.
Try this first
Read the procedure and supply its documented inputs. Use the full text in an agent app or chat that supports pasted instructions, following that host's guidance.
Limits for this step
- Instruction package only; it does not provide or authorize an executable runtime capability.
- Safe for inspection and recommendation; require human approval before broadening test scope or changing suites.
Read full instructionsHide full instructions
Test Gap Analyzer
When to use
- Use after a code change when you want to know what tests are still missing.
- Use during PR review to assess test completeness.
- Use when failures hint at an untested edge case.
Inputs required
- changed files or diff summary
- current tests covering those files
- known product edge cases or failure reports
Workflow
- Inspect changed code paths and existing tests.
- Map missing coverage by scenario type: unit, integration, regression, negative path, and edge case.
- Assess assertion quality and setup realism.
- Prioritize missing tests by defect risk.
- Suggest next tests in a deterministic structure.
Output format
- Coverage Summary
- Missing Scenarios
- Weak Assertions
- Highest-Risk Gaps
- Recommended Next Tests
Guardrails
- Do not invent coverage data that was not observed.
- Separate code-risk analysis from measured test coverage.
- Tie each suggested scenario to specific code behavior.
- Escalate if no tests are available to inspect.
Failure modes
- If tests are absent, label the change as high-risk.
- If fixtures are incomplete, call out the exact missing setup.
- If code behavior is ambiguous, mark confidence as low.
View file metadata
---
name: test-gap-analyzer
description: Review changed code and current tests to identify missing
scenarios, weak assertions, and regression blind spots.
---Install instruction files
These commands copy guidance into the selected runtime directories. Confirm that your agent app discovers it. Any packaged programs need separate setup and verification.
Install (Codex)
./bin/skills-hub install engineering/[email protected] --runtime codex
Install (Claude)
./bin/skills-hub install engineering/[email protected] --runtime claude
Install (Generic)
./bin/skills-hub install engineering/[email protected] --runtime generic --target ./my-agent/skills