ceulen 0.5.1 → 0.7.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 (358) hide show
  1. package/CHANGELOG.md +317 -12
  2. package/README.md +87 -91
  3. package/extensions/lib/advisor-marker.ts +33 -0
  4. package/extensions/lib/panel.ts +25 -2
  5. package/extensions/lib/rate.ts +24 -0
  6. package/extensions/lib/registry.ts +93 -7
  7. package/extensions/lib/tools.ts +47 -0
  8. package/extensions/lib/usage-store.ts +33 -0
  9. package/extensions/modules/advisor/commands/advisor.ts +244 -0
  10. package/extensions/modules/advisor/configPanel.ts +194 -0
  11. package/extensions/modules/advisor/index.ts +217 -0
  12. package/extensions/modules/advisor/lib/config.ts +248 -0
  13. package/extensions/modules/advisor/lib/emission-guard.ts +153 -0
  14. package/extensions/modules/advisor/lib/isolated-model.ts +160 -0
  15. package/extensions/modules/advisor/lib/model-picker.ts +47 -0
  16. package/extensions/modules/advisor/lib/watcher.ts +286 -0
  17. package/extensions/modules/advisor/test/compliance.test.ts +125 -0
  18. package/extensions/modules/advisor/test/config.test.ts +202 -0
  19. package/extensions/modules/advisor/test/configPanel.test.ts +223 -0
  20. package/extensions/modules/advisor/test/emission-guard.test.ts +201 -0
  21. package/extensions/modules/advisor/test/isolated-model.test.ts +311 -0
  22. package/extensions/modules/advisor/test/model-picker.test.ts +32 -0
  23. package/extensions/modules/advisor/test/module.test.ts +586 -0
  24. package/extensions/modules/advisor/test/watcher.test.ts +478 -0
  25. package/extensions/modules/classifier/configPanel.ts +104 -0
  26. package/extensions/modules/classifier/index.ts +297 -0
  27. package/extensions/modules/classifier/lib/settings.ts +95 -0
  28. package/extensions/modules/classifier/test/classifier.test.ts +475 -0
  29. package/extensions/modules/composer/index.ts +152 -3
  30. package/extensions/modules/composer/lib/footer.ts +119 -0
  31. package/extensions/modules/composer/lib/shapes.ts +265 -26
  32. package/extensions/modules/composer/test/editor.test.ts +1 -1
  33. package/extensions/modules/composer/test/footer.test.ts +96 -0
  34. package/extensions/modules/composer/test/module.test.ts +113 -11
  35. package/extensions/modules/composer/test/screen.test.ts +29 -1
  36. package/extensions/modules/composer/test/shapes.test.ts +224 -8
  37. package/extensions/modules/config/defaultTools.ts +96 -0
  38. package/extensions/modules/config/index.ts +147 -7
  39. package/extensions/modules/config/piSettings.ts +254 -69
  40. package/extensions/modules/config/test/defaultTools.test.ts +122 -0
  41. package/extensions/modules/config/test/menu.test.ts +64 -0
  42. package/extensions/modules/config/test/panel.test.ts +38 -23
  43. package/extensions/modules/config/test/piSettings.test.ts +130 -3
  44. package/extensions/modules/config/test/renderTools.test.ts +71 -0
  45. package/extensions/modules/config/test/tools.test.ts +146 -0
  46. package/extensions/modules/fff/index.ts +2094 -0
  47. package/extensions/modules/fff/lib/query.ts +129 -0
  48. package/extensions/modules/fff/test/index.test.ts +607 -0
  49. package/extensions/modules/fff/test/query.test.ts +71 -0
  50. package/extensions/modules/munin/configPanel.ts +105 -0
  51. package/extensions/modules/munin/index.ts +641 -0
  52. package/extensions/modules/munin/lib/helpers.ts +471 -0
  53. package/extensions/modules/munin/lib/retry.ts +20 -0
  54. package/extensions/modules/munin/lib/sdk.ts +218 -0
  55. package/extensions/modules/munin/test/config.test.ts +168 -0
  56. package/extensions/modules/munin/test/configPanel.test.ts +161 -0
  57. package/extensions/modules/munin/test/extension.test.ts +224 -0
  58. package/extensions/modules/munin/test/helpers.test.ts +523 -0
  59. package/extensions/modules/munin/test/retry.test.ts +145 -0
  60. package/extensions/modules/munin/test/stale-protocol.test.ts +554 -0
  61. package/extensions/modules/plan/configPanel.ts +152 -0
  62. package/extensions/modules/plan/index.ts +917 -0
  63. package/extensions/modules/plan/lib/plan-tools.ts +72 -0
  64. package/extensions/modules/plan/lib/prompt.ts +65 -0
  65. package/extensions/modules/plan/lib/settings.ts +166 -0
  66. package/extensions/modules/plan/lib/shell-gate.ts +200 -0
  67. package/extensions/modules/plan/test/configPanel.test.ts +96 -0
  68. package/extensions/modules/plan/test/harness.ts +133 -0
  69. package/extensions/modules/plan/test/module.test.ts +305 -0
  70. package/extensions/modules/plan/test/settings.test.ts +114 -0
  71. package/extensions/modules/plan/test/shell-gate.test.ts +103 -0
  72. package/extensions/modules/ponytail/index.ts +23 -73
  73. package/extensions/modules/ponytail/lib/config.ts +1 -6
  74. package/extensions/modules/ponytail/test/extension.test.ts +1 -85
  75. package/extensions/modules/repair/configPanel.ts +96 -0
  76. package/extensions/modules/repair/index.ts +414 -0
  77. package/extensions/modules/repair/lib/auto-bg.ts +333 -0
  78. package/extensions/modules/repair/lib/edit-repair.ts +155 -0
  79. package/extensions/modules/repair/lib/editor.ts +251 -0
  80. package/extensions/modules/repair/lib/guards.ts +34 -0
  81. package/extensions/modules/repair/lib/input-repair.ts +324 -0
  82. package/extensions/modules/repair/lib/patch.ts +481 -0
  83. package/extensions/modules/repair/lib/settings.ts +114 -0
  84. package/extensions/modules/repair/test/auto-bg.test.ts +405 -0
  85. package/extensions/modules/repair/test/edit-repair.test.ts +224 -0
  86. package/extensions/modules/repair/test/editor.test.ts +141 -0
  87. package/extensions/modules/repair/test/guards.test.ts +64 -0
  88. package/extensions/modules/repair/test/input-repair.test.ts +231 -0
  89. package/extensions/modules/repair/test/patch.test.ts +563 -0
  90. package/extensions/modules/repair/test/settings.test.ts +167 -0
  91. package/extensions/modules/repair/test/wrapper.test.ts +210 -0
  92. package/extensions/modules/router/commands/commands.ts +4 -0
  93. package/extensions/modules/router/lib/client.ts +61 -0
  94. package/extensions/modules/router/lib/provider.ts +34 -13
  95. package/extensions/modules/router/lib/systemone.ts +152 -0
  96. package/extensions/modules/router/test/unit.test.ts +179 -0
  97. package/extensions/modules/rtk/findFallback.js +68 -0
  98. package/extensions/modules/rtk/index.ts +248 -0
  99. package/extensions/modules/rtk/safe-rewrite.js +74 -0
  100. package/extensions/modules/rtk/test/findFallback.test.js +66 -0
  101. package/extensions/modules/rtk/test/index.test.js +131 -0
  102. package/extensions/modules/rtk/test/safe-rewrite.test.js +96 -0
  103. package/extensions/modules/rtk/version-gate.js +34 -0
  104. package/extensions/modules/serena/index.ts +629 -0
  105. package/extensions/modules/serena/lib/detect.ts +73 -0
  106. package/extensions/modules/serena/lib/env.ts +76 -0
  107. package/extensions/modules/serena/lib/guidance.ts +26 -0
  108. package/extensions/modules/serena/lib/normalize.ts +27 -0
  109. package/extensions/modules/serena/lib/symbol-key.ts +20 -0
  110. package/extensions/modules/serena/lib/truncate.ts +20 -0
  111. package/extensions/modules/serena/test/env.test.ts +122 -0
  112. package/extensions/modules/serena/test/index.test.ts +347 -0
  113. package/extensions/modules/serena/test/worker.test.ts +562 -0
  114. package/extensions/modules/serena/worker.ts +858 -0
  115. package/extensions/modules/steering/configPanel.ts +122 -0
  116. package/extensions/modules/steering/index.ts +616 -0
  117. package/extensions/modules/steering/lib/anchor.ts +175 -0
  118. package/extensions/modules/steering/lib/errors.ts +253 -0
  119. package/extensions/modules/steering/lib/family.ts +33 -0
  120. package/extensions/modules/steering/lib/guidance.ts +172 -0
  121. package/extensions/modules/steering/lib/history.ts +170 -0
  122. package/extensions/modules/steering/lib/settings.ts +127 -0
  123. package/extensions/modules/steering/test/anchor-regressions.test.ts +93 -0
  124. package/extensions/modules/steering/test/anchor-wiring.test.ts +99 -0
  125. package/extensions/modules/steering/test/anchor.test.ts +160 -0
  126. package/extensions/modules/steering/test/cache-stats.test.ts +43 -0
  127. package/extensions/modules/steering/test/errors.test.ts +309 -0
  128. package/extensions/modules/steering/test/family.test.ts +43 -0
  129. package/extensions/modules/steering/test/guidance.test.ts +357 -0
  130. package/extensions/modules/steering/test/harness.ts +93 -0
  131. package/extensions/modules/steering/test/history.test.ts +118 -0
  132. package/extensions/modules/steering/test/settings.test.ts +182 -0
  133. package/extensions/modules/steering/test/status.test.ts +71 -0
  134. package/extensions/modules/steering/test/toolCall.test.ts +99 -0
  135. package/extensions/modules/subagent/agents/planner.md +14 -0
  136. package/extensions/modules/subagent/agents/reviewer.md +42 -0
  137. package/extensions/modules/subagent/agents/scout.md +47 -0
  138. package/extensions/modules/subagent/agents/tester.md +12 -0
  139. package/extensions/modules/subagent/agents/worker.md +18 -0
  140. package/extensions/modules/subagent/configPanel.ts +219 -0
  141. package/extensions/modules/subagent/index.ts +2451 -0
  142. package/extensions/modules/subagent/lib/agents.ts +408 -0
  143. package/extensions/modules/subagent/lib/background.ts +383 -0
  144. package/extensions/modules/subagent/lib/herdr.ts +1019 -0
  145. package/extensions/modules/subagent/lib/history.ts +126 -0
  146. package/extensions/modules/subagent/lib/model.ts +156 -0
  147. package/extensions/modules/subagent/lib/render.ts +335 -0
  148. package/extensions/modules/subagent/lib/result.ts +110 -0
  149. package/extensions/modules/subagent/lib/roles.ts +296 -0
  150. package/extensions/modules/subagent/lib/routing.ts +223 -0
  151. package/extensions/modules/subagent/lib/runner.ts +559 -0
  152. package/extensions/modules/subagent/lib/schema.ts +21 -0
  153. package/extensions/modules/subagent/lib/security.ts +752 -0
  154. package/extensions/modules/subagent/lib/settings.ts +159 -0
  155. package/extensions/modules/subagent/lib/thread-viewer.ts +319 -0
  156. package/extensions/modules/subagent/lib/threads.ts +135 -0
  157. package/extensions/modules/subagent/lib/types.ts +18 -0
  158. package/extensions/modules/subagent/lib/widget.ts +475 -0
  159. package/extensions/modules/subagent/test/configPanel.test.ts +132 -0
  160. package/extensions/modules/subagent/test/herdr-advisor.test.ts +40 -0
  161. package/extensions/modules/subagent/test/routing.test.ts +350 -0
  162. package/extensions/modules/subagent/test/widget.test.ts +208 -0
  163. package/extensions/modules/usage/index.ts +59 -16
  164. package/extensions/modules/usage/test/genrate.test.ts +70 -0
  165. package/extensions/modules/usage/test/parsers.test.ts +13 -0
  166. package/extensions/modules/ux/UPSTREAM +24 -0
  167. package/extensions/modules/ux/index.ts +393 -0
  168. package/extensions/modules/ux/lib/audit.ts +562 -0
  169. package/extensions/modules/ux/lib/config.ts +136 -0
  170. package/extensions/modules/ux/lib/instructions.ts +77 -0
  171. package/extensions/modules/ux/test/audit.test.ts +756 -0
  172. package/extensions/modules/ux/test/extension.test.ts +394 -0
  173. package/extensions/modules/ux/test/instructions.test.ts +19 -0
  174. package/extensions/modules/web/configPanel.ts +193 -0
  175. package/extensions/modules/web/index.ts +978 -0
  176. package/extensions/modules/web/lib/agy.ts +209 -0
  177. package/extensions/modules/web/lib/brave.ts +42 -0
  178. package/extensions/modules/web/lib/cdp.ts +686 -0
  179. package/extensions/modules/web/lib/chatapi.ts +101 -0
  180. package/extensions/modules/web/lib/chatgpt.ts +796 -0
  181. package/extensions/modules/web/lib/chrome.ts +328 -0
  182. package/extensions/modules/web/lib/config.ts +136 -0
  183. package/extensions/modules/web/lib/content.ts +99 -0
  184. package/extensions/modules/web/lib/crawl4ai.ts +172 -0
  185. package/extensions/modules/web/lib/extract.ts +235 -0
  186. package/extensions/modules/web/lib/firecrawl.ts +56 -0
  187. package/extensions/modules/web/lib/format.ts +197 -0
  188. package/extensions/modules/web/lib/gemini-auth.ts +286 -0
  189. package/extensions/modules/web/lib/gemini-dr.ts +338 -0
  190. package/extensions/modules/web/lib/gemini.ts +551 -0
  191. package/extensions/modules/web/lib/imageapi.ts +559 -0
  192. package/extensions/modules/web/lib/retry.ts +71 -0
  193. package/extensions/modules/web/lib/search.ts +237 -0
  194. package/extensions/modules/web/lib/searxng.ts +69 -0
  195. package/extensions/modules/web/lib/settings.ts +148 -0
  196. package/extensions/modules/web/scripts/cdp-smoke.ts +77 -0
  197. package/extensions/modules/web/scripts/gemini-smoke.ts +107 -0
  198. package/extensions/modules/web/test/agy.test.ts +383 -0
  199. package/extensions/modules/web/test/cdp.test.ts +717 -0
  200. package/extensions/modules/web/test/chat.test.ts +171 -0
  201. package/extensions/modules/web/test/chatgpt.test.ts +633 -0
  202. package/extensions/modules/web/test/chrome.test.ts +282 -0
  203. package/extensions/modules/web/test/config.test.ts +218 -0
  204. package/extensions/modules/web/test/configPanel.test.ts +132 -0
  205. package/extensions/modules/web/test/crawl.test.ts +134 -0
  206. package/extensions/modules/web/test/crawl4ai.test.ts +105 -0
  207. package/extensions/modules/web/test/extension.test.ts +118 -0
  208. package/extensions/modules/web/test/extract.test.ts +436 -0
  209. package/extensions/modules/web/test/fixtures/dr-confirm.bin +12 -0
  210. package/extensions/modules/web/test/fixtures/dr-plan.bin +20 -0
  211. package/extensions/modules/web/test/fixtures/interaction.html +31 -0
  212. package/extensions/modules/web/test/format.test.ts +230 -0
  213. package/extensions/modules/web/test/gemini-auth.test.ts +465 -0
  214. package/extensions/modules/web/test/gemini-dr.test.ts +249 -0
  215. package/extensions/modules/web/test/gemini.test.ts +472 -0
  216. package/extensions/modules/web/test/hook.test.ts +101 -0
  217. package/extensions/modules/web/test/image.test.ts +1089 -0
  218. package/extensions/modules/web/test/retry.test.ts +119 -0
  219. package/extensions/modules/web/test/screenshot.test.ts +109 -0
  220. package/extensions/modules/web/test/search.test.ts +210 -0
  221. package/extensions/modules/web/test/settings.test.ts +165 -0
  222. package/extensions/modules/web/test/skill.test.ts +72 -0
  223. package/extensions/modules/web/types.d.ts +3 -0
  224. package/extensions/modules/web/vendor/package.json +1 -0
  225. package/extensions/modules/web/vendor/readability/LICENSE.md +13 -0
  226. package/extensions/modules/web/vendor/readability/Readability-readerable.js +123 -0
  227. package/extensions/modules/web/vendor/readability/Readability.js +2787 -0
  228. package/extensions/modules/web/vendor/readability/index.d.ts +64 -0
  229. package/extensions/modules/web/vendor/readability/index.js +9 -0
  230. package/extensions/modules/web/vendor/turndown/LICENSE +21 -0
  231. package/extensions/modules/web/vendor/turndown/turndown.cjs.js +784 -0
  232. package/extensions/modules/web/vendor/turndown-plugin-gfm/LICENSE +21 -0
  233. package/extensions/modules/web/vendor/turndown-plugin-gfm/turndown-plugin-gfm.cjs.js +163 -0
  234. package/extensions/modules/zai/configPanel.ts +151 -0
  235. package/extensions/modules/zai/index.ts +186 -0
  236. package/extensions/modules/zai/lib/anthropic.ts +159 -0
  237. package/extensions/modules/zai/lib/settings.ts +198 -0
  238. package/extensions/modules/zai/lib/signing.ts +718 -0
  239. package/extensions/modules/zai/lib/throttle.ts +198 -0
  240. package/extensions/modules/zai/test/anthropic.test.ts +132 -0
  241. package/extensions/modules/zai/test/configPanel.test.ts +207 -0
  242. package/extensions/modules/zai/test/extension.test.ts +249 -0
  243. package/extensions/modules/zai/test/settings.test.ts +183 -0
  244. package/extensions/modules/zai/test/signing-wiring.test.ts +108 -0
  245. package/extensions/modules/zai/test/signing.test.ts +345 -0
  246. package/extensions/modules/zai/test/throttle.test.ts +329 -0
  247. package/package.json +19 -4
  248. package/scripts/validate-themes.mjs +75 -0
  249. package/skills/munin/SKILL.md +117 -0
  250. package/skills/ux-capture/SKILL.md +202 -0
  251. package/skills/ux-design/SKILL.md +279 -0
  252. package/skills/ux-presets/SKILL.md +484 -0
  253. package/skills/ux-routing/SKILL.md +46 -0
  254. package/skills/web/SKILL.md +153 -0
  255. package/themes/alabaster.json +93 -0
  256. package/themes/amethyst.json +96 -0
  257. package/themes/anthracite.json +93 -0
  258. package/themes/basalt.json +91 -0
  259. package/themes/birch.json +95 -0
  260. package/themes/catppuccin-mocha.json +91 -0
  261. package/themes/dark-abyss.json +91 -0
  262. package/themes/dark-arctic.json +104 -0
  263. package/themes/dark-aurora.json +95 -0
  264. package/themes/dark-catppuccin.json +107 -0
  265. package/themes/dark-cavern.json +91 -0
  266. package/themes/dark-celestial.json +106 -0
  267. package/themes/dark-copper.json +95 -0
  268. package/themes/dark-cosmos.json +90 -0
  269. package/themes/dark-cyberpunk.json +102 -0
  270. package/themes/dark-dracula.json +98 -0
  271. package/themes/dark-eclipse.json +91 -0
  272. package/themes/dark-ember.json +95 -0
  273. package/themes/dark-equinox.json +90 -0
  274. package/themes/dark-forest.json +96 -0
  275. package/themes/dark-github.json +105 -0
  276. package/themes/dark-gruvbox.json +112 -0
  277. package/themes/dark-lavender.json +95 -0
  278. package/themes/dark-lunar.json +89 -0
  279. package/themes/dark-midnight.json +95 -0
  280. package/themes/dark-monochrome.json +94 -0
  281. package/themes/dark-monokai.json +98 -0
  282. package/themes/dark-nebula.json +90 -0
  283. package/themes/dark-neon-noir.json +100 -0
  284. package/themes/dark-nord.json +98 -0
  285. package/themes/dark-ocean.json +101 -0
  286. package/themes/dark-one.json +100 -0
  287. package/themes/dark-poimandres.json +115 -0
  288. package/themes/dark-rainforest.json +91 -0
  289. package/themes/dark-reef.json +91 -0
  290. package/themes/dark-retro.json +92 -0
  291. package/themes/dark-rose-pine.json +96 -0
  292. package/themes/dark-sakura.json +95 -0
  293. package/themes/dark-slate.json +95 -0
  294. package/themes/dark-solarized.json +97 -0
  295. package/themes/dark-solstice.json +90 -0
  296. package/themes/dark-starfall.json +91 -0
  297. package/themes/dark-sunset.json +99 -0
  298. package/themes/dark-swamp.json +90 -0
  299. package/themes/dark-synthwave.json +103 -0
  300. package/themes/dark-taiga.json +91 -0
  301. package/themes/dark-terminal.json +95 -0
  302. package/themes/dark-tokyo-night.json +101 -0
  303. package/themes/dark-tundra.json +91 -0
  304. package/themes/dark-twilight.json +91 -0
  305. package/themes/dark-volcanic.json +91 -0
  306. package/themes/dark.json +80 -0
  307. package/themes/graphite.json +92 -0
  308. package/themes/light-arctic.json +107 -0
  309. package/themes/light-aurora-day.json +91 -0
  310. package/themes/light-canyon.json +91 -0
  311. package/themes/light-catppuccin.json +106 -0
  312. package/themes/light-cirrus.json +90 -0
  313. package/themes/light-coral.json +95 -0
  314. package/themes/light-cyberpunk.json +96 -0
  315. package/themes/light-dawn.json +90 -0
  316. package/themes/light-dunes.json +91 -0
  317. package/themes/light-eucalyptus.json +95 -0
  318. package/themes/light-forest.json +100 -0
  319. package/themes/light-frost.json +95 -0
  320. package/themes/light-github.json +115 -0
  321. package/themes/light-glacier.json +91 -0
  322. package/themes/light-gruvbox.json +108 -0
  323. package/themes/light-haze.json +90 -0
  324. package/themes/light-honeycomb.json +95 -0
  325. package/themes/light-lagoon.json +91 -0
  326. package/themes/light-lavender.json +95 -0
  327. package/themes/light-meadow.json +91 -0
  328. package/themes/light-mint.json +95 -0
  329. package/themes/light-monochrome.json +101 -0
  330. package/themes/light-ocean.json +99 -0
  331. package/themes/light-one.json +99 -0
  332. package/themes/light-opal.json +91 -0
  333. package/themes/light-orchard.json +91 -0
  334. package/themes/light-paper.json +95 -0
  335. package/themes/light-poimandres.json +115 -0
  336. package/themes/light-prism.json +90 -0
  337. package/themes/light-retro.json +98 -0
  338. package/themes/light-sand.json +95 -0
  339. package/themes/light-savanna.json +91 -0
  340. package/themes/light-solarized.json +102 -0
  341. package/themes/light-soleil.json +90 -0
  342. package/themes/light-sunset.json +99 -0
  343. package/themes/light-synthwave.json +98 -0
  344. package/themes/light-tokyo-night.json +111 -0
  345. package/themes/light-wetland.json +91 -0
  346. package/themes/light-zenith.json +89 -0
  347. package/themes/light.json +80 -0
  348. package/themes/limestone.json +94 -0
  349. package/themes/mahogany.json +97 -0
  350. package/themes/marble.json +93 -0
  351. package/themes/mirage.json +79 -0
  352. package/themes/obsidian.json +91 -0
  353. package/themes/onyx.json +91 -0
  354. package/themes/pearl.json +93 -0
  355. package/themes/porcelain.json +91 -0
  356. package/themes/quartz.json +96 -0
  357. package/themes/sandstone.json +95 -0
  358. package/themes/titanium.json +90 -0
