agentleFS
aradmanamnaoonaradmanamnaoon/vibe-coding-skills/skills/testing/test-quality-auditor/SKILL.md

test-quality-auditor

Skill0 starsChanged 18 days agoMITView on GitHub

Detect skipped, vacuous, over-mocked, implementation-mirroring, and nondeterministic tests that create false confidence. Use when a suite is green but quality is uncertain.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    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:

    Read applicable repository instructions before edits.

    line 20
  2. Distinctive:

    Test files and runner configuration

    line 26
  3. Very specific:

    Check shared state, ordering assumptions, time/random/network dependencies, and cleanup.

    line 35
  4. Distinctive:

    Use a small mutation thought experiment or actual safe mutation: state what defect each critical test would catch.

    line 36
  5. Distinctive:

    Run tests in a clean/reordered context when the framework supports it.

    line 38
  6. Distinctive:

    Test runner, coverage/mutation tools when available, this library's skipped-test helper.

    line 42
  7. Distinctive:

    Do not delete, unskip blindly, or weaken assertions solely to make the suite green.

    line 50
  8. Distinctive:

    If mutation or reordering tooling is unavailable, perform the defect-to-assertion analysis manually and report it as such.

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Purpose

Assess whether tests would actually fail for meaningful defects.

When to activate

A test suite exists and confidence in its signal matters.

When not to activate

The task only needs a quick known-good smoke command and test quality is outside scope.

Preconditions

  • Read applicable repository instructions before edits.
  • Preserve unrelated working-tree changes and establish a baseline when the workflow can modify code.
  • Identify which tools and environments are actually available; do not claim unavailable checks ran.

Required inputs

  • Test files and runner configuration
  • Recent test output
  • Changed production behavior

Workflow

  1. Inspect test discovery configuration and executed counts so disabled/skipped tests are visible.
  2. Flag assertions that only check status/non-null without important behavior, assertions computed with the same logic as production, and tests with no assertion/effect verification.
  3. Identify mocks that replace the exact integration boundary whose behavior is under test.
  4. Check shared state, ordering assumptions, time/random/network dependencies, and cleanup.
  5. Use a small mutation thought experiment or actual safe mutation: state what defect each critical test would catch.
  6. Improve the highest-risk tests with negative/boundary behavior rather than multiplying shallow cases.
  7. Run tests in a clean/reordered context when the framework supports it.

Relevant tools

Test runner, coverage/mutation tools when available, this library's skipped-test helper.

Deterministic helper

For a dependency-free skipped-test inventory, run python scripts/find_skipped_tests.py <root>. Treat results as review targets; an intentional skip is not automatically a defect.

Safety restrictions

Do not delete, unskip blindly, or weaken assertions solely to make the suite green.

Validation

  • Critical tests are actually discovered and executed.
  • Representative defects would make the relevant test fail.
  • Known skipped/xfail tests are accounted for rather than hidden by a green summary.

Expected output

  • Executed/skipped inventory
  • Weak-test findings
  • Improved assertions/fixtures
  • Remaining signal limitations

Failure handling

If mutation or reordering tooling is unavailable, perform the defect-to-assertion analysis manually and report it as such.

Completion criteria

The skill is complete only when every applicable validation item above has observed evidence or is explicitly marked not executed with the concrete blocker. Do not replace missing evidence with confidence language.

Research mapping

This skill was selected from research problems: P022, P023, P026. See research/vibe-coding-problems.md and research/problem-evidence.csv in the Vibe Coding Skills repository.

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.