/design-engine:form-ux-designfrom design-engine
Guides form UX/UI design across web, iOS, and Android: field anatomy, validation, errors, multi-step flows, accessibility, and submission recovery.
Ships in design-engine. 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.
Acknowledgement: Shared by Peter Bamuhigire, techguypeter.com, +256 784 464178.
empty-error-and-loading-states (this skill covers the field-level loading/error states only).component-states-and-interaction-fidelity or interaction-design-patterns.practical-ui-design; for menus/wayfinding use navigation-and-information-architecture.02-color-brand-and-visual-identity/color-system-and-palette and gate every pair on WCAG contrast.| Input | Source | Evidence |
|---|---|---|
| User goal, fields, and business rules | Product owner and data/API contract | Field schema, dependencies, and server errors |
| Platform and input contexts | Delivery requirements | Web/mobile, keyboard, touch, autofill, and locale needs |
| Risk and completion constraints | Security/compliance owner | Sensitive fields, consent, timeout, and retention rules |
examples/form-spec-worked.md), new component code, a UX audit, or a refactor of an existing form.| Condition | Choice | Wrong-choice failure |
|---|---|---|
| Field can be validated locally with certainty | Validate on blur or meaningful transition | Per-keystroke errors interrupt entry and punish users |
| Task is long but naturally grouped | Staged form with progress and saved state | One wall of fields increases abandonment |
| Server rejects valid-looking input | Preserve entries and map error to field/summary | Clearing the form destroys work and hides recovery |
The form must be completable by keyboard and assistive technology, explain errors at the point of action, preserve entered data after recoverable failures, and specify every asynchronous state.
| Output | Consumer | Evidence and acceptance |
|---|---|---|
| Form specification | Design and engineering | Field anatomy, rules, copy, states, order, and submission recovery are explicit |
| Form QA record | Product and accessibility QA | Keyboard, touch, autofill, errors, focus, and representative completion pass |
references/payment-forgiveness-and-control-choice.md — short forms, forgiveness rules, payment and mobile-money fields, control choice, field presentation.
doctrine/design-doctrine.md — the Mission and the Anti-Slop Charter; forms must look authored, not defaulted.
doctrine/references/ai-slop-taxonomy.md — the convergent-default tells to avoid in form layout and styling.
doctrine/references/type-scale-and-spacing.md — label/field type sizing and spacing rhythm.
This skill's own references/ directory for platform-specific deep detail (web/Android/iOS components, validation, accessibility) after reading the core workflow below.
Sibling: 02-color-brand-and-visual-identity/color-system-and-palette for error/success/validation colour roles (gate every pair on WCAG contrast).
examples/form-spec-worked.md — a complete, build-ready spec for a real account sign-up form: field anatomy, label placement, input types, inline validation with timing, the five field states plus form-level states, and WCAG 2.2 accessibility (3.3.7 redundant entry, 3.3.8 accessible authentication, 2.5.8 target size) with mobile behaviour. Use as a fill-in template.Cross-cutting form design patterns for web (Bootstrap 5 / Tabler + PHP), Android (Jetpack Compose + Material 3), and iOS (SwiftUI). Apply this skill whenever you build, review, or refactor any form.
| Topic | Reference File | Scope |
|---|---|---|
| Web form components | references/web-form-components.md | Bootstrap/Tabler inputs, selects, checkboxes, radios, switches, textareas, file uploads |
| Android form components | references/android-form-components.md | Compose TextField, ExposedDropdownMenu, Checkbox, RadioButton, Switch, Slider |
| iOS form components | references/ios-form-components.md | SwiftUI TextField, Picker, Toggle, DatePicker, Stepper |
| Validation patterns | references/form-validation.md | Validation logic, error states, async validation, submission workflows (all platforms) |
| Accessibility | references/form-accessibility.md | WCAG form requirements, ARIA, screen readers, keyboard nav, touch targets (all platforms) |
Five rules that govern every form decision:
Three dimensions of every form (most to least influential):
A form is a conversation. Order, tone, appropriateness, and effort all matter to humans. Design accordingly.
"Start with nothing. Then only add what's needed to communicate with the user." — Every pixel must serve a purpose. Be ruthless.
Collect only what you need. Every additional question reduces completion rate and data quality. Never add questions "just in case."
Labels above inputs on ALL screen sizes. NEVER use placeholder text as the label — it disappears on focus, makes fields look pre-filled, is not reliably announced by screen readers, and corrupts data when left in the field. NEVER use float labels — they have all the same problems as placeholder-as-label plus broken animation on long labels.
Mark optional fields with "(optional)" appended to the label. Do NOT mark required fields with red asterisks — they are abstract, visually noisy, inaccessible, and often labelled with jargon like "mandatory."
One column for forms. Two-column layout only for naturally paired fields (first name / last name, city / state). Mobile is always single column regardless.
Show only what is needed now. Reveal advanced fields conditionally (toggles, dependency rules). Break long forms (more than 7 fields) into logical steps.
Validate on blur (not on keystroke). Show errors inline below the field. Display success indicators (green border or checkmark) for completed fields that passed validation.
Error message must do three things (Enders):
Never use vague messages ("Invalid input"). Never use the word "error" alone — be specific. For long forms: provide an error summary at the top of the page with anchor links to each error. Pair all error colours with an icon — never rely on colour alone.
Use smart defaults, autocomplete attributes, and auto-formatting (phone, currency). Reduce keystrokes. Never ask for information you already have or can derive.
Extended guidance for form-ux-design was moved to references/skill-deep-dive.md to keep this entrypoint compact and fast to load.
Use that deep dive for:
2. Field Anatomy3. Field States4. Essential Code Examples5. Multi-Step Form Pattern (Wizard)5b. Gateway Screen (Before Long Forms)5c. Confirmation Screen (After Submission)5d. Specific Field Rules (from Enders)6. Form Submission Workflow7. Touch Target and Spacing Rules8. Form DOs and DON'Ts9. Common Form Types -- Quick Patterns10. Integration with Existing Skillsexamples/form-spec-worked.md (opens in a new tab)references/android-form-components.md (opens in a new tab)references/form-accessibility.md (opens in a new tab)references/form-validation.md (opens in a new tab)references/ios-form-components.md (opens in a new tab)references/payment-forgiveness-and-control-choice.md (opens in a new tab)references/skill-deep-dive.md (opens in a new tab)references/web-form-components.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub peterbamuhigire/chwezi-design-engine --plugin design-engine110 skills in this plugin
/accessibility-wcag-2-2-complianceUse when designing or auditing an interactive UI for WCAG 2.2 AA, keyboard and focus behaviour, accessible names, screen readers, target size, reflow, authentication, or reduced motion. Use inclusive-and-assistive-design for needs beyond the compliance floor./accessible-color-and-contrastUse when verifying or fixing text, UI, focus, border, status, or data colours for contrast and colour-vision accessibility. Unlike color-system-and-palette, this is the focused WCAG/APCA and non-colour-cue gate, not palette creation./advertising-creative-art-directionOther plugins' skills for the same job