Lesson
ProductivitylessonLesson is an Agent Skill for productivity published in the CortexReach/memory-lancedb-pro repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Store a lesson learned from the current conversation. Triggered by /lesson command. Use when Master signals that the recent conversation contains a pitfall, fix, or key insight that should be persisted to long-term memory.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/CortexReach/memory-lancedb-pro/blob/HEAD/skills/lesson/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/lesson, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Lesson 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