$npx -y skills add Archive228/loopkit --skill simplifyReduce a change to the minimum that solves the problem. Use when code is over-engineered or a diff is bloated.
| 1 | # Simplify |
| 2 | Over-engineering is the default failure mode. Cut it: |
| 3 | - **Premature abstraction** — a class/strategy/factory for one caller. Inline it. Abstract on the THIRD use, not the first. |
| 4 | - **Speculative config** — a parameter/flag/env var for something that never changes. Hardcode it until there's a real reason. |
| 5 | - **Dead flexibility** — an interface with one implementation, a generic with one type. Delete the indirection. |
| 6 | - **Defensive noise** — null checks on values that can't be null, try/except for errors that can't happen. Handle only real failure modes. |
| 7 | Test: can you justify every changed line by a direct connection to what was asked? If a line is there "while I was in there", revert it. |