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.