lessons-learned

Extract and persist actionable learnings, decisions, and preferences from conversation history.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/lklimek/memcan --skill lessons-learned-lklimek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lessons-learned
Source: https://github.com/lklimek/memcan/tree/main/skills/lessons-learned
Command: npx skills add https://github.com/lklimek/memcan --skill lessons-learned-lklimek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the common issue of AI agents forgetting crucial information, lessons, and decisions made during a project, leading to repeated mistakes and loss of valuable context.

Core Features & Use Cases

  • Extracts Key Learnings: Identifies and saves actionable insights from conversations, including bugs, architectural decisions, user preferences, and recurring patterns.
  • Ensures Quality: Filters out vague or ephemeral information, saving only specific, self-contained, and actionable memories.
  • Opportunistic Cleanup: Automatically updates or deletes outdated or duplicate memories encountered during the extraction process.
  • Categorization and Scoping: Assigns scope (global/project) and type (lesson/decision/preference) to memories for better organization and retrieval.
  • Use Case: After a complex debugging session, this Skill can save the specific workaround for a tricky bug, ensuring the agent doesn't waste time on it again in future sessions.

Quick Start

Invoke the lessons-learned skill to extract and save key insights from our current conversation.

Frequently Asked Questions about lessons-learned

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I persist AI agent memory and context across multiple sessions?

To persist AI agent memory across sessions, you need a mechanism that extracts actionable learnings, architectural decisions, and user preferences from conversation history and stores them as self-contained records. This ensures context retention and prevents repeated mistakes.

What is the best way to extract architectural decisions from conversation history?

Extracting architectural decisions from conversation history involves identifying specific, actionable insights and categorizing them by scope (global or project) and type (lesson, decision, or preference). Quality gating filters out vague information, saving only self-contained memories for future retrieval.

Can I prevent my AI agent from repeating the same debugging mistakes?

You can prevent repeated debugging mistakes by capturing specific workarounds for tricky bugs as persistent lessons. After a complex debugging session, extracting and saving these actionable insights ensures the agent retains the knowledge and avoids wasting time on the same issues.

How does deduplication work when saving lessons learned and user preferences?

Deduplication during lessons learned extraction works through opportunistic cleanup, automatically updating or deleting outdated and duplicate memories encountered in the process. This ensures the persistent memory store remains organized, specific, and free of redundant context across interactions.

When do I need persistent memory storage for my AI agent?

You need persistent memory storage for your AI agent when working on projects requiring context retention across interactions, such as tracking recurring patterns, saving user preferences, or logging architectural decisions. It prevents the loss of valuable project context between separate sessions.