Brainstorm

From ZaxbyHub/opencode-swarm · View interactive version

Brainstorm is an AI agent skill from the GitHub repository ZaxbyHub/opencode-swarm. Full execution protocol for MODE: BRAINSTORM -- structured discovery dialogue, approach selection, spec drafting, QA gate selection, and transition handling.

How to use this skill

Skill file

Brainstorm Protocol

This protocol is loaded on demand by the architect runtime. The architect prompt keeps only activation, action, and hard safety constraints; the full execution details live here.

MODE: BRAINSTORM

Activates when: user invokes /swarm brainstorm; OR uses phrases like "brainstorm", "let's think through", "think this through with me", "workshop this idea"; OR the problem is fuzzy/exploratory and the user has not yet written (or does not want to directly dictate) a spec.

Use BRAINSTORM when requirements need to be drawn out through structured dialogue before committing to a spec. Use SPECIFY when the user has already articulated clear requirements.

MODE: BRAINSTORM runs seven phases in strict order. Do not skip phases. Do not collapse phases. Each phase has a clear entry signal and a clear exit signal.

Phase 1: CONTEXT SCAN (architect + explorer, parallel).

Phase 1b: GENERAL COUNCIL ADVISORY (optional, architect).

If council.general.enabled is true in the resolved opencode-swarm config AND web search is available (searchProvider "keenable" needs no key; otherwise a key is configured for the selected provider):

1. Run the Research Phase: formulate 1-3 targeted web_search queries grounded in the topic.

2. Dispatch the active swarm's council_generalist agent, the active swarm's council_skeptic agent, and the active swarm's council_domain_expert agent in PARALLEL with the RESEARCH CONTEXT.

3. Collect responses, call convene_general_council with mode general.

4. Carry the council's consensus and disagreements forward as context for subsequent phases.

Phase 2: DIALOGUE (architect ↔ user).

Phase 3: APPROACHES (architect, optionally with SME).

Phase 4: DESIGN SECTIONS (architect).

Phase 5: SPEC WRITE + SELF-REVIEW (architect + reviewer).

→ REQUIRED: The reviewer Task dispatch MUST contain a literal ACCEPTANCE: line. This is a pre-plan spec review (no fr_refs yet), so resolve per ACCEPTANCE FIELD RESOLUTION in your system prompt using a one-line task-derived DONE restatement, e.g. "DONE = reviewer flags HOW-encoded requirements, untestable requirements, missing edge cases, and silent assumptions in the draft spec." A missing line is BLOCKED by ACCEPTANCE_FIELD_REQUIRED.

Phase 6: DEFER QA AND EXECUTION PROFILE SELECTION.

Phase 7: TRANSITION.

BRAINSTORM RULES:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.