← スキル一覧に戻る

validate-coverage-threshold
by BerryKuipers
Universal Claude Code configuration: agents, skills, workflows, and SessionStart hooks for consistent development across projects
⭐ 5🍴 2📅 2026年1月24日
SKILL.md
name: validate-coverage-threshold description: Validate test coverage meets minimum thresholds (default 80% overall, 80% statements, 75% branches, 80% functions). Parses coverage reports from coverage/coverage-summary.json or test output. Returns pass/fail status with detailed metrics and identifies uncovered files.
Validate Coverage Threshold
Parses test coverage reports and validates that coverage meets minimum thresholds for quality assurance.
Usage
This skill checks test coverage data against configurable thresholds and returns structured validation results.
Default Thresholds
{
"overall": 80,
"statements": 80,
"branches": 75,
"functions": 80
}
Output Format
All Thresholds Met
{
"status": "success",
"coverage": {
"overall": 87.5,
"statements": 88.2,
"branches": 84.1,
"functions": 89.3
},
"thresholds": {
"overall": 80,
"statements": 80,
"branches": 75,
"functions": 80
},
"passed": true,
"failures": [],
"canProceed": true
}
Below Threshold
{
"status": "warning",
"coverage": {
"overall": 75.3,
"statements": 76.1,
"branches": 72.8,
"functions": 78.2
},
"thresholds": {
"overall": 80,
"statements": 80,
"branches": 75,
"functions": 80
},
"passed": false,
"failures": [
"overall:75.3%<80%",
"statements:76.1%<80%"
],
"uncoveredFiles": [
{"file": "src/utils/helpers.ts", "coverage": 45.2}
],
"canProceed": false,
"details": "Coverage below threshold: 4 metric(s) failed"
}
When to Use
- Quality gate validation (Conductor Phase 3)
- After running tests with coverage
- Pre-commit checks
- CI/CD pipeline validation
Coverage Data Sources
coverage/coverage-summary.json(preferred - c8/Istanbul)- Test output text (fallback)
Requirements
- Coverage data generated by test run
- Run
npm run test -- --coveragefirst
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です