coverage-analyzer

Analyze coverage reports to identify uncovered lines and missing branches.

5|Updated Nov 2, 2025
One-click install
npx skills add https://github.com/Atyantik/python-modern-template --skill coverage-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coverage-analyzer
Source: https://github.com/Atyantik/python-modern-template/tree/main/.claude/skills/coverage-analyzer
Command: npx skills add https://github.com/Atyantik/python-modern-template --skill coverage-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest, coverage.

What problem does it solve?

Achieving and maintaining high test coverage (like the 80%+ target) can be challenging, often involving manual review of coverage reports to find gaps and decide what to test next. This Skill automates that analysis, providing specific, actionable recommendations.

Core Features & Use Cases

  • Actionable Insights: Identifies uncovered lines and suggests concrete test cases to write, complete with example code.
  • Critical Gap Prioritization: Highlights high-priority areas like error handling, security code, and edge cases that must be covered immediately.
  • Coverage Trend Tracking: Visualizes coverage history to detect improvements or regressions over time, helping you stay on target.
  • Use Case: After running make coverage, ask the AI to "analyze test coverage" to get a prioritized list of missing tests and even example code to add, ensuring you meet your project's quality goals with minimal effort.

Quick Start

Analyze test coverage and suggest tests for uncovered code in src/my_module/data_processor.py.

Frequently Asked Questions about coverage-analyzer

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

FAQPage Schema
How do I identify which parts of my code aren't covered by tests?

Test coverage analysis scans your codebase to pinpoint uncovered lines, missing branches, and untested code paths. This Skill analyzes coverage reports from pytest and coverage tools to show exactly which code needs tests, helping you spot gaps across multiple files and modules.

Can I use pytest and coverage together to track test gaps automatically?

Yes. After running pytest with coverage collection (typically via `make coverage` or coverage reports), this Skill analyzes the .coverage data file and htmlcov reports to identify gaps and generate actionable test recommendations with example code.

What's the best way to meet an 80% code coverage target?

Prioritize high-impact uncovered areas like error handling, security code, and edge cases. This Skill highlights critical gaps and suggests specific test cases to write, accelerating your path to the 80%+ target by focusing effort on the most important missing coverage.

How do I detect coverage regressions and track progress over time?

Coverage trend tracking visualizes your testing history to reveal whether coverage is improving or regressing. This Skill captures trend data across runs, so you detect regressions early and confirm that new code maintains or improves your overall coverage rate.

Do I need to manually review coverage reports to find what to test next?

No. This Skill automates coverage report analysis to extract structured insights—current coverage percentage, uncovered lines by file, missing branches, and concrete test cases—eliminating manual review and providing ready-to-implement recommendations.