| name | learn |
| description | Extract cross-session patterns from git history, PRs, and handoffs, then recommend artifacts (skill/rule/hook/agent) based on frequency thresholds. Use when consolidating recurring patterns into durable artifacts. For single-session reflection, use `reflect` instead. |
| allowed-tools | Bash Read Write Edit Glob Grep AskUserQuestion |
Learn
Extract patterns from git history, PRs, and handoffs to create durable artifacts (skills, rules, hooks).
For single-session reflection, use Skill("reflect") instead.
Methodology: Use compound-learnings skill for frequency thresholds and artifact categorization logic.
Data Sources
| Source | Command | What to Extract |
|---|
| Git commits | git log --oneline -100 | Repeated fix types, patterns |
| PR descriptions | gh pr list --state merged -L 20 --json title,body | Lessons, decisions |
| Handoffs | .agents/handoffs/*.md (main worktree) | Patterns, What Worked/Failed |
| Existing learnings | CLAUDE.md Key Learnings section | Already encoded patterns |
Process
Step 1: Locate Main Worktree
MAIN_WORKTREE=$(git worktree list --porcelain | grep "^worktree" | -1 | -d -f2)
HANDOFF_DIR=