| name | branch-abandon |
| description | Abandon branch, salvage knowledge to project level, and archive. |
/branch-abandon
Abandon the current branch and salvage knowledge.
Steps
- Confirm current branch is not a default branch (main/develop/master). Refuse if it is.
- Ask: "Why is this branch being abandoned?" Capture the reason.
- Review all branch-level knowledge and workflow overlays:
- General insights (architectural patterns, hardware behavior, debugging techniques) → promote to project level
- Negative results ("don't do X because Y") → promote to project
knowledge/lessons-learned.md
- Branch-specific details → archive only
- Present summary: "This branch discovered: . Promote these to project level?"
- Apply promotions (append to project-level files, update indexes).
- Move
branches/<sanitized>/ to archive/<sanitized>/.
- Update
archive/<sanitized>/meta.md with **Status:** abandoned and reason.
- Report: "Branch abandoned. findings promoted to project level, archived."