conductor-revert
按逻辑工作单元撤销 Git 更改
按跟踪、阶段或任务安全撤销 Git 提交,同时完整保留历史记录。此技能提供结构化的撤销工作流程,包含明确的确认和冲突检测。
下载技能 ZIP
在 Claude 中上传
前往 设置 → 功能 → 技能 → 上传技能
开启并开始使用
测试它
正在使用“conductor-revert”。 Revert task 2.3 in auth_20250115
预期结果:
REVERT 执行计划
目标:auth_20250115 中的任务 2.3
要撤销的提交(按时间倒序):
1. abc1234 - feat: add OAuth callback handler (auth_20250115)
2. def5678 - chore: mark task 2.3 complete (auth_20250115)
受影响的文件:
- src/auth/oauth.ts(将被删除)
- src/routes/callback.ts(将被删除)
- conductor/tracks/auth_20250115/plan.md(已修改)
计划更新:
- 任务 2.3: [~] -> [ ]
!! 警告 !!
此操作将:
- 创建 2 个撤销提交
- 修改 3 个文件
- 将 1 个任务重置为待处理状态
输入 'YES' 继续,或输入其他内容取消:
正在使用“conductor-revert”。 Revert phase 1 in dashboard_20250112
预期结果:
REVERT 执行计划
目标:dashboard_20250112 中的阶段 1(任务 1.1 到 1.4)
要撤销的提交(按时间倒序):
1. ghi9012 - feat: add dashboard export (dashboard_20250112)
2. jkl3456 - chore: mark task 1.4 complete (dashboard_20250112)
3. mno7890 - feat: add chart filters (dashboard_20250112)
4. pqr1234 - chore: mark task 1.3 complete (dashboard_20250112)
5. stu5678 - feat: add data hooks (dashboard_20250112)
6. vwx9012 - chore: mark task 1.2 complete (dashboard_20250112)
7. yza3456 - feat: add chart rendering (dashboard_20250112)
8. bcd7890 - chore: mark task 1.1 complete (dashboard_20250112)
输入 'YES' 继续,或输入其他内容取消:
安全审计
安全All 59 static analysis findings are false positives. The detected 'external_commands' patterns are Markdown documentation examples, not executable code. The skill describes safe git revert operations with explicit safety rules forbidding dangerous commands like git reset --hard and git push --force. Requires explicit user confirmation before any changes.
风险因素
⚙️ 外部命令 (54)
质量评分
你能构建什么
撤销失败的功能实现
撤销引入错误或不符合要求的特定任务的所有提交
恢复到之前的工作状态
撤销整个阶段的工作,在重大重构前返回到已知的良好状态
清理实验性工作
移除未合并到生产的实验性跟踪的所有痕迹
试试这些提示
Revert task 2.3 in the auth_20250115 track. Show me what commits will be affected and confirm before proceeding.
Revert phase 2 of the dashboard_20250112 track. I want to see the full plan with all affected files before confirming.
Help me revert some recent work. Show me the available tracks and tasks I can revert.
Revert the entire experiment_20250120 track. This experimental feature was not approved and needs to be fully removed from history.
最佳实践
- 在确认任何撤销操作之前,始终查看完整的执行计划
- 撤销完成后运行测试以验证应用程序正常工作
- 在撤销共享或已审查的工作之前与团队沟通
避免
- 不要使用此技能向团队成员隐藏错误 - 应公开讨论问题
- 避免在未经协调的情况下撤销他人基于其构建的工作
- 不要跳过明确确认步骤 - 始终先查看计划