| name | speckit-superb-brainstorm |
| description | Optional after-specify refinement gate. Bridges an installed obra/superpowers brainstorming skill into the active Spec Kit spec.md without creating a second design document or replacing speckit.specify. |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"superb:commands/brainstorm.md"} |
Brainstorm โ Spec Refinement Gate
Type: Superpowers-adapted command
Skill origin: obra/superpowers brainstorming
Invocation: Optional post-hook for speckit.specify; manual rerun only
when an active Spec Kit spec.md already exists.
This command strengthens a newly created Spec Kit specification with the
collaborative design discipline from Superpowers brainstorming. It does not
start a new feature, create a new branch, or write a parallel design document.
User Context
$ARGUMENTS
Treat user-provided context as refinement guidance for the active Spec Kit
feature. Do not treat it as permission to bypass Spec Kit artifact ownership.
Step 1 โ Resolve Installed Skill
Run bash .specify/extensions/superb/scripts/bash/resolve-skill.sh --skill brainstorming.
The resolver is the canonical discovery helper for this bridge. It checks, in
order:
./.agents/skills/brainstorming/SKILL.md
./.agents/plugins/*/skills/brainstorming/SKILL.md and ./.agents/plugins/*/*/skills/brainstorming/SKILL.md
~/.agents/skills/brainstorming/SKILL.md
~/.agents/plugins/*/skills/brainstorming/SKILL.md and ~/.agents/plugins/*/*/skills/brainstorming/SKILL.md
Prefer the first readable match in that order. Any workspace match wins over
any global match. A direct skill-root install wins over a plugin-provided skill
at the same scope.
If no readable file is found, offer the inline install recovery flow:
- Run
bash .specify/extensions/superb/scripts/bash/ensure-skills.sh --check-prereqs.
- If
npx is available, show the missing-skill error plus the generated output from
bash .specify/extensions/superb/scripts/bash/ensure-skills.sh --print-guidance, then ask:
Would you like to install now? (Select approach 1-3, or skip)
- Only if the user explicitly selects
1, 2, or 3, run:
bash .specify/extensions/superb/scripts/bash/ensure-skills.sh --install <selection>
- After a successful install, re-run the skill resolution by invoking
bash .specify/extensions/superb/scripts/bash/resolve-skill.sh --skill brainstorming
once before continuing.
- If the user skips,
npx is unavailable, installation fails, or the re-check
still cannot resolve the skill, leave spec.md unchanged, report that the
optional refinement was skipped, and return control to Spec Kit.
Report the source you resolved before continuing:
Using installed skill: brainstorming
Source: [workspace|global]
Install type: [skill-root|plugin]
Path: [resolved path]
Do not fetch remote content. Do not silently fall back to bundled or summarized
skill text.
Step 2 โ Resolve Active Spec Kit Spec
Resolve the active feature spec path without requiring downstream planning
artifacts. brainstorm runs in after_specify, so plan.md and tasks.md
normally do not exist yet.
Use this resolution order:
- Prefer hook-provided
FEATURE_SPEC when present and readable.
- Otherwise use hook-provided
FEATURE_DIR/spec.md when present and readable.
- Otherwise run the Spec Kit prerequisite script in paths-only mode
(
check-prerequisites.sh --json --paths-only, or the PowerShell
equivalent) and read FEATURE_SPEC or FEATURE_DIR/spec.md from its JSON
output.
Do not run the normal downstream prerequisite validation path here; it may
require plan.md or tasks.md and would be incorrect immediately after
/speckit.specify.
If the active feature spec cannot be resolved or read, STOP:
ERROR: active Spec Kit spec.md not found.
Run /speckit.specify first, then rerun /speckit.superb.brainstorm.
Manual invocation is allowed only as a rerun/refinement path for an existing
Spec Kit feature.
Step 3 โ Bind Brainstorming To Spec Kit Ownership
Apply the resolved brainstorming skill with these mandatory overrides:
- The active Spec Kit
spec.md is the only design output.
- Do not write to
docs/superpowers/specs/.
- Do not create a new feature branch or feature directory.
- Do not invoke another planning discipline or workflow.
- Do not generate or modify
plan.md or tasks.md.
- Preserve the Spec Kit spec structure and heading order when updating content.
- Do not synchronize lifecycle status.
brainstorm does not write
**Status**: or otherwise claim lifecycle progress.
The upstream brainstorming skill may mention a default design-doc location.
This bridge treats the current Spec Kit spec.md as the user's explicit spec
location preference.
Step 4 โ Refinement Process
Execute the brainstorming discipline in a Spec Kit-safe form:
- Read the current
spec.md completely.
- Explore project context before asking questions:
- existing repository structure
- related docs
- recent relevant changes when useful
- Identify whether the feature is too broad for one Spec Kit feature. If it is,
recommend decomposition before writing broad requirements.
- Ask only questions that materially change scope, success criteria, user
flows, constraints, or acceptance criteria.
- Propose 2-3 approaches when the design direction is not obvious.
- Present the refined design and get user approval before writing changes.
If the user declines refinement or approval is not reached, leave spec.md
unchanged and report what remains unresolved.
Step 5 โ Write Back To spec.md
When the user approves the refined design, update only the active spec.md.
The final spec must remain compatible with Spec Kit expectations:
- User scenarios and testing flows are concrete
- Functional requirements are testable and unambiguous
- Success criteria are measurable and technology-agnostic
- Edge cases are captured when relevant
- Assumptions are explicit
- No implementation plan, framework choice, file map, or task list leaks into
the specification
Do not add a separate Superpowers design-doc header, footer, or status model.
Step 6 โ Self Review
Before reporting completion, re-read the updated spec.md and check:
- No
TBD, TODO, unresolved placeholders, or stale
[NEEDS CLARIFICATION] markers were introduced.
- No section contradicts another section.
- Scope remains focused enough for one Spec Kit feature.
- Requirements can feed
/speckit.clarify, /speckit.plan, and
/speckit.tasks without another design source of truth.
If issues are found, fix them inline before reporting.
Report Format
## Brainstorm Refinement
**Spec:** [resolved spec.md path]
**Skill source:** [workspace|global] โ [path]
**Mode:** after_specify hook | manual rerun
### Refinements Applied
- [Concrete spec changes]
### Boundary
Spec Kit remains artifact owner. This command only applied approved refinement
to the existing canonical `spec.md`.
### Remaining Questions
- [Only if unresolved]
### Next Step
Run `/speckit.clarify` if questions remain, otherwise continue to `/speckit.plan`.