From Superpowers
Create design documents with integrated quality assurance. Unconditional 4-file output — no complexity routing.
How this command is triggered — by the user, by Claude, or both
Slash command
/superpowers:design-and-qabrainstorming/references/The summary Claude sees in its command listing — used to decide when to auto-load this command
# Design with QA ## Goal Create design documents with integrated quality assurance. Unconditional 4-file output — no complexity routing. ## Output Structure (4 files, mandatory) The Design Documents section lists all companions: ## `_index.md` Required Sections MUST use these exact section headings in this order: 1. `## Context` -- Original request and Q&A history 2. `## Discovery Results` -- Codebase exploration findings 3. `## Glossary` -- Canonical labels for domain nouns; populated by the vocabulary reconciliation pass below. Required even when no reconciliation conflict was ...
Create design documents with integrated quality assurance. Unconditional 4-file output — no complexity routing.
docs/plans/YYYY-MM-DD-<topic>-design/
├── _index.md # Main design document
├── bdd-specs.md # BDD specifications
├── architecture.md # Architecture details
├── best-practices.md # Best practices and considerations
├── decisions/ # ADRs (optional)
└── diagrams/ # Visual artifacts (optional)
The Design Documents section lists all companions:
## Design Documents
- [BDD Specifications](./bdd-specs.md) - Behavior scenarios and testing strategy
- [Architecture](./architecture.md) - System architecture and component details
- [Best Practices](./best-practices.md) - Security, performance, and code quality guidelines
_index.md Required SectionsMUST use these exact section headings in this order:
## Context -- Original request and Q&A history## Discovery Results -- Codebase exploration findings## Glossary -- Canonical labels for domain nouns; populated by the vocabulary reconciliation pass below. Required even when no reconciliation conflict was found (record the canonical labels for the concepts the design names so future readers and downstream skills don't reintroduce divergent forms).## Requirements -- Finalized requirements and constraints## Rationale -- Why this approach was chosen over alternatives## Detailed Design -- Components, interfaces, implementation approach## Design Documents -- Links to companion documentsbdd-specs.md ContentWrite all Gherkin scenarios directly in this file. Do NOT create separate .feature files -- those belong to the implementation phase only.
Cover:
architecture.md Contentbest-practices.md ContentLaunch 3+ sub-agents in parallel via the Agent tool. No size gates — research always runs in fresh contexts so the main agent's context stays focused on synthesis:
Sub-agent 1: Architecture Research -- Existing patterns, libraries, codebase conventions. Use WebSearch for latest best practices. Output: architecture recommendations with specific file references.
Sub-agent 2: Best Practices Research -- Security, performance, testing patterns. Load superpowers:behavior-driven-development skill. Output: BDD scenarios, testing strategy, best practices.
Sub-agent 3: Context & Requirements Synthesis -- Synthesize discovery and option results into unified context. Output: requirements list, success criteria, rationale.
Additional sub-agents: Launch for distinct research-intensive aspects as needed.
Conflict resolution: Favor codebase patterns over external recommendations. Verify disagreements with WebSearch. Document trade-offs.
Vocabulary reconciliation (mandatory, before integration):
Sub-agents running in parallel will independently fill in vocabulary gaps for any concept the user did not name explicitly. If they pick different labels for the same concept (e.g. privacy tiers as public/project/local vs local-only/cross-session/cross-project/external), and the main agent integrates without reconciling, the four design files end up using divergent vocabularies — a defect that is hard to catch by content review and produces real downstream confusion.
Before integration:
superpowers/lib/ or docs/retros/ schema rows. Note rejected variants briefly so the choice is auditable._index.md under a ## Glossary section directly after ## Discovery Results.Verification: After integration, grep -oE "<concept-noun>" docs/plans/<folder>/* returns only the canonical label across all four files. Any rejected variant surfacing means step 4 missed a file.
Inciting case: docs/retros/2026-05-09-v3-considered-deferred.md records a brainstorm where three sub-agents produced three privacy-tier vocabularies that were never reconciled, and two evaluator rounds passed the resulting design without flagging the divergence. JUST-01 in docs/retros/checklists/design-v1.md blocks the produce-then-evaluate path; this vocab-reconciliation step blocks the produce-divergent-vocab path at write time.
Integration workflow:
## Glossary section in _index.md recording canonical labels)docs/retros/checklists/ for design-v{N}.md, select highest Nsuperpowers:superpowers-evaluator agent (design mode) with context: "Evaluate the design at [path] using the design checklist at [checklist-path]."git show diff are the review surface.See ./evaluation-checklist-reference.md for checklist categories, verdict rules, and calibration examples.
YYYY-MM-DD date prefix for chronological ordering-design2024-02-10-user-auth-design/npx claudepluginhub est7/dotclaude --plugin superpowers2plugins reuse this command
First indexed Jul 11, 2026