ask
CommandAsk a codebase question and get a cited, synthesised answer with a confidence rating (costs an LLM call).
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.
> /plugin marketplace add repowise-dev/repowise> /plugin install repowise@repowise
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
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.
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.
Default / "status" — show what is already ingested:
repowise coverage status
Handle `$ARGUMENTS`:
`jacoco.xml`, `test-result-codecoverage.json`, `.coverage`, …) → `repowise coverage add <path>`
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.
`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
`coverage.fail_under` in `.repowise/config.yaml`)
`--format json|markdown` for other consumers
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.
Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Ask a codebase question and get a cited, synthesised answer with a confidence rating (costs an LLM call).
Triage card for files, modules, or symbols — layer, hotspot, fix history, freshness (relationships, not source bytes).
Report unreachable files, unused exports, and zombie packages, tiered by confidence.
Work with architectural decisions — list, inspect health, add, or confirm auto-proposed decisions.
Diagnose the Repowise setup — install, API keys, index/store drift — and optionally repair it.
Export the wiki (or architecture model) to markdown, HTML, JSON, or Structurizr DSL.
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.