refactor-plan by github/awesome-copilot
npx skills add https://github.com/github/awesome-copilot --skill refactor-plan为此重构任务创建详细计划。
{{refactor_description}}
## 重构计划: [标题]
### 当前状态
[简要描述当前的工作方式]
### 目标状态
[简要描述重构后的工作方式]
### 受影响文件
| 文件 | 变更类型 | 依赖关系 |
|------|-------------|--------------|
| 路径 | 修改/创建/删除 | 阻塞 X,被 Y 阻塞 |
### 执行计划
#### 阶段 1: 类型和接口
- [ ] 步骤 1.1: 在 `file.ts` 中执行 [操作]
- [ ] 验证: [如何检查是否成功]
#### 阶段 2: 实现
- [ ] 步骤 2.1: 在 `file.ts` 中执行 [操作]
- [ ] 验证: [如何检查]
#### 阶段 3: 测试
- [ ] 步骤 3.1: 更新 `file.test.ts` 中的测试
- [ ] 验证: 运行 `npm test`
#### 阶段 4: 清理
- [ ] 移除已弃用的代码
- [ ] 更新文档
### 回滚计划
如果出现故障:
1. [撤销步骤]
2. [撤销步骤]
### 风险
- [潜在问题及缓解措施]
是否继续执行阶段 1?
每周安装量
7.6K
代码仓库
GitHub 星标数
27.0K
首次出现
2026年2月25日
安全审计
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
安装于
codex7.5K
gemini-cli7.5K
opencode7.5K
github-copilot7.5K
cursor7.5K
kimi-cli7.5K
Create a detailed plan for this refactoring task.
{{refactor_description}}
## 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?
Weekly Installs
7.6K
Repository
GitHub Stars
27.0K
First Seen
Feb 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex7.5K
gemini-cli7.5K
opencode7.5K
github-copilot7.5K
cursor7.5K
kimi-cli7.5K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装