agentleFS
eugeniosegalaeugeniosegala/claude-connoisseur/skills/coverage-review/SKILL.md

coverage-review

Skill9 starsChanged 8 months agoMITView on GitHub

Analyse test coverage gaps and report uncovered code before making changes.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. TzolkinB/skills★ 2same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository12 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before running anything, determine the test framework, runner, and coverage tooling by inspecting the project:

    line 18
  2. Distinctive:

    If no coverage tool is installed, recommend one appropriate for the detected framework and ask the user before installing it.

    line 29
  3. Distinctive:

    When no arguments are provided, analyse coverage for the entire project.

    line 42
  4. Very specific:

    Detect the framework and coverage tool: read package.json, pyproject.toml, Cargo.toml, go.mod, or equivalent to identify available coverage …

    line 54
  5. Distinctive:

    Determine scope: if the user specified files or directories, limit the analysis to those.

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Coverage Review

Analyse the project's test coverage, identify gaps, and present an assessment for the user to review before any changes are made. Do not write or modify any code until the user provides next steps.

Files and instructions: $ARGUMENTS

What to detect

Before running anything, determine the test framework, runner, and coverage tooling by inspecting the project:

  • JavaScript/TypeScript: jest --coverage, vitest --coverage, c8, nyc/istanbul — check package.json scripts, config files, and dev dependencies for coverage providers (@vitest/coverage-v8, @vitest/coverage-istanbul, c8, nyc)
  • Python: pytest --cov, coverage.py — check pyproject.toml, setup.cfg, .coveragerc
  • Go: go test -cover, go test -coverprofile — built-in
  • Rust: cargo tarpaulin, cargo llvm-cov — check Cargo.toml dev-dependencies
  • Java/Kotlin: jacoco, cobertura — check pom.xml or build.gradle plugins
  • Ruby: simplecov — check Gemfile
  • Elixir: mix test --cover, excoveralls — check mix.exs
  • PHP: phpunit --coverage-text — check phpunit.xml, composer.json

If no coverage tool is installed, recommend one appropriate for the detected framework and ask the user before installing it.

How to interpret arguments

The arguments are free-form and flexible. They may contain:

  • File or directory references to scope the analysis: src/services/, @auth.ts, lib/, *.py
  • Natural language instructions such as:
    • "focus on the API layer"
    • "only check the utils module"
    • "ignore generated files"
    • "include integration tests"

When no arguments are provided, analyse coverage for the entire project.

Examples

  • /coverage-review — full project coverage analysis
  • /coverage-review src/services/ — coverage for a specific directory
  • /coverage-review @auth.ts — coverage for a specific file
  • /coverage-review focus on the API handlers — scoped by description
  • /coverage-review ignore generated files and vendor/ — with exclusions

How to proceed

  1. Detect the framework and coverage tool: read package.json, pyproject.toml, Cargo.toml, go.mod, or equivalent to identify available coverage tooling and its configuration
  2. Determine scope: if the user specified files or directories, limit the analysis to those. Otherwise analyse the full project
  3. Run the coverage report: execute the appropriate coverage command with text/summary output. Use flags that produce per-file and per-function breakdowns where available. Set a reasonable timeout (default 120s, extend for large suites)
  4. Parse the results: extract file-level and function-level coverage data. Identify:
    • Uncovered files — source files with no corresponding tests at all
    • Low-coverage files — files below 50% line coverage
    • Uncovered functions/methods — specific functions with 0% coverage
    • Uncovered branches — conditional paths that are never exercised
  5. Read the uncovered code: for each significant gap, read the source file to understand what the uncovered code does. Categorise each gap by risk and complexity:
    • Risk: how likely is a bug in this code to cause user-facing impact? (high / medium / low)
    • Complexity: how complex would the tests be to write? (simple / moderate / complex)
  6. Present the assessment: report findings using the output format below. Stop here and wait for the user's instructions before writing any code.

Output format

Coverage assessment

## Coverage Assessment

**Framework**: vitest + @vitest/coverage-v8
**Scope**: full project (or scoped description)
**Overall line coverage**: 64% (target: 80%)

---

### Summary

| Category            | Count |
|---------------------|-------|
| Uncovered files     | 4     |
| Low-coverage files  | 6     |
| Uncovered functions | 12    |

---

### Uncovered files (no tests)

| File                          | Lines | Risk   | Complexity | What it does                          |
|-------------------------------|-------|--------|------------|---------------------------------------|
| `src/services/billing.ts`     | 142   | high   | moderate   | Stripe billing lifecycle management   |
| `src/utils/retry.ts`          | 38    | medium | simple     | Generic retry with exponential backoff|

### Low-coverage files (below 50%)

| File                          | Coverage | Uncovered functions              | Risk   | Complexity |
|-------------------------------|----------|----------------------------------|--------|------------|
| `src/handlers/auth.ts`        | 32%      | `refreshToken`, `revokeSession`  | high   | moderate   |
| `src/repos/order.ts`          | 45%      | `bulkUpdate`, `archiveOld`       | medium | complex    |

### Key uncovered branches

| Location                          | Branch description                       | Risk   |
|-----------------------------------|------------------------------------------|--------|
| `src/services/user.ts:52-58`      | Error path when email already exists     | high   |
| `src/handlers/auth.ts:91-95`      | Token expiry edge case                   | medium |

---

### Recommended priority

1. **`src/services/billing.ts`** — high risk, no tests at all, moderate complexity
2. **`src/handlers/auth.ts` → `refreshToken`, `revokeSession`** — high risk, auth-critical paths
3. **`src/services/user.ts:52-58`** — high risk branch, simple to cover
4. ...

---

What would you like to cover? You can point at specific files, pick from the priorities above, or ask me to cover everything.

Cannot determine coverage tool

## Coverage Assessment: UNKNOWN

Could not detect a coverage tool. Looked for: jest/vitest coverage config, pytest-cov, coverage.py, go test -cover, cargo tarpaulin, jacoco, simplecov.

Recommended tool for this project: **[recommendation based on detected test framework]**

Would you like me to install and configure it?

No gaps found

## Coverage Assessment: COMPLETE

**Overall line coverage**: 94%

All files are above 80% coverage. No significant uncovered functions or branches detected.

Minor gaps (cosmetic):
- `src/config/defaults.ts:12` — unreachable fallback branch
- `src/index.ts:3-5` — top-level bootstrap (not practically testable)

Important notes

  • Do not write tests or modify code — this skill produces an assessment only. Wait for the user to decide what to cover and how
  • Never run tests in watch mode — it requires interactive input
  • Timeout handling — if a coverage collection exceeds the timeout, report what is completed and that the run was interrupted
  • Respect existing configuration — use the project's existing coverage config (thresholds, exclusions, reporters) rather than overriding with custom flags
  • Large projects — if the project has hundreds of source files, focus the detailed analysis on the user-specified scope or the top 15 lowest-coverage files to keep the report actionable

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.