Lesson Extractor

Extracts actionable lessons from analyzed work context to prevent repeated mistakes.

1|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/htxryan/claude-code-config-profiles --skill lesson-extractor-htxryan
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: Lesson Extractor
Source: https://github.com/htxryan/claude-code-config-profiles/tree/main/.agents/skills/compound/agents/lesson-extractor
Command: npx skills add https://github.com/htxryan/claude-code-config-profiles --skill lesson-extractor-htxryan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams repeat the same mistakes because insights from past work are never captured in a structured, reusable form. This Skill turns analyzed work context into specific, actionable lessons that prevent future errors. ## Core Features & Use Cases - Lesson Extraction: Identifies mistake patterns, correction moments, and surprises from context analysis output and converts them into structured lessons with Insight, Trigger, and Context fields. - Deduplication: Uses ca search to check for duplicate lessons before storing new ones. - Parallel Extraction: Spawns opus subagents to extract lessons from different domain areas in parallel when many corrections exist. - Use Case: After a debugging session where a misconfigured permission caused repeated failures, run this Skill to capture the lesson "verify permission scopes before deployment" with its trigger conditions, then share it with pattern-matcher and solution-writer agents for classification and storage. ## Quick Start Ask the agent to extract actionable lessons from the current work context analysis and share them with the pattern-matcher and solution-writer teammates.

Frequently Asked Questions about Lesson Extractor

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

FAQPage Schema
How do I extract lessons from a work session?▼

Review the context analysis output for mistake patterns, corrections, and surprises, then ask what should be done differently next time for each one. Each lesson is formatted with an Insight directive, a Trigger describing when it applies, and Context explaining why it matters.

How does lesson deduplication work before storing?▼

Run ca search to check whether a similar lesson already exists in the knowledge base before adding a new one. This prevents duplicate entries and keeps the stored lesson set clean.

What makes a lesson too generic to keep?▼

Lessons that are obvious or lack actionable guidance are filtered out. Each retained lesson must be specific and provide concrete direction that changes future behavior in a defined trigger situation.

Can lesson extraction run in parallel across domains?▼

Yes. When many corrections or discoveries exist, the Skill spawns opus subagents to extract lessons from different domain areas in parallel, speeding up processing of large context analyses.

How does this agent collaborate with other team agents?▼

It shares extracted lessons with pattern-matcher and solution-writer via direct SendMessage communication so they can classify and store them, and consults context-analyzer to clarify ambiguous findings.