test-quality

Assess test suites for coverage gaps, weak assertions, and flaky patterns.

Updated Feb 26, 2025
One-click install
npx skills add https://github.com/adschill/dev-config --skill test-quality-adschill
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-quality
Source: https://github.com/adschill/dev-config/tree/main/skills/test-quality
Command: npx skills add https://github.com/adschill/dev-config --skill test-quality-adschill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Test suites often contain shallow assertions, missing edge cases, and flaky patterns that erode confidence in code changes. This Skill systematically reviews tests to find coverage gaps, non-determinism, and isolation problems, then prioritizes concrete improvements. ## Core Features & Use Cases - Gap Analysis: Maps expected behavior to existing tests and identifies uncovered critical paths, negative scenarios, and boundary conditions. - Flakiness Detection: Detects non-deterministic setup, shared state, and isolation issues that cause intermittent failures. - Prioritized Recommendations: Produces a structured report separating must-now fixes from lower-priority additions, each tied to a concrete risk. - Use Case: Before merging a large change set, ask for an assessment of the affected test files to find missing scenarios and weak assertions, then implement the must-now items first. ## Quick Start Ask the assistant to assess this test suite and propose high-impact improvements using the test-quality skill.

Frequently Asked Questions about test-quality

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

FAQPage Schema
How do I find coverage gaps in my test suite?▼

Map expected behavior to existing tests, then identify uncovered critical paths, negative scenarios, and boundary conditions. This Skill performs that mapping and lists concrete missing scenarios tied to specific risks.

How to detect flaky tests and non-determinism?▼

Flaky tests usually come from non-deterministic setup, shared mutable state, time or network dependencies, and poor isolation between cases. The review checks setup and teardown determinism and flags shared-state patterns as stability risks.

What makes a test assertion weak or meaningless?▼

Weak assertions only check status codes, response lengths, or that no exception occurred, without verifying actual behavior. Strong assertions validate meaningful outputs, include boundary and negative cases, and produce failure messages with triage value.

When should I not use a test quality review?▼

Skip it for pure feature implementation, refactors without test-quality intent, or general code reviews that are not test-focused. It is designed specifically for assessing and improving test suites, not writing product code.

How are test improvements prioritized?▼

Recommendations are ranked by risk reduction versus implementation cost and split into must-now and next tiers. Each recommendation is tied to a concrete risk, and the output defines acceptance criteria for the upgraded suite.