archive
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInputs
输入参数
- Plan file path (default: most recent non-in
.done.md)ai-workspace/plans/
- 计划文件路径(默认值:目录下最新的非
ai-workspace/plans/格式文件).done.md
Steps
操作步骤
-
Find the plan file:bash
ls -t ai-workspace/plans/*.md | grep -v '.done.md' | head -1If plan is already→ error: "Already archived.".done.md -
Read the plan file to understand what was planned.
-
Gather outcomes: Ask the user (or infer from git log + branch context):
- What worked well?
- What didn't go as planned?
- What would you do differently?
If user skips → write "Outcomes: not recorded" (don't block). -
Write Outcomes & Learnings section to the plan file:markdown
## Outcomes & Learnings **Completed**: [date] ### What Worked - [bullet points] ### What Didn't - [bullet points] ### Learnings - [bullet points] -
Rename to .done.md:bash
git mv ai-workspace/plans/<name>.md ai-workspace/plans/<name>.done.md -
Commit the archive:bash
git add ai-workspace/plans/<name>.done.md git commit -m "docs: archive plan <name>"
Output: Confirmation that the plan is archived with path to file.
.done.md-
查找计划文件:bash
ls -t ai-workspace/plans/*.md | grep -v '.done.md' | head -1如果计划文件已经是格式 → 报错:"已归档。".done.md -
读取计划文件,了解原定的计划内容。
-
收集成果信息:询问用户(或从git日志+分支上下文推断):
- 哪些部分进展顺利?
- 哪些部分没有按计划推进?
- 你会做出哪些调整?
如果用户跳过填写 → 写入"成果:未记录"即可(不要阻塞流程)。 -
向计划文件中写入成果与经验总结章节:markdown
## Outcomes & Learnings **Completed**: [date] ### What Worked - [bullet points] ### What Didn't - [bullet points] ### Learnings - [bullet points] -
重命名为.done.md格式:bash
git mv ai-workspace/plans/<name>.md ai-workspace/plans/<name>.done.md -
提交归档内容:bash
git add ai-workspace/plans/<name>.done.md git commit -m "docs: archive plan <name>"
输出:计划已归档的确认信息,以及文件的路径。
.done.md