/design-review-gate
Automatic 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
Claude Code
$ npx -y skills add dsifry/metaswarm --skill design-review-gate --agent claude-code
Codex
$ npx skills add dsifry/metaswarm --skill design-review-gate -a codex -y
Cursor
$ npx skills add dsifry/metaswarm --skill design-review-gate -a cursor -y
Gemini CLI
$ npx skills add dsifry/metaswarm --skill design-review-gate -a gemini-cli -y
GitHub Copilot
$ npx skills add dsifry/metaswarm --skill design-review-gate -a github-copilot -y
OpenCode
$ npx skills add dsifry/metaswarm --skill design-review-gate -a opencode -y
Windsurf
$ npx skills add dsifry/metaswarm --skill design-review-gate -a windsurf -y
SKILL.md
design-review-gate.SKILL.mdname: design-review-gate
description: Automatic 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
auto_activate: true
triggers:
- "project-sized design doc committed (docs/plans/*-design.md or docs/superpowers/specs/*-design.md)"
Design Review Gate
Purpose
This skill automatically activates when brainstorming writes and commits a project-sized design doc (see [`./guides/workflow-enforcement.md`](./guides/workflow-enforcement.md)). In full orchestration, where there is no design doc, the orchestrator runs it on the plan after the Plan Review Gate (see [two pipelines](./guides/workflow-enforcement.md#two-pipelines)). It ensures complex features receive proper review before implementation begins by spawning six specialist reviewers:
1. **Product Manager Agent** - Use case validation and user benefit review 2. **Architect Agent** - Technical architecture review 3. **Designer Agent** - UX/API design quality review 4. **Security Design Agent** - Security threat modeling and protection review 5. **UX Reviewer Agent** - User flows, UI states (empty, loading, error) and integration wiring review 6. **CTO Agent** - Codebase alignment and TDD readiness review
All six must approve before proceeding to implementation.
---
Coordination Mode Note
This skill supports both coordination modes:
- **Task Mode** (default): Spawn 6 parallel `Task()` subagents for each review round, each with role type `roleType("design-reviewer")`. Fresh instances per round. Role types are resolved per [Role type resolution](./guides/agent-coordination.md#role-type-resolution).
- **Team Mode**: `TeamCreate("review-{design-doc-name}")`, spawn 6 reviewers as named teammates (`pm`, `architect`, `designer`, `security`, `ux`, `cto`), each using the `roleType("design-reviewer")` type with the role in its prompt. Reviewers retain context through revision cycles — saves 6 cold starts per re-review round. After approval, send `shutdown_request` to all, then `TeamDelete`.
In either mode, the review criteria, the severity rule (see Phase 3), and escalation rules are identical. See `./guides/agent-coordination.md` for mode detection.
---
Activation Triggers
This skill auto-activates when:
1. A project-sized design doc is committed to `docs/plans/*-design.md` or `docs/superpowers/specs/*-design.md` (see [`./guides/workflow-enforcement.md`](./guides/workflow-enforcement.md)) 2. User explicitly requests: `/review-design <path-to-design.md>`
---
Workflow
Phase 1: Spawn Review Agents (Parallel)
// Spawn all six agents in parallel for efficiency.
// Every reviewer uses the design-reviewer role type; the role (PM, Architect, ...) lives in the prompt.
const [pmResult, architectResult, designerResult, securityResult, uxResult, ctoResult] = await Promise.all([
Task({
subagent_type: roleType("design-reviewer"),
description: "PM review",
prompt: pmReviewPrompt(designDocPath),
}),
Task({
subagent_type: roleType("design-reviewer"),
description: "Architect review",
prompt: architectReviewPrompt(designDocPath),
}),
Task({
subagent_type: roleType("design-reviewer"),
description: "Designer review",
prompt: designerReviewPrompt(designDocPath),
}),
Task({
subagent_type: roleType("design-reviewer"),
description: "Security design review",
prompt: securityDesignReviewPrompt(designDocPath),
}),
Task({
subagent_type: roleType("design-reviewer"),
description: "UX review",
prompt: uxReviewPrompt(designDocPath),
}),
Task({
subagent_type: roleType("design-reviewer"),
description: "CTO review",
prompt: ctoReviewPrompt(designDocPath),
}),
]);Phase 2: Aggregate Results
Each agent returns a structured review. Every finding uses the 6-field contract from [`./guides/delivery-scope.md`](./guides/delivery-scope.md) plus the signal fields:
interface Finding {
title: string; // short label, ≤ ~80 chars
description: string; // 1-3 sentences: what is wrong and why it matters
severity: "critical" | "major" | "minor" | "nit";
protects: string; // credible user scenario | explicit requirement | DoD item; required for critical/major
evidence: string; // design doc section, file:line, or expected-vs-found
blocker: "yes" | "no"; // yes only if severity ∈ {critical, major} AND protects is non-empty
theme: string; // short label on every finding; reuse an earlier theme label when one fits
needs_user?: "yes" | "no"; // blockers only: yes only if just the user can answer it
origin?: "implementation" | "requirement" | "assumption"; // blockers only
assumption?: string; // ledger id (A3) or a quoted decision; required when origin is "assumption"
}
interface ReviewResult {
agent: "product-manager" | "architect" | "designer" | "security-design" | "ux-reviewer" | "cto";
verdict: "APPROVED" | "NEEDS_REVISION"; // NEEDS_REVISION only with at least one blocker: "yes" finding
criteria_applied: string; // the receipt: role, criteria sections and rubric or persona file applied
criteria_check: { item: string; result: "PASS" | "FAIL" | "N/A"; evidence: string }[]; // one row per role checklist item
findings: Finding[]; // every finding, any severity
suggestions: string[]; // Non-finding notes
questions: string[]; // Clarifications needed
use_case_analysis?: {
// PM agent only
total_use_cases: number;
clear: number;
needs_work: number;
missing_scenarios: string[];
};
threat_model?: {
// Security agent only
high_risk: string[];
medium_risk: string[];
mitigations_required: string[];
};
}A NEEDS_REVISION without any `blocker: yes` finding is read as APPROVED, and its findings become follow-ups. A NEEDS_REVISION whose findings lack the 6 fields is re-requested once in t
Read more
name: design-review-gate description: Automatic 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 auto_activate: true triggers: - "project-sized design doc committed (docs/plans/*-design.md or docs/superpowers/specs/*-design.md)"
Design Review Gate
Purpose
This skill automatically activates when brainstorming writes and commits a project-sized design doc (see [`./guides/workflow-enforcement.md`](./guides/workflow-enforcement.md)). In full orchestration, where there is no design doc, the orchestrator runs it on the plan after the Plan Review Gate (see [two pipelines](./guides/workflow-enforcement.md#two-pipelines)). It ensures complex features receive proper review before implementation begins by spawning six specialist reviewers:
1. **Product Manager Agent** - Use case validation and user benefit review 2. **Architect Agent** - Technical architecture review 3. **Designer Agent** - UX/API design quality review 4. **Security Design Agent** - Security threat modeling and protection review 5. **UX Reviewer Agent** - User flows, UI states (empty, loading, error) and integration wiring review 6. **CTO Agent** - Codebase alignment and TDD readiness review
All six must approve before proceeding to implementation.
---
Coordination Mode Note
This skill supports both coordination modes:
- **Task Mode** (default): Spawn 6 parallel `Task()` subagents for each review round, each with role type `roleType("design-reviewer")`. Fresh instances per round. Role types are resolved per [Role type resolution](./guides/agent-coordination.md#role-type-resolution).
- **Team Mode**: `TeamCreate("review-{design-doc-name}")`, spawn 6 reviewers as named teammates (`pm`, `architect`, `designer`, `security`, `ux`, `cto`), each using the `roleType("design-reviewer")` type with the role in its prompt. Reviewers retain context through revision cycles — saves 6 cold starts per re-review round. After approval, send `shutdown_request` to all, then `TeamDelete`.
In either mode, the review criteria, the severity rule (see Phase 3), and escalation rules are identical. See `./guides/agent-coordination.md` for mode detection.
---
Activation Triggers
This skill auto-activates when:
1. A project-sized design doc is committed to `docs/plans/*-design.md` or `docs/superpowers/specs/*-design.md` (see [`./guides/workflow-enforcement.md`](./guides/workflow-enforcement.md)) 2. User explicitly requests: `/review-design <path-to-design.md>`
---
Workflow
Phase 1: Spawn Review Agents (Parallel)
// Spawn all six agents in parallel for efficiency.
// Every reviewer uses the design-reviewer role type; the role (PM, Architect, ...) lives in the prompt.
const [pmResult, architectResult, designerResult, securityResult, uxResult, ctoResult] = await Promise.all([
Task({
subagent_type: roleType("design-reviewer"),
description: "PM review",
prompt: pmReviewPrompt(designDocPath),
}),
Task({
subagent_type: roleType("design-reviewer"),
description: "Architect review",
prompt: architectReviewPrompt(designDocPath),
}),
Task({
subagent_type: roleType("design-reviewer"),
description: "Designer review",
prompt: designerReviewPrompt(designDocPath),
}),
Task({
subagent_type: roleType("design-reviewer"),
description: "Security design review",
prompt: securityDesignReviewPrompt(designDocPath),
}),
Task({
subagent_type: roleType("design-reviewer"),
description: "UX review",
prompt: uxReviewPrompt(designDocPath),
}),
Task({
subagent_type: roleType("design-reviewer"),
description: "CTO review",
prompt: ctoReviewPrompt(designDocPath),
}),
]);Phase 2: Aggregate Results
Each agent returns a structured review. Every finding uses the 6-field contract from [`./guides/delivery-scope.md`](./guides/delivery-scope.md) plus the signal fields:
interface Finding {
title: string; // short label, ≤ ~80 chars
description: string; // 1-3 sentences: what is wrong and why it matters
severity: "critical" | "major" | "minor" | "nit";
protects: string; // credible user scenario | explicit requirement | DoD item; required for critical/major
evidence: string; // design doc section, file:line, or expected-vs-found
blocker: "yes" | "no"; // yes only if severity ∈ {critical, major} AND protects is non-empty
theme: string; // short label on every finding; reuse an earlier theme label when one fits
needs_user?: "yes" | "no"; // blockers only: yes only if just the user can answer it
origin?: "implementation" | "requirement" | "assumption"; // blockers only
assumption?: string; // ledger id (A3) or a quoted decision; required when origin is "assumption"
}
interface ReviewResult {
agent: "product-manager" | "architect" | "designer" | "security-design" | "ux-reviewer" | "cto";
verdict: "APPROVED" | "NEEDS_REVISION"; // NEEDS_REVISION only with at least one blocker: "yes" finding
criteria_applied: string; // the receipt: role, criteria sections and rubric or persona file applied
criteria_check: { item: string; result: "PASS" | "FAIL" | "N/A"; evidence: string }[]; // one row per role checklist item
findings: Finding[]; // every finding, any severity
suggestions: string[]; // Non-finding notes
questions: string[]; // Clarifications needed
use_case_analysis?: {
// PM agent only
total_use_cases: number;
clear: number;
needs_work: number;
missing_scenarios: string[];
};
threat_model?: {
// Security agent only
high_risk: string[];
medium_risk: string[];
mitigations_required: string[];
};
}A NEEDS_REVISION without any `blocker: yes` finding is read as APPROVED, and its findings become follow-ups. A NEEDS_REVISION whose findings lack the 6 fields is re-requested once in t
A self-improving multi-agent orchestration framework for Claude Code, Gemini CLI, and Codex CLI.
Other skills on metaswarm.
More skills from other plugins.
agentmail
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
adr-create
Create a new Architecture Decision Record with sequential numbering and AgentDB registration
Questions about design-review-gate.
- Which coding agents can use design-review-gate?
- design-review-gate installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

