implement-plan

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Implement Plan

实施计划

You are tasked with implementing an approved technical plan from
.claude/scratchpad/{plan_name}.md
. These plans contain phases with specific changes and success criteria. If no file is provided, ask for one.
你的任务是实现来自
.claude/scratchpad/{plan_name}.md
的已获批技术计划。这些计划包含带有具体变更内容和成功标准的多个阶段。 如果未提供文件,请索要文件。

Getting Started

开始实施

When given a plan path:
  • Read the plan completely and check for any existing checkmarks (- [x])
  • Read the original ticket and all files mentioned in the plan
  • Read files fully - never use limit/offset parameters, you need complete context
  • Think deeply about how the pieces fit together
  • Create a todo list to track your progress
  • Start implementing if you understand what needs to be done
If no plan path provided, ask for one.
当获得计划路径时:
  • 完整阅读计划并检查是否存在已勾选的项目(- [x])
  • 阅读原始需求工单(ticket)以及计划中提及的所有文件
  • 完整阅读文件 - 切勿使用limit/offset参数,你需要完整的上下文信息
  • 深入思考各部分内容如何整合
  • 创建待办事项列表以跟踪进度
  • 若明确需要完成的工作,即可开始实施
如果未提供计划路径,请索要路径。

Implementation Philosophy

实施理念

Plans are carefully designed, but reality can be messy. Your job is to:
  • Follow the plan's intent while adapting to what you find
  • Implement each phase fully before moving to the next
  • Verify your work makes sense in the broader codebase context
  • Update checkboxes in the plan as you complete sections
When things don't match the plan exactly, think about why and communicate clearly. The plan is your guide, but your judgment matters too.
If you encounter a mismatch:
  • STOP and think deeply about why the plan can't be followed
  • Present the issue clearly:
    Issue in Phase [N]:
    Expected: [what the plan says]
    Found: [actual situation]
    Why this matters: [explanation]
    
    How should I proceed?
计划是经过精心设计的,但实际情况可能错综复杂。你的职责是:
  • 在遵循计划意图的同时,根据实际情况灵活调整
  • 完全完成一个阶段的工作后,再进入下一个阶段
  • 验证你的工作在整个代码库的语境下是否合理
  • 完成计划中的章节后,更新对应的复选框
当实际情况与计划不完全匹配时,思考原因并清晰沟通。计划是你的指南,但你的判断也至关重要。
如果遇到不匹配的情况:
  • 暂停工作,深入思考为何无法遵循计划
  • 清晰地呈现问题:
    第[N]阶段问题:
    预期:[计划中的描述]
    实际:[实际情况]
    影响:[解释说明]
    
    我应如何推进?

Verification Approach

验证方法

After implementing a phase:
  • Fix any issues before proceeding
  • Update your progress in both the plan and your todos
  • Check off completed items in the plan file itself using Edit
Don't let verification interrupt your flow - batch it at natural stopping points.
完成一个阶段的实施后:
  • 在推进下一阶段前,修复所有问题
  • 在计划和待办事项列表中更新进度
  • 使用编辑功能在计划文件中勾选已完成的项目
不要让验证工作打断你的工作节奏 - 选择自然的停顿点批量进行验证。

If You Get Stuck

遇到问题时

When something isn't working as expected:
  • First, make sure you've read and understood all the relevant code
  • Consider if the codebase has evolved since the plan was written
  • Present the mismatch clearly and ask for guidance
Use sub-tasks sparingly - mainly for targeted debugging or exploring unfamiliar territory.
当遇到无法按预期运行的情况时:
  • 首先,确保你已阅读并理解所有相关代码
  • 考虑代码库自计划编写以来是否有更新
  • 清晰地呈现不匹配的情况并寻求指导
谨慎使用子任务 - 主要用于针对性调试或探索不熟悉的领域。

Resuming Work

恢复工作

If the plan has existing checkmarks:
  • Trust that completed work is done
  • Pick up from the first unchecked item
  • Verify previous work only if something seems off
Remember: You're implementing a solution, not just checking boxes. Keep the end goal in mind and maintain forward momentum.
如果计划中已有勾选的项目:
  • 默认已完成的工作是正确的
  • 从第一个未勾选的项目开始继续
  • 仅当发现异常时,才验证之前的工作
记住:你是在实现一个解决方案,而不仅仅是勾选完成项。时刻牢记最终目标,保持前进的动力。