@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,52 @@
1
+ {
2
+ "lss": 1,
3
+ "lastVerified": "2026-11-09",
4
+ "source": {
5
+ "repo": "iart-ai/web-animation-skills",
6
+ "path": "skills/micro-interaction/SKILL.md",
7
+ "licenseVerified": true,
8
+ "licenseStatus": "open",
9
+ "licenseEvidence": "repository license",
10
+ "licenseUrl": "https://github.com/iart-ai/web-animation-skills/blob/main/LICENSE",
11
+ "licenseCheckedAt": "2026-11-09",
12
+ "supportFilesFrom": {
13
+ "path": "scripts/",
14
+ "files": [
15
+ "scripts/README.md",
16
+ "scripts/seek-shot.sh",
17
+ "scripts/contact-sheet.sh"
18
+ ],
19
+ "note": "Shared by the repo's skills at its root; copied into this skill so the scripts it mentions are included."
20
+ }
21
+ },
22
+ "summary": "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…",
23
+ "whenToUse": [
24
+ "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",
25
+ "Hover/press/focus feedback; toggles, checkboxes, like/heart buttons",
26
+ "Toasts/snackbars, drawers, modals, tooltips, accordions (enter/exit)",
27
+ "List add/remove/reorder; shared-element (\"magic move\") layout transitions",
28
+ "Loading → success → error state transitions"
29
+ ],
30
+ "verification": [
31
+ "One .html file: your markup plus either CSS transitions/@starting-style or an inline <script type=\"module\"> importing motion from CDN.",
32
+ "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.",
33
+ "Opens standalone — no console errors, CDN React/motion (if used) resolves.",
34
+ "The ?state= (or controlled-prop) freeze lands a deterministic, settled state.",
35
+ "Screenshotted across states — idle / active / open — matches the brief, no artifacts.",
36
+ "prefers-reduced-motion honored — large movement dropped, opacity/feedback kept.",
37
+ "Easing is intentional — enter ease-out, exit ease-in, durations in the 100–250ms band."
38
+ ],
39
+ "domains": [
40
+ "web",
41
+ "design"
42
+ ],
43
+ "derived": [
44
+ "domains",
45
+ "summary",
46
+ "verification",
47
+ "whenToUse"
48
+ ],
49
+ "permissions": [
50
+ "shell"
51
+ ]
52
+ }
@@ -0,0 +1,142 @@
1
+ # CSS Micro-interaction Recipes
2
+
3
+ Modern CSS handles most UI motion with zero JavaScript, including enter/exit and `display` toggles. Baseline-available in current Chrome/Edge/Safari/Firefox (verify `@starting-style` and `allow-discrete` for your support floor; degrade to instant show/hide otherwise).
4
+
5
+ ## Enter animation on first render: @starting-style
6
+
7
+ `@starting-style` supplies the values an element transitions FROM the first time it renders (or becomes shown). Without it, there is no "previous" state to transition from, so newly-inserted elements snap in.
8
+
9
+ ```css
10
+ .menu {
11
+ opacity: 1;
12
+ transform: translateY(0);
13
+ transition: opacity 0.2s ease, transform 0.2s ease;
14
+ }
15
+ @starting-style {
16
+ .menu { opacity: 0; transform: translateY(-8px); }
17
+ }
18
+ ```
19
+
20
+ ## Animating to/from display:none: transition-behavior: allow-discrete
21
+
22
+ `display` and `content-visibility` are discrete properties — normally they flip instantly, killing exit animations. `allow-discrete` lets them flip at the correct moment (kept visible during exit, swapped at the end).
23
+
24
+ ```css
25
+ .drawer {
26
+ transition:
27
+ transform 0.25s ease,
28
+ opacity 0.25s ease,
29
+ display 0.25s allow-discrete; /* keep displayed through the exit */
30
+ }
31
+ .drawer[hidden] { /* closed state */
32
+ opacity: 0;
33
+ transform: translateX(100%);
34
+ display: none;
35
+ }
36
+ @starting-style {
37
+ .drawer:not([hidden]) { opacity: 0; transform: translateX(100%); }
38
+ }
39
+ ```
40
+
41
+ Shorthand alternative: `transition-behavior: allow-discrete;` applies to all discrete properties in the `transition` list.
42
+
43
+ ## Popover / dialog exit animation (top-layer)
44
+
45
+ Native `popover` and `<dialog>` live in the top layer via the `overlay` property, which is also discrete — animate it too:
46
+
47
+ ```css
48
+ [popover] {
49
+ opacity: 0;
50
+ transform: scale(0.95);
51
+ transition: opacity 0.2s, transform 0.2s, overlay 0.2s allow-discrete, display 0.2s allow-discrete;
52
+ }
53
+ [popover]:popover-open { opacity: 1; transform: scale(1); }
54
+ @starting-style {
55
+ [popover]:popover-open { opacity: 0; transform: scale(0.95); }
56
+ }
57
+ ```
58
+
59
+ This gives a fully CSS-driven open AND close animation for `<button popovertarget>` popovers with no JS.
60
+
61
+ ## Press / hover / focus feedback
62
+
63
+ ```css
64
+ .btn {
65
+ transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
66
+ }
67
+ .btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
68
+ .btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.06s; } /* snappy press */
69
+ .btn:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
70
+ ```
71
+
72
+ Use `:focus-visible` (not `:focus`) so keyboard users get a ring but mouse clicks don't.
73
+
74
+ ## Animated toggle / switch
75
+
76
+ ```css
77
+ .switch { width: 44px; height: 24px; border-radius: 999px; background: #cbd5e1;
78
+ transition: background 0.2s ease; }
79
+ .switch[aria-checked="true"] { background: #22c55e; }
80
+ .switch::after {
81
+ content: ""; width: 20px; height: 20px; border-radius: 50%; background: #fff;
82
+ transform: translateX(2px);
83
+ transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
84
+ }
85
+ .switch[aria-checked="true"]::after { transform: translateX(22px); }
86
+ ```
87
+
88
+ The `cubic-bezier(0.34, 1.56, 0.64, 1)` overshoot gives the knob a satisfying snap.
89
+
90
+ ## Loading spinner and pulse
91
+
92
+ ```css
93
+ @keyframes spin { to { transform: rotate(360deg); } }
94
+ .spinner { animation: spin 0.8s linear infinite; }
95
+
96
+ @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
97
+ .skeleton { animation: pulse 1.5s ease-in-out infinite; }
98
+ ```
99
+
100
+ ## Animatable custom properties with @property
101
+
102
+ Plain CSS variables animate discretely. Register them with `@property` to give them a type so they interpolate smoothly — enables gradient angle, number counters, and themed motion.
103
+
104
+ ```css
105
+ @property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
106
+
107
+ .gradient-border {
108
+ background: conic-gradient(from var(--angle), #6366f1, #ec4899, #6366f1);
109
+ transition: --angle 0.4s ease;
110
+ }
111
+ .gradient-border:hover { --angle: 360deg; }
112
+ ```
113
+
114
+ ## Accordion height (modern: interpolate-size)
115
+
116
+ Animating `height: auto` historically required JS measurement. With `interpolate-size: allow-keywords`, transitions to/from intrinsic sizes work:
117
+
118
+ ```css
119
+ :root { interpolate-size: allow-keywords; }
120
+ .accordion__panel {
121
+ height: 0; overflow: hidden;
122
+ transition: height 0.3s ease;
123
+ }
124
+ .accordion__panel[data-open] { height: auto; }
125
+ ```
126
+
127
+ Fallback for unsupported browsers: animate `grid-template-rows: 0fr -> 1fr` on a wrapper.
128
+
129
+ ## Reduced motion (always include)
130
+
131
+ ```css
132
+ @media (prefers-reduced-motion: reduce) {
133
+ *, *::before, *::after {
134
+ animation-duration: 0.01ms !important;
135
+ animation-iteration-count: 1 !important;
136
+ transition-duration: 0.01ms !important;
137
+ scroll-behavior: auto !important;
138
+ }
139
+ }
140
+ ```
141
+
142
+ Then selectively re-enable essential, low-motion feedback (e.g. opacity-only fades) inside the same query if needed. The principle: never remove feedback entirely, just remove large/spatial motion.
@@ -0,0 +1,187 @@
1
+ # Framer Motion Recipes
2
+
3
+ Import from `motion/react` (v11+). All examples are React + Framer Motion.
4
+
5
+ ```jsx
6
+ import { motion, AnimatePresence, Reorder, useReducedMotion, useDragControls } from "motion/react";
7
+ ```
8
+
9
+ ## Variants and staggered children
10
+
11
+ Variants are named animation states a parent can propagate to children, enabling orchestration like staggering without per-child timing math.
12
+
13
+ ```jsx
14
+ const list = {
15
+ hidden: { opacity: 0 },
16
+ show: {
17
+ opacity: 1,
18
+ transition: { staggerChildren: 0.06, delayChildren: 0.1 },
19
+ },
20
+ };
21
+ const item = {
22
+ hidden: { opacity: 0, y: 12 },
23
+ show: { opacity: 1, y: 0, transition: { type: "spring", stiffness: 500, damping: 30 } },
24
+ };
25
+
26
+ <motion.ul variants={list} initial="hidden" animate="show">
27
+ {items.map((t) => (
28
+ <motion.li key={t.id} variants={item}>{t.label}</motion.li>
29
+ ))}
30
+ </motion.ul>
31
+ ```
32
+
33
+ `staggerDirection: -1` staggers from last to first. `when: "beforeChildren"` / `"afterChildren"` sequences parent vs children.
34
+
35
+ ## AnimatePresence modes
36
+
37
+ ```jsx
38
+ <AnimatePresence mode="wait"> {/* outgoing finishes before incoming starts (route/tab switches) */}
39
+ <motion.div key={tab} initial={{opacity:0}} animate={{opacity:1}} exit={{opacity:0}} />
40
+ </AnimatePresence>
41
+ ```
42
+
43
+ Modes:
44
+ - default (`"sync"`) — incoming and outgoing animate simultaneously.
45
+ - `"wait"` — finish exit before enter (single-element swaps like tabs/pages).
46
+ - `"popLayout"` — exiting items are popped from layout flow so siblings re-flow immediately (toast stacks, removing list items). Children must be capable of `layout`.
47
+
48
+ Require a unique, stable `key` on each child. To run exit on initial mount too, that is not needed; to suppress enter animation on first render set `<AnimatePresence initial={false}>`.
49
+
50
+ ## Toast stack (popLayout + layout)
51
+
52
+ ```jsx
53
+ function Toasts({ toasts }) {
54
+ return (
55
+ <div className="toast-region">
56
+ <AnimatePresence mode="popLayout">
57
+ {toasts.map((t) => (
58
+ <motion.div
59
+ key={t.id}
60
+ layout
61
+ initial={{ opacity: 0, y: 24, scale: 0.9 }}
62
+ animate={{ opacity: 1, y: 0, scale: 1 }}
63
+ exit={{ opacity: 0, scale: 0.9, transition: { duration: 0.15 } }}
64
+ transition={{ type: "spring", stiffness: 500, damping: 40 }}
65
+ >
66
+ {t.message}
67
+ </motion.div>
68
+ ))}
69
+ </AnimatePresence>
70
+ </div>
71
+ );
72
+ }
73
+ ```
74
+
75
+ `layout` makes remaining toasts slide up smoothly when one is dismissed.
76
+
77
+ ## Magic-move / shared-element layout
78
+
79
+ ```jsx
80
+ function Gallery() {
81
+ const [active, setActive] = useState(null);
82
+ return (
83
+ <>
84
+ <div className="grid">
85
+ {photos.map((p) => (
86
+ <motion.img key={p.id} layoutId={`photo-${p.id}`} src={p.thumb}
87
+ onClick={() => setActive(p)} />
88
+ ))}
89
+ </div>
90
+ <AnimatePresence>
91
+ {active && (
92
+ <motion.div className="backdrop" onClick={() => setActive(null)}
93
+ initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }}>
94
+ <motion.img layoutId={`photo-${active.id}`} src={active.full} />
95
+ </motion.div>
96
+ )}
97
+ </AnimatePresence>
98
+ </>
99
+ );
100
+ }
101
+ ```
102
+
103
+ Matching `layoutId` makes the thumbnail visually fly to the lightbox and back.
104
+
105
+ ## Drag-to-reorder list
106
+
107
+ `Reorder` handles pointer drag, axis locking, and live reordering with layout animation built in.
108
+
109
+ ```jsx
110
+ function SortableList({ items, setItems }) {
111
+ return (
112
+ <Reorder.Group axis="y" values={items} onReorder={setItems}>
113
+ {items.map((item) => (
114
+ <Reorder.Item key={item} value={item}
115
+ whileDrag={{ scale: 1.03, boxShadow: "0 8px 24px rgba(0,0,0,.18)" }}>
116
+ {item}
117
+ </Reorder.Item>
118
+ ))}
119
+ </Reorder.Group>
120
+ );
121
+ }
122
+ ```
123
+
124
+ For a dedicated drag handle, use `useDragControls`:
125
+
126
+ ```jsx
127
+ const controls = useDragControls();
128
+ <Reorder.Item value={item} dragListener={false} dragControls={controls}>
129
+ <span className="handle" onPointerDown={(e) => controls.start(e)}>⠿</span>
130
+ {item.label}
131
+ </Reorder.Item>
132
+ ```
133
+
134
+ ## Drag with constraints and elastic
135
+
136
+ ```jsx
137
+ const ref = useRef(null);
138
+ <div ref={ref} className="bounds">
139
+ <motion.div drag dragConstraints={ref} dragElastic={0.2}
140
+ dragTransition={{ bounceStiffness: 600, bounceDamping: 20 }} />
141
+ </div>
142
+ ```
143
+
144
+ `dragElastic` (0–1) controls how far past constraints it can be pulled; `dragSnapToOrigin` returns it on release.
145
+
146
+ ## Gesture composition (like button)
147
+
148
+ ```jsx
149
+ function Like() {
150
+ const [liked, setLiked] = useState(false);
151
+ return (
152
+ <motion.button onClick={() => setLiked((v) => !v)} whileTap={{ scale: 0.85 }}>
153
+ <motion.span
154
+ animate={liked ? { scale: [1, 1.4, 1], color: "#ef4444" } : { scale: 1, color: "#9ca3af" }}
155
+ transition={{ duration: 0.35, ease: "easeOut" }}
156
+ >♥</motion.span>
157
+ </motion.button>
158
+ );
159
+ }
160
+ ```
161
+
162
+ Arrays of values (`scale: [1, 1.4, 1]`) are keyframes; control their spacing with `times: [0, 0.6, 1]`.
163
+
164
+ ## Respecting reduced motion
165
+
166
+ ```jsx
167
+ function Panel() {
168
+ const reduce = useReducedMotion();
169
+ return (
170
+ <motion.div
171
+ initial={reduce ? false : { opacity: 0, y: 12 }}
172
+ animate={{ opacity: 1, y: 0 }}
173
+ />
174
+ );
175
+ }
176
+ ```
177
+
178
+ Wrap an app in `<MotionConfig reducedMotion="user">` to globally strip transform/layout animations for users who prefer reduced motion while keeping opacity.
179
+
180
+ ## Performance notes
181
+
182
+ - Prefer `transform`/`opacity`; Framer Motion already uses transforms for `x/y/scale/rotate`.
183
+ - For frequently-updated values (cursor follow, scroll), use `useMotionValue` + `useSpring` instead of React state to avoid re-renders.
184
+ - `layout` is powerful but measure-heavy; avoid putting it on hundreds of simultaneously-animating nodes.
185
+
186
+ ---
187
+ Tune the timing and easing and a micro-interaction feels effortless. Built by **[iart.ai](https://iart.ai/?utm_source=github&utm_medium=readme&utm_campaign=web-animation-skills&utm_content=skill_footer&utm_term=micro-interaction)** — the AI motion agent for editable, on-brand motion graphics.
@@ -0,0 +1,42 @@
1
+ # `scripts/` — verify-loop toolkit
2
+
3
+ Deterministic helpers the agent **calls** instead of hand-rolling, to close every skill's
4
+ *deliver-and-verify* loop: freeze a moment, see start/mid/end at a glance, and assert the
5
+ encoded file's real spec. Small, dependency-light, tier-matched.
6
+
7
+ | Script | Tier | What it does |
8
+ |---|---|---|
9
+ | `seek-shot.sh` | **Light** (standalone HTML) | Drives the page's `?t=N` seek harness and screenshots each frozen moment. |
10
+ | `contact-sheet.sh` | any | Tiles the frames side-by-side into one image (start \| mid \| end) for one-glance review. |
11
+ | `probe-mp4.sh` | **Heavy** (Remotion / Manim) | Reads + asserts the MP4's real resolution / codec / fps / duration. |
12
+
13
+ ## Usage by tier
14
+
15
+ **Light — standalone HTML** (`?t=N` harness): freeze, shoot, tile.
16
+ ```bash
17
+ scripts/seek-shot.sh anim.html 0 1.5 3 # → frame-0.png frame-1.5.png frame-3.png
18
+ scripts/contact-sheet.sh sheet.png frame-*.png
19
+ # inspect sheet.png: matches the brief? clipped text / off-canvas / FOUC?
20
+ ```
21
+
22
+ **Heavy — Remotion**: render stills with the *real* shipped props, tile, then assert the MP4.
23
+ ```bash
24
+ npx remotion still Short out/f-hook.png --frame=10 --props='{...}'
25
+ npx remotion still Short out/f-mid.png --frame=N --props='{...}'
26
+ npx remotion still Short out/f-end.png --frame=L --props='{...}'
27
+ scripts/contact-sheet.sh sheet.png out/f-hook.png out/f-mid.png out/f-end.png
28
+ npx remotion render Short out/short.mp4 --props='{...}'
29
+ scripts/probe-mp4.sh out/short.mp4 1080x1920 30 # vertical short contract
30
+ ```
31
+
32
+ **Heavy — Manim**: save the last frame (`-s`) / a range (`-n a,b`), tile, assert.
33
+ ```bash
34
+ manim -s -ql scene.py MyScene # media/images/.../MyScene.png
35
+ scripts/probe-mp4.sh media/videos/scene/480p15/MyScene.mp4
36
+ ```
37
+
38
+ ## Requirements
39
+ - `seek-shot.sh` → `npx` + Playwright Chromium (`npx playwright install chromium` once).
40
+ - `contact-sheet.sh` / `probe-mp4.sh` → `ffmpeg` / `ffprobe`.
41
+
42
+ All three are POSIX `bash`; run them from the project where your deliverable lives.
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env bash
2
+ # contact-sheet.sh — tile frames side-by-side into one image for one-glance inspection.
3
+ #
4
+ # The verify loop wants start | mid | end seen together (does the hook read? does the loop seam
5
+ # match? any clipped text?). One image beats flipping between three.
6
+ #
7
+ # Usage:
8
+ # scripts/contact-sheet.sh sheet.png frame-0.png frame-1.5.png frame-3.png
9
+ # All inputs must share the same height (frames from the same render do). Needs: ffmpeg.
10
+ set -euo pipefail
11
+ out="${1:?usage: contact-sheet.sh <out.png> <frame.png> [frame.png ...]}"; shift
12
+ [ "$#" -ge 1 ] || { echo "need at least one frame"; exit 1; }
13
+ inputs=(); for f in "$@"; do inputs+=(-i "$f"); done
14
+ if [ "$#" -eq 1 ]; then cp "$1" "$out"; else
15
+ ffmpeg -y "${inputs[@]}" -filter_complex "hstack=inputs=$#" "$out" -loglevel error
16
+ fi
17
+ echo " ✓ contact sheet ($# frame(s)) → $out"
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env bash
2
+ # seek-shot.sh — LIGHT tier (standalone HTML): freeze the animation at given times and screenshot each.
3
+ #
4
+ # Drives the skill's own `?t=N` seek harness (the page does `tl.pause(); tl.seek(t)` on load), so
5
+ # every shot lands on a deterministic still — the web parallel of pinning a video frame.
6
+ #
7
+ # Usage:
8
+ # scripts/seek-shot.sh anim.html 0 1.5 3 # screenshot at t=0,1.5,3 seconds
9
+ # scripts/seek-shot.sh anim.html # defaults to 0, 1.5, 3
10
+ # Output: frame-<t>.png in the current directory.
11
+ # Needs: npx (Playwright auto-fetches Chromium on first run: `npx playwright install chromium`).
12
+ set -euo pipefail
13
+ html="${1:?usage: seek-shot.sh <file.html> [t1 t2 ...]}"; shift || true
14
+ times=("$@"); [ "${#times[@]}" -eq 0 ] && times=(0 1.5 3)
15
+ abs="$(cd "$(dirname "$html")" && pwd)/$(basename "$html")"
16
+ for t in "${times[@]}"; do
17
+ out="frame-${t}.png"
18
+ npx -y playwright screenshot --wait-for-timeout=600 "file://${abs}?t=${t}" "$out" >/dev/null 2>&1
19
+ echo " ✓ t=${t}s → $out"
20
+ done
21
+ echo " → tile them: scripts/contact-sheet.sh sheet.png frame-*.png"
@@ -0,0 +1,6 @@
1
+ # Notice
2
+
3
+ This skill comes from https://github.com/ibelick/ui-skills (`skills/fixing-motion-performance/SKILL.md`).
4
+ Licence: MIT (evidence: repository license, https://github.com/ibelick/ui-skills/blob/main/LICENSE, checked 2026-11-08).
5
+
6
+ Luci converted it to the Luci Skill Standard: SKILL.md metadata keys and luci.json. The instructions are unchanged.
@@ -0,0 +1,156 @@
1
+ ---
2
+ name: "fixing-motion-performance"
3
+ description: "Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects. Use when animations stutter, transitions jank, or reviewing CSS/JS animation performance."
4
+ license: "MIT"
5
+ metadata:
6
+ luci-category: "performance"
7
+ luci-author: "ui-skills"
8
+ luci-version: "1.0.0"
9
+ ---
10
+
11
+ # fixing-motion-performance
12
+
13
+ Fix animation performance issues.
14
+
15
+ ## how to use
16
+
17
+ - `/fixing-motion-performance`
18
+ Apply these constraints to any UI animation work in this conversation.
19
+
20
+ - `/fixing-motion-performance <file>`
21
+ Review the file against all rules below and report:
22
+ - violations (quote the exact line or snippet)
23
+ - why it matters (one short sentence)
24
+ - a concrete fix (code-level suggestion)
25
+
26
+ Do not migrate animation libraries unless explicitly requested. Apply rules within the existing stack.
27
+
28
+ ## when to apply
29
+
30
+ Reference these guidelines when:
31
+ - adding or changing UI animations (CSS, WAAPI, Motion, rAF, GSAP)
32
+ - refactoring janky interactions or transitions
33
+ - implementing scroll-linked motion or reveal-on-scroll
34
+ - animating layout, filters, masks, gradients, or CSS variables
35
+ - reviewing components that use will-change, transforms, or measurement
36
+
37
+ ## rendering steps glossary
38
+
39
+ - composite: transform, opacity
40
+ - paint: color, borders, gradients, masks, images, filters
41
+ - layout: size, position, flow, grid, flex
42
+
43
+ ## rule categories by priority
44
+
45
+ | priority | category | impact |
46
+ |----------|----------|--------|
47
+ | 1 | never patterns | critical |
48
+ | 2 | choose the mechanism | critical |
49
+ | 3 | measurement | high |
50
+ | 4 | scroll | high |
51
+ | 5 | paint | medium-high |
52
+ | 6 | layers | medium |
53
+ | 7 | blur and filters | medium |
54
+ | 8 | view transitions | low |
55
+ | 9 | tool boundaries | critical |
56
+
57
+ ## quick reference
58
+
59
+ ### 1. never patterns (critical)
60
+
61
+ - do not interleave layout reads and writes in the same frame
62
+ - do not animate layout continuously on large or meaningful surfaces
63
+ - do not drive animation from scrollTop, scrollY, or scroll events
64
+ - no requestAnimationFrame loops without a stop condition
65
+ - do not mix multiple animation systems that each measure or mutate layout
66
+
67
+ ### 2. choose the mechanism (critical)
68
+
69
+ - default to transform and opacity for motion
70
+ - use JS-driven animation only when interaction requires it
71
+ - paint or layout animation is acceptable only on small, isolated surfaces
72
+ - one-shot effects are acceptable more often than continuous motion
73
+ - prefer downgrading technique over removing motion entirely
74
+
75
+ ### 3. measurement (high)
76
+
77
+ - measure once, then animate via transform or opacity
78
+ - batch all DOM reads before writes
79
+ - do not read layout repeatedly during an animation
80
+ - prefer FLIP-style transitions for layout-like effects
81
+ - prefer approaches that batch measurement and writes
82
+
83
+ ### 4. scroll (high)
84
+
85
+ - prefer Scroll or View Timelines for scroll-linked motion when available
86
+ - use IntersectionObserver for visibility and pausing
87
+ - do not poll scroll position for animation
88
+ - pause or stop animations when off-screen
89
+ - scroll-linked motion must not trigger continuous layout or paint on large surfaces
90
+
91
+ ### 5. paint (medium-high)
92
+
93
+ - paint-triggering animation is allowed only on small, isolated elements
94
+ - do not animate paint-heavy properties on large containers
95
+ - do not animate CSS variables for transform, opacity, or position
96
+ - do not animate inherited CSS variables
97
+ - scope animated CSS variables locally and avoid inheritance
98
+
99
+ ### 6. layers (medium)
100
+
101
+ - compositor motion requires layer promotion, never assume it
102
+ - use will-change temporarily and surgically
103
+ - avoid many or large promoted layers
104
+ - validate layer behavior with tooling when performance matters
105
+
106
+ ### 7. blur and filters (medium)
107
+
108
+ - keep blur animation small (<=8px)
109
+ - use blur only for short, one-time effects
110
+ - never animate blur continuously
111
+ - never animate blur on large surfaces
112
+ - prefer opacity and translate before blur
113
+
114
+ ### 8. view transitions (low)
115
+
116
+ - use view transitions only for navigation-level changes
117
+ - avoid view transitions for interaction-heavy UI
118
+ - avoid view transitions when interruption or cancellation is required
119
+ - treat size changes as potentially layout-triggering
120
+
121
+ ### 9. tool boundaries (critical)
122
+
123
+ - do not migrate or rewrite animation libraries unless explicitly requested
124
+ - apply these rules within the existing animation system
125
+ - never partially migrate APIs or mix styles within the same component
126
+
127
+ ## common fixes
128
+
129
+ ```css
130
+ /* layout thrashing: animate transform instead of width */
131
+ /* before */ .panel { transition: width 0.3s; }
132
+ /* after */ .panel { transition: transform 0.3s; }
133
+
134
+ /* scroll-linked: use scroll-timeline instead of JS */
135
+ /* before */ window.addEventListener('scroll', () => el.style.opacity = scrollY / 500)
136
+ /* after */ .reveal { animation: fade-in linear; animation-timeline: view(); }
137
+ ```
138
+
139
+ ```js
140
+ // measurement: batch reads before writes (FLIP)
141
+ // before — layout thrash
142
+ el.style.left = el.getBoundingClientRect().left + 10 + 'px';
143
+ // after — measure once, animate via transform
144
+ const first = el.getBoundingClientRect();
145
+ el.classList.add('moved');
146
+ const last = el.getBoundingClientRect();
147
+ el.style.transform = `translateX(${first.left - last.left}px)`;
148
+ requestAnimationFrame(() => { el.style.transition = 'transform 0.3s'; el.style.transform = ''; });
149
+ ```
150
+
151
+ ## review guidance
152
+
153
+ - enforce critical rules first (never patterns, tool boundaries)
154
+ - choose the least expensive rendering work that matches the intent
155
+ - for any non-default choice, state the constraint that justifies it (surface size, duration, or interaction requirement)
156
+ - when reviewing, prefer actionable notes and concrete alternatives over theory
@@ -0,0 +1,30 @@
1
+ {
2
+ "lss": 1,
3
+ "frameworks": [
4
+ "react",
5
+ "nextjs",
6
+ "framer-motion"
7
+ ],
8
+ "lastVerified": "2026-11-06",
9
+ "source": {
10
+ "repo": "ibelick/ui-skills",
11
+ "path": "skills/fixing-motion-performance/SKILL.md",
12
+ "licenseVerified": true,
13
+ "licenseStatus": "open",
14
+ "licenseEvidence": "repository license",
15
+ "licenseUrl": "https://github.com/ibelick/ui-skills/blob/main/LICENSE",
16
+ "licenseCheckedAt": "2026-11-08"
17
+ },
18
+ "summary": "Audit and fix animation performance issues including layout thrashing, compositor properties, scroll-linked motion, and blur effects. Use when animations stutter, transitions jank, or reviewing CSS/JS animation performance.",
19
+ "whenToUse": [
20
+ "Use when animations stutter, transitions jank, or reviewing CSS/JS animation performance."
21
+ ],
22
+ "domains": [
23
+ "software"
24
+ ],
25
+ "derived": [
26
+ "domains",
27
+ "summary",
28
+ "whenToUse"
29
+ ]
30
+ }
@@ -0,0 +1,6 @@
1
+ # Notice
2
+
3
+ This skill comes from https://github.com/ibelick/ui-skills (`skills/fixing-metadata/SKILL.md`).
4
+ Licence: MIT (evidence: declared in original SKILL.md, https://github.com/ibelick/ui-skills/blob/main/skills/fixing-metadata/SKILL.md, checked 2026-11-08).
5
+
6
+ Luci converted it to the Luci Skill Standard: SKILL.md metadata keys and luci.json. The instructions are unchanged.