Use when a session reveals stable user preferences, workflow corrections, or project conventions that should be preserved for future sessions. Also use when user explicitly asks to remember rules, upd
by @lq434239
Use when a session reveals stable user preferences, workflow corrections, or project conventions that should be preserved for future sessions. Also use when...
clawhub install session-learnerπ About This Skill
name: session-learner description: Use when a session reveals stable user preferences, workflow corrections, or project conventions that should be preserved for future sessions. Also use when user explicitly asks to remember rules, update guidance, or summarize learnings.
session-learner
> A good learning loop stores stable preferences and rules, not ephemeral artifacts.
Extract durable, reusable lessons from the current session and merge them into CLAUDE.md so future sessions are more aligned. Works as a closed loop with prompt-refiner, which generates preference signals from user choices.
Quick Reference
| Signal | Action | |--------|--------| | Stable repeated preference | Learn as rule | | Explicit user correction | Learn immediately | | One-off different choice | Usually do not learn | | Full prompt text | Never store | | Code facts / file paths | Never store | | Secrets / keys / passwords | Never store | | Nothing worth learning | Say so, don't force it |
Core Flow
Step 1: Scan the session
Review the whole session for two categories:
A. Workflow preferences and corrections
prompt-refiner choice preferences (prefers refined vs original, wants compare-before-execute)Judging prompt-refiner preference signals:
B. Project rules and conventions
For detailed examples of what to learn vs skip, see references/learning-rules.md.
Step 2: Filter noise
Skip:
prompt-refiner (learn rules and preferences only, never the entire prompt body)Keep only information that will guide future sessions.
Step 3: Read current CLAUDE.md
Choose target file by scope:
~/.claude/CLAUDE.mdCLAUDE.mdIf a project file is needed and missing, create it.
Step 4: Merge intelligently
Step 5: Confirm changes
Show the user:
Wait for confirmation before writing, unless user says "update directly" or the skill is running from an automatic SessionEnd hook.
Output Format
When updating CLAUDE.md:
-)Integration with prompt-refiner
prompt-refiner is a primary source of workflow preference signals.prompt-refiner increasingly aligned with user habits.