coverage-guard

Check code coverage after test runs and warn when thresholds fall below configured levels.

Updated Jun 15, 2026
One-click install
npx skills add https://github.com/CENKSSS/valocase-backend --skill coverage-guard-cenksss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coverage-guard
Source: https://github.com/CENKSSS/valocase-backend/tree/main/.claude/skills/coverage-guard
Command: npx skills add https://github.com/CENKSSS/valocase-backend --skill coverage-guard-cenksss

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Ensures that code coverage does not drop below a specified threshold during development cycles by checking coverage after each test run.

Core Features & Use Cases

  • Post-Test Coverage Check: Automatically assess code coverage after test runs.
  • Threshold Monitoring: Monitor coverage for statements, branches, functions, and lines.
  • Conditional Warnings: Alerts developers if coverage falls below configured thresholds.
  • Configurable: Customizable thresholds and commands to execute tests and check coverage.

Quick Start

Set up the Coverage Guard Skill and configure the desired coverage thresholds. Run tests and trigger coverage checks with /coverage-guard.

Frequently Asked Questions about coverage-guard

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

FAQPage Schema
How do I check code coverage after running tests and warn when it drops below a threshold?

You can check code coverage after test execution and trigger warnings when coverage falls below a predefined threshold. This ensures coverage stability by monitoring statements, branches, functions, and lines automatically during development cycles.

How do I monitor code coverage thresholds for statements, branches, and functions in an automated test suite?

Monitoring code coverage thresholds for statements, branches, and functions is done by configuring customizable limits. The script checks coverage post-test and alerts developers if any metric falls below the configured threshold values.

Do I need Node.js and jq to parse coverage reports and execute post-test checks?

Yes, you need Node.js, Bash, and jq to run post-test coverage checks. These dependencies are used for executing scripts and parsing coverage data to evaluate whether your metrics meet the configured threshold requirements.

What is the best way to maintain code coverage stability over time during continuous testing?

The best way to maintain code coverage stability is by running automated post-test checks that warn when coverage drops. Integrating this into continuous testing ensures coverage never silently degrades below your predefined thresholds.

Can I customize the test commands and coverage thresholds for my development environment?

Yes, the coverage checking process is fully configurable. You can customize both the commands used to execute tests and the specific coverage thresholds required, adapting the post-test warnings to fit your development environment.

Why does my code coverage check not warn when coverage falls below the threshold?

If post-test warnings are not triggering, the configured thresholds might be set incorrectly or the test execution command failed to generate valid coverage data. Ensure jq can properly parse the coverage report and thresholds match your stability targets.