
Coverage Guard
- 44 installs
- 433 repo stars
- Updated August 4, 2026
- proffesor-for-testing/agentic-qe
coverage-guard is a Claude Code skill for ai & agent building.
About
coverage-guard is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.
- coverage-guard
- AI & Agent Building
- AI-coding skill
Coverage Guard by the numbers
- 44 all-time installs (skills.sh)
- +3 installs in the week ending Aug 4, 2026 (Skillselion tracking)
- Ranked #7,794 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/proffesor-for-testing/agentic-qe --skill coverage-guardAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 44 |
|---|---|
| repo stars | ★ 433 |
| Last updated | August 4, 2026 |
| Repository | proffesor-for-testing/agentic-qe ↗ |
How do I helps with ai & agent building tasks.?
Helps with ai & agent building tasks.
Who is it for?
Best when you're working on ai & agent building and need structured help with coverage guard.
Skip if: Teams with no ai & agent building needs, or anyone wanting a generic chat assistant without this specific workflow.
When should I use this skill?
When you need to helps with ai & agent building tasks., or when coverage-guard is a claude code skill for ai & agent building.
What you get
Structured output aligned to coverage-guard: coverage-guard, AI & Agent Building.
Files
Coverage Guard Mode
When activated, checks coverage after test runs and warns if it drops below the configured threshold.
What It Does
After any test execution (via Bash tool), compares coverage to the threshold in config.json. Warns (doesn't block) if coverage decreased.
Activation
/coverage-guardConfiguration
Edit config.json in this skill directory to set thresholds:
{
"thresholds": {
"statements": 80,
"branches": 70,
"functions": 75,
"lines": 80
},
"coverageCommand": "npx jest --coverage --coverageReporters=json-summary",
"coverageFile": "coverage/coverage-summary.json"
}Hook Configuration
{
"hooks": {
"PostToolUse": [
{
"matcher": "Bash",
"hook": ".claude/skills/coverage-guard/scripts/check-coverage.sh",
"condition": "command contains 'jest' OR command contains 'vitest' OR command contains 'npm test'"
}
]
}
}Enforcement Logic
#!/bin/bash
# check-coverage.sh
COVERAGE_FILE="coverage/coverage-summary.json"
THRESHOLD=80
if [ -f "$COVERAGE_FILE" ]; then
STATEMENTS=$(jq '.total.statements.pct' "$COVERAGE_FILE")
BRANCHES=$(jq '.total.branches.pct' "$COVERAGE_FILE")
if (( $(echo "$STATEMENTS < $THRESHOLD" | bc -l) )); then
echo "WARNING: Statement coverage ($STATEMENTS%) below threshold ($THRESHOLD%)"
echo "Coverage dropped — check which files lost coverage."
fi
if (( $(echo "$BRANCHES < 70" | bc -l) )); then
echo "WARNING: Branch coverage ($BRANCHES%) below 70%"
fi
fiGotchas
- Coverage check runs AFTER the test command — if tests crash, no coverage report is generated
- Coverage-summary.json must be configured as a reporter — default Jest config may not include it
- Threshold comparisons use floating point —
79.999%will trigger below80%threshold - Branch coverage is typically 10-15% lower than line coverage — set thresholds accordingly
#!/bin/bash
# check-coverage.sh — Coverage Guard hook
# Checks coverage after test runs and warns if below threshold.
# Called by PostToolUse hook on Bash commands containing jest/vitest/npm test
COVERAGE_FILE="coverage/coverage-summary.json"
THRESHOLD=${COVERAGE_THRESHOLD:-80}
BRANCH_THRESHOLD=${BRANCH_COVERAGE_THRESHOLD:-70}
if [ ! -f "$COVERAGE_FILE" ]; then
# No coverage report generated — skip silently
exit 0
fi
# Extract coverage percentages
STATEMENTS=$(node -e "console.log(require('./$COVERAGE_FILE').total.statements.pct)" 2>/dev/null)
BRANCHES=$(node -e "console.log(require('./$COVERAGE_FILE').total.branches.pct)" 2>/dev/null)
FUNCTIONS=$(node -e "console.log(require('./$COVERAGE_FILE').total.functions.pct)" 2>/dev/null)
if [ -z "$STATEMENTS" ]; then
exit 0
fi
EXIT_CODE=0
# Check statement coverage
if [ "$(echo "$STATEMENTS < $THRESHOLD" | bc -l 2>/dev/null)" = "1" ]; then
echo "WARNING: Statement coverage (${STATEMENTS}%) below threshold (${THRESHOLD}%)"
EXIT_CODE=1
fi
# Check branch coverage
if [ -n "$BRANCHES" ] && [ "$(echo "$BRANCHES < $BRANCH_THRESHOLD" | bc -l 2>/dev/null)" = "1" ]; then
echo "WARNING: Branch coverage (${BRANCHES}%) below threshold (${BRANCH_THRESHOLD}%)"
EXIT_CODE=1
fi
if [ $EXIT_CODE -eq 0 ]; then
echo "Coverage OK: statements=${STATEMENTS}%, branches=${BRANCHES}%, functions=${FUNCTIONS}%"
fi
exit $EXIT_CODE
Related skills
FAQ
What does coverage-guard do?
coverage-guard is a Claude Code skill for ai & agent building.
When should I use coverage-guard?
When you need to helps with ai & agent building tasks., or when coverage-guard is a claude code skill for ai & agent building.
What are the main capabilities?
coverage-guard; AI & Agent Building; AI-coding skill.