[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71HFXBTDYY0P5H89BD9VDY3":3,"skill-same:01M71HFXBTDYY0P5H89BD9VDY3":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M71HFXBTDYY0P5H89BD9VDY3","form-ux-patterns",null,"UX patterns for complex forms including multi-step wizards, cognitive chunking (5-7 fields max), progressive disclosure, and conditional fields. Use when building checkout flows, onboarding wizards, or forms with many fields.","JSGforever\u002Fskillguard","JSGforever","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F85541948?v=4","01M71FQD3E132VMR5F4TAYX3YS","01M71FQD4DYW0XJ4XQ4YQH75Y9",2,"GPL-3.0","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__bbeierle12--form-ux-patterns\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"ux","form ux patterns","patterns","ux patterns","form","onboarding","fields","forms","max","multi","with","progressive disclosure","when","use","conditional","progressive","flows","for","checkout","chunking","2026-11-10 10:12:30",false,"---\nname: form-ux-patterns\ndescription: UX patterns for complex forms including multi-step wizards, cognitive chunking (5-7 fields max), progressive disclosure, and conditional fields. Use when building checkout flows, onboarding wizards, or forms with many fields.\n---\n\n# Form UX Patterns\n\nPatterns for complex forms based on cognitive load research and aviation UX principles.\n\n## Quick Start\n\n```tsx\n\u002F\u002F Multi-step form with chunking\nimport { useMultiStepForm } from '.\u002Fmulti-step-form';\n\nfunction CheckoutWizard() {\n  const { currentStep, steps, goNext, goBack, isLastStep } = useMultiStepForm({\n    steps: [\n      { id: 'contact', title: 'Contact', fields: ['email', 'phone'] },\n      { id: 'shipping', title: 'Shipping', fields: ['name', 'street', 'city', 'state', 'zip'] },\n      { id: 'payment', title: 'Payment', fields: ['cardName', 'cardNumber', 'expiry', 'cvv'] }\n    ]\n  });\n\n  return (\n    \u003Cform>\n      \u003CStepIndicator steps={steps} current={currentStep} \u002F>\n      \u003CStepContent step={steps[currentStep]} \u002F>\n      \u003CStepNavigation onBack={goBack} onNext={goNext} isLast={isLastStep} \u002F>\n    \u003C\u002Fform>\n  );\n}\n```\n\n## Core Principles\n\n### 1. Cognitive Chunking (Aviation Principle)\n\n> \"Humans can hold 5-7 items in working memory\" — Miller's Law\n\n```tsx\n\u002F\u002F ❌ BAD: All fields on one page\n\u003Cform>\n  \u003Cinput name=\"email\" \u002F>\n  \u003Cinput name=\"phone\" \u002F>\n  \u003Cinput name=\"name\" \u002F>\n  \u003Cinput name=\"street\" \u002F>\n  \u003Cinput name=\"street2\" \u002F>\n  \u003Cinput name=\"city\" \u002F>\n  \u003Cinput name=\"state\" \u002F>\n  \u003Cinput name=\"zip\" \u002F>\n  \u003Cinput name=\"cardName\" \u002F>\n  \u003Cinput name=\"cardNumber\" \u002F>\n  \u003Cinput name=\"expiry\" \u002F>\n  \u003Cinput name=\"cvv\" \u002F>\n  {\u002F* 12 fields = cognitive overload *\u002F}\n\u003C\u002Fform>\n\n\u002F\u002F ✅ GOOD: Chunked into logical groups (5-7 max per group)\n\u003Cform>\n  \u003Cfieldset>\n    \u003Clegend>Contact (2 fields)\u003C\u002Flegend>\n    \u003Cinput name=\"email\" \u002F>\n    \u003Cinput name=\"phone\" \u002F>\n  \u003C\u002Ffieldset>\n  \n  \u003Cfieldset>\n    \u003Clegend>Shipping (5 fields)\u003C\u002Flegend>\n    \u003Cinput name=\"name\" \u002F>\n    \u003Cinput name=\"street\" \u002F>\n    \u003Cinput name=\"city\" \u002F>\n    \u003Cinput name=\"state\" \u002F>\n    \u003Cinput name=\"zip\" \u002F>\n  \u003C\u002Ffieldset>\n  \n  \u003Cfieldset>\n    \u003Clegend>Payment (4 fields)\u003C\u002Flegend>\n    \u003Cinput name=\"cardName\" \u002F>\n    \u003Cinput name=\"cardNumber\" \u002F>\n    \u003Cinput name=\"expiry\" \u002F>\n    \u003Cinput name=\"cvv\" \u002F>\n  \u003C\u002Ffieldset>\n\u003C\u002Fform>\n```\n\n### 2. Briefing vs. Checklist (Aviation Principle)\n\n> Instructions should be separate from labels, given before the task.\n\n```tsx\n\u002F\u002F ❌ BAD: Instructions mixed with labels\n\u003Clabel>\n  Password (must be 8+ characters with uppercase, lowercase, and number)\n\u003C\u002Flabel>\n\u003Cinput type=\"password\" \u002F>\n\n\u002F\u002F ✅ GOOD: Briefing before, label during\n\u003Cdiv className=\"field-briefing\">\n  \u003Cp>Create a strong password with:\u003C\u002Fp>\n  \u003Cul>\n    \u003Cli>At least 8 characters\u003C\u002Fli>\n    \u003Cli>Uppercase and lowercase letters\u003C\u002Fli>\n    \u003Cli>At least one number\u003C\u002Fli>\n  \u003C\u002Ful>\n\u003C\u002Fdiv>\n\n\u003Clabel>Password\u003C\u002Flabel>\n\u003Cinput type=\"password\" \u002F>\n```\n\n### 3. Progressive Disclosure\n\n> Show only what's needed, when it's needed.\n\n```tsx\n\u002F\u002F Reveal fields based on selection\nfunction ShippingForm() {\n  const [method, setMethod] = useState\u003C'standard' | 'express' | 'pickup'>('standard');\n\n  return (\n    \u003Cform>\n      \u003CRadioGroup\n        label=\"Delivery method\"\n        value={method}\n        onChange={setMethod}\n        options={[\n          { value: 'standard', label: 'Standard (5-7 days)' },\n          { value: 'express', label: 'Express (2-3 days)' },\n          { value: 'pickup', label: 'Store pickup' }\n        ]}\n      \u002F>\n\n      {\u002F* Only show address for shipping methods *\u002F}\n      {method !== 'pickup' && (\n        \u003CAddressFields \u002F>\n      )}\n\n      {\u002F* Only show store selector for pickup *\u002F}\n      {method === 'pickup' && (\n        \u003CStoreSelector \u002F>\n      )}\n    \u003C\u002Fform>\n  );\n}\n```\n\n## Multi-Step Forms\n\n### Step Configuration\n\n```typescript\n\u002F\u002F types\u002Fmulti-step.ts\nexport interface FormStep {\n  \u002F** Unique step identifier *\u002F\n  id: string;\n  \n  \u002F** Display title *\u002F\n  title: string;\n  \n  \u002F** Optional description (briefing) *\u002F\n  description?: string;\n  \n  \u002F** Fields in this step (for validation) *\u002F\n  fields: string[];\n  \n  \u002F** Zod schema for this step *\u002F\n  schema?: z.ZodType;\n  \n  \u002F** Whether step can be skipped *\u002F\n  optional?: boolean;\n  \n  \u002F** Condition for showing this step *\u002F\n  condition?: (formData: Record\u003Cstring, any>) => boolean;\n}\n\nexport interface FormChunk {\n  \u002F** Chunk identifier *\u002F\n  id: string;\n  \n  \u002F** Chunk title *\u002F\n  title: string;\n  \n  \u002F** Briefing text (shown before fields) *\u002F\n  briefing?: string;\n  \n  \u002F** Fields in this chunk (max 5-7) *\u002F\n  fields: string[];\n}\n```\n\n### Multi-Step Hook\n\n```typescript\n\u002F\u002F hooks\u002Fuse-multi-step-form.ts\nimport { useState, useCallback, useMemo } from 'react';\nimport { UseFormReturn } from 'react-hook-form';\n\nexport interface UseMultiStepFormOptions {\n  steps: FormStep[];\n  form: UseFormReturn\u003Cany>;\n  onComplete?: (data: any) => void;\n}\n\nexport interface UseMultiStepFormReturn {\n  \u002F** Current step index *\u002F\n  currentStep: number;\n  \n  \u002F** Current step config *\u002F\n  step: FormStep;\n  \n  \u002F** All steps (filtered by conditions) *\u002F\n  steps: FormStep[];\n  \n  \u002F** Total step count *\u002F\n  totalSteps: number;\n  \n  \u002F** Whether on first step *\u002F\n  isFirstStep: boolean;\n  \n  \u002F** Whether on last step *\u002F\n  isLastStep: boolean;\n  \n  \u002F** Progress percentage (0-100) *\u002F\n  progress: number;\n  \n  \u002F** Go to next step (validates current) *\u002F\n  goNext: () => Promise\u003Cboolean>;\n  \n  \u002F** Go to previous step *\u002F\n  goBack: () => void;\n  \n  \u002F** Go to specific step *\u002F\n  goTo: (index: number) => void;\n  \n  \u002F** Can navigate to step (all previous valid) *\u002F\n  canGoTo: (index: number) => boolean;\n}\n\nexport function useMultiStepForm({\n  steps: allSteps,\n  form,\n  onComplete\n}: UseMultiStepFormOptions): UseMultiStepFormReturn {\n  const [currentStep, setCurrentStep] = useState(0);\n  \n  \u002F\u002F Filter steps by conditions\n  const steps = useMemo(() => {\n    const data = form.getValues();\n    return allSteps.filter(step => \n      !step.condition || step.condition(data)\n    );\n  }, [allSteps, form]);\n  \n  const step = steps[currentStep];\n  const totalSteps = steps.length;\n  const isFirstStep = currentStep === 0;\n  const isLastStep = currentStep === totalSteps - 1;\n  const progress = ((currentStep + 1) \u002F totalSteps) * 100;\n  \n  const goNext = useCallback(async () => {\n    \u002F\u002F Validate current step fields\n    const isValid = await form.trigger(step.fields as any);\n    \n    if (!isValid) {\n      \u002F\u002F Focus first error\n      const firstError = document.querySelector('[aria-invalid=\"true\"]');\n      (firstError as HTMLElement)?.focus();\n      return false;\n    }\n    \n    if (isLastStep) {\n      \u002F\u002F Submit form\n      const data = form.getValues();\n      onComplete?.(data);\n    } else {\n      setCurrentStep(prev => prev + 1);\n      \u002F\u002F Focus step heading\n      requestAnimationFrame(() => {\n        document.getElementById('step-heading')?.focus();\n      });\n    }\n    \n    return true;\n  }, [step, isLastStep, form, onComplete]);\n  \n  const goBack = useCallback(() => {\n    if (!isFirstStep) {\n      setCurrentStep(prev => prev - 1);\n      requestAnimationFrame(() => {\n        document.getElementById('step-heading')?.focus();\n      });\n    }\n  }, [isFirstStep]);\n  \n  const goTo = useCallback((index: number) => {\n    if (index >= 0 && index \u003C totalSteps) {\n      setCurrentStep(index);\n    }\n  }, [totalSteps]);\n  \n  const canGoTo = useCallback((index: number) => {\n    \u002F\u002F Can always go back\n    if (index \u003C currentStep) return true;\n    \n    \u002F\u002F Can only go forward if all previous steps are valid\n    \u002F\u002F (would need form state tracking for this)\n    return index \u003C= currentStep;\n  }, [currentStep]);\n  \n  return {\n    currentStep,\n    step,\n    steps,\n    totalSteps,\n    isFirstStep,\n    isLastStep,\n    progress,\n    goNext,\n    goBack,\n    goTo,\n    canGoTo\n  };\n}\n```\n\n### Step Indicator Component\n\n```tsx\n\u002F\u002F components\u002FStepIndicator.tsx\ninterface StepIndicatorProps {\n  steps: FormStep[];\n  currentStep: number;\n  onStepClick?: (index: number) => void;\n  canNavigate?: (index: number) => boolean;\n}\n\nexport function StepIndicator({\n  steps,\n  currentStep,\n  onStepClick,\n  canNavigate\n}: StepIndicatorProps) {\n  return (\n    \u003Cnav aria-label=\"Form progress\">\n      \u003Col className=\"step-indicator\">\n        {steps.map((step, index) => {\n          const status = index \u003C currentStep \n            ? 'complete' \n            : index === currentStep \n              ? 'current' \n              : 'upcoming';\n          \n          const clickable = canNavigate?.(index) ?? false;\n          \n          return (\n            \u003Cli \n              key={step.id}\n              className={`step-indicator__item step-indicator__item--${status}`}\n            >\n              {clickable ? (\n                \u003Cbutton\n                  type=\"button\"\n                  onClick={() => onStepClick?.(index)}\n                  aria-current={status === 'current' ? 'step' : undefined}\n                >\n                  \u003Cspan className=\"step-indicator__number\">{index + 1}\u003C\u002Fspan>\n                  \u003Cspan className=\"step-indicator__title\">{step.title}\u003C\u002Fspan>\n                \u003C\u002Fbutton>\n              ) : (\n                \u003Cspan aria-current={status === 'current' ? 'step' : undefined}>\n                  \u003Cspan className=\"step-indicator__number\">{index + 1}\u003C\u002Fspan>\n                  \u003Cspan className=\"step-indicator__title\">{step.title}\u003C\u002Fspan>\n                \u003C\u002Fspan>\n              )}\n            \u003C\u002Fli>\n          );\n        })}\n      \u003C\u002Fol>\n      \n      {\u002F* Progress bar *\u002F}\n      \u003Cdiv \n        className=\"step-indicator__progress\"\n        role=\"progressbar\"\n        aria-valuenow={currentStep + 1}\n        aria-valuemin={1}\n        aria-valuemax={steps.length}\n        aria-label={`Step ${currentStep + 1} of ${steps.length}`}\n      >\n        \u003Cdiv \n          className=\"step-indicator__progress-fill\"\n          style={{ width: `${((currentStep + 1) \u002F steps.length) * 100}%` }}\n        \u002F>\n      \u003C\u002Fdiv>\n    \u003C\u002Fnav>\n  );\n}\n```\n\n### Step Navigation Component\n\n```tsx\n\u002F\u002F components\u002FStepNavigation.tsx\ninterface StepNavigationProps {\n  onBack: () => void;\n  onNext: () => void;\n  isFirstStep: boolean;\n  isLastStep: boolean;\n  isSubmitting?: boolean;\n  backLabel?: string;\n  nextLabel?: string;\n  submitLabel?: string;\n}\n\nexport function StepNavigation({\n  onBack,\n  onNext,\n  isFirstStep,\n  isLastStep,\n  isSubmitting = false,\n  backLabel = 'Back',\n  nextLabel = 'Continue',\n  submitLabel = 'Submit'\n}: StepNavigationProps) {\n  return (\n    \u003Cdiv className=\"step-navigation\">\n      {!isFirstStep && (\n        \u003Cbutton\n          type=\"button\"\n          onClick={onBack}\n          className=\"step-navigation__back\"\n          disabled={isSubmitting}\n        >\n          {backLabel}\n        \u003C\u002Fbutton>\n      )}\n      \n      \u003Cbutton\n        type=\"button\"\n        onClick={onNext}\n        className=\"step-navigation__next\"\n        disabled={isSubmitting}\n      >\n        {isSubmitting ? (\n          \u003C>\n            \u003CSpinner aria-hidden=\"true\" \u002F>\n            \u003Cspan className=\"sr-only\">Processing...\u003C\u002Fspan>\n            Processing...\n          \u003C\u002F>\n        ) : (\n          isLastStep ? submitLabel : nextLabel\n        )}\n      \u003C\u002Fbutton>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Conditional Fields\n\n### Pattern: Show\u002FHide Based on Selection\n\n```tsx\n\u002F\u002F components\u002FConditionalField.tsx\nimport { useFormContext, useWatch } from 'react-hook-form';\nimport { ReactNode } from 'react';\n\ninterface ConditionalFieldProps {\n  \u002F** Field to watch *\u002F\n  watch: string;\n  \n  \u002F** Condition for showing children *\u002F\n  when: (value: any) => boolean;\n  \n  \u002F** Children to render when condition is true *\u002F\n  children: ReactNode;\n  \n  \u002F** Whether to keep values when hidden *\u002F\n  keepValues?: boolean;\n}\n\nexport function ConditionalField({\n  watch: watchField,\n  when,\n  children,\n  keepValues = false\n}: ConditionalFieldProps) {\n  const { control, unregister } = useFormContext();\n  const value = useWatch({ control, name: watchField });\n  \n  const shouldShow = when(value);\n  \n  \u002F\u002F Optionally unregister fields when hidden\n  useEffect(() => {\n    if (!shouldShow && !keepValues) {\n      \u002F\u002F Get field names from children and unregister\n      \u002F\u002F (implementation depends on your field structure)\n    }\n  }, [shouldShow, keepValues]);\n  \n  if (!shouldShow) return null;\n  \n  return \u003C>{children}\u003C\u002F>;\n}\n\n\u002F\u002F Usage\n\u003CFormField name=\"hasCompany\" label=\"Are you a business?\" type=\"checkbox\" \u002F>\n\n\u003CConditionalField watch=\"hasCompany\" when={(v) => v === true}>\n  \u003CFormField name=\"companyName\" label=\"Company name\" \u002F>\n  \u003CFormField name=\"taxId\" label=\"Tax ID\" \u002F>\n\u003C\u002FConditionalField>\n```\n\n### Pattern: Dynamic Field Array\n\n```tsx\n\u002F\u002F components\u002FRepeatableField.tsx\nimport { useFieldArray, useFormContext } from 'react-hook-form';\n\ninterface RepeatableFieldProps {\n  name: string;\n  label: string;\n  maxItems?: number;\n  minItems?: number;\n  renderItem: (index: number) => ReactNode;\n}\n\nexport function RepeatableField({\n  name,\n  label,\n  maxItems = 10,\n  minItems = 1,\n  renderItem\n}: RepeatableFieldProps) {\n  const { control } = useFormContext();\n  const { fields, append, remove } = useFieldArray({ control, name });\n  \n  const canAdd = fields.length \u003C maxItems;\n  const canRemove = fields.length > minItems;\n  \n  return (\n    \u003Cfieldset className=\"repeatable-field\">\n      \u003Clegend>{label}\u003C\u002Flegend>\n      \n      {fields.map((field, index) => (\n        \u003Cdiv key={field.id} className=\"repeatable-field__item\">\n          {renderItem(index)}\n          \n          {canRemove && (\n            \u003Cbutton\n              type=\"button\"\n              onClick={() => remove(index)}\n              aria-label={`Remove item ${index + 1}`}\n            >\n              Remove\n            \u003C\u002Fbutton>\n          )}\n        \u003C\u002Fdiv>\n      ))}\n      \n      {canAdd && (\n        \u003Cbutton\n          type=\"button\"\n          onClick={() => append({})}\n          className=\"repeatable-field__add\"\n        >\n          Add {label.toLowerCase()}\n        \u003C\u002Fbutton>\n      )}\n    \u003C\u002Ffieldset>\n  );\n}\n\n\u002F\u002F Usage\n\u003CRepeatableField\n  name=\"teammates\"\n  label=\"Team Members\"\n  maxItems={5}\n  renderItem={(index) => (\n    \u003C>\n      \u003CFormField name={`teammates.${index}.name`} label=\"Name\" \u002F>\n      \u003CFormField name={`teammates.${index}.email`} label=\"Email\" \u002F>\n    \u003C\u002F>\n  )}\n\u002F>\n```\n\n## Form Layout Patterns\n\n### Single Column (Recommended Default)\n\n```tsx\n\u002F\u002F Best for most forms - clear visual flow\n\u003Cform className=\"form-layout--single\">\n  \u003CFormField name=\"email\" label=\"Email\" \u002F>\n  \u003CFormField name=\"password\" label=\"Password\" \u002F>\n  \u003Cbutton type=\"submit\">Sign in\u003C\u002Fbutton>\n\u003C\u002Fform>\n\n\u002F\u002F CSS\n.form-layout--single {\n  display: flex;\n  flex-direction: column;\n  gap: 1rem;\n  max-width: 400px;\n}\n```\n\n### Two Column (Use Sparingly)\n\n```tsx\n\u002F\u002F Only for related short fields\n\u003Cform className=\"form-layout--two-col\">\n  \u003CFormField name=\"firstName\" label=\"First name\" \u002F>\n  \u003CFormField name=\"lastName\" label=\"Last name\" \u002F>\n  \n  \u003CFormField name=\"city\" label=\"City\" className=\"col-span-1\" \u002F>\n  \u003CFormField name=\"state\" label=\"State\" className=\"col-span-1\" \u002F>\n\u003C\u002Fform>\n\n\u002F\u002F CSS\n.form-layout--two-col {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  gap: 1rem;\n}\n\n@media (max-width: 640px) {\n  .form-layout--two-col {\n    grid-template-columns: 1fr;\n  }\n}\n```\n\n### Card Sections\n\n```tsx\n\u002F\u002F For long forms with distinct sections\n\u003Cform className=\"form-layout--cards\">\n  \u003Csection className=\"form-card\">\n    \u003Ch3>Contact Information\u003C\u002Fh3>\n    \u003CFormField name=\"email\" label=\"Email\" \u002F>\n    \u003CFormField name=\"phone\" label=\"Phone\" \u002F>\n  \u003C\u002Fsection>\n  \n  \u003Csection className=\"form-card\">\n    \u003Ch3>Shipping Address\u003C\u002Fh3>\n    \u003CAddressFields \u002F>\n  \u003C\u002Fsection>\n  \n  \u003Csection className=\"form-card\">\n    \u003Ch3>Payment\u003C\u002Fh3>\n    \u003CPaymentFields \u002F>\n  \u003C\u002Fsection>\n\u003C\u002Fform>\n```\n\n## File Structure\n\n```\nform-ux-patterns\u002F\n├── SKILL.md\n├── references\u002F\n│   ├── cognitive-load.md       # Research on chunking\n│   └── wizard-patterns.md      # Multi-step best practices\n└── scripts\u002F\n    ├── multi-step-form.tsx     # Multi-step hook + components\n    ├── conditional-field.tsx   # Show\u002Fhide patterns\n    ├── repeatable-field.tsx    # Dynamic arrays\n    ├── step-indicator.tsx      # Progress indicator\n    └── step-indicator.css      # Styles\n```\n\n## Reference\n\n- `references\u002Fcognitive-load.md` — Research on Miller's Law and chunking\n- `references\u002Fwizard-patterns.md` — Multi-step wizard best practices\n","# Form UX Patterns\n\nPatterns for complex forms based on cognitive load research and aviation UX principles.\n\n## Quick Start\n\n```tsx\n\u002F\u002F Multi-step form with chunking\nimport { useMultiStepForm } from '.\u002Fmulti-step-form';\n\nfunction CheckoutWizard() {\n  const { currentStep, steps, goNext, goBack, isLastStep } = useMultiStepForm({\n    steps: [\n      { id: 'contact', title: 'Contact', fields: ['email', 'phone'] },\n      { id: 'shipping', title: 'Shipping', fields: ['name', 'street', 'city', 'state', 'zip'] },\n      { id: 'payment', title: 'Payment', fields: ['cardName', 'cardNumber', 'expiry', 'cvv'] }\n    ]\n  });\n\n  return (\n    \u003Cform>\n      \u003CStepIndicator steps={steps} current={currentStep} \u002F>\n      \u003CStepContent step={steps[currentStep]} \u002F>\n      \u003CStepNavigation onBack={goBack} onNext={goNext} isLast={isLastStep} \u002F>\n    \u003C\u002Fform>\n  );\n}\n```\n\n## Core Principles\n\n### 1. Cognitive Chunking (Aviation Principle)\n\n> \"Humans can hold 5-7 items in working memory\" — Miller's Law\n\n```tsx\n\u002F\u002F ❌ BAD: All fields on one page\n\u003Cform>\n  \u003Cinput name=\"email\" \u002F>\n  \u003Cinput name=\"phone\" \u002F>\n  \u003Cinput name=\"name\" \u002F>\n  \u003Cinput name=\"street\" \u002F>\n  \u003Cinput name=\"street2\" \u002F>\n  \u003Cinput name=\"city\" \u002F>\n  \u003Cinput name=\"state\" \u002F>\n  \u003Cinput name=\"zip\" \u002F>\n  \u003Cinput name=\"cardName\" \u002F>\n  \u003Cinput name=\"cardNumber\" \u002F>\n  \u003Cinput name=\"expiry\" \u002F>\n  \u003Cinput name=\"cvv\" \u002F>\n  {\u002F* 12 fields = cognitive overload *\u002F}\n\u003C\u002Fform>\n\n\u002F\u002F ✅ GOOD: Chunked into logical groups (5-7 max per group)\n\u003Cform>\n  \u003Cfieldset>\n    \u003Clegend>Contact (2 fields)\u003C\u002Flegend>\n    \u003Cinput name=\"email\" \u002F>\n    \u003Cinput name=\"phone\" \u002F>\n  \u003C\u002Ffieldset>\n  \n  \u003Cfieldset>\n    \u003Clegend>Shipping (5 fields)\u003C\u002Flegend>\n    \u003Cinput name=\"name\" \u002F>\n    \u003Cinput name=\"street\" \u002F>\n    \u003Cinput name=\"city\" \u002F>\n    \u003Cinput name=\"state\" \u002F>\n    \u003Cinput name=\"zip\" \u002F>\n  \u003C\u002Ffieldset>\n  \n  \u003Cfieldset>\n    \u003Clegend>Payment (4 fields)\u003C\u002Flegend>\n    \u003Cinput name=\"cardName\" \u002F>\n    \u003Cinput name=\"cardNumber\" \u002F>\n    \u003Cinput name=\"expiry\" \u002F>\n    \u003Cinput name=\"cvv\" \u002F>\n  \u003C\u002Ffieldset>\n\u003C\u002Fform>\n```\n\n### 2. Briefing vs. Checklist (Aviation Principle)\n\n> Instructions should be separate from labels, given before the task.\n\n```tsx\n\u002F\u002F ❌ BAD: Instructions mixed with labels\n\u003Clabel>\n  Password (must be 8+ characters with uppercase, lowercase, and number)\n\u003C\u002Flabel>\n\u003Cinput type=\"password\" \u002F>\n\n\u002F\u002F ✅ GOOD: Briefing before, label during\n\u003Cdiv className=\"field-briefing\">\n  \u003Cp>Create a strong password with:\u003C\u002Fp>\n  \u003Cul>\n    \u003Cli>At least 8 characters\u003C\u002Fli>\n    \u003Cli>Uppercase and lowercase letters\u003C\u002Fli>\n    \u003Cli>At least one number\u003C\u002Fli>\n  \u003C\u002Ful>\n\u003C\u002Fdiv>\n\n\u003Clabel>Password\u003C\u002Flabel>\n\u003Cinput type=\"password\" \u002F>\n```\n\n### 3. Progressive Disclosure\n\n> Show only what's needed, when it's needed.\n\n```tsx\n\u002F\u002F Reveal fields based on selection\nfunction ShippingForm() {\n  const [method, setMethod] = useState\u003C'standard' | 'express' | 'pickup'>('standard');\n\n  return (\n    \u003Cform>\n      \u003CRadioGroup\n        label=\"Delivery method\"\n        value={method}\n        onChange={setMethod}\n        options={[\n          { value: 'standard', label: 'Standard (5-7 days)' },\n          { value: 'express', label: 'Express (2-3 days)' },\n          { value: 'pickup', label: 'Store pickup' }\n        ]}\n      \u002F>\n\n      {\u002F* Only show address for shipping methods *\u002F}\n      {method !== 'pickup' && (\n        \u003CAddressFields \u002F>\n      )}\n\n      {\u002F* Only show store selector for pickup *\u002F}\n      {method === 'pickup' && (\n        \u003CStoreSelector \u002F>\n      )}\n    \u003C\u002Fform>\n  );\n}\n```\n\n## Multi-Step Forms\n\n### Step Configuration\n\n```typescript\n\u002F\u002F types\u002Fmulti-step.ts\nexport interface FormStep {\n  \u002F** Unique step identifier *\u002F\n  id: string;\n  \n  \u002F** Display title *\u002F\n  title: string;\n  \n  \u002F** Optional description (briefing) *\u002F\n  description?: string;\n  \n  \u002F** Fields in this step (for validation) *\u002F\n  fields: string[];\n  \n  \u002F** Zod schema for this step *\u002F\n  schema?: z.ZodType;\n  \n  \u002F** Whether step can be skipped *\u002F\n  optional?: boolean;\n  \n  \u002F** Condition for showing this step *\u002F\n  condition?: (formData: Record\u003Cstring, any>) => boolean;\n}\n\nexport interface FormChunk {\n  \u002F** Chunk identifier *\u002F\n  id: string;\n  \n  \u002F** Chunk title *\u002F\n  title: string;\n  \n  \u002F** Briefing text (shown before fields) *\u002F\n  briefing?: string;\n  \n  \u002F** Fields in this chunk (max 5-7) *\u002F\n  fields: string[];\n}\n```\n\n### Multi-Step Hook\n\n```typescript\n\u002F\u002F hooks\u002Fuse-multi-step-form.ts\nimport { useState, useCallback, useMemo } from 'react';\nimport { UseFormReturn } from 'react-hook-form';\n\nexport interface UseMultiStepFormOptions {\n  steps: FormStep[];\n  form: UseFormReturn\u003Cany>;\n  onComplete?: (data: any) => void;\n}\n\nexport interface UseMultiStepFormReturn {\n  \u002F** Current step index *\u002F\n  currentStep: number;\n  \n  \u002F** Current step config *\u002F\n  step: FormStep;\n  \n  \u002F** All steps (filtered by conditions) *\u002F\n  steps: FormStep[];\n  \n  \u002F** Total step count *\u002F\n  totalSteps: number;\n  \n  \u002F** Whether on first step *\u002F\n  isFirstStep: boolean;\n  \n  \u002F** Whether on last step *\u002F\n  isLastStep: boolean;\n  \n  \u002F** Progress percentage (0-100) *\u002F\n  progress: number;\n  \n  \u002F** Go to next step (validates current) *\u002F\n  goNext: () => Promise\u003Cboolean>;\n  \n  \u002F** Go to previous step *\u002F\n  goBack: () => void;\n  \n  \u002F** Go to specific step *\u002F\n  goTo: (index: number) => void;\n  \n  \u002F** Can navigate to step (all previous valid) *\u002F\n  canGoTo: (index: number) => boolean;\n}\n\nexport function useMultiStepForm({\n  steps: allSteps,\n  form,\n  onComplete\n}: UseMultiStepFormOptions): UseMultiStepFormReturn {\n  const [currentStep, setCurrentStep] = useState(0);\n  \n  \u002F\u002F Filter steps by conditions\n  const steps = useMemo(() => {\n    const data = form.getValues();\n    return allSteps.filter(step => \n      !step.condition || step.condition(data)\n    );\n  }, [allSteps, form]);\n  \n  const step = steps[currentStep];\n  const totalSteps = steps.length;\n  const isFirstStep = currentStep === 0;\n  const isLastStep = currentStep === totalSteps - 1;\n  const progress = ((currentStep + 1) \u002F totalSteps) * 100;\n  \n  const goNext = useCallback(async () => {\n    \u002F\u002F Validate current step fields\n    const isValid = await form.trigger(step.fields as any);\n    \n    if (!isValid) {\n      \u002F\u002F Focus first error\n      const firstError = document.querySelector('[aria-invalid=\"true\"]');\n      (firstError as HTMLElement)?.focus();\n      return false;\n    }\n    \n    if (isLastStep) {\n      \u002F\u002F Submit form\n      const data = form.getValues();\n      onComplete?.(data);\n    } else {\n      setCurrentStep(prev => prev + 1);\n      \u002F\u002F Focus step heading\n      requestAnimationFrame(() => {\n        document.getElementById('step-heading')?.focus();\n      });\n    }\n    \n    return true;\n  }, [step, isLastStep, form, onComplete]);\n  \n  const goBack = useCallback(() => {\n    if (!isFirstStep) {\n      setCurrentStep(prev => prev - 1);\n      requestAnimationFrame(() => {\n        document.getElementById('step-heading')?.focus();\n      });\n    }\n  }, [isFirstStep]);\n  \n  const goTo = useCallback((index: number) => {\n    if (index >= 0 && index \u003C totalSteps) {\n      setCurrentStep(index);\n    }\n  }, [totalSteps]);\n  \n  const canGoTo = useCallback((index: number) => {\n    \u002F\u002F Can always go back\n    if (index \u003C currentStep) return true;\n    \n    \u002F\u002F Can only go forward if all previous steps are valid\n    \u002F\u002F (would need form state tracking for this)\n    return index \u003C= currentStep;\n  }, [currentStep]);\n  \n  return {\n    currentStep,\n    step,\n    steps,\n    totalSteps,\n    isFirstStep,\n    isLastStep,\n    progress,\n    goNext,\n    goBack,\n    goTo,\n    canGoTo\n  };\n}\n```\n\n### Step Indicator Component\n\n```tsx\n\u002F\u002F components\u002FStepIndicator.tsx\ninterface StepIndicatorProps {\n  steps: FormStep[];\n  currentStep: number;\n  onStepClick?: (index: number) => void;\n  canNavigate?: (index: number) => boolean;\n}\n\nexport function StepIndicator({\n  steps,\n  currentStep,\n  onStepClick,\n  canNavigate\n}: StepIndicatorProps) {\n  return (\n    \u003Cnav aria-label=\"Form progress\">\n      \u003Col className=\"step-indicator\">\n        {steps.map((step, index) => {\n          const status = index \u003C currentStep \n            ? 'complete' \n            : index === currentStep \n              ? 'current' \n              : 'upcoming';\n          \n          const clickable = canNavigate?.(index) ?? false;\n          \n          return (\n            \u003Cli \n              key={step.id}\n              className={`step-indicator__item step-indicator__item--${status}`}\n            >\n              {clickable ? (\n                \u003Cbutton\n                  type=\"button\"\n                  onClick={() => onStepClick?.(index)}\n                  aria-current={status === 'current' ? 'step' : undefined}\n                >\n                  \u003Cspan className=\"step-indicator__number\">{index + 1}\u003C\u002Fspan>\n                  \u003Cspan className=\"step-indicator__title\">{step.title}\u003C\u002Fspan>\n                \u003C\u002Fbutton>\n              ) : (\n                \u003Cspan aria-current={status === 'current' ? 'step' : undefined}>\n                  \u003Cspan className=\"step-indicator__number\">{index + 1}\u003C\u002Fspan>\n                  \u003Cspan className=\"step-indicator__title\">{step.title}\u003C\u002Fspan>\n                \u003C\u002Fspan>\n              )}\n            \u003C\u002Fli>\n          );\n        })}\n      \u003C\u002Fol>\n      \n      {\u002F* Progress bar *\u002F}\n      \u003Cdiv \n        className=\"step-indicator__progress\"\n        role=\"progressbar\"\n        aria-valuenow={currentStep + 1}\n        aria-valuemin={1}\n        aria-valuemax={steps.length}\n        aria-label={`Step ${currentStep + 1} of ${steps.length}`}\n      >\n        \u003Cdiv \n          className=\"step-indicator__progress-fill\"\n          style={{ width: `${((currentStep + 1) \u002F steps.length) * 100}%` }}\n        \u002F>\n      \u003C\u002Fdiv>\n    \u003C\u002Fnav>\n  );\n}\n```\n\n### Step Navigation Component\n\n```tsx\n\u002F\u002F components\u002FStepNavigation.tsx\ninterface StepNavigationProps {\n  onBack: () => void;\n  onNext: () => void;\n  isFirstStep: boolean;\n  isLastStep: boolean;\n  isSubmitting?: boolean;\n  backLabel?: string;\n  nextLabel?: string;\n  submitLabel?: string;\n}\n\nexport function StepNavigation({\n  onBack,\n  onNext,\n  isFirstStep,\n  isLastStep,\n  isSubmitting = false,\n  backLabel = 'Back',\n  nextLabel = 'Continue',\n  submitLabel = 'Submit'\n}: StepNavigationProps) {\n  return (\n    \u003Cdiv className=\"step-navigation\">\n      {!isFirstStep && (\n        \u003Cbutton\n          type=\"button\"\n          onClick={onBack}\n          className=\"step-navigation__back\"\n          disabled={isSubmitting}\n        >\n          {backLabel}\n        \u003C\u002Fbutton>\n      )}\n      \n      \u003Cbutton\n        type=\"button\"\n        onClick={onNext}\n        className=\"step-navigation__next\"\n        disabled={isSubmitting}\n      >\n        {isSubmitting ? (\n          \u003C>\n            \u003CSpinner aria-hidden=\"true\" \u002F>\n            \u003Cspan className=\"sr-only\">Processing...\u003C\u002Fspan>\n            Processing...\n          \u003C\u002F>\n        ) : (\n          isLastStep ? submitLabel : nextLabel\n        )}\n      \u003C\u002Fbutton>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Conditional Fields\n\n### Pattern: Show\u002FHide Based on Selection\n\n```tsx\n\u002F\u002F components\u002FConditionalField.tsx\nimport { useFormContext, useWatch } from 'react-hook-form';\nimport { ReactNode } from 'react';\n\ninterface ConditionalFieldProps {\n  \u002F** Field to watch *\u002F\n  watch: string;\n  \n  \u002F** Condition for showing children *\u002F\n  when: (value: any) => boolean;\n  \n  \u002F** Children to render when condition is true *\u002F\n  children: ReactNode;\n  \n  \u002F** Whether to keep values when hidden *\u002F\n  keepValues?: boolean;\n}\n\nexport function ConditionalField({\n  watch: watchField,\n  when,\n  children,\n  keepValues = false\n}: ConditionalFieldProps) {\n  const { control, unregister } = useFormContext();\n  const value = useWatch({ control, name: watchField });\n  \n  const shouldShow = when(value);\n  \n  \u002F\u002F Optionally unregister fields when hidden\n  useEffect(() => {\n    if (!shouldShow && !keepValues) {\n      \u002F\u002F Get field names from children and unregister\n      \u002F\u002F (implementation depends on your field structure)\n    }\n  }, [shouldShow, keepValues]);\n  \n  if (!shouldShow) return null;\n  \n  return \u003C>{children}\u003C\u002F>;\n}\n\n\u002F\u002F Usage\n\u003CFormField name=\"hasCompany\" label=\"Are you a business?\" type=\"checkbox\" \u002F>\n\n\u003CConditionalField watch=\"hasCompany\" when={(v) => v === true}>\n  \u003CFormField name=\"companyName\" label=\"Company name\" \u002F>\n  \u003CFormField name=\"taxId\" label=\"Tax ID\" \u002F>\n\u003C\u002FConditionalField>\n```\n\n### Pattern: Dynamic Field Array\n\n```tsx\n\u002F\u002F components\u002FRepeatableField.tsx\nimport { useFieldArray, useFormContext } from 'react-hook-form';\n\ninterface RepeatableFieldProps {\n  name: string;\n  label: string;\n  maxItems?: number;\n  minItems?: number;\n  renderItem: (index: number) => ReactNode;\n}\n\nexport function RepeatableField({\n  name,\n  label,\n  maxItems = 10,\n  minItems = 1,\n  renderItem\n}: RepeatableFieldProps) {\n  const { control } = useFormContext();\n  const { fields, append, remove } = useFieldArray({ control, name });\n  \n  const canAdd = fields.length \u003C maxItems;\n  const canRemove = fields.length > minItems;\n  \n  return (\n    \u003Cfieldset className=\"repeatable-field\">\n      \u003Clegend>{label}\u003C\u002Flegend>\n      \n      {fields.map((field, index) => (\n        \u003Cdiv key={field.id} className=\"repeatable-field__item\">\n          {renderItem(index)}\n          \n          {canRemove && (\n            \u003Cbutton\n              type=\"button\"\n              onClick={() => remove(index)}\n              aria-label={`Remove item ${index + 1}`}\n            >\n              Remove\n            \u003C\u002Fbutton>\n          )}\n        \u003C\u002Fdiv>\n      ))}\n      \n      {canAdd && (\n        \u003Cbutton\n          type=\"button\"\n          onClick={() => append({})}\n          className=\"repeatable-field__add\"\n        >\n          Add {label.toLowerCase()}\n        \u003C\u002Fbutton>\n      )}\n    \u003C\u002Ffieldset>\n  );\n}\n\n\u002F\u002F Usage\n\u003CRepeatableField\n  name=\"teammates\"\n  label=\"Team Members\"\n  maxItems={5}\n  renderItem={(index) => (\n    \u003C>\n      \u003CFormField name={`teammates.${index}.name`} label=\"Name\" \u002F>\n      \u003CFormField name={`teammates.${index}.email`} label=\"Email\" \u002F>\n    \u003C\u002F>\n  )}\n\u002F>\n```\n\n## Form Layout Patterns\n\n### Single Column (Recommended Default)\n\n```tsx\n\u002F\u002F Best for most forms - clear visual flow\n\u003Cform className=\"form-layout--single\">\n  \u003CFormField name=\"email\" label=\"Email\" \u002F>\n  \u003CFormField name=\"password\" label=\"Password\" \u002F>\n  \u003Cbutton type=\"submit\">Sign in\u003C\u002Fbutton>\n\u003C\u002Fform>\n\n\u002F\u002F CSS\n.form-layout--single {\n  display: flex;\n  flex-direction: column;\n  gap: 1rem;\n  max-width: 400px;\n}\n```\n\n### Two Column (Use Sparingly)\n\n```tsx\n\u002F\u002F Only for related short fields\n\u003Cform className=\"form-layout--two-col\">\n  \u003CFormField name=\"firstName\" label=\"First name\" \u002F>\n  \u003CFormField name=\"lastName\" label=\"Last name\" \u002F>\n  \n  \u003CFormField name=\"city\" label=\"City\" className=\"col-span-1\" \u002F>\n  \u003CFormField name=\"state\" label=\"State\" className=\"col-span-1\" \u002F>\n\u003C\u002Fform>\n\n\u002F\u002F CSS\n.form-layout--two-col {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  gap: 1rem;\n}\n\n@media (max-width: 640px) {\n  .form-layout--two-col {\n    grid-template-columns: 1fr;\n  }\n}\n```\n\n### Card Sections\n\n```tsx\n\u002F\u002F For long forms with distinct sections\n\u003Cform className=\"form-layout--cards\">\n  \u003Csection className=\"form-card\">\n    \u003Ch3>Contact Information\u003C\u002Fh3>\n    \u003CFormField name=\"email\" label=\"Email\" \u002F>\n    \u003CFormField name=\"phone\" label=\"Phone\" \u002F>\n  \u003C\u002Fsection>\n  \n  \u003Csection className=\"form-card\">\n    \u003Ch3>Shipping Address\u003C\u002Fh3>\n    \u003CAddressFields \u002F>\n  \u003C\u002Fsection>\n  \n  \u003Csection className=\"form-card\">\n    \u003Ch3>Payment\u003C\u002Fh3>\n    \u003CPaymentFields \u002F>\n  \u003C\u002Fsection>\n\u003C\u002Fform>\n```\n\n## File Structure\n\n```\nform-ux-patterns\u002F\n├── SKILL.md\n├── references\u002F\n│   ├── cognitive-load.md       # Research on chunking\n│   └── wizard-patterns.md      # Multi-step best practices\n└── scripts\u002F\n    ├── multi-step-form.tsx     # Multi-step hook + components\n    ├── conditional-field.tsx   # Show\u002Fhide patterns\n    ├── repeatable-field.tsx    # Dynamic arrays\n    ├── step-indicator.tsx      # Progress indicator\n    └── step-indicator.css      # Styles\n```\n\n## Reference\n\n- `references\u002Fcognitive-load.md` — Research on Miller's Law and chunking\n- `references\u002Fwizard-patterns.md` — Multi-step wizard best practices\n",{"name":5,"description":7},"main","f2ec4b3b9133d34eeaf9b38e4b0a97e8e5705a7f","benchmarks\u002Ffinal\u002Fskills\u002Fasset1__bbeierle12--form-ux-patterns",0,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard","https:\u002F\u002Fgithub.com\u002FJSGforever","2026-08-29 18:27:56",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add JSGforever\u002Fskillguard --skill form-ux-patterns",{"tool":56,"command":57},"bunx","bunx skills add JSGforever\u002Fskillguard --skill form-ux-patterns",{"tool":59,"command":60},"pnpm","pnpm dlx skills add JSGforever\u002Fskillguard --skill form-ux-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__bbeierle12--form-ux-patterns\u002FSKILL.md",true,[64,70],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"_meta.json","REFERENCE","参考文档",406,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__bbeierle12--form-ux-patterns\u002F_meta.json",{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"scripts\u002Fmulti-step-form.tsx","SCRIPT","脚本",15888,"https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__bbeierle12--form-ux-patterns\u002Fscripts\u002Fmulti-step-form.tsx",[77,103,114,141,160,180],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":38},"01M71HY2SNXBA9Q00WZDTZQ31Z","skillguard-codex-scanner","Hybrid deterministic+LLM agent-skill security scanner. Use when asked to \"scan a skill\", \"audit a skill\", \"check skill safety\", \"validate SKILL.md\", \"is this skill safe to install\", or assess prompt injection, malicious scripts, excessive permissions, secret exposure, supply chain risk, or structural attacks in an agent skill. Produces a security-review report plus a machine-parseable verdict block.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fsrc\u002Fskillguard\u002Fstatic_scanner\u002Fskillguard-codex-scanner\u002FSKILL.md",[],[84,85,86,87,88,89,90,91,92,93,94,95,30,96,97,98,99,100,101,102],"scanner","skillguard codex scanner","skillguard","codex","chain","skill security","security-review","review report","structural","secret","prompt injection","security scanner","review","malicious","permissions","exposure","audit","scripts","safe",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":107,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":38},"01M71HY0SPKTT3S27BC2HPAC5M","data-exfiltrator","Analyzes data files","MIT","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Fsmoke-one-skill\u002Fasset1__cisco-ai-defense--data-exfiltrator\u002FSKILL.md",[],[111,112,113],"data","data exfiltrator","files",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":38},"01M71HXVS9EMN44BGDW215FZ72","real-time-collaboration-engine","Build real-time collaborative editing with WebSockets, OT\u002FCRDT conflict resolution, and presence awareness. Implements cursor tracking, optimistic updates, and offline sync. Use for collaborative editors, whiteboards, video editing. Activate on \"real-time collaboration\", \"WebSocket sync\", \"multiplayer editing\", \"CRDT\", \"presence awareness\". NOT for simple chat, request-response APIs, or single-user apps.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--real-time-collaboration-engine\u002FSKILL.md",[],[121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140],"time","real time collaboration engine","real time collaboration","collaboration","engine","real time","Video","reliability","video editing","performance","conflict resolution","presence","access","apps","updates","Bash","activate","optimizer","react","streaming",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":38},"01M71HXP6CTY4KFN0QVMMN0V7J","react-performance-optimizer","Optimize React apps for 60fps performance. Implements memoization, virtualization, code splitting, bundle optimization. Use for slow renders, large lists, bundle bloat. Activate on \"React performance\", \"slow render\", \"useMemo\", \"bundle size\", \"virtualization\". NOT for backend optimization, non-React frameworks, or premature optimization.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--react-performance-optimizer\u002FSKILL.md",[],[130,148,138,139,149,150,151,152,153,154,121,155,156,134,136,157,137,140,158,159],"react performance optimizer","react performance","performance optimizer","app","nextjs","expert","re","render","2025","code","router","strategies",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":38},"01M71HXH7QXSQB4QTDZ7SP7YXQ","llm-streaming-response-handler","Build production LLM streaming UIs with Server-Sent Events, real-time token display, cancellation, error recovery. Handles OpenAI\u002FAnthropic\u002FClaude streaming APIs. Use for chatbots, AI assistants, real-time text generation. Activate on \"LLM streaming\", \"SSE\", \"token stream\", \"chat UI\", \"real-time AI\". NOT for batch processing, non-streaming APIs, or WebSocket bidirectional chat.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--llm-streaming-response-handler\u002FSKILL.md",[],[167,140,168,169,170,171,130,121,172,173,174,136,137,138,175,139,176,177,178,179],"llm streaming response handler","handler","error","processing","retry","chat ui","error recovery","critical","batch","display","text","server","read",{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":38},"01M71HXCB0E1YRKYW1Y8T0Y106","github-actions-pipeline-builder","Build production CI\u002FCD pipelines with GitHub Actions. Implements matrix builds, caching, deployments, testing, security scanning. Use for automated testing, deployments, release workflows. Activate on \"GitHub Actions\", \"CI\u002FCD\", \"workflow\", \"deployment pipeline\", \"automated testing\". NOT for Jenkins\u002FCircleCI, manual deployments, or non-GitHub repositories.","https:\u002F\u002Fgithub.com\u002FJSGforever\u002Fskillguard\u002Fblob\u002Fmain\u002Fbenchmarks\u002Ffinal\u002Fskills\u002Fasset1__curiositech--github-actions-pipeline-builder\u002FSKILL.md",[],[187,188,189,190,191,192,193,128,153,194,195,196,137,159,197,179,198,199,200,201],"github actions pipeline builder","actions","github actions","pipeline builder","github","builder","pipeline","testing","ci","workflows","run","release","write","edit","git"]