Extract and persist learnings from the current session. This skill should be used when the user wants Claude to analyze the conversation and capture insights, patterns, preferences, or knowledge discovered during work. Triggers on requests like "learn from this session", "what did we learn", or "capture insights".
Analyzes the current conversation to extract and persist learnings like user preferences, project patterns, and reusable workflows. Triggers on requests like "learn from this session" or "capture insights" to categorize findings and save them to appropriate CLAUDE.md files, docs, or new skills.
/plugin marketplace add anexpn/claude-plugins/plugin install jun-dev-workflows@jun-workflowsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Analyze the current session to extract learnings and persist them to appropriate locations.
Review the entire conversation to identify learnings in these categories:
Map each learning to its appropriate destination:
| Learning Type | Destination | Rationale |
|---|---|---|
| User preferences | ~/.claude/CLAUDE.md | Applies across all projects |
| Agent failure patterns | ~/.claude/CLAUDE.md | Prevents repeating mistakes globally |
| Project technical patterns | Project CLAUDE.md | Project-specific guidance |
| Reusable workflows | New skill | Procedural knowledge for reuse |
| Reference knowledge | Project docs/ folder | Documentation for future reference |
Before presenting findings, check if any learning contradicts existing content:
Present findings grouped by destination. For each group:
Format:
## Learnings for ~/.claude/CLAUDE.md
1. [Brief description of learning]
2. [Brief description of learning]
⚠️ CONFLICT: [description]
Existing: [current content]
Proposed: [new content]
Keep existing / Replace / Merge?
## Learnings for [project]/CLAUDE.md
1. [Brief description of learning]
## Learnings for [project]/docs/
1. [Brief description] → docs/[filename].md
## Potential New Skill
1. [Workflow name]: [brief description]
After user approves (or modifies) findings:
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.