Captures reusable knowledge in .lo/solutions/ after completing work. Documents patterns, decisions, and techniques that could help in future projects. Use when user says "capture solution", "what did I learn", "save knowledge", "document pattern", or "/lo:solution". Also prompted after /lo:ship.
Captures reusable knowledge in .lo/solutions/. Solutions compound over time — future /lo:plan sessions scan this directory before starting from scratch, so every solution you capture makes the next project faster.
/lo:solution/lo:ship completesIf invoked after /lo:ship or from a work context, gather context automatically from the recent work (feature ID, changed files, branch). Otherwise, prompt:
"What was the problem? What did you learn? What's reusable?"
If the answer sounds project-specific rather than reusable, gently redirect: "Is there a reusable pattern buried in here? Let's extract just that part."
<append-existing> If a related solution already exists, offer to append rather than creating a duplicate: <create-new> If no related solution exists, proceed to Step 3 to create a new one. </create-new>Scan .lo/solutions/ for related solutions.
Found a related solution: s003 "Response Caching Pattern"
Append to this solution, or create a new one?
1. Append (recommended — avoids duplicates)
2. New solution
When appending, add a new section under a ## YYYY-MM-DD — Additional Finding heading with Problem, Solution, and Context subsections. Update the frontmatter date: to today and merge new tags with existing. Keep the same id.
</append-existing>
Determine the next sequential ID by scanning .lo/solutions/:
# Find highest existing ID
ls .lo/solutions/s*.md 2>/dev/null | sort -t's' -k2 -n | tail -1
# → s003-response-caching.md → next ID is s004
IDs are permanent — never reuse an ID, even after deletion.
Derive a topic slug from the problem/solution domain (not from the feature name). Filename: s{NNN}-topic-slug.md (kebab-case, 2-5 words).
# Example path:
# .lo/solutions/s004-bun-debugger-workaround.md
Solution file format:
---