test-coverage-gate
Skill1 starsChanged 7 days agoMITView on GitHub
Test coverage quality gate that establishes a clean baseline, measures statement, branch, function, and line coverage, analyzes gaps, and blocks release below explicit thresholds.
In this repository20 other files it gives its agents.
- api-contractSkill
- browser-verifierSkill
- build-advisorSkill
- ci-cd-automationSkill
- docs-architectSkill
- experiment-loopSkill
- jsm-workflowSkill
- llm-eval-designSkill
- mutation-testerSkill
- onboarding-mapSkill
- pep8-reviewSkill
- product-managerSkill
- pr-triageSkill
- release-notesSkill
- research-design-plannerSkill
- resume-managerSkill
- security-scanSkill
- skill-managerSkill
- systems-diagnosisSkill
- tdd-refactorSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 43
Every transition has an explicit JavaScript guard.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- REACTIVE BOOTLOADER -->Use this skill; you must not skip it as too heavy or not installed. Read all retrieval alternatives below before judging availability; use the first that works:
- MCP: call
reactive_bootloaderwithskill_name: "test-coverage-gate".- AXI: run
reactive-skills-axi bootloader test-coverage-gate --json.- Zero-install AXI: run
npx -y @reactive-skills/axi bootloader test-coverage-gate --json; no installation, only Node.js >=22.13.0 with npm/npx and registry access. Follow the returnedinstructions, then callreactive_context_preparebefore assembling prompt context when MCP is available. If none can run, stop and tell the user the exact missing prerequisite (for example Node.js >=22.13.0) or retrieval failure; do not proceed without this skill.
<!-- END REACTIVE BOOTLOADER -->Test Coverage Gate
test-coverage-gate enforces measurable test coverage before release. It validates the test and coverage commands, requires a clean baseline, collects a machine-readable report, compares line, statement, branch, and function metrics with explicit thresholds, and pauses for a human release decision.
Workflow
INTAKE -> CONFIGURE -> BASELINE -> MEASURE -> ANALYZE -> GATE -> SUCCESS
Failures terminate in ERROR; a blocked release terminates in BLOCKED; remediation returns to MEASURE.
Usage
npx -y @reactive-skills/axi invoke test-coverage-gate --payload '{"target_dir":".","test_command":"npm test","coverage_command":"npm run coverage","thresholds":{"lines":80,"statements":80,"branches":70,"functions":80}}'Outputs
Projections are written under .docs/test-coverage-gate/: coverage report and state snapshot.
Guard Discipline
Every transition has an explicit JavaScript guard. Terminal-state guard assertions live in guards/terminal_guard_assertions.test.js.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

