code-simplification
Code Simplification
Inspired by the Claude Code Simplifier plugin. Adapted here as a language-agnostic and model-agnostic, process-driven skill for any AI coding agent working in any language.
This skill is a Pipeline with an embedded Reviewer: understand → identify → apply → verify. It produces simplified code, then audits the result against a checklist. The principles below are universal — they make no assumption about the programming language, framework, or paradigm. Code examples here use language-neutral pseudocode; for idiomatic before/after examples in a specific language, load references/language-idioms.md on demand.
Overview
Simplify code by reducing complexity while preserving exact behavior. The goal is not fewer lines — it's code that is easier to read, understand, modify, and debug. Every simplification must pass one test: "Would a new team member understand this faster than the original?"
When to Use
Use when: