/autonomous-fleet:test-coveragefrom autonomous-fleet
[Tier 1 · lower-than-doc/build cross-agent merge-success (test) · guard hollow-test risk] Raise real test coverage on a repo or a target area with behaviour-exercising tests — not coverage-padding stubs. Use when a module is undertested, before a refactor to lock current behaviour, after a feature shipped without tests, or for a periodic coverage pass. Adds/strengthens unit, integration, and where relevant UI tests that genuinely assert behaviour; does NOT change application logic. Runs fully autonomously via the autonomous-fleet-core engine. Trigger on: "add tests", "raise coverage", "this module has no tests", "write tests for X", "improve test coverage", "lock current behaviour with tests".
Ships in autonomous-fleet. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Before executing, activate these skills and read their full instructions:
autonomous-fleet-core — read references/engine.md and references/composition.md when coordinatingautonomous-fleet-adapter-orca, autonomous-fleet-adapter-claude-code, autonomous-fleet-adapter-grok, or autonomous-fleet-adapter-codexFollow the core and your adapter in full, then apply the mission parameters below.
Do not load a second mission skill in the same run. For chained missions, use fleet-program.
| Skill | Activate when | If unavailable |
|---|---|---|
| — | — | — |
| Role | Skills | If unavailable |
|---|---|---|
| @codex (write tests) | — | Match repo test framework from T-MAP |
| @claude (map, review, integrator) | — | Match repo test framework from T-MAP |
Record in <LEDGER_DIR>/test-coverage-readiness.md under Recommended next missions and in DECISIONS.md.
| Finding type | Route to |
|---|---|
| Logic change needed to make code testable | bug-batch or scoped fix mission |
| Refactor required for testability | cleanup (light) or targeted-migration |
| Hollow coverage tooling only | Use repo's existing test/coverage commands |
Empirical note: test-PR tasks merge at a materially LOWER cross-agent rate than documentation or build-update work — roughly 61.5% across agents (arXiv 2601.15195 — Ehsani et al., MSR 2026), versus ~84% for docs. So this is Tier 1 only with a caveat: the reviewer gate matters here, and the 38%-or-so not-merged rate means it is NOT as hands-off as doc-sync — do not leave it fully unattended without glancing at the result. (Per-task merge rates vary by agent; treat the tier ordering as qualitative, not a per-skill guarantee.) The ONE failure mode to guard is hollow tests written to move a number; the reviewer rejects those.
Increase MEANINGFUL test coverage on the target (whole repo, or an area the user named). Every added test must exercise real behaviour and fail if that behaviour breaks. Cover the important paths: core logic, edge/error/empty cases, and regression-prone areas. Do NOT chase a vanity percentage with trivial assertions; do NOT change application logic to make testing easier (record any such need as a finding). Coverage must rise on real tests and never regress.
<LEDGER_DIR>/test-coverage-progress.md. Per-task flags: WRITTEN=<t/f> PR_OPEN=<t/f> REVIEWED=<t/f> MERGED=<t/f>. Plus a GAP INDEX: each undertested area found in T-MAP, OPEN | COVERED via PR#n,
with before/after coverage where the tooling reports it.
T-MAP [@claude] — run the existing suite + coverage tooling; map the undertested areas by
importance (core logic and regression-prone paths first, trivial getters last). Identify the
test framework + conventions already in the repo (match them). Output
docs/test-coverage-map.md. Freeze, then fill.
T-COVER… [per area, loop] — each area is one PR. @codex writes behaviour-exercising tests for that area (verify they FAIL against intentionally-broken code, then pass) → fresh build-blind @claude reviews (real assertions, meaningful paths, no padding) → @claude merges. Parallelize across non-overlapping test files; serialize same-file. Update the GAP INDEX + coverage deltas.
PR sizing (issue #100): one PR per SOURCE file under test (its new/extended test file(s) ride along) — the study's high-merge-rate unit. Target ≤ ~400 changed lines; a source file needing more test code than that splits by test class/behaviour cluster into sequential PRs on the same area. Gaps of < ~10 lines of test code merge into the nearest same-module PR. Never split one test file across two concurrent PRs; never combine two source modules' tests in one PR (reviewers grade against the frozen GAP INDEX row-by-row).
T-FINAL [@claude] — full suite green; coverage rose on the mapped areas and did not
regress elsewhere. Output <LEDGER_DIR>/test-coverage-readiness.md with fleet-outcome YAML
(gaps_open, coverage_regressed), gap/coverage summary, Recommended next missions, all
PRs. Ship as the final PR.
After ledger init, SET_GOAL per autonomous-fleet-core/references/runtime-goals.md. Record
## Runtime goal in <LEDGER_DIR>/test-coverage-progress.md. GOAL_COMPLETE only after ## DONE below.
Mission test-coverage DONE: <LEDGER_DIR>/test-coverage-progress.md all task flags true,
<LEDGER_DIR>/test-coverage-readiness.md with fleet-outcome.status done and mission metrics satisfied,
the readiness fleet-outcome validates (python3 <SUBSTRATE>/validate_fleet_outcome.py per the engine's SUBSTRATE RESOLUTION; skip recorded in the readiness doc when SUBSTRATE=none), all PRs merged into BASE.
Every GAP-INDEX item COVERED, every task terminal, suite green, coverage not regressed,
<LEDGER_DIR>/test-coverage-readiness.md exists. Then send the FINAL report.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (ravidsrk/autonomous-fleet) — no native marketplace selected
npx claudepluginhub p/ravidsrk-autonomous-fleet12 skills in this plugin
/adversarial-review-and-fix[Tier 2 · moderate autonomy · full review gate · the proven two-phase workhorse] Run a rigorous CODE-GROUNDED adversarial architecture review of a repo, FREEZE it as the source of truth, then close every confirmed finding one at a time until done. Use for a security/architecture/ reliability hardening pass, a pre-production audit-and-remediate, or "review the whole app and fix everything." Phase 0 reviews the actual source (not existing docs) and a skeptic narrows out false findings; Phase 1 fixes the confirmed set with full safety rails. Runs via the autonomous-fleet-core engine. Trigger on: "adversarial review and fix", "audit and remediate", "review the whole app and fix the issues", "harden this before production", "find and fix the architecture problems"./autonomous-fleetEntry point for the autonomous-fleet multi-agent engineering framework. Use whenever the user wants fully-autonomous coding runs, multi-agent orchestration, PR-per-task pipelines, or mentions autonomous-fleet — even if they have not named a specific mission yet. Routes to one mission or to fleet-program for sequential chains, loads autonomous-fleet-core plus a runtime adapter, and runs unattended on the current repo. Install from github.com/ravidsrk/autonomous-fleet. Trigger on: "use autonomous-fleet", "run autonomous fleet", "autonomous multi-agent run", "fleet mission", "which fleet mission should I use".