Skip to content
Development
Command

/coverage

Ingest or inspect test-coverage reports (LCOV, Cobertura, Clover, Go cover profiles, JaCoCo, Salesforce Apex JSON, or repowise JSON; a coverage.py .coverage builds the per-test map only), or gate a change on its patch coverage in CI.

From plugin
repowise
8.1k17 skills17 commands1 MCP
> /plugin marketplace add repowise-dev/repowise
> /plugin install repowise@repowise

Command definition

coverage.md
description: Ingest or inspect test-coverage reports (LCOV, Cobertura, Clover, Go cover profiles, JaCoCo, Salesforce Apex JSON, or repowise JSON; a coverage.py .coverage builds the per-test map only), or gate a change on its patch coverage in CI.
allowed-tools: Bash(repowise coverage:*), Read
disable-model-invocation: true

Repowise Coverage

Ingest coverage so untested-hotspot markers light up in `repowise health` and so `repowise impacted-tests` can map a diff to the tests that exercise it. No LLM — pure report ingestion into the local index.

Steps

1. If `.repowise/` doesn't exist: "This repo isn't indexed yet. Run `/repowise:init` first." Stop. 2. Decide the mode from `$ARGUMENTS` (see below), run the command, and present a short summary (files covered, line/branch %, whether a per-test map was built). Don't dump raw JSON unless asked.

Modes

Default / "status" — show what is already ingested:

repowise coverage status

Handle `$ARGUMENTS`:

  • "status" / "show" → `repowise coverage status`
  • A report path (`coverage.lcov`, `lcov.info`, `coverage.xml`, `coverage.out`,

`jacoco.xml`, `test-result-codecoverage.json`, `.coverage`, …) → `repowise coverage add <path>`

  • "add" with no path → `repowise coverage add` (auto-discover common report paths)
  • Multiple paths → `repowise coverage add <a> <b>` (merged; hit wins)
  • "check" / "gate" / "patch coverage" → `repowise coverage check [REVSPEC]`

Useful flags on `add`: `--verbose` for ingestion debug logs; `--path <dir>` to point at a different repo; `--format <parser>` to force a parser instead of auto-detecting from content.

Gating a change in CI

`repowise coverage check` reports patch coverage: the share of a change's executable lines the tests ran. It needs no index, so it runs in CI. REVSPEC is the change (`origin/main...HEAD`, `base..head`, or one commit; defaults to the default branch `...HEAD`).

repowise coverage check origin/main...HEAD --report coverage/lcov.info --fail-under 80
  • `--report FILE` (repeatable; discovered from the usual locations when omitted)
  • `--fail-under PCT` exits 1 below the threshold (defaults to

`coverage.fail_under` in `.repowise/config.yaml`)

  • `--report-format <parser>` forces a parser
  • `--format github` writes annotations plus a step summary in GitHub Actions;

`--format json|markdown` for other consumers

Notes

  • `coverage add` always stores per-file line/branch coverage.
  • The **per-test map** (needed by `/repowise:impacted-tests`) is built only

when the report carries per-test contexts — e.g. a coverage.py `.coverage` recorded with `pytest --cov=<package> --cov-context=test` (needs pytest-cov), a per-test lcov, or a Salesforce `test-result-<run id>.json` from `sf apex run test --code-coverage --output-dir <dir>`. Reports without contexts ingest aggregates only; say so plainly.

  • After ingesting, suggest `repowise health --recompute` so untested-hotspot markers update.
Read more
@repowise-dev
Ships withrepowise

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

8.1k8 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
8.1k
Star history of repowise-dev/repowise on GitHub, a chart by star-history.com

Other commands on repowise.

ask

ask

Command

Ask a codebase question and get a cited, synthesised answer with a confidence rating (costs an LLM call).

@repowise-dev@repowise-devInstall Command
context

context

Command

Triage card for files, modules, or symbols — layer, hotspot, fix history, freshness (relationships, not source bytes).

@repowise-dev@repowise-devInstall Command
decision

decision

Command

Work with architectural decisions — list, inspect health, add, or confirm auto-proposed decisions.

@repowise-dev@repowise-devInstall Command
doctor

doctor

Command

Diagnose the Repowise setup — install, API keys, index/store drift — and optionally repair it.

@repowise-dev@repowise-devInstall Command
export

export

Command

Export the wiki (or architecture model) to markdown, HTML, JSON, or Structurizr DSL.

@repowise-dev@repowise-devInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command