← ClaudeAtlas

coverage-checklisted

Validate coverage thresholds and PR gates, flagging critical low-coverage files. Use when enforcing a minimum coverage bar. Triggers on: checar cobertura, threshold de cobertura, gate de cobertura, minimo de cobertura, arquivos sem teste, coverage gate, coverage check.
parisgroup-ai/imersao-ia-setup · ★ 1 · AI & Automation · score 74
Install: claude install-skill parisgroup-ai/imersao-ia-setup
# coverage-check Validate coverage against configured thresholds and identify gaps in critical files. ## Commands ```bash /coverage-check # Validate last snapshot against config /coverage-check --strict # Fail on any critical gap /coverage-check --pr # Compare current branch vs main ``` ## Execution Flow ### 1. Load Configuration ```bash cat coverage-config.json ``` Extract: - `thresholds.global` - Global minimums (lines, branches, functions) - `thresholds.<module>` - Module-specific thresholds - `criticalPaths` - Glob patterns for critical files - `criticalFiles` - Explicit critical files list - `criticalMinCoverage` - Minimum for critical files (default 90%) ### 2. Load Latest Snapshot ```bash tail -1 .coverage-history/snapshots.jsonl ``` Parse JSON to get current coverage metrics for each stack. If no snapshot exists, run `/coverage-run` first. ### 3. Validate Global Thresholds For each metric in `thresholds.global`: ```yaml global_check: lines: actual: <from vitest snapshot> threshold: <from config> status: PASS | FAIL branches: actual: <from vitest snapshot> threshold: <from config> status: PASS | FAIL functions: actual: <from vitest snapshot> threshold: <from config> status: PASS | FAIL ``` ### 4. Validate Module Thresholds For each module in `thresholds` (except "global"): ```bash # Get module-specific coverage from detailed report cat coverage/coverage-final.json | jq '[to_entries[] | select