# Code Simplify

> Reduce a change's complexity WITHOUT altering behavior — lower cognitive load, not line count: re…

Reduce a change's complexity WITHOUT altering behavior — lower cognitive load, not line count: read
the target plus its callers and tests, take a baseline check, then apply the smallest clarifying edits
in safest order (dead code and boolean cleanup → flatten nesting with guard clauses → consolidate
duplication → local renames and helper extraction), respecting Chesterton's Fence. Re-runs the
baseline after each edit and reverts any change that alters observable behavior or regresses, keeping
only the safe improvements — a simplification that changes semantics is a bug, not a cleanup. Use only
when the user explicitly asks to simplify or clean up existing code.

- Page: https://ss33.ai/skills/ulpi-io/code-simplify-64098444087
- Publisher: ulpi-io
- Category: [Software Development](https://ss33.ai/skills/category/software-development-t44z8z) › [Source control & code review](https://ss33.ai/skills/category/software-development-t44z8z/source-control-and-code-review-jebezw)
- Source: https://github.com/ulpi-io/skills/blob/b3e5e33424cfcccdbc0468fb66f06bb56f4e2a1f/code-simplify/SKILL.md

## Skill

This skill's licence does not allow redistribution, so the store does not serve its text. Get it from the author: https://github.com/ulpi-io/skills/blob/b3e5e33424cfcccdbc0468fb66f06bb56f4e2a1f/code-simplify/SKILL.md
