From commands-bundle
Extract reusable patterns from the current session and save them as skill files. Run after solving a non-trivial problem.
npx claudepluginhub danielleit241/my-skills --plugin commands-bundle# /learn — Extract Reusable Patterns Analyze the current session and save any patterns worth reusing as skill files. ## What qualifies Extract only if the pattern is: - **Non-obvious** — not just fixing a typo or standard syntax - **Reusable** — applicable beyond this specific session - **Generalizable** — worth activating in a future session Good candidates: - Error resolution patterns (root cause + fix + when it recurs) - Non-obvious debugging techniques or tool combinations - Library/API quirks or version-specific workarounds - Project-specific conventions discovered during investiga...
/learnAnalyzes current session for reusable patterns (error fixes, debugging, workarounds) and drafts Markdown skill file for user-confirmed save to ~/.claude/skills/learned/.
/learnAnalyzes current session for reusable patterns (error fixes, debugging, workarounds) and drafts Markdown skill file for user-confirmed save to ~/.claude/skills/learned/.
/learnAutonomously scouts codebase, learns structure, generates or updates documentation with validation-fix loops.
/learnDisplays Claude Code best practices guide on sessions, context, memory, modes, CLI shortcuts, worktrees, and prompting. Also supports specific topics and saving session lessons to persistent memory.
/learnToggles learning mode in vibe sessions to enable/disable educational micro-explanations after each step. Accepts 'on', 'off', or no argument to toggle.
/learnRecords lessons learned from input, errors, sessions, or git history; tags patterns; suggests automations like commands/skills; updates CLAUDE.md. Also supports list, edit, remove.
Analyze the current session and save any patterns worth reusing as skill files.
Extract only if the pattern is:
Good candidates:
Do not extract:
.claude/skills/learned/{pattern-name}.mdUse SKILL.md format so the skill is discoverable by the skills system:
---
name: {pattern-name}
description: >
{One-line trigger description — when should this activate?
Be specific enough that Claude will recognize the situation.}
type: learned
extracted: {YYYY-MM-DD}
---
## Problem
{What goes wrong — be specific about symptoms}
## Root Cause
{Why it happens}
## Solution
{The fix or technique}
## Example
{Code or command example if applicable}
## When to apply
{Trigger conditions — what situation activates this pattern}
Save to .claude/skills/learned/{pattern-name}/SKILL.md so the skills index picks it up.