validate-coverage-threshold

Community

Ensure test coverage meets minimum quality standards.

AuthorBerryKuipers
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Low test coverage can hide critical bugs and make code changes risky, leading to regressions. This Skill automatically checks if your test coverage metrics meet predefined minimum thresholds.

Core Features & Use Cases

  • Comprehensive Coverage Analysis: Parses test coverage reports (from JSON or text output) to extract overall, statement, branch, and function coverage percentages.
  • Configurable Thresholds: Validates current coverage against customizable minimum thresholds (e.g., 80% overall, 75% branches).
  • Uncovered File Identification: Pinpoints specific files or components that fall below coverage targets, helping prioritize test additions.
  • Use Case: Integrate this Skill into your quality gate or CI/CD pipeline to automatically flag insufficient test coverage, ensuring new code is adequately tested.

Quick Start

Validate coverage with default thresholds (80% overall, 80% statements, 75% branches, 80% functions)

Assumes coverage data is available in coverage/coverage-summary.json or .claude/baseline/test-output.txt.

validate-coverage-threshold

Output:

{

"status": "success",

"coverage": {"overall": 87.5, "statements": 88.2},

"thresholds": {"overall": 80, "statements": 80},

"passed": true,

"failures": []

}

Dependency Matrix

Required Modules

jqgrepbc

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: validate-coverage-threshold
Download link: https://github.com/BerryKuipers/claude-code-toolkit/archive/main.zip#validate-coverage-threshold

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.