code-simplifier - Code Simplification and Refactoring
Analyze code to extract functions, remove redundancies, and apply refactoring techniques
Tags
Updated: 2026-03-23Capabilities
Typical Inputs
Typical Outputs
What this skill does
- extract functions
- remove dead code
- apply idiomatic patterns
- optimize control flow
- simplify conditionals
- improve variable naming
- parse code to AST
- detect anti-patterns
- simplify boolean expressions
- convert loops to iterators
- remove unused imports
- apply incremental changes
- add unit tests
- update documentation
Inputs
- source code file
- source code directory
- glob pattern
- complexity threshold
- simplification options
Outputs
- simplified code
- simplification report
- changes summary
- metrics comparison
Requirements
- MIT license
- opencode compatibility
