refactor
An example skill from the claude-howto guide to Claude Code for refactoring code in phases, following Martin Fowler's approach of changing structure without changing behaviour.
スキルの内容
An example skill from the claude-howto guide to Claude Code for refactoring code in phases, following Martin Fowler's approach of changing structure without changing behaviour. The agent first clarifies scope and reads the code, then checks test coverage and offers to write tests before changing anything. It lists code smells, optionally with a bundled detection script, maps each to refactorings, and plans them in tiers from quick renames to structural and architectural changes, asking for approval at each phase. Changes are made one small step at a time, with tests run and a commit after each green step, and complexity is compared before and after. Reference files hold the smell and refactoring catalogues.
できること
- Identify code smells with locations
- Plan refactorings in risk tiers
- Refactor in small tested commits
- Compare complexity before and after
概要
- 公開元
- luongnv89
- ツール
- コードレビュー
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
含まれるファイル
- references/code-smells.md
- references/refactoring-catalog.md
- templates/refactoring-plan.md
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
このスキルには、エージェントが実行する可能性のあるスクリプトが含まれています。
詳細
出典
- スキルファイル(SKILL.md)github.com/luongnv89/claude-howto · 根拠となる項目:AIクライアント, スクリプトを含む2026年11月16日
- GitHubリポジトリgithub.com/luongnv89/claude-howto · 根拠となる項目:公開元, 活動状況, ライセンス2026年11月11日
- スキルファイル(SKILL.md)github.com/luongnv89/claude-howto2026年11月10日
- リポジトリ内のフォルダ(refactor)github.com/luongnv89/claude-howto · 根拠となる項目:スクリプトを含む2026年11月10日