Test coverage quality gate that establishes a clean baseline, measures statement, branch, function, and line coverage, analyzes gaps, and blocks release below explicit thresholds.
npx skills add Reactive-Skills/skills --skill test-coverage-gatenpx -y @reactive-skills/axi invoke test-coverage-gate9
Hierarchical nodes
INTAKE
Bootstrap entrypoint
4
Whitelisted for safety
2
Automated projections
Visual state machine topology parsed directly from the official STATECHART.md in Reactive-Skills/skills:
Each state is an isolated operational slice. Transitions occur only when typed signals satisfy programmatic guard conditions.
Collect target, test command, coverage command, and quality thresholds
Outgoing Transitions
event.payload.target_dir != null && event.payload.test_command != null && event.payload.coverage_command != null && event.payload.thresholds != nullevent.payload.target_dir == null || event.payload.test_command == null || event.payload.coverage_command == null || event.payload.thresholds == nullValidate commands, threshold schema, and coverage report format
Outgoing Transitions
event.payload.exit_code === 0 && event.payload.thresholds != nullevent.payload.exit_code !== 0 || event.payload.thresholds == nullRun the unmodified test suite and require a clean baseline
Outgoing Transitions
event.payload.exit_code === 0event.payload.exit_code !== 0Run coverage collection and parse the machine-readable report
Outgoing Transitions
event.payload.coverage_report != null && event.payload.coverage_metrics != nullevent.payload.coverage_report == null || event.payload.coverage_metrics == nullCompare coverage metrics with thresholds and identify actionable gaps
Outgoing Transitions
event.payload.coverage_metrics != null && Array.isArray(event.payload.coverage_gaps)event.payload.coverage_metrics == null || !Array.isArray(event.payload.coverage_gaps)Human quality gate for threshold exceptions and release blocking
Outgoing Transitions
event.payload.approved === trueevent.payload.remediation_requested === trueevent.payload.rejected === trueTerminal state: coverage gate passed
Terminal state: coverage gate blocked release
Terminal state: coverage workflow failed
Inspect or drive this state machine directly via the token-efficient AXI CLI:
Check state:
Inspect hierarchy:
Tail events:
Runtime variables persisted across state transitions:
target_dirtest_commandcoverage_commandthresholdsbaseline_exit_codecoverage_reportcoverage_metricscoverage_gapsgate_decisiondeliverable_pathRead models automatically rendered upon transition:
Add to your Claude Desktop, Cursor, or VS Code settings:
{
"mcpServers": {
"reactive-skills": {
"command": "npx",
"args": [
"-y",
"@reactive-skills/axi",
"mcp"
]
}
}
}