arabelatso/mutation-test-suite-optimizer
Optimize test suites using mutation testing to maximize mutation kill rate with minimal tests. Use when you need to reduce test suite size while maintaining quality, identify redundant tests, improve mutation coverage, or validate test effectiveness. The skill analyzes test coverage, execution intervals, and redundancy using mutation operators, selects or generates a minimal subset of tests that maximizes mutation kill rate, and outputs an optimized test suite with detailed reports showing killed and surviving mutants. Supports multiple programming languages and mutation testing frameworks.
npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill mutation-test-suite-optimizer
This skill optimizes test suites using mutation testing, selecting a minimal subset of tests that maximizes mutation kill rate while reducing execution time and redundancy.
# Optimize test suite with mutation testing
python scripts/optimize.py /path/to/repo --tests tests/
# Use specific mutation operators
python scripts/optimize.py repo/ --tests tests/ --operators AOR,ROR,COR
# Generate optimization report
python scripts/optimize.py repo/ --tests tests/ --output report.json
Supports common mutation operators:
Generates detailed report with:
Example report:
{
"original_tests": 150,
"optimized_tests": 45,
"mutation_kill_rate": 92.5,
"killed_mutants": 185,
"surviving_mutants": 15,
"time_savings": "67%"
}
python scripts/optimize.py <repo_path> --tests <test_dir> [--operators <ops>] [--output <report.json>]
Take arabelatso/mutation-test-suite-optimizer from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.