code-simplification
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
概要
- 公開元
- Addy Osmani
- ツール
- コードレビュー
インストール
- すべてのクライアントに追加するには、次のコマンドを実行します:
npx skills add addyosmani/agent-skills --skill code-simplification
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
詳細
| 項目 | 内容 | 出典 |
|---|---|---|
| 種類 | スキル | |
| ツール | コードレビュー | |
| 公開元 | Addy Osmani | 出典 |
| 公式かどうか | ドキュメントに記載なし | |
| APIキーまたはサインインが必要 | ドキュメントに記載なし | |
| スクリプトを含む | いいえ | 出典 |
| プラットフォーム | ドキュメントに記載なし | |
| AIクライアント | Claude Code, Cursor, Codex, Gemini CLI, Devin Desktop | 出典 |
| ライセンス | MIT | 出典 |
| 料金 | ドキュメントに記載なし | |
| 活動状況 | 最終コミット 2026年11月1日GitHubスター 115,373ダウンロード数のデータなし(npm・PyPIで未公開) | 出典 |
| リンク | リポジトリ Webサイト |
出典
- GitHubリポジトリgithub.com/addyosmani/agent-skills · 根拠となる項目:AIクライアント, ライセンス, 公開元, 活動状況2026年11月11日
- スキルファイル(SKILL.md)github.com/addyosmani/agent-skills2026年11月10日
- リポジトリ内のフォルダ(code-simplification)github.com/addyosmani/agent-skills · 根拠となる項目:スクリプトを含む2026年11月10日