Loading...
Loading...
Use when ending a session, wrapping up work, saying goodbye, or transitioning to a new task context after completing a development cycle
npx skill4agent add camacho/ai-skills wrap/reflect.last-reflect-tsgit worktree list.worktrees/BRANCH=$(git -C <worktree-path> rev-parse --abbrev-ref HEAD)
git branch --merged main | grep -q "$BRANCH" && MERGED=true || MERGED=falsegit worktree remove <path>git branch -d $BRANCH.branch-context.mdSession cleanup:
Removed: .worktrees/feat-foo (branch feat/foo, merged)
Kept: .worktrees/feat-baz (branch feat/baz, NOT merged)
Cleaned: .branch-context.md (learnings consolidated)Session wrapped. Typewhen ready./clear
| Mistake | Fix |
|---|---|
| Inlining reflect logic | Invoke |
| Removing unmerged worktrees | Warn only — never delete unmerged work |
| Invoking /clear directly | Tell user to type it — /clear is a built-in |
| Cleaning main worktree | Only clean |
| Skipping cleanup report | Always report what was cleaned/kept |