本文へスキップ
Kitbay
掲載依頼
スキル

code-simplification

MIT2026年11月1日 更新115,373GitHubスター

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

スキルの内容

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.

できること

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