test-coverage

Analyze lcov, cobertura, and istanbul coverage reports to identify gaps and recommend prioritized tests.

175|26|Updated Aug 14, 2025
One-click install
npx skills add https://github.com/jmagly/ai-writing-guide --skill test-coverage-jmagly
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-coverage
Source: https://github.com/jmagly/ai-writing-guide/tree/main/.factory/skills/test-coverage
Command: npx skills add https://github.com/jmagly/ai-writing-guide --skill test-coverage-jmagly

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires traceability-check, project-awareness, artifact-metadata, and includes references (resource) components.

What problem does it solve?

This Skill eliminates coverage blind spots by automatically analyzing test coverage metrics, identifying untested code, and mapping coverage to requirements.

Core Features & Use Cases

  • Coverage Analysis: Automatically parses coverage reports, identifies critical gaps, and generates prioritized test recommendations.

Quick Start

When you say "analyze test coverage", this Skill locates coverage data, analyzes metrics, and generates comprehensive coverage reports with action plans.

Example Output

"Test Coverage Analysis Complete

Overall: 78.5% line, 72.3% branch

Status: ⚠️ Below targets

Critical Findings:

  • 3 files with 0% coverage
  • 2 critical paths undertested
  • Branch coverage declining

Top Recommendations:

  1. Add OAuth tests (+15% gain, 2h effort)
  2. Add payment retry tests (+12% gain, 3h effort)
  3. Add migration tests (new coverage, 4h effort)

Report: .aiwg/testing/coverage-analysis.md"

Frequently Asked Questions about test-coverage

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

FAQPage Schema
How do I analyze test coverage across my codebase?

Test coverage analysis automatically parses your coverage reports—lcov, cobertura, or istanbul formats—computes line, branch, function, and statement metrics, and identifies untested code sections. The Skill maps coverage to requirements and generates prioritized recommendations with effort estimates to close gaps.

What coverage formats does this Skill support?

The Skill processes lcov, cobertura, and istanbul coverage reports. It handles multi-format inputs across codebases and projects, parsing diverse report structures to extract and standardize coverage data for gap analysis.

Can this Skill track coverage trends over time?

Yes. The Skill analyzes historical coverage data across time to track trends, identify declining metrics, and spot emerging gaps. This enables monitoring coverage drift and prioritizing improvements based on trajectory.

How do I identify which code areas need testing first?

The Skill maps coverage data to requirements, identifies critical untested paths, and generates prioritized test recommendations ranked by impact gain and effort estimate. This lets you tackle the highest-value gaps first.

Does this work with multiple projects or just single codebases?

The Skill applies to multi-format reports and historical coverage data across multiple codebases and projects, producing gap mappings and recommendations for each. It scales from single-project analysis to portfolio-wide coverage tracking.