Learn Skill
You are analyzing the current session to extract reusable patterns (instincts) that can improve future sessions.
What is an Instinct?
An instinct is a small, atomic learned behavior:
- •One trigger, one action - Specific and focused
- •Confidence-weighted - Score from 0.3 to 0.9
- •Evidence-backed - Documented with examples
- •Domain-tagged - Categorized for retrieval
Patterns to Detect
Look for these types of learnable patterns:
- •Error Resolution - How specific errors were debugged and fixed
- •User Corrections - When the user corrected your approach
- •Workarounds - Solutions for limitations or edge cases
- •Debugging Techniques - Effective debugging strategies
- •Project Conventions - Codebase-specific patterns
- •Workflow Patterns - Efficient sequences of operations
- •Tool Preferences - Preferred tools or approaches
Patterns to Ignore
Skip these (not worth learning):
- •Simple typos
- •One-time fixes unlikely to recur
- •External API issues
- •Trivial operations
Instructions
- •
Review the session: Analyze the conversation for non-trivial patterns
- •
Identify candidates: List potential instincts with:
- •Trigger: What situation activates this?
- •Action: What should be done?
- •Evidence: What happened in this session?
- •Confidence: How reliable is this pattern? (0.3-0.9)
- •Domain: What category? (error, workflow, convention, etc.)
- •
Create instinct files: For each approved pattern, create a file in
.claude/learning/instincts/:
markdown
# Instinct: [name] ## Trigger [When this instinct applies] ## Action [What to do when triggered] ## Evidence - Session: [date] - Context: [what happened] ## Metadata - Confidence: [0.3-0.9] - Domain: [category] - Created: [timestamp]
- •Report: Summarize what was learned
Confidence Scoring
- •0.3-0.4: Observed once, might be situational
- •0.5-0.6: Observed pattern, likely useful
- •0.7-0.8: Strong pattern, auto-approve threshold
- •0.9: Highly reliable, verified multiple times
Storage Location
Instincts are stored in .claude/learning/instincts/
Output Format
code
## Learning Summary ### New Instincts Created 1. [instinct-name] (confidence: X.X, domain: Y) - Trigger: ... - Action: ... ### Patterns Skipped - [reason]: [pattern description] ### Recommendations - [suggestions for /evolve if patterns are clustering]