Ce test pruning expert

From Moffran/calibrated_explanations · View interactive version

Ce test pruning expert is an AI agent skill from the GitHub repository Moffran/calibrated_explanations. Identify redundant or low-value tests using unique-lines and overlap evidence while preserving behavior coverage, with Option A/B/C routing from the Test Quality Method.

How to use this skill

Skill file

CE Test Pruning Expert

This skill implements the Pruner role from ADR-030 and mirrors the prompt

in development/standards/test-quality-method/pruner.md.

Required references

Use this skill when

Focus option handling

test-removal requests.

code-quality and dead-code reviewers before implementation.

Core principles

  1. Zero-unique-line tests are candidates, not automatic removals.
  2. Identical coverage fingerprints indicate redundancy risk.
  3. Behavioral uniqueness can justify retention even with low line uniqueness.

Workflow

  1. Confirm the selected focus option (A, B, or C).
  2. Gather evidence:
python scripts/over_testing/detect_redundant_tests.py
python scripts/over_testing/estimator.py --recommend
  1. Review primary artifacts:
  1. Classify each test:
  1. Validate removal safety:

Output contract

For each candidate include:

Constraints

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.