Commit a052f80
feat(plugin): first-run onboarding + sequential Phase 2 execution (#172)
* fix(plugin): run Phase 2 skills sequentially to eliminate rate limits
Two-batch approach (3+4) still triggered rate limit failures on Claude
Max. Switch to fully sequential execution — each of the 7 Phase 2 skills
runs one at a time with the previous completing before the next starts.
Adds ~5 min to pipeline wall time but eliminates all concurrent Sonnet
burst issues.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat(plugin): add user preferences module
Persistent prefs stored in ~/.betterprompt/prefs.json, separate from
the transient plugin-state.json. Provides readPrefs/writePrefs (merge
semantics) and isFirstRun() for onboarding detection.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat(plugin): add first-run onboarding skill
/bp-setup wizard: verifies installation via scan_sessions, optionally
adds command reference to CLAUDE.md, one-time GitHub star prompt, and
points users toward their first /bp-analyze run.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat(plugin): integrate first-run detection into session hooks
SessionStart hook now checks isFirstRun() before pending-analysis,
injecting /bp-setup context for new users. Priority order: skip
compact → first-run → pending analysis → no-op. DI via deps object
keeps the handler fully testable.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* chore(plugin): rebuild dist with onboarding changes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: add first-run onboarding to plugin docs and README
README: rewrite install flow with terminal commands, add /bp-setup step.
PLUGIN.md: register prefs.ts, bp-setup skill, session-start priority.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: fix stale "2 batches" header in LLM_FLOW.md Phase 2 section
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* docs: add prefs.json cleanup step to plugin testing checklist
Without this step, a leftover welcomeCompleted flag silently skips the
first-run onboarding flow during testing.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c4793f2 commit a052f80
21 files changed
Lines changed: 532 additions & 117 deletions
File tree
- docs
- agent
- human
- packages/plugin
- dist
- hooks
- mcp
- hooks
- lib
- skills
- bp-analyze
- bp-setup
- tests/unit/plugin
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
| |||
50 | 56 | | |
51 | 57 | | |
52 | 58 | | |
| 59 | + | |
| 60 | + | |
53 | 61 | | |
54 | 62 | | |
55 | 63 | | |
| |||
63 | 71 | | |
64 | 72 | | |
65 | 73 | | |
66 | | - | |
| 74 | + | |
67 | 75 | | |
68 | | - | |
69 | | - | |
| 76 | + | |
| 77 | + | |
70 | 78 | | |
71 | 79 | | |
72 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | | - | |
| 50 | + | |
50 | 51 | | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
186 | 190 | | |
187 | 191 | | |
188 | 192 | | |
| 193 | + | |
189 | 194 | | |
190 | 195 | | |
191 | 196 | | |
| |||
0 commit comments