analyze-tests

Audit existing tests and flag tautological tests, coverage gaming, and weak assertions.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/sQVe/cape --skill analyze-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analyze-tests
Source: https://github.com/sQVe/cape/tree/main/skills/analyze-tests
Command: npx skills add https://github.com/sQVe/cape --skill analyze-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Audit the quality of existing tests to identify tautological tests, coverage gaming, weak assertions, and missing corner cases. Use this skill when users mention test quality, test effectiveness, tautological tests, coverage gaming, or questions like "are these tests any good", "audit tests", "review test quality", test rot, flaky tests, or want to know whether existing tests actually catch bugs. It does not cover finding missing tests, writing new tests, or debugging test failures.

Core Features & Use Cases

  • Categorize existing tests into RED (remove/replace), YELLOW (strengthen), or GREEN (keep) after reading production code.
  • Use code-review-graph for structural context and read production code before evaluating tests.
  • Provide per-test verdicts with explicit production code references and actionable fixes.

Quick Start

Describe the test scope you want audited, for example audit all tests under src/auth or a single test file.

Frequently Asked Questions about analyze-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit existing tests for false confidence and weak assertions?

To audit existing tests for false confidence, the Skill evaluates your test suite against production code, flagging tautological tests, coverage gaming, and weak assertions with RED, YELLOW, or GREEN verdicts.

What are tautological tests and how can I identify them in my codebase?

Tautological tests are tests that assert their own mock behavior rather than production logic. This Skill identifies them by reading your production code and categorizing the tests into RED, YELLOW, or GREEN with explicit evidence.

Can I review test quality for a specific module or directory?

Yes, you can review test quality for a specific module or directory by describing the target scope, such as 'src/auth', and the Skill will apply its analysis to produce actionable guidance with exact line references.

Does this tool help find missing tests or write new ones?

No, this tool does not find missing tests, write new tests, or debug test failures. It strictly audits existing tests to identify patterns creating false confidence and missing corner cases.

What is the best way to check if my tests actually catch bugs?

The best way to check if tests catch bugs is to audit them for coverage gaming and weak assertions. This Skill reads your production code and provides per-test verdicts with concrete fixes to ensure effectiveness.