/metaswarm:brainstorming-extensionfrom metaswarm
Enforces the design review gate during brainstorming sessions, loading assumption ledger and misreadings checklist, and triggering review when project-sized design docs are committed.
Ships in metaswarm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill bridges superpowers:brainstorming into the metaswarm quality pipeline by enforcing the Design Review Gate when brainstorming writes and commits a project-sized design doc. Only project-sized work reaches the gate; quick tasks, chat-only designs and short design docs for small changes skip it (see guides/workflow-enforcement.md). Without this bridge, brainstorming flows directly into writing-plans, bypassing the 6-agent design review that catches architectural, security, and requirements issues before expensive implementation begins.
This is a critical workflow enforcement point, not a passive extension.
Load this skill at the start of brainstorming, for every brainstorming session regardless of size. Quick tasks, chat-only designs and short design docs for small changes skip the project-sized design review gate below, but they do not skip this section. Follow it before any design is presented or committed.
When the brainstorm is about a user-facing feature or a new major capability (or another design that matters), research comes before options are presented:
codebase-researcher (roleType("codebase-researcher")) for the code facts and dual-arm deep research for the design research, all in parallel: a deep-researcher (roleType("deep-researcher"), fable) and a deep-researcher-second (roleType("deep-researcher-second"), opus) on the same brief. Merge the two arms. A single arm (fable only) is the option for a small or low-stakes design. The deep-research brief names the lenses for the kind of work: Product for user-facing work, Design when there is more than one reasonable shape, Capability for new major capabilities and platform changes. It works to rubrics/deep-research-rubric.md, including the session-history search, web research, numbered open questions with defaults, a size estimate and "challenge the brief".citation-checker (roleType("citation-checker")) on each report, then a codebase-researcher in its context check mode (SCOPE, ACTOR, TENSE, STRENGTH) on each report, and apply both sets of corrections before using them. Each brief names the directories the report cites outside the repo; for a citation the checker marks UNREACHABLE, grant access and re-run it or open the source yourself. Order: researcher(s) → citation check → context check → apply corrections → design. This session runs these steps; a researcher cannot spawn subagents.For a small change or a code-only question, a codebase-researcher alone is enough for the research, with no deep-research arm. If its findings feed a design, plan or decision, run the citation check and the context check before use. Which role to use, and what each costs, is in guides/research-selection.md.
Write an assumption ledger into the design doc when there is one, so the reviewers and the user can see what the design rests on. For a chat-only design, keep the ledger in the conversation, restated in a message, and in the plan when one exists.
## Assumptions (unconfirmed)
- A1. <what the design assumes> — source: agent-proposed | "<exact user words>"
## Confirmed
- A2. <the reading or decision> — confirmed by the user: "<exact user words>"
needs_user when Confirmed already answers it.When the work skips brainstorming, the issue orchestrator keeps the same ledger in the plan's Assumptions section.
Run this checklist before the design is committed or presented. For each pattern, ask whether the design could be a misreading of the user's request, and ask the user if it could. The checklist is the 4 built-in patterns below plus the patterns this project has learned.
Load the project's learned patterns first. They are facts in the project's knowledge base, type gotcha, tagged misunderstanding:
[ -d .beads/knowledge ] && find .beads/knowledge -maxdepth 1 -name '*.jsonl' -exec grep -h '"misunderstanding"' {} + |
if command -v jq >/dev/null 2>&1; then jq -Rr 'fromjson? | select((.tags // []) | index("misunderstanding")) | .fact'; else cat; fi
Skip this step when .beads/knowledge/ is missing. find avoids a shell error when no .jsonl file exists, and fromjson? skips a malformed line instead of dropping every fact after it. Without jq the command prints the matching JSON lines: read the fact value of each. Treat each fact as one more item on the checklist.
Learned patterns live in each project's knowledge base, so they survive sessions and /update. /self-reflect records each one as a gotcha tagged misunderstanding in .beads/knowledge/gotchas.jsonl, and offers, without doing it automatically, to file a GitHub issue on dsifry/metaswarm so a general pattern can join the built-in list. Edit the built-in list above only when the current repo is metaswarm itself.
When a Clarification report exists (the severity rule fired a Clarify signal, or the user chose "Clarify the requirement / re-brainstorm" at an escalation), brainstorming takes the report and the user's answers as input. Restate the answers, get the restatement confirmed, and record the confirmed reading in the design's Confirmed section. Then run the Common misreadings checklist on the revised design. The revised design starts a new gate occurrence with a fresh review round.
superpowers:brainstorming ends by handing off to writing-plans: in superpowers 6.4.1 a terminal-state rule on the Architectural path says writing-plans is the only skill invoked next, and in 7.x an approved design doc leads to writing-plans. For a project-sized design doc this creates a pipeline bypass:
WITHOUT this extension (broken flow):
superpowers:brainstorming
└── Commits a project-sized design doc
└── writing-plans (DIRECTLY — no review!)
└── executing-plans
└── Implementation begins on UNREVIEWED design
WITH this extension (correct flow):
superpowers:brainstorming
└── Commits a project-sized design doc
│
▼
┌─────────────────────────────────────────┐
│ MANDATORY DESIGN REVIEW GATE │
│ (Enforced by CLAUDE.md + start-task) │
│ │
│ 6 parallel review agents: │
│ • Product Manager (use cases) │
│ • Architect (architecture) │
│ • Designer (UX/API) │
│ • Security Design (threats) │
│ • UX Reviewer (user flows, UI states) │
│ • CTO (TDD readiness) │
│ │
│ ALL SIX must APPROVE │
└─────────────────────────────────────────┘
│
▼
ALL APPROVED? ────No────► Iterate on design (severity-gated, cap 10)
│
Yes
│
▼
writing-plans (plan written) → plan-review-gate → (gate PASS) present plan + execution menu → orchestrated-execution
(the gate runs before writing-plans presents the plan; see ./guides/workflow-enforcement.md)
YAML frontmatter triggers (auto_activate, triggers) are metadata hints — Claude Code does not enforce them automatically. Instead, this enforcement works through three redundant mechanisms. The same routing lines also load this skill at the start of brainstorming, for the assumption ledger and the Common misreadings checklist, so they apply before any design exists:
The CLAUDE.md template contains a "Workflow Enforcement (MANDATORY)" section that explicitly states:
After a project-sized design doc is committed: STOP → Run Design Review Gate → Wait for all 6 agents to APPROVE → Only then proceed
This instruction is loaded into every conversation and overrides conflicting skill instructions. The template and its append variants also carry a "During brainstorming" line that loads this skill at the start of brainstorming.
The /start-task command's Problem Definition Phase includes an explicit "Design Review Gate (project-sized designs only)" block that requires the gate once a project-sized design doc is committed. Its routing line also loads this skill at the start of brainstorming.
When this skill is loaded (either by name or auto-activation), it provides the detailed procedure below.
When brainstorming writes and commits a project-sized design doc (see guides/workflow-enforcement.md):
## Design Review Gate Activated
Your design document has been committed. Before proceeding to implementation,
I'll run it through our 6-agent review panel.
Spawning reviews (each `roleType("design-reviewer")`, role in the prompt):
- Product Manager Agent (use case/requirements validation)
- Architect Agent (technical architecture)
- Designer Agent (UX/API design)
- Security Design Agent (threat modeling/security review)
- UX Reviewer (user flows, UI states, integration wiring)
- CTO Agent (TDD readiness)
This typically takes 2-3 minutes...
Invoke the design-review-gate skill with the path to the design document. This spawns all 6 review agents in parallel.
If ALL APPROVED:
## Design Review Gate: PASSED
All six reviewers have approved your design!
| Agent | Verdict | Notes |
| --------------- | -------- | ------------------------------------- |
| Product Manager | APPROVED | Clear use cases, measurable benefits |
| Architect | APPROVED | Clean architecture, follows patterns |
| Designer | APPROVED | Good API design, clear error states |
| Security Design | APPROVED | No high-risk threats, mitigations OK |
| UX Reviewer | APPROVED | Flows, UI states and wiring defined |
| CTO | APPROVED | TDD specs present, ready to implement |
### Next Steps
1. Create epic for this feature
2. Create implementation plan (writing-plans)
3. Run plan through Plan Review Gate (3 adversarial reviewers)
4. Set up worktree for isolated development
5. Begin orchestrated execution
Ready to proceed? [Yes / No]
If ANY NEEDS_REVISION:
## Design Review Gate: NEEDS REVISION
Some reviewers found issues that need to be addressed.
### Blocking Issues
[Agent-specific issues listed here]
### Questions Requiring Answers
[Questions listed here]
---
Please revise the design document and I'll re-run the review gate.
(Round 1; severity-gated iteration, cap 10 rounds)
blocker: yes finding): Help user address the blockers, re-run gate. Iteration is severity-gated (cap 10 rounds; see the metaswarm plugin's guides/delivery-scope.md)guides/delivery-scope.md). For option A (Answer), re-brainstorm with the user's answers (see Re-brainstorm after a Clarification); option B keeps the same occurrence and continues the review./guides/delivery-scope.md) (Revise / Clarify the requirement / re-brainstorm / Narrow scope / Defer / Cancel). Neither a Clarify nor an escalation approves: a revised design gets a fresh review roundQuick tasks, chat-only designs and short design docs for small changes never reach the gate: they skip it automatically by size (see ./guides/workflow-enforcement.md). A project-sized design doc always goes through the gate; there is no user-requested exception. If the user thinks the work is not project-sized, re-size it during brainstorming (superpowers lets them choose a smaller size) instead of bypassing the gate.
superpowers:brainstorming — The upstream skill this bridges fromdesign-review-gate — The 6-agent review implementationplan-review-gate — The next gate in the pipeline: runs once writing-plans has written the plan, before writing-plans presents the plan (see ./guides/workflow-enforcement.md)orchestrated-execution — The execution framework after planningWhat SKILL.md sets; muted values are Claude Code's defaults
metaswarm@metaswarm-marketplace is listed by dsifry/metaswarm-marketplace — review the source before installing
npx claudepluginhub dsifry/metaswarm-marketplace --plugin metaswarm15 skills in this plugin
/create-issueCreate comprehensive GitHub issues with TDD plans, acceptance criteria, and agent instructions for autonomous PR lifecycle management/design-review-gateAutomatic review gate that runs when brainstorming commits a project-sized design doc - spawns PM, Architect, Designer, Security, UX Reviewer and CTO agents in parallel, iterates under the severity rule until all approve or it escalates/external-toolsDelegate implementation and review tasks to external AI CLI tools (Codex, Gemini) with cross-model adversarial reviewOther plugins' skills for the same job