agentleFS
PradnyeshpPradnyeshp/Claude-Skills/.claude/skills/coverage/SKILL.md

coverage

Skill2 starsChanged 5 months agoMITView on GitHub

Run the test suite with coverage and report the least-covered files and functions, with concrete suggestions for the next tests to write. Use when the user says "check test coverage", "what's not tested", "run coverage", "where are the coverage gaps", "how covered is this", or "what should I test next".

15 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use adr, plan and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • asterkinSkill

    adr

    Create Architecture Decision Records (ADRs) following project standards. Guides template usage, process, and best practices for documenting architecturally significant decisions.

    Also in 3 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 4 projects that use this

  • OpenAISkill

    audit

    Audit or critique a product flow, journey, workflow, funnel, onboarding path, checkout path, settings path, screen, or multi-step product experience by capturing screenshots first, then reporting UX, design, and accessibility findings inline from that evidence. Use Figma only when the user explicitly asks for a board. Use when the user asks to audit, review, critique, inspect, assess, analyze, evaluate, or give feedback on a product experience.

    Also in 3 projects that use this

  • Hugging FaceSkill

    implement

    Make tests pass. Invoke after /write-tests produces failing tests.

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 3

    Distinctive

    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:

    If the coverage tool isn't installed, say so and give the one-line install/setup instead of guessing numbers.

    line 26
  2. Distinctive:

    If tests fail or error out, surface that first: coverage from a broken suite is meaningless.

    line 40
  3. Very specific:

    Don't write or modify tests here.

    line 42
  4. Distinctive:

    If coverage is already strong, say so and note the few remaining gaps rather than manufacturing busywork.

    line 43

“Common” is measured: kept by at least 6 in 10 of the 13 edited versions of this file we could read. “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

Test tooling signals

!ls package.json pyproject.toml pytest.ini setup.cfg Cargo.toml go.mod jest.config.* vitest.config.* .nycrc* 2>/dev/null

!sed -n 's/.*"scripts".*//p;/"test"\|"coverage"/p' package.json 2>/dev/null | head -20

Instructions

Measure test coverage for this project and report where it's weakest (scoped to $ARGUMENTS if a path was named). Detect the test runner from the signals above and use its native coverage tooling.

Method

  1. Pick the right coverage command for the stack, preferring an existing coverage/test:coverage script when one exists:
    • JS/TS: jest --coverage, vitest run --coverage, or nyc <test cmd>
    • Python: pytest --cov=<pkg> --cov-report=term-missing (or coverage run -m pytest && coverage report -m)
    • Rust: cargo llvm-cov / cargo tarpaulin
    • Go: go test ./... -coverprofile=cover.out && go tool cover -func=cover.out
    • If the coverage tool isn't installed, say so and give the one-line install/setup instead of guessing numbers.
  2. Run it (read-only — running tests is fine; don't modify source). Capture the per-file/per-function percentages and the uncovered line ranges.
  3. Rank the gaps by risk, not just by percentage. A 60%-covered auth/payment/parsing module matters more than a 0%-covered constants file. Weight by how much logic and how much blast radius each uncovered area has. Ignore generated code, vendored deps, and trivial getters.
  4. For the top gaps, name the specific untested behavior — the branch, error path, or edge case that has no test — by reading the uncovered lines, not just citing a number.

Output

  1. Overall coverage (line/branch %) and how it compares to any configured threshold.
  2. Top under-covered areas, ranked by risk: file:line-range, current %, and the specific untested behavior.
  3. A short "test these next" list — concrete cases worth writing, most valuable first. Hand off to the test-gen skill to actually write them if the user wants.

Rules

  1. Report real numbers from a coverage run — never estimate coverage by eyeballing the source.
  2. If tests fail or error out, surface that first: coverage from a broken suite is meaningless.
  3. Prioritize by risk and logic density, not raw percentage — call out when a high-percentage file still misses its critical path.
  4. Don't write or modify tests here; this skill measures and prioritizes. Point to test-gen for the writing.
  5. If coverage is already strong, say so and note the few remaining gaps rather than manufacturing busywork.

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.