/learn:learnfrom learn
Analyzes complex completed tasks (5+ tool calls) for cross-project reuse potential and distills the approach into a reusable skill. Also triggered by phrases like 'save this as a skill' or 'this is reusable'.
Ships in learn. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yrzhe/claude-skills --plugin learnOther plugins' skills for the same job