expand-coverage

Analyze coverage JSON reports and generate behavioral tests for uncovered branches.

11|3|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/artk0de/TeaRAGs-MCP --skill expand-coverage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: expand-coverage
Source: https://github.com/artk0de/TeaRAGs-MCP/tree/main/.claude/skills/expand-coverage
Command: npx skills add https://github.com/artk0de/TeaRAGs-MCP --skill expand-coverage

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, vitest.

What problem does it solve?

This skill solves the problem of failing pre-commit coverage thresholds by autonomously identifying and testing specific uncovered code branches without manual intervention.

Core Features & Use Cases

  • Automated Gap Analysis: Uses coverage JSON reports to pinpoint exact uncovered statements and branches.
  • Behavioral Test Generation: Creates high-level tests that target specific logic branches rather than chasing individual lines.
  • Use Case: When a CI pipeline fails due to insufficient coverage, this skill automatically analyzes the coverage report, identifies the missing scenarios, and generates the necessary test files to meet the required threshold.

Quick Start

Invoke the expand-coverage skill to automatically analyze the current coverage report and generate tests for the most impactful uncovered branches.

Frequently Asked Questions about expand-coverage

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

FAQPage Schema
How do I automatically generate tests to fix failing vitest coverage thresholds in CI?

To fix failing vitest coverage thresholds, this skill analyzes coverage JSON reports to identify exact uncovered statements and autonomously generates behavioral tests to close the gaps.

How does automated test coverage gap analysis work from a coverage report?

Automated test coverage gap analysis works by parsing coverage JSON reports with jq to extract uncovered statements and branches, then mapping those gaps to behavioral logic branches in the codebase for test generation.

Do I need jq installed to analyze uncovered code branches and generate vitest tests?

Yes, you need jq installed alongside vitest, because the skill relies on jq to parse coverage JSON reports and perform accurate branch mapping for behavioral test generation.

What is the best way to resolve pre-commit test coverage failures without manual intervention?

The best way to resolve pre-commit coverage failures is to invoke this skill, which automatically analyzes the current coverage report, identifies missing scenarios, and generates the necessary test files to meet the required threshold.

Can I use this autonomous test generation tool with any testing framework besides vitest?

No, this tool requires integration with vitest specifically, as it relies on vitest coverage JSON reports and the tea-rags system to perform accurate codebase analysis and branch mapping.