jacoco

jacoco is a skill for Claude Code from alexmond/alexmskills. It costs 75 tokens per session (2,343 once invoked), scanned A, original, MIT.

A checker for JaCoCo test coverage in Maven/Java projects. Test coverage measures how much of the code runs during tests, including lines, classes, and modules.

In plain words
What is it for?
Use it to generate coverage reports, check an 80% line-coverage gate by default, and find specific classes or lines that need tests.
Why use it?
It shows whether the project meets its coverage requirement and where tests are missing.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the maven-quality plugin — 4 skills shipped together

Good fit Use it to generate coverage reports, check an 80% line-coverage gate by default, and find specific classes or lines that need tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alexmond/alexmskills/jacoco
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alexmond/alexmskills --skill jacoco
Clone the repo
git clone --depth 1 https://github.com/alexmond/alexmskills

Made for: Claude Code.

Or install maven-quality, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for jacoco

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexmond/alexmskills/jacoco/github.svg)](https://agentmods.dev/skills/alexmond/alexmskills/jacoco)
Your own site
<a href="https://agentmods.dev/skills/alexmond/alexmskills/jacoco"><img src="https://agentmods.dev/badge/skills/alexmond/alexmskills/jacoco/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for jacoco

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexmond/alexmskills/jacoco"><img src="https://agentmods.dev/badge/skills/alexmond/alexmskills/jacoco.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,343 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00075 $0.02343
Opus 5.5 $0.00030 $0.00937
Sonnet 5.5 $0.00015 $0.00469
Haiku 4.5 $0.00007 $0.00234

Measured 3mo ago against content hash e50e08ca88db, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

jacoco scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/maven-quality/skills/jacoco/SKILL.md · 224 lines

How it starts

The opening of the file, as written. The whole thing — 224 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Check JaCoCo Code Coverage

Try it: /maven-quality:jacoco payment-service — or say "what's our test coverage on the payment service?".

Run verify to generate coverage reports, then parse and display the results. Defaults target a Maven/Java project with the JaCoCo plugin bound so that verify produces target/site/jacoco/jacoco.xml.

Coverage gate: 80% line coverage (default)

Adjust THRESHOLD in the snippets below to match your project's gate.

Adjusting for your project

  • Maven invocation: examples use the wrapper ./mvnw. If your environment has no wrapper, substitute your mvn binary, e.g. bash "/path/to/mvn" verify -f pom.xml -q.
  • Single module / non-modular project: the report lives at target/site/jacoco/jacoco.xml. Set modules = ['.'] and use '.'/target/... paths, or just drop the module prefix.
  • Multi-module project: set the modules list to your module directory names, or pass one module as the argument to scope to it.
  • $ARGUMENTS (when present) is treated as either a module name (Steps 1, 2, 5, 7) or a class source-file name (Step 4).

Step 1: Generate coverage reports

Specific module (e.g. argument = my-core):

./mvnw verify -pl $ARGUMENTS -q

All modules / whole project:

./mvnw clean verify -q

Step 2: Module-level summary (PASS/FAIL vs gate)

python3 -c "
import xml.etree.ElementTree as ET

THRESHOLD = 80
# Adjust to your module directory names, or use ['.'] for a single-module project.
modules = ['module-a', 'module-b', 'module-c']
if '$ARGUMENTS':
    modules = ['$ARGUMENTS']

print(f'{\"Module\":<24} {\"Covered\":>8} {\"Total\":>8} {\"Coverage\":>10} {\"Status\":>8}')
print('-' * 62)
for module in modules:
    path = f'{module}/target/site/jacoco/jacoco.xml' if module != '.' else 'target/site/jacoco/jacoco.xml'
    try:
        root = ET.parse(path).getroot()
        for counter in root.findall('counter'):
            if counter.get('type') == 'LINE':
                missed = int(counter.get('missed'))
                covered = int(counter.get('covered'))
                total = missed + covered
                pct = covered / total * 100 if total > 0 else 0
                status = 'PASS' if pct >= THRESHOLD else 'FAIL'
                print(f'{module:<24} {covered:>8} {total:>8} {pct:>9.2f}% {status:>8}')
    except FileNotFoundError:
        print(f'{module:<24} {\"N/A\":>8} {\"N/A\":>8} {\"N/A\":>10} {\"MISSING\":>8}')
"

Read the full file on GitHub · 224 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 224 lines · 75 tokens per session scan A e50e08ca88db

Subscribe to this mod's changes

jacoco is a skill published in the GitHub repository alexmond/alexmskills (11 stars, last pushed 1mo ago), licensed MIT. It adds 75 tokens to every session and 2,343 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

jacoco compared with skills from other repositories

jacoco next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
jacocoalexmond/alexmskillsSkill111mo agoMITA75Claude Code
rust-testingaffaan-m/ECCSkill313k7d agoMITA31Claude Code, Kiro
cpp-testingaffaan-m/ECCSkill313k7d agoMITA34Claude Code, Kiro
golang-testingaffaan-m/ECCSkill313k7d agoMITA37Claude Code, Kiro
swift-protocol-di-testingaffaan-m/ECCSkill313k7d agoMITA32Claude Code, Kiro
web3-testingwshobson/agentsSkill43k6d agoMITA46Claude Code
temporal-python-testingwshobson/agentsSkill43k6d agoMITA45Claude Code