brain+ — Context-Aware Design
Wraps superpowers:brainstorming. Requires superpowers to be installed.
Before You Begin
Invoke this skill BEFORE starting any design work. It adds three capabilities on top of the base brainstorming skill:
- Scout context — automatically harvests codebase context
- Signal-first design — considers which layers of the signal stack the feature touches, plus Docker/test infrastructure and full-loop verification (see
references/agent-loops.md)
- Constitutional awareness — loads active enforcement rules from session context
Procedure
Phase A: Harvest Context
Invoke the scout agent to map the current codebase:
Agent(subagent_type="scout", prompt="Map the codebase structure for [feature area]. Focus on: existing patterns, related modules, test infrastructure, and entry points relevant to [feature].")
Read the project's CLAUDE.md for project-specific rules.
Identify:
- Existing patterns this feature should follow
- Test infrastructure available (vitest, pytest, stack tests)
- Modules that will be affected
- Active enforcement rules from session context (see session-start output; real dependencies in stack/E2E tests by default)
Phase B: Design (delegate to superpowers:brainstorming)
Invoke superpowers:brainstorming with the enriched context.
During brainstorming, add these signal-first considerations:
- Which layers of the signal stack does this feature touch? (see
references/agent-loops.md — deterministic logic, external contract, evaluation quality, integration, telemetry)
- What instrumentation do those layers need? (Docker services, test harnesses, probes)
- What are the full-loop assertions? (primary + second-order + third-order effects)
- What test utilities need to exist before implementation?
- Which components are protected from mocking (see active enforcement rules)?
Use positive framing in all design guidance:
- "Use real database connections in tests" (not "don't mock the database")
- "Write assertions that verify observable behavior" (not "don't test implementation details")
- "Show command output before claiming done" (not "don't say tests pass without evidence")
Loop-fit assessment (within your own reasoning — do not ask unless fit
signals are present). Check the emerging design against the fit guidance in
references/agent-loops.md: headless/scheduled operation, external API
contracts, model/evaluation components, long-lived operation. One-off
scripts, interactive UI apps, and libraries do not fit — skip silently.
If fit signals are present, ask the user once:
"This project fits the agent-loop pattern (headless operation / external
contracts / model components). Want the design to include a signal stack
and a maintainer trajectory? See references/agent-loops.md for what
that adds. Opting out costs nothing."
If declined, do not re-ask this session. If accepted, walk the layering
for this project: which layers apply, what signal each emits, where the
primary/loop boundary sits, the autonomy ceiling, and the maintainer
cadence — capture all of it in the design.
Ceremony scales; this overlay does not. superpowers 6.3.0 classifies the
request as spike, bounded, or architectural and skips its two-document
ritual on the small paths
(#2063). Whichever path
the wrapped skill takes, apply the overlay above in full — scout context
(Phase A), the signal-first considerations, the loop-fit assessment, and the
Phase C checklist. On a spike or bounded request the deliverable may be a
short answer or a single paragraph rather than a design document, but the
opt-in question is still asked when fit signals are present and the Phase C
items are still confirmed. Never skip the overlay because the base skill
skipped its ceremony.
Phase C: Validate
- Confirm the design addresses:
Output
Return the validated design with testing strategy to feed into plan+.
Skill Chain
After completing brain+, the next step is:
- Invoke
/plan+ to create the implementation plan from this design
Completion
Report one of these states when the skill finishes:
- DONE — Design validated, ready for
/plan+. All checklist items in Phase C confirmed.
- DONE_WITH_CONCERNS — Design complete but has open questions or risks to address in planning.
- BLOCKED — Cannot proceed (missing context, unclear requirements, external dependency).
- NEEDS_CONTEXT — Need user input to resolve an ambiguity or make a design decision.
1---2name: brain3description: Invoke BEFORE any design or feature work. Wraps superpowers:brainstorming with scout agent context harvesting, signal-first design considerations, opt-in agent-loop trajectory elicitation, and constitutional rule awareness. Asks questions one at a time to refine the design.4---56<!-- rig-generated -->78# brain+ — Context-Aware Design910Wraps `superpowers:brainstorming`. Requires superpowers to be installed.1112## Before You Begin1314Invoke this skill BEFORE starting any design work. It adds three capabilities on top of the base brainstorming skill:15161. **Scout context** — automatically harvests codebase context172. **Signal-first design** — considers which layers of the signal stack the feature touches, plus Docker/test infrastructure and full-loop verification (see `references/agent-loops.md`)183. **Constitutional awareness** — loads active enforcement rules from session context1920## Procedure2122### Phase A: Harvest Context23241. Invoke the scout agent to map the current codebase:2526 ```27 Agent(subagent_type="scout", prompt="Map the codebase structure for [feature area]. Focus on: existing patterns, related modules, test infrastructure, and entry points relevant to [feature].")28 ```29302. Read the project's CLAUDE.md for project-specific rules.31323. Identify:33 - Existing patterns this feature should follow34 - Test infrastructure available (vitest, pytest, stack tests)35 - Modules that will be affected36 - Active enforcement rules from session context (see session-start output; real dependencies in stack/E2E tests by default)3738### Phase B: Design (delegate to superpowers:brainstorming)39401. Invoke `superpowers:brainstorming` with the enriched context.41422. During brainstorming, add these signal-first considerations:43 - Which layers of the signal stack does this feature touch? (see `references/agent-loops.md` — deterministic logic, external contract, evaluation quality, integration, telemetry)44 - What instrumentation do those layers need? (Docker services, test harnesses, probes)45 - What are the full-loop assertions? (primary + second-order + third-order effects)46 - What test utilities need to exist before implementation?47 - Which components are protected from mocking (see active enforcement rules)?48493. Use positive framing in all design guidance:50 - "Use real database connections in tests" (not "don't mock the database")51 - "Write assertions that verify observable behavior" (not "don't test implementation details")52 - "Show command output before claiming done" (not "don't say tests pass without evidence")53544. **Loop-fit assessment** (within your own reasoning — do not ask unless fit55 signals are present). Check the emerging design against the fit guidance in56 `references/agent-loops.md`: headless/scheduled operation, external API57 contracts, model/evaluation components, long-lived operation. One-off58 scripts, interactive UI apps, and libraries do not fit — skip silently.5960 If fit signals are present, ask the user **once**:6162 > "This project fits the agent-loop pattern (headless operation / external63 > contracts / model components). Want the design to include a signal stack64 > and a maintainer trajectory? See `references/agent-loops.md` for what65 > that adds. Opting out costs nothing."6667 If declined, do not re-ask this session. If accepted, walk the layering68 for this project: which layers apply, what signal each emits, where the69 primary/loop boundary sits, the autonomy ceiling, and the maintainer70 cadence — capture all of it in the design.71725. **Ceremony scales; this overlay does not.** superpowers 6.3.0 classifies the73 request as spike, bounded, or architectural and skips its two-document74 ritual on the small paths75 ([#2063](https://github.com/obra/superpowers/issues/2063)). Whichever path76 the wrapped skill takes, apply the overlay above in full — scout context77 (Phase A), the signal-first considerations, the loop-fit assessment, and the78 Phase C checklist. On a spike or bounded request the deliverable may be a79 short answer or a single paragraph rather than a design document, but the80 opt-in question is still asked when fit signals are present and the Phase C81 items are still confirmed. Never skip the overlay because the base skill82 skipped its ceremony.8384### Phase C: Validate85861. Confirm the design addresses:87 - [ ] Feature purpose and scope88 - [ ] Affected modules identified89 - [ ] Testing strategy defined90 - [ ] Active enforcement rules acknowledged (see session-start output)91 - [ ] Protected components identified per enforcement rules (real dependencies in stack/E2E tests; mocks appropriate in unit tests)92 - [ ] Integration-layer (stack test) user journey defined (if applicable)93 - [ ] **If loop trajectory opted in:** signal stack defined for each applicable layer (signal + failure meaning);94 primary system operable with the loop disabled; autonomy ceiling and orchestrator-owned gates stated9596## Output9798Return the validated design with testing strategy to feed into `plan+`.99100## Skill Chain101102After completing brain+, the next step is:103104- Invoke `/plan+` to create the implementation plan from this design105106## Completion107108Report one of these states when the skill finishes:109110- **DONE** — Design validated, ready for `/plan+`. All checklist items in Phase C confirmed.111- **DONE_WITH_CONCERNS** — Design complete but has open questions or risks to address in planning.112- **BLOCKED** — Cannot proceed (missing context, unclear requirements, external dependency).113- **NEEDS_CONTEXT** — Need user input to resolve an ambiguity or make a design decision.