lesson

lesson is a skill for Claude Code, Codex from cablate/memory-lancedb-mcp. It costs 45 tokens per session (278 once invoked), scanned A, original, MIT.

A command that extracts a lesson from the current conversation and stores it as long-term memory. It records pitfalls, fixes, and decision principles for later recall.

In plain words
What is it for?
Saving technical lessons, causes and fixes for bugs, prevention advice, and reusable decision rules.
Why use it?
It reduces the chance of repeating a discovered mistake or forgetting an important rule from earlier work.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Saving technical lessons, causes and fixes for bugs, prevention advice, and reusable decision rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cablate/memory-lancedb-mcp/lesson
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cablate/memory-lancedb-mcp --skill lesson
Clone the repo
git clone --depth 1 https://github.com/cablate/memory-lancedb-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lesson

README.md
[![agentmods](https://agentmods.dev/badge/skills/cablate/memory-lancedb-mcp/lesson/github.svg)](https://agentmods.dev/skills/cablate/memory-lancedb-mcp/lesson)
Your own site
<a href="https://agentmods.dev/skills/cablate/memory-lancedb-mcp/lesson"><img src="https://agentmods.dev/badge/skills/cablate/memory-lancedb-mcp/lesson/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lesson

Your own site · 80×15
<a href="https://agentmods.dev/skills/cablate/memory-lancedb-mcp/lesson"><img src="https://agentmods.dev/badge/skills/cablate/memory-lancedb-mcp/lesson.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 278 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.00278
Opus 5.5 $0.00018 $0.00111
Sonnet 5.5 $0.00009 $0.00056
Haiku 4.5 $0.00005 $0.00028

Measured 1mo ago against content hash e02c38922b43, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lesson scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/lesson/SKILL.md · 29 lines

What it actually says

Lesson Extraction & Storage

When triggered, extract and store lessons from the recent conversation context.

Steps

  1. Scan recent context — identify the pitfall, bug fix, or key insight just discussed
  2. Store technical layer (category: fact, importance ≥ 0.8):
    Pitfall: [symptom]. Cause: [root cause]. Fix: [solution]. Prevention: [how to avoid].
    
  3. Store principle layer (category: decision, importance ≥ 0.85):
    Decision principle ([tag]): [behavioral rule]. Trigger: [when]. Action: [what to do].
    
  4. Verify — memory_recall with anchor keywords to confirm both entries retrievable
  5. 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
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 29 lines · 45 tokens per session scan A e02c38922b43

Subscribe to this mod's changes

lesson is a skill published in the GitHub repository cablate/memory-lancedb-mcp (0 stars, last pushed 5mo ago), licensed MIT. It adds 45 tokens to every session and 278 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

memory-audit-belief-duel

A guided review process for conflicting beliefs or memories. It examines cases where two conclusions cannot both be true, including conflicts between a general rule and a more specific memory.

Dataojitori/nocturne_memory · 38 tokens

memory-audit-discoverability

A review guide for checking whether stored memories can be found at the right time. It focuses on where memories are attached, when they are triggered, whether aliases are missing, and whether a parent has too many children.

Dataojitori/nocturne_memory · 35 tokens

memory-audit-node-decomposition

A method for splitting an oversized knowledge note into smaller notes, each focused on one independent idea. It also explains how to keep useful core information in the original note.

Dataojitori/nocturne_memory · 34 tokens

memory-audit-pattern-extraction

A method for investigating repeated mistakes by comparing related memories and checking whether an earlier reminder failed. It looks at where the reminder was stored, when it was created, and whether it was strong enough to prevent the mistake.

Dataojitori/nocturne_memory · 48 tokens

memory-audit

An entry point for reviewing and maintaining an AI agent's stored memories. It describes how to remove repetition, preserve useful reasoning, and update memories when old conclusions no longer fit.

Dataojitori/nocturne_memory · 37 tokens

memory-audit-dead-data-purge

A review process for identifying memories that do not change future actions. It tests whether a note contains useful, experience-based guidance or only sounds meaningful without affecting decisions.

Dataojitori/nocturne_memory · 37 tokens