refactor
A refactoring skill from the claude-howto guide to Claude Code, based on Martin Fowler's book on refactoring.
スキルの内容
A refactoring skill from the claude-howto guide to Claude Code, based on Martin Fowler's book on refactoring. It works in six phases, each needing the user's approval: understand the code and goals, check test coverage and decide whether to write tests first, find code smells such as long methods, duplication or feature envy and rank them, plan specific refactorings in phases with rollback steps, make one small change at a time and commit only when tests pass, and finally compare complexity before and after. It lists when to stop and ask, and refuses to refactor without tests unless the user accepts the risk. Bundled Python scripts detect smells and measure complexity.
できること
- Check test coverage before refactoring
- Find and rank code smells
- Plan refactorings with rollback steps
- Measure complexity before and after
概要
- 公開元
- luongnv89
- ツール
- コードレビュー
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
含まれるファイル
- references/code-smells.md
- references/refactoring-catalog.md
- scripts/analyze-complexity.py
- scripts/detect-smells.py
- templates/refactoring-plan.md
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
このスキルには、エージェントが実行する可能性のあるスクリプトが含まれています。
詳細
luongnv89のほかの掲載
スキル4件
luongnv89の掲載4件をすべて見る →こちらにも掲載: コードレビュー
出典
- スキルファイル(SKILL.md)github.com/luongnv89/claude-howto · 根拠となる項目:スクリプトを含む2026年11月10日
- GitHubリポジトリgithub.com/luongnv89/claude-howto · 根拠となる項目:公開元, 活動状況, ライセンス2026年11月11日
- リポジトリ内のフォルダ(refactor)github.com/luongnv89/claude-howto · 根拠となる項目:スクリプトを含む2026年11月10日