About archive
An agent skill that archives a completed work plan by recording outcomes and learnings, renaming the plan, and committing the change. It is intended for repository workflows that keep plans under ai-workspace/plans/.
Key features
- 01Find the latest active plan
- 02Record outcomes and learnings
- 03Rename the plan as completed
- 04Commit the archived plan
Use cases
- 01Archiving a finished implementation plan
- 02Capturing lessons after project work
- 03Keeping a repository plan history
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ camacho/ ai-skills --skill archiveAfter installing, type/archivein Claude Code to confirm it loaded.
Details
From the project READMEInputs
WORKTREE: absolute path to current worktree (resolve from session CWD orgit rev-parse --show-toplevel)- Plan file path (default: most recent non-
.done.mdin$WORKTREE/ai-workspace/plans/)
Steps
-
Find the plan file:
ls -t "$WORKTREE/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 -C "$WORKTREE" mv ai-workspace/plans/<name>.md ai-workspace/plans/<name>.done.md -
Commit the archive:
git -C "$WORKTREE" add ai-workspace/plans/<name>.done.md git -C "$WORKTREE" commit -m "docs: archive plan <name> Co-Authored-By: Claude <model>"
Output: Confirmation that the plan is archived with path to .done.md file.
Comments
Markdown supported