agentleFS
aradmanamnaoonaradmanamnaoon/vibe-coding-skills/skills/testing/missing-test-detector/SKILL.md

missing-test-detector

Skill0 starsChanged 18 days agoMITView on GitHub

Map changed or critical behavior to automated checks and identify meaningful untested paths. Use after feature work, bug fixes, or when coverage appears misleading.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are 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.

  • 0

    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:

    Add the smallest durable tests needed for high-risk gaps.

    line 36
  3. Distinctive:

    Run the focused suite and confirm the new test would fail against the relevant pre-fix defect when practical.

    line 37
  4. Distinctive:

    Do not use coverage percentage as the only completion criterion.

    line 38
  5. Distinctive:

    Do not create tests that merely assert mocked success for the same implementation being tested.

    line 46
  6. Distinctive:

    Every high-risk changed behavior is either tested or explicitly justified as not automatable here.

    line 50
  7. Distinctive:

    If the environment cannot execute a test class, still identify the gap and mark execution not performed.

    line 63

≈ “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

Find behavior with no durable automated evidence, not merely uncovered lines.

When to activate

Production behavior changes or a review asks whether testing is sufficient.

When not to activate

Documentation-only change with no generated/runtime behavior.

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

  • Changed files and diff
  • Existing test inventory
  • Acceptance criteria or bug reproducer

Workflow

  1. Translate each externally observable requirement/change into testable behaviors and failure modes.
  2. Locate existing tests by behavior/API rather than filename similarity.
  3. Build a requirement-to-test map: covered directly, covered indirectly, or missing.
  4. Prioritize missing tests for security boundaries, persistence, errors, concurrency, and regression-prone behavior over trivial getters/setters.
  5. Add the smallest durable tests needed for high-risk gaps.
  6. Run the focused suite and confirm the new test would fail against the relevant pre-fix defect when practical.
  7. Do not use coverage percentage as the only completion criterion.

Relevant tools

Repository/test discovery, coverage when available, diff analysis.

Safety restrictions

Do not create tests that merely assert mocked success for the same implementation being tested.

Validation

  • Every high-risk changed behavior is either tested or explicitly justified as not automatable here.
  • New regression tests target behavior rather than implementation details.
  • Focused tests pass after the implementation.

Expected output

  • Behavior-to-test map
  • High-risk gaps
  • Added tests
  • Justified exclusions

Failure handling

If the environment cannot execute a test class, still identify the gap and mark execution not performed.

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: P021. 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.