skills/code-simplification/SKILL.md
Use when code feels over-engineered, before refactoring, or as a cleanup step after implementation. Use when asked to simplify, reduce complexity, or make code clearer. Do NOT use for performance optimization, feature work, or architecture redesign.
npx skillsauth add paulund/skills code-simplificationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
hitl issue.git add -A && git commit -m "simplify: <summary>" && git push.| Rationalization | Reality | |---|---| | "This abstraction will be useful later" | Speculative generality is bloat. Wait for the third occurrence (AHA). | | "The code works, don't touch it" | Working code can still be unnecessarily complex. Simplicity reduces future bug cost. | | "It's just one small wrapper" | Every wrapper is indirection. A pass-through wrapper that concentrates no logic is noise. | | "But I already wrote it" | Sunk cost. If it fails the deletion test, remove it. | | "Someone might need this interface someday" | They'll create it when they need it. Don't build bridges to nowhere. |
| File | When to load |
|------|-------------|
| references/architecture-rules.md | When evaluating whether a boundary or abstraction is justified |
| references/language.md | When writing simplification proposals or documentation |
development
Use when implementing any logic, fixing any bug, or changing any behaviour. Use when you need to prove code works, when a bug report arrives, or when modifying existing functionality. Do NOT use for config changes, data migrations, or dependency updates.
development
Use when starting a new feature, when requirements are unclear, when asked to write code without a clear spec, or before any non-trivial implementation. Do NOT use for trivial bug fixes or one-line changes.
development
Use when you want authoritative, source-cited code free from outdated patterns. Use when building with any framework or library where correctness matters. Detects the stack from dependency files, fetches official documentation, implements following documented patterns, and cites sources for every framework-specific decision.
development
Use when preparing to ship a feature, release, or deployment. Use before merging to main, creating a release, or deploying to production. Do NOT use for CI-only changes or internal refactors that don't reach production.