test-coverage

Analyze test coverage gaps and generate missing tests for Python and JavaScript projects.

Updated Nov 24, 2025
One-click install
npx skills add https://github.com/ByronWilliamsCPA/.claude --skill test-coverage-byronwilliamscpa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-coverage
Source: https://github.com/ByronWilliamsCPA/.claude/tree/main/.claude/skills/test-coverage
Command: npx skills add https://github.com/ByronWilliamsCPA/.claude --skill test-coverage-byronwilliamscpa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill eliminates the manual effort and inconsistency of maintaining adequate test coverage, ensuring your codebase meets quality thresholds, has tests for critical security vulnerabilities, and aligns with Codecov configuration best practices.

Core Features & Use Cases

  • Coverage Gap Analysis: Auto-detects pytest or Vitest frameworks, runs coverage measurement, and ranks uncovered functions by criticality (zero coverage, low percentage, recent changes, high complexity) to prioritize testing work.
  • Automated Test Generation: Creates idiomatic, project-conforming tests for uncovered code using a dedicated writer subagent, with iterative quality review to ensure tests pass and meet standards before committing.
  • Threshold Enforcement & Auditing: Enforces configurable coverage gates (aggregate and per-file) and validates Codecov flag/component/status configuration, with auto-fix capabilities for misconfigured Codecov setups.
  • Security Test Coverage: Audits test suites for OWASP Top 10 vulnerability coverage, identifies gaps, and generates targeted security tests for uncovered risk categories.
  • Use Case: A Python SaaS project with 68% overall coverage can use this Skill to identify its 2 highest-criticality uncovered modules, generate passing tests for them, validate its Codecov configuration to enforce 80% project and 90% patch thresholds, and confirm it has test coverage for OWASP injection and broken access control risks.

Quick Start

Use the test-coverage skill to analyze your project's test coverage gaps and receive a prioritized list of modules that need tests first.

Frequently Asked Questions about test-coverage

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

FAQPage Schema
How do I find untested code paths in my pytest or Vitest project?

To find untested code paths, run coverage gap analysis to measure existing coverage and rank uncovered functions by criticality, prioritizing zero-coverage, recently changed, or high-complexity modules for test generation.

Can I automatically generate missing tests for uncovered Python and TypeScript code?

Yes, automated test generation creates idiomatic, project-conforming tests for uncovered code using a dedicated writer subagent, applying iterative quality review to ensure generated tests pass and meet standards before committing.

How do I enforce minimum code coverage thresholds from pyproject.toml?

Threshold enforcement reads configurable coverage gates from pyproject.toml files to validate aggregate and per-file coverage limits, aligning enforced thresholds with team testing standards and blocking workflows that fail quality gates.

Does this approach work with Codecov configuration validation and auto-fix?

Yes, Codecov auditing validates flag, component, and status configurations within your setup, detecting misconfigured Codecov settings and applying auto-fix capabilities to correct enforcement misalignments automatically.

How do I audit my test suite for OWASP Top 10 security vulnerability coverage?

Security test coverage audits test suites for OWASP Top 10 vulnerability categories, identifying gaps in risk coverage like injection or broken access control, and generates targeted security tests for uncovered categories.

What is the best way to prioritize which modules need tests first in a low-coverage codebase?

The best way to prioritize testing work is ranking uncovered functions by criticality using coverage gap analysis, evaluating zero coverage, recent changes, and high complexity to target the highest-risk modules first.