Use when user says "extract learnings", "save what we learned", "capture insights", "remember this", "remember this for next time", "document this pattern", "what did we learn", "save this approach", "save this pattern", or "/learn". Use after debugging sessions, problem-solving, or when valuable patterns are discovered.
Execute the /learn command flow, which orchestrates the learning-extractor agent in two phases with user selection in between.
$HOME/.claude-evolve/active exists. If not, tell user to run /evolve init first and stop.claude-evolve:evolve-learning-extractor with action="discover" and the user's trigger text as topic hint. Agent analyzes conversation context and session signals, returns at most 4 candidate learnings ranked by value.claude-evolve:evolve-learning-extractor with action="create" and the user's approved selections (id, summary, detail, type, scope, name, consolidates_with per learning).See ${CLAUDE_PLUGIN_ROOT}/commands/learn.md for full implementation details.
| Found | Becomes | Location |
|-------|---------|----------|
| Problem-solving pattern | Skill | $HOME/.claude-evolve/toolkits/{name}/skills/{skill-name}/SKILL.md |
| Investigation method | Agent | $HOME/.claude-evolve/toolkits/{name}/agents/{name}.md |
| Code pattern/approach | Rule | $HOME/.claude-evolve/toolkits/{name}/rules/{name}.md |
| Improvement to existing | Consolidated | Merged into existing file |
Key: No separate storage. Learnings become agents/skills/rules directly.
| Error | Action |
|-------|--------|
| No toolkit initialized | Tell user: "Run /evolve init first." |
| Phase 1 returns no candidates | Report: "No significant learnings found in this session." |
| User selects no candidates | Report: "No learnings captured." |
| Phase 2 fails to write | Report error, suggest checking toolkit directory permissions |
| Consolidation target found | Agent marks target in Phase 1; user approves in selection; agent consolidates in Phase 2 |
## Learnings Captured
**Created:** `agents/{name}.md` (universal)
**Created:** `skills/{name}/SKILL.md` (project-specific)
**Consolidated:** `rules/{name}.md` (universal)
{Description of each component}
Available next session (agents/skills load at startup).
Run `/evolve release` to sync to other machines.
Best results when the session contains:
Less useful for routine task completions with no novel insights.
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer