From learn
Extracts reusable patterns from complex tasks (5+ tool calls) into new Claude Code skills. Deduplicates, generates SKILL.md files, confirms before saving.
npx claudepluginhub yrzhe/claude-skills --plugin learnThis skill is limited to using the following tools:
Distill the current task's approach into a reusable skill, or improve an existing one.
Extracts learnings, patterns, and workflows from conversations into reusable SKILL.md files. Activates on explicit requests like 'capture this as a skill' or after complex problem solving.
Extracts reusable skills from work sessions for non-obvious problems, patterns, workarounds, or debugging techniques. Manual invocation via /skill-extractor.
Extracts reusable patterns like error resolutions, workarounds, and debugging techniques from Claude Code sessions, saving them as new skills in ~/.claude/skills/. Use after long sessions or complex fixes.
Share bugs, ideas, or general feedback.
Distill the current task's approach into a reusable skill, or improve an existing one.
After completing a task, evaluate TWO conditions:
If both met, suggest: "This approach might be reusable — want to /learn it?"
Never auto-execute. Only suggest.
Check if this knowledge already exists:
Scan the current conversation for the most recently completed task. Identify:
If /learn "description" was provided, focus on that specific aspect.
Search ALL existing skills for similar functionality:
ls ~/.claude/skills/
grep -r "<relevant keywords>" ~/.claude/skills/*/SKILL.md
Three outcomes:
/skill-improve <skill-name> instead. Do NOT create a duplicate.Determine where this knowledge belongs:
Create skill following skill-creator conventions:
File: ~/.claude/skills/<skill-name>/SKILL.md
Naming: use learned- prefix for auto-extracted skills (e.g., learned-pdf-merge).
Structure:
---
name: learned-<name>
description: <what it does and when to trigger — be specific>
---
# <Title>
<Concise steps. Only include what Claude doesn't already know.>
Rules:
scripts/, references/, assets/ if genuinely neededShow the generated SKILL.md content to the user. Write to disk only after confirmation.
Create or update the extraction log:
File: ~/.claude/skills/learn/learned/<skill-name>.md
---
skill: learned-<name>
created: <YYYY-MM-DD>
last_updated: <YYYY-MM-DD>
source: conversation
---
## Creation Record
- **Date**: <YYYY-MM-DD>
- **Task**: <what triggered the extraction>
- **Reason**: <why this is reusable>
Also update ~/.claude/skills/learn/learned/README.md index with a one-line entry.
If a memory system is available (supermemory, MEMORY.md, etc.) and the extraction revealed cross-project universal insights (API quirks, tool gotchas, non-obvious behaviors), save a concise one-line version.
Do NOT duplicate the full skill content into memory. Only save atomic insights that stand alone.