agentleFS
kapadiaskapadias/nonna/.claude/skills/coverage/SKILL.md

coverage

Skill0 starsChanged 2 months agoMITView on GitHub

Report line and branch coverage; spotlight survival-critical surface gaps; fail if below the project floor. Extracted from /test for focused coverage work.

15 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use worktree and refactor.

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.
  • MicrosoftSkill

    worktree

    Create, reuse or clean up a dedicated git worktree for working on a pull request or a private branch. Use from any PR-scoped workflow that needs an isolated checkout to keep current code and build output untouched.

    Also in 3 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 1

    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. Very specific:

    Do not mutate any files. This command observes and reports.

    line 30
  2. Distinctive:

    Never report a number you did not observe from actual tool output.

    line 31

“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

!ls package.json pyproject.toml go.mod Cargo.toml Makefile 2>/dev/null

Coverage report for: $ARGUMENTS (if empty, the whole project).

Steps

  1. Detect the toolchain from the manifest files listed above and run coverage with the appropriate command:
    • JS/TS: npm test -- --coverage or vitest run --coverage
    • Python: pytest --cov --cov-branch --cov-report=term-missing $ARGUMENTS
    • Go: go test ./... -coverprofile=coverage.out && go tool cover -func=coverage.out
    • Rust: cargo tarpaulin --out Stdout (or cargo llvm-cov)
    • Or make coverage / the repo's documented command.
  2. Report the numbers. Line coverage % and branch coverage % for the scope requested. Compare against the project's declared floor (check pyproject.toml, jest.config.*, .nycrc, Makefile, or CI config). Fail loudly if below the floor — do not soften the number.
  3. Spotlight the survival-critical surface. Scan for any code touching money, auth, data integrity, persistence, or irreversible/outward-facing actions (see .claude/rules/testing.md). For each such file or module, report:
    • Current line % and branch %
    • Whether a golden test (exact oracle) exists
    • Whether a property test (invariant over generated inputs) exists
    • Gap: what behavior is uncovered
  4. List the top gaps. Rank uncovered lines/branches by blast radius — survival-critical surface first, then the rest. Give file paths and line ranges, not just percentages.

Guardrails

  • Do not mutate any files. This command observes and reports; it does not fix. To add tests, run /tdd.
  • Never report a number you did not observe from actual tool output.

Output

Overall line % and branch % vs. floor (pass/fail). Survival-critical surface table (file, line %, branch %, golden?, property?). Top-N uncovered spans by blast radius. Next action: either green (no gaps on critical surface, above floor) or a prioritized list for /tdd.

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.