Skip to content
Back to skills

Prune Tests

ASecurity

Sweep a test suite and delete the tests that prove nothing.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 23, 2026
ai-agentsgotesting

Security analysis

A100/100

Scanned November 23, 2026

npx -y skills add mia-cx/skills --skill prune-tests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prune Tests?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Prune Tests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mia-cx-prune-tests/badge)](https://www.skillsdirectory.com/skills/mia-cx-prune-tests)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: prune-tests
description: Sweep a test suite and delete the tests that prove nothing.
disable-model-invocation: true
---

# Prune tests

Read [testing](../testing/SKILL.md) first. Its bar decides which tests stay; this skill applies that bar to a suite that already exists.

1. **Scope.** Prune the paths the user names, or the whole suite if they name none. Run the suite once and note which tests already fail, so a failure after pruning is never blamed on a deletion.
2. **Judge.** Read every test in scope and write its "Proves" line. A test goes when it has no line, or when it fails the bar in testing:
   - it breaks when the code changes but the behaviour doesn't, such as a renamed private helper or a reworded string;
   - it asserts that a removed feature is gone;
   - it can never fail, because it computes its expected value the way the code does or asserts only on its own mocks;
   - it re-proves what the type checker or a library's own suite already proves.
3. **Keep the proof.** When a doomed test is the only proof of behaviour a caller relies on, rewrite it at the public interface instead of deleting it.
4. **Delete.** Remove the tests, and any helpers, fixtures and mocks only they used. Run the suite: everything that passed before still passes.
5. **Commit.** Commit the deletions with a body that lists each removed test and the reason it failed the bar, one line each.

Report the tests removed, the tests rewritten with their new "Proves" lines, and the suite's runtime before and after.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.