Zum Inhalt springen
Kitbay
Einreichen
Skill

code-simplification

MITAktualisiert am 1. Nov. 2026115.373GitHub-Sterne

A skill from Addy Osmani's agent-skills collection for making working code easier to read without changing what it does.

Was der Skill vermittelt

A skill from Addy Osmani's agent-skills collection for making working code easier to read without changing what it does. Inspired by Claude Code's simplifier plugin but written for any agent, it asks the agent to understand the code first (its callers, tests and history), then look for deep nesting, long functions, nested ternaries, vague names, duplicated or dead code and needless wrappers, and fix them one small step at a time, running tests after each and keeping refactors apart from feature work. Behaviour, errors and edge cases must stay identical and existing tests must pass unchanged. It includes TypeScript, Python and React examples, common excuses with rebuttals, and a final checklist.

Funktionen

  • Find nesting, naming and duplication problems in working code
  • Refactor in small steps with tests run after each
  • Keep behaviour and existing tests unchanged