/cc-skills-meta:learnfrom cc-skills-meta
Intelligent lesson capture with novelty detection and usefulness filtering
Ships in cc-skills-meta. 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.
/learn - Intelligent Lesson CaptureAdaptive lesson extraction that figures out what you actually learned.
Extract valuable lessons from your session using:
$CLAUDE_PROJECT_DIR/.claude/skills/learn/lesson_extractor.py/rr, /retro, /cooldown with single smart command/learn
→ Analyzing session...
→ Session: 47 min, 3 files changed, 1 bug fixed
→ Checking CKS for existing knowledge...
→ Found 2 new patterns
→ Stored to CKS: pattern_abc123, pattern_def456
✅ Learned 2 new lessons:
1. Terminal detection path mismatch (score: 7)
2. Session isolation via ConsoleHost handle (score: 6)
Finds lesson-worthy segments using signal patterns:
| Signal Pattern | Example |
|---|---|
| Causal connectors | "because", "due to", "the reason" |
| Root cause format | "Root cause: X" |
| Problem-solution | "The issue was X, so I did Y" |
| Explicit learning | "I learned that", "discovered" |
| Decision markers | "decided to", "chose X over Y" |
| Investigation | "debugged", "traced", "investigated" |
Filters out (noise):
Queries CKS via daemon to check what's already known:
Candidate: "SessionStart writes to %TEMP% but skill_execution_state reads from wrong path"
CKS Query: "terminal detection path mismatch"
Result: NOT FOUND → novelty_score = 2
Candidate: "Caching reduces API calls"
CKS Query: "caching api calls"
Result: FOUND (0.92 similarity) → novelty_score = 0
Scores each candidate by 4 dimensions (0-2 each):
| Dimension | Score 2 | Score 1 | Score 0 |
|---|---|---|---|
| Novelty | New to CKS | Partial match | Already in CKS |
| Complexity | RCA/investigation | Non-obvious | Obvious |
| Pattern | Repeatable | Possible pattern | One-off |
| Impact | Architectural | Saves time | Minor |
Total score = sum of all dimensions (0-8) Threshold: 4+ to store
Only stores lessons that meet the threshold:
Score 7: "Terminal detection path mismatch" → STORE
Score 6: "Session isolation via ConsoleHost" → STORE
Score 3: "Ran pytest to verify" → SKIP (too obvious)
Score 2: "Fixed typo in config" → SKIP (one-off, low impact)
What IS a lesson:
What is NOT a lesson:
Before storing or skipping a lesson, /learn should run a short internal lesson-quality check:
These are internal self-check prompts. They are not default user-facing questions and should only surface to the user when /learn is genuinely blocked and cannot proceed safely without clarification.
/learn should use two internal helper passes when extracting lessons:
emerge: identify latent repeated patterns across candidate lessons when the underlying theme has not yet been named explicitlygraduate: decide when a repeated lesson is strong enough to promote into a durable artifact, broader pattern, or stronger enforcement recommendationUse emerge when several candidates look related but the shared lesson is still unclear.
Use graduate when the same underlying lesson keeps reappearing and should stop living as isolated session trivia.
Reference: P:/.claude/skills/__lib/sdlc_internal_modes.md
/learn
→ Analyzing session (23 min, 3 files, 1 bug fix)
→ Checking CKS for: terminal, detection, path, mismatch
→ Result: 2 new patterns found
✅ Learned 2 new lessons:
1. [score: 7] Terminal detection path mismatch
SessionStart writes to %TEMP%/claude_terminal_id.txt but
skill_execution_state reads from P:/.claude/state/ (wrong path)
→ CKS: pattern_abc123
2. [score: 6] Session isolation via ConsoleHost handle
ConsoleHost handle provides unique terminal ID across all
PowerShell sessions, more reliable than PID-based detection
→ CKS: pattern_def456
/learn
→ Analyzing session (5 min, 2 config edits)
→ Checking CKS for: config, settings
→ Result: Routine changes, no new patterns
✅ Nothing new to learn (routine maintenance)
/learn
→ Analyzing session (15 min, path fix)
→ Checking CKS for: path, detection
→ Result: Pattern already in CKS (pattern_abc123)
→ Summary: Fixed another instance of known issue
ℹ️ Pattern already known, nothing new to store
/learn # Extract from transcript (auto-detect)
/learn "Lesson text - category" # Store direct lesson (positional)
/learn --lesson "Lesson text - category" # Store direct lesson (explicit flag)
/learn --verbose # Show full scoring breakdown
/learn --dry-run # Show what would be stored
Store lessons directly without transcript extraction:
/learn "Orphaned scheduled tasks silently fail with LastTaskResult=0x80070002 - technical (important)"
Format: Lesson text - category (severity)
cat lessons.txt | /learn --stdin
# Each line: "Lesson text - category"
Shows scoring breakdown for each candidate:
/learn --verbose
Candidate: "Terminal detection path mismatch"
Novelty: 2/2 (new to CKS)
Complexity: 2/2 (RCA required)
Pattern: 2/2 (repeatable)
Impact: 1/2 (saves time)
Total: 7/8 ✓ STORE
Shows what would be stored without actually storing:
/learn --dry-run
Would store 2 lessons (dry run, not stored):
1. [score: 7] Terminal detection path mismatch
2. [score: 6] Session isolation via ConsoleHost
transcript → candidates → novel → scored → keepers
[patterns] [CKS] [score] [≥4]
total = (
novelty_score + # 0-2 from CKS check
complexity_score + # 0-2 from RCA flags
pattern_score + # 0-2 from repeatable flags
impact_score # 0-2 from architectural flags
)
| Score | Meaning | Action |
|---|---|---|
| 6-8 | High value | Always store |
| 4-5 | Medium value | Store if novel |
| 0-3 | Low value | Skip |
/cks - Direct knowledge storage/search - Search CKS/CHS for patterns/cooldown - Deprecated (use /learn instead)# End of session
/learn
# After fixing a bug
/learn
# Check what would be stored
/learn --dry-run
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (enduser123/cc-skills-meta) — no native marketplace selected
npx claudepluginhub p/enduser123-cc-skills-meta51 skills in this plugin
/behaveStructured behavioral analysis for LLM performance debugging — hypothesis testing for session patterns (loops, context degradation, decision inefficiency, cognitive overload, attention drift)/cksConstitutional Knowledge System - unified command for search, add, and session extraction/concept-mapperUnified concept mapping for learning, system architecture, and text analysis. Creates Mermaid diagrams for mind maps, concept maps, system diagrams, and knowledge structures. Use for studying, documentation, architecture visualization, or converting articles/text into visual maps.