lesson
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.
How do I install this agent skill?
npx skills add https://github.com/cortexreach/memory-lancedb-pro --skill lessonIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill extracts insights from conversation history and uses them to update long-term memory and its own configuration files. It is vulnerable to indirect prompt injection because it lacks safeguards when processing potentially untrusted data from the conversation.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
1 file scanned · No issues
What does this agent skill do?
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
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/cortexreach/memory-lancedb-pro/lesson">View lesson on skillZs</a>