Install
openclaw skills install @lq434239/session-learnerUse 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.
openclaw skills install @lq434239/session-learnerA 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.
| 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 |
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.
Skip:
prompt-refiner (learn rules and preferences only, never the entire prompt body)Keep only information that will guide future sessions.
Choose target file by scope:
~/.claude/CLAUDE.mdCLAUDE.mdIf a project file is needed and missing, create it.
Show the user:
Wait for confirmation before writing, unless user says "update directly" or the skill is running from an automatic SessionEnd hook.
When updating CLAUDE.md:
-)prompt-refiner is a primary source of workflow preference signals.prompt-refiner increasingly aligned with user habits.