Continuous Learning v2
Automatically detect repeated patterns across sessions and promote them to learned skills.
When to Activate
- Automatically on session end (via evaluate.js Stop hook)
- When reviewing draft skills at session start
How It Works
Detection (evaluate.js)
At session end, the evaluate hook:
- Loads
config.jsonfor pattern detection settings - Reads today's session file (
~/.claude/sessions/) - Analyzes git log and session data for patterns:
error_resolution— same error type fixed 3+ timesuser_corrections— approach changed after user feedbackworkarounds— non-standard solutions applieddebugging_techniques— repeated debugging patternsproject_specific— project-unique conventions
- Creates draft skills in
~/.claude/skills/learned/draft-<name>.md
Approval Flow
At next session start, session-start.js reports draft skills:
[SessionStart] 2 draft skill(s) awaiting approval
[SessionStart] Draft: draft-error-resolution-2026-03-31.md
User decides:
- Approve: rename to remove
draft-prefix, becomes active learned skill - Reject: delete the draft file
Configuration (config.json)
{
"min_session_length": 10,
"extraction_threshold": "medium",
"auto_approve": false,
"patterns_to_detect": ["error_resolution", "user_corrections", ...]
}
extraction_threshold:low(2+),medium(3+),high(5+) occurrencesauto_approve: alwaysfalse— human gate for quality
Source: OkminLee/everything-claude-code-ios — distributed by TomeVault.