About lesson
A skill for extracting technical pitfalls and behavioral principles from recent conversation context and storing them in memory. It is intended for agents that need to preserve lessons, verify retrieval, and report what was saved.
Key features
- 01Extracts pitfalls and key insights
- 02Stores technical facts and principles
- 03Verifies entries with memory recall
- 04Reports saved lessons
Use cases
- 01Save a bug fix discussed in a conversation
- 02Record a reusable behavioral rule
- 03Check that stored lessons can be retrieved
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ cortexreach/ memory-lancedb-pro --skill lessonAfter installing, type/lessonin Claude Code to confirm it loaded.
Details
From the project READMELesson Extraction & Storage
When triggered, extract and store lessons from the recent conversation context.
Steps
- Scan recent context — identify the pitfall, bug fix, or key insight just discussed
- Store technical layer (category: fact, importance ≥ 0.8):
Pitfall: [symptom]. Cause: [root cause]. Fix: [solution]. Prevention: [how to avoid]. - Store principle layer (category: decision, importance ≥ 0.85):
Decision principle ([tag]): [behavioral rule]. Trigger: [when]. Action: [what to do]. - Verify —
memory_recallwith anchor keywords to confirm both entries retrievable - Report — tell Master what was stored (brief summary)
Rules
- Keep entries short and atomic (< 500 chars each)
- If the lesson also affects a checklist or SKILL.md, update those files too
- If no clear lesson is found in recent context, ask Master what to store
Comments
Markdown supported