Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Simplify code that works — remove speculative abstraction, dead flexibility, and needless indirection while keeping behaviour identical and verified. Use after a feature lands ('now simplify it'), when AI-generated code arrives over-engineered, when a file has grown hard to follow, or as the cleanup pass before review. Produces a smaller, flatter version with identical behaviour, plus a ledger of what was removed and why it was safe. For finding bugs use code-review-checklist / ai-code-review —
.claude/skills/mohitagw15856-code-simplification/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-21 | ✗→✓ | ▲ Improved | 45% | 0% |
| case-01 | ✓→✗ | ▼ Worse | -55% | 0% |
| case-03 | ✓→✗ | ▼ Worse | -80% | 0% |
| case-02 | ✓→✓ | = Same ✓ | -37% | 0% |
| case-08 | ✓→✓ | = Same ✓ | 22% | 0% |
Code accretes defensive complexity: abstractions for futures that never came, options nobody passes, indirection that once had a reason. AI-generated code arrives pre-accreted — interfaces with one implementer, config objects with nine unused knobs. Simplification is its own pass with its own rule: behaviour identical, verified; complexity removed, listed.
grep before believing anything is unique).git log/blame the strange bit before deleting it. Some "needless" complexity is a bug fix wearing an odd shape — if the history shows a fix, keep it and comment WHY it's shaped that way instead.Verification: suite/build run before → after: identical] · pinning tests added: n or none-needed because…]
Removal ledger | What was removed/flattened | Class | Why safe | Future foreclosed (honest) | |---|---|---|---|
Kept deliberately: the weird-but-load-bearing bits, with their Chesterton evidence] Size: LOC/complexity before → after]
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | pass→fail | 53,128 | 36,177 | -32% | 1 | 1 | 0% | 4,300 | 1,925 | -55% | 0 | 0 | — |
case-02 | pass→pass | 32,494 | 17,276 | -47% | 1 | 1 | 0% | 6,208 | 3,921 | -37% | 0 | 0 | — |
case-08 | pass→pass | 15,017 | 42,455 | +183% | 1 | 1 | 0% | 2,347 | 2,860 | +22% | 0 | 0 | — |
case-03 | pass→fail | 63,258 | 4,687 | -93% | 1 | 1 | 0% | 5,545 | 1,124 | -80% | 0 | 0 | — |
case-04 | fail→fail | 4,921 | 38,146 | +675% | 1 | 1 | 0% | 255 | 8,895 | +3388% | 0 | 0 | — |
case-05 | pass→pass | 29,748 | 36,732 | +23% | 1 | 1 | 0% | 5,960 | 7,818 | +31% | 0 | 0 | — |
case-06 | pass→pass | 27,260 | 19,583 | -28% | 1 | 1 | 0% | 4,588 | 4,010 | -13% | 0 | 0 | — |
case-07 | pass→pass | 14,285 | 18,535 | +30% | 1 | 1 | 0% | 2,577 | 4,371 | +70% | 0 | 0 | — |
case-09 | pass→pass | 12,593 | 7,131 | -43% | 1 | 1 | 0% | 1,899 | 2,031 | +7% | 0 | 0 | — |
case-10 | pass→pass | 10,575 | 6,692 | -37% | 1 | 1 | 0% | 1,571 | 1,968 | +25% | 0 | 0 | — |
case-11 | pass→pass | 8,578 | 6,781 | -21% | 1 | 1 | 0% | 1,371 | 1,928 | +41% | 0 | 0 | — |
case-12 | pass→pass | 13,275 | 7,550 | -43% | 1 | 1 | 0% | 1,956 | 2,104 | +8% | 0 | 0 | — |
case-21 | fail→pass | 8,347 | 6,052 | -27% | 1 | 1 | 0% | 1,275 | 1,847 | +45% | 0 | 0 | — |
case-13 | pass→pass | 15,666 | 6,260 | -60% | 1 | 1 | 0% | 1,867 | 1,877 | +1% | 0 | 0 | — |
case-14 | pass→pass | 8,954 | 5,082 | -43% | 1 | 1 | 0% | 1,268 | 1,672 | +32% | 0 | 0 | — |
case-15 | pass→pass | 8,111 | 8,506 | +5% | 1 | 1 | 0% | 1,491 | 2,318 | +55% | 0 | 0 | — |
case-16 | pass→pass | 11,257 | 9,528 | -15% | 1 | 1 | 0% | 2,154 | 2,692 | +25% | 0 | 0 | — |
case-17 | pass→pass | 7,649 | 6,409 | -16% | 1 | 1 | 0% | 1,242 | 1,853 | +49% | 0 | 0 | — |
case-18 | pass→pass | 10,582 | 6,239 | -41% | 1 | 1 | 0% | 1,696 | 1,826 | +8% | 0 | 0 | — |
case-19 | pass→pass | 11,338 | 5,869 | -48% | 1 | 1 | 0% | 1,876 | 1,804 | -4% | 0 | 0 | — |
case-20 | pass→pass | 10,424 | 8,686 | -17% | 1 | 1 | 0% | 1,806 | 2,253 | +25% | 0 | 0 | — |
case-22 | pass→pass | 14,004 | 13,278 | -5% | 1 | 1 | 0% | 2,405 | 3,002 | +25% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 20 counted toward the lift figure. The other 2 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of -5 percentage points is the difference between those two pass rates over the 20 comparable cases. 2 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
| Model | Method | Date | Lift |
|---|---|---|---|
| gemini-3.6-flash | verified | 8/14/2026 | +26% |
Other measured skills in the registry, with their headline benchmark lift.