Home / Market / test gap audit

test gap audit

Run a read-only audit for missing, weak, stale, or mis-scoped test coverage. If the user does not name a scope, audit the full repository and identify important code paths, routes, features, services, workflows, and contracts that lack proper tests. If the user names a feature, PR, branch, route, workflow, service, bug fix, API, security-sensitive path, or risky code change, focus only on that specific scope. Use when the user asks what tests are missing, whether coverage is enough, what regress

skill★ 417940 dlgithubMITInstall in CosmosUpstream Source

Documentation & Preview

--- name: test-gap-audit description: Run a read-only audit for missing, weak, stale, or mis-scoped test coverage. If the user does not name a scope, audit the full repository and identify important code paths, routes, features, services, workflows, and contracts that lack proper tests. If the user names a feature, PR, branch, route, workflow, service, bug fix, API, security-sensitive path, or risky code change, focus only on that specific scope. Use when the user asks what tests are missing, whether coverage is enough, what regression tests to add, or how to prove a change is safe. This is not a general bug audit and not a security review; it evaluates whether behavior is covered by tests. license: MIT

---

Test Gap Audit

Find the tests that should exist but do not, or tests that exist but do not prove the important behavior. Produce concrete, prioritized test recommendations grounded in code paths, risk, and existing test conventions.

Core Rules

Inputs

When no scope is given, audit the whole repository. Inventory the repo's major testable surfaces and report which important areas do not have tests, do not have enough assertions, or are only indirectly covered.

Accept any specific testing scope, including:

If scope is blurry, infer the smallest useful boundary and state it. If no scope is stated, do not ask for one; proceed with a full-repo audit. Ask only when different scopes would require materially different test plans.

Discovery Workflow

  1. Establish repo context.
  1. Map the behavior under review.
  1. Map existing coverage.
  1. Identify gaps.
  1. Verify safely.

Severity Rubric

Evidence Standards

Report Format

Use this structure unless the user asks otherwise:

**Test Gap Audit: <scope>**

No code changed. I reviewed <brief scope>, existing tests, and repo test conventions. <verification summary>. No P0s found / P0s found: <count>.

1. **P1: <gap title>.**
   Gap: <behavior or risk not covered>.
   Current coverage: <what existing tests cover or why none were found>.
   Evidence: code `<path>:<line>`; tests `<path>:<line>` or "no direct tests found in <area>".
   Suggested test: <specific test level, file/location, scenario, and key assertions>.

2. **P2: <gap title>.**
   Gap: <missing or weak coverage>.
   Current coverage: <what is currently proven>.
   Evidence: code `<path>:<line>`; tests `<path>:<line>`.
   Confidence: <high/medium/low if inferred>.
   Suggested test: <specific recommendation>.

**Suggested Test Plan**
- <ordered list of concrete tests to add first>

**Untested Or Weakly Tested Areas**
- <for full-repo audits, list important routes/features/services/packages/workflows that lack proper tests, with brief evidence>

**Existing Coverage Worth Keeping**
- <only include useful tests that already protect important behavior>

**Surveyed But Not Deeply Inspected**
- <For full-repo audits only: surfaces that were inventoried but not inspected deeply this pass, and which to run next. Omit this section entirely for scoped audits.>

**Checks Run**
- `<command