[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M783WH1CX0PEPRDQKBZXN8N3":3,"skill-same:01M783WH1CX0PEPRDQKBZXN8N3":101},{"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":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M783WH1CX0PEPRDQKBZXN8N3","motion",null,"Motion (Framer Motion) React animation library. Use for drag-and-drop, scroll animations, gestures, SVG morphing, or encountering bundle size, complex transitions, spring physics errors.","aibizmod\u002Faibizmod-service-web","aibizmod","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F295315630?v=4","01M7836CB8EQY701YQ7N88M591","01M7836CBVPZGNSJ8BRP2BT398",0,"MIT","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fmotion\u002Fskills\u002Fmotion\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: motion\ndescription: >-\n  Motion (Framer Motion) React animation library. Use for drag-and-drop, scroll animations, gestures, SVG morphing, or encountering bundle size, complex transitions, spring physics errors.\n\nlicense: MIT\n---\n\n# Motion Animation Library\n\n## Overview\n\nMotion (package: `motion`, formerly `framer-motion`) is the industry-standard React animation library used in production by thousands of applications. With 30,200+ GitHub stars and 300+ official examples, it provides a declarative API for creating sophisticated animations with minimal code.\n\n**Key Capabilities:**\n- **Gestures**: drag, hover, tap, pan, focus with cross-device support\n- **Scroll Animations**: viewport-triggered, scroll-linked, parallax effects\n- **Layout Animations**: FLIP technique for smooth layout changes, shared element transitions\n- **Spring Physics**: Natural, customizable motion with physics-based easing\n- **SVG**: Path morphing, line drawing, attribute animation\n- **Exit Animations**: AnimatePresence for unmounting transitions\n- **Performance**: Hardware-accelerated, ScrollTimeline API, bundle optimization (2.3 KB - 34 KB)\n\n**Production Tested**: React 19, Next.js 15, Vite 6, Tailwind v4\n\n---\n\n## When to Use This Skill\n\n### ✅ Use Motion When:\n\n**Complex Interactions**:\n- Drag-and-drop interfaces (sortable lists, kanban boards, sliders)\n- Hover states with scale\u002Frotation\u002Fcolor changes\n- Tap feedback with bounce\u002Fsqueeze effects\n- Pan gestures for mobile-friendly controls\n\n**Scroll-Based Animations**:\n- Hero sections with parallax layers\n- Scroll-triggered reveals (fade in as elements enter viewport)\n- Progress bars linked to scroll position\n- Sticky headers with scroll-dependent transforms\n\n**Layout Transitions**:\n- Shared element transitions between routes (card → detail page)\n- Expand\u002Fcollapse with automatic height animation\n- Grid\u002Flist view switching with smooth repositioning\n- Tab navigation with animated underline\n\n**Advanced Features**:\n- SVG line drawing animations\n- Path morphing between shapes\n- Spring physics for natural bounce\n- Orchestrated sequences (staggered reveals)\n- Modal dialogs with backdrop blur\n\n**Bundle Optimization**:\n- Need 2.3 KB animation library (useAnimate mini)\n- Want to reduce Motion from 34 KB to 4.6 KB (LazyMotion)\n\n### ❌ Don't Use Motion When:\n\n- **Simple list animations** (use `auto-animate` instead: 3.28 KB vs 34 KB)\n- **Static content** without interactions\n- **Cloudflare Workers** (use `framer-motion` v12.23.24 workaround - see Known Issues)\n- **3D animations** (use Three.js or React Three Fiber instead)\n\n---\n\n## Installation\n\n### Latest Stable Version\n\n```bash\nbun add motion  # preferred\n# or: npm install motion\n# or: yarn add motion\n```\n\n**Current Version**: 12.23.24 (verified 2025-11-07)\n\n**Alternative for Cloudflare Workers**:\n```bash\n# Use framer-motion if deploying to Cloudflare Workers\nbun add framer-motion\n# or: npm install framer-motion\n```\n\n### Package Information\n\n- **Bundle Size**:\n  - Full `motion` component: ~34 KB minified+gzipped\n  - `LazyMotion` + `m` component: ~4.6 KB\n  - `useAnimate` mini: 2.3 KB (smallest React animation library)\n  - `useAnimate` hybrid: 17 KB\n- **Dependencies**: React 18+ or React 19+\n- **TypeScript**: Native support included (no @types package needed)\n\n---\n\n## Core Concepts\n\n### 1. The `motion` Component\n\nTransform any HTML\u002FSVG element into an animatable component:\n\n```tsx\nimport { motion } from \"motion\u002Freact\"\n\n\u002F\u002F Basic animation\n\u003Cmotion.div\n  initial={{ opacity: 0, y: 20 }}\n  animate={{ opacity: 1, y: 0 }}\n  transition={{ duration: 0.5 }}\n>\n  Content fades in and slides up\n\u003C\u002Fmotion.div>\n\n\u002F\u002F Gesture controls\n\u003Cmotion.button\n  whileHover={{ scale: 1.1 }}\n  whileTap={{ scale: 0.95 }}\n>\n  Click me\n\u003C\u002Fmotion.button>\n```\n\n**Props:**\n- `initial`: Starting state (object or variant name)\n- `animate`: Target state (object or variant name)\n- `exit`: Unmounting state (requires AnimatePresence)\n- `transition`: Timing\u002Feasing configuration\n- `whileHover`, `whileTap`, `whileFocus`: Gesture states\n- `whileInView`: Viewport-triggered animation\n- `drag`: Enable dragging (\"x\", \"y\", or true for both)\n- `layout`: Enable FLIP layout animations\n\n### 2. Variants (Animation Orchestration)\n\nNamed animation states that propagate through component tree:\n\n```tsx\nconst variants = {\n  hidden: { opacity: 0, y: 20 },\n  visible: { opacity: 1, y: 0 }\n}\n\n\u003Cmotion.div variants={variants} initial=\"hidden\" animate=\"visible\">\n  Content\n\u003C\u002Fmotion.div>\n```\n\n**For advanced orchestration** (staggerChildren, delayChildren, dynamic variants), load `references\u002Fcore-concepts-deep-dive.md`.\n\n### 3. AnimatePresence (Exit Animations)\n\nEnables animations when components unmount:\n\n```tsx\nimport { AnimatePresence } from \"motion\u002Freact\"\n\n\u003CAnimatePresence>\n  {isVisible && (\n    \u003Cmotion.div\n      key=\"modal\"\n      initial={{ opacity: 0 }}\n      animate={{ opacity: 1 }}\n      exit={{ opacity: 0 }}\n    >\n      Modal content\n    \u003C\u002Fmotion.div>\n  )}\n\u003C\u002FAnimatePresence>\n```\n\n**Critical Rules:**\n- AnimatePresence **must stay mounted** (don't wrap in conditional)\n- All children **must have unique `key` props**\n- AnimatePresence **wraps the conditional**, not the other way around\n\n**Common Mistake** (exit animation won't play):\n```tsx\n\u002F\u002F ❌ Wrong - AnimatePresence unmounts with condition\n{isVisible && (\n  \u003CAnimatePresence>\n    \u003Cmotion.div>Content\u003C\u002Fmotion.div>\n  \u003C\u002FAnimatePresence>\n)}\n\n\u002F\u002F ✅ Correct - AnimatePresence stays mounted\n\u003CAnimatePresence>\n  {isVisible && \u003Cmotion.div key=\"unique\">Content\u003C\u002Fmotion.div>}\n\u003C\u002FAnimatePresence>\n```\n\n### 4. Layout Animations (FLIP)\n\nAutomatically animate layout changes:\n\n```tsx\n\u003Cmotion.div layout>\n  {isExpanded ? \u003CFullContent \u002F> : \u003CSummary \u002F>}\n\u003C\u002Fmotion.div>\n```\n\n**Special props**: `layoutId` (shared element transitions), `layoutScroll` (scrollable containers), `layoutRoot` (fixed positioning).\n\n**For advanced patterns** (LayoutGroup, layoutId orchestration), load `references\u002Fcore-concepts-deep-dive.md`.\n\n### 5. Scroll Animations\n\n```tsx\n\u002F\u002F Viewport-triggered\n\u003Cmotion.div\n  initial={{ opacity: 0, y: 50 }}\n  whileInView={{ opacity: 1, y: 0 }}\n  viewport={{ once: true }}\n>\n  Fades in when entering viewport\n\u003C\u002Fmotion.div>\n\n\u002F\u002F Scroll-linked (parallax)\nimport { useScroll, useTransform } from \"motion\u002Freact\"\nconst { scrollYProgress } = useScroll()\nconst y = useTransform(scrollYProgress, [0, 1], [0, -300])\n\u003Cmotion.div style={{ y }}>Parallax effect\u003C\u002Fmotion.div>\n```\n\n**For advanced scroll patterns** (useScroll offsets, useTransform easing, parallax layers), load `references\u002Fcore-concepts-deep-dive.md`.\n\n### 6. Gestures\n\n```tsx\n\u003Cmotion.div drag=\"x\" dragConstraints={{ left: -200, right: 200 }}>\n  Drag me\n\u003C\u002Fmotion.div>\n```\n\n**Available**: `whileHover`, `whileTap`, `whileFocus`, `whileDrag`, `whileInView`, `drag`.\n\n**For advanced drag controls** (momentum, elastic, event handlers), load `references\u002Fcore-concepts-deep-dive.md`.\n\n### 7. Spring Physics\n\n```tsx\n\u003Cmotion.div\n  animate={{ x: 100 }}\n  transition={{ type: \"spring\", stiffness: 100, damping: 10 }}\n\u002F>\n```\n\n**Common presets**: Bouncy `{ stiffness: 300, damping: 10 }`, Smooth `{ stiffness: 100, damping: 20 }`.\n\n**For spring tuning** (mass, visualizer, presets), load `references\u002Fcore-concepts-deep-dive.md`.\n\n---\n\n## Integration Guides\n\n**Vite**: `bun add motion` → `import { motion } from \"motion\u002Freact\"` (works out of the box)\n\n**Next.js App Router**: Requires `\"use client\"` directive or client component wrapper\n```tsx\n\"use client\"\nimport { motion } from \"motion\u002Freact\"\n```\n\n**Tailwind**: ⚠️ Remove `transition-*` classes (causes conflicts with Motion animations)\n\n**Cloudflare Workers**: Use `framer-motion` v12.23.24 instead (Motion has Wrangler build issues)\n\n**For complete integration guides** (Next.js patterns, SSR, framework-specific issues), load `references\u002Fnextjs-integration.md`.\n\n---\n\n## Performance Optimization\n\n**Bundle Size**: Use LazyMotion (34 KB → 4.6 KB):\n```tsx\nimport { LazyMotion, domAnimation, m } from \"motion\u002Freact\"\n\u003CLazyMotion features={domAnimation}>\n  \u003Cm.div>Only 4.6 KB!\u003C\u002Fm.div>\n\u003C\u002FLazyMotion>\n```\n\n**Large Lists**: Use virtualization (`react-window`, `react-virtuoso`) for 50+ animated items.\n\n**For complete optimization guide** (hardware acceleration, memory profiling, production benchmarks), load `references\u002Fperformance-optimization.md`.\n\n---\n\n## Accessibility\n\n**Respect `prefers-reduced-motion`**:\n```tsx\nimport { MotionConfig } from \"motion\u002Freact\"\n\u003CMotionConfig reducedMotion=\"user\">\n  \u003CApp \u002F>\n\u003C\u002FMotionConfig>\n```\n\n**Keyboard Support**: Use `whileFocus` for keyboard-triggered animations.\n```tsx\n\u003Cmotion.button whileFocus={{ scale: 1.1 }} tabIndex={0}>\n  Keyboard accessible\n\u003C\u002Fmotion.button>\n```\n\n**For complete accessibility guide** (ARIA patterns, screen readers, AnimatePresence workaround, testing), load `references\u002Faccessibility-guide.md`.\n\n---\n\n## Common Patterns\n\n**Modal Dialog** (AnimatePresence + backdrop):\n```tsx\n\u003CAnimatePresence>\n  {isOpen && (\n    \u003Cmotion.dialog exit={{ opacity: 0 }}>Content\u003C\u002Fmotion.dialog>\n  )}\n\u003C\u002FAnimatePresence>\n```\n\n**Accordion** (height animation):\n```tsx\n\u003Cmotion.div animate={{ height: isOpen ? \"auto\" : 0 }}>\n  Content\n\u003C\u002Fmotion.div>\n```\n\n**For 15+ production patterns** (carousel, tabs, scroll reveal, parallax, notifications), load `references\u002Fcommon-patterns.md`.\n\n---\n\n## Known Issues & Solutions\n\n### Issue 1: AnimatePresence Exit Not Working (MOST COMMON)\n\n**Symptom**: Components disappear instantly without exit animation.\n\n**Solution**: AnimatePresence must stay mounted, wrap the conditional (not be wrapped by it):\n```tsx\n\u002F\u002F ❌ Wrong\n{isVisible && \u003CAnimatePresence>\u003Cmotion.div>Content\u003C\u002Fmotion.div>\u003C\u002FAnimatePresence>}\n\n\u002F\u002F ✅ Correct\n\u003CAnimatePresence>\n  {isVisible && \u003Cmotion.div key=\"unique\">Content\u003C\u002Fmotion.div>}\n\u003C\u002FAnimatePresence>\n```\n\n### Issue 2: Next.js \"use client\" Missing\n\n**Symptom**: Build fails with \"motion is not defined\" or SSR errors.\n\n**Solution**: Add `\"use client\"` directive:\n```tsx\n\"use client\"\nimport { motion } from \"motion\u002Freact\"\n```\n\n### Issue 3: Tailwind Transitions Conflict\n\n**Symptom**: Animations stutter or don't work.\n\n**Solution**: Remove `transition-*` classes (Motion overrides CSS transitions):\n```tsx\n\u002F\u002F ❌ Wrong: \u003Cmotion.div className=\"transition-all\" animate={{ x: 100 }} \u002F>\n\u002F\u002F ✅ Correct: \u003Cmotion.div animate={{ x: 100 }} \u002F>\n```\n\n### Issue 4: Cloudflare Workers Build Errors\n\n**Symptom**: Wrangler build fails when using `motion` package.\n\n**Solution**: Use `framer-motion` v12.23.24 instead (GitHub issue #2918):\n```bash\nbun add framer-motion  # Same API, works with Workers\n```\n\n### Issue 5: Large List Performance\n\n**Symptom**: 50-100+ animated items cause severe slowdown.\n\n**Solution**: Use virtualization (`react-window`, `react-virtuoso`).\n\n**For 5+ additional issues** (layoutScroll, layoutRoot, AnimatePresence + layoutId), load `references\u002Fnextjs-integration.md` or `references\u002Fcore-concepts-deep-dive.md`.\n\n---\n\n## When to Load References\n\nClaude should load these references based on user needs:\n\n### Load `references\u002Fcore-concepts-deep-dive.md` when:\n- User asks about variants orchestration (staggerChildren, delayChildren, dynamic variants)\n- User needs advanced layout animations (layoutId shared transitions, LayoutGroup)\n- User wants scroll-linked animations (useScroll offsets, useTransform easing, parallax layers)\n- User needs complex drag patterns (momentum, elastic, event handlers, constraints)\n- User asks about spring physics tuning (mass parameter, visualizer, custom presets)\n\n### Load `references\u002Fperformance-optimization.md` when:\n- User wants to reduce bundle size below 4.6 KB (useAnimate mini, LazyMotion comparison)\n- User mentions \"app is slow\", \"janky animations\", \"laggy\", or \"performance issues\"\n- User has 50+ animated items in a list (virtualization needed)\n- User needs memory profiling or production benchmarks\n\n### Load `references\u002Fnextjs-integration.md` when:\n- User is building with Next.js (App Router or Pages Router)\n- User encounters SSR errors, \"use client\" errors, or hydration issues\n- User asks about route transitions or page navigation animations\n- User needs Next.js-specific workarounds (Reorder component, AnimatePresence soft navigation)\n\n### Load `references\u002Faccessibility-guide.md` when:\n- User asks about \"prefers-reduced-motion\" or accessibility compliance\n- User needs ARIA integration patterns (roles, labels, announcements)\n- User wants screen reader compatibility\n- User mentions accessibility audits or WCAG compliance\n- User asks about AnimatePresence reducedMotion workaround (known issue #1567)\n\n### Load `references\u002Fcommon-patterns.md` when:\n- User asks for specific UI patterns (modal, accordion, carousel, tabs, dropdown, toast, etc.)\n- User needs copy-paste code examples for production use\n- User wants to see 15+ real-world animation patterns\n\n### Load `references\u002Fmotion-vs-auto-animate.md` when:\n- User is deciding between Motion and AutoAnimate libraries\n- User mentions \"simple list animations\" or \"bundle size concerns\"\n- User asks \"which animation library should I use?\" or \"is Motion overkill?\"\n- User needs feature comparison or decision matrix\n\n---\n\n## Templates\n\nThis skill includes 5 production-ready templates in the `templates\u002F` directory:\n\n1. **motion-vite-basic.tsx** - Basic Vite + React + TypeScript setup with common animations\n2. **motion-nextjs-client.tsx** - Next.js App Router pattern with client component wrapper\n3. **scroll-parallax.tsx** - Scroll animations, parallax, and viewport triggers\n4. **ui-components.tsx** - Modal, accordion, carousel, tabs with shared underline\n5. **layout-transitions.tsx** - FLIP layout animations and shared element transitions\n\nCopy templates into your project and customize as needed.\n\n---\n\n## References\n\nThis skill includes 4 comprehensive reference guides:\n\n- **motion-vs-auto-animate.md** - Decision guide: when to use Motion vs AutoAnimate\n- **performance-optimization.md** - Bundle size, LazyMotion, virtualization, hardware acceleration\n- **nextjs-integration.md** - App Router vs Pages Router, \"use client\", known issues\n- **common-patterns.md** - Top 15 patterns with full code examples\n\nSee `references\u002F` directory for detailed guides.\n\n---\n\n## Scripts\n\nThis skill includes 2 automation scripts:\n\n- **init-motion.sh** - One-command setup with framework detection (Vite, Next.js, Cloudflare Workers)\n- **optimize-bundle.sh** - Convert existing Motion code to LazyMotion for smaller bundle\n\nSee `scripts\u002F` directory for automation tools.\n\n---\n\n## Official Documentation\n\n- **Official Site**: https:\u002F\u002Fmotion.dev\n- **GitHub**: https:\u002F\u002Fgithub.com\u002Fmotiondivision\u002Fmotion (30,200+ stars)\n- **Examples**: https:\u002F\u002Fmotion.dev\u002Fexamples (300+ examples)\n\n**Related Skills**: `auto-animate` (simple lists), `tailwind-v4-shadcn` (styling), `nextjs` (App Router), `cloudflare-worker-base`\n\n**Motion vs AutoAnimate**: Load `references\u002Fmotion-vs-auto-animate.md` for detailed comparison.\n\n---\n\n## Token Efficiency Metrics\n\n**Token Savings**: ~83% (30k → 5k tokens) | **Error Prevention**: 100% (29+ errors) | **Time Savings**: ~85% (2-3 hrs → 20-30 min)\n\n---\n\n## Package Versions (Verified 2025-11-07)\n\n| Package | Version | Status |\n|---------|---------|--------|\n| motion | 12.23.24 | ✅ Latest stable |\n| framer-motion | 12.23.24 | ✅ Alternative for Cloudflare |\n| react | 19.2.0 | ✅ Latest stable |\n| vite | 6.0.0 | ✅ Latest stable |\n\n---\n\n## Contributing\n\nFound an issue or have a suggestion?\n- Open an issue: https:\u002F\u002Fgithub.com\u002Fsecondsky\u002Fclaude-skills\u002Fissues\n- See templates and references for detailed examples\n\n---\n\n**Production Tested**: ✅ React 19 + Next.js 15 + Vite 6 + Tailwind v4\n**Token Savings**: ~83%\n**Error Prevention**: 100% (29+ documented errors prevented)\n**Bundle Size**: 2.3 KB (mini) - 34 KB (full), optimizable to 4.6 KB with LazyMotion\n**Accessibility**: MotionConfig reducedMotion support\n**Ready to use!** Install with `.\u002Fscripts\u002Finstall-skill.sh motion`\n","# Motion Animation Library\n\n## Overview\n\nMotion (package: `motion`, formerly `framer-motion`) is the industry-standard React animation library used in production by thousands of applications. With 30,200+ GitHub stars and 300+ official examples, it provides a declarative API for creating sophisticated animations with minimal code.\n\n**Key Capabilities:**\n- **Gestures**: drag, hover, tap, pan, focus with cross-device support\n- **Scroll Animations**: viewport-triggered, scroll-linked, parallax effects\n- **Layout Animations**: FLIP technique for smooth layout changes, shared element transitions\n- **Spring Physics**: Natural, customizable motion with physics-based easing\n- **SVG**: Path morphing, line drawing, attribute animation\n- **Exit Animations**: AnimatePresence for unmounting transitions\n- **Performance**: Hardware-accelerated, ScrollTimeline API, bundle optimization (2.3 KB - 34 KB)\n\n**Production Tested**: React 19, Next.js 15, Vite 6, Tailwind v4\n\n---\n\n## When to Use This Skill\n\n### ✅ Use Motion When:\n\n**Complex Interactions**:\n- Drag-and-drop interfaces (sortable lists, kanban boards, sliders)\n- Hover states with scale\u002Frotation\u002Fcolor changes\n- Tap feedback with bounce\u002Fsqueeze effects\n- Pan gestures for mobile-friendly controls\n\n**Scroll-Based Animations**:\n- Hero sections with parallax layers\n- Scroll-triggered reveals (fade in as elements enter viewport)\n- Progress bars linked to scroll position\n- Sticky headers with scroll-dependent transforms\n\n**Layout Transitions**:\n- Shared element transitions between routes (card → detail page)\n- Expand\u002Fcollapse with automatic height animation\n- Grid\u002Flist view switching with smooth repositioning\n- Tab navigation with animated underline\n\n**Advanced Features**:\n- SVG line drawing animations\n- Path morphing between shapes\n- Spring physics for natural bounce\n- Orchestrated sequences (staggered reveals)\n- Modal dialogs with backdrop blur\n\n**Bundle Optimization**:\n- Need 2.3 KB animation library (useAnimate mini)\n- Want to reduce Motion from 34 KB to 4.6 KB (LazyMotion)\n\n### ❌ Don't Use Motion When:\n\n- **Simple list animations** (use `auto-animate` instead: 3.28 KB vs 34 KB)\n- **Static content** without interactions\n- **Cloudflare Workers** (use `framer-motion` v12.23.24 workaround - see Known Issues)\n- **3D animations** (use Three.js or React Three Fiber instead)\n\n---\n\n## Installation\n\n### Latest Stable Version\n\n```bash\nbun add motion  # preferred\n# or: npm install motion\n# or: yarn add motion\n```\n\n**Current Version**: 12.23.24 (verified 2025-11-07)\n\n**Alternative for Cloudflare Workers**:\n```bash\n# Use framer-motion if deploying to Cloudflare Workers\nbun add framer-motion\n# or: npm install framer-motion\n```\n\n### Package Information\n\n- **Bundle Size**:\n  - Full `motion` component: ~34 KB minified+gzipped\n  - `LazyMotion` + `m` component: ~4.6 KB\n  - `useAnimate` mini: 2.3 KB (smallest React animation library)\n  - `useAnimate` hybrid: 17 KB\n- **Dependencies**: React 18+ or React 19+\n- **TypeScript**: Native support included (no @types package needed)\n\n---\n\n## Core Concepts\n\n### 1. The `motion` Component\n\nTransform any HTML\u002FSVG element into an animatable component:\n\n```tsx\nimport { motion } from \"motion\u002Freact\"\n\n\u002F\u002F Basic animation\n\u003Cmotion.div\n  initial={{ opacity: 0, y: 20 }}\n  animate={{ opacity: 1, y: 0 }}\n  transition={{ duration: 0.5 }}\n>\n  Content fades in and slides up\n\u003C\u002Fmotion.div>\n\n\u002F\u002F Gesture controls\n\u003Cmotion.button\n  whileHover={{ scale: 1.1 }}\n  whileTap={{ scale: 0.95 }}\n>\n  Click me\n\u003C\u002Fmotion.button>\n```\n\n**Props:**\n- `initial`: Starting state (object or variant name)\n- `animate`: Target state (object or variant name)\n- `exit`: Unmounting state (requires AnimatePresence)\n- `transition`: Timing\u002Feasing configuration\n- `whileHover`, `whileTap`, `whileFocus`: Gesture states\n- `whileInView`: Viewport-triggered animation\n- `drag`: Enable dragging (\"x\", \"y\", or true for both)\n- `layout`: Enable FLIP layout animations\n\n### 2. Variants (Animation Orchestration)\n\nNamed animation states that propagate through component tree:\n\n```tsx\nconst variants = {\n  hidden: { opacity: 0, y: 20 },\n  visible: { opacity: 1, y: 0 }\n}\n\n\u003Cmotion.div variants={variants} initial=\"hidden\" animate=\"visible\">\n  Content\n\u003C\u002Fmotion.div>\n```\n\n**For advanced orchestration** (staggerChildren, delayChildren, dynamic variants), load `references\u002Fcore-concepts-deep-dive.md`.\n\n### 3. AnimatePresence (Exit Animations)\n\nEnables animations when components unmount:\n\n```tsx\nimport { AnimatePresence } from \"motion\u002Freact\"\n\n\u003CAnimatePresence>\n  {isVisible && (\n    \u003Cmotion.div\n      key=\"modal\"\n      initial={{ opacity: 0 }}\n      animate={{ opacity: 1 }}\n      exit={{ opacity: 0 }}\n    >\n      Modal content\n    \u003C\u002Fmotion.div>\n  )}\n\u003C\u002FAnimatePresence>\n```\n\n**Critical Rules:**\n- AnimatePresence **must stay mounted** (don't wrap in conditional)\n- All children **must have unique `key` props**\n- AnimatePresence **wraps the conditional**, not the other way around\n\n**Common Mistake** (exit animation won't play):\n```tsx\n\u002F\u002F ❌ Wrong - AnimatePresence unmounts with condition\n{isVisible && (\n  \u003CAnimatePresence>\n    \u003Cmotion.div>Content\u003C\u002Fmotion.div>\n  \u003C\u002FAnimatePresence>\n)}\n\n\u002F\u002F ✅ Correct - AnimatePresence stays mounted\n\u003CAnimatePresence>\n  {isVisible && \u003Cmotion.div key=\"unique\">Content\u003C\u002Fmotion.div>}\n\u003C\u002FAnimatePresence>\n```\n\n### 4. Layout Animations (FLIP)\n\nAutomatically animate layout changes:\n\n```tsx\n\u003Cmotion.div layout>\n  {isExpanded ? \u003CFullContent \u002F> : \u003CSummary \u002F>}\n\u003C\u002Fmotion.div>\n```\n\n**Special props**: `layoutId` (shared element transitions), `layoutScroll` (scrollable containers), `layoutRoot` (fixed positioning).\n\n**For advanced patterns** (LayoutGroup, layoutId orchestration), load `references\u002Fcore-concepts-deep-dive.md`.\n\n### 5. Scroll Animations\n\n```tsx\n\u002F\u002F Viewport-triggered\n\u003Cmotion.div\n  initial={{ opacity: 0, y: 50 }}\n  whileInView={{ opacity: 1, y: 0 }}\n  viewport={{ once: true }}\n>\n  Fades in when entering viewport\n\u003C\u002Fmotion.div>\n\n\u002F\u002F Scroll-linked (parallax)\nimport { useScroll, useTransform } from \"motion\u002Freact\"\nconst { scrollYProgress } = useScroll()\nconst y = useTransform(scrollYProgress, [0, 1], [0, -300])\n\u003Cmotion.div style={{ y }}>Parallax effect\u003C\u002Fmotion.div>\n```\n\n**For advanced scroll patterns** (useScroll offsets, useTransform easing, parallax layers), load `references\u002Fcore-concepts-deep-dive.md`.\n\n### 6. Gestures\n\n```tsx\n\u003Cmotion.div drag=\"x\" dragConstraints={{ left: -200, right: 200 }}>\n  Drag me\n\u003C\u002Fmotion.div>\n```\n\n**Available**: `whileHover`, `whileTap`, `whileFocus`, `whileDrag`, `whileInView`, `drag`.\n\n**For advanced drag controls** (momentum, elastic, event handlers), load `references\u002Fcore-concepts-deep-dive.md`.\n\n### 7. Spring Physics\n\n```tsx\n\u003Cmotion.div\n  animate={{ x: 100 }}\n  transition={{ type: \"spring\", stiffness: 100, damping: 10 }}\n\u002F>\n```\n\n**Common presets**: Bouncy `{ stiffness: 300, damping: 10 }`, Smooth `{ stiffness: 100, damping: 20 }`.\n\n**For spring tuning** (mass, visualizer, presets), load `references\u002Fcore-concepts-deep-dive.md`.\n\n---\n\n## Integration Guides\n\n**Vite**: `bun add motion` → `import { motion } from \"motion\u002Freact\"` (works out of the box)\n\n**Next.js App Router**: Requires `\"use client\"` directive or client component wrapper\n```tsx\n\"use client\"\nimport { motion } from \"motion\u002Freact\"\n```\n\n**Tailwind**: ⚠️ Remove `transition-*` classes (causes conflicts with Motion animations)\n\n**Cloudflare Workers**: Use `framer-motion` v12.23.24 instead (Motion has Wrangler build issues)\n\n**For complete integration guides** (Next.js patterns, SSR, framework-specific issues), load `references\u002Fnextjs-integration.md`.\n\n---\n\n## Performance Optimization\n\n**Bundle Size**: Use LazyMotion (34 KB → 4.6 KB):\n```tsx\nimport { LazyMotion, domAnimation, m } from \"motion\u002Freact\"\n\u003CLazyMotion features={domAnimation}>\n  \u003Cm.div>Only 4.6 KB!\u003C\u002Fm.div>\n\u003C\u002FLazyMotion>\n```\n\n**Large Lists**: Use virtualization (`react-window`, `react-virtuoso`) for 50+ animated items.\n\n**For complete optimization guide** (hardware acceleration, memory profiling, production benchmarks), load `references\u002Fperformance-optimization.md`.\n\n---\n\n## Accessibility\n\n**Respect `prefers-reduced-motion`**:\n```tsx\nimport { MotionConfig } from \"motion\u002Freact\"\n\u003CMotionConfig reducedMotion=\"user\">\n  \u003CApp \u002F>\n\u003C\u002FMotionConfig>\n```\n\n**Keyboard Support**: Use `whileFocus` for keyboard-triggered animations.\n```tsx\n\u003Cmotion.button whileFocus={{ scale: 1.1 }} tabIndex={0}>\n  Keyboard accessible\n\u003C\u002Fmotion.button>\n```\n\n**For complete accessibility guide** (ARIA patterns, screen readers, AnimatePresence workaround, testing), load `references\u002Faccessibility-guide.md`.\n\n---\n\n## Common Patterns\n\n**Modal Dialog** (AnimatePresence + backdrop):\n```tsx\n\u003CAnimatePresence>\n  {isOpen && (\n    \u003Cmotion.dialog exit={{ opacity: 0 }}>Content\u003C\u002Fmotion.dialog>\n  )}\n\u003C\u002FAnimatePresence>\n```\n\n**Accordion** (height animation):\n```tsx\n\u003Cmotion.div animate={{ height: isOpen ? \"auto\" : 0 }}>\n  Content\n\u003C\u002Fmotion.div>\n```\n\n**For 15+ production patterns** (carousel, tabs, scroll reveal, parallax, notifications), load `references\u002Fcommon-patterns.md`.\n\n---\n\n## Known Issues & Solutions\n\n### Issue 1: AnimatePresence Exit Not Working (MOST COMMON)\n\n**Symptom**: Components disappear instantly without exit animation.\n\n**Solution**: AnimatePresence must stay mounted, wrap the conditional (not be wrapped by it):\n```tsx\n\u002F\u002F ❌ Wrong\n{isVisible && \u003CAnimatePresence>\u003Cmotion.div>Content\u003C\u002Fmotion.div>\u003C\u002FAnimatePresence>}\n\n\u002F\u002F ✅ Correct\n\u003CAnimatePresence>\n  {isVisible && \u003Cmotion.div key=\"unique\">Content\u003C\u002Fmotion.div>}\n\u003C\u002FAnimatePresence>\n```\n\n### Issue 2: Next.js \"use client\" Missing\n\n**Symptom**: Build fails with \"motion is not defined\" or SSR errors.\n\n**Solution**: Add `\"use client\"` directive:\n```tsx\n\"use client\"\nimport { motion } from \"motion\u002Freact\"\n```\n\n### Issue 3: Tailwind Transitions Conflict\n\n**Symptom**: Animations stutter or don't work.\n\n**Solution**: Remove `transition-*` classes (Motion overrides CSS transitions):\n```tsx\n\u002F\u002F ❌ Wrong: \u003Cmotion.div className=\"transition-all\" animate={{ x: 100 }} \u002F>\n\u002F\u002F ✅ Correct: \u003Cmotion.div animate={{ x: 100 }} \u002F>\n```\n\n### Issue 4: Cloudflare Workers Build Errors\n\n**Symptom**: Wrangler build fails when using `motion` package.\n\n**Solution**: Use `framer-motion` v12.23.24 instead (GitHub issue #2918):\n```bash\nbun add framer-motion  # Same API, works with Workers\n```\n\n### Issue 5: Large List Performance\n\n**Symptom**: 50-100+ animated items cause severe slowdown.\n\n**Solution**: Use virtualization (`react-window`, `react-virtuoso`).\n\n**For 5+ additional issues** (layoutScroll, layoutRoot, AnimatePresence + layoutId), load `references\u002Fnextjs-integration.md` or `references\u002Fcore-concepts-deep-dive.md`.\n\n---\n\n## When to Load References\n\nClaude should load these references based on user needs:\n\n### Load `references\u002Fcore-concepts-deep-dive.md` when:\n- User asks about variants orchestration (staggerChildren, delayChildren, dynamic variants)\n- User needs advanced layout animations (layoutId shared transitions, LayoutGroup)\n- User wants scroll-linked animations (useScroll offsets, useTransform easing, parallax layers)\n- User needs complex drag patterns (momentum, elastic, event handlers, constraints)\n- User asks about spring physics tuning (mass parameter, visualizer, custom presets)\n\n### Load `references\u002Fperformance-optimization.md` when:\n- User wants to reduce bundle size below 4.6 KB (useAnimate mini, LazyMotion comparison)\n- User mentions \"app is slow\", \"janky animations\", \"laggy\", or \"performance issues\"\n- User has 50+ animated items in a list (virtualization needed)\n- User needs memory profiling or production benchmarks\n\n### Load `references\u002Fnextjs-integration.md` when:\n- User is building with Next.js (App Router or Pages Router)\n- User encounters SSR errors, \"use client\" errors, or hydration issues\n- User asks about route transitions or page navigation animations\n- User needs Next.js-specific workarounds (Reorder component, AnimatePresence soft navigation)\n\n### Load `references\u002Faccessibility-guide.md` when:\n- User asks about \"prefers-reduced-motion\" or accessibility compliance\n- User needs ARIA integration patterns (roles, labels, announcements)\n- User wants screen reader compatibility\n- User mentions accessibility audits or WCAG compliance\n- User asks about AnimatePresence reducedMotion workaround (known issue #1567)\n\n### Load `references\u002Fcommon-patterns.md` when:\n- User asks for specific UI patterns (modal, accordion, carousel, tabs, dropdown, toast, etc.)\n- User needs copy-paste code examples for production use\n- User wants to see 15+ real-world animation patterns\n\n### Load `references\u002Fmotion-vs-auto-animate.md` when:\n- User is deciding between Motion and AutoAnimate libraries\n- User mentions \"simple list animations\" or \"bundle size concerns\"\n- User asks \"which animation library should I use?\" or \"is Motion overkill?\"\n- User needs feature comparison or decision matrix\n\n---\n\n## Templates\n\nThis skill includes 5 production-ready templates in the `templates\u002F` directory:\n\n1. **motion-vite-basic.tsx** - Basic Vite + React + TypeScript setup with common animations\n2. **motion-nextjs-client.tsx** - Next.js App Router pattern with client component wrapper\n3. **scroll-parallax.tsx** - Scroll animations, parallax, and viewport triggers\n4. **ui-components.tsx** - Modal, accordion, carousel, tabs with shared underline\n5. **layout-transitions.tsx** - FLIP layout animations and shared element transitions\n\nCopy templates into your project and customize as needed.\n\n---\n\n## References\n\nThis skill includes 4 comprehensive reference guides:\n\n- **motion-vs-auto-animate.md** - Decision guide: when to use Motion vs AutoAnimate\n- **performance-optimization.md** - Bundle size, LazyMotion, virtualization, hardware acceleration\n- **nextjs-integration.md** - App Router vs Pages Router, \"use client\", known issues\n- **common-patterns.md** - Top 15 patterns with full code examples\n\nSee `references\u002F` directory for detailed guides.\n\n---\n\n## Scripts\n\nThis skill includes 2 automation scripts:\n\n- **init-motion.sh** - One-command setup with framework detection (Vite, Next.js, Cloudflare Workers)\n- **optimize-bundle.sh** - Convert existing Motion code to LazyMotion for smaller bundle\n\nSee `scripts\u002F` directory for automation tools.\n\n---\n\n## Official Documentation\n\n- **Official Site**: https:\u002F\u002Fmotion.dev\n- **GitHub**: https:\u002F\u002Fgithub.com\u002Fmotiondivision\u002Fmotion (30,200+ stars)\n- **Examples**: https:\u002F\u002Fmotion.dev\u002Fexamples (300+ examples)\n\n**Related Skills**: `auto-animate` (simple lists), `tailwind-v4-shadcn` (styling), `nextjs` (App Router), `cloudflare-worker-base`\n\n**Motion vs AutoAnimate**: Load `references\u002Fmotion-vs-auto-animate.md` for detailed comparison.\n\n---\n\n## Token Efficiency Metrics\n\n**Token Savings**: ~83% (30k → 5k tokens) | **Error Prevention**: 100% (29+ errors) | **Time Savings**: ~85% (2-3 hrs → 20-30 min)\n\n---\n\n## Package Versions (Verified 2025-11-07)\n\n| Package | Version | Status |\n|---------|---------|--------|\n| motion | 12.23.24 | ✅ Latest stable |\n| framer-motion | 12.23.24 | ✅ Alternative for Cloudflare |\n| react | 19.2.0 | ✅ Latest stable |\n| vite | 6.0.0 | ✅ Latest stable |\n\n---\n\n## Contributing\n\nFound an issue or have a suggestion?\n- Open an issue: https:\u002F\u002Fgithub.com\u002Fsecondsky\u002Fclaude-skills\u002Fissues\n- See templates and references for detailed examples\n\n---\n\n**Production Tested**: ✅ React 19 + Next.js 15 + Vite 6 + Tailwind v4\n**Token Savings**: ~83%\n**Error Prevention**: 100% (29+ documented errors prevented)\n**Bundle Size**: 2.3 KB (mini) - 34 KB (full), optimizable to 4.6 KB with LazyMotion\n**Accessibility**: MotionConfig reducedMotion support\n**Ready to use!** Install with `.\u002Fscripts\u002Finstall-skill.sh motion`\n",{"name":5,"license":14,"description":7},"main","9f54582c8b485462d402d7e70feaef34801746b9",".opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fmotion\u002Fskills\u002Fmotion","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web","https:\u002F\u002Fgithub.com\u002Faibizmod","2026-09-24 00:48:11",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add aibizmod\u002Faibizmod-service-web --skill motion",{"tool":35,"command":36},"bunx","bunx skills add aibizmod\u002Faibizmod-service-web --skill motion",{"tool":38,"command":39},"pnpm","pnpm dlx skills add aibizmod\u002Faibizmod-service-web --skill motion","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fmotion\u002Fskills\u002Fmotion\u002FSKILL.md",true,[43,49,53,57,61,65,69,75,79,85,89,93,97],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"references\u002Faccessibility-guide.md","REFERENCE","参考文档",16188,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fmotion\u002Fskills\u002Fmotion\u002Freferences\u002Faccessibility-guide.md",{"path":50,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fcommon-patterns.md",4064,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fmotion\u002Fskills\u002Fmotion\u002Freferences\u002Fcommon-patterns.md",{"path":54,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fcore-concepts-deep-dive.md",15175,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fmotion\u002Fskills\u002Fmotion\u002Freferences\u002Fcore-concepts-deep-dive.md",{"path":58,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fmotion-vs-auto-animate.md",16378,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fmotion\u002Fskills\u002Fmotion\u002Freferences\u002Fmotion-vs-auto-animate.md",{"path":62,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fnextjs-integration.md",15723,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fmotion\u002Fskills\u002Fmotion\u002Freferences\u002Fnextjs-integration.md",{"path":66,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fperformance-optimization.md",18996,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fmotion\u002Fskills\u002Fmotion\u002Freferences\u002Fperformance-optimization.md",{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002Finit-motion.sh","SCRIPT","脚本",5814,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fmotion\u002Fskills\u002Fmotion\u002Fscripts\u002Finit-motion.sh",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"scripts\u002Foptimize-bundle.sh",4891,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fmotion\u002Fskills\u002Fmotion\u002Fscripts\u002Foptimize-bundle.sh",{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"templates\u002Flayout-transitions.tsx","OTHER","其他",18054,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fmotion\u002Fskills\u002Fmotion\u002Ftemplates\u002Flayout-transitions.tsx",{"path":86,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":87,"sourceHtmlUrl":88},"templates\u002Fmotion-nextjs-client.tsx",12873,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fmotion\u002Fskills\u002Fmotion\u002Ftemplates\u002Fmotion-nextjs-client.tsx",{"path":90,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":91,"sourceHtmlUrl":92},"templates\u002Fmotion-vite-basic.tsx",9278,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fmotion\u002Fskills\u002Fmotion\u002Ftemplates\u002Fmotion-vite-basic.tsx",{"path":94,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":95,"sourceHtmlUrl":96},"templates\u002Fscroll-parallax.tsx",14901,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fmotion\u002Fskills\u002Fmotion\u002Ftemplates\u002Fscroll-parallax.tsx",{"path":98,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":99,"sourceHtmlUrl":100},"templates\u002Fui-components.tsx",20075,"https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fmotion\u002Fskills\u002Fmotion\u002Ftemplates\u002Fui-components.tsx",[102,109,116,123,130,137],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":18},"01M7846EAPZWCQ8C6G3AAMMR57","{TODO=lowercase-hyphen-case-name}","[TODO: Write comprehensive description in third-person. Start with \"This skill provides...\" or \"This skill should be used when...\"]\n\n[TODO: Add \"Use when\" scenarios - specific situations where Claude should use this skill]\n\n[TODO: Add keywords - technologies, use cases, error messages that should trigger this skill]","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Ftemplates\u002Fskill-skeleton\u002Fskills\u002Fskill-name\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":18},"01M7846A0WGDKJTDPD5QMHQVFV","zustand-state-management","Zustand state management for React with TypeScript. Use for global state, Redux\u002FContext API migration, localStorage persistence, slices pattern, devtools, Next.js SSR, or encountering hydration errors, TypeScript inference issues, persist middleware problems, infinite render loops.","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fzustand-state-management\u002Fskills\u002Fzustand-state-management\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":18},"01M78463GGSP9B3JSF146B2MG0","zod","TypeScript-first schema validation and type inference. Use for validating API requests\u002Fresponses, form data, env vars, configs, defining type-safe schemas with runtime validation, transforming data, generating JSON Schema for OpenAPI\u002FAI, or encountering missing validation errors, type inference issues, validation error handling problems. Zero dependencies (2kb gzipped).","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fzod\u002Fskills\u002Fzod\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":18},"01M7845ZX17SVNNY7EDGPJHSBT","xss-prevention","XSS attack prevention with input sanitization, output encoding, Content Security Policy. Use for user-generated content, rich text editors, web application security, or encountering stored XSS, reflected XSS, DOM manipulation, script injection errors.","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fxss-prevention\u002Fskills\u002Fxss-prevention\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":18},"01M7845ST1H37YHSXWWQ9N0V0S","wordpress-plugin-core","WordPress plugin development with hooks, security, REST API, custom post types. Use for plugin creation, $wpdb queries, Settings API, or encountering SQL injection, XSS, CSRF, nonce errors.","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002FSKILL.md",[],[],{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":18},"01M7845PTWD5HWSTGP35Q8TFNY","woocommerce-dev-cycle","Run tests, linting, and quality checks for WooCommerce development. Use when running tests, fixing code style, or following the development workflow in WooCommerce projects.","https:\u002F\u002Fgithub.com\u002Faibizmod\u002Faibizmod-service-web\u002Fblob\u002Fmain\u002F.opencode\u002Fskill\u002Fclaude-skills\u002Fplugins\u002Fwoocommerce-dev-cycle\u002Fskills\u002Fwoocommerce-dev-cycle\u002FSKILL.md",[],[]]