Inputs
- Plan file path (default: most recent non-
.done.mdinai-workspace/plans/)
Steps
-
Find the plan file:
ls -t ai-workspace/plans/*.md | grep -v '.done.md' | head -1If plan is already
.done.md→ error: "Already archived." -
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:
## Outcomes & Learnings **Completed**: [date] ### What Worked - [bullet points] ### What Didn't - [bullet points] ### Learnings - [bullet points] -
Rename to .done.md:
git mv ai-workspace/plans/<name>.md ai-workspace/plans/<name>.done.md -
Commit the archive:
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 .done.md file.