test-prune

Reviews all tests in a codebase and lists candidates for deletion or consolidation.

1|Updated Aug 24, 2026
One-click install
npx skills add https://github.com/mjun0812/skills --skill test-prune-mjun0812
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-prune
Source: https://github.com/mjun0812/skills/tree/main/skills/review/test-prune
Command: npx skills add https://github.com/mjun0812/skills --skill test-prune-mjun0812

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Test suites accumulate redundant, brittle, and low-value tests over time, slowing CI runs and increasing maintenance burden. This Skill audits every test in a codebase and identifies which ones can be safely deleted or merged. ## Core Features & Use Cases - Redundancy Detection: Flags tests that duplicate implementation logic, re-verify type or library guarantees, or overlap with other tests. - Value-Based Judgment: Evaluates each test by asking what realistic bug would be missed if it were removed, weighing runtime, flakiness, and maintenance cost against the protection it provides. - Use Case: When a project's test suite has grown slow and noisy, ask for a test cleanup and receive a concrete list of tests to delete or consolidate, such as mock self-verification tests or excessive case splitting. ## Quick Start Review all tests in this repository and list the ones that can be deleted or merged.

Frequently Asked Questions about test-prune

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

FAQPage Schema
How do I find redundant tests in my codebase?

Review each test against overlapping coverage from other tests and check whether it merely copies implementation logic or re-verifies guarantees already provided by the type system or libraries. Tests that duplicate existing coverage are deletion candidates.

What criteria should I use to decide which tests to delete?

Ask what realistic bug would be missed if the test were removed. Compare the test's runtime, flakiness, and maintenance cost against the actual protection it provides, and avoid keeping tests just in case.

Should I delete tests to maintain a coverage percentage?

No. Test count and coverage maintenance should not be goals in themselves. The decision should be based on the realistic defects each test catches relative to its cost, not on preserving metrics.

What types of tests are usually safe to remove?

Common candidates include tests that copy the implementation, tests that only verify their own mocks, tests re-checking type system or library guarantees, tests duplicated by other tests, and tests overly coupled to internal implementation details.

When should I not prune tests from a suite?

Avoid removing tests that guard against realistic, previously observed defects or cover behavior not verified elsewhere. If deleting a test means a plausible bug could ship undetected, the test provides genuine value and should stay.