You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Surface patterns from your pro-workflow learnings and session history.
4
+
5
+
## Usage
6
+
7
+
```
8
+
/insights
9
+
/insights session
10
+
/insights learnings
11
+
/insights corrections
12
+
```
13
+
14
+
## What It Shows
15
+
16
+
### Session Summary
17
+
18
+
Current session stats:
19
+
```
20
+
Session Insights
21
+
Duration: 47 min
22
+
Edits: 23 files modified
23
+
Corrections: 2 self-corrections applied
24
+
Learnings: 3 new patterns captured
25
+
Context: 62% used (safe)
26
+
```
27
+
28
+
### Learning Analytics
29
+
30
+
Query the learnings database for patterns:
31
+
```
32
+
Learning Insights (42 total)
33
+
34
+
Top categories:
35
+
Testing 12 learnings (29%)
36
+
Navigation 8 learnings (19%)
37
+
Git 7 learnings (17%)
38
+
Quality 6 learnings (14%)
39
+
Editing 5 learnings (12%)
40
+
Other 4 learnings (10%)
41
+
42
+
Most applied:
43
+
#12 [Testing] Run tests before commit — 15 times
44
+
#8 [Navigation] Confirm path for common names — 11 times
45
+
#23 [Git] Use feature branches always — 9 times
46
+
47
+
Recent learnings (last 7 days):
48
+
#42 [Claude-Code] Compact at task boundaries
49
+
#41 [Prompting] Include acceptance criteria
50
+
#40 [Architecture] Plan before multi-file edits
51
+
52
+
Stale learnings (never applied):
53
+
#15 [Editing] Prefer named exports — 0 times (45 days old)
54
+
#19 [Context] Ask before large refactors — 0 times (30 days old)
55
+
```
56
+
57
+
### Correction Patterns
58
+
59
+
Show what types of mistakes are recurring:
60
+
```
61
+
Correction Patterns
62
+
63
+
Most corrected areas:
64
+
File navigation 5 corrections
65
+
Test coverage 3 corrections
66
+
Commit messages 2 corrections
67
+
68
+
Trend: Navigation errors decreasing (5 → 2 per week)
69
+
Trend: Testing corrections stable (1 per week)
70
+
71
+
Suggestions:
72
+
- Add path confirmation rule to CLAUDE.md (3+ corrections)
73
+
- Consider /learn-rule for test patterns
74
+
```
75
+
76
+
### Productivity Metrics
77
+
78
+
```
79
+
Productivity (last 10 sessions)
80
+
81
+
Avg session: 35 min
82
+
Avg edits/session: 18
83
+
Correction rate: 12% (improving)
84
+
Learning capture: 2.1 per session
85
+
86
+
Best session: 2026-02-01 (28 edits, 0 corrections)
87
+
Most productive hour: 10-11am
88
+
```
89
+
90
+
## Options
91
+
92
+
-**session**: Current session stats only
93
+
-**learnings**: Learning database analytics
94
+
-**corrections**: Correction pattern analysis
95
+
-**all**: Full report (default)
96
+
-**--export**: Output as markdown file
97
+
98
+
## How It Works
99
+
100
+
1. Reads learnings from `~/.pro-workflow/data.db`
101
+
2. Reads session history from the sessions table
102
+
3. Aggregates categories, application counts, and trends
103
+
4. Identifies stale learnings that may need cleanup
104
+
5. Surfaces correction patterns to suggest new rules
105
+
106
+
## Related Commands
107
+
108
+
-`/list` - Browse all learnings
109
+
-`/search <query>` - Find specific learnings
110
+
-`/learn-rule` - Capture a new learning
111
+
-`/wrap-up` - End-of-session with learning capture
112
+
113
+
---
114
+
115
+
**Trigger:** Use when user asks "show stats", "how am I doing", "what patterns", "analytics", "insights", or wants to understand their learning trajectory.
0 commit comments