agentleFS
my-chiefmindmy-chiefmind/ai-maestro/skills/test-coverage/SKILL.md

test-coverage

Skill6 starsChanged 48 days agoMITView on GitHub

A focused test pass over a change before it lands. Use on tickets that add or modify behavior — new endpoints, business logic, bug fixes, or refactors. Confirms the change is actually covered by tests, flags gaps with a file:line and the missing case, and blocks landing on untested critical paths.

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use instinct-export, instinct-import and 10 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.
  • TheKREATORSSkill

    instinct-export

    Export instincts from project/global scope to a file

    Also in 3 projects that use this

  • TheKREATORSSkill

    instinct-import

    Import instincts from file or URL into project/global scope

    Also in 3 projects that use this

  • diego-tobalinaSkill

    build-fix

    Fix build and compilation errors systematically. Run when build fails.

    Also in 3 projects that use this

  • qtzx06Skill

    eval

    Evaluate trained YOLO model accuracy with mAP metrics and per-class error analysis. Identifies failure cases for targeted improvement. Use after training.

    Also in 4 projects that use this

  • HABUBUSSSkill

    eval-harness

    Also in 5 projects that use this

  • Microsoft AzureSkill

    iterative-retrieval

    Max-3-cycle protocol for agent sub-tasks with WHY context and coordinator validation. Use when spawning sub-agents to complete scoped work.

    Also in 3 projects that use this

  • +1 more from TheKREATORS

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 19 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run this on changes that alter behavior: new features, bug fixes, refactors of logic, or anything touching a critical path.

    line 8

“Common” is measured: kept by at least 6 in 10 of the 19 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 Coverage

Run this on changes that alter behavior: new features, bug fixes, refactors of logic, or anything touching a critical path. Skip it only for pure docs, comments, or formatting.

Look for

  • Untested new logic — new functions, branches, or endpoints with no test exercising them. Each new decision point (if/switch/guard) needs at least one test.
  • Bug fix without a regression test — a fix that doesn't add a test reproducing the original bug will silently regress. The test must fail on the old code and pass on the new.
  • Happy-path only — tests that cover success but not the error, empty, boundary, and null/invalid-input cases the code clearly handles.
  • Assertion-free tests — tests that run code but assert nothing, or assert only that "no error was thrown." These give false confidence.
  • Coverage theater — lines executed by a test but whose behavior is never asserted; high line-coverage numbers hiding untested logic.
  • Flaky or order-dependent tests — reliance on real time, network, randomness, or shared mutable state instead of controlled fakes.
  • Broken or skipped tests — .skip, xit, commented-out tests, or a failing suite shipped as-is.

Report

For each gap: the file:line of the untested code, the specific case that's missing (e.g. "no test for empty cart → expected 400"), and a concrete test to add — ideally the arrange/act/assert outline. Confirm the suite runs green with the project's test command (see context.md) and name the command you ran. Skip demands for tests on trivial or generated code with no logic.

This pass gates the merge the same way QA and the release gate do: new or changed critical-path logic without a passing test that covers it blocks landing.

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.