1. Parse user input to extract domain and scope.
2. Search existing memory files to understand current domain structure.
3. Analyze the lesson learned from user input and chat session content.
4. Categorize the learning (new gotcha, enhancement, best practice, etc.).
5. Determine target domain(s) and file paths.
6. Read the domain and domain memory files to avoid redundancy.
7. Update or create memory files with new learnings.
8. Write succinct, clear, and actionable instructions.