agentleFS
Reactive-SkillsReactive-Skills/skills/test-coverage-gate/SKILL.md

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.

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
  1. Very specific:

    Every transition has an explicit JavaScript guard.

    line 43

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- 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_bootloader with skill_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 returned instructions, then call reactive_context_prepare before 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.