simplify - Behavior-Preserving Code Simplification Skill
Reduces code complexity by removing dead code, eliminating redundancy, substituting standard library calls, and flattening structures while preserving observable behavior.
Tags
Updated: 2026-06-30Capabilities
Typical Inputs
Typical Outputs
What this skill does
- remove dead code and unused imports
- eliminate redundant code patterns
- substitute standard library built-ins
- flatten nested code structures
- rename variables for clarity
- detect AI-generated code smells
- run existing test suite
- generate simplification report
Inputs
- Source code files
- Existing test suite
Outputs
- Simplified source code
- Simplification report
- Test results
Requirements
- Existing test suite must be present and passing
- One file or function at a time scope
- No simplification on untested code
