Phase: 4 - UX Design
Agent: Freya (WDS Designer)
Purpose: Systematically validate page and scenario specifications for completeness, consistency, and quality
Triggers:
Essential checks only - use for rapid validation during active design work.
Comprehensive review - use before development handoff.
Full validation including visual-spec alignment - use for critical pages or final quality gate.
The audit follows a hierarchical approach from formatting → scenario → page → component → content.
WDS Formatting Compliance
Strategic Foundation
Structure & Organization
Componentization & Design System
Shared Functionality
Text & Accessibility Content
Purpose: Validate specification follows WDS formatting conventions and standards
Markdown Structure:
Area Label Format:
**AREA LABEL**:{label}`` (bold, all caps, backticks){page}-{section}-{element} (lowercase, hyphens)Translation Format:
- {LANG}: "{content}"List Formatting:
- for unordered lists (not * or +)Code Blocks:
Section Organization:
Spacing & Formatting:
Links:
[Text](path)File Naming:
Inline Translations:
❌ **Content:** "Sign In" (EN), "Logga In" (SE)
✅ **Content:**
- EN: "Sign In"
- SE: "Logga In"
Inconsistent Area Label Format:
❌ Area Label: signin-form-email
❌ **area-label**: `signin-form-email`
✅ **AREA LABEL**: `signin-form-email`
Skipped Heading Levels:
❌ # Page Title
#### Component
✅ # Page Title
## Section
### Subsection
#### Component
Missing Translations:
❌ **Content:**
- EN: "Submit"
(Missing SE)
✅ **Content:**
- EN: "Submit"
- SE: "Skicka"
Navigation Placement (Required for Long Specs): Long specifications must have navigation links in THREE locations so users can navigate without scrolling:
✅ Above the sketch:
**Previous Step:** ← [3.1 Page Name](path)
**Next Step:** → [3.3 Page Name](path)

✅ Below the sketch (still in header area):
**Previous Step:** ← [3.1 Page Name](path)
**Next Step:** → [3.3 Page Name](path)
... specification content ...
✅ Bottom of document:
**Previous Step:** ← [3.1 Page Name](path)
**Next Step:** → [3.3 Page Name](path)
This is especially important for storyboards and multi-state specifications where sketches and content can be very long.
Reference: ../../workflows/00-system/SPECIFICATION-FORMATTING-STANDARDS.md
Purpose: Validate strategic foundation and navigation flow
Strategic Foundation
Navigation Flow
Scenario Overview
Purpose: Validate page structure, organization, and visual alignment
Determine which template applies:
Checklist:
Structural Area Labels:
{page-name}-page){page-name}-header){page-name}-main){page-name}-form){page-name}-{section}-section){page-name}-{section}-header-bar)Checklist:
Gap Analysis:
Checklist:
{page}-{section}-{element})Purpose: Validate componentization and design system integration
Checklist:
Common Reusable Components:
Purpose: Compare sections across all pages in the scenario and flag identical or near-identical content that should be shared components.
Process:
Checklist:
Severity:
Checklist:
Purpose: Validate shared functionality is properly extracted
Shared Features:
Common Shared Features:
Purpose: Validate all content is defined and accessible
Checklist:
Checklist:
ARIA Labels:
Images:
Forms:
Keyboard Navigation:
Screen Reader Support:
Visual Accessibility:
WCAG Compliance:
# Specification Audit Report
**Date:** {YYYY-MM-DD}
**Auditor:** {Name}
**Scope:** {Scenario/Page name}
**Audit Level:** {Quick/Standard/Complete}
---
## Executive Summary
**Overall Status:** {Pass/Pass with Issues/Fail}
**Critical Issues:** {count}
**Warnings:** {count}
**Suggestions:** {count}
---
## Level 1: Scenario-Level Findings
### Strategic Foundation
- ✅ Pass / ⚠️ Warning / ❌ Fail
- Issues: {list}
### Navigation Flow
- ✅ Pass / ⚠️ Warning / ❌ Fail
- Issues: {list}
---
## Level 2: Page-Level Findings
### Structure & Organization
- ✅ Pass / ⚠️ Warning / ❌ Fail
- Issues: {list}
### Visual-Spec Alignment
- ✅ Pass / ⚠️ Warning / ❌ Fail
- Misalignments: {list}
### Area Label Coverage
- ✅ Pass / ⚠️ Warning / ❌ Fail
- Missing Labels: {list}
---
## Level 3: Component-Level Findings
### Componentization
- ✅ Pass / ⚠️ Warning / ❌ Fail
- Issues: {list}
### Design System Integration
- ✅ Pass / ⚠️ Warning / ❌ Fail
- Issues: {list}
---
## Level 4: Feature-Level Findings
### Shared Functionality
- ✅ Pass / ⚠️ Warning / ❌ Fail
- Issues: {list}
---
## Level 5: Content Audit Findings
### Text Content
- ✅ Pass / ⚠️ Warning / ❌ Fail
- Missing content: {list}
### Accessibility Content
- ✅ Pass / ⚠️ Warning / ❌ Fail
- Accessibility gaps: {list}
---
## Recommendations
### Critical (Must Fix Before Development)
1. {Issue and recommended fix}
2. {Issue and recommended fix}
### Warnings (Should Fix)
1. {Issue and recommended fix}
2. {Issue and recommended fix}
### Suggestions (Nice to Have)
1. {Issue and recommended fix}
2. {Issue and recommended fix}
---
## Next Steps
- [ ] {Action item}
- [ ] {Action item}
- [ ] Re-audit after fixes
---
**Audit Complete:** {YYYY-MM-DD}
For rapid validation during active design work:
Formatting (Level 0):
Content (Levels 1-5):
For comprehensive review before development handoff:
All Quick Audit items, plus:
Formatting (Level 0):
Content (Levels 1-5):
For full validation including visual verification:
All Standard Audit items, plus:
Workflow Placement:
Agent Integration:
Menu Trigger: Add to Freya's menu:
- trigger: audit-spec
exec: "skill:wds-4-ux-design"
description: "[AS] Audit page or scenario specifications for completeness and quality"
./templates/page-specification.template.md./templates/storyboard-specification.template.md (for multi-sketch pages)./templates/instructions/open-questions.instructions.md ← Auto-populate questions./templates/instructions/meta-content.instructions.md./templates/instructions/form-validation.instructions.md./templates/instructions/data-api.instructions.md./templates/instructions/responsive.instructions.md./templates/instructions/accessibility.instructions.md./templates/instructions/accessibility-audit.workflow.md../../data/agent-guides/freya/specification-quality.mdBefore auditing, determine which template applies:
| Condition | Template |
|---|---|
| Single sketch | page-specification.template.md |
| Multiple sketches (states, flows) | page-specification + storyboard extension |
Check for required micro-instructions:
| Page Has | Include |
|---|---|
| All pages | open-questions.instructions.md (auto-populate questions) |
| Public visibility | meta-content.instructions.md |
| Forms/inputs | form-validation.instructions.md |
| API data | data-api.instructions.md |
| Multiple breakpoints | responsive.instructions.md |
Verify specs follow the hierarchy:
Page
└── Section (OBJECT ID: page-section)
├── Object (OBJECT ID: page-object)
└── Group/Container (OBJECT ID: page-group)
└── Nested Object (OBJECT ID: page-group-object)
Storyboard pages also need:
Use this workflow to ensure specifications are complete, consistent, and ready for confident implementation.