code-simplification
A skill from Addy Osmani's agent-skills collection for making working code easier to read without changing what it does.
O que a skill ensina
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.
O que faz
- Find nesting, naming and duplication problems in working code
- Refactor in small steps with tests run after each
- Keep behaviour and existing tests unchanged
Sobre
- Publicador
- Addy Osmani
- Ferramenta
- Revisão de código
Funciona com
Instalação
- Execute este comando para adicionar ao Qualquer cliente:
npx skills add addyosmani/agent-skills --skill code-simplification
Servidores MCP e skills podem executar código no seu computador e agir sobre os seus dados. Revise o código-fonte antes de instalar.
Detalhes
| Fato | Valor | Fonte |
|---|---|---|
| Tipo | Skill | |
| Ferramenta | Revisão de código | |
| Publicador | Addy Osmani | fonte |
| Status oficial | Não informado na documentação | |
| Exige chave de API ou login | Não informado na documentação | |
| Inclui scripts | Não | fonte |
| Plataformas | Não informado na documentação | |
| Clientes de IA | Claude Code, Cursor, Codex, Gemini CLI, Devin Desktop | fonte |
| Licença | MIT | fonte |
| Preço | Não informado na documentação | |
| Atividade | Último commit em 1 de nov. de 2026115.373 estrelas no GitHubDados de download indisponíveis (não está no npm nem no PyPI) | fonte |
| Links | Repositório Site |
Fontes
- Repositório no GitHubgithub.com/addyosmani/agent-skills · Comprova: Clientes de IA, Licença, Publicador, Atividade11 de nov. de 2026
- Arquivo da skill (SKILL.md)github.com/addyosmani/agent-skills10 de nov. de 2026
- Pasta no repositório (code-simplification)github.com/addyosmani/agent-skills · Comprova: Inclui scripts10 de nov. de 2026