java-jacoco-coverage-backfilllisted
Install: claude install-skill Ahbrvntie/java-jacoco-coverage-backfill
# Java JaCoCo Coverage Backfill (Universal)
## When to use
- User asks to add/fix Java tests.
- User asks to improve coverage.
- User asks for branch-gap based supplementary tests.
- Project is Maven or Gradle based.
## Goals
- Use JaCoCo XML as the coverage source of truth.
- Track four coverage metrics consistently: `CLASS`, `METHOD`, `LINE`, `BRANCH`.
- Prioritize classes with worst `BRANCH` coverage for test backfill.
- Raise branch quality without causing regression on other coverage dimensions.
## Coverage Model
- `CLASS`: covered classes / total classes
- `METHOD`: covered methods / total methods
- `LINE`: covered lines / total lines
- `BRANCH`: covered branches / total branches
- Primary backfill target metric: `BRANCH`
- Secondary guardrail metrics: `CLASS`, `METHOD`, `LINE`
## Inputs And Defaults
- Class selection: 10 lowest `BRANCH`-coverage classes with branch counters.
- Default threshold: `BRANCH >= 80%` for each selected class.
- Secondary constraint: no unexplained regression in `CLASS/METHOD/LINE` for selected classes.
- If user provides different thresholds/scope/metric priorities, follow user input.
## Important: Where Files Go
| Location | What Goes There |
| ------------------------------------------------------------ | --------------- |
| Skill directory (`${HOME}/.codex/skills/java-jacoco-coverage-backfill`) | scripts |
## Bundled Scripts (Use First)
Scripts are under `scripts/` and