agentleFS
tanbopptanbopp/ai-development-framework/.agents/skills/test-suite-auditor/SKILL.md

test-suite-auditor

Skill1 starsChanged 19 days agoMITView on GitHub

Audits unit, integration, and E2E test suites in Phase 7 using a mutation-testing mindset to reject shallow happy-path-only tests and enforce meaningful edge-case and failure-path coverage.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read all unit, integration, and E2E test files created or updated during Phase 6 and compare them against docs/project/PRD.md EARS …

    line 15
  2. Very specific:

    If the test suite is judged shallow, relies on fake coverage, or omits edge/failure cases for any REQ-XXX, REJECT the Phase 7 audit and …

    line 25

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

Test Suite Auditor

Trigger

Mandatory during Phase 7 (Audit), alongside code-quality-gate and security-hardening.

Process

  1. Inspect Phase 6 Tests:
    • Read all unit, integration, and E2E test files created or updated during Phase 6 and compare them against docs/project/PRD.md EARS Acceptance Criteria and docs/specs/*.md.
  2. Apply Mutation-Testing Mindset:
    • For each critical module, handler, or UI workflow, ask: "If I intentionally break the core logic, will this test catch it?"
    • Reject weak assertions (such as testing only toBeDefined(), tautological mocks, mocked-out units under test, or snapshot-only assertions where behavioral state changes should be verified).
  3. Verify Edge-Case & Failure-Path Coverage:
    • Confirm tests explicitly exercise failure modes and boundary conditions, not only the "happy path":
      • Empty, null, malformed, or boundary inputs (schema validation rejection).
      • Network failures, timeouts, database errors, or missing resources.
      • Unauthorized/unauthenticated access and cross-tenant/IDOR attempts where auth applies.
  4. Enforce Reject-and-Fix Loop:
    • If the test suite is judged shallow, relies on fake coverage, or omits edge/failure cases for any REQ-XXX, REJECT the Phase 7 audit and return to Phase 6 with a concrete list of missing tests to implement before re-auditing.

Output Contract

A Phase 7 test audit verdict listing verified behavioral/edge-case tests per requirement and either an explicit PASS or a REJECT list requiring additional tests in Phase 6.

Checklist

  • Core logic assertions survive a mutation-testing review ("if core logic breaks, test fails")
  • Empty/invalid input edge cases covered
  • Network, timeout, or runtime failure paths covered
  • Unauthorized access / permission edge cases covered where applicable
  • Shallow or happy-path-only suites rejected back to Phase 6

Prohibitions

  • Approving a test suite that only exercises happy paths or mocks away the logic being tested.
  • Passing Phase 7 with skipped (test.skip / it.skip) or empty test cases.

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.