R
refactor-plan
by @githubv
4.5(300)
複数のファイルのコードリファクタリングを計画し、正しい順序とロールバック手順を含め、安全で制御可能なリファクタリングプロセスを確保します。
インストール方法
npx skills add github/awesome-copilot --skill refactor-plancompare_arrows
Before / After 効果比較
1 组使用前
複数ファイルのリファクタリングにおいて綿密な計画が不足していると、コードの混乱、機能の損傷、またはロールバックの困難さにつながる可能性があります。これにより、リファクタリングのリスクが増大し、問題の修正に多大な時間と労力が費やされます。
使用後
正しい順序とロールバック手順を含む詳細なリファクタリング計画を入手できます。リファクタリングプロセスは安全かつ制御可能になり、リスクを効果的に低減し、コード品質とシステム安定性を確保します。
SKILL.md
Refactor Plan
Create a detailed plan for this refactoring task.
Refactor Goal
{{refactor_description}}
Instructions
- Search the codebase to understand current state
- Identify all affected files and their dependencies
- Plan changes in a safe sequence (types first, then implementations, then tests)
- Include verification steps between changes
- Consider rollback if something fails
Output Format
## Refactor Plan: [title]
### Current State
[Brief description of how things work now]
### Target State
[Brief description of how things will work after]
### Affected Files
| File | Change Type | Dependencies |
|------|-------------|--------------|
| path | modify/create/delete | blocks X, blocked by Y |
### Execution Plan
#### Phase 1: Types and Interfaces
- [ ] Step 1.1: [action] in `file.ts`
- [ ] Verify: [how to check it worked]
#### Phase 2: Implementation
- [ ] Step 2.1: [action] in `file.ts`
- [ ] Verify: [how to check]
#### Phase 3: Tests
- [ ] Step 3.1: Update tests in `file.test.ts`
- [ ] Verify: Run `npm test`
#### Phase 4: Cleanup
- [ ] Remove deprecated code
- [ ] Update documentation
### Rollback Plan
If something fails:
1. [Step to undo]
2. [Step to undo]
### Risks
- [Potential issue and mitigation]
Shall I proceed with Phase 1?
ユーザーレビュー (0)
レビューを書く
効果
使いやすさ
ドキュメント
互換性
レビューなし
統計データ
インストール数10.8K
評価4.5 / 5.0
バージョン
更新日2026年5月23日
比較事例1 件
ユーザー評価
4.5(300)
5
23%
4
51%
3
23%
2
2%
1
0%
この Skill を評価
0.0
対応プラットフォーム
🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI
タイムライン
作成2026年3月16日
最終更新2026年5月23日