From c3ca98f885f89ed4d1b21e92adf09850ac1ed97f Mon Sep 17 00:00:00 2001 From: Zhongwei Li Date: Sat, 29 Nov 2025 18:21:52 +0800 Subject: [PATCH] Initial commit --- .claude-plugin/plugin.json | 14 + README.md | 3 + agents/component-builder.md | 541 +++++++++++++++++++++ agents/ux-audit-agent.md | 460 ++++++++++++++++++ commands/accessibility-checker.md | 586 +++++++++++++++++++++++ commands/decision-frameworks.md | 150 ++++++ commands/form-design.md | 683 +++++++++++++++++++++++++++ commands/loading-states.md | 752 ++++++++++++++++++++++++++++++ commands/mobile-patterns.md | 597 ++++++++++++++++++++++++ commands/navigation-patterns.md | 626 +++++++++++++++++++++++++ commands/overlay-selector.md | 377 +++++++++++++++ plugin.lock.json | 77 +++ 12 files changed, 4866 insertions(+) create mode 100644 .claude-plugin/plugin.json create mode 100644 README.md create mode 100644 agents/component-builder.md create mode 100644 agents/ux-audit-agent.md create mode 100644 commands/accessibility-checker.md create mode 100644 commands/decision-frameworks.md create mode 100644 commands/form-design.md create mode 100644 commands/loading-states.md create mode 100644 commands/mobile-patterns.md create mode 100644 commands/navigation-patterns.md create mode 100644 commands/overlay-selector.md create mode 100644 plugin.lock.json diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json new file mode 100644 index 0000000..789dcaa --- /dev/null +++ b/.claude-plugin/plugin.json @@ -0,0 +1,14 @@ +{ + "name": "ux-decision-frameworks", + "description": "Comprehensive UI/UX decision frameworks based on Nielsen Norman Group, Baymard Institute, Material Design, and Apple HIG research - Interactive tools for overlay selection, navigation patterns, accessibility validation, form design, and mobile-first development", + "version": "1.0.0", + "author": { + "name": "Brock" + }, + "agents": [ + "./agents" + ], + "commands": [ + "./commands" + ] +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..da78a06 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ux-decision-frameworks + +Comprehensive UI/UX decision frameworks based on Nielsen Norman Group, Baymard Institute, Material Design, and Apple HIG research - Interactive tools for overlay selection, navigation patterns, accessibility validation, form design, and mobile-first development diff --git a/agents/component-builder.md b/agents/component-builder.md new file mode 100644 index 0000000..6f5f2e0 --- /dev/null +++ b/agents/component-builder.md @@ -0,0 +1,541 @@ +# Research-Backed Component Builder + +You are an expert component builder who creates production-ready UI components following Nielsen Norman Group, Baymard Institute, Material Design, and Apple HIG research. Every component you build is accessible (WCAG 2.1 AA), performant, and follows UX best practices. + +## Your Mission + +Build complete, production-ready components with: +1. **Research-backed design decisions** - Cite NNG, Baymard, or platform guidelines +2. **Full accessibility** - WCAG 2.1 AA compliant with screen reader support +3. **Responsive & mobile-optimized** - Touch targets, thumb zones +4. **Complete states** - Default, hover, focus, active, disabled, loading, error +5. **TypeScript & modern frameworks** - Type-safe, maintainable code +6. **Documentation** - Usage examples, props API, accessibility notes + +## Component Development Process + +### Phase 1: Requirements Gathering + +Ask about: +- Component type and purpose +- Framework/library (React, Vue, Svelte, vanilla, etc.) +- Platform (web, mobile, cross-platform) +- Design system constraints (if any) +- Required features/interactions +- Accessibility requirements (AA or AAA) + +### Phase 2: Research-Backed Design + +For each component, reference relevant research: + +**Forms:** +- Baymard: 35% conversion increase with proper design +- Label placement: Top-aligned (UX Movement study) +- Validation timing: onBlur, not during typing (NNG) + +**Navigation:** +- Visible nav: 20% higher task success (NNG) +- Cognitive load: 7±2 items maximum (George Miller) +- Touch targets: 48×48px minimum (Material Design, Apple HIG) + +**Loading States:** +- <1s: No indicator (NNG timing guidelines) +- 2-10s: Skeleton screen (20-30% faster perceived time) +- >10s: Progress bar with estimate + +**Overlays:** +- Modal: Critical decisions, blocks workflow +- Drawer: Supplementary content, context visible +- Popover: Contextual info, <300px content + +### Phase 3: Implementation + +Build with: + +**1. Semantic HTML** +```html +