Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

knowledge-extractor

FreeNo executable scriptsNot checked

Extracts key learnings from conversations, debugging sessions, and failed attempts. Use at session end or after solving complex problems to capture insights…

rysweetby rysweet★ 77 GitHub stars

About this skill

Knowledge Extractor Skill

Purpose

This skill automatically extracts, synthesizes, and preserves knowledge from conversations, debugging sessions, failed attempts, and solved problems. It converts ephemeral interactions into persistent organizational knowledge that improves future performance.

When to Use This Skill

  • Session End Analysis: Extract learnings before session context is lost
  • After Complex Debugging: Capture root causes and solutions while fresh
  • Following Failed Attempts: Document what didn't work and why
  • Successful Problem Solving: Preserve solutions for future reuse
  • New Pattern Discovery: Identify patterns that should be documented
  • Repeated Workflows: Recognize when to create new specialized agents
  • Cross-Session Learning: Build organizational memory from individual sessions

Core Philosophy: Knowledge Preservation

Session Context: Ephemeral conversation context that will be lost without active preservation Persistent Knowledge: Structured learnings that improve future performance Pattern Recognition: Identifying when solutions are repeated and should be automated Organizational Growth: Converting individual learning into system-wide improvement

Knowledge Extraction Framework

Three Types of Knowledge Extraction

1. Discoveries - Novel Insights and Root Causes

What it captures: Problems encountered, root causes identified, solutions implemented

When to extract:

  • After solving a complex bug
  • When debugging reveals unexpected behavior
  • When discovering wrong assumptions
  • After identifying missing functionality
  • When learning why something failed

Format for DISCOVERIES.md:

## [Brief Title] (YYYY-MM-DD)

### Issue

What problem or challenge was encountered?

### Root Cause

Why did this happen? What was the underlying issue?

### Solution

How was it resolved? Include code examples if relevant.

### Key Learnings

What insights were gained? What should be remembered?

### Prevention

How can this be avoided in the future?

Quality Criteria:

  • ✅ Specific problem, not generic advice
  • ✅ Root cause clearly identified
  • ✅ Working solution included
  • ✅ Learning generalized for reuse
  • ✅ Prevention strategy documented

2. Patterns - Reusable Solutions

What it captures: Proven solutions to recurring problems, architectural approaches, design patterns

When to extract:

  • After solving a problem similar to known patterns
  • When recognizing a repeated problem type
  • When implementing a proven solution
  • When discovering a best practice that works
  • When solution applies across multiple contexts

Format for PATTERNS.md:

## Pattern: [Name]

### Challenge

What problem does this pattern solve?

### Solution

How does the pattern work? Include code/examples.

### Key Points

- Main insight 1
- Main insight 2
- When to use / when not to use

### When to Use

Specific scenarios where this pattern applies.

### Real Impact

Where has this pattern been used successfully?

### Related Patterns

Links to similar or complementary patterns.

Quality Criteria:

  • ✅ General enough to apply to multiple situations
  • ✅ Problem clearly defined
  • ✅ Solution has proven track record
  • ✅ Working code examples
  • ✅ Clear when/when-not-to-use guidance

3. Agent Creation - Automation of Repeated Workflows

What it captures: Workflows that are repeated frequently, specialized expertise areas, complex multi-step processes

When to extract:

  • After performing the same workflow 2-3 times
  • When recognizing a specialized skill area
  • When workflow has clear inputs/outputs
  • When automating would save significant time
  • When problem domain is narrow and well-defined

Agent Creation Trigger Checklist:

  • Same workflow repeated 2+ times
  • Workflow takes 30+ minutes to execute
  • Workflow has clear specialized focus
  • Workflow can be automated with current tools
  • Problem domain is narrow and well-defined
  • Would be high-value to automate

Example Agent Creation:

## Recommended New Agent: [domain]-[specialty]

### Problem

What repeated workflow would this agent handle?

### Scope

What's in scope | What's explicitly out of scope

### Inputs

What information does the agent need?

### Process

Step-by-step workflow the agent follows

### Outputs

What does the agent produce?

### Value

How much time/effort does this save?

### Integration

Where in the workflow does this fit?

Step-by-Step Extraction Process

Step 1: Session Analysis (5 minutes)

Review entire conversation/session:

1. What was the original problem/request?
2. What approaches were tried?
3. Which attempts failed and why?
4. What succeeded and why?
5. What was learned in the process?
6. What surprised you?
7. What took longer than expected?
8. What would have helped?

Step 2: Pattern Recognition (5 minutes)

Identify patterns in the

Full SKILL.md on GitHub

Install knowledge-extractor in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

README.mdexamples/agent-creation-example.mdexamples/discovery-extraction-example.mdexamples/pattern-extraction-example.md

FAQ

What does the knowledge-extractor skill do?

Extracts key learnings from conversations, debugging sessions, and failed attempts. Use at session end or after solving complex problems to capture insights. Stores discoveries in memory (via amplihack.memory.discoveries), suggests PATTERNS.md updates, and recommends new agent creation. Ensures knowledge persists across sessions via Kuzu memory backend.

How do I install the knowledge-extractor skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the knowledge-extractor skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare knowledge-extractor with