code-simplification
Refactors working code to be clearer and easier to maintain while preserving exact behavior and following project conventions.
What it does
Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity. Use when asked to simplify, clean up, or reduce the nesting of a function or module that already works, even when the code is pasted inline and nothing else needs to change.
Quality judgment
An exceptionally thorough, well-structured skill with clear principles, a step-by-step process, concrete pattern tables, language-specific before/after examples, and strong negative guidance (when NOT to use, rationalizations, red flags). Triggers are good but could be slightly more precise about inline-paste scenarios; examples are solid though limited to a few languages.