Govern Design Brief documents through their full lifecycle — from design review to implementation to visual validation and closure. Use when the user asks to govern a design brief, check design brief status, validate a UI implementation against its brief, or says '治理设计', '/design-governance'. Scans docs/design_brief/ for open briefs, orchestrates review, implementation (pure-frontend or cascading to FR for backend), visual validation via UIUX tests and Playwright, and closure.
Govern a Design Brief from draft through implementation to visual validation and closure. This is the design-first counterpart to fr-governance — where FR governance drives functional implementation, design governance drives user experience implementation.
docs/design_brief/ and needs to be implementeddocs/design_brief/ recursively for *.md files (exclude README.md)Enter plan mode. Audit the brief for completeness and alignment before implementation.
Verify the brief covers all required sections:
| Section | Required | Check |
|---|---|---|
| Design Intent (problem, users, success criteria) | Yes | Has concrete problem statement, not just "we need X" |
| Screens (layout, components, interactions, states) | Yes | Every screen has normal + empty + loading + error states |
| User Flows | Yes | At least one happy-path flow documented |
| Design Constraints | Yes | References docs/design-system.md tokens, not hardcoded values |
| Navigation entry points | Yes | Every screen specifies how users reach it |
| Accessibility notes | Recommended | ARIA roles, keyboard nav, contrast |
Flag missing sections and propose additions. The user decides whether to fill gaps now or proceed.
Read docs/design-system.md and cross-check:
Report any misalignments. The user decides resolution.
Classify the brief into one of:
Present the plan to the user for approval before proceeding.
portal/, site/gui/, or as specified in the brief)docs/design-system.md, not hardcoded valuesnpm run typecheck or npx tsc --noEmit (if TypeScript)npm run lint (if configured)When backend work is needed:
docs/feature_request/ covering the API/data requirements derived from the brief. Link it back to the Design Brief.Status: In Progress (backend: FR-XXX pending)fr-governance), replace mocks with real API calls.The key principle: UI implementation and visual validation should not be blocked by backend work. Build the frontend first with mocks, validate visually, then integrate.
This is the design-governance equivalent of FR governance's QA phase — but focused on visual/interaction correctness rather than functional correctness.
Locate the UIUX test documents that were generated alongside the brief (or by uiux-test-doc-gen):
docs/uiux/*.md test scenarioFor each screen documented in the brief:
docs/design_brief/_validation/{brief-name}/Verify implementation against docs/design-system.md:
prefers-reduced-motion?Produce a summary:
## Visual Validation Report — {Brief Title}
### Screens Validated
| Screen | Route | Mobile | Tablet | Desktop | States | Pass |
|--------|-------|--------|--------|---------|--------|------|
| ... | ... | OK/FAIL | OK/FAIL | OK/FAIL | 4/4 | Yes/No |
### Design System Compliance
- Token usage: PASS/FAIL (details)
- Accessibility: PASS/FAIL (details)
- Responsive: PASS/FAIL (details)
### Issues Found
1. {issue description} — {severity: critical/minor}
### Screenshots
- `docs/design_brief/_validation/{brief-name}/`
If issues are found, fix them and re-validate. Repeat until all checks pass or user accepts remaining issues.
After visual validation passes:
docs/design_doc/{module}/{NN}-{name}.md documenting the implemented design decisions (using the existing design-doc-template from qa-doc-gen)docs/design_brief/docs/design_brief/README.md: remove the row, add closure note following the pattern: DB-XXX closed; design decisions in docs/design_doc/..., visual tests in docs/uiux/...docs/design_doc/README.md: add the new design docdocs/uiux/README.md if test docs were modifiedStatus to In Progressdesign-brief-gen ──→ design-governance ──→ design_doc (closure)
│ ↑
├──→ fr-governance ────┘ (if backend needed)
│
└──→ uiux-test-doc-gen (test scenarios)
design-brief-gen: Creates the brief and initial UIUX test docs (upstream)fr-governance: Governs backend FRs that this brief spawns (parallel track)uiux-test-doc-gen: Refines UIUX test scenarios (Phase 4 input)design-system-guidance: Constraint source throughout the processqa-doc-gen: Design doc template reused at closure