@luci-dev/skills 0.0.0-stage → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (389) hide show
  1. package/dist/benchmark.d.ts +48 -0
  2. package/dist/benchmark.d.ts.map +1 -0
  3. package/dist/benchmark.js +84 -0
  4. package/dist/benchmark.js.map +1 -0
  5. package/dist/discovery.d.ts +105 -0
  6. package/dist/discovery.d.ts.map +1 -0
  7. package/dist/discovery.js +271 -0
  8. package/dist/discovery.js.map +1 -0
  9. package/dist/drafts.d.ts +20 -0
  10. package/dist/drafts.d.ts.map +1 -0
  11. package/dist/drafts.js +57 -0
  12. package/dist/drafts.js.map +1 -0
  13. package/dist/github.d.ts +49 -0
  14. package/dist/github.d.ts.map +1 -0
  15. package/dist/github.js +93 -0
  16. package/dist/github.js.map +1 -0
  17. package/dist/import.d.ts +80 -0
  18. package/dist/import.d.ts.map +1 -0
  19. package/dist/import.js +286 -0
  20. package/dist/import.js.map +1 -0
  21. package/dist/index.d.ts +17 -0
  22. package/dist/index.d.ts.map +1 -0
  23. package/dist/index.js +17 -0
  24. package/dist/index.js.map +1 -0
  25. package/dist/licenses.d.ts +30 -0
  26. package/dist/licenses.d.ts.map +1 -0
  27. package/dist/licenses.js +116 -0
  28. package/dist/licenses.js.map +1 -0
  29. package/dist/linter.d.ts +35 -0
  30. package/dist/linter.d.ts.map +1 -0
  31. package/dist/linter.js +262 -0
  32. package/dist/linter.js.map +1 -0
  33. package/dist/lss.d.ts +74 -0
  34. package/dist/lss.d.ts.map +1 -0
  35. package/dist/lss.js +273 -0
  36. package/dist/lss.js.map +1 -0
  37. package/dist/orchestrator.d.ts +164 -0
  38. package/dist/orchestrator.d.ts.map +1 -0
  39. package/dist/orchestrator.js +370 -0
  40. package/dist/orchestrator.js.map +1 -0
  41. package/dist/packs.d.ts +50 -0
  42. package/dist/packs.d.ts.map +1 -0
  43. package/dist/packs.js +166 -0
  44. package/dist/packs.js.map +1 -0
  45. package/dist/preferences.d.ts +18 -0
  46. package/dist/preferences.d.ts.map +1 -0
  47. package/dist/preferences.js +57 -0
  48. package/dist/preferences.js.map +1 -0
  49. package/dist/project.d.ts +45 -0
  50. package/dist/project.d.ts.map +1 -0
  51. package/dist/project.js +183 -0
  52. package/dist/project.js.map +1 -0
  53. package/dist/rankability.d.ts +51 -0
  54. package/dist/rankability.d.ts.map +1 -0
  55. package/dist/rankability.js +217 -0
  56. package/dist/rankability.js.map +1 -0
  57. package/dist/registry.d.ts +82 -0
  58. package/dist/registry.d.ts.map +1 -0
  59. package/dist/registry.js +300 -0
  60. package/dist/registry.js.map +1 -0
  61. package/dist/trust.d.ts +13 -0
  62. package/dist/trust.d.ts.map +1 -0
  63. package/dist/trust.js +41 -0
  64. package/dist/trust.js.map +1 -0
  65. package/dist/types.d.ts +44 -0
  66. package/dist/types.d.ts.map +1 -0
  67. package/dist/types.js +2 -0
  68. package/dist/types.js.map +1 -0
  69. package/library/3d/threejs/LICENSE.txt +21 -0
  70. package/library/3d/threejs/NOTICE.md +7 -0
  71. package/library/3d/threejs/SKILL.md +102 -0
  72. package/library/3d/threejs/luci.json +39 -0
  73. package/library/accessibility/accessibility-baseline/SKILL.md +51 -0
  74. package/library/accessibility/accessibility-baseline/luci.json +33 -0
  75. package/library/accessibility/fixing-accessibility/NOTICE.md +6 -0
  76. package/library/accessibility/fixing-accessibility/SKILL.md +141 -0
  77. package/library/accessibility/fixing-accessibility/luci.json +36 -0
  78. package/library/animation-motion/animation-systems/LICENSE.txt +21 -0
  79. package/library/animation-motion/animation-systems/NOTICE.md +7 -0
  80. package/library/animation-motion/animation-systems/SKILL.md +192 -0
  81. package/library/animation-motion/animation-systems/luci.json +32 -0
  82. package/library/animation-motion/animejs/SKILL.md +64 -0
  83. package/library/animation-motion/animejs/luci.json +12 -0
  84. package/library/animation-motion/motion-dev/SKILL.md +69 -0
  85. package/library/animation-motion/motion-dev/luci.json +13 -0
  86. package/library/animation-motion/react-view-transitions/AGENTS.md +1380 -0
  87. package/library/animation-motion/react-view-transitions/NOTICE.md +6 -0
  88. package/library/animation-motion/react-view-transitions/README.md +44 -0
  89. package/library/animation-motion/react-view-transitions/SKILL.md +334 -0
  90. package/library/animation-motion/react-view-transitions/luci.json +40 -0
  91. package/library/animation-motion/react-view-transitions/metadata.json +12 -0
  92. package/library/animation-motion/react-view-transitions/references/css-recipes.md +312 -0
  93. package/library/animation-motion/react-view-transitions/references/implementation.md +170 -0
  94. package/library/animation-motion/react-view-transitions/references/nextjs.md +233 -0
  95. package/library/animation-motion/react-view-transitions/references/patterns.md +274 -0
  96. package/library/animation-motion/react-view-transitions/references/troubleshooting.md +47 -0
  97. package/library/code-quality/code-review/NOTICE.md +6 -0
  98. package/library/code-quality/code-review/SKILL.md +94 -0
  99. package/library/code-quality/code-review/agents/openai.yaml +3 -0
  100. package/library/code-quality/code-review/luci.json +33 -0
  101. package/library/components/company-logos/LICENSE.txt +21 -0
  102. package/library/components/company-logos/NOTICE.md +7 -0
  103. package/library/components/company-logos/SKILL.md +27 -0
  104. package/library/components/company-logos/luci.json +38 -0
  105. package/library/components/container-lines/LICENSE.txt +21 -0
  106. package/library/components/container-lines/NOTICE.md +7 -0
  107. package/library/components/container-lines/SKILL.md +124 -0
  108. package/library/components/container-lines/luci.json +48 -0
  109. package/library/design-systems/build-design-system/NOTICE.md +6 -0
  110. package/library/design-systems/build-design-system/SKILL.md +78 -0
  111. package/library/design-systems/build-design-system/luci.json +29 -0
  112. package/library/design-systems/build-design-system/references/components.md +46 -0
  113. package/library/design-systems/build-design-system/references/glossary.md +77 -0
  114. package/library/design-systems/build-design-system/references/taste.md +37 -0
  115. package/library/design-systems/build-design-system/references/tokens.md +59 -0
  116. package/library/design-systems/build-design-system/references/traps.md +128 -0
  117. package/library/design-systems/build-design-system/scripts/capture-guard.mjs +470 -0
  118. package/library/design-systems/build-design-system/scripts/capture.mjs +355 -0
  119. package/library/design-systems/build-design-system/scripts/check-system.mjs +1883 -0
  120. package/library/design-systems/build-design-system/scripts/find-chromium.mjs +137 -0
  121. package/library/design-systems/build-design-system/scripts/oklch.mjs +221 -0
  122. package/library/design-systems/build-design-system/scripts/pixdiff.mjs +186 -0
  123. package/library/design-systems/component-docs/NOTICE.md +6 -0
  124. package/library/design-systems/component-docs/SKILL.md +50 -0
  125. package/library/design-systems/component-docs/luci.json +30 -0
  126. package/library/design-systems/component-docs/references/doc-format.md +85 -0
  127. package/library/design-systems/create-design-md/NOTICE.md +6 -0
  128. package/library/design-systems/create-design-md/SKILL.md +259 -0
  129. package/library/design-systems/create-design-md/luci.json +38 -0
  130. package/library/design-systems/design-system-boss/NOTICE.md +6 -0
  131. package/library/design-systems/design-system-boss/SKILL.md +58 -0
  132. package/library/design-systems/design-system-boss/luci.json +29 -0
  133. package/library/design-systems/design-system-boss/playbooks/build.md +10 -0
  134. package/library/design-systems/design-system-boss/playbooks/component.md +9 -0
  135. package/library/design-systems/design-system-boss/playbooks/migrate.md +11 -0
  136. package/library/design-systems/design-system-boss/playbooks/review.md +9 -0
  137. package/library/design-systems/migrate-design-system/NOTICE.md +6 -0
  138. package/library/design-systems/migrate-design-system/SKILL.md +62 -0
  139. package/library/design-systems/migrate-design-system/luci.json +33 -0
  140. package/library/design-systems/migrate-design-system/references/correct.md +37 -0
  141. package/library/design-systems/migrate-design-system/references/lessons.md +69 -0
  142. package/library/design-systems/migrate-design-system/references/parity.md +44 -0
  143. package/library/design-systems/migrate-design-system/references/running-many-agents.md +52 -0
  144. package/library/design-systems/migrate-design-system/scripts/bodies-check.mjs +215 -0
  145. package/library/design-systems/migrate-design-system/scripts/land.mjs +433 -0
  146. package/library/design-systems/migrate-design-system/scripts/legacy.mjs +283 -0
  147. package/library/design-systems/migrate-design-system/scripts/parity.mjs +173 -0
  148. package/library/design-systems/token-mapping/NOTICE.md +6 -0
  149. package/library/design-systems/token-mapping/SKILL.md +46 -0
  150. package/library/design-systems/token-mapping/luci.json +25 -0
  151. package/library/design-systems/token-mapping/references/mapping-rules.md +54 -0
  152. package/library/design-systems/ui-review/NOTICE.md +6 -0
  153. package/library/design-systems/ui-review/SKILL.md +53 -0
  154. package/library/design-systems/ui-review/luci.json +29 -0
  155. package/library/design-systems/ui-review/references/criteria.md +49 -0
  156. package/library/frontend/composition-patterns/AGENTS.md +946 -0
  157. package/library/frontend/composition-patterns/NOTICE.md +6 -0
  158. package/library/frontend/composition-patterns/README.md +60 -0
  159. package/library/frontend/composition-patterns/SKILL.md +86 -0
  160. package/library/frontend/composition-patterns/luci.json +33 -0
  161. package/library/frontend/composition-patterns/metadata.json +11 -0
  162. package/library/frontend/composition-patterns/rules/_sections.md +29 -0
  163. package/library/frontend/composition-patterns/rules/_template.md +24 -0
  164. package/library/frontend/composition-patterns/rules/architecture-avoid-boolean-props.md +100 -0
  165. package/library/frontend/composition-patterns/rules/architecture-compound-components.md +112 -0
  166. package/library/frontend/composition-patterns/rules/patterns-children-over-render-props.md +87 -0
  167. package/library/frontend/composition-patterns/rules/patterns-explicit-variants.md +100 -0
  168. package/library/frontend/composition-patterns/rules/react19-no-forwardref.md +42 -0
  169. package/library/frontend/composition-patterns/rules/state-context-interface.md +191 -0
  170. package/library/frontend/composition-patterns/rules/state-decouple-implementation.md +113 -0
  171. package/library/frontend/composition-patterns/rules/state-lift-state.md +125 -0
  172. package/library/frontend/design-mobile-apps/NOTICE.md +6 -0
  173. package/library/frontend/design-mobile-apps/SKILL.md +121 -0
  174. package/library/frontend/design-mobile-apps/designing.md +56 -0
  175. package/library/frontend/design-mobile-apps/endpoints.md +362 -0
  176. package/library/frontend/design-mobile-apps/implementing.md +213 -0
  177. package/library/frontend/design-mobile-apps/luci.json +31 -0
  178. package/library/frontend/design-mobile-apps/styling/nativewind.md +57 -0
  179. package/library/frontend/design-mobile-apps/styling/stylesheet.md +28 -0
  180. package/library/frontend/design-mobile-apps/styling/uniwind.md +38 -0
  181. package/library/frontend/frontend-design/LICENSE.txt +202 -0
  182. package/library/frontend/frontend-design/NOTICE.md +6 -0
  183. package/library/frontend/frontend-design/SKILL.md +81 -0
  184. package/library/frontend/frontend-design/luci.json +43 -0
  185. package/library/frontend/react-native-skills/AGENTS.md +2897 -0
  186. package/library/frontend/react-native-skills/NOTICE.md +6 -0
  187. package/library/frontend/react-native-skills/README.md +165 -0
  188. package/library/frontend/react-native-skills/SKILL.md +119 -0
  189. package/library/frontend/react-native-skills/luci.json +33 -0
  190. package/library/frontend/react-native-skills/metadata.json +16 -0
  191. package/library/frontend/react-native-skills/rules/_sections.md +86 -0
  192. package/library/frontend/react-native-skills/rules/_template.md +28 -0
  193. package/library/frontend/react-native-skills/rules/animation-derived-value.md +53 -0
  194. package/library/frontend/react-native-skills/rules/animation-gesture-detector-press.md +95 -0
  195. package/library/frontend/react-native-skills/rules/animation-gpu-properties.md +65 -0
  196. package/library/frontend/react-native-skills/rules/design-system-compound-components.md +66 -0
  197. package/library/frontend/react-native-skills/rules/fonts-config-plugin.md +71 -0
  198. package/library/frontend/react-native-skills/rules/imports-design-system-folder.md +68 -0
  199. package/library/frontend/react-native-skills/rules/js-hoist-intl.md +61 -0
  200. package/library/frontend/react-native-skills/rules/list-performance-callbacks.md +44 -0
  201. package/library/frontend/react-native-skills/rules/list-performance-function-references.md +132 -0
  202. package/library/frontend/react-native-skills/rules/list-performance-images.md +53 -0
  203. package/library/frontend/react-native-skills/rules/list-performance-inline-objects.md +97 -0
  204. package/library/frontend/react-native-skills/rules/list-performance-item-expensive.md +94 -0
  205. package/library/frontend/react-native-skills/rules/list-performance-item-memo.md +82 -0
  206. package/library/frontend/react-native-skills/rules/list-performance-item-types.md +104 -0
  207. package/library/frontend/react-native-skills/rules/list-performance-virtualize.md +67 -0
  208. package/library/frontend/react-native-skills/rules/monorepo-native-deps-in-app.md +46 -0
  209. package/library/frontend/react-native-skills/rules/monorepo-single-dependency-versions.md +63 -0
  210. package/library/frontend/react-native-skills/rules/navigation-native-navigators.md +188 -0
  211. package/library/frontend/react-native-skills/rules/react-compiler-destructure-functions.md +50 -0
  212. package/library/frontend/react-native-skills/rules/react-compiler-reanimated-shared-values.md +48 -0
  213. package/library/frontend/react-native-skills/rules/react-state-dispatcher.md +91 -0
  214. package/library/frontend/react-native-skills/rules/react-state-fallback.md +56 -0
  215. package/library/frontend/react-native-skills/rules/react-state-minimize.md +65 -0
  216. package/library/frontend/react-native-skills/rules/rendering-no-falsy-and.md +74 -0
  217. package/library/frontend/react-native-skills/rules/rendering-text-in-text-component.md +36 -0
  218. package/library/frontend/react-native-skills/rules/scroll-position-no-state.md +82 -0
  219. package/library/frontend/react-native-skills/rules/state-ground-truth.md +80 -0
  220. package/library/frontend/react-native-skills/rules/ui-expo-image.md +66 -0
  221. package/library/frontend/react-native-skills/rules/ui-image-gallery.md +104 -0
  222. package/library/frontend/react-native-skills/rules/ui-measure-views.md +78 -0
  223. package/library/frontend/react-native-skills/rules/ui-menus.md +174 -0
  224. package/library/frontend/react-native-skills/rules/ui-native-modals.md +77 -0
  225. package/library/frontend/react-native-skills/rules/ui-pressable.md +61 -0
  226. package/library/frontend/react-native-skills/rules/ui-safe-area-scroll.md +65 -0
  227. package/library/frontend/react-native-skills/rules/ui-scrollview-content-inset.md +45 -0
  228. package/library/frontend/react-native-skills/rules/ui-styling.md +87 -0
  229. package/library/frontend/tailwindcss/LICENSE.txt +21 -0
  230. package/library/frontend/tailwindcss/NOTICE.md +7 -0
  231. package/library/frontend/tailwindcss/SKILL.md +83 -0
  232. package/library/frontend/tailwindcss/luci.json +39 -0
  233. package/library/frontend-frameworks/react-best-practices/NOTICE.md +6 -0
  234. package/library/frontend-frameworks/react-best-practices/SKILL.md +151 -0
  235. package/library/frontend-frameworks/react-best-practices/luci.json +39 -0
  236. package/library/general/algorithmic-art/LICENSE.txt +202 -0
  237. package/library/general/algorithmic-art/NOTICE.md +6 -0
  238. package/library/general/algorithmic-art/SKILL.md +409 -0
  239. package/library/general/algorithmic-art/luci.json +27 -0
  240. package/library/general/algorithmic-art/templates/generator_template.js +223 -0
  241. package/library/general/algorithmic-art/templates/viewer.html +599 -0
  242. package/library/general/canvas-design/LICENSE.txt +202 -0
  243. package/library/general/canvas-design/NOTICE.md +6 -0
  244. package/library/general/canvas-design/SKILL.md +134 -0
  245. package/library/general/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
  246. package/library/general/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
  247. package/library/general/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
  248. package/library/general/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
  249. package/library/general/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
  250. package/library/general/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
  251. package/library/general/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
  252. package/library/general/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
  253. package/library/general/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
  254. package/library/general/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
  255. package/library/general/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
  256. package/library/general/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
  257. package/library/general/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
  258. package/library/general/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
  259. package/library/general/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
  260. package/library/general/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
  261. package/library/general/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
  262. package/library/general/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
  263. package/library/general/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
  264. package/library/general/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
  265. package/library/general/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
  266. package/library/general/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
  267. package/library/general/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
  268. package/library/general/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
  269. package/library/general/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
  270. package/library/general/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
  271. package/library/general/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
  272. package/library/general/canvas-design/luci.json +29 -0
  273. package/library/index.json +2507 -0
  274. package/library/interaction/animation-on-scroll/LICENSE.txt +21 -0
  275. package/library/interaction/animation-on-scroll/NOTICE.md +7 -0
  276. package/library/interaction/animation-on-scroll/SKILL.md +115 -0
  277. package/library/interaction/animation-on-scroll/luci.json +38 -0
  278. package/library/micro-interactions/masked-reveal/LICENSE.txt +21 -0
  279. package/library/micro-interactions/masked-reveal/NOTICE.md +7 -0
  280. package/library/micro-interactions/masked-reveal/SKILL.md +187 -0
  281. package/library/micro-interactions/masked-reveal/luci.json +63 -0
  282. package/library/micro-interactions/micro-interaction/NOTICE.md +6 -0
  283. package/library/micro-interactions/micro-interaction/SKILL.md +177 -0
  284. package/library/micro-interactions/micro-interaction/luci.json +52 -0
  285. package/library/micro-interactions/micro-interaction/references/css-recipes.md +142 -0
  286. package/library/micro-interactions/micro-interaction/references/framer-motion-recipes.md +187 -0
  287. package/library/micro-interactions/micro-interaction/scripts/README.md +42 -0
  288. package/library/micro-interactions/micro-interaction/scripts/contact-sheet.sh +17 -0
  289. package/library/micro-interactions/micro-interaction/scripts/seek-shot.sh +21 -0
  290. package/library/performance/fixing-motion-performance/NOTICE.md +6 -0
  291. package/library/performance/fixing-motion-performance/SKILL.md +156 -0
  292. package/library/performance/fixing-motion-performance/luci.json +30 -0
  293. package/library/seo/fixing-metadata/NOTICE.md +6 -0
  294. package/library/seo/fixing-metadata/SKILL.md +111 -0
  295. package/library/seo/fixing-metadata/luci.json +36 -0
  296. package/library/shadcn-ui/migrate-radix-to-base/NOTICE.md +6 -0
  297. package/library/shadcn-ui/migrate-radix-to-base/SKILL.md +178 -0
  298. package/library/shadcn-ui/migrate-radix-to-base/class-mapping.md +62 -0
  299. package/library/shadcn-ui/migrate-radix-to-base/consumer-props.md +58 -0
  300. package/library/shadcn-ui/migrate-radix-to-base/disclosure.md +353 -0
  301. package/library/shadcn-ui/migrate-radix-to-base/display-misc.md +410 -0
  302. package/library/shadcn-ui/migrate-radix-to-base/form-controls.md +390 -0
  303. package/library/shadcn-ui/migrate-radix-to-base/luci.json +33 -0
  304. package/library/shadcn-ui/migrate-radix-to-base/menus.md +409 -0
  305. package/library/shadcn-ui/migrate-radix-to-base/overlays.md +459 -0
  306. package/library/shadcn-ui/migrate-radix-to-base/universal-patterns.md +286 -0
  307. package/library/shadcn-ui/migrate-radix-to-base/wrapper-shapes.md +110 -0
  308. package/library/shadcn-ui/shadcn/NOTICE.md +6 -0
  309. package/library/shadcn-ui/shadcn/SKILL.md +187 -0
  310. package/library/shadcn-ui/shadcn/agents/openai.yml +5 -0
  311. package/library/shadcn-ui/shadcn/assets/shadcn-small.png +0 -0
  312. package/library/shadcn-ui/shadcn/assets/shadcn.png +0 -0
  313. package/library/shadcn-ui/shadcn/assets/showcase/color-pair.tsx +126 -0
  314. package/library/shadcn-ui/shadcn/assets/showcase/preview-states.css +14 -0
  315. package/library/shadcn-ui/shadcn/assets/showcase/state-matrix.tsx +72 -0
  316. package/library/shadcn-ui/shadcn/cli.md +290 -0
  317. package/library/shadcn-ui/shadcn/customization.md +211 -0
  318. package/library/shadcn-ui/shadcn/design-system-page.md +268 -0
  319. package/library/shadcn-ui/shadcn/design-system.md +386 -0
  320. package/library/shadcn-ui/shadcn/evals/evals.json +126 -0
  321. package/library/shadcn-ui/shadcn/luci.json +34 -0
  322. package/library/shadcn-ui/shadcn/mcp.md +105 -0
  323. package/library/shadcn-ui/shadcn/references/updating-components.md +91 -0
  324. package/library/shadcn-ui/shadcn/references/workflow.md +31 -0
  325. package/library/shadcn-ui/shadcn/registry.md +277 -0
  326. package/library/shadcn-ui/shadcn/rules/base-vs-radix.md +306 -0
  327. package/library/shadcn-ui/shadcn/rules/chat.md +507 -0
  328. package/library/shadcn-ui/shadcn/rules/composition.md +213 -0
  329. package/library/shadcn-ui/shadcn/rules/forms.md +192 -0
  330. package/library/shadcn-ui/shadcn/rules/icons.md +101 -0
  331. package/library/shadcn-ui/shadcn/rules/styling.md +185 -0
  332. package/library/shadcn-ui/shadcn/scripts/showcase-coverage.mjs +53 -0
  333. package/library/systems/baseline-ui/NOTICE.md +6 -0
  334. package/library/systems/baseline-ui/SKILL.md +90 -0
  335. package/library/systems/baseline-ui/luci.json +35 -0
  336. package/library/testing/tdd/NOTICE.md +6 -0
  337. package/library/testing/tdd/SKILL.md +43 -0
  338. package/library/testing/tdd/agents/openai.yaml +3 -0
  339. package/library/testing/tdd/luci.json +29 -0
  340. package/library/testing/tdd/mocking.md +59 -0
  341. package/library/testing/tdd/tests.md +77 -0
  342. package/library/testing/webapp-testing/LICENSE.txt +202 -0
  343. package/library/testing/webapp-testing/NOTICE.md +6 -0
  344. package/library/testing/webapp-testing/SKILL.md +100 -0
  345. package/library/testing/webapp-testing/examples/console_logging.py +35 -0
  346. package/library/testing/webapp-testing/examples/element_discovery.py +40 -0
  347. package/library/testing/webapp-testing/examples/static_html_automation.py +33 -0
  348. package/library/testing/webapp-testing/luci.json +33 -0
  349. package/library/testing/webapp-testing/scripts/with_server.py +106 -0
  350. package/library/ui-ux/improve-ui/NOTICE.md +6 -0
  351. package/library/ui-ux/improve-ui/SKILL.md +127 -0
  352. package/library/ui-ux/improve-ui/agents/openai.yaml +13 -0
  353. package/library/ui-ux/improve-ui/luci.json +47 -0
  354. package/library/ui-ux/improve-ui/references/plan-template.md +55 -0
  355. package/library/ui-ux/landing-page/LICENSE.txt +21 -0
  356. package/library/ui-ux/landing-page/NOTICE.md +7 -0
  357. package/library/ui-ux/landing-page/SKILL.md +213 -0
  358. package/library/ui-ux/landing-page/luci.json +47 -0
  359. package/library/ui-ux/pricing-page/LICENSE.txt +21 -0
  360. package/library/ui-ux/pricing-page/NOTICE.md +7 -0
  361. package/library/ui-ux/pricing-page/SKILL.md +217 -0
  362. package/library/ui-ux/pricing-page/luci.json +47 -0
  363. package/library/ui-ux/prototype/LOGIC.md +67 -0
  364. package/library/ui-ux/prototype/NOTICE.md +6 -0
  365. package/library/ui-ux/prototype/SKILL.md +31 -0
  366. package/library/ui-ux/prototype/UI.md +112 -0
  367. package/library/ui-ux/prototype/agents/openai.yaml +3 -0
  368. package/library/ui-ux/prototype/luci.json +33 -0
  369. package/library/ui-ux/theme-factory/LICENSE.txt +202 -0
  370. package/library/ui-ux/theme-factory/NOTICE.md +6 -0
  371. package/library/ui-ux/theme-factory/SKILL.md +62 -0
  372. package/library/ui-ux/theme-factory/luci.json +35 -0
  373. package/library/ui-ux/theme-factory/themes/arctic-frost.md +19 -0
  374. package/library/ui-ux/theme-factory/themes/botanical-garden.md +19 -0
  375. package/library/ui-ux/theme-factory/themes/desert-rose.md +19 -0
  376. package/library/ui-ux/theme-factory/themes/forest-canopy.md +19 -0
  377. package/library/ui-ux/theme-factory/themes/golden-hour.md +19 -0
  378. package/library/ui-ux/theme-factory/themes/midnight-galaxy.md +19 -0
  379. package/library/ui-ux/theme-factory/themes/modern-minimalist.md +19 -0
  380. package/library/ui-ux/theme-factory/themes/ocean-depths.md +19 -0
  381. package/library/ui-ux/theme-factory/themes/sunset-boulevard.md +19 -0
  382. package/library/ui-ux/theme-factory/themes/tech-innovation.md +19 -0
  383. package/package.json +21 -3
  384. package/packs/design-system-build.json +10 -0
  385. package/packs/design-system.json +16 -0
  386. package/packs/marketing.json +11 -0
  387. package/packs/motion.json +12 -0
  388. package/packs/ui.json +13 -0
  389. package/README.md +0 -3
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Meng To
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,7 @@
1
+ # Notice
2
+
3
+ This skill comes from https://github.com/MengTo/Skills (`agent-skills/web-design/animation-on-scroll/SKILL.md`).
4
+ Licence: MIT (evidence: repository license, https://github.com/MengTo/Skills/blob/main/LICENSE, checked 2026-11-12).
5
+ Copyright (c) 2026 Meng To.
6
+
7
+ Luci converted it to the Luci Skill Standard: SKILL.md metadata keys and luci.json. The instructions are unchanged.
@@ -0,0 +1,115 @@
1
+ ---
2
+ name: "animation-on-scroll"
3
+ description: "Create an on-scroll animation trigger using IntersectionObserver with Tailwind-friendly animation classes and keyframes. Use when asked for scroll-reveal, animate-on-scroll, or sequencing element animations when they enter the viewport."
4
+ license: "MIT"
5
+ metadata:
6
+ luci-category: "interaction"
7
+ luci-author: "Meng To"
8
+ luci-version: "1.0.0"
9
+ ---
10
+
11
+ # Animation On Scroll Skill
12
+
13
+ ## Workflow
14
+ 1. Confirm animation style, timing, and whether animations should run once or repeat.
15
+ 2. Provide the keyframes + JS observer snippet and the exact Tailwind class to apply.
16
+ 3. Offer focused tweaks only (threshold, rootMargin, duration, delay, transform/blur values).
17
+
18
+ ## Usage checklist
19
+ - Insert the JS snippet in the `<head>` after the keyframes.
20
+ - Add the animation class and `animate-on-scroll` to elements.
21
+ - Ensure your keyframes name matches the Tailwind animation reference.
22
+
23
+ ## IntersectionObserver trigger
24
+ ```html
25
+ <script>
26
+ /*
27
+ Sequence animation on scroll when visible. Requires Animation Keyframe. Usage:
28
+
29
+ 1) Insert this code in the <head> along with the Animation Keyframe code.
30
+
31
+ 2) Add to Tailwind Classes: [animation:animationIn_0.8s_ease-out_0.1s_both] animate-on-scroll
32
+ */
33
+ (function () {
34
+ // Inject CSS for paused/running states
35
+ const style = document.createElement("style");
36
+ style.textContent = `
37
+ /* Default: paused */
38
+ .animate-on-scroll { animation-play-state: paused !important; }
39
+ /* Activated by JS */
40
+ .animate-on-scroll.animate { animation-play-state: running !important; }
41
+ `;
42
+ document.head.appendChild(style);
43
+
44
+ const once = true;
45
+
46
+ if (!window.__inViewIO) {
47
+ window.__inViewIO = new IntersectionObserver((entries) => {
48
+ entries.forEach((entry) => {
49
+ if (entry.isIntersecting) {
50
+ entry.target.classList.add("animate");
51
+ if (once) window.__inViewIO.unobserve(entry.target);
52
+ }
53
+ });
54
+ }, { threshold: 0.2, rootMargin: "0px 0px -10% 0px" });
55
+ }
56
+
57
+ window.initInViewAnimations = function (selector = ".animate-on-scroll") {
58
+ document.querySelectorAll(selector).forEach((el) => {
59
+ window.__inViewIO.observe(el); // observing twice is a no-op
60
+ });
61
+ };
62
+
63
+ document.addEventListener("DOMContentLoaded", () => initInViewAnimations());
64
+ })();
65
+ </script>
66
+ ```
67
+
68
+ ## Keyframes
69
+ ```html
70
+ <style>
71
+ /*
72
+ Sequence animation intro. Usage:
73
+
74
+ 1) Insert this code in the <head>
75
+
76
+ 2) Add to Tailwind Classes: [animation:animationIn_0.8s_ease-out_0.1s_both]
77
+ */
78
+ @keyframes animationIn {
79
+ 0% {
80
+ opacity: 0;
81
+ transform: translateY(30px);
82
+ filter: blur(8px);
83
+ }
84
+
85
+ 100% {
86
+ opacity: 1;
87
+ transform: translateY(0);
88
+ filter: blur(0px);
89
+ }
90
+ }
91
+ </style>
92
+ ```
93
+
94
+ ## Tailwind example
95
+ ```html
96
+ <div class="animate-on-scroll [animation:animationIn_0.8s_ease-out_0.1s_both]">
97
+ ...
98
+ </div>
99
+ ```
100
+
101
+ ## Customization knobs
102
+ - Trigger: adjust `threshold` and `rootMargin` for earlier/later reveals.
103
+ - Repeat: set `once = false` to allow replays when re-entering.
104
+ - Motion: tweak `translateY` and `blur` in keyframes.
105
+ - Timing: change duration and delay in the Tailwind animation value.
106
+
107
+ ## Common pitfalls
108
+ - Forgetting to include the keyframes before the JS snippet.
109
+ - Using a different keyframe name than in the Tailwind animation.
110
+ - Animations not running because the element is already in view before observer init.
111
+
112
+ ## Questions to ask when specs are missing
113
+ - Should animations run once or every time the element re-enters?
114
+ - How far before entering the viewport should they start?
115
+ - What motion style (fade, slide, blur, scale) do you want?
@@ -0,0 +1,38 @@
1
+ {
2
+ "lss": 1,
3
+ "frameworks": [
4
+ "framer-motion",
5
+ "react",
6
+ "css"
7
+ ],
8
+ "lastVerified": "2026-11-06",
9
+ "summary": "Create an on-scroll animation trigger using IntersectionObserver with Tailwind-friendly animation classes and keyframes. Use when asked for scroll-reveal, animate-on-scroll, or sequencing element animations when they enter the viewport.",
10
+ "whenToUse": [
11
+ "Use when asked for scroll-reveal, animate-on-scroll, or sequencing element animations when they enter the viewport."
12
+ ],
13
+ "verification": [
14
+ "Insert the JS snippet in the <head> after the keyframes.",
15
+ "Add the animation class and animate-on-scroll to elements.",
16
+ "Ensure your keyframes name matches the Tailwind animation reference."
17
+ ],
18
+ "domains": [
19
+ "web",
20
+ "design"
21
+ ],
22
+ "derived": [
23
+ "domains",
24
+ "summary",
25
+ "verification",
26
+ "whenToUse"
27
+ ],
28
+ "source": {
29
+ "repo": "MengTo/Skills",
30
+ "path": "agent-skills/web-design/animation-on-scroll/SKILL.md",
31
+ "licenseVerified": true,
32
+ "licenseStatus": "open",
33
+ "licenseEvidence": "repository license",
34
+ "licenseUrl": "https://github.com/MengTo/Skills/blob/main/LICENSE",
35
+ "licenseCheckedAt": "2026-11-12",
36
+ "copyright": "Copyright (c) 2026 Meng To"
37
+ }
38
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Meng To
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,7 @@
1
+ # Notice
2
+
3
+ This skill comes from https://github.com/MengTo/Skills (`agent-skills/web-design/masked-reveal/SKILL.md`).
4
+ Licence: MIT (evidence: repository license, https://github.com/MengTo/Skills/blob/main/LICENSE, checked 2026-11-12).
5
+ Copyright (c) 2026 Meng To.
6
+
7
+ Luci converted it to the Luci Skill Standard: SKILL.md metadata keys and luci.json. The instructions are unchanged.
@@ -0,0 +1,187 @@
1
+ ---
2
+ name: "masked-reveal"
3
+ description: "Create masked staggered word reveals on scroll with GSAP ScrollTrigger. Use when headings, hero copy, section titles, or editorial text should reveal word-by-word through an overflow mask as they enter the viewport."
4
+ license: "MIT"
5
+ metadata:
6
+ luci-category: "micro-interactions"
7
+ luci-author: "Meng To"
8
+ luci-version: "1.1.0"
9
+ ---
10
+
11
+ # Masked Reveal
12
+
13
+ ## Use When
14
+ - A headline or short text block needs a premium reveal on scroll.
15
+ - Words should rise through an invisible mask with a staggered sequence.
16
+ - The project already uses GSAP. If it uses another animation library, build the same effect with that library instead of adding GSAP.
17
+
18
+ This is **entrance motion**: it may run up to ~1s because it never blocks input. The short 100–250ms band applies to feedback on user input (see the `micro-interaction` skill).
19
+
20
+ ## Motion Defaults
21
+ - Trigger: start when the text top reaches `82%` of the viewport.
22
+ - Duration: `0.7s` to `0.9s`.
23
+ - Stagger: `0.025s` to `0.045s` per word.
24
+ - Offset: `yPercent: 110` to `0`.
25
+ - Ease: `power3.out` or `expo.out`.
26
+ - Replay: reveal once by default.
27
+
28
+ ## HTML
29
+
30
+ ```html
31
+ <h1 class="masked-reveal" data-masked-reveal>
32
+ Design systems that feel alive from the first scroll.
33
+ </h1>
34
+ ```
35
+
36
+ ## CSS Mask
37
+
38
+ ```css
39
+ .masked-reveal {
40
+ visibility: visible;
41
+ }
42
+
43
+ html.js .masked-reveal[data-masked-reveal] {
44
+ visibility: hidden;
45
+ }
46
+
47
+ html.js .masked-reveal.is-split {
48
+ visibility: visible;
49
+ }
50
+
51
+ .masked-reveal .word-mask {
52
+ display: inline-block;
53
+ overflow: hidden;
54
+ vertical-align: top;
55
+ }
56
+
57
+ .masked-reveal .word {
58
+ display: inline-block;
59
+ transform: translateY(110%);
60
+ will-change: transform;
61
+ }
62
+
63
+ @media (prefers-reduced-motion: reduce) {
64
+ html.js .masked-reveal[data-masked-reveal] {
65
+ visibility: visible;
66
+ }
67
+
68
+ .masked-reveal .word {
69
+ transform: none;
70
+ }
71
+ }
72
+ ```
73
+
74
+ ## GSAP 3.13+: SplitText (preferred)
75
+ Since GSAP 3.13 every plugin, including SplitText, is free and ships in the `gsap` package. SplitText handles masking, accessibility and re-splitting on resize:
76
+
77
+ ```js
78
+ import { gsap } from "gsap";
79
+ import { ScrollTrigger } from "gsap/ScrollTrigger";
80
+ import { SplitText } from "gsap/SplitText";
81
+ gsap.registerPlugin(ScrollTrigger, SplitText);
82
+
83
+ document.querySelectorAll("[data-masked-reveal]").forEach((element) => {
84
+ SplitText.create(element, {
85
+ type: "words",
86
+ mask: "words",
87
+ autoSplit: true,
88
+ onSplit: (self) => gsap.from(self.words, {
89
+ yPercent: 110,
90
+ duration: 0.8,
91
+ ease: "power3.out",
92
+ stagger: 0.035,
93
+ scrollTrigger: { trigger: element, start: "top 82%", once: true },
94
+ }),
95
+ });
96
+ });
97
+ ```
98
+
99
+ Wrap it in `gsap.matchMedia()` with `(prefers-reduced-motion: no-preference)` so reduced-motion users get static text.
100
+
101
+ ## Without SplitText
102
+ For GSAP versions before 3.13, or to avoid the plugin, this helper splits words itself and keeps spaces intact.
103
+
104
+ ```js
105
+ document.documentElement.classList.add("js");
106
+ gsap.registerPlugin(ScrollTrigger);
107
+
108
+ function escapeHTML(value) {
109
+ return value
110
+ .replace(/&/g, "&amp;")
111
+ .replace(/</g, "&lt;")
112
+ .replace(/>/g, "&gt;")
113
+ .replace(/"/g, "&quot;")
114
+ .replace(/'/g, "&#039;");
115
+ }
116
+
117
+ function splitMaskedReveal(element) {
118
+ if (element.dataset.maskedRevealReady === "true") return;
119
+
120
+ const text = element.textContent.trim();
121
+ element.setAttribute("aria-label", text);
122
+ element.innerHTML = text
123
+ .split(/(\s+)/)
124
+ .map((part) => {
125
+ if (!part.trim()) return part;
126
+ return `<span class="word-mask" aria-hidden="true"><span class="word">${escapeHTML(part)}</span></span>`;
127
+ })
128
+ .join("");
129
+ element.dataset.maskedRevealReady = "true";
130
+ element.classList.add("is-split");
131
+ }
132
+
133
+ function initMaskedReveals(selector = "[data-masked-reveal]") {
134
+ if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
135
+
136
+ document.querySelectorAll(selector).forEach((element) => {
137
+ splitMaskedReveal(element);
138
+ const words = element.querySelectorAll(".word");
139
+
140
+ gsap.set(element, { autoAlpha: 1 });
141
+ gsap.fromTo(
142
+ words,
143
+ { yPercent: 110 },
144
+ {
145
+ yPercent: 0,
146
+ duration: 0.8,
147
+ ease: "power3.out",
148
+ stagger: 0.035,
149
+ scrollTrigger: {
150
+ trigger: element,
151
+ start: "top 82%",
152
+ once: true,
153
+ },
154
+ }
155
+ );
156
+ });
157
+ }
158
+
159
+ initMaskedReveals();
160
+ ```
161
+
162
+ ## React Cleanup Pattern
163
+
164
+ ```js
165
+ useLayoutEffect(() => {
166
+ const ctx = gsap.context(() => {
167
+ initMaskedReveals("[data-masked-reveal]");
168
+ }, rootRef);
169
+
170
+ return () => ctx.revert();
171
+ }, []);
172
+ ```
173
+
174
+ ## Taste Rules
175
+ - Use on short headlines, labels, and section intros; avoid long paragraphs.
176
+ - Keep the vertical offset clean. Do not combine with blur unless the style explicitly calls for it.
177
+ - Stagger by word, not letter, for a calmer editorial feel.
178
+ - Initialize after fonts are loaded if line wrapping is critical.
179
+ - Use `ScrollTrigger.refresh()` after late-loading images or layout shifts.
180
+ - Do not split text that contains links, buttons, or meaningful inline markup.
181
+
182
+ ## Quick Checks
183
+ - Text is hidden before GSAP initializes, then becomes visible with `autoAlpha: 1`.
184
+ - Screen readers get the original full text through `aria-label`.
185
+ - Spaces between words are preserved.
186
+ - Reduced-motion users see static text.
187
+ - ScrollTrigger is cleaned up in SPA routes.
@@ -0,0 +1,63 @@
1
+ {
2
+ "lss": 1,
3
+ "frameworks": [
4
+ "any",
5
+ "html",
6
+ "react",
7
+ "vue",
8
+ "svelte"
9
+ ],
10
+ "lastVerified": "2026-11-09",
11
+ "summary": "Create masked staggered word reveals on scroll with GSAP ScrollTrigger. Use when headings, hero copy, section titles, or editorial text should reveal word-by-word through an overflow mask as they enter the viewport.",
12
+ "whenToUse": [
13
+ "Use when headings, hero copy, section titles, or editorial text should reveal word-by-word through an overflow mask as they enter the viewport.",
14
+ "A headline or short text block needs a premium reveal on scroll.",
15
+ "Words should rise through an invisible mask with a staggered sequence.",
16
+ "The project already uses GSAP or needs ScrollTrigger-based motion."
17
+ ],
18
+ "verification": [
19
+ "Text is hidden before GSAP initializes, then becomes visible with autoAlpha: 1.",
20
+ "Screen readers get the original full text through aria-label.",
21
+ "Spaces between words are preserved.",
22
+ "Reduced-motion users see static text.",
23
+ "ScrollTrigger is cleaned up in SPA routes."
24
+ ],
25
+ "domains": [
26
+ "web",
27
+ "design"
28
+ ],
29
+ "derived": [
30
+ "domains",
31
+ "summary",
32
+ "verification",
33
+ "whenToUse"
34
+ ],
35
+ "keywords": [
36
+ "text animation",
37
+ "scroll animation",
38
+ "headline animation",
39
+ "split text",
40
+ "stagger reveal"
41
+ ],
42
+ "packages": [
43
+ "gsap"
44
+ ],
45
+ "exclusiveGroup": "animation-library",
46
+ "verifiedAgainst": [
47
+ "gsap@3.15.1"
48
+ ],
49
+ "related": [
50
+ "micro-interaction",
51
+ "animation-on-scroll"
52
+ ],
53
+ "source": {
54
+ "repo": "MengTo/Skills",
55
+ "path": "agent-skills/web-design/masked-reveal/SKILL.md",
56
+ "licenseVerified": true,
57
+ "licenseStatus": "open",
58
+ "licenseEvidence": "repository license",
59
+ "licenseUrl": "https://github.com/MengTo/Skills/blob/main/LICENSE",
60
+ "licenseCheckedAt": "2026-11-12",
61
+ "copyright": "Copyright (c) 2026 Meng To"
62
+ }
63
+ }
@@ -0,0 +1,6 @@
1
+ # Notice
2
+
3
+ This skill comes from https://github.com/iart-ai/web-animation-skills (`skills/micro-interaction/SKILL.md`).
4
+ Licence: MIT (evidence: repository license, https://github.com/iart-ai/web-animation-skills/blob/main/LICENSE, checked 2026-11-09).
5
+
6
+ Luci converted it to the Luci Skill Standard: SKILL.md metadata keys and luci.json. The instructions are unchanged.
@@ -0,0 +1,177 @@
1
+ ---
2
+ name: "micro-interaction"
3
+ description: "This skill should be used when the user asks to \"add a hover/press effect\", \"animate a toggle or switch\", \"build an animated like button\", \"make a toast/snackbar slide in\", \"animate a drawer or modal\", \"animate list reordering or add/remove\", \"do a shared-element layout transition\", or \"polish UI feedback\". Covers UI motion with Framer Motion (motion/react) and modern CSS."
4
+ license: "MIT"
5
+ metadata:
6
+ luci-category: "micro-interactions"
7
+ luci-author: "unknown"
8
+ luci-version: "0.1.0"
9
+ ---
10
+
11
+ # Micro-interactions (UI Motion)
12
+
13
+ Small, functional motion that makes an interface feel responsive and alive: hover/press/focus feedback, toggles, toasts, drawers, and list/layout animation. The goal is feedback and continuity, not decoration.
14
+
15
+ ## When to use
16
+
17
+ - Hover/press/focus feedback; toggles, checkboxes, like/heart buttons
18
+ - Toasts/snackbars, drawers, modals, tooltips, accordions (enter/exit)
19
+ - List add/remove/reorder; shared-element ("magic move") layout transitions
20
+ - Loading → success → error state transitions
21
+
22
+ ## Principles (apply to all of it)
23
+
24
+ - Duration: UI micro-interactions live in **100–250ms**. Anything over ~400ms feels laggy for a click response.
25
+ - Animate `transform` and `opacity` only — they are GPU-composited (no layout/paint). Avoid animating `width/height/top/left`; use `scale` or layout animation instead.
26
+ - Give **instant** press feedback: `scale: 0.96` on tap with a fast spring.
27
+ - Asymmetric timing: enter slightly slower (ease-out), exit faster (ease-in). Things should arrive gracefully and leave promptly.
28
+ - Respect `prefers-reduced-motion`: gate non-essential motion; keep opacity changes, drop large movement.
29
+ - Easing defaults: ease-out for entrances `cubic-bezier(0.16, 1, 0.3, 1)`; a tasteful overshoot is `cubic-bezier(0.34, 1.56, 0.64, 1)`; standard move `cubic-bezier(0.4, 0, 0.2, 1)`.
30
+
31
+ ## Framer Motion (motion/react) essentials
32
+
33
+ As of v11+, the package is imported as `motion/react` (the `framer-motion` name still works).
34
+
35
+ ### Gestures and springs
36
+
37
+ ```jsx
38
+ import { motion } from "motion/react";
39
+
40
+ <motion.button
41
+ whileHover={{ scale: 1.03 }}
42
+ whileTap={{ scale: 0.96 }}
43
+ whileFocus={{ boxShadow: "0 0 0 3px rgba(59,130,246,.5)" }}
44
+ transition={{ type: "spring", stiffness: 400, damping: 30 }}
45
+ />
46
+ ```
47
+
48
+ Spring intuition: higher `stiffness` = faster; higher `damping` = less bounce. `stiffness: 400, damping: 30` is a snappy UI default. For visible bounce, lower damping (e.g. `damping: 12`).
49
+
50
+ ### Enter / exit with AnimatePresence
51
+
52
+ Exit animations require `AnimatePresence` wrapping conditionally-rendered children, each with a stable `key`.
53
+
54
+ ```jsx
55
+ import { AnimatePresence, motion } from "motion/react";
56
+
57
+ <AnimatePresence>
58
+ {open && (
59
+ <motion.div
60
+ key="panel"
61
+ initial={{ opacity: 0, y: 8 }}
62
+ animate={{ opacity: 1, y: 0 }}
63
+ exit={{ opacity: 0, y: 8 }}
64
+ transition={{ duration: 0.2, ease: [0.16, 1, 0.3, 1] }}
65
+ />
66
+ )}
67
+ </AnimatePresence>
68
+ ```
69
+
70
+ For toasts/lists, use `mode="popLayout"` so removed items don't hold space while exiting.
71
+
72
+ ### Layout animation (the superpower)
73
+
74
+ `layout` automatically animates any layout change (position/size) using transforms — perfect for reordering, expanding cards, and grid<->list.
75
+
76
+ ```jsx
77
+ <motion.li layout transition={{ type: "spring", stiffness: 500, damping: 40 }} />
78
+ ```
79
+
80
+ Shared-element transition across components: give two elements the same `layoutId` and Framer Motion animates between them as one mounts and the other unmounts.
81
+
82
+ ```jsx
83
+ {!open && <motion.div layoutId="card" onClick={() => setOpen(true)} />}
84
+ <AnimatePresence>
85
+ {open && <motion.div layoutId="card" />} {/* "magic moves" from the source */}
86
+ </AnimatePresence>
87
+ ```
88
+
89
+ Gotcha: a plain `layout` element distorts `border-radius` and text during scale. Add `layout` to direct children that should counter-scale, and prefer `borderRadius`/`boxShadow` as motion values, or use `layout="position"` to animate position only.
90
+
91
+ ## Pure CSS path (no JS, including discrete properties)
92
+
93
+ Modern CSS can animate enter/exit and even `display` toggles without a library.
94
+
95
+ ```css
96
+ .toast {
97
+ transition: opacity 0.2s ease, transform 0.2s ease;
98
+ /* allow animating to/from display:none and from initial render */
99
+ transition-behavior: allow-discrete;
100
+ }
101
+ .toast[hidden] { display: none; }
102
+
103
+ /* animate FROM these values on first render / when entering */
104
+ @starting-style {
105
+ .toast { opacity: 0; transform: translateY(8px); }
106
+ }
107
+ ```
108
+
109
+ `@starting-style` defines the "before-open" values so an element animates in on first appearance; `transition-behavior: allow-discrete` lets `display` (and `overlay` for popovers/dialogs) participate so exit animations run before the element is removed. Baseline in Chrome/Edge/Safari; provide a no-animation fallback for older browsers.
110
+
111
+ Always include a reduced-motion guard:
112
+
113
+ ```css
114
+ @media (prefers-reduced-motion: reduce) {
115
+ *, *::before, *::after {
116
+ animation-duration: 0.01ms !important;
117
+ transition-duration: 0.01ms !important;
118
+ }
119
+ }
120
+ ```
121
+
122
+ ## State, not just decoration
123
+
124
+ Loading → success → error should be one continuous motion (e.g. a button morphs spinner → checkmark), not a jump cut. Keep the element mounted and animate between states so the eye tracks the same object.
125
+
126
+ ## Deliver & verify (standalone HTML)
127
+
128
+ > **Packaged helper** (`scripts/`): `scripts/seek-shot.sh anim.html 0 1.5 3` freezes the `?t=N` harness and screenshots each moment; `scripts/contact-sheet.sh sheet.png frame-*.png` tiles them for one-glance review. See `scripts/README.md`.
129
+
130
+ For a self-contained interaction demo (toggle, like button, toast, drawer) the deliverable is **one HTML file that opens directly in a browser**. Pure-CSS interactions ship as-is; for a Framer Motion demo, load React + `motion` from CDN (`esm.sh`) into one inline module — no build step. One file is the right tier; don't reach for a bundler.
131
+
132
+ **Output contract:**
133
+ - One `.html` file: your markup plus either CSS transitions/`@starting-style` or an inline `<script type="module">` importing `motion` from CDN.
134
+ - A way to land on the **resolved end state** for a screenshot — interactions are state-driven, not time-driven, so freeze the state rather than a clock.
135
+
136
+ **Seek harness — pin a deterministic state.** A micro-interaction's "frames" are its states (idle / hover / pressed / open). `?state=open` applies the target state on load so a screenshot captures it settled:
137
+
138
+ ```html
139
+ <script>
140
+ const s = new URLSearchParams(location.search).get("state");
141
+ if (s) document.documentElement.dataset.state = s; // CSS keys off [data-state="open"]
142
+ // Framer Motion: set the controlled prop from `s` (e.g. const [open]=useState(s==="open"))
143
+ // For a CSS @keyframes loop instead, freeze it: el.style.animationDelay=(-N)+"s"; el.style.animationPlayState="paused";
144
+ window.__ready = true;
145
+ </script>
146
+ ```
147
+
148
+ **Verify loop — render → set state → screenshot → check:** open each meaningful state (`?state=idle`, `?state=hover`, `?state=open`), screenshot, and check **fidelity** (press feedback reads instant, exit runs before unmount) plus **artifacts** (`layout` distorting `border-radius`/text, toast holding space after exit, FOUC, jank). Any headless tool works:
149
+
150
+ ```bash
151
+ npx playwright screenshot --wait-for-timeout=400 "file://$PWD/demo.html?state=open" open.png
152
+ ```
153
+
154
+ **Before you finish:**
155
+ 1. Opens standalone — no console errors, CDN React/`motion` (if used) resolves.
156
+ 2. The `?state=` (or controlled-prop) freeze lands a deterministic, settled state.
157
+ 3. Screenshotted across states — idle / active / open — matches the brief, no artifacts.
158
+ 4. `prefers-reduced-motion` honored — large movement dropped, opacity/feedback kept.
159
+ 5. Easing is intentional — enter ease-out, exit ease-in, durations in the 100–250ms band.
160
+
161
+ ## Quick reference
162
+
163
+ | Need | Approach |
164
+ |------|----------|
165
+ | Press feedback | `whileTap={{ scale: 0.96 }}` spring 400/30 |
166
+ | Enter/exit | `AnimatePresence` + `initial/animate/exit` |
167
+ | Reorder / resize | `layout` prop (spring) |
168
+ | Magic move | shared `layoutId` |
169
+ | Toast stack | `AnimatePresence mode="popLayout"` |
170
+ | No-JS enter | `@starting-style` + transition |
171
+ | Animate to display:none | `transition-behavior: allow-discrete` |
172
+ | Accessibility | `prefers-reduced-motion` guard always |
173
+
174
+ ## Reference files
175
+
176
+ - `references/framer-motion-recipes.md` — variants + stagger, `AnimatePresence` modes, `layout`/`layoutId` magic move, `Reorder` drag-to-sort, drag constraints, gesture composition, and `useReducedMotion`.
177
+ - `references/css-recipes.md` — `@starting-style`, `transition-behavior: allow-discrete`, popover/dialog exit animation, keyframe spinners/toggles, `@property` for animatable custom properties, and `prefers-reduced-motion` patterns.