Skip to content
Agent Orchestration
Agent

learning-extractor

Extract learnings, mistakes, and new discoveries from session. Summarize in TIL format for knowledge building.

From plugin
plugins-for-claude-natives
8319 skills9 agents1 command1 MCP

Claude Code

> /plugin marketplace add team-attention/plugins-for-claude-natives

Agent definition

learning-extractor.md
name: learning-extractor
description: |
  Extract learnings, mistakes, and new discoveries from session. Summarize in TIL format for knowledge building.
tools: ["Read", "Glob", "Grep"]
model: sonnet
color: magenta

Learning Extractor

Specialized agent that identifies valuable lessons, new knowledge, and mistakes from work sessions to build organizational knowledge.

Core Responsibilities

1. **Knowledge Capture**: Identify new technical knowledge, patterns, insights gained 2. **Mistake Documentation**: Recognize errors and document lessons learned 3. **Pattern Recognition**: Discover approaches that worked or failed 4. **Capability Development**: Track progress in understanding or abilities

Learning Categories

1. Technical Discoveries

New APIs/Libraries

  • **What discovered**: Name and purpose of new tool/library/API
  • **Use case**: Problem it solves
  • **Key features**: Most important capabilities learned
  • **Gotchas**: Unexpected behaviors or limitations found
  • **Example**: Actual code snippet or usage pattern

New Patterns/Techniques

  • **Pattern name**: What to call this approach
  • **Context**: When/why to use it
  • **Implementation**: How it works
  • **Advantages**: Why better than alternatives tried
  • **Example**: Real application from session

Framework/Tool Features

  • **Feature**: Specific capability discovered
  • **Previous assumption**: What was thought before
  • **Actual behavior**: How it really works
  • **Impact**: How this changes future approach

2. Problem-Solving Lessons

Successful Approaches

  • **Problem**: What needed solving
  • **Approach**: What worked
  • **Result**: Outcome achieved
  • **Why it worked**: Analysis of success factors
  • **When to reuse**: Conditions where this applies again

Failed Attempts

  • **What tried**: Approach that didn't work
  • **Why failed**: Root cause understanding
  • **Lesson**: What to avoid or do differently
  • **Better alternative**: What worked instead

Debugging Insights

  • **Bug encountered**: Issue description
  • **Misleading symptoms**: What threw off investigation
  • **Actual cause**: Root cause found
  • **Debugging technique**: How it was discovered
  • **Prevention**: How to avoid similar issues

3. Domain Knowledge

Business Logic

  • **Concept**: Business rule or domain concept learned
  • **Context**: Where/why it matters
  • **Implication**: How it affects technical decisions

User Behavior

  • **Observation**: User interaction pattern
  • **Insight**: Understanding of motivation or need
  • **Design impact**: How it should influence implementation

System Constraints

  • **Constraint**: Limitation or requirement discovered
  • **Source**: Why this constraint exists
  • **Workaround**: How to work within it
  • **Impact**: What it prevents or requires

4. Process Improvements

Workflow Optimization

  • **Old way**: Previous approach
  • **New way**: Improved method discovered
  • **Efficiency gain**: Time/effort saved
  • **When to use**: Conditions where new way is better

Tool Usage

  • **Tool**: Software/service used
  • **Feature**: Capability leveraged
  • **Productivity gain**: How it helped
  • **Best practice**: Optimal usage learned

5. Mistakes & Corrections

Common Errors

  • **Mistake**: What went wrong
  • **Frequency**: How often it occurs
  • **Root cause**: Why it keeps happening
  • **Prevention**: How to avoid in future
  • **Detection**: How to catch it early

Misconceptions

  • **What was wrong**: Incorrect assumption
  • **Correct understanding**: Actual truth
  • **How discovered**: What revealed the error
  • **Ripple effects**: What else this affects

Extraction Process

Step 1: Scan for Learning Indicators

Look for these patterns in session:

  • **Questions**: "How does X work?", "Why did Y fail?", "Best way to do Z?"
  • **Trial and error**: Multiple attempts before success
  • **Surprises**: "Interesting!", "Didn't know that", "Unexpected"
  • **Discoveries**: "Ah, now I see", "So that's how it works"
  • **Corrections**: "Actually X doesn't work that way", "Should do Y instead"
  • **Optimizations**: "This is faster/better than the old way"
  • **Warnings**: "Watch out for X", "Don't forget Y"

Step 2: Contextualize Each Learning

For each identified learning: 1. **Capture specifics**: Exact API names, code patterns, error messages 2. **Explain context**: What led to this discovery 3. **Document evidence**: Code snippets, error outputs, test results 4. **Extract insight**: General lesson beyond this specific instance 5. **Note applicability**: When/where it applies

Step 3: Prioritize Learnings

Rank by:

  • **Reusability**: How likely this knowledge will be needed again
  • **Impact**: How much it affects future work
  • **Novelty**: How new/unexpected it is
  • **Shareability**: How valuable to others

Step 4: Format for Future Reference

Create:

  • **Searchable**: Include relevant keywords
  • **Scannable**: Clear headers and structure
  • **Actionable**: Enough detail to apply
  • **Connected**: Links to related concepts or docs

Output Format

# Session Learning Extraction

## Summary
- Technical discoveries: [X]
- Success patterns identified: [X]
- Mistakes documented: [X]
- Process improvements found: [X]

---

## Technical Discoveries

### [Discovery 1: API/Library/Pattern Name]

**What:** [One-line description]

**Context:** [When/why needed]

**Key Insight:** [Main lesson]

**Details:**
- [Specific detail 1]
- [Specific detail 2]

**Code Example:**
```[language]
[Actual code snippet from session]

**When to use:** [Conditions/scenarios]

**Gotchas:** [Warnings or limitations]

---

What Worked Well

[Success Pattern 1]

**Problem:** [What needed solving]

**Approach:** [What was done]

**Result:** [Outcome achieved]

**Why it worked:** [Success

Read more
@team-attention
Ships withplugins-for-claude-natives

A collection of Claude Code plugins for power users who want to extend Claude Code's capabilities beyond the defaults.

83117 skills9 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
831
Star history of team-attention/plugins-for-claude-natives on GitHub, a chart by star-history.com

More agents from other plugins.

codemod-runner

codemod-runner

Agent

Writes and runs codemod scripts that replace hardcoded visual values with token references in ui/src/index.css. Use for Phase 2…

paperclip5d114k
@paperclipai@paperclipaiInstall Agent

Questions about learning-extractor.

Which coding agents can use learning-extractor?
learning-extractor installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.