Test Gap from Diff

Analyze code diffs to identify and prioritize missing test cases.

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/cdalsoniii/brightpath-coder --skill test-gap-from-diff
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Test Gap from Diff
Source: https://github.com/cdalsoniii/brightpath-coder/tree/main/.cursor/skills/test-gap-from-diff
Command: npx skills add https://github.com/cdalsoniii/brightpath-coder --skill test-gap-from-diff

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill identifies precisely which tests are missing for new or modified code, ensuring comprehensive test coverage and preventing regressions.

Core Features & Use Cases

  • Automated Test Gap Analysis: Analyzes code diffs to pinpoint missing tests.
  • Test Type Mapping: Uses a matrix to determine the exact types of tests required (unit, integration, property, etc.).
  • Prioritization: Ranks identified test gaps based on criticality (e.g., financial operations, public APIs).
  • Use Case: After a developer pushes a change to a critical financial service, this Skill can immediately report which specific unit and integration tests need to be written to cover the new logic.

Quick Start

Use the test-gap-from-diff skill to analyze the current git diff and report missing tests.

Frequently Asked Questions about Test Gap from Diff

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find missing tests from code changes automatically?

Test gap analysis identifies missing tests by analyzing code diffs and mapping changed functions to a predefined requirement matrix to pinpoint exactly what unit or integration tests are needed.

What is test gap analysis and how does it prevent regressions?

Test gap analysis is the process of checking existing test coverage against new code changes. It prevents regressions by categorizing and prioritizing missing test cases for critical path functions before deployment.

How do I prioritize which missing unit tests to write for a new pull request?

You can prioritize missing unit tests by analyzing code diffs to rank gaps based on criticality, ensuring that financial operations and public APIs receive test coverage first.

When do I need to run a test requirement matrix mapping?

You need to run a test requirement matrix mapping when triggers occur, such as code changes submitted without tests, new pull requests, or sudden drops in code coverage.

Does test gap analysis work for integration and property tests or just unit tests?

Test gap analysis works for integration and property tests. The matrix determines the exact types of tests required, mapping changed functions to multiple test categories beyond just unit tests.