@@ -0,0 +1,484 @@
1
+ ---
2
+ name: ux-presets
3
+ disable-model-invocation: true
4
+ description: >
5
+ Reference design-system presets for ux-design. Anti-slop shortcuts: instead of
6
+ inventing tokens, elevation, and state contracts from scratch, reuse one of
7
+ these battle-tested systems (shadcn/ui, Material 3, Radix), drop in a
8
+ medium-tuned DESIGN.md starter (Web or Mobile), or adopt a style-direction
9
+ starter (Editorial print, Ledger, Warm consumer) that already carries a point
10
+ of view. Use when starting a new UI project with no existing design system,
11
+ when Step 0 (Own the system) of the ux-design method has nothing to reuse,
12
+ or when asked for a starter token set. These are REFERENCES only —
13
+ pi-ux never bundles CSS.
14
+ argument-hint: ""
15
+ license: MIT
16
+ ---
17
+
18
+ # UX System Presets — anti-slop shortcuts for Step 0
19
+
20
+ The Constraint-First method starts at "Own the system." If the project has no
21
+ tokens / elevation scale / state contract, you do NOT have to block generation —
22
+ **reuse an existing system** or **drop in a medium-tuned DESIGN.md starter** as
23
+ the implicit system. This skill is the shortcut drawer for both.
24
+
25
+ ## Option A — reuse an existing system (preferred, YAGNI)
26
+
27
+ | System | When | Install |
28
+ |---|---|---|
29
+ | **shadcn/ui** | React/Next, want copy-in components you own | `npx shadcn@latest init` — copies component source into your repo, not a dependency |
30
+ | **Material 3 (MUI)** | Want the full Material system, theming maturity | `@mui/material` + MUI theme — elevation, states, colour system all defined |
31
+ | **Radix UI Primitives** | Want unstyled, accessible primitives (dialogs, menus, popovers) you style yourself | `@radix-ui/react-*` — focus/disabled/aria handled correctly already |
32
+ | **Park UI / Ark UI** | Multi-framework, headless + styled variants | Ark UI primitives + Park UI recipes |
33
+
34
+ These already define tokens, 3–5 elevation levels, and full state contracts —
35
+ which is exactly what the anti-slop guardrail demands. **Reusing beats
36
+ redefining.** YAGNI applies to design systems too.
37
+
38
+ ### Named styles (Claymorphism, Brutalism, Bento, Art Deco, …)
39
+
40
+ When the brief calls for a *named aesthetic* (a kids app wants Claymorphism;
41
+ an agency site wants Brutalism), **do not invent one and do not hand-copy a
42
+ template blindly.** Pull the canonical, lintable `DESIGN.md` from the
43
+ **[design.md style library](https://designmd.app/library)** (30+ styles,
44
+ same `DESIGN.md` standard this skill uses) and run it through the gate:
45
+
46
+ 1. Fetch the style's `DESIGN.md` from `designmd.app/library/<style>`.
47
+ 2. `npx @google/design.md lint DESIGN.md` (token-ref + structure validation).
48
+ 3. `ux_audit` on the CSS + the style's common text pairs — **block handoff on fail.**
49
+
50
+ > **No style is pre-approved.** Named-style templates are aesthetic
51
+ > starting points, not vetted systems. The stock **Claymorphism** template
52
+ > ships a button in lilac (`#E6E6FA`) text on peach (`#FDBCB4`) — that pair
53
+ > fails `ux_audit` at **Lc −15.67** (WCAG 1.31:1). Correct it to ink-on-peach
54
+ > (Lc 75.72 ✓) before trusting it. The gate, not the template, makes a style
55
+ > non-slop. Note: glassmorphism and neumorphism are **banned** slop tells
56
+ > here regardless of any library entry.
57
+
58
+ ## Option B — medium-tuned DESIGN.md starters (lintable, drop-in)
59
+
60
+ When there's nothing to reuse AND no repo-root DESIGN.md, pick the starter
61
+ matching the medium and use it **in-context as the implicit system** — then
62
+ keep generating. This is how the agent stays unblocked and non-slop when
63
+ DESIGN.md is absent. Lint it (and optionally persist it to repo root) when the
64
+ user wants to keep it:
65
+
66
+ ```bash
67
+ npx @google/design.md lint DESIGN.md
68
+ ```
69
+
70
+ ### Which medium? (infer, then ask only if genuinely unclear)
71
+
72
+ - **Web** — landing page, dashboard, marketing site, admin panel, "responsive", docs, anything mouse + keyboard. Default when the target is a browser at desktop/tablet width.
73
+ - **Mobile** — "iOS/Android app", native (SwiftUI/Kotlin), React Native/Flutter, mobile-first PWA, "screen" for a phone, anything touch-first.
74
+ - Ambiguous (e.g. "a screen", no platform) → **ASK** which medium; do not guess. This is the one decision worth a question, because it changes touch targets, hover, and safe areas.
75
+
76
+ ### B1 — Web preset (mouse + keyboard, responsive)
77
+
78
+ ```markdown
79
+ ---
80
+ name: Web Baseline
81
+ description: Anti-slop web system — one accent + neutrals, hover + focus-visible, desktop type scale, 65ch measure.
82
+ colors:
83
+ primary: "#111111"
84
+ accent: "#0066ff"
85
+ accent-hover: "#0052cc"
86
+ text: "#111111"
87
+ text-muted: "#595959"
88
+ bg: "#ffffff"
89
+ surface: "#f7f7f8"
90
+ border: "#e4e4e7"
91
+ danger: "#c2261b"
92
+ success: "#15803d"
93
+ typography:
94
+ body:
95
+ fontFamily: Inter
96
+ fontSize: 1rem
97
+ lineHeight: 1.6
98
+ h1:
99
+ fontFamily: Inter
100
+ fontSize: 2.441rem
101
+ fontWeight: 700
102
+ lineHeight: 1.15
103
+ h2:
104
+ fontFamily: Inter
105
+ fontSize: 1.953rem
106
+ fontWeight: 700
107
+ label:
108
+ fontFamily: Inter
109
+ fontSize: 0.8rem
110
+ fontWeight: 600
111
+ letterSpacing: 0.02em
112
+ rounded:
113
+ sm: 6px
114
+ md: 10px
115
+ lg: 14px
116
+ spacing:
117
+ sm: 8px
118
+ md: 16px
119
+ lg: 24px
120
+ xl: 32px
121
+ 2xl: 48px
122
+ components:
123
+ button-primary:
124
+ backgroundColor: "{colors.accent}"
125
+ textColor: "#ffffff"
126
+ rounded: "{rounded.md}"
127
+ padding: "{spacing.sm} {spacing.md}"
128
+ button-primary-hover:
129
+ backgroundColor: "{colors.accent-hover}"
130
+ card:
131
+ backgroundColor: "{colors.surface}"
132
+ rounded: "{rounded.lg}"
133
+ padding: "{spacing.lg}"
134
+ input:
135
+ backgroundColor: "{colors.bg}"
136
+ textColor: "{colors.text}"
137
+ rounded: "{rounded.sm}"
138
+ ---
139
+
140
+ ## Overview
141
+
142
+ Desktop/responsive web. One accent, neutral surfaces, hierarchy by weight.
143
+ Separation by whitespace → background shift → elevation, in that order; a border
144
+ is the last resort.
145
+
146
+ ## Colors
147
+
148
+ - **primary (#111111):** deep ink for headlines and primary text.
149
+ - **accent (#0066ff):** the sole driver for interaction. The ONE knob to swap for brand.
150
+ - **text-muted (#595959):** secondary copy, captions, metadata.
151
+ - **bg/surface:** warm-tinted off-whites, softer than pure white. Tint pure black/white warm or cool for depth.
152
+ - **danger/success:** reserved for semantic state, never decoration.
153
+
154
+ ## Typography
155
+
156
+ Inter, hierarchy by weight on a 1.25 modular scale. Body at 1rem / 1.6 line-height.
157
+ Hold the measure (line length) to 60–80 characters for readability.
158
+
159
+ ## Layout
160
+
161
+ - 8px spacing grid; no magic pixel values. Section padding varies so hero/content/CTA don't feel the same weight.
162
+ - Responsive: max-width container (e.g. 1152px), 12-column awareness, breakpoints at 640/768/1024/1280.
163
+
164
+ ## Elevation & Depth
165
+
166
+ Map EVERY shadow to a named level — never invent blur/opacity per component:
167
+ `sm` resting card · `md` raised/dropdown · `lg` popover · `xl` modal.
168
+
169
+ ## Do's and Don'ts
170
+
171
+ - DO declare `default` / `hover` / `focus-visible` / `active` / `disabled` for every interactive element — keyboard nav is primary on web.
172
+ - DON'T use `backdrop-filter`, gradient orbs, coloured glow, or a 1px gray card border — the AI-slop signatures.
173
+ - DON'T ship pure `#fff`/`#000`; tint them.
174
+ ```
175
+
176
+ ### B2 — Mobile preset (touch-first, native / RN / mobile web)
177
+ ```markdown
178
+ ---
179
+ name: Mobile Baseline
180
+ description: Anti-slop mobile system — 44pt touch targets, no hover (tap/active), safe-area insets, 16px base (no zoom).
181
+ colors:
182
+ primary: "#111111"
183
+ accent: "#0066ff"
184
+ accent-pressed: "#0052cc"
185
+ text: "#111111"
186
+ text-muted: "#595959"
187
+ bg: "#ffffff"
188
+ surface: "#f7f7f8"
189
+ border: "#e4e4e7"
190
+ danger: "#c2261b"
191
+ typography:
192
+ body:
193
+ fontFamily: Inter
194
+ fontSize: 1rem
195
+ lineHeight: 1.5
196
+ h1:
197
+ fontFamily: Inter
198
+ fontSize: 1.953rem
199
+ fontWeight: 700
200
+ lineHeight: 1.2
201
+ h2:
202
+ fontFamily: Inter
203
+ fontSize: 1.563rem
204
+ fontWeight: 700
205
+ label:
206
+ fontFamily: Inter
207
+ fontSize: 0.875rem
208
+ fontWeight: 600
209
+ rounded:
210
+ sm: 8px
211
+ md: 12px
212
+ lg: 16px
213
+ spacing:
214
+ sm: 8px
215
+ md: 16px
216
+ lg: 24px
217
+ xl: 32px
218
+ components:
219
+ button-primary:
220
+ backgroundColor: "{colors.accent}"
221
+ textColor: "#ffffff"
222
+ rounded: "{rounded.md}"
223
+ height: 48px
224
+ padding: "{spacing.md} {spacing.lg}"
225
+ button-primary-pressed:
226
+ backgroundColor: "{colors.accent-pressed}"
227
+ tap-target:
228
+ height: 44px
229
+ width: 44px
230
+ list-row:
231
+ backgroundColor: "{colors.bg}"
232
+ textColor: "{colors.text}"
233
+ padding: "{spacing.md} {spacing.lg}"
234
+ tab-bar:
235
+ backgroundColor: "{colors.bg}"
236
+ height: 56px
237
+ ---
238
+
239
+ ## Overview
240
+
241
+ Touch-first mobile (iOS / Android / React Native / Flutter / mobile web). One
242
+ accent, generous gutters, thumb-reach layout. Interaction is TAP, not hover.
243
+
244
+ ## Colors
245
+
246
+ - **primary (#111111):** ink for headings and primary text.
247
+ - **accent (#0066ff):** the sole driver for interaction. The ONE knob to swap for brand.
248
+ - **accent-pressed:** replaces hover — the feedback state for a tap.
249
+ - **bg/surface:** layered to separate content; tint pure black/white warm or cool.
250
+
251
+ ## Typography
252
+
253
+ Inter on a 1.2 scale. **Body at 16px minimum** — below 16px, iOS Safari
254
+ auto-zooms on input focus, which is slop. Hierarchy by weight, not by shrinking
255
+ the body.
256
+
257
+ ## Layout
258
+
259
+ - 16px gutters, 24px section padding (thumb ergonomics).
260
+ - Thumb zone: primary actions reachable from the bottom third; place destructive actions away from the thumb arc.
261
+ - Safe-area insets for notch and home indicator: `env(safe-area-inset-top/bottom)` (web), or platform safe-area guides (native).
262
+ - Bottom-anchored patterns: tab bar, bottom sheet, FAB.
263
+
264
+ ## Elevation & Depth
265
+
266
+ Named levels only: `sm` resting · `md` raised sheet · `lg` modal. A bottom sheet
267
+ is nearer than the page — keep it that way.
268
+
269
+ ## Do's and Don'ts
270
+
271
+ - DO make every interactive element ≥ 44pt (iOS HIG) / 48dp (Material) — the #1 thing models get wrong.
272
+ - DO use `:active` / pressed states for tap feedback — there is NO hover on touch. Do not ship `:hover`-only feedback.
273
+ - DO respect safe areas (notch, home indicator, keyboard).
274
+ - DON'T use `backdrop-filter`, gradient orbs, coloured glow, or 1px gray borders — AI-slop signatures on mobile too.
275
+ - DON'T set body text below 16px (triggers iOS zoom).
276
+ - iOS vs Android: follow the host platform — iOS HIG (SF symbols, larger corner radius, sheet) vs Material 3 (FAB, ripple, top app bar).
277
+ ```
278
+
279
+ ## Option B+ — style-direction starters (a floor WITH a point of view)
280
+
281
+ B1/B2 are deliberately neutral — they pass the gates but carry no identity, and
282
+ a project that keeps them untouched ships the "correct but forgettable" page.
283
+ The three starters below pair the same gate-hardened token structure with a
284
+ **subject material and type voice**, so Step 1.5 starts from a direction
285
+ instead of a blank. Pick the one whose material matches the brief; then still
286
+ bend it (Step 1.5): swap the accent to the subject's world, adjust the mood
287
+ adjectives, and commit a signature element of your own. All pairs below were
288
+ verified against the APCA ladder (Lc ≥75 body · ≥45 large · ≥60 small-bold
289
+ badges).
290
+
291
+ ### S1 — Editorial print (journal, heritage brand, long-form, portfolio)
292
+
293
+ Material: the printed page — warm paper, ink, hairline rules. Near-square
294
+ corners; separation by rules and whitespace, elevation almost never. Display
295
+ **Newsreader** (500–600, tight leading) over **Source Sans 3** body.
296
+
297
+ ```yaml
298
+ name: Editorial Print
299
+ colors:
300
+ bg: "#F6F2E9" # warm paper
301
+ surface: "#EEE8DA" # shaded paper band
302
+ text: "#20241F" # ink
303
+ text-muted: "#565B50"
304
+ accent: "#7D2B25" # oxblood — links, rules, stamps
305
+ accent-hover: "#67241E"
306
+ border: "#DBD3C2" # hairline
307
+ danger: "#9B2C20"
308
+ typography:
309
+ body: { fontFamily: "Source Sans 3", fontSize: 1.0625rem, lineHeight: 1.65 }
310
+ h1: { fontFamily: Newsreader, fontSize: 3rem, fontWeight: 600, lineHeight: 1.1 }
311
+ h2: { fontFamily: Newsreader, fontSize: 2.1rem, fontWeight: 600 }
312
+ label: { fontFamily: "Source Sans 3", fontSize: 0.85rem, fontWeight: 600 }
313
+ rounded: { sm: 2px, md: 2px, lg: 3px } # print is square
314
+ components:
315
+ ruled-row: { borderTop: "1.5px solid {colors.text}", padding: "{spacing.md} 0" }
316
+ link: { color: "{colors.accent}", textDecorationThickness: "1px" }
317
+ button-quiet: { border: "1.5px solid {colors.text}", color: "{colors.text}", rounded: "{rounded.sm}" }
318
+ stamp: { color: "{colors.accent}", border: "2px solid {colors.accent}", transform: "rotate(-2deg)" }
319
+ ```
320
+
321
+ Do: rules over shadows (border hierarchy); generous margins around display
322
+ type; numerals and folios as design objects. Don't: shadows bigger than
323
+ `--elev-sm`; rounded-2xl softness; dark mode (this system IS paper).
324
+
325
+ ### S2 — Ledger (finance, invoicing, dense data, legal, ops dashboards)
326
+
327
+ Material: the accountant's desk — desk paper, cards, ruled columns, stamps.
328
+ Every numeral in the mono face with `font-variant-numeric: tabular-nums`.
329
+ Display **Spline Sans** + **Spline Sans Mono** for all data.
330
+
331
+ ```yaml
332
+ name: Ledger
333
+ colors:
334
+ bg: "#F3F1EA" # desk
335
+ surface: "#FCFBF7" # card
336
+ text: "#1C211E" # ink
337
+ text-muted: "#5B625D"
338
+ accent: "#1E6B50" # ledger green — buttons, positive
339
+ accent-text: "#17573F" # green as TEXT on desk/card (Lc 79-81)
340
+ accent-hover: "#155640"
341
+ danger: "#B0362A" # stamp text on #F4E3E0 (small-bold ≥600)
342
+ warning: "#8A6210" # stamp text on #F2EAD4 (small-bold ≥600)
343
+ border: "#E0DDD2"
344
+ rule: "#1C211E" # 1.5px structural rules — the branding
345
+ typography:
346
+ body: { fontFamily: "Spline Sans", fontSize: 0.9rem, lineHeight: 1.5 }
347
+ data: { fontFamily: "Spline Sans Mono", fontWeight: 500, fontVariantNumeric: tabular-nums }
348
+ h1: { fontFamily: "Spline Sans", fontSize: 1.5rem, fontWeight: 700, letterSpacing: "-0.015em" }
349
+ label: { fontFamily: "Spline Sans Mono", fontSize: 0.6875rem, fontWeight: 500, letterSpacing: "0.08em", textTransform: uppercase }
350
+ rounded: { sm: 3px, md: 6px, lg: 8px }
351
+ components:
352
+ panel: { backgroundColor: "{colors.surface}", border: "1.5px solid {colors.rule}", rounded: "{rounded.md}" }
353
+ kpi-value: { font: "{typography.data}", fontSize: 1.6875rem, fontWeight: 600 }
354
+ status-paid: { color: "{colors.accent-text}", backgroundColor: "#E2EEE7", fontWeight: 700, fontSize: "0.65rem" }
355
+ status-overdue: { color: "{colors.danger}", backgroundColor: "#F4E3E0", fontWeight: 700, fontSize: "0.65rem", transform: "rotate(-2deg)" }
356
+ table-head: { font: "{typography.label}", borderBottom: "1.5px solid {colors.rule}" }
357
+ ```
358
+
359
+ Do: structural 1.5px rules; status badges as stamps (soft bg + dark text);
360
+ KPI strip as one ruled panel, not four floating cards. Don't: pastel
361
+ dashboards with soft shadows everywhere; chart fills lighter than 3:1 against
362
+ the track; intercom-blue accents.
363
+
364
+ ### S3 — Warm consumer (food, home, family, habits, kitchen/bath apps)
365
+
366
+ Material: warm kitchen linen. Chunky friendly radii, one deep green spine,
367
+ freshness told in color (fresh/expiring/expired), oversized action. Display
368
+ **DM Sans** 700–800.
369
+
370
+ ```yaml
371
+ name: Warm Consumer
372
+ colors:
373
+ bg: "#FAF6EE" # linen
374
+ surface: "#FFFFFF" # card
375
+ text: "#27302A"
376
+ text-muted: "#5C6457" # passes on BOTH linen and white
377
+ accent: "#2F6B3C" # basil — FAB, primary actions
378
+ accent-pressed: "#245430"
379
+ accent-soft: "#E5F0E2"
380
+ danger: "#A93222" # expired badge text on #F8E3DD (bold)
381
+ warning: "#8A5D0B" # expiring badge text on #F7ECD4 (bold)
382
+ border: "#EAE4D6"
383
+ typography:
384
+ body: { fontFamily: "DM Sans", fontSize: 1rem, lineHeight: 1.45 }
385
+ h1: { fontFamily: "DM Sans", fontSize: 1.4375rem, fontWeight: 800, letterSpacing: "-0.02em" }
386
+ badge: { fontFamily: "DM Sans", fontSize: 0.65625rem, fontWeight: 700, letterSpacing: "0.03em" }
387
+ rounded: { sm: 12px, md: 16px, lg: 22px }
388
+ components:
389
+ list-row: { backgroundColor: "{colors.surface}", border: "1.5px solid {colors.border}", rounded: "{rounded.md}", padding: "12px 14px" }
390
+ category-spine: { position: absolute, left: 0, width: 5px, backgroundColor: "{category-color}" }
391
+ fab: { backgroundColor: "{colors.accent}", color: "#F2F7EE", rounded: 999px, padding: "16px 26px", fontWeight: 800 }
392
+ badge-soon: { color: "{colors.warning}", backgroundColor: "#F7ECD4" }
393
+ badge-expired: { color: "{colors.danger}", backgroundColor: "#F8E3DD" }
394
+ ```
395
+
396
+ Do: category color spines (5px, left edge); FAB as the page's one loud
397
+ element; header bands in the accent color. Don't: neon or candy gradients;
398
+ hover-only feedback (touch medium — use B2's tap rules); body below 16px.
399
+
400
+ Mobile adaptation: any S-starter keeps its palette/type and takes B2's
401
+ mechanics (44pt targets, `:active` states, safe areas, thumb zone).
402
+
403
+ ## Option C — minimal `:root` token set (CSS-only, no DESIGN.md)
404
+
405
+ For CSS-only projects that do not adopt DESIGN.md, drop this compact baseline
406
+ into the project's `:root`. It satisfies the token + elevation + state gates of
407
+ `ux_audit` with ~20 lines. Prefer Option B when the project can adopt DESIGN.md
408
+ — it is lintable, diffable, and medium-tuned; this is the plain fallback.
409
+
410
+ ```css
411
+ :root {
412
+ /* Colour — one accent + neutrals. No purple glow. */
413
+ --accent: #0066ff; /* swap for the brand accent; ONE accent only */
414
+ --accent-hover: #0052cc;
415
+ --text: #111111;
416
+ --text-muted: #595959;
417
+ --bg: #ffffff;
418
+ --surface: #f7f7f8;
419
+ --border: #e4e4e7;
420
+ --danger: #c2261b;
421
+
422
+ /* Type — modular scale (ratio 1.25). No custom sizes. */
423
+ --text-sm: 0.8rem;
424
+ --text-base: 1rem;
425
+ --text-lg: 1.25rem;
426
+ --text-xl: 1.563rem;
427
+ --text-2xl: 1.953rem;
428
+
429
+ /* Spacing — 8px grid. No magic pixels. */
430
+ --space-1: 4px; /* half-step for hairlines only */
431
+ --space-2: 8px;
432
+ --space-3: 16px;
433
+ --space-4: 24px;
434
+ --space-5: 32px;
435
+ --space-6: 48px;
436
+
437
+ /* Radius */
438
+ --radius-sm: 4px;
439
+ --radius-md: 8px;
440
+ --radius-lg: 12px;
441
+
442
+ /* Elevation — 4 named levels. Map EVERY shadow to one of these. */
443
+ --elev-sm: 0 1px 2px rgba(0,0,0,0.05);
444
+ --elev-md: 0 2px 8px rgba(0,0,0,0.08);
445
+ --elev-lg: 0 8px 24px rgba(0,0,0,0.12);
446
+ --elev-xl: 0 16px 48px rgba(0,0,0,0.16);
447
+ }
448
+
449
+ /* State contract — interactive elements MUST declare these. */
450
+ :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
451
+ :disabled { opacity: 0.5; cursor: not-allowed; }
452
+ ```
453
+
454
+ ## How to use with ux-design
455
+
456
+ 1. Run **Step 0** of ux-design. If the project already has a DESIGN.md / tokens / elevation / states → use them.
457
+ 2. If not, pick **Option A** — reuse an installed system (shadcn/Material/Radix) when the stack matches, OR pull a named style (Claymorphism, Brutalism, …) from the design.md library. Both reuse-before-invent; both still must pass `ux_audit`.
458
+ 3. Otherwise pick **Option B** — infer the medium (Web B1 vs Mobile B2) from the task, use the starter in-context as the implicit system, and keep generating. Only ASK if web-vs-mobile is unclear. When the subject's material clearly matches a style-direction starter (**S1 Editorial print / S2 Ledger / S3 Warm consumer**), prefer it over the neutral B-starter — it hands Step 1.5 a direction for free.
459
+ 4. Only for CSS-only projects that won't adopt DESIGN.md, use **Option C** (`:root` block).
460
+ 5. Generate screens with any text-only model (DeepSeek-v4 / GLM-5.2 / Kimi K3) INSIDE these constraints.
461
+ 6. Run `ux_audit` with the CSS + the most common text colour pairs before handoff.
462
+
463
+ **Floors, not identities:** whichever starter you pick, Step 1.5 of ux-design still bends it — accent toward the subject's world, mood adjectives committed, one signature element named. The finished page must not be recognisable as the stock starter.
464
+
465
+ ## Audit-ready pairs
466
+
467
+ ```jsonc
468
+ // Pass these to ux_audit.pairs to check a baseline itself.
469
+ // weight/size enable the APCA thresholds; min is the WCAG compliance sidecar.
470
+ [
471
+ { "fg": "#111111", "bg": "#ffffff", "label": "body", "min": 4.5, "weight": 400, "size": 16 },
472
+ { "fg": "#595959", "bg": "#ffffff", "label": "muted", "min": 4.5, "weight": 400, "size": 16 },
473
+ { "fg": "#0066ff", "bg": "#ffffff", "label": "accent-link", "min": 4.5, "weight": 400, "size": 16 },
474
+ { "fg": "#ffffff", "bg": "#0066ff", "label": "button", "min": 4.5, "weight": 600, "size": 16 },
475
+ { "fg": "#c2261b", "bg": "#ffffff", "label": "danger", "min": 4.5, "weight": 400, "size": 16 }
476
+ ]
477
+ ```
478
+
479
+ ## What this preset is NOT
480
+
481
+ - Not a CSS framework — reference only. Don't bundle it; copy what you need.
482
+ - Not themeable at runtime — it's a baseline to extend, not a product.
483
+ - Not opinionated about the accent — `accent` / `{colors.accent}` is the ONE knob you turn for brand.
484
+ - Not an identity — even the S-starters are floors. A finished page that looks exactly like its starter means Step 1.5 was skipped.
@@ -0,0 +1,46 @@
1
+ ---
2
+ name: ux-routing
3
+ disable-model-invocation: true
4
+ description: >
5
+ Reference table for dividing UX work across models in the Pi ecosystem —
6
+ who defines the DESIGN.md scaffold, who generates variants, who renders and
7
+ inspects, what reviews. Consult when delegating design work to other models
8
+ (agy/Gemini, Claude, DeepSeek, Kimi) or when deciding whether the main model
9
+ should do a step itself. Not injected into every turn by design; the
10
+ always-true core rule lives in ux-design: the deterministic gate reviews, a
11
+ multimodal model looks at its own render, and taste lives in the direction
12
+ brief, not in the model choice.
13
+ ---
14
+
15
+ # Model routing for design work (who does what)
16
+
17
+ Split the work along each model's strength. **The inversion rule:** the
18
+ cheaper/weaker the model, the MORE you must externalise constraints. Taste
19
+ lives in the direction brief, not the weights.
20
+
21
+ **The deterministic-first principle:** the gate is mechanical (DESIGN.md lint +
22
+ `ux_audit`), not a vision-LLM call. Text-only models now lead frontend
23
+ (Kimi K3 is #1 on the Arena.ai Frontend Code Arena, ahead of Claude Fable 5) —
24
+ inside a locked system they produce non-slop. agy/Gemini/Claude is optional,
25
+ never the review gate.
26
+
27
+ | Step | Best tool/model | Why |
28
+ |---|---|---|
29
+ | **Define system** (DESIGN.md: tokens, elevation, type) | Reuse a preset (ux-presets) OR `agy_execute mode=plan pro-high` (Gemini) **once** | Preset is cheapest. Gemini = strongest visual reasoning for the one-time scaffold. |
30
+ | **Derive direction** (Step 1.5) | The generating model itself, after reading the subject material | Direction needs the subject brief, not a bigger model. |
31
+ | **Lint system** | `npx @google/design.md lint DESIGN.md` (shell-out) | Deterministic token-ref + contrast + structure validation. |
32
+ | **Per-screen brief** | Main Pi model: **GLM-5.2** | 1M ctx holds the whole DESIGN.md while scoping one screen |
33
+ | **Generate variants** | Main Pi model: **DeepSeek-v4**, **GLM-5.2**, or **Kimi K3** | Text-only models lead frontend inside a locked system; cheaper than vision calls. |
34
+ | **Normalise into system** | Main Pi model: **DeepSeek-v4** or **GLM-5.2** | Long context, token remapping, mechanical precision |
35
+ | **Render & inspect** | The generating model itself, when multimodal (GLM-5.3, Claude, Gemini) via `web_screenshot` | Eyes on your own output beat rules in a prompt — flash-tier models produce notably better UI when they see the rendered result (inline image blocks) |
36
+ | **Slop audit** | `ux_audit` tool (deterministic) + DESIGN.md lint | Contrast (APCA) + tokens + states + slop tells are computable, not judgement |
37
+ | **Optional polish** (never a gate) | `agy_execute mode=accept-edits sonnet` (Claude) or `opus` | Only if brand-fit is uncertain after the deterministic gate passes. NOT required. |
38
+
39
+ **Cross-family rule:** Gemini/Claude produce → deterministic gate reviews. Don't
40
+ spend vision-model quota on what `ux_audit` computes for free. agy review is a
41
+ fallback for aesthetic uncertainty, never the gate.
42
+
43
+ DeepSeek/GLM/Kimi K3 are safe for design **only inside a fully-specified
44
+ system** (DESIGN.md or preset + direction brief). If no system exists yet,
45
+ create it once (preset + Step 1.5 direction, or agy), then text-only models
46
+ are sufficient for every generation thereafter.