@luci-dev/skills 0.0.0-stage → 0.5.0

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,286 @@
1
+ # Radix -> Base UI migration mapping
2
+
3
+ Sources: (1) mechanical diff of the 61 component pairs in
4
+ `apps/v4/registry/bases/{radix,base}/ui/` (ground truth, authored by us),
5
+ (2) `radix-ui@1.4.3` package exports, (3) base-ui.com docs index for
6
+ `@base-ui/react@1.6.0`. Built 2026-07-02 as the knowledge base for the
7
+ migration agent's `primitives/` skills.
8
+
9
+ ## Coverage matrix
10
+
11
+ All radix-ui exports, classified for migration:
12
+
13
+ | Radix primitive | Base UI target | Class |
14
+ |---|---|---|
15
+ | Accordion | Accordion | direct (Content->Panel) |
16
+ | AlertDialog | Alert Dialog | restructured (Overlay->Backdrop, Content->Popup, Cancel->Close, Action dropped) |
17
+ | AspectRatio | none | missing: plain div + CSS `aspect-ratio` (`--ratio` var) |
18
+ | Avatar | Avatar | direct |
19
+ | Checkbox | Checkbox | direct (cleanest 1:1) |
20
+ | Collapsible | Collapsible | direct (Content->Panel) |
21
+ | ContextMenu | Context Menu | restructured (menu mapping) |
22
+ | Dialog | Dialog | restructured (Overlay->Backdrop, Content->Popup) |
23
+ | DropdownMenu | Menu | RENAMED + restructured (canonical menu mapping) |
24
+ | Form | Form + Field + Fieldset | restructured (split into three) |
25
+ | HoverCard | Preview Card | RENAMED + positioner model |
26
+ | Label | none | missing: native `<label>` (Field.Label inside forms) |
27
+ | Menubar | Menubar + Menu | restructured (menubar root only; menus delegate to Menu) |
28
+ | NavigationMenu | Navigation Menu | heavily restructured (Viewport -> Positioner/Popup/Viewport, Indicator->Icon) |
29
+ | Popover | Popover | positioner model (Anchor dropped; verify vs docs) |
30
+ | Progress | Progress | restructured (new Track/Label/Value parts, no manual transform) |
31
+ | RadioGroup | Radio Group + Radio | restructured (Item -> Radio.Root, two subpath imports) |
32
+ | ScrollArea | Scroll Area | direct (Scrollbar/Thumb renames) |
33
+ | Select | Select | restructured (Viewport->List, ScrollButtons->ScrollArrows, alignItemWithTrigger) |
34
+ | Separator | Separator | direct (callable; `decorative` dropped) |
35
+ | Slider | Slider | restructured (Range->Indicator, new Control, thumbAlignment) |
36
+ | Switch | Switch | direct (1:1) |
37
+ | Tabs | Tabs | direct (Trigger->Tab, Content->Panel) |
38
+ | Toast | Toast | restructured (not in our registry pairs; spec from docs; shadcn users mostly use sonner) |
39
+ | Toggle | Toggle | direct (callable) |
40
+ | ToggleGroup | Toggle Group + Toggle | direct (items use Toggle primitive) |
41
+ | Toolbar | Toolbar | direct-ish (not in our pairs; spec from docs) |
42
+ | Tooltip | Tooltip | positioner model (delayDuration->delay on Provider) |
43
+ | unstable_OneTimePasswordField | OTP Field | from docs (our registry uses input-otp instead) |
44
+ | unstable_PasswordToggleField | none | missing: Input + custom toggle |
45
+
46
+ Utilities:
47
+
48
+ | Radix utility | Base UI equivalent |
49
+ |---|---|
50
+ | Slot / asChild | `render` prop; `useRender` + `mergeProps` for the manual Slot idiom |
51
+ | Portal | none standalone; per-component `Portal` parts |
52
+ | VisuallyHidden | none; `sr-only` class |
53
+ | AccessibleIcon | none; aria-label + sr-only text |
54
+ | Direction | Direction Provider |
55
+
56
+ Base UI-only (new capabilities, NOT migration targets): Autocomplete, Combobox,
57
+ Input, Number Field, Checkbox Group, Meter, Filter, CSP Provider.
58
+
59
+ CORRECTION (dry-run finding): Base UI also ships a `Button` primitive
60
+ (`@base-ui/react/button`) that supports `render`. A shadcn button.tsx using
61
+ the Slot/asChild idiom migrates to `<ButtonPrimitive>` directly, NOT to a
62
+ hand-rolled useRender wrapper. useRender + mergeProps remains correct for
63
+ non-button polymorphic components (breadcrumb link, marker).
64
+
65
+ Never touched by migration (third-party on both sides): cmdk (command), vaul*
66
+ (drawer; see drawer section: our base drawer moved vaul -> @base-ui/react/drawer),
67
+ sonner, input-otp, react-day-picker (calendar), recharts (chart).
68
+
69
+ ## Universal patterns (apply across all components)
70
+
71
+ ### Imports
72
+ Radix appears in TWO import forms; both map to the same Base UI subpath:
73
+ - Unified package (current shadcn):
74
+ `import { X as XPrimitive } from "radix-ui"` ->
75
+ `import { X as XPrimitive } from "@base-ui/react/<kebab-name>"`.
76
+ - Individual packages (legacy/2024-era, e.g. fixture 03):
77
+ `import * as XPrimitive from "@radix-ui/react-<name>"` ->
78
+ `import { X as XPrimitive } from "@base-ui/react/<kebab-name>"`.
79
+ (The namespace `* as` import becomes a named import; remove the individual
80
+ `@radix-ui/react-*` package from package.json.)
81
+ One subpath per component either way.
82
+ - Types: `React.ComponentProps<typeof XPrimitive.Part>` -> `XPrimitive.Part.Props`.
83
+ Positioner props via `Pick<XPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">`.
84
+ - Single-part primitives are callable: radix `XPrimitive.Root` -> `XPrimitive`
85
+ (separator, toggle, toggle-group root, radio-group root, menubar root).
86
+
87
+ ### asChild -> render
88
+ - `<Primitive.Close asChild><Button/></Primitive.Close>` ->
89
+ `<Primitive.Close render={<Button/>}>...</Primitive.Close>`.
90
+ - Manual Slot idiom (`const Comp = asChild ? Slot.Root : "a"`) ->
91
+ `useRender` + `mergeProps` from `@base-ui/react/use-render` /
92
+ `@base-ui/react/merge-props`; prop type `useRender.ComponentProps<"a">`.
93
+
94
+ ### Portal / positioning model (biggest structural change)
95
+ - Radix: `Portal > Content`, positioning props on Content.
96
+ - Base UI: `Portal > Positioner > Popup`. `side`, `sideOffset`, `align`,
97
+ `alignOffset` (and select's `alignItemWithTrigger`) move to Positioner;
98
+ Popup is the styled box. Positioner conventionally gets `isolate z-50`.
99
+ - `Overlay` -> `Backdrop` (dialogs, sheets, drawers). Centered modals
100
+ (dialog/alert-dialog) use Popup WITHOUT a Positioner.
101
+
102
+ ### Data attributes / class hooks
103
+ - `data-[state=open]` -> `data-open`; `data-[state=closed]` -> `data-closed`.
104
+ - Enter/exit animations: `data-[state=open]:animate-in` /
105
+ `data-[state=closed]:animate-out` -> `data-starting-style:*` /
106
+ `data-ending-style:*` (transition-based, not keyframes).
107
+ - New Base UI hook: `data-popup-open` (open-submenu/trigger marker).
108
+ - Some triggers gain `aria-disabled:*` variants alongside `disabled:*`
109
+ (accordion, tabs).
110
+
111
+ ### CSS custom properties
112
+ - `--radix-<comp>-content-transform-origin` -> `--transform-origin`
113
+ - `--radix-<comp>-content-available-height` -> `--available-height`
114
+ - `--radix-<comp>-trigger-width` -> `--anchor-width`
115
+ - `--radix-accordion-content-height` -> `--accordion-panel-height`
116
+ - nav-menu `--radix-navigation-menu-viewport-height/width` ->
117
+ `--positioner-height/width`, `--popup-height/width`, `--available-width`
118
+
119
+ ### Props
120
+ - Tooltip Provider: `delayDuration` -> `delay`.
121
+ - Select: `position="popper"|"item-aligned"` -> `alignItemWithTrigger` boolean.
122
+ - Slider: gains `thumbAlignment` ("edge"); `Range` -> `Indicator` + new `Control`.
123
+ - Navigation Menu: `viewport` boolean dropped; `align` forwarded to Positioner.
124
+ - `value` / `defaultValue` / `onOpenChange` signatures pass through unchanged at
125
+ the wrapper level (verify per-primitive callback signatures against docs when
126
+ authoring specs; wrappers do not exercise them all).
127
+
128
+ ## Part-rename quick reference
129
+
130
+ | radix part | Base UI part |
131
+ |---|---|
132
+ | `*.Root` (single-part comps) | callable `*Primitive` |
133
+ | `Overlay` | `Backdrop` |
134
+ | `Content` (overlay comps) | `Popup` (inside `Positioner`) |
135
+ | `Content` (accordion/collapsible/tabs) | `Panel` |
136
+ | tabs `Trigger` | `Tab` |
137
+ | menu `Label` | `GroupLabel` |
138
+ | menu `ItemIndicator` | `CheckboxItemIndicator` / `RadioItemIndicator` |
139
+ | `Sub` / `SubTrigger` | `SubmenuRoot` / `SubmenuTrigger` |
140
+ | slider `Range` | `Indicator` (+ new `Control`) |
141
+ | select `Viewport` | `List` |
142
+ | select `ScrollUp/DownButton` | `ScrollUp/DownArrow` |
143
+ | scroll-area `ScrollAreaScrollbar` / `ScrollAreaThumb` | `Scrollbar` / `Thumb` |
144
+ | nav-menu `Indicator` | `Icon` |
145
+ | nav-menu `Viewport` | `Positioner > Popup > Viewport` |
146
+ | hover-card `HoverCard*` | `PreviewCard*` |
147
+ | radio-group `Item` / `Indicator` | `Radio.Root` / `Radio.Indicator` |
148
+ | popover `Anchor` | dropped (verify against docs) |
149
+ | alert-dialog `Cancel` / `Action` | `Close` / dropped (plain Button) |
150
+ | separator `decorative` prop | dropped |
151
+ | Label primitive | native `<label>` |
152
+
153
+ ## Per-component notes
154
+
155
+ ### accordion
156
+ Root/Item/Header/Trigger same; Content -> Panel. Trigger `disabled:*` ->
157
+ `aria-disabled:*`. Height var -> `--accordion-panel-height`; add
158
+ `data-starting-style:h-0 data-ending-style:h-0`.
159
+
160
+ ### dialog / alert-dialog / sheet
161
+ Overlay -> Backdrop, Content -> Popup, Close kept (`asChild` -> `render`).
162
+ Alert-dialog: Cancel -> Close; Action has no primitive (plain Button).
163
+ Sheet: slide animations rewritten from animate-in/out to
164
+ `data-starting-style` / `data-ending-style` with explicit translate per
165
+ `data-[side=...]`. Centered modals: no Positioner.
166
+
167
+ ### drawer (vaul -> Base UI) — OPT-IN ONLY, not part of a radix migration
168
+ Vaul is NOT radix: during a radix -> base-ui migration, leave drawer.tsx
169
+ untouched and report it (hard rule in SKILL.md). This mapping exists only for
170
+ when the user EXPLICITLY asks to also move their drawer off vaul.
171
+ Root gains `modal`, `snapPoints`, `swipeDirection` (default "down"),
172
+ `showSwipeHandle`. Content (single) -> `Viewport > Popup > Content`.
173
+ `data-[vaul-drawer-direction=...]` -> `data-[swipe-direction=...]` /
174
+ `data-[swipe-axis=...]` + `--drawer-*` vars. New SwipeHandle part and a
175
+ context provider in our wrapper. This is a vaul migration, not radix.
176
+
177
+ ### popover / tooltip / hover-card
178
+ Portal > Positioner > Popup. Popover: Anchor dropped, Title is now a real
179
+ primitive part. Tooltip: Provider `delayDuration` -> `delay`; Content gains
180
+ side/align/alignOffset; default sideOffset 0 -> 4; Arrow gets explicit
181
+ per-side positioning classes. HoverCard: primitive renamed PreviewCard
182
+ (public wrapper names stay HoverCard*).
183
+
184
+ ### menus (dropdown-menu -> Menu; context-menu; menubar)
185
+ Canonical mapping: Label -> GroupLabel, ItemIndicator ->
186
+ CheckboxItemIndicator/RadioItemIndicator, Sub -> SubmenuRoot, SubTrigger ->
187
+ SubmenuTrigger, Content -> Portal > Positioner > Popup, SubContent rebuilt
188
+ from the Content component. Content hoists align/alignOffset/side/sideOffset.
189
+ SubTrigger open marker: `data-popup-open`. Context-menu has its own subpath
190
+ (`@base-ui/react/context-menu`), same anatomy. Menubar: only the root and
191
+ checkbox/radio items are menubar/menu primitives; everything else delegates
192
+ to the Menu wrappers (radix Menubar.Menu -> Menu.Root).
193
+
194
+ ### select
195
+ Label -> GroupLabel, Viewport -> List, ScrollUp/DownButton ->
196
+ ScrollUp/DownArrow. Icon/ItemIndicator go `asChild` -> `render`.
197
+ `position` -> `alignItemWithTrigger` (default true) on Positioner. Vars ->
198
+ `--available-height` / `--anchor-width` / `--transform-origin`.
199
+
200
+ ### form controls
201
+ Checkbox: 1:1. Switch: 1:1. Radio group: group from
202
+ `@base-ui/react/radio-group` (callable), items from `@base-ui/react/radio`
203
+ (`Radio.Root` + `Radio.Indicator`). Slider: `Root > Control > Track >
204
+ Indicator` + Thumbs, `thumbAlignment="edge"`; layout classes move Root ->
205
+ Control. Toggle/toggle-group: callable primitives; group items reuse Toggle.
206
+
207
+ ### tabs / collapsible / progress / separator / scroll-area / label
208
+ Tabs: Trigger -> Tab, Content -> Panel, `aria-disabled:*` added. Collapsible:
209
+ Content -> Panel. Progress: new Track/Label/Value parts; primitive computes
210
+ fill (drop the manual translateX). Separator: callable, `decorative` dropped.
211
+ Scroll-area: Scrollbar/Thumb renames only. Label: no primitive; native
212
+ `<label>`.
213
+
214
+ ### navigation-menu
215
+ Viewport moves out of Root into `Portal > Positioner > Popup > Viewport`
216
+ (our NavigationMenuPositioner). Indicator -> Icon. `viewport` boolean prop
217
+ removed; `align` forwarded to Positioner. New `data-instant`,
218
+ `data-activation-direction` hooks; vars -> `--positioner-height/width`,
219
+ `--popup-height/width`.
220
+
221
+ ### breadcrumb / marker (Slot users)
222
+ `Slot.Root` + `asChild` -> `useRender` + `mergeProps`
223
+ (`useRender.ComponentProps<"a">`, `render` prop, `state.slot`).
224
+
225
+ ## Doc-validation TODOs (before specs are final)
226
+
227
+ 1. Popover Anchor: confirm Base UI has no anchor equivalent (Positioner may
228
+ accept an `anchor` prop; our wrapper simply dropped the part).
229
+ 2. Callback signatures: radix `onOpenChange(open)` vs Base UI
230
+ `onOpenChange(open, event, reason)` style differences; wrappers pass
231
+ through so the pair diff cannot see them. Check per primitive.
232
+ 3. Toast, Toolbar, Form/Field/Fieldset, OTP Field: not covered by our pairs;
233
+ author these specs from docs alone.
234
+ 4. Controlled-prop names on menus/select (`open`, `value`, `highlighted`)
235
+ and any `defaultChecked`/`checked` nuances.
236
+ 5. Focus/dismissal behavior knobs (`onInteractOutside`, `onEscapeKeyDown` ->
237
+ Base UI equivalents) which our wrappers do not surface.
238
+
239
+ ## Slot -> useRender: WORKED EXAMPLE (avoid the mergeProps pitfall)
240
+
241
+ Radix:
242
+ ```tsx
243
+ import { Slot } from "radix-ui"
244
+ function BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<"a"> & { asChild?: boolean }) {
245
+ const Comp = asChild ? Slot.Root : "a"
246
+ return <Comp data-slot="breadcrumb-link" className={cn("...", className)} {...props} />
247
+ }
248
+ ```
249
+
250
+ Base UI:
251
+ ```tsx
252
+ import { mergeProps } from "@base-ui/react/merge-props"
253
+ import { useRender } from "@base-ui/react/use-render"
254
+
255
+ function BreadcrumbLink({ className, render, ...props }: useRender.ComponentProps<"a">) {
256
+ return useRender({
257
+ defaultTagName: "a",
258
+ render,
259
+ props: mergeProps<"a">(
260
+ // PITFALL: data-* attributes fail excess-property checking when passed
261
+ // as an object literal into mergeProps (they are only special-cased in
262
+ // JSX). Cast the literal:
263
+ { "data-slot": "breadcrumb-link", className: cn("...", className) } as React.ComponentProps<"a">,
264
+ props
265
+ ),
266
+ })
267
+ }
268
+ ```
269
+
270
+ Two rules:
271
+ 1. This pattern is ONLY for non-button polymorphic components (breadcrumb
272
+ link, marker, badge, item...). `button.tsx` migrates to the real
273
+ `@base-ui/react/button` primitive, which accepts `render` natively.
274
+ 2. Always cast object literals containing `data-*` keys passed to
275
+ `mergeProps` (`as React.ComponentProps<"tag">`), or tsc fails on every one.
276
+
277
+ ## Positioner props: Pick means FORWARD
278
+
279
+ When a wrapper exposes positioning props via
280
+ `Pick<XPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">`,
281
+ you MUST destructure each of those props in the wrapper and pass them to
282
+ `<XPrimitive.Positioner>` explicitly. If you forget, they fall through
283
+ `...props` onto the Popup (wrong DOM node) and positioning silently breaks.
284
+ No JSX-level type error catches this; only the wrapper's own destructuring
285
+ discipline and a browser check do. Checklist per overlay wrapper:
286
+ declare -> destructure -> forward. All three, every time.
@@ -0,0 +1,110 @@
1
+ # Target wrapper shapes (golden-derived specifics)
2
+
3
+ Facts learned by diffing hand migrations against the shadcn base registry
4
+ wrappers. These close gaps the mapping tables cannot express: exact classes,
5
+ defaults, and composition shapes. When migrating shadcn-style wrappers,
6
+ prefer these shapes.
7
+
8
+ ## Conventions
9
+
10
+ - Positioner parts get NO `data-slot` attribute; keep data-slot on the parts
11
+ the radix wrapper already had.
12
+ - Menu-family Positioner: `className="isolate z-50 outline-none"`; the Popup
13
+ KEEPS `z-50` and `outline-none` too. Tooltip: Popup keeps `z-50`,
14
+ Positioner gets `isolate z-50`. Select: `isolate z-50` lives on the Popup,
15
+ Positioner gets no class.
16
+ - The base registry adds `cn-<comp>-content-logical` (and for tooltip also
17
+ `cn-tooltip-arrow-logical`) companion classes next to the existing
18
+ `cn-<comp>-content` hooks on popover, tooltip, hover-card, dropdown,
19
+ context-menu, select, menubar popups. Add them when the source uses cn-*
20
+ hooks; skip for plain-Tailwind projects.
21
+
22
+ ## Button
23
+
24
+ Base UI HAS a Button primitive: `import { Button as ButtonPrimitive } from
25
+ "@base-ui/react/button"`. A shadcn button.tsx with the Slot/asChild idiom
26
+ migrates to `<ButtonPrimitive>` directly (which supports `render`), NOT to a
27
+ hand-rolled useRender wrapper. Reserve useRender + mergeProps for
28
+ non-button polymorphic components (breadcrumb link, marker).
29
+
30
+ ## Tooltip Arrow (literal classes)
31
+
32
+ ```tsx
33
+ <TooltipPrimitive.Arrow
34
+ className={cn(
35
+ "cn-tooltip-arrow cn-tooltip-arrow-logical",
36
+ "data-[side=bottom]:top-1 data-[side=left]:right-[-13px] data-[side=left]:top-1/2! data-[side=left]:-translate-y-1/2 data-[side=right]:left-[-13px] data-[side=right]:top-1/2! data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5",
37
+ className
38
+ )}
39
+ />
40
+ ```
41
+
42
+ Verify against the current base registry tooltip before relying on the exact
43
+ pixel values; the shape (per-side offsets + translate, no rotation) is the
44
+ stable part. Golden default: `alignOffset = 0`, `sideOffset = 4`.
45
+
46
+ ## DropdownMenu / ContextMenu SubContent
47
+
48
+ Compose the PUBLIC Content wrapper, do not rebuild from primitives:
49
+
50
+ ```tsx
51
+ function DropdownMenuSubContent(props) {
52
+ return (
53
+ <DropdownMenuContent
54
+ align="start"
55
+ alignOffset={-3}
56
+ side="right"
57
+ sideOffset={0}
58
+ className={cn("w-auto", props.className)}
59
+ {...props}
60
+ />
61
+ )
62
+ }
63
+ ```
64
+
65
+ The `-3` / `0` defaults are load-bearing (visual alignment with the parent
66
+ menu). NOTE: the live registry shapes SubContent differently per menu:
67
+ context-menu is a true minimal compose (as above), while dropdown-menu's
68
+ SubContent duplicates the full content class list (including translucent menu
69
+ styling) rather than composing. When a golden pair exists, copy the golden
70
+ shape; this example is the fallback.
71
+
72
+ DANGER — do not confuse SubContent defaults with main-Content defaults. The
73
+ values above are ONLY for the *submenu* wrappers (DropdownMenuSubContent /
74
+ ContextMenuSubContent). The MAIN ContextMenuContent (the pointer-anchored
75
+ right-click menu) keeps its own positioning — do NOT apply
76
+ `side="right"`/`alignOffset` to it, or every right-click menu mispositions.
77
+ - ContextMenu SUBContent defaults: `align="start" alignOffset={4} side="right" sideOffset={0}`.
78
+ - DropdownMenu SUBContent defaults: `align="start" alignOffset={-3} side="right" sideOffset={0}`.
79
+ - Main Content (either): keep the wrapper's existing align/sideOffset; do not add a side.
80
+
81
+ ## SubTrigger open styling
82
+
83
+ Base wrappers ADD `data-popup-open:bg-accent
84
+ data-popup-open:text-accent-foreground` to SubTrigger (no radix equivalent
85
+ class existed; the open styling was previously data-[state=open]).
86
+
87
+ ## Select
88
+
89
+ - Bare re-export: `const Select = SelectPrimitive.Root` (no wrapper function,
90
+ no data-slot on Root). `SelectPrimitive.Root.Props` is GENERIC
91
+ (<Value, Multiple>), which breaks the usual ComponentProps pattern; the
92
+ bare re-export sidesteps it.
93
+ - Drop the radix `position` prop entirely; expose `alignItemWithTrigger`
94
+ (default true) picked from Positioner.Props, `sideOffset = 4`.
95
+ - Item anatomy: `ItemText` FIRST with `cn-select-item-text shrink-0
96
+ whitespace-nowrap`, then `ItemIndicator render={<span
97
+ className="cn-select-item-indicator" />}`.
98
+ - Scroll arrows get `top-0 w-full` / `bottom-0 w-full`; List has no classes.
99
+
100
+ ## Accordion animation placement
101
+
102
+ `h-(--accordion-panel-height)`, `data-starting-style:h-0`, and
103
+ `data-ending-style:h-0` all go on the INNER div of the Panel (the element
104
+ that previously carried the radix height animation), not on the Panel itself.
105
+
106
+ ## Tabs
107
+
108
+ The base registry accepts Base UI's manual-activation default (no
109
+ `activateOnFocus`), and does not forward `orientation` beyond what the radix
110
+ wrapper did. Match it: flag the behavior delta, do not patch it.
@@ -0,0 +1,6 @@
1
+ # Notice
2
+
3
+ This skill comes from https://github.com/shadcn-ui/ui (`skills/shadcn/SKILL.md`).
4
+ Licence: MIT (evidence: repository license, https://github.com/shadcn-ui/ui/blob/main/LICENSE.md, 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,187 @@
1
+ ---
2
+ name: "shadcn"
3
+ description: "Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn/ui."
4
+ license: "MIT"
5
+ allowed-tools: "Bash(npx shadcn@latest *), Bash(pnpm dlx shadcn@latest *), Bash(bunx --bun shadcn@latest *)"
6
+ metadata:
7
+ luci-category: "shadcn-ui"
8
+ luci-author: "unknown"
9
+ luci-version: "1.0.0"
10
+ ---
11
+
12
+ # shadcn/ui
13
+
14
+ A framework for building ui, components and design systems. Components are added as source code to the user's project via the CLI.
15
+
16
+ > **IMPORTANT:** Run all CLI commands using the project's package runner: `npx shadcn@latest`, `pnpm dlx shadcn@latest`, or `bunx --bun shadcn@latest` — based on the project's `packageManager`. Examples below use `npx shadcn@latest` but substitute the correct runner for the project.
17
+
18
+ ## Current Project Context
19
+
20
+ ```json
21
+ !`npx shadcn@latest info --json`
22
+ ```
23
+
24
+ The JSON above contains the project config and installed components. Use `npx shadcn@latest docs <component>` to get documentation and example URLs for any component.
25
+
26
+ ## Principles
27
+
28
+ 1. **Use existing components first.** Use `npx shadcn@latest search` to check registries before writing custom UI. Check community registries too.
29
+ 2. **Compose, don't reinvent.** Settings page = Tabs + Card + form controls. Dashboard = Sidebar + Card + Chart + Table.
30
+ 3. **Use built-in variants before custom styles.** `variant="outline"`, `size="sm"`, etc.
31
+ 4. **Use semantic colors.** `bg-primary`, `text-muted-foreground` — never raw values like `bg-blue-500`.
32
+
33
+ ## Critical Rules
34
+
35
+ These rules are **always enforced**. Each links to a file with Incorrect/Correct code pairs.
36
+
37
+ ### Styling & Tailwind → [styling.md](./rules/styling.md)
38
+
39
+ - **`className` for layout, not styling.** Never override component colors or typography.
40
+ - **No `space-x-*` or `space-y-*`.** Use `flex` with `gap-*`. For vertical stacks, `flex flex-col gap-*`.
41
+ - **Use `size-*` when width and height are equal.** `size-10` not `w-10 h-10`.
42
+ - **Use `truncate` shorthand.** Not `overflow-hidden text-ellipsis whitespace-nowrap`.
43
+ - **No manual `dark:` color overrides.** Use semantic tokens (`bg-background`, `text-muted-foreground`).
44
+ - **Use `cn()` for conditional classes.** Don't write manual template literal ternaries.
45
+ - **No manual `z-index` on overlay components.** Dialog, Sheet, Popover, etc. handle their own stacking.
46
+
47
+ ### Forms & Inputs → [forms.md](./rules/forms.md)
48
+
49
+ - **Forms use `FieldGroup` + `Field`.** Never use raw `div` with `space-y-*` or `grid gap-*` for form layout.
50
+ - **`InputGroup` uses `InputGroupInput`/`InputGroupTextarea`.** Never raw `Input`/`Textarea` inside `InputGroup`.
51
+ - **Buttons inside inputs use `InputGroup` + `InputGroupAddon`.**
52
+ - **Option sets (2–7 choices) use `ToggleGroup`.** Don't loop `Button` with manual active state.
53
+ - **`FieldSet` + `FieldLegend` for grouping related checkboxes/radios.** Don't use a `div` with a heading.
54
+ - **Field validation uses `data-invalid` + `aria-invalid`.** `data-invalid` on `Field`, `aria-invalid` on the control. For disabled: `data-disabled` on `Field`, `disabled` on the control.
55
+
56
+ ### Component Structure → [composition.md](./rules/composition.md)
57
+
58
+ - **Items always inside their Group.** `SelectItem` → `SelectGroup`. `DropdownMenuItem` → `DropdownMenuGroup`. `CommandItem` → `CommandGroup`.
59
+ - **Use `asChild` (radix) or `render` (base) for custom triggers.** Check `base` field from `npx shadcn@latest info`. → [base-vs-radix.md](./rules/base-vs-radix.md)
60
+ - **Dialog, Sheet, and Drawer always need a Title.** `DialogTitle`, `SheetTitle`, `DrawerTitle` required for accessibility. Use `className="sr-only"` if visually hidden.
61
+ - **Use full Card composition.** `CardHeader`/`CardTitle`/`CardDescription`/`CardContent`/`CardFooter`. Don't dump everything in `CardContent`.
62
+ - **Button has no `isPending`/`isLoading`.** Compose with `Spinner` + `data-icon` + `disabled`.
63
+ - **`TabsTrigger` must be inside `TabsList`.** Never render triggers directly in `Tabs`.
64
+ - **`Avatar` always needs `AvatarFallback`.** For when the image fails to load.
65
+
66
+ ### Use Components, Not Custom Markup → [composition.md](./rules/composition.md)
67
+
68
+ - **Use existing components before custom markup.** Check if a component exists before writing a styled `div`.
69
+ - **Callouts use `Alert`.** Don't build custom styled divs.
70
+ - **Empty states use `Empty`.** Don't build custom empty state markup.
71
+ - **Toast follows the project base.** Use `toast` from the `toast` component for
72
+ Base UI projects. Use `toast()` from `sonner` for Radix and React Aria
73
+ projects.
74
+ - **Use `Separator`** instead of `<hr>` or `<div className="border-t">`.
75
+ - **Use `Skeleton`** for loading placeholders. No custom `animate-pulse` divs.
76
+ - **Use `Badge`** instead of custom styled spans.
77
+
78
+ ### Icons → [icons.md](./rules/icons.md)
79
+
80
+ - **Icons in `Button` use `data-icon`.** `data-icon="inline-start"` or `data-icon="inline-end"` on the icon.
81
+ - **No sizing classes on icons inside components.** Components handle icon sizing via CSS. No `size-4` or `w-4 h-4`.
82
+ - **Pass icons as objects, not string keys.** `icon={CheckIcon}`, not a string lookup.
83
+
84
+ ### Chat & Messaging → [chat.md](./rules/chat.md)
85
+
86
+ - **Chat UI composes the chat primitives.** Conversations use `MessageScroller`, rows use `Message`, surfaces use `Bubble`. Never hand-rolled bubble `div`s or a raw scroll container.
87
+ - **`MessageScroller` owns scroll behavior.** Streaming follow, anchoring, and jump-to-latest (`MessageScrollerButton`) are built in. Don't write a `useStickToBottom`/`ResizeObserver` hook.
88
+ - **Attachments use `Attachment`; system notes and dividers use `Marker`.** Not `Item` cards or `Separator` + a label.
89
+ - **Assistant activity uses `Trace`.** Reasoning, tool calls, sources and steps are `TraceLine`s in a `Trace`, one `Trace` per run of message parts. Behavior wraps the line: `TraceCollapsible`, a sheet trigger or a link. Not a hand-rolled `Collapsible` or a `Marker`.
90
+
91
+ ### CLI
92
+
93
+ - **Never decode preset codes or build preset URLs manually.** Use `npx shadcn@latest preset decode <code>`, `preset url <code>`, or `preset open <code>`. For project-aware preset detection, use `npx shadcn@latest preset resolve`.
94
+ - **Apply preset codes directly with the CLI.** Use `npx shadcn@latest apply <code>` for existing projects, or `npx shadcn@latest init --preset <code>` when initializing.
95
+
96
+ ## Key Patterns
97
+
98
+ These are the most common patterns that differentiate correct shadcn/ui code. For edge cases, see the linked rule files above.
99
+
100
+ ```tsx
101
+ // Form layout: FieldGroup + Field, not div + Label.
102
+ <FieldGroup>
103
+ <Field>
104
+ <FieldLabel htmlFor="email">Email</FieldLabel>
105
+ <Input id="email" />
106
+ </Field>
107
+ </FieldGroup>
108
+
109
+ // Validation: data-invalid on Field, aria-invalid on the control.
110
+ <Field data-invalid>
111
+ <FieldLabel>Email</FieldLabel>
112
+ <Input aria-invalid />
113
+ <FieldDescription>Invalid email.</FieldDescription>
114
+ </Field>
115
+
116
+ // Icons in buttons: data-icon, no sizing classes.
117
+ <Button>
118
+ <SearchIcon data-icon="inline-start" />
119
+ Search
120
+ </Button>
121
+
122
+ // Spacing: gap-*, not space-y-*.
123
+ <div className="flex flex-col gap-4"> // correct
124
+ <div className="space-y-4"> // wrong
125
+
126
+ // Equal dimensions: size-*, not w-* h-*.
127
+ <Avatar className="size-10"> // correct
128
+ <Avatar className="w-10 h-10"> // wrong
129
+
130
+ // Status colors: Badge variants or semantic tokens, not raw colors.
131
+ <Badge variant="secondary">+20.1%</Badge> // correct
132
+ <span className="text-emerald-600">+20.1%</span> // wrong
133
+ ```
134
+
135
+ ## Component Selection
136
+
137
+ | Need | Use |
138
+ | -------------------------- | --------------------------------------------------------------------------------------------------- |
139
+ | Button/action | `Button` with appropriate variant |
140
+ | Form inputs | `Input`, `Select`, `Combobox`, `Switch`, `Checkbox`, `RadioGroup`, `Textarea`, `InputOTP`, `Slider` |
141
+ | Toggle between 2–5 options | `ToggleGroup` + `ToggleGroupItem` |
142
+ | Data display | `Table`, `Card`, `Badge`, `Avatar` |
143
+ | Navigation | `Sidebar`, `NavigationMenu`, `Breadcrumb`, `Tabs`, `Pagination` |
144
+ | Overlays | `Dialog` (modal), `Sheet` (side panel), `Drawer` (bottom sheet), `AlertDialog` (confirmation) |
145
+ | Feedback | `toast` (Base UI), `sonner` (Radix/Aria), `Alert`, `Progress`, `Skeleton`, `Spinner` |
146
+ | Command palette | `Command` inside `Dialog` |
147
+ | Charts | `Chart` (wraps Recharts) |
148
+ | Layout | `Card`, `Separator`, `Resizable`, `ScrollArea`, `Accordion`, `Collapsible` |
149
+ | Empty states | `Empty` |
150
+ | Menus | `DropdownMenu`, `ContextMenu`, `Menubar` |
151
+ | Tooltips/info | `Tooltip`, `HoverCard`, `Popover` |
152
+ | Chat / conversation UI | `MessageScroller`, `Message`, `Bubble`, `Attachment`, `Marker`, `Trace` |
153
+
154
+ ## Key Fields
155
+
156
+ The injected project context contains these key fields:
157
+
158
+ - **`aliases`** → use the actual alias prefix for imports (e.g. `@/`, `~/`), never hardcode.
159
+ - **`isRSC`** → when `true`, components using `useState`, `useEffect`, event handlers, or browser APIs need `"use client"` at the top of the file. Always reference this field when advising on the directive.
160
+ - **`tailwindVersion`** → `"v4"` uses `@theme inline` blocks; `"v3"` uses `tailwind.config.js`.
161
+ - **`tailwindCssFile`** → the global CSS file where custom CSS variables are defined. Always edit this file, never create a new one.
162
+ - **`style`** → component visual treatment (e.g. `nova`, `vega`).
163
+ - **`base`** → primitive library (`radix` or `base`). Affects component APIs and available props.
164
+ - **`iconLibrary`** → determines icon imports. Use `lucide-react` for `lucide`, `@tabler/icons-react` for `tabler`, etc. Never assume `lucide-react`.
165
+ - **`resolvedPaths`** → exact file-system destinations for components, utils, hooks, etc.
166
+ - **`framework`** → routing and file conventions (e.g. Next.js App Router vs Vite SPA).
167
+ - **`packageManager`** → use this for any non-shadcn dependency installs (e.g. `pnpm add date-fns` vs `npm install date-fns`).
168
+ - **`preset`** → resolved preset code and values for the current project. Use `npx shadcn@latest preset resolve --json` when you only need preset information.
169
+
170
+ See [cli.md — `info` command](./cli.md) for the full field reference.
171
+
172
+ ## Component Docs, Examples, and Usage
173
+
174
+ Run `npx shadcn@latest docs <component>` to get the URLs for a component's documentation, examples, and API reference. Fetch these URLs to get the actual content.
175
+
176
+ ```bash
177
+ npx shadcn@latest docs button dialog select
178
+ ```
179
+
180
+ **When creating, fixing, debugging, or using a component, always run `npx shadcn@latest docs` and fetch the URLs first.** This ensures you're working with the correct API and usage patterns rather than guessing.
181
+
182
+ ## Detailed references
183
+
184
+ _Luci moved these sections out of this file to save context; their content is unchanged. Read one only when the task needs it:_
185
+
186
+ - [Workflow; Design Systems from DESIGN.md](references/workflow.md) (~1240 tokens)
187
+ - [Updating Components; Quick Reference; Detailed References](references/updating-components.md) (~1187 tokens)
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "shadcn/ui"
3
+ short_description: "Manages shadcn/ui components — adding, searching, fixing, debugging, styling, and composing UI."
4
+ icon_small: "./assets/shadcn-small.png"
5
+ icon_large: "./assets/shadcn.png"