Skip to content

Commit f30f40f

Browse files
authored
Merge pull request #188 from onlycastle/ooo/run/refactor-analysis-dimensions
fix(plugin): dispatch bp-analyze as Agent from setup to avoid rate limits
2 parents 15bb840 + 33a964b commit f30f40f

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

packages/plugin/skills/bp-setup/SKILL.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,14 @@ Then ask the user what they would like to do next.
162162
If the user already said to continue working or to run analysis now, follow that instruction directly and do not call `AskUserQuestion`.
163163

164164
Use `AskUserQuestion` with these options:
165-
- **"Queue bp analyze for next session"** (Recommended) — call `save_user_prefs` with `{ "queueAnalysis": true }` so the analysis auto-starts in the next session with a fresh rate-limit budget. Tell the user: "Analysis queued! It will start automatically in your next Claude Code session."
166-
- **"Run bp analyze now"** — warn the user: "Running analysis immediately after setup may hit API rate limits. If it fails, just start a new session and it will auto-resume." Then invoke the `bp-analyze` skill.
167-
- **"Continue working"** — call `save_user_prefs` with `{ "queueAnalysis": true }` so analysis starts in a future session, then exit the wizard
165+
- **"Run bp analyze now"** (Recommended) — dispatch `bp-analyze` as an **Agent** (not as an inline skill) so it starts with a clean context. Use the Agent tool with:
166+
```
167+
model: sonnet
168+
description: "bp: analyze"
169+
prompt: "Read the skill instructions at [PLUGIN_PATH]/skills/bp-analyze/SKILL.md and follow them exactly. You have access to BetterPrompt MCP tools. Execute the complete analysis workflow."
170+
```
171+
To resolve `[PLUGIN_PATH]`: find the BetterPrompt plugin root by searching for the skills directory under `~/.claude/plugins/cache/betterprompt/`.
172+
- **"Continue working"** — call `save_user_prefs` with `{ "queueAnalysis": true }` so analysis auto-starts in a future session, then exit the wizard
168173
169174
### Step 7: Complete
170175

0 commit comments

Comments
 (0)