@auto-engineer/react-gen 1.134.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 (794) hide show
  1. package/dist/skills/design/SKILL.md +302 -0
  2. package/dist/skills/design/data/cip/deliverables.csv +51 -0
  3. package/dist/skills/design/data/cip/industries.csv +21 -0
  4. package/dist/skills/design/data/cip/mockup-contexts.csv +21 -0
  5. package/dist/skills/design/data/cip/styles.csv +21 -0
  6. package/dist/skills/design/data/icon/styles.csv +16 -0
  7. package/dist/skills/design/data/logo/colors.csv +56 -0
  8. package/dist/skills/design/data/logo/industries.csv +56 -0
  9. package/dist/skills/design/data/logo/styles.csv +56 -0
  10. package/dist/skills/design/references/banner-sizes-and-styles.md +118 -0
  11. package/dist/skills/design/references/cip-deliverable-guide.md +95 -0
  12. package/dist/skills/design/references/cip-design.md +121 -0
  13. package/dist/skills/design/references/cip-prompt-engineering.md +84 -0
  14. package/dist/skills/design/references/cip-style-guide.md +68 -0
  15. package/dist/skills/design/references/design-routing.md +207 -0
  16. package/dist/skills/design/references/icon-design.md +122 -0
  17. package/dist/skills/design/references/logo-color-psychology.md +101 -0
  18. package/dist/skills/design/references/logo-design.md +92 -0
  19. package/dist/skills/design/references/logo-prompt-engineering.md +158 -0
  20. package/dist/skills/design/references/logo-style-guide.md +109 -0
  21. package/dist/skills/design/references/slides-copywriting-formulas.md +84 -0
  22. package/dist/skills/design/references/slides-create.md +4 -0
  23. package/dist/skills/design/references/slides-html-template.md +295 -0
  24. package/dist/skills/design/references/slides-layout-patterns.md +137 -0
  25. package/dist/skills/design/references/slides-strategies.md +94 -0
  26. package/dist/skills/design/references/slides.md +42 -0
  27. package/dist/skills/design/references/social-photos-design.md +329 -0
  28. package/dist/skills/design/scripts/cip/core.py +215 -0
  29. package/dist/skills/design/scripts/cip/generate.py +484 -0
  30. package/dist/skills/design/scripts/cip/render-html.py +424 -0
  31. package/dist/skills/design/scripts/cip/search.py +127 -0
  32. package/dist/skills/design/scripts/icon/generate.py +487 -0
  33. package/dist/skills/design/scripts/logo/core.py +175 -0
  34. package/dist/skills/design/scripts/logo/generate.py +362 -0
  35. package/dist/skills/design/scripts/logo/search.py +114 -0
  36. package/dist/skills/design-system/SKILL.md +244 -0
  37. package/dist/skills/design-system/data/slide-backgrounds.csv +11 -0
  38. package/dist/skills/design-system/data/slide-charts.csv +26 -0
  39. package/dist/skills/design-system/data/slide-color-logic.csv +14 -0
  40. package/dist/skills/design-system/data/slide-copy.csv +26 -0
  41. package/dist/skills/design-system/data/slide-layout-logic.csv +16 -0
  42. package/dist/skills/design-system/data/slide-layouts.csv +26 -0
  43. package/dist/skills/design-system/data/slide-strategies.csv +16 -0
  44. package/dist/skills/design-system/data/slide-typography.csv +15 -0
  45. package/dist/skills/design-system/references/component-specs.md +236 -0
  46. package/dist/skills/design-system/references/component-tokens.md +214 -0
  47. package/dist/skills/design-system/references/primitive-tokens.md +203 -0
  48. package/dist/skills/design-system/references/semantic-tokens.md +215 -0
  49. package/dist/skills/design-system/references/states-and-variants.md +241 -0
  50. package/dist/skills/design-system/references/tailwind-integration.md +251 -0
  51. package/dist/skills/design-system/references/token-architecture.md +224 -0
  52. package/dist/skills/design-system/scripts/embed-tokens.cjs +97 -0
  53. package/dist/skills/design-system/scripts/fetch-background.py +317 -0
  54. package/dist/skills/design-system/scripts/generate-slide.py +753 -0
  55. package/dist/skills/design-system/scripts/generate-tokens.cjs +213 -0
  56. package/dist/skills/design-system/scripts/html-token-validator.py +327 -0
  57. package/dist/skills/design-system/scripts/search-slides.py +218 -0
  58. package/dist/skills/design-system/scripts/slide-token-validator.py +35 -0
  59. package/dist/skills/design-system/scripts/slide_search_core.py +453 -0
  60. package/dist/skills/design-system/scripts/validate-tokens.cjs +251 -0
  61. package/dist/skills/design-system/templates/design-tokens-starter.json +143 -0
  62. package/dist/skills/design-taste-frontend/SKILL.md +79 -0
  63. package/dist/skills/emil-design-engineering/SKILL.md +108 -0
  64. package/dist/skills/emil-design-engineering/animations.md +266 -0
  65. package/dist/skills/emil-design-engineering/component-design.md +382 -0
  66. package/dist/skills/emil-design-engineering/forms-controls.md +261 -0
  67. package/dist/skills/emil-design-engineering/marketing.md +160 -0
  68. package/dist/skills/emil-design-engineering/performance.md +222 -0
  69. package/dist/skills/emil-design-engineering/touch-accessibility.md +236 -0
  70. package/dist/skills/emil-design-engineering/ui-polish.md +303 -0
  71. package/dist/skills/frontend-design/SKILL.md +42 -0
  72. package/dist/skills/full-output-enforcement/SKILL.md +32 -0
  73. package/dist/skills/high-end-visual-design/SKILL.md +98 -0
  74. package/dist/skills/react-doctor/AGENTS.md +15 -0
  75. package/dist/skills/react-doctor/SKILL.md +19 -0
  76. package/dist/skills/redesign-existing-projects/SKILL.md +178 -0
  77. package/dist/skills/ui-styling/LICENSE.txt +202 -0
  78. package/dist/skills/ui-styling/SKILL.md +324 -0
  79. package/dist/skills/ui-styling/canvas-fonts/ArsenalSC-OFL.txt +93 -0
  80. package/dist/skills/ui-styling/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
  81. package/dist/skills/ui-styling/canvas-fonts/BigShoulders-Bold.ttf +0 -0
  82. package/dist/skills/ui-styling/canvas-fonts/BigShoulders-OFL.txt +93 -0
  83. package/dist/skills/ui-styling/canvas-fonts/BigShoulders-Regular.ttf +0 -0
  84. package/dist/skills/ui-styling/canvas-fonts/Boldonse-OFL.txt +93 -0
  85. package/dist/skills/ui-styling/canvas-fonts/Boldonse-Regular.ttf +0 -0
  86. package/dist/skills/ui-styling/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
  87. package/dist/skills/ui-styling/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
  88. package/dist/skills/ui-styling/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
  89. package/dist/skills/ui-styling/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
  90. package/dist/skills/ui-styling/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
  91. package/dist/skills/ui-styling/canvas-fonts/CrimsonPro-OFL.txt +93 -0
  92. package/dist/skills/ui-styling/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
  93. package/dist/skills/ui-styling/canvas-fonts/DMMono-OFL.txt +93 -0
  94. package/dist/skills/ui-styling/canvas-fonts/DMMono-Regular.ttf +0 -0
  95. package/dist/skills/ui-styling/canvas-fonts/EricaOne-OFL.txt +94 -0
  96. package/dist/skills/ui-styling/canvas-fonts/EricaOne-Regular.ttf +0 -0
  97. package/dist/skills/ui-styling/canvas-fonts/GeistMono-Bold.ttf +0 -0
  98. package/dist/skills/ui-styling/canvas-fonts/GeistMono-OFL.txt +93 -0
  99. package/dist/skills/ui-styling/canvas-fonts/GeistMono-Regular.ttf +0 -0
  100. package/dist/skills/ui-styling/canvas-fonts/Gloock-OFL.txt +93 -0
  101. package/dist/skills/ui-styling/canvas-fonts/Gloock-Regular.ttf +0 -0
  102. package/dist/skills/ui-styling/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
  103. package/dist/skills/ui-styling/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
  104. package/dist/skills/ui-styling/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
  105. package/dist/skills/ui-styling/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
  106. package/dist/skills/ui-styling/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
  107. package/dist/skills/ui-styling/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
  108. package/dist/skills/ui-styling/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
  109. package/dist/skills/ui-styling/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
  110. package/dist/skills/ui-styling/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
  111. package/dist/skills/ui-styling/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
  112. package/dist/skills/ui-styling/canvas-fonts/InstrumentSans-OFL.txt +93 -0
  113. package/dist/skills/ui-styling/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
  114. package/dist/skills/ui-styling/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
  115. package/dist/skills/ui-styling/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
  116. package/dist/skills/ui-styling/canvas-fonts/Italiana-OFL.txt +93 -0
  117. package/dist/skills/ui-styling/canvas-fonts/Italiana-Regular.ttf +0 -0
  118. package/dist/skills/ui-styling/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
  119. package/dist/skills/ui-styling/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
  120. package/dist/skills/ui-styling/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
  121. package/dist/skills/ui-styling/canvas-fonts/Jura-Light.ttf +0 -0
  122. package/dist/skills/ui-styling/canvas-fonts/Jura-Medium.ttf +0 -0
  123. package/dist/skills/ui-styling/canvas-fonts/Jura-OFL.txt +93 -0
  124. package/dist/skills/ui-styling/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
  125. package/dist/skills/ui-styling/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
  126. package/dist/skills/ui-styling/canvas-fonts/Lora-Bold.ttf +0 -0
  127. package/dist/skills/ui-styling/canvas-fonts/Lora-BoldItalic.ttf +0 -0
  128. package/dist/skills/ui-styling/canvas-fonts/Lora-Italic.ttf +0 -0
  129. package/dist/skills/ui-styling/canvas-fonts/Lora-OFL.txt +93 -0
  130. package/dist/skills/ui-styling/canvas-fonts/Lora-Regular.ttf +0 -0
  131. package/dist/skills/ui-styling/canvas-fonts/NationalPark-Bold.ttf +0 -0
  132. package/dist/skills/ui-styling/canvas-fonts/NationalPark-OFL.txt +93 -0
  133. package/dist/skills/ui-styling/canvas-fonts/NationalPark-Regular.ttf +0 -0
  134. package/dist/skills/ui-styling/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
  135. package/dist/skills/ui-styling/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
  136. package/dist/skills/ui-styling/canvas-fonts/Outfit-Bold.ttf +0 -0
  137. package/dist/skills/ui-styling/canvas-fonts/Outfit-OFL.txt +93 -0
  138. package/dist/skills/ui-styling/canvas-fonts/Outfit-Regular.ttf +0 -0
  139. package/dist/skills/ui-styling/canvas-fonts/PixelifySans-Medium.ttf +0 -0
  140. package/dist/skills/ui-styling/canvas-fonts/PixelifySans-OFL.txt +93 -0
  141. package/dist/skills/ui-styling/canvas-fonts/PoiretOne-OFL.txt +93 -0
  142. package/dist/skills/ui-styling/canvas-fonts/PoiretOne-Regular.ttf +0 -0
  143. package/dist/skills/ui-styling/canvas-fonts/RedHatMono-Bold.ttf +0 -0
  144. package/dist/skills/ui-styling/canvas-fonts/RedHatMono-OFL.txt +93 -0
  145. package/dist/skills/ui-styling/canvas-fonts/RedHatMono-Regular.ttf +0 -0
  146. package/dist/skills/ui-styling/canvas-fonts/Silkscreen-OFL.txt +93 -0
  147. package/dist/skills/ui-styling/canvas-fonts/Silkscreen-Regular.ttf +0 -0
  148. package/dist/skills/ui-styling/canvas-fonts/SmoochSans-Medium.ttf +0 -0
  149. package/dist/skills/ui-styling/canvas-fonts/SmoochSans-OFL.txt +93 -0
  150. package/dist/skills/ui-styling/canvas-fonts/Tektur-Medium.ttf +0 -0
  151. package/dist/skills/ui-styling/canvas-fonts/Tektur-OFL.txt +93 -0
  152. package/dist/skills/ui-styling/canvas-fonts/Tektur-Regular.ttf +0 -0
  153. package/dist/skills/ui-styling/canvas-fonts/WorkSans-Bold.ttf +0 -0
  154. package/dist/skills/ui-styling/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
  155. package/dist/skills/ui-styling/canvas-fonts/WorkSans-Italic.ttf +0 -0
  156. package/dist/skills/ui-styling/canvas-fonts/WorkSans-OFL.txt +93 -0
  157. package/dist/skills/ui-styling/canvas-fonts/WorkSans-Regular.ttf +0 -0
  158. package/dist/skills/ui-styling/canvas-fonts/YoungSerif-OFL.txt +93 -0
  159. package/dist/skills/ui-styling/canvas-fonts/YoungSerif-Regular.ttf +0 -0
  160. package/dist/skills/ui-styling/references/canvas-design-system.md +320 -0
  161. package/dist/skills/ui-styling/references/shadcn-accessibility.md +471 -0
  162. package/dist/skills/ui-styling/references/shadcn-components.md +424 -0
  163. package/dist/skills/ui-styling/references/shadcn-theming.md +373 -0
  164. package/dist/skills/ui-styling/references/tailwind-customization.md +483 -0
  165. package/dist/skills/ui-styling/references/tailwind-responsive.md +382 -0
  166. package/dist/skills/ui-styling/references/tailwind-utilities.md +455 -0
  167. package/dist/skills/ui-styling/scripts/.coverage +0 -0
  168. package/dist/skills/ui-styling/scripts/requirements.txt +17 -0
  169. package/dist/skills/ui-styling/scripts/shadcn_add.py +292 -0
  170. package/dist/skills/ui-styling/scripts/tailwind_config_gen.py +456 -0
  171. package/dist/skills/ui-styling/scripts/tests/coverage-ui.json +1392 -0
  172. package/dist/skills/ui-styling/scripts/tests/requirements.txt +3 -0
  173. package/dist/skills/ui-styling/scripts/tests/test_shadcn_add.py +266 -0
  174. package/dist/skills/ui-styling/scripts/tests/test_tailwind_config_gen.py +336 -0
  175. package/dist/skills/ui-ux-pro-max/SKILL.md +659 -0
  176. package/dist/skills/ui-ux-pro-max/data/_sync_all.py +414 -0
  177. package/dist/skills/ui-ux-pro-max/data/app-interface.csv +31 -0
  178. package/dist/skills/ui-ux-pro-max/data/charts.csv +26 -0
  179. package/dist/skills/ui-ux-pro-max/data/colors.csv +162 -0
  180. package/dist/skills/ui-ux-pro-max/data/design.csv +1776 -0
  181. package/dist/skills/ui-ux-pro-max/data/draft.csv +1779 -0
  182. package/dist/skills/ui-ux-pro-max/data/google-fonts.csv +1924 -0
  183. package/dist/skills/ui-ux-pro-max/data/icons.csv +106 -0
  184. package/dist/skills/ui-ux-pro-max/data/landing.csv +35 -0
  185. package/dist/skills/ui-ux-pro-max/data/products.csv +162 -0
  186. package/dist/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
  187. package/dist/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  188. package/dist/skills/ui-ux-pro-max/data/styles.csv +85 -0
  189. package/dist/skills/ui-ux-pro-max/data/typography.csv +74 -0
  190. package/dist/skills/ui-ux-pro-max/data/ui-reasoning.csv +162 -0
  191. package/dist/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  192. package/dist/skills/ui-ux-pro-max/scripts/__pycache__/core.cpython-314.pyc +0 -0
  193. package/dist/skills/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-314.pyc +0 -0
  194. package/dist/skills/ui-ux-pro-max/scripts/core.py +247 -0
  195. package/dist/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
  196. package/dist/skills/ui-ux-pro-max/scripts/search.py +114 -0
  197. package/dist/skills/vercel-react-best-practices/AGENTS.md +2934 -0
  198. package/dist/skills/vercel-react-best-practices/README.md +123 -0
  199. package/dist/skills/vercel-react-best-practices/SKILL.md +136 -0
  200. package/dist/skills/vercel-react-best-practices/rules/advanced-event-handler-refs.md +55 -0
  201. package/dist/skills/vercel-react-best-practices/rules/advanced-init-once.md +42 -0
  202. package/dist/skills/vercel-react-best-practices/rules/advanced-use-latest.md +39 -0
  203. package/dist/skills/vercel-react-best-practices/rules/async-api-routes.md +38 -0
  204. package/dist/skills/vercel-react-best-practices/rules/async-defer-await.md +80 -0
  205. package/dist/skills/vercel-react-best-practices/rules/async-dependencies.md +51 -0
  206. package/dist/skills/vercel-react-best-practices/rules/async-parallel.md +28 -0
  207. package/dist/skills/vercel-react-best-practices/rules/async-suspense-boundaries.md +99 -0
  208. package/dist/skills/vercel-react-best-practices/rules/bundle-barrel-imports.md +59 -0
  209. package/dist/skills/vercel-react-best-practices/rules/bundle-conditional.md +31 -0
  210. package/dist/skills/vercel-react-best-practices/rules/bundle-defer-third-party.md +49 -0
  211. package/dist/skills/vercel-react-best-practices/rules/bundle-dynamic-imports.md +35 -0
  212. package/dist/skills/vercel-react-best-practices/rules/bundle-preload.md +50 -0
  213. package/dist/skills/vercel-react-best-practices/rules/client-event-listeners.md +74 -0
  214. package/dist/skills/vercel-react-best-practices/rules/client-localstorage-schema.md +71 -0
  215. package/dist/skills/vercel-react-best-practices/rules/client-passive-event-listeners.md +48 -0
  216. package/dist/skills/vercel-react-best-practices/rules/client-swr-dedup.md +56 -0
  217. package/dist/skills/vercel-react-best-practices/rules/js-batch-dom-css.md +107 -0
  218. package/dist/skills/vercel-react-best-practices/rules/js-cache-function-results.md +80 -0
  219. package/dist/skills/vercel-react-best-practices/rules/js-cache-property-access.md +28 -0
  220. package/dist/skills/vercel-react-best-practices/rules/js-cache-storage.md +70 -0
  221. package/dist/skills/vercel-react-best-practices/rules/js-combine-iterations.md +32 -0
  222. package/dist/skills/vercel-react-best-practices/rules/js-early-exit.md +50 -0
  223. package/dist/skills/vercel-react-best-practices/rules/js-hoist-regexp.md +45 -0
  224. package/dist/skills/vercel-react-best-practices/rules/js-index-maps.md +37 -0
  225. package/dist/skills/vercel-react-best-practices/rules/js-length-check-first.md +49 -0
  226. package/dist/skills/vercel-react-best-practices/rules/js-min-max-loop.md +82 -0
  227. package/dist/skills/vercel-react-best-practices/rules/js-set-map-lookups.md +24 -0
  228. package/dist/skills/vercel-react-best-practices/rules/js-tosorted-immutable.md +57 -0
  229. package/dist/skills/vercel-react-best-practices/rules/rendering-activity.md +26 -0
  230. package/dist/skills/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
  231. package/dist/skills/vercel-react-best-practices/rules/rendering-conditional-render.md +40 -0
  232. package/dist/skills/vercel-react-best-practices/rules/rendering-content-visibility.md +38 -0
  233. package/dist/skills/vercel-react-best-practices/rules/rendering-hoist-jsx.md +46 -0
  234. package/dist/skills/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
  235. package/dist/skills/vercel-react-best-practices/rules/rendering-hydration-suppress-warning.md +30 -0
  236. package/dist/skills/vercel-react-best-practices/rules/rendering-svg-precision.md +28 -0
  237. package/dist/skills/vercel-react-best-practices/rules/rendering-usetransition-loading.md +75 -0
  238. package/dist/skills/vercel-react-best-practices/rules/rerender-defer-reads.md +39 -0
  239. package/dist/skills/vercel-react-best-practices/rules/rerender-dependencies.md +45 -0
  240. package/dist/skills/vercel-react-best-practices/rules/rerender-derived-state-no-effect.md +40 -0
  241. package/dist/skills/vercel-react-best-practices/rules/rerender-derived-state.md +29 -0
  242. package/dist/skills/vercel-react-best-practices/rules/rerender-functional-setstate.md +74 -0
  243. package/dist/skills/vercel-react-best-practices/rules/rerender-lazy-state-init.md +58 -0
  244. package/dist/skills/vercel-react-best-practices/rules/rerender-memo-with-default-value.md +38 -0
  245. package/dist/skills/vercel-react-best-practices/rules/rerender-memo.md +44 -0
  246. package/dist/skills/vercel-react-best-practices/rules/rerender-move-effect-to-event.md +45 -0
  247. package/dist/skills/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +35 -0
  248. package/dist/skills/vercel-react-best-practices/rules/rerender-transitions.md +40 -0
  249. package/dist/skills/vercel-react-best-practices/rules/rerender-use-ref-transient-values.md +73 -0
  250. package/dist/skills/vercel-react-best-practices/rules/server-after-nonblocking.md +73 -0
  251. package/dist/skills/vercel-react-best-practices/rules/server-auth-actions.md +96 -0
  252. package/dist/skills/vercel-react-best-practices/rules/server-cache-lru.md +41 -0
  253. package/dist/skills/vercel-react-best-practices/rules/server-cache-react.md +76 -0
  254. package/dist/skills/vercel-react-best-practices/rules/server-dedup-props.md +65 -0
  255. package/dist/skills/vercel-react-best-practices/rules/server-parallel-fetching.md +83 -0
  256. package/dist/skills/vercel-react-best-practices/rules/server-serialization.md +38 -0
  257. package/dist/skills/web-animation-design/PRACTICAL-TIPS.md +304 -0
  258. package/dist/skills/web-animation-design/SKILL.md +336 -0
  259. package/dist/skills/web-design-guidelines/SKILL.md +39 -0
  260. package/dist/src/agents/create-constants-agent.d.ts +6 -0
  261. package/dist/src/agents/create-constants-agent.d.ts.map +1 -0
  262. package/dist/src/agents/create-constants-agent.js +42 -0
  263. package/dist/src/agents/create-constants-agent.js.map +1 -0
  264. package/dist/src/agents/create-landing-page-agent.d.ts +4 -0
  265. package/dist/src/agents/create-landing-page-agent.d.ts.map +1 -0
  266. package/dist/src/agents/create-landing-page-agent.js +62 -0
  267. package/dist/src/agents/create-landing-page-agent.js.map +1 -0
  268. package/dist/src/agents/create-narrative-agent.d.ts +4 -0
  269. package/dist/src/agents/create-narrative-agent.d.ts.map +1 -0
  270. package/dist/src/agents/create-narrative-agent.js +36 -0
  271. package/dist/src/agents/create-narrative-agent.js.map +1 -0
  272. package/dist/src/agents/create-pipeline.d.ts +9 -0
  273. package/dist/src/agents/create-pipeline.d.ts.map +1 -0
  274. package/dist/src/agents/create-pipeline.js +28 -0
  275. package/dist/src/agents/create-pipeline.js.map +1 -0
  276. package/dist/src/agents/create-router-agent.d.ts +4 -0
  277. package/dist/src/agents/create-router-agent.d.ts.map +1 -0
  278. package/dist/src/agents/create-router-agent.js +46 -0
  279. package/dist/src/agents/create-router-agent.js.map +1 -0
  280. package/dist/src/agents/create-theme-agent.d.ts +4 -0
  281. package/dist/src/agents/create-theme-agent.d.ts.map +1 -0
  282. package/dist/src/agents/create-theme-agent.js +105 -0
  283. package/dist/src/agents/create-theme-agent.js.map +1 -0
  284. package/dist/src/agents/create-validation-agent.d.ts +4 -0
  285. package/dist/src/agents/create-validation-agent.d.ts.map +1 -0
  286. package/dist/src/agents/create-validation-agent.js +36 -0
  287. package/dist/src/agents/create-validation-agent.js.map +1 -0
  288. package/dist/src/agents/scaffold-agent.d.ts +5 -0
  289. package/dist/src/agents/scaffold-agent.d.ts.map +1 -0
  290. package/dist/src/agents/scaffold-agent.js +11 -0
  291. package/dist/src/agents/scaffold-agent.js.map +1 -0
  292. package/dist/src/commands/generate-react-app.d.ts +27 -0
  293. package/dist/src/commands/generate-react-app.d.ts.map +1 -0
  294. package/dist/src/commands/generate-react-app.js +92 -0
  295. package/dist/src/commands/generate-react-app.js.map +1 -0
  296. package/dist/src/config.d.ts +3 -0
  297. package/dist/src/config.d.ts.map +1 -0
  298. package/dist/src/config.js +15 -0
  299. package/dist/src/config.js.map +1 -0
  300. package/dist/src/index.d.ts +10 -0
  301. package/dist/src/index.d.ts.map +1 -0
  302. package/dist/src/index.js +4 -0
  303. package/dist/src/index.js.map +1 -0
  304. package/dist/src/prompts/build-narrative-context.d.ts +3 -0
  305. package/dist/src/prompts/build-narrative-context.d.ts.map +1 -0
  306. package/dist/src/prompts/build-narrative-context.js +103 -0
  307. package/dist/src/prompts/build-narrative-context.js.map +1 -0
  308. package/dist/src/prompts/landing-page-system.d.ts +2 -0
  309. package/dist/src/prompts/landing-page-system.d.ts.map +1 -0
  310. package/dist/src/prompts/landing-page-system.js +63 -0
  311. package/dist/src/prompts/landing-page-system.js.map +1 -0
  312. package/dist/src/prompts/narrative-system.d.ts +2 -0
  313. package/dist/src/prompts/narrative-system.d.ts.map +1 -0
  314. package/dist/src/prompts/narrative-system.js +52 -0
  315. package/dist/src/prompts/narrative-system.js.map +1 -0
  316. package/dist/src/prompts/router-system.d.ts +2 -0
  317. package/dist/src/prompts/router-system.d.ts.map +1 -0
  318. package/dist/src/prompts/router-system.js +35 -0
  319. package/dist/src/prompts/router-system.js.map +1 -0
  320. package/dist/src/prompts/theme-system.d.ts +2 -0
  321. package/dist/src/prompts/theme-system.d.ts.map +1 -0
  322. package/dist/src/prompts/theme-system.js +126 -0
  323. package/dist/src/prompts/theme-system.js.map +1 -0
  324. package/dist/src/prompts/validation-system.d.ts +2 -0
  325. package/dist/src/prompts/validation-system.d.ts.map +1 -0
  326. package/dist/src/prompts/validation-system.js +28 -0
  327. package/dist/src/prompts/validation-system.js.map +1 -0
  328. package/dist/src/tools/check-imports.d.ts +6 -0
  329. package/dist/src/tools/check-imports.d.ts.map +1 -0
  330. package/dist/src/tools/check-imports.js +129 -0
  331. package/dist/src/tools/check-imports.js.map +1 -0
  332. package/dist/src/tools/exit-loop.d.ts +6 -0
  333. package/dist/src/tools/exit-loop.d.ts.map +1 -0
  334. package/dist/src/tools/exit-loop.js +12 -0
  335. package/dist/src/tools/exit-loop.js.map +1 -0
  336. package/dist/src/tools/list-files.d.ts +4 -0
  337. package/dist/src/tools/list-files.d.ts.map +1 -0
  338. package/dist/src/tools/list-files.js +36 -0
  339. package/dist/src/tools/list-files.js.map +1 -0
  340. package/dist/src/tools/read-file.d.ts +10 -0
  341. package/dist/src/tools/read-file.d.ts.map +1 -0
  342. package/dist/src/tools/read-file.js +21 -0
  343. package/dist/src/tools/read-file.js.map +1 -0
  344. package/dist/src/tools/run-eslint.d.ts +6 -0
  345. package/dist/src/tools/run-eslint.d.ts.map +1 -0
  346. package/dist/src/tools/run-eslint.js +27 -0
  347. package/dist/src/tools/run-eslint.js.map +1 -0
  348. package/dist/src/tools/run-tsc.d.ts +6 -0
  349. package/dist/src/tools/run-tsc.d.ts.map +1 -0
  350. package/dist/src/tools/run-tsc.js +27 -0
  351. package/dist/src/tools/run-tsc.js.map +1 -0
  352. package/dist/src/tools/write-file.d.ts +15 -0
  353. package/dist/src/tools/write-file.d.ts.map +1 -0
  354. package/dist/src/tools/write-file.js +44 -0
  355. package/dist/src/tools/write-file.js.map +1 -0
  356. package/dist/src/types.d.ts +330 -0
  357. package/dist/src/types.d.ts.map +1 -0
  358. package/dist/src/types.js +102 -0
  359. package/dist/src/types.js.map +1 -0
  360. package/dist/src/utils/create-skill-tool.d.ts +2 -0
  361. package/dist/src/utils/create-skill-tool.d.ts.map +1 -0
  362. package/dist/src/utils/create-skill-tool.js +13 -0
  363. package/dist/src/utils/create-skill-tool.js.map +1 -0
  364. package/dist/src/utils/parse-model.d.ts +3 -0
  365. package/dist/src/utils/parse-model.d.ts.map +1 -0
  366. package/dist/src/utils/parse-model.js +7 -0
  367. package/dist/src/utils/parse-model.js.map +1 -0
  368. package/dist/src/utils/slugify.d.ts +2 -0
  369. package/dist/src/utils/slugify.d.ts.map +1 -0
  370. package/dist/src/utils/slugify.js +7 -0
  371. package/dist/src/utils/slugify.js.map +1 -0
  372. package/dist/starter/.env.example +1 -0
  373. package/dist/starter/README.md +73 -0
  374. package/dist/starter/components.json +21 -0
  375. package/dist/starter/eslint.config.js +23 -0
  376. package/dist/starter/index.html +13 -0
  377. package/dist/starter/package-lock.json +7590 -0
  378. package/dist/starter/package.json +57 -0
  379. package/dist/starter/pnpm-lock.yaml +4479 -0
  380. package/dist/starter/public/favicon.svg +1 -0
  381. package/dist/starter/public/icons.svg +24 -0
  382. package/dist/starter/src/App.tsx +7 -0
  383. package/dist/starter/src/assets/hero.png +0 -0
  384. package/dist/starter/src/assets/vite.svg +1 -0
  385. package/dist/starter/src/components/error-boundary.tsx +38 -0
  386. package/dist/starter/src/components/not-found.tsx +16 -0
  387. package/dist/starter/src/components/ui/accordion.tsx +51 -0
  388. package/dist/starter/src/components/ui/alert-dialog.tsx +162 -0
  389. package/dist/starter/src/components/ui/alert.tsx +49 -0
  390. package/dist/starter/src/components/ui/aspect-ratio.tsx +9 -0
  391. package/dist/starter/src/components/ui/avatar.tsx +87 -0
  392. package/dist/starter/src/components/ui/badge.tsx +40 -0
  393. package/dist/starter/src/components/ui/breadcrumb.tsx +92 -0
  394. package/dist/starter/src/components/ui/button-group.tsx +74 -0
  395. package/dist/starter/src/components/ui/button.tsx +62 -0
  396. package/dist/starter/src/components/ui/calendar.tsx +158 -0
  397. package/dist/starter/src/components/ui/card.tsx +56 -0
  398. package/dist/starter/src/components/ui/carousel.tsx +215 -0
  399. package/dist/starter/src/components/ui/chart.tsx +296 -0
  400. package/dist/starter/src/components/ui/checkbox.tsx +29 -0
  401. package/dist/starter/src/components/ui/collapsible.tsx +15 -0
  402. package/dist/starter/src/components/ui/combobox.tsx +266 -0
  403. package/dist/starter/src/components/ui/command.tsx +136 -0
  404. package/dist/starter/src/components/ui/context-menu.tsx +211 -0
  405. package/dist/starter/src/components/ui/dialog.tsx +135 -0
  406. package/dist/starter/src/components/ui/direction.tsx +18 -0
  407. package/dist/starter/src/components/ui/drawer.tsx +106 -0
  408. package/dist/starter/src/components/ui/dropdown-menu.tsx +219 -0
  409. package/dist/starter/src/components/ui/empty.tsx +85 -0
  410. package/dist/starter/src/components/ui/field.tsx +225 -0
  411. package/dist/starter/src/components/ui/form.tsx +135 -0
  412. package/dist/starter/src/components/ui/hover-card.tsx +36 -0
  413. package/dist/starter/src/components/ui/input-group.tsx +146 -0
  414. package/dist/starter/src/components/ui/input-otp.tsx +68 -0
  415. package/dist/starter/src/components/ui/input.tsx +21 -0
  416. package/dist/starter/src/components/ui/item.tsx +157 -0
  417. package/dist/starter/src/components/ui/kbd.tsx +22 -0
  418. package/dist/starter/src/components/ui/label.tsx +19 -0
  419. package/dist/starter/src/components/ui/menubar.tsx +236 -0
  420. package/dist/starter/src/components/ui/native-select.tsx +44 -0
  421. package/dist/starter/src/components/ui/navigation-menu.tsx +142 -0
  422. package/dist/starter/src/components/ui/pagination.tsx +98 -0
  423. package/dist/starter/src/components/ui/popover.tsx +52 -0
  424. package/dist/starter/src/components/ui/progress.tsx +24 -0
  425. package/dist/starter/src/components/ui/radio-group.tsx +31 -0
  426. package/dist/starter/src/components/ui/resizable.tsx +47 -0
  427. package/dist/starter/src/components/ui/scroll-area.tsx +46 -0
  428. package/dist/starter/src/components/ui/select.tsx +162 -0
  429. package/dist/starter/src/components/ui/separator.tsx +26 -0
  430. package/dist/starter/src/components/ui/sheet.tsx +107 -0
  431. package/dist/starter/src/components/ui/sidebar.tsx +674 -0
  432. package/dist/starter/src/components/ui/skeleton.tsx +7 -0
  433. package/dist/starter/src/components/ui/slider.tsx +54 -0
  434. package/dist/starter/src/components/ui/sonner.tsx +31 -0
  435. package/dist/starter/src/components/ui/spinner.tsx +9 -0
  436. package/dist/starter/src/components/ui/switch.tsx +33 -0
  437. package/dist/starter/src/components/ui/table.tsx +75 -0
  438. package/dist/starter/src/components/ui/tabs.tsx +69 -0
  439. package/dist/starter/src/components/ui/textarea.tsx +18 -0
  440. package/dist/starter/src/components/ui/toggle-group.tsx +79 -0
  441. package/dist/starter/src/components/ui/toggle.tsx +41 -0
  442. package/dist/starter/src/components/ui/tooltip.tsx +42 -0
  443. package/dist/starter/src/hooks/use-mobile.ts +19 -0
  444. package/dist/starter/src/index.css +93 -0
  445. package/dist/starter/src/lib/graphql-client.ts +5 -0
  446. package/dist/starter/src/lib/providers.tsx +23 -0
  447. package/dist/starter/src/lib/utils.ts +6 -0
  448. package/dist/starter/src/main.tsx +16 -0
  449. package/dist/starter/tsconfig.app.json +32 -0
  450. package/dist/starter/tsconfig.json +4 -0
  451. package/dist/starter/tsconfig.node.json +26 -0
  452. package/dist/starter/vite.config.ts +16 -0
  453. package/dist/tsconfig.tsbuildinfo +1 -0
  454. package/package.json +47 -0
  455. package/skills/design/SKILL.md +302 -0
  456. package/skills/design/data/cip/deliverables.csv +51 -0
  457. package/skills/design/data/cip/industries.csv +21 -0
  458. package/skills/design/data/cip/mockup-contexts.csv +21 -0
  459. package/skills/design/data/cip/styles.csv +21 -0
  460. package/skills/design/data/icon/styles.csv +16 -0
  461. package/skills/design/data/logo/colors.csv +56 -0
  462. package/skills/design/data/logo/industries.csv +56 -0
  463. package/skills/design/data/logo/styles.csv +56 -0
  464. package/skills/design/references/banner-sizes-and-styles.md +118 -0
  465. package/skills/design/references/cip-deliverable-guide.md +95 -0
  466. package/skills/design/references/cip-design.md +121 -0
  467. package/skills/design/references/cip-prompt-engineering.md +84 -0
  468. package/skills/design/references/cip-style-guide.md +68 -0
  469. package/skills/design/references/design-routing.md +207 -0
  470. package/skills/design/references/icon-design.md +122 -0
  471. package/skills/design/references/logo-color-psychology.md +101 -0
  472. package/skills/design/references/logo-design.md +92 -0
  473. package/skills/design/references/logo-prompt-engineering.md +158 -0
  474. package/skills/design/references/logo-style-guide.md +109 -0
  475. package/skills/design/references/slides-copywriting-formulas.md +84 -0
  476. package/skills/design/references/slides-create.md +4 -0
  477. package/skills/design/references/slides-html-template.md +295 -0
  478. package/skills/design/references/slides-layout-patterns.md +137 -0
  479. package/skills/design/references/slides-strategies.md +94 -0
  480. package/skills/design/references/slides.md +42 -0
  481. package/skills/design/references/social-photos-design.md +329 -0
  482. package/skills/design/scripts/cip/core.py +215 -0
  483. package/skills/design/scripts/cip/generate.py +484 -0
  484. package/skills/design/scripts/cip/render-html.py +424 -0
  485. package/skills/design/scripts/cip/search.py +127 -0
  486. package/skills/design/scripts/icon/generate.py +487 -0
  487. package/skills/design/scripts/logo/core.py +175 -0
  488. package/skills/design/scripts/logo/generate.py +362 -0
  489. package/skills/design/scripts/logo/search.py +114 -0
  490. package/skills/design-system/SKILL.md +244 -0
  491. package/skills/design-system/data/slide-backgrounds.csv +11 -0
  492. package/skills/design-system/data/slide-charts.csv +26 -0
  493. package/skills/design-system/data/slide-color-logic.csv +14 -0
  494. package/skills/design-system/data/slide-copy.csv +26 -0
  495. package/skills/design-system/data/slide-layout-logic.csv +16 -0
  496. package/skills/design-system/data/slide-layouts.csv +26 -0
  497. package/skills/design-system/data/slide-strategies.csv +16 -0
  498. package/skills/design-system/data/slide-typography.csv +15 -0
  499. package/skills/design-system/references/component-specs.md +236 -0
  500. package/skills/design-system/references/component-tokens.md +214 -0
  501. package/skills/design-system/references/primitive-tokens.md +203 -0
  502. package/skills/design-system/references/semantic-tokens.md +215 -0
  503. package/skills/design-system/references/states-and-variants.md +241 -0
  504. package/skills/design-system/references/tailwind-integration.md +251 -0
  505. package/skills/design-system/references/token-architecture.md +224 -0
  506. package/skills/design-system/scripts/embed-tokens.cjs +97 -0
  507. package/skills/design-system/scripts/fetch-background.py +317 -0
  508. package/skills/design-system/scripts/generate-slide.py +753 -0
  509. package/skills/design-system/scripts/generate-tokens.cjs +213 -0
  510. package/skills/design-system/scripts/html-token-validator.py +327 -0
  511. package/skills/design-system/scripts/search-slides.py +218 -0
  512. package/skills/design-system/scripts/slide-token-validator.py +35 -0
  513. package/skills/design-system/scripts/slide_search_core.py +453 -0
  514. package/skills/design-system/scripts/validate-tokens.cjs +251 -0
  515. package/skills/design-system/templates/design-tokens-starter.json +143 -0
  516. package/skills/design-taste-frontend/SKILL.md +79 -0
  517. package/skills/emil-design-engineering/SKILL.md +108 -0
  518. package/skills/emil-design-engineering/animations.md +266 -0
  519. package/skills/emil-design-engineering/component-design.md +382 -0
  520. package/skills/emil-design-engineering/forms-controls.md +261 -0
  521. package/skills/emil-design-engineering/marketing.md +160 -0
  522. package/skills/emil-design-engineering/performance.md +222 -0
  523. package/skills/emil-design-engineering/touch-accessibility.md +236 -0
  524. package/skills/emil-design-engineering/ui-polish.md +303 -0
  525. package/skills/frontend-design/SKILL.md +42 -0
  526. package/skills/full-output-enforcement/SKILL.md +32 -0
  527. package/skills/high-end-visual-design/SKILL.md +98 -0
  528. package/skills/react-doctor/AGENTS.md +15 -0
  529. package/skills/react-doctor/SKILL.md +19 -0
  530. package/skills/redesign-existing-projects/SKILL.md +178 -0
  531. package/skills/ui-styling/LICENSE.txt +202 -0
  532. package/skills/ui-styling/SKILL.md +324 -0
  533. package/skills/ui-styling/canvas-fonts/ArsenalSC-OFL.txt +93 -0
  534. package/skills/ui-styling/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
  535. package/skills/ui-styling/canvas-fonts/BigShoulders-Bold.ttf +0 -0
  536. package/skills/ui-styling/canvas-fonts/BigShoulders-OFL.txt +93 -0
  537. package/skills/ui-styling/canvas-fonts/BigShoulders-Regular.ttf +0 -0
  538. package/skills/ui-styling/canvas-fonts/Boldonse-OFL.txt +93 -0
  539. package/skills/ui-styling/canvas-fonts/Boldonse-Regular.ttf +0 -0
  540. package/skills/ui-styling/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
  541. package/skills/ui-styling/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
  542. package/skills/ui-styling/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
  543. package/skills/ui-styling/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
  544. package/skills/ui-styling/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
  545. package/skills/ui-styling/canvas-fonts/CrimsonPro-OFL.txt +93 -0
  546. package/skills/ui-styling/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
  547. package/skills/ui-styling/canvas-fonts/DMMono-OFL.txt +93 -0
  548. package/skills/ui-styling/canvas-fonts/DMMono-Regular.ttf +0 -0
  549. package/skills/ui-styling/canvas-fonts/EricaOne-OFL.txt +94 -0
  550. package/skills/ui-styling/canvas-fonts/EricaOne-Regular.ttf +0 -0
  551. package/skills/ui-styling/canvas-fonts/GeistMono-Bold.ttf +0 -0
  552. package/skills/ui-styling/canvas-fonts/GeistMono-OFL.txt +93 -0
  553. package/skills/ui-styling/canvas-fonts/GeistMono-Regular.ttf +0 -0
  554. package/skills/ui-styling/canvas-fonts/Gloock-OFL.txt +93 -0
  555. package/skills/ui-styling/canvas-fonts/Gloock-Regular.ttf +0 -0
  556. package/skills/ui-styling/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
  557. package/skills/ui-styling/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
  558. package/skills/ui-styling/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
  559. package/skills/ui-styling/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
  560. package/skills/ui-styling/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
  561. package/skills/ui-styling/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
  562. package/skills/ui-styling/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
  563. package/skills/ui-styling/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
  564. package/skills/ui-styling/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
  565. package/skills/ui-styling/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
  566. package/skills/ui-styling/canvas-fonts/InstrumentSans-OFL.txt +93 -0
  567. package/skills/ui-styling/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
  568. package/skills/ui-styling/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
  569. package/skills/ui-styling/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
  570. package/skills/ui-styling/canvas-fonts/Italiana-OFL.txt +93 -0
  571. package/skills/ui-styling/canvas-fonts/Italiana-Regular.ttf +0 -0
  572. package/skills/ui-styling/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
  573. package/skills/ui-styling/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
  574. package/skills/ui-styling/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
  575. package/skills/ui-styling/canvas-fonts/Jura-Light.ttf +0 -0
  576. package/skills/ui-styling/canvas-fonts/Jura-Medium.ttf +0 -0
  577. package/skills/ui-styling/canvas-fonts/Jura-OFL.txt +93 -0
  578. package/skills/ui-styling/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
  579. package/skills/ui-styling/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
  580. package/skills/ui-styling/canvas-fonts/Lora-Bold.ttf +0 -0
  581. package/skills/ui-styling/canvas-fonts/Lora-BoldItalic.ttf +0 -0
  582. package/skills/ui-styling/canvas-fonts/Lora-Italic.ttf +0 -0
  583. package/skills/ui-styling/canvas-fonts/Lora-OFL.txt +93 -0
  584. package/skills/ui-styling/canvas-fonts/Lora-Regular.ttf +0 -0
  585. package/skills/ui-styling/canvas-fonts/NationalPark-Bold.ttf +0 -0
  586. package/skills/ui-styling/canvas-fonts/NationalPark-OFL.txt +93 -0
  587. package/skills/ui-styling/canvas-fonts/NationalPark-Regular.ttf +0 -0
  588. package/skills/ui-styling/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
  589. package/skills/ui-styling/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
  590. package/skills/ui-styling/canvas-fonts/Outfit-Bold.ttf +0 -0
  591. package/skills/ui-styling/canvas-fonts/Outfit-OFL.txt +93 -0
  592. package/skills/ui-styling/canvas-fonts/Outfit-Regular.ttf +0 -0
  593. package/skills/ui-styling/canvas-fonts/PixelifySans-Medium.ttf +0 -0
  594. package/skills/ui-styling/canvas-fonts/PixelifySans-OFL.txt +93 -0
  595. package/skills/ui-styling/canvas-fonts/PoiretOne-OFL.txt +93 -0
  596. package/skills/ui-styling/canvas-fonts/PoiretOne-Regular.ttf +0 -0
  597. package/skills/ui-styling/canvas-fonts/RedHatMono-Bold.ttf +0 -0
  598. package/skills/ui-styling/canvas-fonts/RedHatMono-OFL.txt +93 -0
  599. package/skills/ui-styling/canvas-fonts/RedHatMono-Regular.ttf +0 -0
  600. package/skills/ui-styling/canvas-fonts/Silkscreen-OFL.txt +93 -0
  601. package/skills/ui-styling/canvas-fonts/Silkscreen-Regular.ttf +0 -0
  602. package/skills/ui-styling/canvas-fonts/SmoochSans-Medium.ttf +0 -0
  603. package/skills/ui-styling/canvas-fonts/SmoochSans-OFL.txt +93 -0
  604. package/skills/ui-styling/canvas-fonts/Tektur-Medium.ttf +0 -0
  605. package/skills/ui-styling/canvas-fonts/Tektur-OFL.txt +93 -0
  606. package/skills/ui-styling/canvas-fonts/Tektur-Regular.ttf +0 -0
  607. package/skills/ui-styling/canvas-fonts/WorkSans-Bold.ttf +0 -0
  608. package/skills/ui-styling/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
  609. package/skills/ui-styling/canvas-fonts/WorkSans-Italic.ttf +0 -0
  610. package/skills/ui-styling/canvas-fonts/WorkSans-OFL.txt +93 -0
  611. package/skills/ui-styling/canvas-fonts/WorkSans-Regular.ttf +0 -0
  612. package/skills/ui-styling/canvas-fonts/YoungSerif-OFL.txt +93 -0
  613. package/skills/ui-styling/canvas-fonts/YoungSerif-Regular.ttf +0 -0
  614. package/skills/ui-styling/references/canvas-design-system.md +320 -0
  615. package/skills/ui-styling/references/shadcn-accessibility.md +471 -0
  616. package/skills/ui-styling/references/shadcn-components.md +424 -0
  617. package/skills/ui-styling/references/shadcn-theming.md +373 -0
  618. package/skills/ui-styling/references/tailwind-customization.md +483 -0
  619. package/skills/ui-styling/references/tailwind-responsive.md +382 -0
  620. package/skills/ui-styling/references/tailwind-utilities.md +455 -0
  621. package/skills/ui-styling/scripts/.coverage +0 -0
  622. package/skills/ui-styling/scripts/requirements.txt +17 -0
  623. package/skills/ui-styling/scripts/shadcn_add.py +292 -0
  624. package/skills/ui-styling/scripts/tailwind_config_gen.py +456 -0
  625. package/skills/ui-styling/scripts/tests/coverage-ui.json +1392 -0
  626. package/skills/ui-styling/scripts/tests/requirements.txt +3 -0
  627. package/skills/ui-styling/scripts/tests/test_shadcn_add.py +266 -0
  628. package/skills/ui-styling/scripts/tests/test_tailwind_config_gen.py +336 -0
  629. package/skills/ui-ux-pro-max/SKILL.md +659 -0
  630. package/skills/ui-ux-pro-max/data/_sync_all.py +414 -0
  631. package/skills/ui-ux-pro-max/data/app-interface.csv +31 -0
  632. package/skills/ui-ux-pro-max/data/charts.csv +26 -0
  633. package/skills/ui-ux-pro-max/data/colors.csv +162 -0
  634. package/skills/ui-ux-pro-max/data/design.csv +1776 -0
  635. package/skills/ui-ux-pro-max/data/draft.csv +1779 -0
  636. package/skills/ui-ux-pro-max/data/google-fonts.csv +1924 -0
  637. package/skills/ui-ux-pro-max/data/icons.csv +106 -0
  638. package/skills/ui-ux-pro-max/data/landing.csv +35 -0
  639. package/skills/ui-ux-pro-max/data/products.csv +162 -0
  640. package/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
  641. package/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
  642. package/skills/ui-ux-pro-max/data/styles.csv +85 -0
  643. package/skills/ui-ux-pro-max/data/typography.csv +74 -0
  644. package/skills/ui-ux-pro-max/data/ui-reasoning.csv +162 -0
  645. package/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
  646. package/skills/ui-ux-pro-max/scripts/__pycache__/core.cpython-314.pyc +0 -0
  647. package/skills/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-314.pyc +0 -0
  648. package/skills/ui-ux-pro-max/scripts/core.py +247 -0
  649. package/skills/ui-ux-pro-max/scripts/design_system.py +1067 -0
  650. package/skills/ui-ux-pro-max/scripts/search.py +114 -0
  651. package/skills/vercel-react-best-practices/AGENTS.md +2934 -0
  652. package/skills/vercel-react-best-practices/README.md +123 -0
  653. package/skills/vercel-react-best-practices/SKILL.md +136 -0
  654. package/skills/vercel-react-best-practices/rules/advanced-event-handler-refs.md +55 -0
  655. package/skills/vercel-react-best-practices/rules/advanced-init-once.md +42 -0
  656. package/skills/vercel-react-best-practices/rules/advanced-use-latest.md +39 -0
  657. package/skills/vercel-react-best-practices/rules/async-api-routes.md +38 -0
  658. package/skills/vercel-react-best-practices/rules/async-defer-await.md +80 -0
  659. package/skills/vercel-react-best-practices/rules/async-dependencies.md +51 -0
  660. package/skills/vercel-react-best-practices/rules/async-parallel.md +28 -0
  661. package/skills/vercel-react-best-practices/rules/async-suspense-boundaries.md +99 -0
  662. package/skills/vercel-react-best-practices/rules/bundle-barrel-imports.md +59 -0
  663. package/skills/vercel-react-best-practices/rules/bundle-conditional.md +31 -0
  664. package/skills/vercel-react-best-practices/rules/bundle-defer-third-party.md +49 -0
  665. package/skills/vercel-react-best-practices/rules/bundle-dynamic-imports.md +35 -0
  666. package/skills/vercel-react-best-practices/rules/bundle-preload.md +50 -0
  667. package/skills/vercel-react-best-practices/rules/client-event-listeners.md +74 -0
  668. package/skills/vercel-react-best-practices/rules/client-localstorage-schema.md +71 -0
  669. package/skills/vercel-react-best-practices/rules/client-passive-event-listeners.md +48 -0
  670. package/skills/vercel-react-best-practices/rules/client-swr-dedup.md +56 -0
  671. package/skills/vercel-react-best-practices/rules/js-batch-dom-css.md +107 -0
  672. package/skills/vercel-react-best-practices/rules/js-cache-function-results.md +80 -0
  673. package/skills/vercel-react-best-practices/rules/js-cache-property-access.md +28 -0
  674. package/skills/vercel-react-best-practices/rules/js-cache-storage.md +70 -0
  675. package/skills/vercel-react-best-practices/rules/js-combine-iterations.md +32 -0
  676. package/skills/vercel-react-best-practices/rules/js-early-exit.md +50 -0
  677. package/skills/vercel-react-best-practices/rules/js-hoist-regexp.md +45 -0
  678. package/skills/vercel-react-best-practices/rules/js-index-maps.md +37 -0
  679. package/skills/vercel-react-best-practices/rules/js-length-check-first.md +49 -0
  680. package/skills/vercel-react-best-practices/rules/js-min-max-loop.md +82 -0
  681. package/skills/vercel-react-best-practices/rules/js-set-map-lookups.md +24 -0
  682. package/skills/vercel-react-best-practices/rules/js-tosorted-immutable.md +57 -0
  683. package/skills/vercel-react-best-practices/rules/rendering-activity.md +26 -0
  684. package/skills/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
  685. package/skills/vercel-react-best-practices/rules/rendering-conditional-render.md +40 -0
  686. package/skills/vercel-react-best-practices/rules/rendering-content-visibility.md +38 -0
  687. package/skills/vercel-react-best-practices/rules/rendering-hoist-jsx.md +46 -0
  688. package/skills/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
  689. package/skills/vercel-react-best-practices/rules/rendering-hydration-suppress-warning.md +30 -0
  690. package/skills/vercel-react-best-practices/rules/rendering-svg-precision.md +28 -0
  691. package/skills/vercel-react-best-practices/rules/rendering-usetransition-loading.md +75 -0
  692. package/skills/vercel-react-best-practices/rules/rerender-defer-reads.md +39 -0
  693. package/skills/vercel-react-best-practices/rules/rerender-dependencies.md +45 -0
  694. package/skills/vercel-react-best-practices/rules/rerender-derived-state-no-effect.md +40 -0
  695. package/skills/vercel-react-best-practices/rules/rerender-derived-state.md +29 -0
  696. package/skills/vercel-react-best-practices/rules/rerender-functional-setstate.md +74 -0
  697. package/skills/vercel-react-best-practices/rules/rerender-lazy-state-init.md +58 -0
  698. package/skills/vercel-react-best-practices/rules/rerender-memo-with-default-value.md +38 -0
  699. package/skills/vercel-react-best-practices/rules/rerender-memo.md +44 -0
  700. package/skills/vercel-react-best-practices/rules/rerender-move-effect-to-event.md +45 -0
  701. package/skills/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +35 -0
  702. package/skills/vercel-react-best-practices/rules/rerender-transitions.md +40 -0
  703. package/skills/vercel-react-best-practices/rules/rerender-use-ref-transient-values.md +73 -0
  704. package/skills/vercel-react-best-practices/rules/server-after-nonblocking.md +73 -0
  705. package/skills/vercel-react-best-practices/rules/server-auth-actions.md +96 -0
  706. package/skills/vercel-react-best-practices/rules/server-cache-lru.md +41 -0
  707. package/skills/vercel-react-best-practices/rules/server-cache-react.md +76 -0
  708. package/skills/vercel-react-best-practices/rules/server-dedup-props.md +65 -0
  709. package/skills/vercel-react-best-practices/rules/server-parallel-fetching.md +83 -0
  710. package/skills/vercel-react-best-practices/rules/server-serialization.md +38 -0
  711. package/skills/web-animation-design/PRACTICAL-TIPS.md +304 -0
  712. package/skills/web-animation-design/SKILL.md +336 -0
  713. package/skills/web-design-guidelines/SKILL.md +39 -0
  714. package/starter/.env.example +1 -0
  715. package/starter/README.md +73 -0
  716. package/starter/components.json +21 -0
  717. package/starter/eslint.config.js +23 -0
  718. package/starter/index.html +13 -0
  719. package/starter/package-lock.json +7590 -0
  720. package/starter/package.json +57 -0
  721. package/starter/pnpm-lock.yaml +4479 -0
  722. package/starter/public/favicon.svg +1 -0
  723. package/starter/public/icons.svg +24 -0
  724. package/starter/src/App.tsx +7 -0
  725. package/starter/src/assets/hero.png +0 -0
  726. package/starter/src/assets/vite.svg +1 -0
  727. package/starter/src/components/error-boundary.tsx +38 -0
  728. package/starter/src/components/not-found.tsx +16 -0
  729. package/starter/src/components/ui/accordion.tsx +51 -0
  730. package/starter/src/components/ui/alert-dialog.tsx +162 -0
  731. package/starter/src/components/ui/alert.tsx +49 -0
  732. package/starter/src/components/ui/aspect-ratio.tsx +9 -0
  733. package/starter/src/components/ui/avatar.tsx +87 -0
  734. package/starter/src/components/ui/badge.tsx +40 -0
  735. package/starter/src/components/ui/breadcrumb.tsx +92 -0
  736. package/starter/src/components/ui/button-group.tsx +74 -0
  737. package/starter/src/components/ui/button.tsx +62 -0
  738. package/starter/src/components/ui/calendar.tsx +158 -0
  739. package/starter/src/components/ui/card.tsx +56 -0
  740. package/starter/src/components/ui/carousel.tsx +215 -0
  741. package/starter/src/components/ui/chart.tsx +296 -0
  742. package/starter/src/components/ui/checkbox.tsx +29 -0
  743. package/starter/src/components/ui/collapsible.tsx +15 -0
  744. package/starter/src/components/ui/combobox.tsx +266 -0
  745. package/starter/src/components/ui/command.tsx +136 -0
  746. package/starter/src/components/ui/context-menu.tsx +211 -0
  747. package/starter/src/components/ui/dialog.tsx +135 -0
  748. package/starter/src/components/ui/direction.tsx +18 -0
  749. package/starter/src/components/ui/drawer.tsx +106 -0
  750. package/starter/src/components/ui/dropdown-menu.tsx +219 -0
  751. package/starter/src/components/ui/empty.tsx +85 -0
  752. package/starter/src/components/ui/field.tsx +225 -0
  753. package/starter/src/components/ui/form.tsx +135 -0
  754. package/starter/src/components/ui/hover-card.tsx +36 -0
  755. package/starter/src/components/ui/input-group.tsx +146 -0
  756. package/starter/src/components/ui/input-otp.tsx +68 -0
  757. package/starter/src/components/ui/input.tsx +21 -0
  758. package/starter/src/components/ui/item.tsx +157 -0
  759. package/starter/src/components/ui/kbd.tsx +22 -0
  760. package/starter/src/components/ui/label.tsx +19 -0
  761. package/starter/src/components/ui/menubar.tsx +236 -0
  762. package/starter/src/components/ui/native-select.tsx +44 -0
  763. package/starter/src/components/ui/navigation-menu.tsx +142 -0
  764. package/starter/src/components/ui/pagination.tsx +98 -0
  765. package/starter/src/components/ui/popover.tsx +52 -0
  766. package/starter/src/components/ui/progress.tsx +24 -0
  767. package/starter/src/components/ui/radio-group.tsx +31 -0
  768. package/starter/src/components/ui/resizable.tsx +47 -0
  769. package/starter/src/components/ui/scroll-area.tsx +46 -0
  770. package/starter/src/components/ui/select.tsx +162 -0
  771. package/starter/src/components/ui/separator.tsx +26 -0
  772. package/starter/src/components/ui/sheet.tsx +107 -0
  773. package/starter/src/components/ui/sidebar.tsx +674 -0
  774. package/starter/src/components/ui/skeleton.tsx +7 -0
  775. package/starter/src/components/ui/slider.tsx +54 -0
  776. package/starter/src/components/ui/sonner.tsx +31 -0
  777. package/starter/src/components/ui/spinner.tsx +9 -0
  778. package/starter/src/components/ui/switch.tsx +33 -0
  779. package/starter/src/components/ui/table.tsx +75 -0
  780. package/starter/src/components/ui/tabs.tsx +69 -0
  781. package/starter/src/components/ui/textarea.tsx +18 -0
  782. package/starter/src/components/ui/toggle-group.tsx +79 -0
  783. package/starter/src/components/ui/toggle.tsx +41 -0
  784. package/starter/src/components/ui/tooltip.tsx +42 -0
  785. package/starter/src/hooks/use-mobile.ts +19 -0
  786. package/starter/src/index.css +93 -0
  787. package/starter/src/lib/graphql-client.ts +5 -0
  788. package/starter/src/lib/providers.tsx +23 -0
  789. package/starter/src/lib/utils.ts +6 -0
  790. package/starter/src/main.tsx +16 -0
  791. package/starter/tsconfig.app.json +32 -0
  792. package/starter/tsconfig.json +4 -0
  793. package/starter/tsconfig.node.json +26 -0
  794. package/starter/vite.config.ts +16 -0
