MindaxisSearch for a command to run...
Analyze the provided code and simplify it by reducing unnecessary complexity. Identify and remove over-engineering: excessive abstractions, premature optimizations, and unnecessary patterns. Replace complex constructs with straightforward equivalents that achieve the same result. Eliminate dead code, redundant conditions, and duplicated logic. Flatten deeply nested structures where possible without sacrificing clarity. Replace verbose implementations with idiomatic language features (map, filter, reduce, etc.). Consolidate similar functions or classes that can be merged without losing expressiveness. Ensure the simplified version has identical behavior and passes all existing tests. Add brief comments only where the simplified logic might be non-obvious. Target: reduce line count by {{reduction_target}}% while maintaining full functionality. Output the simplified code with a summary of what was changed and why.
| ID | Метка | По умолчанию | Опции |
|---|---|---|---|
| reduction_target | Target reduction percentage | 20 | — |
npx mindaxis apply code-simplifier --target cursor --scope project