/sdlc-documentation:05-ux-specificationfrom sdlc-documentation
Produces UX specifications with testable interaction patterns, states, accessibility rules, and design-system constraints from approved user journeys and functional requirements.
Ships in sdlc-documentation. 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.
| Artefact | Source or provider | Required? | Missing behaviour |
|---|---|---|---|
| Approved users, journeys and functional requirements | PRD/SRS and research | Required | Stop where a critical journey or user need lacks evidence. |
| Brand/design system, device and accessibility constraints | Design owner and project context | Required | Use an explicit provisional system if authorised; otherwise qualify visual decisions. |
| Artefact | Consumer | Observable acceptance condition |
|---|---|---|
| UX Specification and handoff evidence | Designers, developers, testers and product owner | Every critical journey includes normal, loading, empty, error, disabled and recovery states; accessibility and usability criteria have observable tests. |
| Evidence | Consumer | Acceptance condition |
|---|---|---|
| Source and decision trace | Reviewer and downstream owner | Each material statement cites an approved input, named decision or qualified open issue. |
| Completed verification record | Release or phase gate owner | Every applicable check records pass/fail; unavailable checks remain not assessed. |
Read-only is the default for analysis, review, evaluation and planning. Read and search access to authorised project artefacts are required. Editing is limited to an explicitly requested project deliverable. Execution may run document, syntax or validation checks. Network access is used only for facts that require current verification. Do not publish, spend, change production, approve policy, or claim certification without explicit authority.
If any required capability is unavailable, return the narrowest useful qualified UX Specification and handoff evidence draft plus a gap register showing the missing item, affected sections, risk and owner. Never convert an unassessed check into a pass.
| Choice | Action | Failure or risk avoided |
|---|---|---|
| Interaction pattern already exists in the design system | Reuse and document variation | Product remains coherent |
| User evidence requires a new pattern | Prototype and test before standardising | Novelty does not create avoidable usability risk |
chwezi-design-engine engine (resolve via the global engine table); this skill states what the experience must achieve and how it is verified.Produces a complete UX specification document that bridges user research insights and engineering implementation. The output includes information architecture diagrams (Mermaid flowcharts), wireframing standards across three fidelity levels, design system token definitions, usability testing protocols with quantitative metrics, and developer-ready design handoff specifications. This skill draws on ISO 9241-210 (Human-centred design for interactive systems), ISO/IEC 25010:2023 (Systems and software quality models), and principles from "The Effective Product Designer" and "Design for How People Think" (John Whalen).
The UX specification must treat the design system as a maintained product, not a style appendix. Token layers, component contracts, source-of-truth expectations, and governance responsibilities are part of the specification.
For premium, revenue-critical, executive-facing, dashboard-heavy, Android, or iOS products, the UX specification must also apply the premium-ui-ux-design skill and references/premium-ui-ux-specification.md so beauty, pleasantness, commercial credibility, platform fit, data quality, and production polish become testable requirements.
HLD.md exists in projects/<ProjectName>/<phase>/<document>/ and identifies user-facing components.vision.md and features.md in projects/<ProjectName>/_context/ provide product scope and feature inventory.stakeholder_register.md in projects/<ProjectName>/_context/ identifies user personas and audience segments.| Attribute | Value |
|---|---|
| Inputs | projects/<ProjectName>/<phase>/<document>/SRS_Draft.md or projects/<ProjectName>/_context/user_stories.md, projects/<ProjectName>/<phase>/<document>/HLD.md, projects/<ProjectName>/_context/vision.md, projects/<ProjectName>/_context/features.md, projects/<ProjectName>/_context/stakeholder_register.md |
| Outputs | projects/<ProjectName>/<phase>/<document>/UX_Specification.md |
| Tone | Precise, user-centred, standards-grounded |
| Standard | ISO 9241-210:2019, ISO/IEC 25010:2023, WCAG 2.2 AA |
| File | Location | Required | Purpose |
|---|---|---|---|
| SRS_Draft.md | projects/<ProjectName>/<phase>/<document>/SRS_Draft.md | Preferred | Functional requirements, user interaction flows, data objects |
| user_stories.md | projects/<ProjectName>/_context/user_stories.md | Alternate | User stories when SRS is not yet available |
| HLD.md | projects/<ProjectName>/<phase>/<document>/HLD.md | Yes | Architectural context, component hierarchy, data flow paths |
| vision.md | projects/<ProjectName>/_context/vision.md | Yes | Product scope, target audience, business goals |
| features.md | projects/<ProjectName>/_context/features.md | Recommended | Feature inventory for information architecture mapping |
| stakeholder_register.md | projects/<ProjectName>/_context/stakeholder_register.md | Recommended | User personas, audience segments, accessibility needs |
| File | Location | Description |
|---|---|---|
| UX_Specification.md | projects/<ProjectName>/<phase>/<document>/UX_Specification.md | Complete UX specification with all sections |
Follow these eight steps in order. Halt and notify the user if a required input file is missing.
Before executing this skill, invoke the frontend-design plugin to analyze the project requirements and determine the most ideal UI/UX approach for this specific project:
Use the frontend-design skill to study the project requirements from `_context/` and recommend the optimal UI/UX approach before we generate the formal UX Specification.
The frontend-design plugin will analyze:
stakeholder_register.md or personas.md)tech_stack.md)Capture the plugin's UI/UX recommendation and incorporate it into all subsequent steps of this skill — especially Step 2 (IA), Step 3 (Wireframe Standards), and Step 4 (Design System).
If the product is premium, revenue-critical, dashboard-heavy, Android, or iOS, also load premium-ui-ux-design and include its requirements in the UX specification from the start rather than as a final polish pass.
If the product is SaaS, dashboard-heavy, multi-role, subscription-based, or AI-enabled,
load references/saas-ux-scope-costing.md and
references/web-app-ui-pattern-selection.md so UX scope, cost drivers, onboarding,
time-to-value, and pattern choices become traceable requirements.
If the product has mobile screens, onboarding, or decision dashboards, also load
references/mobile-dashboard-ux-requirements.md so mobile navigation, first-run value,
permission timing, dashboard ownership, metric context, and verification methods are
specified.
Read SRS_Draft.md and HLD.md from projects/<ProjectName>/<phase>/<document>/. Read vision.md, features.md, stakeholder_register.md, and user_stories.md from projects/<ProjectName>/_context/. Log the absolute path of each file read. If SRS_Draft.md is missing, fall back to user_stories.md. If both are missing, halt execution and report the gap. If HLD.md or vision.md is missing, halt execution and report the gap. If features.md or stakeholder_register.md is missing, log a warning and proceed with available data.
If an existing product or prior UI exists, document a lightweight UI audit before defining the new system: duplicated components, inconsistent states, token drift, and known design debt.
The system shall produce the following information architecture artifacts:
Site Map -- Generate a Mermaid flowchart (graph TD) representing the full page/screen hierarchy. Each node shall represent a distinct screen or content group. Use top-down decomposition: start from the application shell, then primary navigation targets, then secondary views.
Content Inventory Table -- Enumerate every content element:
| Page/Screen | Content Type | Owner | Status | Priority |
|---|
Navigation Model -- Define navigation types present in the application:
Card Sorting Results Template -- Provide a template for recording card sorting sessions (open or closed) with columns for Card Label, User-Assigned Category, Frequency, and Confidence Score.
See references/information-architecture.md for construction techniques and methodology.
The system shall define three fidelity levels with explicit scope boundaries:
| Level | Purpose | Content | Tools |
|---|---|---|---|
| Low Fidelity | Structure and layout exploration | Boxes, labels, placeholder text, no color | Paper, whiteboard, Balsamiq |
| Mid Fidelity | Layout validation and content placement | Actual content, grayscale, basic interactions | Figma (wireframe mode), Axure |
| High Fidelity | Visual design and interaction validation | Full color, real assets, micro-interactions | Figma (design mode), Sketch |
Required Annotations per Level:
Responsive Breakpoints:
See references/wireframing-standards.md for patterns and examples.
The system shall produce design system documentation with three layers:
4.1 Design Tokens
color-action-primary, color-feedback-error) -> Component-level (e.g., button-primary-bg).space-xs, space-sm, space-md).4.2 Component Library Catalog
For each UI component, document:
| Property | Description |
|---|---|
| Name | Component identifier (PascalCase) |
| Description | One-sentence purpose statement |
| Variants | Visual/behavioral variations (e.g., primary, secondary, destructive) |
| States | Interactive states (default, hover, focus, active, disabled, loading, error) |
| Props | Configurable properties with types and defaults |
| Usage Guidelines | When to use and when not to use |
| Accessibility | ARIA roles, keyboard behavior, screen reader announcements |
| Ownership | Which team or role approves changes |
| Source of Truth | Where the canonical implementation/documentation lives |
4.3 Pattern Library
4.4 Governance And Source Of Truth
The specification shall define:
See references/design-system-guide.md for token taxonomy and documentation templates. If the product follows the Chwezi business-app house style, add the declaration in references/house-style-declaration.md.
4.5 Premium Experience Foundation
For premium products, the system shall add:
See references/premium-ui-ux-specification.md for the premium addendum.
The system shall define interaction behaviors for:
Each interaction shall specify: trigger, animation duration (in ms), easing function, and fallback for reduced-motion preferences per prefers-reduced-motion media query.
The system shall enforce WCAG 2.2 Level AA compliance (W3C Recommendation, 12 December 2024 edition; verified 2026-09-24):
| Criterion | Requirement | Verification Method |
|---|---|---|
| Color Contrast | Text contrast ratio >= 4.5:1 (normal text), >= 3:1 (large text) | Automated contrast checker |
| Keyboard Navigation | All interactive elements shall be reachable via Tab, operable via Enter/Space, dismissible via Escape | Manual keyboard walkthrough |
| Screen Reader | All images shall have alt text, all form fields shall have associated labels, dynamic content shall use ARIA live regions | Screen reader testing (NVDA, VoiceOver) |
| Focus Management | Visible focus indicator on all interactive elements, logical tab order, focus trap in modals | Manual inspection |
| Touch Targets | WCAG 2.2 SC 2.5.8 minimum 24x24 CSS px (or spacing exception); premium mobile target 44x44 pt (iOS) / 48x48 dp (Android) | Design review and rendered measurement |
| WCAG 2.2 additions | Focus not obscured by sticky UI (SC 2.4.11); single-pointer alternative to every drag (2.5.7); no memory or transcription test at login without paste, password manager or passkey (3.3.8); help in consistent order (3.2.6); no redundant re-entry within a process (3.3.7) | Keyboard, login and journey walkthroughs at each breakpoint |
| Motion | The system shall respect prefers-reduced-motion and provide static alternatives | CSS media query audit |
The system shall define a usability testing framework:
7.1 Test Planning Template
7.2 Task Scenario Template
7.3 Success Metrics
| Metric | Target | Measurement |
|---|---|---|
| Task Completion Rate | >= 85% | Binary pass/fail per task per participant |
| Time on Task | Varies by complexity | Stopwatch from task start to completion |
| Error Rate | <= 2 errors per task | Count of incorrect actions or missteps |
| Time to Learn | First-time task completion within [N] minutes | Measured in orientation session; user completes target task unassisted |
| User Memory Retention | [X]% recall of core workflows after 2-week gap | Measured in follow-up session without training refresher |
| SUS Score | >= 68 (above average) | Post-test System Usability Scale questionnaire |
7.4 Observation Recording Format
| Task | Participant | Time (s) | Errors | Path Taken | Quotes | Severity |
|---|
7.5 Findings-to-Requirements Feedback Loop
7.6 Heuristic Evaluation — Eight Golden Rules
Before conducting participant usability tests, perform a heuristic evaluation of the design against Shneiderman & Plaisant's Eight Golden Rules of Interface Design (Designing the User Interface, 7th Ed., 2016):
| Rule | Principle | Evaluation Question |
|---|---|---|
| 1. Strive for Consistency | Identical terminology, layout, and color across similar situations | Are menus, labels, and button styles consistent across all screens? |
| 2. Seek Universal Usability | Design for diverse user abilities; provide novice and expert paths | Does the interface work for both first-time and power users? |
| 3. Offer Informative Feedback | Every user action receives an interface response | Does every action (button click, form submit) give visible feedback? |
| 4. Design Dialogs to Yield Closure | Actions have a beginning, middle, and end | Do multi-step processes (wizards, checkout flows) have clear completion states? |
| 5. Prevent Errors | Interface design minimizes serious user errors | Are irreversible actions (delete, submit) protected with confirmations? |
| 6. Permit Easy Reversal | Actions should be reversible to reduce anxiety | Can users undo or go back at every stage? |
| 7. Keep Users in Control | Experienced users feel in charge; no unexpected behavior | Can users customize their workflow? Are surprises avoided? |
| 8. Reduce Short-term Memory Load | Avoid requiring users to remember information across screens | Is context information visible in-view when needed (not hidden behind tabs)? |
Rate each rule: Pass / Partial / Fail. Each Fail generates a design issue logged in the findings register per §7.5.
Standard: Shneiderman & Plaisant (2016), Designing the User Interface: Strategies for Effective Human-Computer Interaction, 6th Ed.
See references/usability-testing.md for the SUS questionnaire and scoring methodology.
The system shall produce developer-ready handoff specifications:
8.1 Annotation Standards
color-action-primary), not hex codes.8.2 Asset Delivery Checklist
| Asset Type | Format | Naming Convention | Resolution |
|---|---|---|---|
| Icons | SVG | icon-{name}-{size}.svg | Vector |
| Illustrations | SVG + PNG fallback | illustration-{name}.svg | 1x, 2x |
| Photos | WebP + JPEG fallback | photo-{context}-{id}.webp | 1x, 2x, 3x |
| Logos | SVG | logo-{variant}.svg | Vector |
8.3 Implementation Acceptance Criteria
Apply 09-governance-compliance/31-kaizen-engine-and-product-improvement/references/ux-friction-and-premium-experience-requirements.md for client-facing, dashboard, onboarding, data-entry, or high-stakes UX; it requires client context, a purpose-fit thesis, authored decisions, decision-surface logic, critical states, measures, handoff proof, and NOT ASSESSED for missing render or user evidence.
The generated UX_Specification.md shall use this section structure with a Document Header (Date, Version, Authors, Standard), followed by eight sections:
For premium products, add Premium Experience Strategy and Premium Gate subsections inside Sections 3, 6, 7, and 8 rather than appending generic polish notes.
For forms, critical microcopy, onboarding, checkout, applications, error-heavy workflows, or public-sector submissions, add a companion output from 03-design-documentation/09-ux-content-and-form-specification so labels, help text, validation, error states, completion metrics, and content governance are testable.
For cognitive evaluation of designs (mental models, attention patterns, emotional response, memory load), reference cognitive-ux-framework.
For premium visual quality, platform fit, data quality, and production gates, reference premium-ui-ux-design.
| Pitfall | Remedy |
|---|---|
| Using raw pixel values instead of tokens | The system shall reference named design tokens for all spacing, color, and typography values |
| Missing accessibility annotations | Every interactive component shall include ARIA roles, keyboard behavior, and contrast verification |
| Wireframes without responsive variants | Each wireframe shall show mobile, tablet, and desktop adaptations |
| Usability test tasks with leading language | Task scenarios shall describe goals without hinting at the solution path |
| Design handoff without interaction states | Every component shall document default, hover, focus, active, and disabled states |
| No feedback loop from testing to requirements | Usability findings rated Critical or Major shall generate traceable requirement updates |
UX_Specification.md exists in projects/<ProjectName>/<phase>/<document>/.| Direction | Skill | Relationship |
|---|---|---|
| Upstream | 01-high-level-design | Consumes HLD.md for component hierarchy and data flow |
| Upstream | Phase 02 (Requirements) | Consumes SRS or user stories for functional context |
| Downstream | Phase 04 (Development) | Provides component specs, tokens, and acceptance criteria for front-end implementation |
| Downstream | Phase 05 (Testing) | Provides usability test protocols and accessibility verification criteria |
| Cross-Ref | cognitive-ux-framework | Cognitive evaluation methodology for design decisions |
| Cross-Ref | premium-ui-ux-design | Premium UI/UX requirements, platform fit, data quality, and visual production gate |
| Cross-Ref | 03-design-documentation/09-ux-content-and-form-specification | Detailed UX content, form, validation, and error-state requirements |
references/information-architecture.md -- Site map construction and navigation model reference.references/wireframing-standards.md -- Fidelity levels, annotation rules, and common patterns.references/design-system-guide.md -- Token taxonomy, component documentation template, pattern library.references/usability-testing.md -- Test planning, SUS questionnaire, observation format.references/design-handoff.md -- Annotation standards, asset delivery, acceptance criteria.references/premium-ui-ux-specification.md -- Premium UI/UX addendum for visual quality, platform fit, dashboard quality, and premium gate scoring.03-design-documentation/09-ux-content-and-form-specification -- companion skill for UX text, form quality gates, validation timing, and error recovery requirements.README.md -- Quick-start guide for this skill.Canonical reference: UX requirements foundations (engine-local, 7 sections).
This skill consumes the broadest portion of the foundations doc. Required reading before producing a UX specification:
The UX spec's non-functional-requirements section must include, where applicable:
For every primary CTA listed in the UX spec, document Yes/No on each of:
Any No = redesign required before launch.
The UX spec opens with one sentence: "This specification targets [Single Interaction / Journey / Relationship] level UX scope."
The UX spec opens with one sentence: "This specification operates at UX Maturity Level [3 / 4]. Premium-pricing claims require Level 3 minimum."
This section augments — does not replace — the existing references in references/: design-handoff.md, design-system-guide.md, information-architecture.md, premium-ui-ux-specification.md, usability-testing.md, wireframing-standards.md. Use them as before; the new section adds upstream discipline.
README.md (opens in a new tab)references/design-handoff.md (opens in a new tab)references/design-system-guide.md (opens in a new tab)references/house-style-declaration.md (opens in a new tab)references/information-architecture.md (opens in a new tab)references/mobile-dashboard-ux-requirements.md (opens in a new tab)references/premium-ui-ux-specification.md (opens in a new tab)references/saas-ux-scope-costing.md (opens in a new tab)references/usability-testing.md (opens in a new tab)references/ux-requirements-foundations.md (opens in a new tab)references/web-app-ui-pattern-selection.md (opens in a new tab)references/wireframing-standards.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peterbamuhigire/chwezi-sdlc-documentation --plugin sdlc-documentation160 skills in this plugin
/01-deployment-guideUse when producing or updating deployment guide for release prerequisites, migration choreography, verification, rollback, and ownership. Use runbook for the neighbouring concern; this skill owns the named document contract and its acceptance evidence./01-high-level-designUse when approved requirements need a system-level architecture with boundaries, components, critical flows, deployment topology and ADRs, or an as-built design must be recovered from existing code; use system-overview for orientation, low-level-design for module internals, and infrastructure-design for infrastructure depth./01-initialize-srsUse when writing a new SRS (software requirements specification) for a business system or module: create the Waterfall SRS workspace, IEEE structure, identifiers and source context; use context-engineering next for boundaries and actors.Other plugins' skills for the same job