What problem does it solve?
This Skill helps you find why a codebase is missing test coverage and then close those gaps with the right fix, whether that means adding tests, mocking dependencies, or refactoring code to make it testable.
Core Features & Use Cases
- Coverage Analysis: Locates the weakest files and uncovered paths using the project’s own coverage tooling.
- Targeted Remediation: Adds unit tests for pure logic, exercises error branches, introduces mocks for external dependencies, and refactors untestable code when needed.
- Threshold Protection: Keeps the existing coverage goal intact and works toward meeting or exceeding it instead of relaxing standards.
- Use Case: A team notices a drop in coverage after a feature launch, and this Skill identifies the exact branches and files to test so the suite becomes trustworthy again.
Quick Start
Use the improve-test-coverage skill to analyze the current project or a specific file or package and then add the tests or refactoring needed to reach the coverage threshold.