/prime:brainstormfrom prime
Grounded thinking partner. Turn a vague thought, question, or 'help me understand this' into clarity — answers anchored in this repo's calibrated knowledge base and the org's memory (arth-memory). Asks the right clarifying questions, labels repo / org / generic advice, and steers you to the right toolkit skill (/planning, /fix, /explore, etc.) when intent crystallizes. Usage: /brainstorm <thought | question>
Ships in prime. Installing the plugin adds it to Claude Code.
A single-agent, repo-grounded Socratic mode. The user types /brainstorm <anything> and gets:
clarifying questions, answers anchored in the project's calibrated knowledge base,
explicit "repo says X / generically Y" labeling, and — when their intent sharpens —
a steered handoff to the right toolkit skill.
Key principle: the user thinks, the skill grounds. Don't take the surface request and execute. Probe intent, anchor in repo reality, end every turn with a converge / dig-deeper / handoff choice.
/brainstorm (vs superpowers:brainstorming)Two skills share the "brainstorm" word — they do different jobs. Pick by where you are:
| You are… | Use | Because |
|---|---|---|
| Not sure what you want yet — a vague thought, a question, "help me understand X" | /brainstorm (this skill) | Grounded thinking front-door. Routes you anywhere (or nowhere). Never writes anything. |
| About to build something specific and need a design before coding | superpowers:brainstorming | A design gate — ends by writing a design doc and invoking writing-plans. |
Rule of thumb: /brainstorm is upstream of intent ("what even is this?"); superpowers:brainstorming
is downstream of intent ("I'm building X, design it first"). If a /brainstorm session crystallizes
into "I want to build a specific feature," the right handoff is /planning (or superpowers:brainstorming
for the design-doc-first flow) — offer it, don't auto-invoke.
Before the first response, load these files in parallel (use Read — they may not all exist):
.claude/project-profile.md
.claude/knowledge/shared/conventions.md
.claude/knowledge/shared/domain.md
.claude/knowledge/shared/vocabulary.md
.claude/knowledge/shared/patterns.md
.claude/knowledge/shared/best-practices.md
.claude/knowledge/external/sources.md
CLAUDE.md
Cache the contents in conversation. This is the contract — every subsequent answer must be grounded in (or explicitly contrasted against) what these files say. If a file is missing, note it silently and continue; do not mention the missing file unless the user's question depends on information that would have lived there.
Size guard (keep the front door cheap). Before reading everything in full, check the
combined size of the KB files (e.g. wc -l). The "negligible cost" promise only holds for
small-to-medium KBs:
project-profile.md + CLAUDE.md in full (they're the index), then read
only the headings of the knowledge/shared/*.md files and pull a specific section into
context on demand when a turn actually needs it. Don't dump a 3k-line conventions.md
into context to answer one question.Either way the contract holds — you still ground every answer in the KB; you just fetch the deep content lazily when a large KB would otherwise blow the budget.
If .claude/project-profile.md is missing entirely, surface this once at the top of the
first response:
💡 This project hasn't been calibrated yet. My answers will lean generic — run /calibrate
first for repo-grounded responses.
Org memory KB (arth-memory — if memory-setup has run). Beyond this repo's calibrated
KB, the org's Decisions/Constraints/Facts across every repo may be on disk. Folding the
current repo's slice in lets you answer "what has the org already decided about this?" — the
highest-value grounding a thinking partner can offer. Graceful absence: if it isn't there,
skip silently and behave exactly as today (zero overhead for non-arth-memory users). Locate it
with trivial commands (one complex bash block trips the Bash guard — keep each command simple):
[ "${ARTH_MEMORY:-}" = off ] && echo "memory off — skip org KB" # honor the off switch
ls -d "$HOME"/.arthai/memory/*/arth-memory-okf 2>/dev/null # org KB root(s); skip if none or if off
git remote get-url origin # → owner/repo
The repo slice is <kb-root>/repos/<owner>/<repo>/ (fall back to <kb-root>/org/ if absent).
Read it lazily — keep the front door cheap: only once the user's thought gives you keywords,
Grep constraints/ + decisions/ for 3–5 terms from their input, then Read the top
matches (and architecture.md if the topic is architectural). Fold findings into the same
grounding cache. Org Constraints are authoritative — if one bears on the user's thought,
surface it and label it an org-level rule, not just this repo's.
If the user invoked /brainstorm with no positional argument (just /brainstorm
on its own), prompt for input before proceeding.
Non-interactive mode — if CLAUDE_AUTOPILOT=1 or CI=true is set in the
environment, do NOT prompt. Print a hard error and exit:
/brainstorm: thought or question required as positional arg in non-interactive mode. Exiting.
Interactive mode — use AskUserQuestion with a single free-text option plus
a cancel option:
Question: "What's on your mind?"
Options:
1. Free-text — describe what you want to think through
2. Cancel / exit
If the user types text → treat it as the user's input and continue from Step 2.
If the user picks Cancel → print /brainstorm: cancelled. and exit cleanly.
Keep the prompt functional, not chatty — match the toolkit's voice (see /fix,
/planning for the established empty-args pattern). The grounding contract proves
itself in the first answer after the user articulates their thought, not in a
pre-emptive menu.
Categorize what kind of thought arrived. This shapes the turn:
| Input shape | What the user wants |
|---|---|
| A direct question ("how does X work?") | Grounded explanation + offer to dig deeper |
| A vague thought ("I keep thinking we should…") | Probe the symptom, surface assumptions |
| A half-formed idea ("what if we…") | Clarify who/why, then route to /planning or /opportunity-map |
| "Help me understand X" | Tour mode — grounded walkthrough |
| A comparison ("what's the difference between…") | Side-by-side grounded answer + label generic vs repo |
| Existential ("should we even do this?") | Stay in /brainstorm — that IS the job |
| Symptom of a bug ("X is broken / weird") | Quick probe → steer to /fix or /incident |
Every response in /brainstorm follows this structure:
(a) ONE clarifying question (if the input is ambiguous about intent). Skip only if intent is unmistakable. Never ask more than one — multi-question prompts feel like interrogation. If you can't pick the most important one, you don't have enough context to ask intelligently — answer what you can and offer to go deeper.
(b) Grounded reflection. Answer using the loaded knowledge. Cite files, conventions,
vocabulary, domain rules where relevant. Use the team's terms from vocabulary.md.
(c) Explicit repo / org / generic labeling. When you draw on knowledge outside the repo, say so plainly:
In this repo: <repo-specific answer using project-profile / conventions / domain>
Across the org: <relevant Decision/Constraint from arth-memory — mark org Constraints authoritative>
Generically: <broader principle or industry pattern>
When they disagree, call that out — it's often where the user learns the most. Omit the "Across the org" line when the org KB isn't configured or has nothing relevant.
(d) Surface 1–2 hidden assumptions the user may be making. This is the value-add over plain chat. Examples:
(e) Close with an explicit choice. Always end the turn with one of:
What now?
→ Dig deeper on <specific sub-topic>
→ Converge: I'll summarize what we've landed on
→ Hand off to <suggested skill> — looks like <reason>
At each turn, evaluate whether the user's intent has sharpened into something a downstream toolkit skill owns better. Offer the handoff explicitly — never auto-invoke.
| User signal | Suggested handoff |
|---|---|
| "I want to build / spec a feature" | /planning <name> |
| "The spec exists, ready to build" | /implement <name> |
| "Just want to drive one concrete objective to done, fast" | /goal <objective> |
| "Something's broken / a bug" | /fix <description> (or /incident if severity unclear) |
| "I need to find code / where is X" | /explore <query> |
| "Broad orientation to this repo" | /onboard or /scan |
| "Competitors / market signal" | /market-research |
| "Product / feature framing" | /opportunity-map |
| "Tech debt suspicion" | /tech-debt <scope> |
| "Performance concern" | /perf <scope> |
| "Should we even do this?" | Stay in /brainstorm — that's this skill's job |
Handoff phrasing template:
This sounds like a <skill-shape> conversation now. Want me to invoke `/<skill> <args>`?
You can also keep going in /brainstorm if you'd rather think more first.
When the user signals convergence (or chooses "converge" from the close prompt), produce a compact summary the user can paste elsewhere:
## Where we landed
**Question:** <what we were thinking about>
**Repo context:** <key facts grounded in calibrated knowledge>
**Assumptions surfaced:** <1–3 bullets>
**Conclusion or next step:** <single sentence>
**Suggested next skill (if any):** /<skill> <args>
Keep it under ~10 lines. The goal is paste-ready clarity, not a transcript.
Then close the loop — offer to write the insight back to the KB. A brainstorm often surfaces a durable fact, decision, or correction that the next session (yours or a teammate's) should inherit. The toolkit's whole value is that the knowledge base learns; reading it without ever writing back lets insight evaporate. So after the summary, when the conclusion is durable (not a one-off lookup), offer:
💾 This looks worth remembering. Save it to the knowledge base?
→ conventions (a coding rule we landed on)
→ domain (a business/domain fact)
→ patterns (an architecture decision)
→ vocabulary (a term we clarified)
→ skip
On accept, append a dated, sourced entry to the matching .claude/knowledge/shared/<area>.md
(create the file if absent), following the write-back protocol in .claude/knowledge/README.md.
Keep it to a few lines — the decision and its why, not the transcript. Never auto-write —
offer and let the user pick the destination, same as handoffs. Skip the offer entirely for pure
lookups ("how does X work?") where nothing new was decided.
/fix) instead of doing it inline. Brainstorm is a thinking mode, not an executor.User: /brainstorm I keep thinking we should refactor the payments module
Brainstorm:
One clarifying question first — what's the actual symptom that keeps pulling you back
to this? Slow tests, merge conflicts, hard to add features, or something else?
In this repo (from project-profile.md): payments is in `backend/app/services/payments/`,
uses the strategy pattern for processor selection, ~2.4k LOC. Recent commits show
3 bug fixes touching it in the last month.
Generically: "feels like it needs a refactor" is often a symptom of either (a) high
change-rate hitting structural coupling, or (b) onboarding pain — different fixes.
Assumption to check: you're framing this as a structural refactor, but if the real
pain is "every change requires touching 5 files," the answer might be /tech-debt
rather than /planning.
What now?
→ Dig deeper on what's coupled in payments today
→ Converge: this is a /tech-debt audit
→ Hand off to /planning if you have a target end-state in mind
User: /brainstorm what's the difference between our two queue systems?
Brainstorm:
In this repo (from vocabulary.md + patterns.md): we have `inbox-queue` (Redis-backed,
at-least-once, for user-triggered jobs) and `system-bus` (Kafka, exactly-once, for
internal pipeline events). Inbox is used by `backend/app/api/`, system-bus by
`backend/app/pipeline/`.
Generically: the tradeoff is operational simplicity (Redis lists) vs delivery
guarantees and replay-ability (Kafka). Most teams pick one and live with it; having
two is usually because they evolved at different times.
Assumption to check: you may be looking at this because of a specific job — which
one are you trying to place? That changes which one is "right."
What now?
→ Dig deeper on when to use which
→ /explore to see code-level usage examples
→ Converge: I'll give you a one-liner decision rule to remember
User: /brainstorm I have an idea — what if we let users tag their projects with custom labels?
Brainstorm:
One clarifying question: who's pulling on this — a specific user request, support
volume, or your own observation?
In this repo (from domain.md): the project model already has a `tags: string[]` field,
but it's currently only writable by admins via the backoffice. Frontend has no UI
for it.
Generically: custom tagging is a classic "search/filter usability" feature — its
value depends entirely on whether the underlying surface (search, list views) uses
the tags. If the list views ignore tags, you'd be building a write-only feature.
Assumption to check: you're framing this as new functionality, but the data layer
already supports it — this might be a frontend-only PRD.
What now?
→ Dig deeper on which list views would use the tags
→ Hand off to /planning custom-project-tags — sounds ready to spec
→ Hand off to /opportunity-map first if you want to size demand before specifying
Negligible (~2 units) — single agent (this skill, no fan-out), one set of parallel file reads on entry (bounded by the Step 1 size guard, so large KBs lazy-load instead of front-loading), then turn-based responses. Org-memory grounding stays cheap too: it's keyword-gated lazy Greps into the on-disk OKF KB (no engine calls, no fan-out), and a complete no-op when arth-memory isn't configured. No agent spawns unless the user accepts a handoff to another skill (which bears its own cost). An accepted KB write-back at convergence is a single small append.
/brainstorm is deliberately cheap so it can be the friction-free front door for the
"I don't know what I want yet" state.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub arthtech-ai/sarathi --plugin prime2 plugins in one repository ship this exact command · first indexed Dec 1, 2026
53 commands in this plugin
/adapters:READMEDiagram AdaptersThis directory contains push adapters for `/kb-diagram --push <adapter>`./arth-helpAnswer questions about installing, using, trusting and removing Arth, from the docs bundled with the plugin only — cites the page, says when the docs do not cover it, and makes no network call. Usage: /arth-help <question>/arth-setupSet up Arth in one command. Open edition: Arth Intelligence (/otel-setup, local Docker) plus Arth Decisions (off by default); memory and model routing are built in. `/arth-setup local` does the whole local setup with defaults and no questions. Pro edition adds memory (/memory-setup), router (/router-setup) and the Central posture. Also handles `switch <local|cloud|off>` (plus `switch <shadow|enforce> decisions`) and `uninstall`. Usage: /arth-setup, /arth-setup local, /arth-setup switch <local|cloud|off> <product|all>, /arth-setup switch <off|shadow|enforce> decisions, /arth-setup uninstall <product|all> --purge-data/autopilotAutonomous work loop — picks up issues, implements, QAs, PRs. Stops for merge approval. Flags: <--dry-run> <--urgent-first|--least-first> <--decisions off|shadow|enforce>/calibrateDeep-learn a project and configure the full toolkit — scans code patterns, recommends MCP servers/agents/skills/workflows, installs everything. The single entry point for project adaptation. Usage: /calibrate <full|rescan|recommend|status|best-practices>/ci-fixAuto-remediate CI, staging, and production failures. 3-attempt retry with investigation. Discord alert on exhaustion. Usage: /ci-fix [ci|staging|prod] [branch]. Flags: <--decisions off|shadow|enforce>Other plugins' commands for the same job