ui-ux-master 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +198 -0
- package/SKILL.md +717 -0
- package/agent-templates/antigravity/AGENTS.append.md +15 -0
- package/agent-templates/claude/commands/ui-ux-master.md +25 -0
- package/agent-templates/codex/AGENTS.append.md +15 -0
- package/agent-templates/cursor/rules/ui-ux-master.mdc +10 -0
- package/agent-templates/gemini/GEMINI.append.md +9 -0
- package/agent-templates/universal/ui-ux-master-trigger.md +18 -0
- package/agent-templates/windsurf/rules/ui-ux-master.md +17 -0
- package/bin/ui-ux-master.mjs +192 -0
- package/docs/slash-command-compatibility.md +58 -0
- package/package.json +55 -0
- package/references/accessibility-advanced-patterns.md +43 -0
- package/references/competitive-landscape.md +47 -0
- package/references/content-design-and-i18n.md +53 -0
- package/references/data-visualization-dashboard-ux.md +46 -0
- package/references/design-system-playbook.md +133 -0
- package/references/ethical-inclusive-design.md +52 -0
- package/references/platform-guidelines.md +59 -0
- package/references/service-design-journey-mapping.md +39 -0
- package/references/top-100-brand-website-analysis.md +302 -0
- package/references/ui-ux-complete-checklist.md +214 -0
- package/references/ui-ux-curriculum-and-standards.md +40 -0
- package/references/ui-ux-frontend-implementation-rules.md +378 -0
- package/references/ui-ux-memory-workflow.md +175 -0
- package/references/usability-heuristics.md +65 -0
- package/references/ux-measurement-quality-gates.md +58 -0
- package/references/ux-research-methods.md +99 -0
- package/references/wcag-aa-quick-reference.md +85 -0
- package/scripts/build_deployment_zip.py +42 -0
- package/scripts/validate_skill.py +303 -0
- package/templates/component-spec.md +127 -0
- package/templates/design-system-spec.md +121 -0
- package/templates/top-brand-frontend-spec.md +133 -0
- package/templates/ui-ux-audit-report.md +146 -0
- package/templates/ui-ux-brief.md +86 -0
- package/templates/ui-ux-memory.md +204 -0
- package/tests/install-smoke.test.mjs +71 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# UI/UX Complete Checklist
|
|
2
|
+
|
|
3
|
+
Use this checklist for every UI/UX design, audit, redesign, or implementation review.
|
|
4
|
+
|
|
5
|
+
## 1. Product Fit
|
|
6
|
+
|
|
7
|
+
- [ ] Product category is clear.
|
|
8
|
+
- [ ] Primary user is identified.
|
|
9
|
+
- [ ] User job-to-be-done is explicit.
|
|
10
|
+
- [ ] Business goal is explicit.
|
|
11
|
+
- [ ] Success metric is defined.
|
|
12
|
+
- [ ] Constraints are listed: platform, brand, tech, timeline, compliance, localization.
|
|
13
|
+
- [ ] Assumptions are separated from facts.
|
|
14
|
+
- [ ] Risks and open questions are documented.
|
|
15
|
+
|
|
16
|
+
## 2. Information Architecture
|
|
17
|
+
|
|
18
|
+
- [ ] Navigation matches user mental model.
|
|
19
|
+
- [ ] Top-level sections are mutually exclusive and collectively useful.
|
|
20
|
+
- [ ] Labels use user vocabulary, not internal implementation names.
|
|
21
|
+
- [ ] Important tasks are reachable in the shortest path.
|
|
22
|
+
- [ ] Secondary and rare tasks are discoverable but not dominant.
|
|
23
|
+
- [ ] Search, filter, sort, and grouping are specified where needed.
|
|
24
|
+
- [ ] Role/permission visibility is defined.
|
|
25
|
+
- [ ] Breadcrumbs or location indicators exist for deep structures.
|
|
26
|
+
|
|
27
|
+
## 3. User Flows
|
|
28
|
+
|
|
29
|
+
- [ ] Entry points are defined.
|
|
30
|
+
- [ ] Happy path is short and clear.
|
|
31
|
+
- [ ] Back/cancel behavior is defined.
|
|
32
|
+
- [ ] Error recovery is defined.
|
|
33
|
+
- [ ] Empty states have next actions.
|
|
34
|
+
- [ ] Success confirmation is defined.
|
|
35
|
+
- [ ] Destructive actions have undo or confirmation.
|
|
36
|
+
- [ ] System feedback exists after every important action.
|
|
37
|
+
- [ ] Flow supports first-time and returning users.
|
|
38
|
+
|
|
39
|
+
## 4. Layout and Hierarchy
|
|
40
|
+
|
|
41
|
+
- [ ] Each screen has one primary goal.
|
|
42
|
+
- [ ] Main CTA is visually dominant.
|
|
43
|
+
- [ ] Secondary actions do not compete with primary action.
|
|
44
|
+
- [ ] Content is grouped by task or meaning.
|
|
45
|
+
- [ ] Spacing supports scanability.
|
|
46
|
+
- [ ] Headings create a logical page outline.
|
|
47
|
+
- [ ] Dense areas have progressive disclosure.
|
|
48
|
+
- [ ] Important information appears before advanced options.
|
|
49
|
+
- [ ] Visual weight matches importance.
|
|
50
|
+
|
|
51
|
+
## 5. Visual Design
|
|
52
|
+
|
|
53
|
+
- [ ] Design style matches product trust level and brand personality.
|
|
54
|
+
- [ ] Color roles are semantic and consistent.
|
|
55
|
+
- [ ] Typography scale supports hierarchy.
|
|
56
|
+
- [ ] Spacing scale is consistent.
|
|
57
|
+
- [ ] Radius, borders, elevation, and shadows are consistent.
|
|
58
|
+
- [ ] Icon style is consistent.
|
|
59
|
+
- [ ] Imagery/illustration style is defined if used.
|
|
60
|
+
- [ ] Motion style is purposeful and not excessive.
|
|
61
|
+
- [ ] UI density matches user context.
|
|
62
|
+
|
|
63
|
+
## 6. Components
|
|
64
|
+
|
|
65
|
+
- [ ] Buttons have variants, sizes, states, and usage rules.
|
|
66
|
+
- [ ] Form controls have labels, helper text, validation, disabled states.
|
|
67
|
+
- [ ] Navigation components have current, hover, focus, and collapsed states.
|
|
68
|
+
- [ ] Modals/drawers/popovers define open/close, focus trap, escape behavior.
|
|
69
|
+
- [ ] Tables define sorting, filtering, pagination, empty, loading, and bulk actions.
|
|
70
|
+
- [ ] Cards define clickable area and metadata hierarchy.
|
|
71
|
+
- [ ] Alerts/toasts define severity and dismissal behavior.
|
|
72
|
+
- [ ] Tooltips do not contain critical information.
|
|
73
|
+
- [ ] Component reuse is preferred over one-off styling.
|
|
74
|
+
|
|
75
|
+
## 7. State Coverage
|
|
76
|
+
|
|
77
|
+
- [ ] Default state.
|
|
78
|
+
- [ ] Loading state.
|
|
79
|
+
- [ ] Skeleton state if needed.
|
|
80
|
+
- [ ] Empty state.
|
|
81
|
+
- [ ] Error state.
|
|
82
|
+
- [ ] Partial data state.
|
|
83
|
+
- [ ] Offline/network issue state if applicable.
|
|
84
|
+
- [ ] Permission denied state.
|
|
85
|
+
- [ ] Disabled state.
|
|
86
|
+
- [ ] Hover/focus/active states.
|
|
87
|
+
- [ ] Selected/current state.
|
|
88
|
+
- [ ] Success state.
|
|
89
|
+
- [ ] Undo/recovery state.
|
|
90
|
+
|
|
91
|
+
## 8. Forms
|
|
92
|
+
|
|
93
|
+
- [ ] Only necessary fields are requested.
|
|
94
|
+
- [ ] Every field has a visible label.
|
|
95
|
+
- [ ] Required/optional status is clear.
|
|
96
|
+
- [ ] Helper text explains ambiguous fields.
|
|
97
|
+
- [ ] Validation timing is user-friendly.
|
|
98
|
+
- [ ] Error messages explain the fix.
|
|
99
|
+
- [ ] User input is preserved after errors.
|
|
100
|
+
- [ ] Inputs use correct type/autocomplete.
|
|
101
|
+
- [ ] Long forms are grouped or stepped.
|
|
102
|
+
- [ ] Submit/loading/disabled behavior is defined.
|
|
103
|
+
|
|
104
|
+
## 9. Content and Microcopy
|
|
105
|
+
|
|
106
|
+
- [ ] H1 explains the page purpose.
|
|
107
|
+
- [ ] CTA labels are verb-led and specific.
|
|
108
|
+
- [ ] Empty state copy explains what happened and what to do next.
|
|
109
|
+
- [ ] Error copy avoids blame and includes recovery.
|
|
110
|
+
- [ ] Confirmation copy states the result.
|
|
111
|
+
- [ ] Destructive action copy explains impact.
|
|
112
|
+
- [ ] Tone is consistent.
|
|
113
|
+
- [ ] Text is concise without becoming vague.
|
|
114
|
+
- [ ] Jargon is avoided unless the audience expects it.
|
|
115
|
+
|
|
116
|
+
## 10. Accessibility
|
|
117
|
+
|
|
118
|
+
- [ ] WCAG 2.2 AA is the baseline.
|
|
119
|
+
- [ ] Semantic HTML/roles are correct.
|
|
120
|
+
- [ ] Heading order is logical.
|
|
121
|
+
- [ ] Keyboard navigation works.
|
|
122
|
+
- [ ] Focus order matches visual/task order.
|
|
123
|
+
- [ ] Focus indicators are visible.
|
|
124
|
+
- [ ] Contrast meets AA.
|
|
125
|
+
- [ ] Color is not the only status indicator.
|
|
126
|
+
- [ ] Images/icons have appropriate alt text or are decorative.
|
|
127
|
+
- [ ] Form errors are programmatically associated.
|
|
128
|
+
- [ ] Motion respects reduced motion.
|
|
129
|
+
- [ ] Touch targets are at least 44x44 px where possible.
|
|
130
|
+
|
|
131
|
+
## 11. Responsive Design
|
|
132
|
+
|
|
133
|
+
- [ ] Mobile layout is not an afterthought.
|
|
134
|
+
- [ ] Navigation has a mobile pattern.
|
|
135
|
+
- [ ] Tables/cards have small-screen behavior.
|
|
136
|
+
- [ ] Sticky elements do not block content.
|
|
137
|
+
- [ ] Modals/drawers fit small screens.
|
|
138
|
+
- [ ] Text wraps safely.
|
|
139
|
+
- [ ] Images preserve useful crops.
|
|
140
|
+
- [ ] Layout works at 320px width.
|
|
141
|
+
- [ ] Layout works at tablet, desktop, and wide sizes.
|
|
142
|
+
|
|
143
|
+
## 12. Trust, Safety, and Ethics
|
|
144
|
+
|
|
145
|
+
- [ ] Costs, risks, permissions, and data usage are transparent.
|
|
146
|
+
- [ ] Dark patterns are avoided.
|
|
147
|
+
- [ ] Consent is explicit where needed.
|
|
148
|
+
- [ ] Destructive actions are recoverable or confirmed.
|
|
149
|
+
- [ ] Sensitive data requests explain why.
|
|
150
|
+
- [ ] AI-generated or uncertain content is labeled when relevant.
|
|
151
|
+
- [ ] User control is preserved.
|
|
152
|
+
|
|
153
|
+
## 13. Performance Perception
|
|
154
|
+
|
|
155
|
+
- [ ] Critical content loads first.
|
|
156
|
+
- [ ] Loading states reduce uncertainty.
|
|
157
|
+
- [ ] Layout shift is minimized.
|
|
158
|
+
- [ ] Feedback appears immediately after user action.
|
|
159
|
+
- [ ] Heavy visuals do not harm usability.
|
|
160
|
+
- [ ] Expensive interactions have optimistic UI or clear progress.
|
|
161
|
+
|
|
162
|
+
## 14. Handoff
|
|
163
|
+
|
|
164
|
+
- [ ] Screen list is complete.
|
|
165
|
+
- [ ] Components and states are specified.
|
|
166
|
+
- [ ] Design tokens are listed.
|
|
167
|
+
- [ ] Responsive behavior is defined.
|
|
168
|
+
- [ ] Accessibility requirements are explicit.
|
|
169
|
+
- [ ] Data requirements are defined.
|
|
170
|
+
- [ ] Analytics events are listed.
|
|
171
|
+
- [ ] QA checklist is included.
|
|
172
|
+
- [ ] Out-of-scope items are documented.
|
|
173
|
+
|
|
174
|
+
## Advanced One-Stop Coverage Additions
|
|
175
|
+
|
|
176
|
+
### Research Evidence
|
|
177
|
+
|
|
178
|
+
- [ ] Evidence sources are documented: analytics, support, interviews, usability tests, screenshots, or stakeholder assumptions.
|
|
179
|
+
- [ ] Research confidence is labeled high, medium, or low.
|
|
180
|
+
- [ ] Assumptions are not presented as user facts.
|
|
181
|
+
- [ ] Research method fits the uncertainty: interview, survey, usability test, card sort, tree test, accessibility test, or heuristic review.
|
|
182
|
+
|
|
183
|
+
### Platform-Native Conventions
|
|
184
|
+
|
|
185
|
+
- [ ] Web, iOS, Android/Material, desktop, email, kiosk, TV, or wearable conventions are followed as relevant.
|
|
186
|
+
- [ ] Touch, mouse, keyboard, remote, and assistive-tech input models are considered.
|
|
187
|
+
- [ ] Back, Escape, safe areas, system font scaling, zoom, and reduced-motion behaviors are defined where relevant.
|
|
188
|
+
|
|
189
|
+
### Internationalization and Content Resilience
|
|
190
|
+
|
|
191
|
+
- [ ] Text can expand without breaking layout.
|
|
192
|
+
- [ ] RTL/bidirectional layout is considered where relevant.
|
|
193
|
+
- [ ] Date, time, number, currency, address, phone, name, and plural formats are locale-aware where relevant.
|
|
194
|
+
- [ ] Translation keys, variables, fallback copy, and legal copy ownership are documented.
|
|
195
|
+
|
|
196
|
+
### Measurement and Quality Gates
|
|
197
|
+
|
|
198
|
+
- [ ] Task success metric is explicit.
|
|
199
|
+
- [ ] Accessibility, responsive, platform, performance, and content gates are defined.
|
|
200
|
+
- [ ] Analytics events support the key user decisions and outcomes.
|
|
201
|
+
- [ ] Usability validation method is specified when risk is medium or high.
|
|
202
|
+
|
|
203
|
+
### Ethics, Privacy, and Inclusion
|
|
204
|
+
|
|
205
|
+
- [ ] No dark patterns: hidden costs, forced continuity, confirmshaming, obstruction, sneaking, or manipulative urgency.
|
|
206
|
+
- [ ] Consent is clear, granular, and not preselected for optional tracking.
|
|
207
|
+
- [ ] Sensitive data and permissions are requested only when needed and explained plainly.
|
|
208
|
+
- [ ] High-risk flows include recovery, appeal, export/delete, or human handoff where appropriate.
|
|
209
|
+
|
|
210
|
+
### Data Visualization and Dashboards
|
|
211
|
+
|
|
212
|
+
- [ ] Charts have titles, units, timeframes, clear scales, and accessible color choices.
|
|
213
|
+
- [ ] Tables support keyboard use, sorting, filtering, density, empty/no-results states, and exports where relevant.
|
|
214
|
+
- [ ] Data freshness, partial data, stale data, and uncertainty are communicated.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# UI/UX Curriculum and Standards Map
|
|
2
|
+
|
|
3
|
+
Use this reference to ensure `ui-ux-master` covers basic-to-advanced UI/UX knowledge and aligns with recognized education paths and standards.
|
|
4
|
+
|
|
5
|
+
## Beginner Foundations
|
|
6
|
+
|
|
7
|
+
- UX vs UI, usability, accessibility, human-centered design.
|
|
8
|
+
- Product goal, user goal, jobs-to-be-done.
|
|
9
|
+
- Basic research: interviews, surveys, competitive analysis.
|
|
10
|
+
- Basic IA: sitemap, navigation, labels.
|
|
11
|
+
- Wireframes, flows, states, responsive basics.
|
|
12
|
+
- Visual basics: typography, color, spacing, hierarchy.
|
|
13
|
+
|
|
14
|
+
Aligned sources: Google UX Design Professional Certificate, Interaction Design Foundation topic library, NN/g definition of UX, Digital.gov usability guidance.
|
|
15
|
+
|
|
16
|
+
## Intermediate Practice
|
|
17
|
+
|
|
18
|
+
- Research planning, synthesis, personas/JTBD, journey maps.
|
|
19
|
+
- Usability testing, heuristic evaluation, accessibility audit.
|
|
20
|
+
- Design systems, components, tokens, governance.
|
|
21
|
+
- Platform conventions for web, iOS, Android, desktop.
|
|
22
|
+
- Content design, forms, ecommerce, dashboard/data visualization.
|
|
23
|
+
- Measurement: task success, SEQ, SUS, funnel metrics, HEART.
|
|
24
|
+
|
|
25
|
+
Aligned sources: NN/g UX Certification curriculum areas, GOV.UK Service Manual, Material Design, Apple HIG, Microsoft Fluent, W3C WCAG/WAI.
|
|
26
|
+
|
|
27
|
+
## Advanced Practice
|
|
28
|
+
|
|
29
|
+
- Service design and omnichannel journeys.
|
|
30
|
+
- Experimentation and product strategy.
|
|
31
|
+
- Advanced accessibility and assistive technology testing.
|
|
32
|
+
- Ethical design, privacy, dark-pattern avoidance, AI transparency.
|
|
33
|
+
- Design system operations, versioning, contribution, deprecation.
|
|
34
|
+
- High-risk domain design for health, finance, children, identity, safety.
|
|
35
|
+
|
|
36
|
+
Aligned sources: ISO 9241-210, ISO 9241-11, HFI certification topics, W3C privacy principles, FTC dark patterns report, NIST AI Risk Management Framework.
|
|
37
|
+
|
|
38
|
+
## Agent Rule
|
|
39
|
+
|
|
40
|
+
When asked for a learning path, audit, or design plan, classify the work as beginner, intermediate, or advanced and include next-step learning or validation recommendations.
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
# UI/UX Frontend Implementation Rules
|
|
2
|
+
|
|
3
|
+
Use these rules every time an agent creates, edits, reviews, or ships frontend using `ui-ux-master`. This file is the implementation guardrail so frontend work does not miss UX, UI, accessibility, responsiveness, states, branding, or handoff requirements.
|
|
4
|
+
|
|
5
|
+
## Non-Negotiable Rule
|
|
6
|
+
|
|
7
|
+
No frontend is complete until it handles:
|
|
8
|
+
|
|
9
|
+
- User goal and business goal.
|
|
10
|
+
- Primary flow and secondary flow.
|
|
11
|
+
- Layout, hierarchy, and responsive structure.
|
|
12
|
+
- Brand/style direction and design tokens.
|
|
13
|
+
- Components and all interactive states.
|
|
14
|
+
- Loading, empty, error, success, disabled, and permission states.
|
|
15
|
+
- Accessibility and keyboard behavior.
|
|
16
|
+
- Content/microcopy.
|
|
17
|
+
- Data requirements and validation.
|
|
18
|
+
- QA verification.
|
|
19
|
+
|
|
20
|
+
If any item is missing, the implementation is incomplete.
|
|
21
|
+
|
|
22
|
+
## Required Implementation Order
|
|
23
|
+
|
|
24
|
+
### 1. Inspect Before Building
|
|
25
|
+
|
|
26
|
+
Before writing UI code:
|
|
27
|
+
|
|
28
|
+
- Check for an application UI/UX memory file first: `.ui-ux-memory.md`, `docs/ui-ux-memory.md`, `docs/design/ui-ux-memory.md`, or `design/ui-ux-memory.md`.
|
|
29
|
+
- If memory exists, read it and follow it as the source of truth for brand and UI consistency.
|
|
30
|
+
- If no memory exists, inspect existing branding and create `.ui-ux-memory.md` using `templates/ui-ux-memory.md` before or alongside the first durable UI change.
|
|
31
|
+
- Check the project stack and dependencies.
|
|
32
|
+
- Check existing component library or design system.
|
|
33
|
+
- Check routing, layout, state management, and styling conventions.
|
|
34
|
+
- Check existing colors, typography, spacing, and components.
|
|
35
|
+
- Check similar pages/components before creating new ones.
|
|
36
|
+
|
|
37
|
+
Do not assume Tailwind, Bootstrap, shadcn, Radix, MUI, Framer Motion, icons, fonts, or chart libraries exist. Verify first.
|
|
38
|
+
|
|
39
|
+
### 2. Define the UX Contract
|
|
40
|
+
|
|
41
|
+
If this is a fresh project with no existing memory or branding, ask minimal high-value questions first: what is being built, who it is for, primary success action, desired personality, colors/fonts/references to use or avoid, and platform/type. If the user does not answer, proceed with explicit assumptions and save them in `.ui-ux-memory.md`.
|
|
42
|
+
|
|
43
|
+
Before coding a screen, write or infer:
|
|
44
|
+
|
|
45
|
+
- Screen purpose.
|
|
46
|
+
- Primary user.
|
|
47
|
+
- Primary task.
|
|
48
|
+
- Primary CTA.
|
|
49
|
+
- Secondary actions.
|
|
50
|
+
- Entry point.
|
|
51
|
+
- Success outcome.
|
|
52
|
+
- Failure/recovery path.
|
|
53
|
+
- Required data.
|
|
54
|
+
- Permissions/roles if applicable.
|
|
55
|
+
|
|
56
|
+
### 3. Choose the Design Method
|
|
57
|
+
|
|
58
|
+
Use `references/top-100-brand-website-analysis.md` and choose one primary method plus up to two supporting methods:
|
|
59
|
+
|
|
60
|
+
- Product Cinema.
|
|
61
|
+
- Utility Command Center.
|
|
62
|
+
- Editorial Brand World.
|
|
63
|
+
- Enterprise Trust Hub.
|
|
64
|
+
- Card-Based Discovery.
|
|
65
|
+
- Conversion Simplicity.
|
|
66
|
+
- Ecosystem Bundling.
|
|
67
|
+
- Premium Restraint.
|
|
68
|
+
- Playful Familiarity.
|
|
69
|
+
- Technical Authority.
|
|
70
|
+
|
|
71
|
+
Never copy a brand exactly. Extract methods, not trademarks.
|
|
72
|
+
|
|
73
|
+
### 4. Create or Reuse Tokens
|
|
74
|
+
|
|
75
|
+
Use tokens instead of scattered hardcoded values.
|
|
76
|
+
|
|
77
|
+
Required token groups:
|
|
78
|
+
|
|
79
|
+
- Color: background, surface, text, border, primary, secondary, success, warning, danger, info, focus.
|
|
80
|
+
- Typography: display, h1, h2, h3, body, body-sm, label, caption, code.
|
|
81
|
+
- Spacing: 0, 2, 4, 8, 12, 16, 20, 24, 32, 40, 48, 64, 80.
|
|
82
|
+
- Radius: none, sm, md, lg, xl, full.
|
|
83
|
+
- Elevation: none, sm, md, lg, overlay.
|
|
84
|
+
- Motion: fast, base, slow, easing.
|
|
85
|
+
- Breakpoints: mobile, tablet, desktop, wide.
|
|
86
|
+
|
|
87
|
+
Use existing project tokens if present. Extend them only when needed.
|
|
88
|
+
|
|
89
|
+
### 5. Build Layout First
|
|
90
|
+
|
|
91
|
+
Every page must define:
|
|
92
|
+
|
|
93
|
+
- Header/navigation.
|
|
94
|
+
- Main content region.
|
|
95
|
+
- Sidebar/panel if needed.
|
|
96
|
+
- Primary action region.
|
|
97
|
+
- Secondary/supporting content.
|
|
98
|
+
- Footer or persistent actions if needed.
|
|
99
|
+
- Responsive behavior for each region.
|
|
100
|
+
|
|
101
|
+
Layout rules:
|
|
102
|
+
|
|
103
|
+
- One clear primary action per screen.
|
|
104
|
+
- Most important content appears first in reading and tab order.
|
|
105
|
+
- Use spacing to group related content.
|
|
106
|
+
- Use consistent max-widths and grid rhythm.
|
|
107
|
+
- Avoid horizontal scrolling except intentional data tables.
|
|
108
|
+
- Do not hide critical actions below unclear menus.
|
|
109
|
+
|
|
110
|
+
### 6. Build Components with Complete States
|
|
111
|
+
|
|
112
|
+
Every interactive component must include:
|
|
113
|
+
|
|
114
|
+
- Default.
|
|
115
|
+
- Hover.
|
|
116
|
+
- Focus-visible.
|
|
117
|
+
- Active/pressed.
|
|
118
|
+
- Selected/current.
|
|
119
|
+
- Disabled.
|
|
120
|
+
- Loading.
|
|
121
|
+
- Error.
|
|
122
|
+
- Success if applicable.
|
|
123
|
+
|
|
124
|
+
Every screen must include:
|
|
125
|
+
|
|
126
|
+
- Loading state.
|
|
127
|
+
- Empty state.
|
|
128
|
+
- Error state.
|
|
129
|
+
- Success/confirmation state.
|
|
130
|
+
- Permission denied state if roles/auth exist.
|
|
131
|
+
- Offline/network failure state if network dependent.
|
|
132
|
+
- Partial data state if data can be incomplete.
|
|
133
|
+
|
|
134
|
+
### 7. Accessibility Is Part of the Build
|
|
135
|
+
|
|
136
|
+
Minimum: WCAG 2.2 AA.
|
|
137
|
+
|
|
138
|
+
Required:
|
|
139
|
+
|
|
140
|
+
- Use semantic HTML first.
|
|
141
|
+
- Buttons are buttons; navigation links are links.
|
|
142
|
+
- Every input has a visible label.
|
|
143
|
+
- Error text is associated with the field.
|
|
144
|
+
- Keyboard can reach and operate every control.
|
|
145
|
+
- Focus order matches visual/task order.
|
|
146
|
+
- Focus-visible styles are obvious.
|
|
147
|
+
- Text contrast meets AA.
|
|
148
|
+
- UI control contrast meets AA where applicable.
|
|
149
|
+
- Do not rely on color alone.
|
|
150
|
+
- Icon-only controls have accessible names.
|
|
151
|
+
- Modals/drawers trap focus and restore focus on close.
|
|
152
|
+
- Menus/popovers support keyboard and Escape.
|
|
153
|
+
- Motion respects reduced-motion preferences.
|
|
154
|
+
- Images have useful alt text or are marked decorative.
|
|
155
|
+
- Touch targets are ideally 44x44 px.
|
|
156
|
+
|
|
157
|
+
### 8. Responsive Rules
|
|
158
|
+
|
|
159
|
+
Design mobile, tablet, desktop, and wide behavior.
|
|
160
|
+
|
|
161
|
+
Check:
|
|
162
|
+
|
|
163
|
+
- 320px minimum width.
|
|
164
|
+
- 375px mobile.
|
|
165
|
+
- 768px tablet.
|
|
166
|
+
- 1024px desktop.
|
|
167
|
+
- 1440px wide.
|
|
168
|
+
|
|
169
|
+
Required decisions:
|
|
170
|
+
|
|
171
|
+
- What stacks?
|
|
172
|
+
- What becomes a drawer?
|
|
173
|
+
- What becomes cards instead of tables?
|
|
174
|
+
- What remains sticky?
|
|
175
|
+
- What content is hidden, collapsed, or prioritized?
|
|
176
|
+
- How does the keyboard affect mobile forms?
|
|
177
|
+
|
|
178
|
+
Do not simply shrink desktop UI.
|
|
179
|
+
|
|
180
|
+
### 9. Forms and Validation Rules
|
|
181
|
+
|
|
182
|
+
Forms must include:
|
|
183
|
+
|
|
184
|
+
- Visible labels.
|
|
185
|
+
- Required/optional clarity.
|
|
186
|
+
- Helper text where useful.
|
|
187
|
+
- Correct input types and autocomplete.
|
|
188
|
+
- Inline validation after user interaction.
|
|
189
|
+
- Clear error messages that explain how to fix the issue.
|
|
190
|
+
- Submit loading state.
|
|
191
|
+
- Disabled state with reason when not obvious.
|
|
192
|
+
- Data preservation after errors.
|
|
193
|
+
- Success confirmation.
|
|
194
|
+
|
|
195
|
+
Avoid:
|
|
196
|
+
|
|
197
|
+
- Placeholder-only labels.
|
|
198
|
+
- Validation before the user interacts.
|
|
199
|
+
- Generic messages like `Invalid input`.
|
|
200
|
+
- Clearing user input on failure.
|
|
201
|
+
|
|
202
|
+
### 10. Content and Microcopy Rules
|
|
203
|
+
|
|
204
|
+
Every screen needs:
|
|
205
|
+
|
|
206
|
+
- Clear H1 matching the user's task.
|
|
207
|
+
- CTA labels that describe the next action.
|
|
208
|
+
- Helpful empty state with next action.
|
|
209
|
+
- Recovery-focused error copy.
|
|
210
|
+
- Success copy that confirms what happened.
|
|
211
|
+
- Destructive action copy that explains consequences.
|
|
212
|
+
|
|
213
|
+
Copy must be specific, concise, human, and action-oriented.
|
|
214
|
+
|
|
215
|
+
### 11. Branding and Visual Quality Rules
|
|
216
|
+
|
|
217
|
+
Use selected brand method to define:
|
|
218
|
+
|
|
219
|
+
- Personality.
|
|
220
|
+
- Color strategy.
|
|
221
|
+
- Typography feel.
|
|
222
|
+
- Layout rhythm.
|
|
223
|
+
- Imagery/icon style.
|
|
224
|
+
- Motion style.
|
|
225
|
+
- Density.
|
|
226
|
+
|
|
227
|
+
Quality rules:
|
|
228
|
+
|
|
229
|
+
- Use one dominant visual idea per screen.
|
|
230
|
+
- Limit accents; reserve strong color for action or meaning.
|
|
231
|
+
- Use consistent spacing and alignment.
|
|
232
|
+
- Match visual density to product type.
|
|
233
|
+
- Avoid random gradients, shadows, glassmorphism, and animations unless they support the chosen method.
|
|
234
|
+
- Do not use top-brand inspiration to copy protected assets or exact identity.
|
|
235
|
+
|
|
236
|
+
### 12. Data and API UX Rules
|
|
237
|
+
|
|
238
|
+
For every data-driven screen, define:
|
|
239
|
+
|
|
240
|
+
- Loading behavior.
|
|
241
|
+
- Empty response behavior.
|
|
242
|
+
- Error response behavior.
|
|
243
|
+
- Partial data behavior.
|
|
244
|
+
- Pagination/infinite scroll behavior.
|
|
245
|
+
- Refresh behavior.
|
|
246
|
+
- Optimistic update or confirmation behavior.
|
|
247
|
+
- Permission/authorization behavior.
|
|
248
|
+
- Validation errors from backend.
|
|
249
|
+
|
|
250
|
+
Never show raw backend errors to users. Translate them into helpful recovery copy.
|
|
251
|
+
|
|
252
|
+
### 13. Navigation and IA Rules
|
|
253
|
+
|
|
254
|
+
Navigation must:
|
|
255
|
+
|
|
256
|
+
- Match user vocabulary.
|
|
257
|
+
- Show current location.
|
|
258
|
+
- Keep common tasks close.
|
|
259
|
+
- Separate primary, secondary, and utility navigation.
|
|
260
|
+
- Support keyboard and mobile.
|
|
261
|
+
- Avoid hiding frequent tasks in overflow menus.
|
|
262
|
+
|
|
263
|
+
For large products, route by user intent: role, task, industry, product category, or lifecycle stage.
|
|
264
|
+
|
|
265
|
+
### 14. Performance Perception Rules
|
|
266
|
+
|
|
267
|
+
Frontend should feel fast even when data is slow.
|
|
268
|
+
|
|
269
|
+
Required:
|
|
270
|
+
|
|
271
|
+
- Show immediate feedback after actions.
|
|
272
|
+
- Use skeletons for structured content loads over 500ms.
|
|
273
|
+
- Avoid layout shift.
|
|
274
|
+
- Lazy-load non-critical media.
|
|
275
|
+
- Keep hero media optimized.
|
|
276
|
+
- Avoid blocking UI with unnecessary modals.
|
|
277
|
+
- Use optimistic UI only when rollback is safe.
|
|
278
|
+
|
|
279
|
+
### 15. Security, Trust, and Ethics Rules
|
|
280
|
+
|
|
281
|
+
Include trust cues when users face risk:
|
|
282
|
+
|
|
283
|
+
- Price/cost clarity.
|
|
284
|
+
- Privacy/data usage explanation.
|
|
285
|
+
- Permission explanation.
|
|
286
|
+
- Secure payment/account cues.
|
|
287
|
+
- Confirmation before destructive actions.
|
|
288
|
+
- Undo when possible.
|
|
289
|
+
- Clear distinction between human and AI-generated content if relevant.
|
|
290
|
+
|
|
291
|
+
Avoid dark patterns:
|
|
292
|
+
|
|
293
|
+
- Hidden costs.
|
|
294
|
+
- Forced continuity.
|
|
295
|
+
- Confirm-shaming.
|
|
296
|
+
- Fake scarcity.
|
|
297
|
+
- Obstructive cancellation.
|
|
298
|
+
- Misleading defaults.
|
|
299
|
+
|
|
300
|
+
### 16. Frontend QA Checklist
|
|
301
|
+
|
|
302
|
+
Before marking implementation complete, verify:
|
|
303
|
+
|
|
304
|
+
- [ ] Primary flow works end-to-end.
|
|
305
|
+
- [ ] Secondary flow works.
|
|
306
|
+
- [ ] Loading state appears.
|
|
307
|
+
- [ ] Empty state appears.
|
|
308
|
+
- [ ] Error state appears and has recovery copy.
|
|
309
|
+
- [ ] Success state appears.
|
|
310
|
+
- [ ] Disabled state is understandable.
|
|
311
|
+
- [ ] Keyboard-only usage works.
|
|
312
|
+
- [ ] Focus states are visible.
|
|
313
|
+
- [ ] Screen reader names are meaningful for icon controls.
|
|
314
|
+
- [ ] Forms have labels and associated errors.
|
|
315
|
+
- [ ] Color contrast meets WCAG AA.
|
|
316
|
+
- [ ] Layout works at 320, 375, 768, 1024, and 1440 px.
|
|
317
|
+
- [ ] No critical action is hover-only.
|
|
318
|
+
- [ ] Mobile nav works.
|
|
319
|
+
- [ ] Tables/lists are usable on mobile.
|
|
320
|
+
- [ ] Motion respects reduced-motion.
|
|
321
|
+
- [ ] Copy is specific and human.
|
|
322
|
+
- [ ] Component styling is consistent with tokens.
|
|
323
|
+
- [ ] No console errors.
|
|
324
|
+
- [ ] No broken images or missing assets.
|
|
325
|
+
- [ ] No copied protected logos/assets unless owned by the user.
|
|
326
|
+
|
|
327
|
+
### 17. Implementation Handoff Checklist
|
|
328
|
+
|
|
329
|
+
When handing off or summarizing frontend work, include:
|
|
330
|
+
|
|
331
|
+
- Files changed.
|
|
332
|
+
- Components created/modified.
|
|
333
|
+
- Tokens added/used.
|
|
334
|
+
- UX method selected.
|
|
335
|
+
- States implemented.
|
|
336
|
+
- Accessibility measures.
|
|
337
|
+
- Responsive behavior.
|
|
338
|
+
- Known limitations.
|
|
339
|
+
- Test/QA commands run.
|
|
340
|
+
- Screenshots or visual verification if available.
|
|
341
|
+
|
|
342
|
+
## Agent Stop Condition
|
|
343
|
+
|
|
344
|
+
Do not stop at "implemented the UI" if verification has not happened. Run available checks, inspect the result, and fix issues found. If browser or visual tools are available, visually verify the page. If tests/lint/build exist, run them. If no automated checks exist, perform the manual QA checklist and report what was verified.
|
|
345
|
+
|
|
346
|
+
## Advanced Deployment Checks
|
|
347
|
+
|
|
348
|
+
### Platform-Specific Implementation
|
|
349
|
+
|
|
350
|
+
- Follow the target platform conventions from `references/platform-guidelines.md`.
|
|
351
|
+
- Do not force desktop web patterns into mobile/native contexts.
|
|
352
|
+
- Implement Back, Escape, focus restoration, safe-area, zoom, and reduced-motion behavior where applicable.
|
|
353
|
+
|
|
354
|
+
### Internationalization Implementation
|
|
355
|
+
|
|
356
|
+
- Avoid hardcoded concatenated strings that cannot be translated.
|
|
357
|
+
- Allow text expansion and wrapping.
|
|
358
|
+
- Use locale-aware date, number, currency, phone, address, and name formatting where relevant.
|
|
359
|
+
- Test RTL or bidirectional layout when target locales require it.
|
|
360
|
+
|
|
361
|
+
### Privacy and Consent UI
|
|
362
|
+
|
|
363
|
+
- Do not preselect optional consent.
|
|
364
|
+
- Make destructive, paid, public, or data-sharing actions explicit.
|
|
365
|
+
- Provide clear recovery or cancellation paths where appropriate.
|
|
366
|
+
|
|
367
|
+
### Advanced Accessibility Widgets
|
|
368
|
+
|
|
369
|
+
- For dialogs, tabs, menus, comboboxes, data grids, toasts, drag/drop, and live updates, follow `references/accessibility-advanced-patterns.md`.
|
|
370
|
+
- Specify keyboard model, focus behavior, accessible name/state, and announcements.
|
|
371
|
+
|
|
372
|
+
### Measurable Frontend Quality Gates
|
|
373
|
+
|
|
374
|
+
- Build/lint/test command passes when available.
|
|
375
|
+
- Main task can be completed at 320px, 768px, 1024px, and 1440px.
|
|
376
|
+
- Keyboard-only path completes the main task.
|
|
377
|
+
- Console has no new runtime errors in the changed flow.
|
|
378
|
+
- Loading, empty, error, success, disabled, permission, and offline/partial states are handled when applicable.
|