agentsclimarketplace

Automation coverage

Skill Mohammed-Moniem/claude-automation-coverage-plugin/skills/automation-coverage

Methodology for generating a semantic automation-coverage report — mapping a Playwright suite onto a React app's routes/pages (with backend endpoints linked as a journey view) using the automation-coverage MCP tools. Use when the user wants to know what their Playwright/E2E suite actually covers, find untested routes/features, or run a coverage scan.From its SKILL.md

Install
npx -y skills add Mohammed-Moniem/claude-automation-coverage-plugin --skill automation-coverage

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

6.3 KB, as published. Nobody here has run it

Automation Coverage

You generate a semantic, static coverage report: which frontend routes/pages a Playwright suite actually exercises, with backend endpoints linked as a cross-stack journey view. This is not instrumented line coverage — the app is never booted or run.

The deterministic engine (MCP tools)

A bundled MCP server (automation-coverage) does all heavy, reproducible work. You provide the semantic judgment the static engine cannot. Tools, in pipeline order:

  1. resolve_targets({ automationRepo, targetRepos[] }) — validate paths + detect frameworks. Call first.
  2. scan_suite({ repoPath }) — inventory the Playwright repo (per-test goto/assert/click/api/tags). Incremental.
  3. scan_target_repo({ repoPath }) — inventory ONE target's routes + endpoints. Call once per target. Incremental.
  4. compute_coverage({ automationRepo, targetRepos[] }) — map suite→routes, classify tiers, link endpoints, roll routes up into features. Returns a summary + auto-grouped features + an attention payload.
  5. define_features({ automationRepo, features[] }) — name the features + describe what each does (functionality), so the report reads in product terms. Then re-run compute_coverage.
  6. apply_resolutions({ automationRepo, resolutions[] }) — persist YOUR judgments (see below). Then call compute_coverage again to fold them in.
  7. render_report({ automationRepo, outDir? }) — write the markdown + JSON report.
  8. get_memory({ automationRepo }) — read the last result + history without rescanning.
  9. reset_memory({ repoPath?, all? }) — clear cached scan memory.

Scans are incremental: only files changed since the last scan are re-parsed (git diff when available, else content hashing), so re-running is cheap. Memory persists across sessions.

The coverage model — read this before reporting

Coverage is expressed as evidence tiers, never a single "% tested":

TierMeaning
🟢 asserteda URL assertion (toHaveURL/waitForURL) proves a test reached the route
🟡 navigateda goto/click targets the route but nothing asserts arrival
🟠 referencedthe route is referenced but there's no evidence it was reached
🔴 untestedno test reference at all — the actionable gap

Rules you must honor when presenting results:

  • Lead with the untested routes (the gaps). That is the valuable, defensible output.
  • Report breadth (routes referenced ÷ total) and depth (assertions per route) separately.
  • Always state the method is static and intent-only: it counts whether a test tries to reach a route, not that the route rendered or behaved correctly. Never say "X% tested" or imply correctness. A zero-assertion test still "reaches" a route.
  • Backend endpoints are linked by inference (//COVERAGE_TAG: comments + static API call-site analysis), labelled "linked", not "exercised".
  • The denominator is the framework router (source of truth), not the tests.

Your semantic pass (what the engine flags for you)

After compute_coverage, do two things — name the features, then resolve the gaps:

  • Define features (do this). The result includes auto-grouped features (by route prefix). Re-group the routes into meaningful product features, each with a one-line functionality description (e.g. "Checkout flow — review cart, enter payment, place an order"), and submit via define_features({ automationRepo, features: [{ name, description, routes: [...] }] }). Use the route paths + component/page names to infer what each feature does. This makes the report speak in features/functionalities, not raw routes.

Then inspect the attention payload and resolve what static analysis couldn't, via apply_resolutions (then re-run compute_coverage):

  • unresolvedRoutes / unresolvedEndpoints — routes/endpoints whose path was a computed expression (needsLLM). Read the rawExpr + file:line; if you can determine the real path, submit { resolvedRoutePath: "/the/path" }.
  • navigatedNotAsserted — routes reached via goto/click but with no URL assertion. If a page-object helper or a click-through clearly lands there, add evidence: { routeTemplate, addEvidence: [{ type: "pageObject"|"clickNav", via, confidence: "medium" }] }.
  • Conditional routes — if a route is obviously auth/role/flag-gated (name or component hints), mark { routeTemplate, setConditional: true } so it lands in the "unverifiable" bucket.
  • Endpoint links the engine missed — add { routeTemplate, linkEndpoints: ["GET /api/..."] }.

Be conservative: only add evidence you can justify from the code. Prefer leaving a route in a lower tier over inflating it. Never invent coverage.

Default flow

  1. Get the automation repo path and the target repo path(s) from the user (ask if absent). Accept absolute paths exactly as given (Windows or POSIX) — the engine normalizes them.
  2. resolve_targets → confirm detection; surface warnings.
  3. scan_suite, then scan_target_repo for each target.
  4. compute_coverage → semantic pass: define_features (name features + describe functionality) and apply_resolutions (resolve ambiguous/navigated) → compute_coverage again.
  5. render_report → tell the user where the report was written and give a tight summary that leads with the percentages and the feature-level view, states breadth/depth, and names the top untested features/routes.

For a quick re-check with no code changes, use get_memory + render_report instead of rescanning.

Tips

  • Multiple targets (frontend + backend) are scanned independently and unified in one report; pass them all to compute_coverage.
  • Encourage //COVERAGE_TAG: GET /api/... comments in tests to strengthen the journey view.
  • If results look wrong after big refactors, reset_memory({ repoPath }) forces a full rescan.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.