@@ -0,0 +1,487 @@
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+ """
4
+ Icon Generation Script using Gemini 3.1 Pro Preview API
5
+ Generates SVG icons via text generation (SVG is XML text format)
6
+
7
+ Model: gemini-3.1-pro-preview - best thinking, token efficiency, factual consistency
8
+
9
+ Usage:
10
+ python generate.py --prompt "settings gear icon" --style outlined
11
+ python generate.py --prompt "shopping cart" --style filled --color "#6366F1"
12
+ python generate.py --name "dashboard" --category navigation --style duotone
13
+ python generate.py --prompt "cloud upload" --batch 4 --output-dir ./icons
14
+ python generate.py --prompt "user profile" --sizes "16,24,32,48"
15
+ """
16
+
17
+ import argparse
18
+ import json
19
+ import os
20
+ import re
21
+ import sys
22
+ import time
23
+ from pathlib import Path
24
+ from datetime import datetime
25
+
26
+
27
+ def load_env():
28
+ """Load .env files in priority order"""
29
+ env_paths = [
30
+ Path(__file__).parent.parent.parent / ".env",
31
+ Path.home() / ".claude" / "skills" / ".env",
32
+ Path.home() / ".claude" / ".env"
33
+ ]
34
+ for env_path in env_paths:
35
+ if env_path.exists():
36
+ with open(env_path) as f:
37
+ for line in f:
38
+ line = line.strip()
39
+ if line and not line.startswith('#') and '=' in line:
40
+ key, value = line.split('=', 1)
41
+ if key not in os.environ:
42
+ os.environ[key] = value.strip('"\'')
43
+
44
+ load_env()
45
+
46
+ try:
47
+ from google import genai
48
+ from google.genai import types
49
+ except ImportError:
50
+ print("Error: google-genai package not installed.")
51
+ print("Install with: pip install google-genai")
52
+ sys.exit(1)
53
+
54
+
55
+ # ============ CONFIGURATION ============
56
+ GEMINI_API_KEY = os.environ.get("GEMINI_API_KEY")
57
+ MODEL = "gemini-3.1-pro-preview"
58
+
59
+ # Icon styles with SVG-specific instructions
60
+ ICON_STYLES = {
61
+ "outlined": "outlined stroke icons, 2px stroke width, no fill, clean open paths",
62
+ "filled": "solid filled icons, no stroke, flat color fills, bold shapes",
63
+ "duotone": "duotone style with primary color at full opacity and secondary color at 30% opacity, layered shapes",
64
+ "thin": "thin line icons, 1px or 1.5px stroke width, delicate minimalist lines",
65
+ "bold": "bold thick line icons, 3px stroke width, heavy weight, impactful",
66
+ "rounded": "rounded icons with round line caps and joins, soft corners, friendly feel",
67
+ "sharp": "sharp angular icons, square line caps and mitered joins, precise edges",
68
+ "flat": "flat design icons, solid fills, no gradients or shadows, geometric simplicity",
69
+ "gradient": "linear or radial gradient fills, modern vibrant color transitions",
70
+ "glassmorphism": "glassmorphism style with semi-transparent fills, blur backdrop effect simulation, frosted glass",
71
+ "pixel": "pixel art style icons on a grid, retro 8-bit aesthetic, crisp edges",
72
+ "hand-drawn": "hand-drawn sketch style, slightly irregular strokes, organic feel, imperfect lines",
73
+ "isometric": "isometric 3D projection, 30-degree angles, dimensional depth",
74
+ "glyph": "simple glyph style, single solid shape, minimal detail, pictogram",
75
+ "animated-ready": "animated-ready SVG with named groups and IDs for CSS/JS animation targets",
76
+ }
77
+
78
+ ICON_CATEGORIES = {
79
+ "navigation": "arrows, menus, hamburger, chevrons, home, back, forward, breadcrumb",
80
+ "action": "edit, delete, save, download, upload, share, copy, paste, print, search",
81
+ "communication": "email, chat, phone, video call, notification, bell, message bubble",
82
+ "media": "play, pause, stop, skip, volume, microphone, camera, image, gallery",
83
+ "file": "document, folder, archive, attachment, cloud, database, storage",
84
+ "user": "person, group, avatar, profile, settings, lock, key, shield",
85
+ "commerce": "cart, bag, wallet, credit card, receipt, tag, gift, store",
86
+ "data": "chart, graph, analytics, dashboard, table, filter, sort, calendar",
87
+ "development": "code, terminal, bug, git, API, server, database, deploy",
88
+ "social": "heart, star, thumbs up, bookmark, flag, trophy, badge, crown",
89
+ "weather": "sun, moon, cloud, rain, snow, wind, thunder, temperature",
90
+ "map": "pin, location, compass, globe, route, directions, map marker",
91
+ }
92
+
93
+ # SVG generation prompt template
94
+ SVG_PROMPT_TEMPLATE = """Generate a clean, production-ready SVG icon.
95
+
96
+ Requirements:
97
+ - Output ONLY valid SVG code, nothing else
98
+ - ViewBox: "0 0 {viewbox} {viewbox}"
99
+ - Use currentColor for strokes/fills (inherits CSS color)
100
+ - No embedded fonts or text elements unless specifically requested
101
+ - No raster images or external references
102
+ - Optimized paths with minimal nodes
103
+ - Accessible: include <title> element with icon description
104
+ {style_instructions}
105
+ {color_instructions}
106
+ {size_instructions}
107
+
108
+ Icon to generate: {prompt}
109
+
110
+ Output the SVG code only, wrapped in ```svg``` code block."""
111
+
112
+ SVG_BATCH_PROMPT_TEMPLATE = """Generate {count} distinct SVG icon variations for: {prompt}
113
+
114
+ Requirements for EACH icon:
115
+ - Output ONLY valid SVG code
116
+ - ViewBox: "0 0 {viewbox} {viewbox}"
117
+ - Use currentColor for strokes/fills (inherits CSS color)
118
+ - No embedded fonts, raster images, or external references
119
+ - Optimized paths with minimal nodes
120
+ - Include <title> element with icon description
121
+ {style_instructions}
122
+ {color_instructions}
123
+
124
+ Generate {count} different visual interpretations. Output each SVG in a separate ```svg``` code block.
125
+ Label each variation (e.g., "Variation 1: [brief description]")."""
126
+
127
+
128
+ def extract_svgs(text):
129
+ """Extract SVG code blocks from model response"""
130
+ svgs = []
131
+
132
+ # Try ```svg code blocks first
133
+ pattern = r'```svg\s*\n(.*?)```'
134
+ matches = re.findall(pattern, text, re.DOTALL)
135
+ if matches:
136
+ svgs.extend(matches)
137
+
138
+ # Fallback: try ```xml code blocks
139
+ if not svgs:
140
+ pattern = r'```xml\s*\n(.*?)```'
141
+ matches = re.findall(pattern, text, re.DOTALL)
142
+ svgs.extend(matches)
143
+
144
+ # Fallback: try bare <svg> tags
145
+ if not svgs:
146
+ pattern = r'(<svg[^>]*>.*?</svg>)'
147
+ matches = re.findall(pattern, text, re.DOTALL)
148
+ svgs.extend(matches)
149
+
150
+ # Clean up extracted SVGs
151
+ cleaned = []
152
+ for svg in svgs:
153
+ svg = svg.strip()
154
+ if not svg.startswith('<svg'):
155
+ # Try to find <svg> within the extracted text
156
+ match = re.search(r'(<svg[^>]*>.*?</svg>)', svg, re.DOTALL)
157
+ if match:
158
+ svg = match.group(1)
159
+ else:
160
+ continue
161
+ cleaned.append(svg)
162
+
163
+ return cleaned
164
+
165
+
166
+ def apply_color(svg_code, color):
167
+ """Replace currentColor with specific color if provided"""
168
+ if color:
169
+ # Replace currentColor with the specified color
170
+ svg_code = svg_code.replace('currentColor', color)
171
+ # If no currentColor was present, add fill/stroke color
172
+ if color not in svg_code:
173
+ svg_code = svg_code.replace('<svg', f'<svg color="{color}"', 1)
174
+ return svg_code
175
+
176
+
177
+ def apply_viewbox_size(svg_code, size):
178
+ """Adjust SVG viewBox to target size"""
179
+ if size:
180
+ # Update width/height attributes if present
181
+ svg_code = re.sub(r'width="[^"]*"', f'width="{size}"', svg_code)
182
+ svg_code = re.sub(r'height="[^"]*"', f'height="{size}"', svg_code)
183
+ # Add width/height if not present
184
+ if 'width=' not in svg_code:
185
+ svg_code = svg_code.replace('<svg', f'<svg width="{size}" height="{size}"', 1)
186
+ return svg_code
187
+
188
+
189
+ def generate_icon(prompt, style=None, category=None, name=None,
190
+ color=None, size=24, output_path=None, viewbox=24):
191
+ """Generate a single SVG icon using Gemini 3.1 Pro Preview"""
192
+
193
+ if not GEMINI_API_KEY:
194
+ print("Error: GEMINI_API_KEY not set")
195
+ print("Set it with: export GEMINI_API_KEY='your-key'")
196
+ return None
197
+
198
+ client = genai.Client(api_key=GEMINI_API_KEY)
199
+
200
+ # Build style instructions
201
+ style_instructions = ""
202
+ if style and style in ICON_STYLES:
203
+ style_instructions = f"- Style: {ICON_STYLES[style]}"
204
+
205
+ # Build color instructions
206
+ color_instructions = "- Use currentColor for all strokes and fills"
207
+ if color:
208
+ color_instructions = f"- Use color: {color} for primary elements, currentColor for secondary"
209
+
210
+ # Build size instructions
211
+ size_instructions = f"- Design for {size}px display size, optimize detail level accordingly"
212
+
213
+ # Build final prompt
214
+ icon_prompt = prompt
215
+ if category and category in ICON_CATEGORIES:
216
+ icon_prompt = f"{prompt} (category: {ICON_CATEGORIES[category]})"
217
+ if name:
218
+ icon_prompt = f"'{name}' icon: {icon_prompt}"
219
+
220
+ full_prompt = SVG_PROMPT_TEMPLATE.format(
221
+ prompt=icon_prompt,
222
+ viewbox=viewbox,
223
+ style_instructions=style_instructions,
224
+ color_instructions=color_instructions,
225
+ size_instructions=size_instructions
226
+ )
227
+
228
+ print(f"Generating icon with {MODEL}...")
229
+ print(f"Prompt: {prompt}")
230
+ if style:
231
+ print(f"Style: {style}")
232
+ print()
233
+
234
+ try:
235
+ response = client.models.generate_content(
236
+ model=MODEL,
237
+ contents=full_prompt,
238
+ config=types.GenerateContentConfig(
239
+ temperature=0.7,
240
+ max_output_tokens=4096,
241
+ )
242
+ )
243
+
244
+ # Extract SVG from response
245
+ response_text = response.text if hasattr(response, 'text') else ""
246
+ if not response_text:
247
+ for part in response.candidates[0].content.parts:
248
+ if hasattr(part, 'text') and part.text:
249
+ response_text += part.text
250
+
251
+ svgs = extract_svgs(response_text)
252
+
253
+ if not svgs:
254
+ print("No valid SVG generated. Model response:")
255
+ print(response_text[:500])
256
+ return None
257
+
258
+ svg_code = svgs[0]
259
+
260
+ # Apply color if specified
261
+ svg_code = apply_color(svg_code, color)
262
+
263
+ # Apply size
264
+ svg_code = apply_viewbox_size(svg_code, size)
265
+
266
+ # Determine output path
267
+ if output_path is None:
268
+ timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
269
+ slug = name or prompt.split()[0] if prompt else "icon"
270
+ slug = re.sub(r'[^a-zA-Z0-9_-]', '_', slug.lower())
271
+ style_suffix = f"_{style}" if style else ""
272
+ output_path = f"{slug}{style_suffix}_{timestamp}.svg"
273
+
274
+ # Save SVG
275
+ with open(output_path, "w", encoding="utf-8") as f:
276
+ f.write(svg_code)
277
+
278
+ print(f"Icon saved to: {output_path}")
279
+ return output_path
280
+
281
+ except Exception as e:
282
+ print(f"Error generating icon: {e}")
283
+ return None
284
+
285
+
286
+ def generate_batch(prompt, count, output_dir, style=None, color=None,
287
+ viewbox=24, name=None):
288
+ """Generate multiple icon variations"""
289
+
290
+ if not GEMINI_API_KEY:
291
+ print("Error: GEMINI_API_KEY not set")
292
+ return []
293
+
294
+ client = genai.Client(api_key=GEMINI_API_KEY)
295
+ os.makedirs(output_dir, exist_ok=True)
296
+
297
+ # Build instructions
298
+ style_instructions = ""
299
+ if style and style in ICON_STYLES:
300
+ style_instructions = f"- Style: {ICON_STYLES[style]}"
301
+
302
+ color_instructions = "- Use currentColor for all strokes and fills"
303
+ if color:
304
+ color_instructions = f"- Use color: {color} for primary elements"
305
+
306
+ full_prompt = SVG_BATCH_PROMPT_TEMPLATE.format(
307
+ prompt=prompt,
308
+ count=count,
309
+ viewbox=viewbox,
310
+ style_instructions=style_instructions,
311
+ color_instructions=color_instructions
312
+ )
313
+
314
+ print(f"\n{'='*60}")
315
+ print(f" BATCH ICON GENERATION")
316
+ print(f" Model: {MODEL}")
317
+ print(f" Prompt: {prompt}")
318
+ print(f" Variants: {count}")
319
+ print(f" Output: {output_dir}")
320
+ print(f"{'='*60}\n")
321
+
322
+ try:
323
+ response = client.models.generate_content(
324
+ model=MODEL,
325
+ contents=full_prompt,
326
+ config=types.GenerateContentConfig(
327
+ temperature=0.9,
328
+ max_output_tokens=16384,
329
+ )
330
+ )
331
+
332
+ response_text = response.text if hasattr(response, 'text') else ""
333
+ if not response_text:
334
+ for part in response.candidates[0].content.parts:
335
+ if hasattr(part, 'text') and part.text:
336
+ response_text += part.text
337
+
338
+ svgs = extract_svgs(response_text)
339
+
340
+ if not svgs:
341
+ print("No valid SVGs generated.")
342
+ print(response_text[:500])
343
+ return []
344
+
345
+ results = []
346
+ slug = name or re.sub(r'[^a-zA-Z0-9_-]', '_', prompt.split()[0].lower())
347
+ style_suffix = f"_{style}" if style else ""
348
+
349
+ for i, svg_code in enumerate(svgs[:count]):
350
+ svg_code = apply_color(svg_code, color)
351
+ filename = f"{slug}{style_suffix}_{i+1:02d}.svg"
352
+ filepath = os.path.join(output_dir, filename)
353
+
354
+ with open(filepath, "w", encoding="utf-8") as f:
355
+ f.write(svg_code)
356
+
357
+ results.append(filepath)
358
+ print(f" [{i+1}/{len(svgs[:count])}] Saved: {filename}")
359
+
360
+ print(f"\n{'='*60}")
361
+ print(f" BATCH COMPLETE: {len(results)}/{count} icons generated")
362
+ print(f"{'='*60}\n")
363
+
364
+ return results
365
+
366
+ except Exception as e:
367
+ print(f"Error generating icons: {e}")
368
+ return []
369
+
370
+
371
+ def generate_sizes(prompt, sizes, style=None, color=None, output_dir=None, name=None):
372
+ """Generate same icon at multiple sizes"""
373
+ if output_dir is None:
374
+ output_dir = "."
375
+ os.makedirs(output_dir, exist_ok=True)
376
+
377
+ results = []
378
+ slug = name or re.sub(r'[^a-zA-Z0-9_-]', '_', prompt.split()[0].lower())
379
+ style_suffix = f"_{style}" if style else ""
380
+
381
+ for size in sizes:
382
+ print(f"Generating {size}px variant...")
383
+ filename = f"{slug}{style_suffix}_{size}px.svg"
384
+ filepath = os.path.join(output_dir, filename)
385
+
386
+ result = generate_icon(
387
+ prompt=prompt,
388
+ style=style,
389
+ color=color,
390
+ size=size,
391
+ output_path=filepath,
392
+ viewbox=size
393
+ )
394
+
395
+ if result:
396
+ results.append(result)
397
+
398
+ time.sleep(1)
399
+
400
+ return results
401
+
402
+
403
+ def main():
404
+ parser = argparse.ArgumentParser(
405
+ description="Generate SVG icons using Gemini 3.1 Pro Preview"
406
+ )
407
+ parser.add_argument("--prompt", "-p", type=str, help="Icon description")
408
+ parser.add_argument("--name", "-n", type=str, help="Icon name (for filename)")
409
+ parser.add_argument("--style", "-s", choices=list(ICON_STYLES.keys()),
410
+ help="Icon style")
411
+ parser.add_argument("--category", "-c", choices=list(ICON_CATEGORIES.keys()),
412
+ help="Icon category for context")
413
+ parser.add_argument("--color", type=str,
414
+ help="Primary color (hex, e.g. #6366F1). Default: currentColor")
415
+ parser.add_argument("--size", type=int, default=24,
416
+ help="Icon size in px (default: 24)")
417
+ parser.add_argument("--viewbox", type=int, default=24,
418
+ help="SVG viewBox size (default: 24)")
419
+ parser.add_argument("--output", "-o", type=str, help="Output file path")
420
+ parser.add_argument("--output-dir", type=str, help="Output directory for batch")
421
+ parser.add_argument("--batch", type=int,
422
+ help="Number of icon variants to generate")
423
+ parser.add_argument("--sizes", type=str,
424
+ help="Comma-separated sizes (e.g. '16,24,32,48')")
425
+ parser.add_argument("--list-styles", action="store_true",
426
+ help="List available icon styles")
427
+ parser.add_argument("--list-categories", action="store_true",
428
+ help="List available icon categories")
429
+
430
+ args = parser.parse_args()
431
+
432
+ if args.list_styles:
433
+ print("Available icon styles:")
434
+ for style, desc in ICON_STYLES.items():
435
+ print(f" {style}: {desc[:70]}...")
436
+ return
437
+
438
+ if args.list_categories:
439
+ print("Available icon categories:")
440
+ for cat, desc in ICON_CATEGORIES.items():
441
+ print(f" {cat}: {desc}")
442
+ return
443
+
444
+ if not args.prompt and not args.name:
445
+ parser.error("Either --prompt or --name is required")
446
+
447
+ prompt = args.prompt or args.name
448
+
449
+ # Multi-size mode
450
+ if args.sizes:
451
+ sizes = [int(s.strip()) for s in args.sizes.split(",")]
452
+ generate_sizes(
453
+ prompt=prompt,
454
+ sizes=sizes,
455
+ style=args.style,
456
+ color=args.color,
457
+ output_dir=args.output_dir or "./icons",
458
+ name=args.name
459
+ )
460
+ # Batch mode
461
+ elif args.batch:
462
+ output_dir = args.output_dir or "./icons"
463
+ generate_batch(
464
+ prompt=prompt,
465
+ count=args.batch,
466
+ output_dir=output_dir,
467
+ style=args.style,
468
+ color=args.color,
469
+ viewbox=args.viewbox,
470
+ name=args.name
471
+ )
472
+ # Single icon
473
+ else:
474
+ generate_icon(
475
+ prompt=prompt,
476
+ style=args.style,
477
+ category=args.category,
478
+ name=args.name,
479
+ color=args.color,
480
+ size=args.size,
481
+ output_path=args.output,
482
+ viewbox=args.viewbox
483
+ )
484
+
485
+
486
+ if __name__ == "__main__":
487
+ main()
@@ -0,0 +1,175 @@
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+ """
4
+ Logo Design Core - BM25 search engine for logo design guidelines
5
+ """
6
+
7
+ import csv
8
+ import re
9
+ from pathlib import Path
10
+ from math import log
11
+ from collections import defaultdict
12
+
13
+ # ============ CONFIGURATION ============
14
+ DATA_DIR = Path(__file__).parent.parent.parent / "data" / "logo"
15
+ MAX_RESULTS = 3
16
+
17
+ CSV_CONFIG = {
18
+ "style": {
19
+ "file": "styles.csv",
20
+ "search_cols": ["Style Name", "Category", "Keywords", "Best For"],
21
+ "output_cols": ["Style Name", "Category", "Keywords", "Primary Colors", "Secondary Colors", "Typography", "Effects", "Best For", "Avoid For", "Complexity", "Era"]
22
+ },
23
+ "color": {
24
+ "file": "colors.csv",
25
+ "search_cols": ["Palette Name", "Category", "Keywords", "Psychology", "Best For"],
26
+ "output_cols": ["Palette Name", "Category", "Keywords", "Primary Hex", "Secondary Hex", "Accent Hex", "Background Hex", "Text Hex", "Psychology", "Best For", "Avoid For"]
27
+ },
28
+ "industry": {
29
+ "file": "industries.csv",
30
+ "search_cols": ["Industry", "Keywords", "Recommended Styles", "Mood"],
31
+ "output_cols": ["Industry", "Keywords", "Recommended Styles", "Primary Colors", "Typography", "Common Symbols", "Mood", "Best Practices", "Avoid"]
32
+ }
33
+ }
34
+
35
+
36
+ # ============ BM25 IMPLEMENTATION ============
37
+ class BM25:
38
+ """BM25 ranking algorithm for text search"""
39
+
40
+ def __init__(self, k1=1.5, b=0.75):
41
+ self.k1 = k1
42
+ self.b = b
43
+ self.corpus = []
44
+ self.doc_lengths = []
45
+ self.avgdl = 0
46
+ self.idf = {}
47
+ self.doc_freqs = defaultdict(int)
48
+ self.N = 0
49
+
50
+ def tokenize(self, text):
51
+ """Lowercase, split, remove punctuation, filter short words"""
52
+ text = re.sub(r'[^\w\s]', ' ', str(text).lower())
53
+ return [w for w in text.split() if len(w) > 2]
54
+
55
+ def fit(self, documents):
56
+ """Build BM25 index from documents"""
57
+ self.corpus = [self.tokenize(doc) for doc in documents]
58
+ self.N = len(self.corpus)
59
+ if self.N == 0:
60
+ return
61
+ self.doc_lengths = [len(doc) for doc in self.corpus]
62
+ self.avgdl = sum(self.doc_lengths) / self.N
63
+
64
+ for doc in self.corpus:
65
+ seen = set()
66
+ for word in doc:
67
+ if word not in seen:
68
+ self.doc_freqs[word] += 1
69
+ seen.add(word)
70
+
71
+ for word, freq in self.doc_freqs.items():
72
+ self.idf[word] = log((self.N - freq + 0.5) / (freq + 0.5) + 1)
73
+
74
+ def score(self, query):
75
+ """Score all documents against query"""
76
+ query_tokens = self.tokenize(query)
77
+ scores = []
78
+
79
+ for idx, doc in enumerate(self.corpus):
80
+ score = 0
81
+ doc_len = self.doc_lengths[idx]
82
+ term_freqs = defaultdict(int)
83
+ for word in doc:
84
+ term_freqs[word] += 1
85
+
86
+ for token in query_tokens:
87
+ if token in self.idf:
88
+ tf = term_freqs[token]
89
+ idf = self.idf[token]
90
+ numerator = tf * (self.k1 + 1)
91
+ denominator = tf + self.k1 * (1 - self.b + self.b * doc_len / self.avgdl)
92
+ score += idf * numerator / denominator
93
+
94
+ scores.append((idx, score))
95
+
96
+ return sorted(scores, key=lambda x: x[1], reverse=True)
97
+
98
+
99
+ # ============ SEARCH FUNCTIONS ============
100
+ def _load_csv(filepath):
101
+ """Load CSV and return list of dicts"""
102
+ with open(filepath, 'r', encoding='utf-8') as f:
103
+ return list(csv.DictReader(f))
104
+
105
+
106
+ def _search_csv(filepath, search_cols, output_cols, query, max_results):
107
+ """Core search function using BM25"""
108
+ if not filepath.exists():
109
+ return []
110
+
111
+ data = _load_csv(filepath)
112
+
113
+ # Build documents from search columns
114
+ documents = [" ".join(str(row.get(col, "")) for col in search_cols) for row in data]
115
+
116
+ # BM25 search
117
+ bm25 = BM25()
118
+ bm25.fit(documents)
119
+ ranked = bm25.score(query)
120
+
121
+ # Get top results with score > 0
122
+ results = []
123
+ for idx, score in ranked[:max_results]:
124
+ if score > 0:
125
+ row = data[idx]
126
+ results.append({col: row.get(col, "") for col in output_cols if col in row})
127
+
128
+ return results
129
+
130
+
131
+ def detect_domain(query):
132
+ """Auto-detect the most relevant domain from query"""
133
+ query_lower = query.lower()
134
+
135
+ domain_keywords = {
136
+ "style": ["style", "minimalist", "vintage", "modern", "retro", "geometric", "abstract", "emblem", "badge", "wordmark", "mascot", "luxury", "playful", "corporate"],
137
+ "color": ["color", "palette", "hex", "#", "rgb", "blue", "red", "green", "gold", "warm", "cool", "vibrant", "pastel"],
138
+ "industry": ["tech", "healthcare", "finance", "legal", "restaurant", "food", "fashion", "beauty", "education", "sports", "fitness", "real estate", "crypto", "gaming"]
139
+ }
140
+
141
+ scores = {domain: sum(1 for kw in keywords if kw in query_lower) for domain, keywords in domain_keywords.items()}
142
+ best = max(scores, key=scores.get)
143
+ return best if scores[best] > 0 else "style"
144
+
145
+
146
+ def search(query, domain=None, max_results=MAX_RESULTS):
147
+ """Main search function with auto-domain detection"""
148
+ if domain is None:
149
+ domain = detect_domain(query)
150
+
151
+ config = CSV_CONFIG.get(domain, CSV_CONFIG["style"])
152
+ filepath = DATA_DIR / config["file"]
153
+
154
+ if not filepath.exists():
155
+ return {"error": f"File not found: {filepath}", "domain": domain}
156
+
157
+ results = _search_csv(filepath, config["search_cols"], config["output_cols"], query, max_results)
158
+
159
+ return {
160
+ "domain": domain,
161
+ "query": query,
162
+ "file": config["file"],
163
+ "count": len(results),
164
+ "results": results
165
+ }
166
+
167
+
168
+ def search_all(query, max_results=2):
169
+ """Search across all domains and combine results"""
170
+ all_results = {}
171
+ for domain in CSV_CONFIG.keys():
172
+ result = search(query, domain, max_results)
173
+ if result.get("results"):
174
+ all_results[domain] = result["results"]
175
+ return all_results