skill-coverage-audit

Trace codepaths in diffs, map them to tests, and generate coverage reports.

1|Updated Jun 12, 2026
One-click install
npx skills add https://github.com/mhdxbilal/Ai --skill skill-coverage-audit-mhdxbilal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-coverage-audit
Source: https://github.com/mhdxbilal/Ai/tree/main/.claude/skills/skill-coverage-audit
Command: npx skills add https://github.com/mhdxbilal/Ai --skill skill-coverage-audit-mhdxbilal

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Trace codepaths in diffs, map against tests, auto-generate missing coverage — use before shipping PRs.

Core Features & Use Cases

  • Trace codepaths in changed files and extract a codepath inventory
  • Map each codepath to existing tests to reveal coverage gaps
  • Auto-generate targeted tests for uncovered paths and provide a coverage report
  • Produce an ASCII coverage diagram and recommendations before PR submission

Quick Start

Run a coverage audit on the current diff to identify untested paths and auto-generate tests for gaps.

Frequently Asked Questions about skill-coverage-audit

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

FAQPage Schema
How do I map codepaths in a Git diff to existing tests to find coverage gaps?

To map codepaths to tests, the coverage audit identifies changed files in your pull request, extracts control-flow and error path branches, and maps them against existing tests to highlight untested paths. It outputs a coverage diagram showing exactly which paths lack tests.

Can I automatically generate missing tests for uncovered branches before submitting a PR?

Yes, you can automatically generate missing tests for uncovered branches. The audit identifies untested codepaths and auto-generates targeted tests following your project conventions, producing up to 20 tests to fill coverage gaps before PR submission.

What is the best way to trace control-flow branches and error paths in staged changes?

Tracing control-flow branches and error paths in staged changes is best handled by auditing the diff to extract a codepath inventory. It explores up to 30 distinct codepaths across changed files, analyzing control-flow and error branches within a 2-minute limit per path.

Does the test generation work with existing project conventions and test frameworks?

Yes, the test generation works with existing project conventions. It analyzes your codebase patterns and generates targeted tests for uncovered paths that follow the conventions already established in your project's test suite.

What are the limitations when running a coverage audit on a large pull request?

Limitations when running a coverage audit on a large pull request include enforced caps of 30 codepaths, 20 generated tests, and a 2-minute exploration limit per path. Very large diffs with extensive branching may exceed these thresholds and require manual review.

Why does my pull request have untested codepaths even though my test suite passes?

Untested codepaths remain because existing tests may not execute all control-flow branches or error paths within changed files. A coverage audit maps your diff to the test suite, identifying exactly which modified branches lack execution and auto-generating tests for those gaps.