[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AJF38NV4R8YVXFHG12RRH8":3,"skill-same:01M7AJF38NV4R8YVXFHG12RRH8":60},{"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":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":24,"commitSha":25,"skillDirectory":5,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M7AJF38NV4R8YVXFHG12RRH8","auto-animate",null,"Production-tested setup for AutoAnimate (@formkit\u002Fauto-animate) - a zero-config, drop-in animation library\nthat automatically adds smooth transitions when DOM elements are added, removed, or moved. This skill should\nbe used when building UIs that need simple, automatic animations for lists, accordions, toasts, or form validation\nmessages without the complexity of full animation libraries.\n\nUse when: Adding smooth animations to dynamic lists, building filter\u002Fsort interfaces, creating accordion components,\nimplementing toast notifications, animating form validation messages, needing simple transitions without animation code,\nworking with Vite + React + Tailwind, deploying to Cloudflare Workers Static Assets, or encountering SSR errors with\nanimation libraries.\n\nKeywords: auto-animate, @formkit\u002Fauto-animate, formkit, zero-config animation, automatic animations, drop-in animation,\nlist animations, accordion animation, toast animation, form validation animation, lightweight animation, 2kb animation,\nprefers-reduced-motion, accessible animations, vite react animation, cloudflare workers animation, ssr safe animation","davidanthonyn\u002Fagent-skills","davidanthonyn","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F55152980?v=4","01M7AJ4MY8S5C2RJCGX6626J0G","01M7AJ4MZB7EC7CAP27ANCSE7N",1,"MIT","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fauto-animate\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: auto-animate\ndescription: |\n  Production-tested setup for AutoAnimate (@formkit\u002Fauto-animate) - a zero-config, drop-in animation library\n  that automatically adds smooth transitions when DOM elements are added, removed, or moved. This skill should\n  be used when building UIs that need simple, automatic animations for lists, accordions, toasts, or form validation\n  messages without the complexity of full animation libraries.\n\n  Use when: Adding smooth animations to dynamic lists, building filter\u002Fsort interfaces, creating accordion components,\n  implementing toast notifications, animating form validation messages, needing simple transitions without animation code,\n  working with Vite + React + Tailwind, deploying to Cloudflare Workers Static Assets, or encountering SSR errors with\n  animation libraries.\n\n  Keywords: auto-animate, @formkit\u002Fauto-animate, formkit, zero-config animation, automatic animations, drop-in animation,\n  list animations, accordion animation, toast animation, form validation animation, lightweight animation, 2kb animation,\n  prefers-reduced-motion, accessible animations, vite react animation, cloudflare workers animation, ssr safe animation\nlicense: MIT\n---\n\n# AutoAnimate\n\n**Status**: Production Ready ✅\n**Last Updated**: 2025-11-07\n**Dependencies**: None (works with any React setup)\n**Latest Versions**: @formkit\u002Fauto-animate@0.9.0\n\n---\n\n## Quick Start (2 Minutes)\n\n### 1. Install AutoAnimate\n\n```bash\npnpm add @formkit\u002Fauto-animate\n```\n\n**Why this matters:**\n- Only 3.28 KB gzipped (vs 22 KB for Motion)\n- Zero dependencies\n- Framework-agnostic (React, Vue, Svelte, vanilla JS)\n\n### 2. Add to Your Component\n\n```tsx\nimport { useAutoAnimate } from \"@formkit\u002Fauto-animate\u002Freact\";\n\nexport function MyList() {\n  const [parent] = useAutoAnimate(); \u002F\u002F 1. Get ref\n\n  return (\n    \u003Cul ref={parent}> {\u002F* 2. Attach to parent *\u002F}\n      {items.map(item => (\n        \u003Cli key={item.id}>{item.text}\u003C\u002Fli> {\u002F* 3. That's it! *\u002F}\n      ))}\n    \u003C\u002Ful>\n  );\n}\n```\n\n**CRITICAL:**\n- ✅ Always use unique, stable keys for list items\n- ✅ Parent element must always be rendered (not conditional)\n- ✅ AutoAnimate respects `prefers-reduced-motion` automatically\n- ✅ Works on add, remove, AND reorder operations\n\n### 3. Use in Production (SSR-Safe)\n\nFor Cloudflare Workers or Next.js:\n\n```tsx\n\u002F\u002F Use client-only import to prevent SSR errors\nimport { useState, useEffect } from \"react\";\n\nexport function useAutoAnimateSafe\u003CT extends HTMLElement>() {\n  const [parent, setParent] = useState\u003CT | null>(null);\n\n  useEffect(() => {\n    if (typeof window !== \"undefined\" && parent) {\n      import(\"@formkit\u002Fauto-animate\").then(({ default: autoAnimate }) => {\n        autoAnimate(parent);\n      });\n    }\n  }, [parent]);\n\n  return [parent, setParent] as const;\n}\n```\n\n---\n\n## Known Issues Prevention\n\nThis skill prevents **10+** documented issues:\n\n### Issue #1: SSR\u002FNext.js Import Errors\n**Error**: \"Can't import the named export 'useEffect' from non EcmaScript module\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F55\n**Why It Happens**: AutoAnimate uses DOM APIs not available on server\n**Prevention**: Use dynamic imports (see `templates\u002Fvite-ssr-safe.tsx`)\n\n### Issue #2: Conditional Parent Rendering\n**Error**: Animations don't work when parent is conditional\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F8\n**Why It Happens**: Ref can't attach to non-existent element\n**Prevention**:\n```tsx\n\u002F\u002F ❌ Wrong\n{showList && \u003Cul ref={parent}>...\u003C\u002Ful>}\n\n\u002F\u002F ✅ Correct\n\u003Cul ref={parent}>{showList && items.map(...)}\u003C\u002Ful>\n```\n\n### Issue #3: Missing Unique Keys\n**Error**: Items don't animate correctly or flash\n**Source**: Official docs\n**Why It Happens**: React can't track which items changed\n**Prevention**: Always use unique, stable keys (`key={item.id}`)\n\n### Issue #4: Flexbox Width Issues\n**Error**: Elements snap to width instead of animating smoothly\n**Source**: Official docs\n**Why It Happens**: `flex-grow: 1` waits for surrounding content\n**Prevention**: Use explicit width instead of flex-grow for animated elements\n\n### Issue #5: Table Row Display Issues\n**Error**: Table structure breaks when removing rows\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F7\n**Why It Happens**: Display: table-row conflicts with animations\n**Prevention**: Apply to `\u003Ctbody>` instead of individual rows, or use div-based layouts\n\n### Issue #6: Jest Testing Errors\n**Error**: \"Cannot find module '@formkit\u002Fauto-animate\u002Freact'\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F29\n**Why It Happens**: Jest doesn't resolve ESM exports correctly\n**Prevention**: Configure `moduleNameMapper` in jest.config.js\n\n### Issue #7: esbuild Compatibility\n**Error**: \"Path '.' not exported by package\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F36\n**Why It Happens**: ESM\u002FCommonJS condition mismatch\n**Prevention**: Configure esbuild to handle ESM modules properly\n\n### Issue #8: CSS Position Side Effects\n**Error**: Layout breaks after adding AutoAnimate\n**Source**: Official docs\n**Why It Happens**: Parent automatically gets `position: relative`\n**Prevention**: Account for position change in CSS or set explicitly\n\n### Issue #9: Vue\u002FNuxt Registration Errors\n**Error**: \"Failed to resolve directive: auto-animate\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F43\n**Why It Happens**: Plugin not registered correctly\n**Prevention**: Proper plugin setup in Vue\u002FNuxt config (see references\u002F)\n\n### Issue #10: Angular ESM Issues\n**Error**: Build fails with \"ESM-only package\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F72\n**Why It Happens**: CommonJS build environment\n**Prevention**: Configure ng-packagr for Angular Package Format\n\n---\n\n## When to Use AutoAnimate vs Motion\n\n### Use AutoAnimate When:\n- ✅ Simple list transitions (add\u002Fremove\u002Fsort)\n- ✅ Accordion expand\u002Fcollapse\n- ✅ Toast notifications fade in\u002Fout\n- ✅ Form validation messages appear\u002Fdisappear\n- ✅ Zero configuration preferred\n- ✅ Small bundle size critical (3.28 KB)\n- ✅ Applying to existing\u002F3rd-party code\n- ✅ \"Good enough\" animations acceptable\n\n### Use Motion When:\n- ✅ Complex choreographed animations\n- ✅ Gesture controls (drag, swipe, hover)\n- ✅ Scroll-based animations\n- ✅ Spring physics animations\n- ✅ SVG path animations\n- ✅ Keyframe control needed\n- ✅ Animation variants\u002Forchestration\n- ✅ Custom easing curves\n\n**Rule of Thumb**: Use AutoAnimate for 90% of cases, Motion for hero\u002Finteractive animations.\n\n---\n\n## Critical Rules\n\n### Always Do\n\n✅ **Use unique, stable keys** - `key={item.id}` not `key={index}`\n✅ **Keep parent in DOM** - Parent ref element always rendered\n✅ **Client-only for SSR** - Dynamic import for server environments\n✅ **Respect accessibility** - Keep `disrespectUserMotionPreference: false`\n✅ **Test with motion disabled** - Verify UI works without animations\n✅ **Use explicit width** - Avoid flex-grow on animated elements\n✅ **Apply to tbody for tables** - Not individual rows\n\n### Never Do\n\n❌ **Conditional parent** - `{show && \u003Cul ref={parent}>}`\n❌ **Index as key** - `key={index}` breaks animations\n❌ **Ignore SSR** - Will break in Cloudflare Workers\u002FNext.js\n❌ **Force animations** - `disrespectUserMotionPreference: true` breaks accessibility\n❌ **Animate tables directly** - Use tbody or div-based layout\n❌ **Skip unique keys** - Required for proper animation\n❌ **Complex animations** - Use Motion instead\n\n---\n\n## Configuration\n\nAutoAnimate is zero-config by default. Optional customization:\n\n```tsx\nimport { useAutoAnimate } from \"@formkit\u002Fauto-animate\u002Freact\";\n\nconst [parent] = useAutoAnimate({\n  duration: 250, \u002F\u002F milliseconds (default: 250)\n  easing: \"ease-in-out\", \u002F\u002F CSS easing (default: \"ease-in-out\")\n  \u002F\u002F disrespectUserMotionPreference: false, \u002F\u002F Keep false!\n});\n```\n\n**Recommendation**: Use defaults unless you have specific design requirements.\n\n---\n\n## Using Bundled Resources\n\n### Templates (templates\u002F)\n\nCopy-paste ready examples:\n\n- `react-basic.tsx` - Simple list with add\u002Fremove\u002Fshuffle\n- `react-typescript.tsx` - Typed setup with custom config\n- `filter-sort-list.tsx` - Animated filtering and sorting\n- `accordion.tsx` - Expandable sections\n- `toast-notifications.tsx` - Fade in\u002Fout messages\n- `form-validation.tsx` - Error messages animation\n- `vite-ssr-safe.tsx` - Cloudflare Workers\u002FSSR pattern\n\n### References (references\u002F)\n\n- `auto-animate-vs-motion.md` - Decision guide for which to use\n- `css-conflicts.md` - Flexbox, table, and position gotchas\n- `ssr-patterns.md` - Next.js, Nuxt, Workers workarounds\n\n### Scripts (scripts\u002F)\n\n- `init-auto-animate.sh` - Automated setup script\n\n---\n\n## Cloudflare Workers Compatibility\n\nAutoAnimate works perfectly with Cloudflare Workers Static Assets:\n\n✅ **Client-side only** - Runs in browser, not Worker runtime\n✅ **No Node.js deps** - Pure browser code\n✅ **Edge-friendly** - 3.28 KB gzipped\n✅ **SSR-safe** - Use dynamic imports (see templates\u002F)\n\n**Vite Config**:\n```typescript\nexport default defineConfig({\n  plugins: [react(), cloudflare()],\n  ssr: {\n    external: [\"@formkit\u002Fauto-animate\"],\n  },\n});\n```\n\n---\n\n## Accessibility\n\nAutoAnimate respects `prefers-reduced-motion` **automatically**:\n\n```css\n\u002F* User's system preference *\u002F\n@media (prefers-reduced-motion: reduce) {\n  \u002F* AutoAnimate disables animations automatically *\u002F\n}\n```\n\n**Critical**: Never set `disrespectUserMotionPreference: true` - this breaks accessibility.\n\n---\n\n## Official Documentation\n\n- **Official Site**: https:\u002F\u002Fauto-animate.formkit.com\n- **GitHub**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\n- **npm**: https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@formkit\u002Fauto-animate\n- **React Docs**: https:\u002F\u002Fauto-animate.formkit.com\u002Freact\n- **Video Tutorial**: Laracasts video (see README)\n\n---\n\n## Package Versions (Verified 2025-11-07)\n\n```json\n{\n  \"dependencies\": {\n    \"@formkit\u002Fauto-animate\": \"^0.9.0\"\n  },\n  \"devDependencies\": {\n    \"react\": \"^19.2.0\",\n    \"vite\": \"^6.0.0\"\n  }\n}\n```\n\n---\n\n## Production Example\n\nThis skill is based on production testing:\n\n- **Bundle Size**: 3.28 KB gzipped\n- **Setup Time**: 2 minutes (vs 15 min with Motion)\n- **Errors**: 0 (all 10 known issues prevented)\n- **Validation**: ✅ Works with Vite, Tailwind v4, Cloudflare Workers, React 19\n\n**Tested Scenarios:**\n- ✅ Filter\u002Fsort lists\n- ✅ Accordion components\n- ✅ Toast notifications\n- ✅ Form validation messages\n- ✅ SSR\u002FCloudflare Workers\n- ✅ Accessibility (prefers-reduced-motion)\n\n---\n\n## Troubleshooting\n\n### Problem: Animations not working\n**Solution**: Check these common issues:\n1. Is parent element always in DOM? (not conditional)\n2. Do items have unique, stable keys?\n3. Is ref attached to immediate parent of animated children?\n\n### Problem: SSR\u002FNext.js errors\n**Solution**: Use dynamic import:\n```tsx\nuseEffect(() => {\n  if (typeof window !== \"undefined\") {\n    import(\"@formkit\u002Fauto-animate\").then(({ default: autoAnimate }) => {\n      autoAnimate(parent);\n    });\n  }\n}, [parent]);\n```\n\n### Problem: Items flash instead of animating\n**Solution**: Add unique keys: `key={item.id}` not `key={index}`\n\n### Problem: Flexbox width issues\n**Solution**: Use explicit width instead of `flex-grow: 1`\n\n### Problem: Table rows don't animate\n**Solution**: Apply ref to `\u003Ctbody>`, not individual `\u003Ctr>` elements\n\n---\n\n## Complete Setup Checklist\n\n- [ ] Installed `@formkit\u002Fauto-animate@0.9.0`\n- [ ] Using React 19+ (or Vue\u002FSvelte)\n- [ ] Added ref to parent element\n- [ ] Parent element always rendered (not conditional)\n- [ ] List items have unique, stable keys\n- [ ] Tested with `prefers-reduced-motion`\n- [ ] SSR-safe if using Cloudflare Workers\u002FNext.js\n- [ ] No flexbox width issues\n- [ ] Dev server runs without errors\n- [ ] Production build succeeds\n\n---\n\n**Questions? Issues?**\n\n1. Check `templates\u002F` for working examples\n2. Check `references\u002Fauto-animate-vs-motion.md` for library comparison\n3. Check `references\u002Fssr-patterns.md` for SSR workarounds\n4. Check official docs: https:\u002F\u002Fauto-animate.formkit.com\n5. Check GitHub issues: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\n\n---\n\n**Production Ready?** ✅ Yes - 13.6k stars, actively maintained, zero dependencies.\n","# AutoAnimate\n\n**Status**: Production Ready ✅\n**Last Updated**: 2025-11-07\n**Dependencies**: None (works with any React setup)\n**Latest Versions**: @formkit\u002Fauto-animate@0.9.0\n\n---\n\n## Quick Start (2 Minutes)\n\n### 1. Install AutoAnimate\n\n```bash\npnpm add @formkit\u002Fauto-animate\n```\n\n**Why this matters:**\n- Only 3.28 KB gzipped (vs 22 KB for Motion)\n- Zero dependencies\n- Framework-agnostic (React, Vue, Svelte, vanilla JS)\n\n### 2. Add to Your Component\n\n```tsx\nimport { useAutoAnimate } from \"@formkit\u002Fauto-animate\u002Freact\";\n\nexport function MyList() {\n  const [parent] = useAutoAnimate(); \u002F\u002F 1. Get ref\n\n  return (\n    \u003Cul ref={parent}> {\u002F* 2. Attach to parent *\u002F}\n      {items.map(item => (\n        \u003Cli key={item.id}>{item.text}\u003C\u002Fli> {\u002F* 3. That's it! *\u002F}\n      ))}\n    \u003C\u002Ful>\n  );\n}\n```\n\n**CRITICAL:**\n- ✅ Always use unique, stable keys for list items\n- ✅ Parent element must always be rendered (not conditional)\n- ✅ AutoAnimate respects `prefers-reduced-motion` automatically\n- ✅ Works on add, remove, AND reorder operations\n\n### 3. Use in Production (SSR-Safe)\n\nFor Cloudflare Workers or Next.js:\n\n```tsx\n\u002F\u002F Use client-only import to prevent SSR errors\nimport { useState, useEffect } from \"react\";\n\nexport function useAutoAnimateSafe\u003CT extends HTMLElement>() {\n  const [parent, setParent] = useState\u003CT | null>(null);\n\n  useEffect(() => {\n    if (typeof window !== \"undefined\" && parent) {\n      import(\"@formkit\u002Fauto-animate\").then(({ default: autoAnimate }) => {\n        autoAnimate(parent);\n      });\n    }\n  }, [parent]);\n\n  return [parent, setParent] as const;\n}\n```\n\n---\n\n## Known Issues Prevention\n\nThis skill prevents **10+** documented issues:\n\n### Issue #1: SSR\u002FNext.js Import Errors\n**Error**: \"Can't import the named export 'useEffect' from non EcmaScript module\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F55\n**Why It Happens**: AutoAnimate uses DOM APIs not available on server\n**Prevention**: Use dynamic imports (see `templates\u002Fvite-ssr-safe.tsx`)\n\n### Issue #2: Conditional Parent Rendering\n**Error**: Animations don't work when parent is conditional\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F8\n**Why It Happens**: Ref can't attach to non-existent element\n**Prevention**:\n```tsx\n\u002F\u002F ❌ Wrong\n{showList && \u003Cul ref={parent}>...\u003C\u002Ful>}\n\n\u002F\u002F ✅ Correct\n\u003Cul ref={parent}>{showList && items.map(...)}\u003C\u002Ful>\n```\n\n### Issue #3: Missing Unique Keys\n**Error**: Items don't animate correctly or flash\n**Source**: Official docs\n**Why It Happens**: React can't track which items changed\n**Prevention**: Always use unique, stable keys (`key={item.id}`)\n\n### Issue #4: Flexbox Width Issues\n**Error**: Elements snap to width instead of animating smoothly\n**Source**: Official docs\n**Why It Happens**: `flex-grow: 1` waits for surrounding content\n**Prevention**: Use explicit width instead of flex-grow for animated elements\n\n### Issue #5: Table Row Display Issues\n**Error**: Table structure breaks when removing rows\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F7\n**Why It Happens**: Display: table-row conflicts with animations\n**Prevention**: Apply to `\u003Ctbody>` instead of individual rows, or use div-based layouts\n\n### Issue #6: Jest Testing Errors\n**Error**: \"Cannot find module '@formkit\u002Fauto-animate\u002Freact'\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F29\n**Why It Happens**: Jest doesn't resolve ESM exports correctly\n**Prevention**: Configure `moduleNameMapper` in jest.config.js\n\n### Issue #7: esbuild Compatibility\n**Error**: \"Path '.' not exported by package\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F36\n**Why It Happens**: ESM\u002FCommonJS condition mismatch\n**Prevention**: Configure esbuild to handle ESM modules properly\n\n### Issue #8: CSS Position Side Effects\n**Error**: Layout breaks after adding AutoAnimate\n**Source**: Official docs\n**Why It Happens**: Parent automatically gets `position: relative`\n**Prevention**: Account for position change in CSS or set explicitly\n\n### Issue #9: Vue\u002FNuxt Registration Errors\n**Error**: \"Failed to resolve directive: auto-animate\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F43\n**Why It Happens**: Plugin not registered correctly\n**Prevention**: Proper plugin setup in Vue\u002FNuxt config (see references\u002F)\n\n### Issue #10: Angular ESM Issues\n**Error**: Build fails with \"ESM-only package\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F72\n**Why It Happens**: CommonJS build environment\n**Prevention**: Configure ng-packagr for Angular Package Format\n\n---\n\n## When to Use AutoAnimate vs Motion\n\n### Use AutoAnimate When:\n- ✅ Simple list transitions (add\u002Fremove\u002Fsort)\n- ✅ Accordion expand\u002Fcollapse\n- ✅ Toast notifications fade in\u002Fout\n- ✅ Form validation messages appear\u002Fdisappear\n- ✅ Zero configuration preferred\n- ✅ Small bundle size critical (3.28 KB)\n- ✅ Applying to existing\u002F3rd-party code\n- ✅ \"Good enough\" animations acceptable\n\n### Use Motion When:\n- ✅ Complex choreographed animations\n- ✅ Gesture controls (drag, swipe, hover)\n- ✅ Scroll-based animations\n- ✅ Spring physics animations\n- ✅ SVG path animations\n- ✅ Keyframe control needed\n- ✅ Animation variants\u002Forchestration\n- ✅ Custom easing curves\n\n**Rule of Thumb**: Use AutoAnimate for 90% of cases, Motion for hero\u002Finteractive animations.\n\n---\n\n## Critical Rules\n\n### Always Do\n\n✅ **Use unique, stable keys** - `key={item.id}` not `key={index}`\n✅ **Keep parent in DOM** - Parent ref element always rendered\n✅ **Client-only for SSR** - Dynamic import for server environments\n✅ **Respect accessibility** - Keep `disrespectUserMotionPreference: false`\n✅ **Test with motion disabled** - Verify UI works without animations\n✅ **Use explicit width** - Avoid flex-grow on animated elements\n✅ **Apply to tbody for tables** - Not individual rows\n\n### Never Do\n\n❌ **Conditional parent** - `{show && \u003Cul ref={parent}>}`\n❌ **Index as key** - `key={index}` breaks animations\n❌ **Ignore SSR** - Will break in Cloudflare Workers\u002FNext.js\n❌ **Force animations** - `disrespectUserMotionPreference: true` breaks accessibility\n❌ **Animate tables directly** - Use tbody or div-based layout\n❌ **Skip unique keys** - Required for proper animation\n❌ **Complex animations** - Use Motion instead\n\n---\n\n## Configuration\n\nAutoAnimate is zero-config by default. Optional customization:\n\n```tsx\nimport { useAutoAnimate } from \"@formkit\u002Fauto-animate\u002Freact\";\n\nconst [parent] = useAutoAnimate({\n  duration: 250, \u002F\u002F milliseconds (default: 250)\n  easing: \"ease-in-out\", \u002F\u002F CSS easing (default: \"ease-in-out\")\n  \u002F\u002F disrespectUserMotionPreference: false, \u002F\u002F Keep false!\n});\n```\n\n**Recommendation**: Use defaults unless you have specific design requirements.\n\n---\n\n## Using Bundled Resources\n\n### Templates (templates\u002F)\n\nCopy-paste ready examples:\n\n- `react-basic.tsx` - Simple list with add\u002Fremove\u002Fshuffle\n- `react-typescript.tsx` - Typed setup with custom config\n- `filter-sort-list.tsx` - Animated filtering and sorting\n- `accordion.tsx` - Expandable sections\n- `toast-notifications.tsx` - Fade in\u002Fout messages\n- `form-validation.tsx` - Error messages animation\n- `vite-ssr-safe.tsx` - Cloudflare Workers\u002FSSR pattern\n\n### References (references\u002F)\n\n- `auto-animate-vs-motion.md` - Decision guide for which to use\n- `css-conflicts.md` - Flexbox, table, and position gotchas\n- `ssr-patterns.md` - Next.js, Nuxt, Workers workarounds\n\n### Scripts (scripts\u002F)\n\n- `init-auto-animate.sh` - Automated setup script\n\n---\n\n## Cloudflare Workers Compatibility\n\nAutoAnimate works perfectly with Cloudflare Workers Static Assets:\n\n✅ **Client-side only** - Runs in browser, not Worker runtime\n✅ **No Node.js deps** - Pure browser code\n✅ **Edge-friendly** - 3.28 KB gzipped\n✅ **SSR-safe** - Use dynamic imports (see templates\u002F)\n\n**Vite Config**:\n```typescript\nexport default defineConfig({\n  plugins: [react(), cloudflare()],\n  ssr: {\n    external: [\"@formkit\u002Fauto-animate\"],\n  },\n});\n```\n\n---\n\n## Accessibility\n\nAutoAnimate respects `prefers-reduced-motion` **automatically**:\n\n```css\n\u002F* User's system preference *\u002F\n@media (prefers-reduced-motion: reduce) {\n  \u002F* AutoAnimate disables animations automatically *\u002F\n}\n```\n\n**Critical**: Never set `disrespectUserMotionPreference: true` - this breaks accessibility.\n\n---\n\n## Official Documentation\n\n- **Official Site**: https:\u002F\u002Fauto-animate.formkit.com\n- **GitHub**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\n- **npm**: https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@formkit\u002Fauto-animate\n- **React Docs**: https:\u002F\u002Fauto-animate.formkit.com\u002Freact\n- **Video Tutorial**: Laracasts video (see README)\n\n---\n\n## Package Versions (Verified 2025-11-07)\n\n```json\n{\n  \"dependencies\": {\n    \"@formkit\u002Fauto-animate\": \"^0.9.0\"\n  },\n  \"devDependencies\": {\n    \"react\": \"^19.2.0\",\n    \"vite\": \"^6.0.0\"\n  }\n}\n```\n\n---\n\n## Production Example\n\nThis skill is based on production testing:\n\n- **Bundle Size**: 3.28 KB gzipped\n- **Setup Time**: 2 minutes (vs 15 min with Motion)\n- **Errors**: 0 (all 10 known issues prevented)\n- **Validation**: ✅ Works with Vite, Tailwind v4, Cloudflare Workers, React 19\n\n**Tested Scenarios:**\n- ✅ Filter\u002Fsort lists\n- ✅ Accordion components\n- ✅ Toast notifications\n- ✅ Form validation messages\n- ✅ SSR\u002FCloudflare Workers\n- ✅ Accessibility (prefers-reduced-motion)\n\n---\n\n## Troubleshooting\n\n### Problem: Animations not working\n**Solution**: Check these common issues:\n1. Is parent element always in DOM? (not conditional)\n2. Do items have unique, stable keys?\n3. Is ref attached to immediate parent of animated children?\n\n### Problem: SSR\u002FNext.js errors\n**Solution**: Use dynamic import:\n```tsx\nuseEffect(() => {\n  if (typeof window !== \"undefined\") {\n    import(\"@formkit\u002Fauto-animate\").then(({ default: autoAnimate }) => {\n      autoAnimate(parent);\n    });\n  }\n}, [parent]);\n```\n\n### Problem: Items flash instead of animating\n**Solution**: Add unique keys: `key={item.id}` not `key={index}`\n\n### Problem: Flexbox width issues\n**Solution**: Use explicit width instead of `flex-grow: 1`\n\n### Problem: Table rows don't animate\n**Solution**: Apply ref to `\u003Ctbody>`, not individual `\u003Ctr>` elements\n\n---\n\n## Complete Setup Checklist\n\n- [ ] Installed `@formkit\u002Fauto-animate@0.9.0`\n- [ ] Using React 19+ (or Vue\u002FSvelte)\n- [ ] Added ref to parent element\n- [ ] Parent element always rendered (not conditional)\n- [ ] List items have unique, stable keys\n- [ ] Tested with `prefers-reduced-motion`\n- [ ] SSR-safe if using Cloudflare Workers\u002FNext.js\n- [ ] No flexbox width issues\n- [ ] Dev server runs without errors\n- [ ] Production build succeeds\n\n---\n\n**Questions? Issues?**\n\n1. Check `templates\u002F` for working examples\n2. Check `references\u002Fauto-animate-vs-motion.md` for library comparison\n3. Check `references\u002Fssr-patterns.md` for SSR workarounds\n4. Check official docs: https:\u002F\u002Fauto-animate.formkit.com\n5. Check GitHub issues: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\n\n---\n\n**Production Ready?** ✅ Yes - 13.6k stars, actively maintained, zero dependencies.\n",{"name":5,"license":14,"description":23},"Production-tested setup for AutoAnimate (@formkit\u002Fauto-animate) - a zero-config, drop-in animation library\nthat automatically adds smooth transitions when DOM elements are added, removed, or moved. This skill should\nbe used when building UIs that need simple, automatic animations for lists, accordions, toasts, or form validation\nmessages without the complexity of full animation libraries.\n\nUse when: Adding smooth animations to dynamic lists, building filter\u002Fsort interfaces, creating accordion components,\nimplementing toast notifications, animating form validation messages, needing simple transitions without animation code,\nworking with Vite + React + Tailwind, deploying to Cloudflare Workers Static Assets, or encountering SSR errors with\nanimation libraries.\n\nKeywords: auto-animate, @formkit\u002Fauto-animate, formkit, zero-config animation, automatic animations, drop-in animation,\nlist animations, accordion animation, toast animation, form validation animation, lightweight animation, 2kb animation,\nprefers-reduced-motion, accessible animations, vite react animation, cloudflare workers animation, ssr safe animation\n","main","6b73b29e4866f997b1eb47fe8d9631396265fc24",0,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn","2026-09-09 16:06:07",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add davidanthonyn\u002Fagent-skills --skill auto-animate",{"tool":36,"command":37},"bunx","bunx skills add davidanthonyn\u002Fagent-skills --skill auto-animate",{"tool":39,"command":40},"pnpm","pnpm dlx skills add davidanthonyn\u002Fagent-skills --skill auto-animate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fauto-animate\u002FSKILL.md",true,[44,50,54],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"README.md","REFERENCE","参考文档",10099,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fauto-animate\u002FREADME.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"SKILL.json",12368,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fauto-animate\u002FSKILL.json",{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"SKILL.md.backup","OTHER","其他",12158,"https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fauto-animate\u002FSKILL.md.backup",[61,68,76,83,90,99],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7AQNJDXVNVMN08N5BHBGZBF","zustand-state-management","Production-tested setup for Zustand state management in React applications with TypeScript.\nThis skill provides comprehensive patterns for building scalable, type-safe global state.\n\nUse when: setting up global state in React, migrating from Redux or Context API, implementing\nstate persistence with localStorage, configuring TypeScript with Zustand, using slices pattern\nfor modular stores, adding devtools middleware for debugging, handling Next.js SSR hydration,\nor encountering hydration errors, TypeScript inference issues, or persist middleware problems.\n\nPrevents 5 documented issues: Next.js hydration mismatches, TypeScript double parentheses\nsyntax errors, persist middleware export errors, infinite render loops, and slices pattern\ntype inference failures.\n\nKeywords: zustand, state management, React state, TypeScript state, persist middleware,\ndevtools, slices pattern, global state, React hooks, create store, useBoundStore,\nStateCreator, hydration error, text content mismatch, infinite render, localStorage,\nsessionStorage, immer middleware, shallow equality, selector pattern, zustand v5","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fzustand-state-management\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":72,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M7AQN2DW9DTPM8BYNZSHQANC","zetic-mlange","Help users integrate the ZETIC Melange (MLange) on-device AI SDK into Android (Kotlin\u002FJava) and iOS (Swift) mobile apps. Use this skill whenever the user mentions Zetic, MLange, Melange, ZeticMLangeModel, ZeticMLangeLLMModel, ZeticMLangeHFModel, on-device NPU inference for mobile, or deploying ML models to Android\u002FiOS with NPU acceleration. Also trigger when users ask about running LLMs on-device with GGUF quantization, mobile NPU model deployment, or converting PyTorch\u002FONNX models for mobile inference. Covers general model inference, LLM inference (streaming token generation), and HuggingFace model loading.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fzetic-mlange\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fzetic-mlange\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M7AQMEK370FBPC75N2W8WA4W","youtube-downloader","Download videos, audio, playlists, and channels from YouTube and 1000+ websites using yt-dlp. Supports quality selection, format conversion, subtitle download, playlist filtering, metadata extraction, thumbnail download, and batch operations. Use when downloading YouTube videos in any quality (4K, 8K, HDR), extracting audio as MP3\u002FM4A\u002FFLAC, downloading entire playlists\u002Fchannels, getting subtitles in multiple languages, converting to specific formats, downloading live streams, archiving content, or batch processing multiple URLs. Optimized for reliability with automatic retries, rate limiting, and error handling.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fyoutube-downloader\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M7AQHKQ4VQB04NH6BG4SV9Q7","wordpress-plugin-core","This skill provides comprehensive knowledge for WordPress plugin development, covering core patterns, security best practices, database interactions, hooks\u002Ffilters, Settings API, custom post types, REST API, and AJAX. This skill should be used when creating WordPress plugins, troubleshooting security issues, implementing custom post types\u002Ftaxonomies, building admin interfaces, or working with the WordPress database.\n\nUse when: Creating new WordPress plugins, implementing nonces\u002Fsanitization\u002Fescaping, working with $wpdb and prepared statements, building Settings API pages, registering custom post types or taxonomies, implementing REST API endpoints, handling AJAX requests, debugging plugin activation\u002Fdeactivation issues, preventing SQL injection\u002FXSS\u002FCSRF vulnerabilities.\n\nKeywords: wordpress plugin development, wordpress security, wordpress hooks, wordpress filters, wordpress database, wpdb prepare, sanitize_text_field, esc_html, wp_nonce, custom post type, register_post_type, settings api, rest api, admin-ajax, wordpress sql injection, wordpress xss, wordpress csrf, plugin header, activation hook, deactivation hook, wordpress coding standards, wordpress plugin architecture","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fwordpress-plugin-core\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":94,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":18},"01M7AQH4JW8F2MJFS1C43TZ2TY","webapp-testing","Test local web applications with Playwright. Use when asked to verify frontend functionality, debug UI behavior, capture browser screenshots, or inspect browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":18},"01M7AQH0PWD6Z1NN66V15DT25M","web-performance-audit","Audit web performance using Chrome DevTools MCP. Use when asked to audit, profile, debug, or optimize page load performance, Lighthouse scores, or site speed.","https:\u002F\u002Fgithub.com\u002Fdavidanthonyn\u002Fagent-skills\u002Fblob\u002Fmain\u002Fweb-performance-audit\u002FSKILL.md",[],[]]