oneie 3.6.40 → 3.8.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 (984) hide show
  1. package/README.md +28 -9
  2. package/dist/admin/build.d.ts +15 -0
  3. package/dist/admin/build.d.ts.map +1 -0
  4. package/dist/admin/build.js +295 -0
  5. package/dist/admin/build.js.map +1 -0
  6. package/dist/admin/index.d.ts +24 -0
  7. package/dist/admin/index.d.ts.map +1 -0
  8. package/dist/admin/index.js +98 -0
  9. package/dist/admin/index.js.map +1 -0
  10. package/dist/admin/list.d.ts +14 -0
  11. package/dist/admin/list.d.ts.map +1 -0
  12. package/dist/admin/list.js +90 -0
  13. package/dist/admin/list.js.map +1 -0
  14. package/dist/admin/manifest.d.ts +86 -0
  15. package/dist/admin/manifest.d.ts.map +1 -0
  16. package/dist/admin/manifest.js +183 -0
  17. package/dist/admin/manifest.js.map +1 -0
  18. package/dist/admin/monorepo.d.ts +25 -0
  19. package/dist/admin/monorepo.d.ts.map +1 -0
  20. package/dist/admin/monorepo.js +59 -0
  21. package/dist/admin/monorepo.js.map +1 -0
  22. package/dist/admin/release.d.ts +17 -0
  23. package/dist/admin/release.d.ts.map +1 -0
  24. package/dist/admin/release.js +144 -0
  25. package/dist/admin/release.js.map +1 -0
  26. package/dist/admin/sync.d.ts +14 -0
  27. package/dist/admin/sync.d.ts.map +1 -0
  28. package/dist/admin/sync.js +104 -0
  29. package/dist/admin/sync.js.map +1 -0
  30. package/dist/admin/validate.d.ts +15 -0
  31. package/dist/admin/validate.d.ts.map +1 -0
  32. package/dist/admin/validate.js +169 -0
  33. package/dist/admin/validate.js.map +1 -0
  34. package/dist/commands/agent.d.ts +2 -0
  35. package/dist/commands/agent.d.ts.map +1 -1
  36. package/dist/commands/agent.js +44 -0
  37. package/dist/commands/agent.js.map +1 -1
  38. package/dist/commands/ask.d.ts +4 -0
  39. package/dist/commands/ask.d.ts.map +1 -0
  40. package/dist/commands/ask.js +8 -0
  41. package/dist/commands/ask.js.map +1 -0
  42. package/dist/commands/bounty.d.ts +4 -0
  43. package/dist/commands/bounty.d.ts.map +1 -0
  44. package/dist/commands/bounty.js +24 -0
  45. package/dist/commands/bounty.js.map +1 -0
  46. package/dist/commands/capabilities.d.ts +4 -0
  47. package/dist/commands/capabilities.d.ts.map +1 -0
  48. package/dist/commands/capabilities.js +18 -0
  49. package/dist/commands/capabilities.js.map +1 -0
  50. package/dist/commands/claw.d.ts +4 -0
  51. package/dist/commands/claw.d.ts.map +1 -0
  52. package/dist/commands/claw.js +14 -0
  53. package/dist/commands/claw.js.map +1 -0
  54. package/dist/commands/commend.d.ts +4 -0
  55. package/dist/commands/commend.d.ts.map +1 -0
  56. package/dist/commands/commend.js +13 -0
  57. package/dist/commands/commend.js.map +1 -0
  58. package/dist/commands/completion.d.ts +4 -0
  59. package/dist/commands/completion.d.ts.map +1 -0
  60. package/dist/commands/completion.js +49 -0
  61. package/dist/commands/completion.js.map +1 -0
  62. package/dist/commands/config.d.ts +4 -0
  63. package/dist/commands/config.d.ts.map +1 -0
  64. package/dist/commands/config.js +78 -0
  65. package/dist/commands/config.js.map +1 -0
  66. package/dist/commands/deploy.d.ts +4 -0
  67. package/dist/commands/deploy.d.ts.map +1 -0
  68. package/dist/commands/deploy.js +10 -0
  69. package/dist/commands/deploy.js.map +1 -0
  70. package/dist/commands/doctor.d.ts +4 -0
  71. package/dist/commands/doctor.d.ts.map +1 -0
  72. package/dist/commands/doctor.js +72 -0
  73. package/dist/commands/doctor.js.map +1 -0
  74. package/dist/commands/export.d.ts +4 -0
  75. package/dist/commands/export.d.ts.map +1 -0
  76. package/dist/commands/export.js +15 -0
  77. package/dist/commands/export.js.map +1 -0
  78. package/dist/commands/fade.d.ts +4 -0
  79. package/dist/commands/fade.d.ts.map +1 -0
  80. package/dist/commands/fade.js +15 -0
  81. package/dist/commands/fade.js.map +1 -0
  82. package/dist/commands/flag.d.ts +4 -0
  83. package/dist/commands/flag.d.ts.map +1 -0
  84. package/dist/commands/flag.js +13 -0
  85. package/dist/commands/flag.js.map +1 -0
  86. package/dist/commands/forget.d.ts +4 -0
  87. package/dist/commands/forget.d.ts.map +1 -0
  88. package/dist/commands/forget.js +16 -0
  89. package/dist/commands/forget.js.map +1 -0
  90. package/dist/commands/frontier.d.ts +4 -0
  91. package/dist/commands/frontier.d.ts.map +1 -0
  92. package/dist/commands/frontier.js +11 -0
  93. package/dist/commands/frontier.js.map +1 -0
  94. package/dist/commands/health.d.ts +4 -0
  95. package/dist/commands/health.d.ts.map +1 -0
  96. package/dist/commands/health.js +11 -0
  97. package/dist/commands/health.js.map +1 -0
  98. package/dist/commands/highways.d.ts +4 -0
  99. package/dist/commands/highways.d.ts.map +1 -0
  100. package/dist/commands/highways.js +14 -0
  101. package/dist/commands/highways.js.map +1 -0
  102. package/dist/commands/hire.d.ts +4 -0
  103. package/dist/commands/hire.d.ts.map +1 -0
  104. package/dist/commands/hire.js +16 -0
  105. package/dist/commands/hire.js.map +1 -0
  106. package/dist/commands/init.d.ts.map +1 -1
  107. package/dist/commands/init.js +69 -42
  108. package/dist/commands/init.js.map +1 -1
  109. package/dist/commands/know.d.ts +4 -0
  110. package/dist/commands/know.d.ts.map +1 -0
  111. package/dist/commands/know.js +8 -0
  112. package/dist/commands/know.js.map +1 -0
  113. package/dist/commands/launch.d.ts +4 -0
  114. package/dist/commands/launch.d.ts.map +1 -0
  115. package/dist/commands/launch.js +16 -0
  116. package/dist/commands/launch.js.map +1 -0
  117. package/dist/commands/mark.d.ts +4 -0
  118. package/dist/commands/mark.d.ts.map +1 -0
  119. package/dist/commands/mark.js +15 -0
  120. package/dist/commands/mark.js.map +1 -0
  121. package/dist/commands/pay.d.ts +4 -0
  122. package/dist/commands/pay.d.ts.map +1 -0
  123. package/dist/commands/pay.js +21 -0
  124. package/dist/commands/pay.js.map +1 -0
  125. package/dist/commands/pipe.d.ts +4 -0
  126. package/dist/commands/pipe.d.ts.map +1 -0
  127. package/dist/commands/pipe.js +35 -0
  128. package/dist/commands/pipe.js.map +1 -0
  129. package/dist/commands/publish.d.ts +4 -0
  130. package/dist/commands/publish.d.ts.map +1 -0
  131. package/dist/commands/publish.js +23 -0
  132. package/dist/commands/publish.js.map +1 -0
  133. package/dist/commands/recall.d.ts +4 -0
  134. package/dist/commands/recall.d.ts.map +1 -0
  135. package/dist/commands/recall.js +12 -0
  136. package/dist/commands/recall.js.map +1 -0
  137. package/dist/commands/repl.d.ts +4 -0
  138. package/dist/commands/repl.d.ts.map +1 -0
  139. package/dist/commands/repl.js +56 -0
  140. package/dist/commands/repl.js.map +1 -0
  141. package/dist/commands/reveal.d.ts +4 -0
  142. package/dist/commands/reveal.d.ts.map +1 -0
  143. package/dist/commands/reveal.js +11 -0
  144. package/dist/commands/reveal.js.map +1 -0
  145. package/dist/commands/revenue.d.ts +4 -0
  146. package/dist/commands/revenue.d.ts.map +1 -0
  147. package/dist/commands/revenue.js +11 -0
  148. package/dist/commands/revenue.js.map +1 -0
  149. package/dist/commands/select.d.ts +4 -0
  150. package/dist/commands/select.d.ts.map +1 -0
  151. package/dist/commands/select.js +19 -0
  152. package/dist/commands/select.js.map +1 -0
  153. package/dist/commands/signal.d.ts +4 -0
  154. package/dist/commands/signal.d.ts.map +1 -0
  155. package/dist/commands/signal.js +8 -0
  156. package/dist/commands/signal.js.map +1 -0
  157. package/dist/commands/stats.d.ts +4 -0
  158. package/dist/commands/stats.d.ts.map +1 -0
  159. package/dist/commands/stats.js +11 -0
  160. package/dist/commands/stats.js.map +1 -0
  161. package/dist/commands/status.d.ts +4 -0
  162. package/dist/commands/status.d.ts.map +1 -0
  163. package/dist/commands/status.js +18 -0
  164. package/dist/commands/status.js.map +1 -0
  165. package/dist/commands/sync.d.ts +4 -0
  166. package/dist/commands/sync.d.ts.map +1 -0
  167. package/dist/commands/sync.js +20 -0
  168. package/dist/commands/sync.js.map +1 -0
  169. package/dist/commands/tail.d.ts +4 -0
  170. package/dist/commands/tail.d.ts.map +1 -0
  171. package/dist/commands/tail.js +51 -0
  172. package/dist/commands/tail.js.map +1 -0
  173. package/dist/commands/warn.d.ts +4 -0
  174. package/dist/commands/warn.d.ts.map +1 -0
  175. package/dist/commands/warn.js +15 -0
  176. package/dist/commands/warn.js.map +1 -0
  177. package/dist/create-org-profile.js +2 -2
  178. package/dist/create-user-profile.js +2 -2
  179. package/dist/index.js +135 -7
  180. package/dist/index.js.map +1 -1
  181. package/dist/lib/args.d.ts +11 -0
  182. package/dist/lib/args.d.ts.map +1 -0
  183. package/dist/lib/args.js +57 -0
  184. package/dist/lib/args.js.map +1 -0
  185. package/dist/lib/config.d.ts +12 -0
  186. package/dist/lib/config.d.ts.map +1 -0
  187. package/dist/lib/config.js +38 -0
  188. package/dist/lib/config.js.map +1 -0
  189. package/dist/lib/http.d.ts +9 -0
  190. package/dist/lib/http.d.ts.map +1 -0
  191. package/dist/lib/http.js +25 -0
  192. package/dist/lib/http.js.map +1 -0
  193. package/dist/lib/output.d.ts +5 -0
  194. package/dist/lib/output.d.ts.map +1 -0
  195. package/dist/lib/output.js +32 -0
  196. package/dist/lib/output.js.map +1 -0
  197. package/dist/lib/sdk.d.ts +10 -0
  198. package/dist/lib/sdk.d.ts.map +1 -0
  199. package/dist/lib/sdk.js +22 -0
  200. package/dist/lib/sdk.js.map +1 -0
  201. package/dist/lib/telemetry.d.ts +4 -0
  202. package/dist/lib/telemetry.d.ts.map +1 -0
  203. package/dist/lib/telemetry.js +61 -0
  204. package/dist/lib/telemetry.js.map +1 -0
  205. package/dist/utils/file-resolver.js +1 -3
  206. package/dist/utils/file-resolver.js.map +1 -1
  207. package/dist/utils/installation-setup.d.ts +15 -0
  208. package/dist/utils/installation-setup.d.ts.map +1 -1
  209. package/dist/utils/installation-setup.js +71 -8
  210. package/dist/utils/installation-setup.js.map +1 -1
  211. package/package.json +5 -21
  212. package/.claude/agents/TROUBLESHOOTING.md +0 -530
  213. package/.claude/agents/agent-backend.md +0 -574
  214. package/.claude/agents/agent-builder.md +0 -911
  215. package/.claude/agents/agent-claude.md +0 -645
  216. package/.claude/agents/agent-clean.md +0 -477
  217. package/.claude/agents/agent-clone.md +0 -554
  218. package/.claude/agents/agent-designer.md +0 -1080
  219. package/.claude/agents/agent-director.md +0 -2254
  220. package/.claude/agents/agent-documenter.md +0 -688
  221. package/.claude/agents/agent-frontend.md +0 -1199
  222. package/.claude/agents/agent-integrator.md +0 -670
  223. package/.claude/agents/agent-lawyer.md +0 -1320
  224. package/.claude/agents/agent-news.md +0 -363
  225. package/.claude/agents/agent-onboard.md +0 -613
  226. package/.claude/agents/agent-ontology.md +0 -585
  227. package/.claude/agents/agent-ops.md +0 -1275
  228. package/.claude/agents/agent-problem-solver.md +0 -669
  229. package/.claude/agents/agent-quality.md +0 -1042
  230. package/.claude/agents/agent-sales.md +0 -507
  231. package/.claude/agents/agent-writer.md +0 -1068
  232. package/.claude/commands/cascade.md +0 -742
  233. package/.claude/commands/chat.md +0 -728
  234. package/.claude/commands/commit.md +0 -95
  235. package/.claude/commands/create.md +0 -544
  236. package/.claude/commands/deploy.md +0 -309
  237. package/.claude/commands/fast.md +0 -636
  238. package/.claude/commands/mcp-on.md +0 -191
  239. package/.claude/commands/media-upload.md +0 -186
  240. package/.claude/commands/news.md +0 -274
  241. package/.claude/commands/onboard.md +0 -440
  242. package/.claude/commands/one.md +0 -398
  243. package/.claude/commands/optimize.md +0 -74
  244. package/.claude/commands/plan.md +0 -719
  245. package/.claude/commands/push.md +0 -214
  246. package/.claude/commands/release.md +0 -105
  247. package/.claude/commands/review.md +0 -99
  248. package/.claude/commands/server.md +0 -487
  249. package/.claude/commands/start.md +0 -227
  250. package/.claude/commands/test.md +0 -197
  251. package/.claude/commands/validate.md +0 -140
  252. package/.claude/hooks/.last-news-context +0 -1
  253. package/.claude/hooks/PULL-BEFORE-PUSH-GUIDE.md +0 -473
  254. package/.claude/hooks/README-knowledge-hooks.md +0 -451
  255. package/.claude/hooks/README-news-generation.md +0 -364
  256. package/.claude/hooks/README-root-cleanup.md +0 -200
  257. package/.claude/hooks/README.md +0 -284
  258. package/.claude/hooks/__pycache__/todo.cpython-312.pyc +0 -0
  259. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  260. package/.claude/hooks/auto-format.sh +0 -106
  261. package/.claude/hooks/check-filenames.py +0 -177
  262. package/.claude/hooks/clean-post.py +0 -468
  263. package/.claude/hooks/clean-pre.py +0 -393
  264. package/.claude/hooks/clean-root-markdown.sh +0 -73
  265. package/.claude/hooks/commit-push.sh +0 -95
  266. package/.claude/hooks/done.py +0 -236
  267. package/.claude/hooks/format-hook.sh +0 -163
  268. package/.claude/hooks/formatting.py +0 -187
  269. package/.claude/hooks/hook-logger.sh +0 -173
  270. package/.claude/hooks/knowledge-post.py +0 -355
  271. package/.claude/hooks/knowledge-pre.py +0 -245
  272. package/.claude/hooks/mcp-on.sh +0 -134
  273. package/.claude/hooks/notification-hook.sh +0 -279
  274. package/.claude/hooks/ontology-validation.py +0 -255
  275. package/.claude/hooks/push.sh +0 -153
  276. package/.claude/hooks/release-cli.sh +0 -205
  277. package/.claude/hooks/root-cleanup.py +0 -217
  278. package/.claude/hooks/security-hook.sh +0 -397
  279. package/.claude/hooks/tag-all-docs.py +0 -464
  280. package/.claude/hooks/test-validate-ontology.sh +0 -170
  281. package/.claude/hooks/todo.py +0 -368
  282. package/.claude/hooks/track-changes.sh +0 -101
  283. package/.claude/hooks/validate-imports.py +0 -182
  284. package/.claude/hooks/validate-ontology-structure-summary.md +0 -243
  285. package/.claude/hooks/validate-ontology-structure.py +0 -558
  286. package/.claude/hooks/validate-ontology-structure.py.backup +0 -518
  287. package/.claude/hooks/validate-ontology.py +0 -140
  288. package/.claude/hooks/write-news.sh +0 -194
  289. package/.claude/skills/INDEX.md +0 -523
  290. package/.claude/skills/REGISTRY.md +0 -529
  291. package/.claude/skills/agent-backend-create-mutation.md +0 -319
  292. package/.claude/skills/agent-designer-create-wireframe.md +0 -341
  293. package/.claude/skills/agent-frontend-create-page.md +0 -413
  294. package/.claude/skills/agents/README.md +0 -238
  295. package/.claude/skills/astro/add-content-collection.md +0 -30
  296. package/.claude/skills/astro/check-build.md +0 -29
  297. package/.claude/skills/astro/create-component.md +0 -29
  298. package/.claude/skills/astro/create-page.md +0 -30
  299. package/.claude/skills/astro/optimize-performance.md +0 -21
  300. package/.claude/skills/convex/check-deployment.md +0 -46
  301. package/.claude/skills/convex/create-mutation.md +0 -405
  302. package/.claude/skills/convex/create-query.md +0 -52
  303. package/.claude/skills/convex/read-schema.md +0 -373
  304. package/.claude/skills/convex/test-function.md +0 -50
  305. package/.claude/skills/deployment/check-deployment-health.md +0 -20
  306. package/.claude/skills/deployment/create-release.md +0 -21
  307. package/.claude/skills/deployment/deploy-cloudflare.md +0 -31
  308. package/.claude/skills/deployment/deploy-convex.md +0 -30
  309. package/.claude/skills/deployment/sync-repositories.md +0 -19
  310. package/.claude/skills/design/check-accessibility.md +0 -21
  311. package/.claude/skills/design/create-component-spec.md +0 -27
  312. package/.claude/skills/design/generate-design-tokens.md +0 -24
  313. package/.claude/skills/design/generate-wireframe.md +0 -30
  314. package/.claude/skills/documentation/create-migration-guide.md +0 -20
  315. package/.claude/skills/documentation/generate-api-docs.md +0 -27
  316. package/.claude/skills/documentation/generate-readme.md +0 -22
  317. package/.claude/skills/documentation/update-knowledge.md +0 -20
  318. package/.claude/skills/integration/connect-external-system.md +0 -21
  319. package/.claude/skills/integration/implement-a2a.md +0 -20
  320. package/.claude/skills/integration/implement-acp.md +0 -20
  321. package/.claude/skills/integration/verify-integration.md +0 -20
  322. package/.claude/skills/ontology/README.md +0 -255
  323. package/.claude/skills/ontology/check-dimension.md +0 -307
  324. package/.claude/skills/ontology/generate-entity-type.md +0 -339
  325. package/.claude/skills/ontology/validate-schema.md +0 -229
  326. package/.claude/skills/ontology/verify-relationships.md +0 -310
  327. package/.claude/skills/problem-solving/analyze-test-failure.md +0 -21
  328. package/.claude/skills/problem-solving/identify-root-cause.md +0 -20
  329. package/.claude/skills/problem-solving/propose-solution.md +0 -29
  330. package/.claude/skills/problem-solving/verify-fix.md +0 -21
  331. package/.claude/skills/sales/generate-demo-script.md +0 -21
  332. package/.claude/skills/sales/qualify-lead.md +0 -30
  333. package/.claude/skills/sales/track-trial.md +0 -20
  334. package/.claude/skills/sales/verify-kyc.md +0 -20
  335. package/.claude/skills/testing/analyze-coverage.md +0 -24
  336. package/.claude/skills/testing/generate-tests.md +0 -24
  337. package/.claude/skills/testing/run-tests.md +0 -27
  338. package/.claude/skills/testing/validate-e2e.md +0 -25
  339. package/AGENTS.md +0 -60
  340. package/CLAUDE.md +0 -321
  341. package/CREATE-WEBSITE.md +0 -458
  342. package/SECURITY.md +0 -31
  343. package/dist/commands/create-website.d.ts +0 -19
  344. package/dist/commands/create-website.d.ts.map +0 -1
  345. package/dist/commands/create-website.js +0 -231
  346. package/dist/commands/create-website.js.map +0 -1
  347. package/folders.yaml +0 -92
  348. package/one/README.md +0 -760
  349. package/one/connections/a2a.md +0 -600
  350. package/one/connections/acp.md +0 -808
  351. package/one/connections/acps.md +0 -749
  352. package/one/connections/agentkit.md +0 -367
  353. package/one/connections/agui.md +0 -785
  354. package/one/connections/any-backend.md +0 -1720
  355. package/one/connections/ap2.md +0 -1072
  356. package/one/connections/api/queries-reference.md +0 -860
  357. package/one/connections/api-docs.md +0 -1909
  358. package/one/connections/api-reference.md +0 -1029
  359. package/one/connections/api.md +0 -2208
  360. package/one/connections/architecture-diagram.md +0 -112
  361. package/one/connections/communications.md +0 -467
  362. package/one/connections/connections.md +0 -357
  363. package/one/connections/copilotkit.md +0 -1577
  364. package/one/connections/cryptonetworks.md +0 -799
  365. package/one/connections/documentation.md +0 -1138
  366. package/one/connections/effect.md +0 -297
  367. package/one/connections/elizaos.md +0 -1308
  368. package/one/connections/groups.md +0 -814
  369. package/one/connections/inference.md +0 -76
  370. package/one/connections/integration-examples.md +0 -893
  371. package/one/connections/integration-guide.md +0 -887
  372. package/one/connections/integration-phase2.md +0 -754
  373. package/one/connections/kyc.md +0 -650
  374. package/one/connections/mcp.md +0 -860
  375. package/one/connections/membership.md +0 -1170
  376. package/one/connections/middleware.md +0 -1085
  377. package/one/connections/multitenant.md +0 -1359
  378. package/one/connections/n8n.md +0 -1033
  379. package/one/connections/patterns.md +0 -107
  380. package/one/connections/protocols.md +0 -297
  381. package/one/connections/relationships.md +0 -125
  382. package/one/connections/schema.md +0 -605
  383. package/one/connections/service-layer.md +0 -568
  384. package/one/connections/vectors.md +0 -225
  385. package/one/connections/wordpress.md +0 -1320
  386. package/one/connections/workflow-copy.md +0 -923
  387. package/one/connections/workflow-examples.md +0 -759
  388. package/one/connections/workflow-onboarding.md +0 -701
  389. package/one/connections/workflow.md +0 -923
  390. package/one/connections/workflows/delegation.md +0 -903
  391. package/one/connections/workflows/frontend.md +0 -1055
  392. package/one/connections/workflows/strategy.md +0 -921
  393. package/one/connections/workflows/tasks.md +0 -716
  394. package/one/connections/x402-baazar.md +0 -131
  395. package/one/connections/x402.md +0 -1353
  396. package/one/groups/features.md +0 -2904
  397. package/one/groups/groups.md +0 -587
  398. package/one/groups/one.md +0 -619
  399. package/one/groups/strategy-copy.md +0 -887
  400. package/one/knowledge/.obsidian/app.json +0 -1
  401. package/one/knowledge/.obsidian/appearance.json +0 -1
  402. package/one/knowledge/.obsidian/core-plugins.json +0 -33
  403. package/one/knowledge/.obsidian/ecommerce-ontology.md +0 -210
  404. package/one/knowledge/.obsidian/workspace.json +0 -211
  405. package/one/knowledge/100-inference-quick-reference.md +0 -449
  406. package/one/knowledge/ag-ui-protocol.md +0 -613
  407. package/one/knowledge/agent-onboard-usage.md +0 -630
  408. package/one/knowledge/agentic-commerce.md +0 -146
  409. package/one/knowledge/ai-agents-vs-memecoins-thesis.md +0 -683
  410. package/one/knowledge/ai-api-reference.md +0 -715
  411. package/one/knowledge/ai-platform.md +0 -323
  412. package/one/knowledge/ai-quickstart.md +0 -355
  413. package/one/knowledge/ai-sdk-implementation.md +0 -436
  414. package/one/knowledge/ai-token-crypto-analysis-framework.md +0 -1191
  415. package/one/knowledge/ai-token-paradigm-shift-2025.md +0 -732
  416. package/one/knowledge/altcoin-cycle-prediction-ontology.md +0 -884
  417. package/one/knowledge/altcoin-cycle-trading-strategy.md +0 -642
  418. package/one/knowledge/architecture-any-backend.md +0 -1589
  419. package/one/knowledge/architecture-diagram.md +0 -404
  420. package/one/knowledge/architecture-frontend.md +0 -1014
  421. package/one/knowledge/architecture.md +0 -1742
  422. package/one/knowledge/archived/ontology.old.md +0 -2840
  423. package/one/knowledge/astro-effect-complete-vision.md +0 -2148
  424. package/one/knowledge/astro-effect-simple-architecture.md +0 -750
  425. package/one/knowledge/audit-agent-onboard-alignment.md +0 -481
  426. package/one/knowledge/audit-agent-sales-alignment.md +0 -444
  427. package/one/knowledge/backend-api-reference.md +0 -728
  428. package/one/knowledge/cascading-context-specification.md +0 -1617
  429. package/one/knowledge/claude-code-integration.md +0 -1293
  430. package/one/knowledge/cli-claude-handoff.md +0 -736
  431. package/one/knowledge/context-engineering.md +0 -610
  432. package/one/knowledge/crypto-analysis-strategy.md +0 -1276
  433. package/one/knowledge/crypto-cycle-2024-2025-analysis.md +0 -44
  434. package/one/knowledge/crypto.md +0 -978
  435. package/one/knowledge/develop/design.md +0 -364
  436. package/one/knowledge/develop/index.md +0 -145
  437. package/one/knowledge/development-commands.md +0 -251
  438. package/one/knowledge/docs.md +0 -627
  439. package/one/knowledge/dsl.md +0 -1678
  440. package/one/knowledge/event-driven-documentation.md +0 -270
  441. package/one/knowledge/files.md +0 -2489
  442. package/one/knowledge/frontend.md +0 -1056
  443. package/one/knowledge/games-english.md +0 -691
  444. package/one/knowledge/games.md +0 -1082
  445. package/one/knowledge/generative-ui-patterns.md +0 -559
  446. package/one/knowledge/guidelines.md +0 -314
  447. package/one/knowledge/hono.md +0 -2127
  448. package/one/knowledge/implementation-examples.md +0 -2554
  449. package/one/knowledge/installation-folders.md +0 -366
  450. package/one/knowledge/institutional-cycle-paradigm-2025.md +0 -555
  451. package/one/knowledge/knowledge.md +0 -660
  452. package/one/knowledge/language.md +0 -998
  453. package/one/knowledge/lessons-learned.md +0 -378
  454. package/one/knowledge/lessons-website-building-focus.md +0 -382
  455. package/one/knowledge/merge-report.md +0 -254
  456. package/one/knowledge/metadata-system.md +0 -504
  457. package/one/knowledge/nine-padel-playbook.md +0 -229
  458. package/one/knowledge/one-protocol-ai-agents.md +0 -892
  459. package/one/knowledge/one-protocol-executive-report.md +0 -617
  460. package/one/knowledge/one-protocol-standard.md +0 -869
  461. package/one/knowledge/one-protocol-whitepaper.md +0 -756
  462. package/one/knowledge/ontology-blog.yaml +0 -47
  463. package/one/knowledge/ontology-cheatsheet.md +0 -617
  464. package/one/knowledge/ontology-community.yaml +0 -65
  465. package/one/knowledge/ontology-core-universal.md +0 -740
  466. package/one/knowledge/ontology-core.yaml +0 -63
  467. package/one/knowledge/ontology-courses.yaml +0 -76
  468. package/one/knowledge/ontology-creator.md +0 -402
  469. package/one/knowledge/ontology-crypto.md +0 -1603
  470. package/one/knowledge/ontology-developer-guide.md +0 -814
  471. package/one/knowledge/ontology-documentation.md +0 -377
  472. package/one/knowledge/ontology-ecommerce.md +0 -269
  473. package/one/knowledge/ontology-education-game.md +0 -1654
  474. package/one/knowledge/ontology-education.md +0 -938
  475. package/one/knowledge/ontology-engineering-specification.md +0 -1310
  476. package/one/knowledge/ontology-engineering.md +0 -1676
  477. package/one/knowledge/ontology-files.yaml +0 -525
  478. package/one/knowledge/ontology-frontend-master.md +0 -2898
  479. package/one/knowledge/ontology-frontend-specifications.md +0 -2196
  480. package/one/knowledge/ontology-frontend.md +0 -2475
  481. package/one/knowledge/ontology-index.md +0 -397
  482. package/one/knowledge/ontology-minimal.yaml +0 -301
  483. package/one/knowledge/ontology-portfolio.yaml +0 -45
  484. package/one/knowledge/ontology-quickstart.md +0 -602
  485. package/one/knowledge/ontology-release.md +0 -317
  486. package/one/knowledge/ontology-shop.yaml +0 -148
  487. package/one/knowledge/ontology-tokens.yaml +0 -51
  488. package/one/knowledge/ontology-tutorial.md +0 -455
  489. package/one/knowledge/ontology-v2.md +0 -4449
  490. package/one/knowledge/ontology-video-script.md +0 -939
  491. package/one/knowledge/ontology-visual-guide.md +0 -378
  492. package/one/knowledge/ontology.md +0 -3847
  493. package/one/knowledge/ontology.yaml +0 -1653
  494. package/one/knowledge/parallel-agents.md +0 -932
  495. package/one/knowledge/patterns/backend/convex-mutation-pattern.md +0 -130
  496. package/one/knowledge/patterns/backend/convex-query-pattern.md +0 -143
  497. package/one/knowledge/patterns/backend/mutation-template.md +0 -249
  498. package/one/knowledge/patterns/backend/query-template.md +0 -286
  499. package/one/knowledge/patterns/backend/service-template.md +0 -258
  500. package/one/knowledge/patterns/design/component-architecture.md +0 -435
  501. package/one/knowledge/patterns/design/index.md +0 -160
  502. package/one/knowledge/patterns/design/test-driven-design-pattern.md +0 -196
  503. package/one/knowledge/patterns/design/wireframe-template.md +0 -250
  504. package/one/knowledge/patterns/frontend/component-template.md +0 -246
  505. package/one/knowledge/patterns/frontend/form-template.md +0 -348
  506. package/one/knowledge/patterns/frontend/page-template.md +0 -209
  507. package/one/knowledge/patterns/frontend/react-component-pattern.md +0 -188
  508. package/one/knowledge/patterns/test/acceptance-criteria-template.md +0 -396
  509. package/one/knowledge/patterns/test/technical-test-template.md +0 -566
  510. package/one/knowledge/patterns/test/test-driven-pattern.md +0 -160
  511. package/one/knowledge/patterns/test/user-flow-template.md +0 -272
  512. package/one/knowledge/performance.md +0 -459
  513. package/one/knowledge/provider-agnostic-content.md +0 -995
  514. package/one/knowledge/provider-creation-guide.md +0 -1082
  515. package/one/knowledge/quality-loop.md +0 -419
  516. package/one/knowledge/quick-start-ontology-mapping.md +0 -773
  517. package/one/knowledge/readme-architecture.md +0 -158
  518. package/one/knowledge/readme.md +0 -149
  519. package/one/knowledge/rules.md +0 -644
  520. package/one/knowledge/score.md +0 -85
  521. package/one/knowledge/specifications.md +0 -873
  522. package/one/knowledge/tags.md +0 -148
  523. package/one/knowledge/todo-template.md +0 -269
  524. package/one/knowledge/todo.md +0 -269
  525. package/one/knowledge/troubleshooting.md +0 -434
  526. package/one/knowledge/typescript-patterns.md +0 -321
  527. package/one/knowledge/universal-generation-language.md +0 -827
  528. package/one/knowledge/x402-research.md +0 -104
  529. package/one/license.md +0 -107
  530. package/one/people/anthony-o-connell.md +0 -469
  531. package/one/people/people.md +0 -590
  532. package/one/things/ALIGNMENT_AUDIT_QUALITY_AGENT.md +0 -401
  533. package/one/things/AUDIT_AGENT_INTEGRATOR_ALIGNMENT.md +0 -588
  534. package/one/things/AUDIT_REPORT_AGENT_CLEAN.md +0 -461
  535. package/one/things/CHECKLIST.md +0 -407
  536. package/one/things/IMPLEMENTATION_STATUS.md +0 -379
  537. package/one/things/ONE.md +0 -529
  538. package/one/things/agents/agent-backend.md +0 -1501
  539. package/one/things/agents/agent-builder.md +0 -1064
  540. package/one/things/agents/agent-clean.md +0 -1112
  541. package/one/things/agents/agent-clone.md +0 -1324
  542. package/one/things/agents/agent-deploy.md +0 -986
  543. package/one/things/agents/agent-designer.md +0 -2305
  544. package/one/things/agents/agent-director.md +0 -1526
  545. package/one/things/agents/agent-documenter.md +0 -1129
  546. package/one/things/agents/agent-frontend.md +0 -1201
  547. package/one/things/agents/agent-integrator.md +0 -1269
  548. package/one/things/agents/agent-lawyer.md +0 -1371
  549. package/one/things/agents/agent-problem-solver.md +0 -1457
  550. package/one/things/agents/agent-quality.md +0 -1483
  551. package/one/things/agents/agent-sales.md +0 -1074
  552. package/one/things/cascade/cascade.yaml +0 -481
  553. package/one/things/cascade/docs/examples/1-1-agent-prompts/design.md +0 -523
  554. package/one/things/cascade/docs/examples/1-1-agent-prompts/tests.md +0 -314
  555. package/one/things/cascade/docs/examples/1-1-agent-prompts.md +0 -562
  556. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/design.md +0 -543
  557. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/tests.md +0 -272
  558. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator.md +0 -548
  559. package/one/things/cascade/docs/examples/1-3-event-coordination/design.md +0 -586
  560. package/one/things/cascade/docs/examples/1-3-event-coordination/tests.md +0 -267
  561. package/one/things/cascade/docs/examples/1-3-event-coordination.md +0 -547
  562. package/one/things/cascade/docs/examples/1-4-knowledge-management/design.md +0 -665
  563. package/one/things/cascade/docs/examples/1-4-knowledge-management/tests.md +0 -236
  564. package/one/things/cascade/docs/examples/1-4-knowledge-management.md +0 -652
  565. package/one/things/cascade/docs/examples/1-5-quality-loops/design.md +0 -860
  566. package/one/things/cascade/docs/examples/1-5-quality-loops/tests.md +0 -255
  567. package/one/things/cascade/docs/examples/1-5-quality-loops.md +0 -725
  568. package/one/things/cascade/docs/examples/1-6-numbering-structure/design.md +0 -659
  569. package/one/things/cascade/docs/examples/1-6-numbering-structure/tests.md +0 -256
  570. package/one/things/cascade/docs/examples/1-6-numbering-structure.md +0 -639
  571. package/one/things/cascade/docs/examples/readme.md +0 -259
  572. package/one/things/cascade/docs/getting-started.md +0 -533
  573. package/one/things/cascade/docs/workflow.md +0 -1378
  574. package/one/things/cascade/readme.md +0 -379
  575. package/one/things/cascade/templates/feature-template.md +0 -289
  576. package/one/things/claude/agents/advocacy-activation-manager.md +0 -710
  577. package/one/things/claude/agents/advocacy-campaign-designer.md +0 -688
  578. package/one/things/claude/agents/analyst.md +0 -508
  579. package/one/things/claude/agents/architect.md +0 -505
  580. package/one/things/claude/agents/brand-identity-specialist.md +0 -538
  581. package/one/things/claude/agents/bstp-token-strategist.md +0 -690
  582. package/one/things/claude/agents/builder-repo.md +0 -532
  583. package/one/things/claude/agents/bullstamp-community-builder.md +0 -597
  584. package/one/things/claude/agents/bullstamp-marketing-orchestrator.md +0 -529
  585. package/one/things/claude/agents/bulltilt-platform-growth.md +0 -590
  586. package/one/things/claude/agents/company-bullstamp-character.md +0 -602
  587. package/one/things/claude/agents/company-bullstamp-community.md +0 -307
  588. package/one/things/claude/agents/company-bullstamp-marketing.md +0 -307
  589. package/one/things/claude/agents/company-bullstamp-token.md +0 -307
  590. package/one/things/claude/agents/company-bulltilt-growth.md +0 -307
  591. package/one/things/claude/agents/content-bibliography-formatter.md +0 -404
  592. package/one/things/claude/agents/content-calendar-planner.md +0 -473
  593. package/one/things/claude/agents/content-chapter-formatter.md +0 -513
  594. package/one/things/claude/agents/content-formatter.md +0 -571
  595. package/one/things/claude/agents/content-hook-specialist.md +0 -485
  596. package/one/things/claude/agents/content-image-formatter.md +0 -560
  597. package/one/things/claude/agents/content-introduction-formatter.md +0 -510
  598. package/one/things/claude/agents/content-multiplication-engine.md +0 -579
  599. package/one/things/claude/agents/content-playbook-writer.md +0 -473
  600. package/one/things/claude/agents/content-team-manager.md +0 -647
  601. package/one/things/claude/agents/content-toc-formatter.md +0 -547
  602. package/one/things/claude/agents/convex-backend-specialist.md +0 -2725
  603. package/one/things/claude/agents/core-manager.md +0 -607
  604. package/one/things/claude/agents/core-master.md +0 -426
  605. package/one/things/claude/agents/cross-functional-manager.md +0 -476
  606. package/one/things/claude/agents/crypto-airdrop-strategist.md +0 -622
  607. package/one/things/claude/agents/crypto-analytics-educator.md +0 -596
  608. package/one/things/claude/agents/crypto-architecture-specialist.md +0 -497
  609. package/one/things/claude/agents/crypto-community-analyst.md +0 -314
  610. package/one/things/claude/agents/crypto-community-psychologist.md +0 -546
  611. package/one/things/claude/agents/crypto-dex-optimization-expert.md +0 -579
  612. package/one/things/claude/agents/crypto-dex-optimizer.md +0 -307
  613. package/one/things/claude/agents/crypto-diamond-formation-specialist.md +0 -552
  614. package/one/things/claude/agents/crypto-diamond-hands.md +0 -307
  615. package/one/things/claude/agents/crypto-ecosystem-expansion-manager.md +0 -597
  616. package/one/things/claude/agents/crypto-engagement-specialist.md +0 -581
  617. package/one/things/claude/agents/crypto-market-researcher.md +0 -307
  618. package/one/things/claude/agents/crypto-marketing-orchestrator.md +0 -563
  619. package/one/things/claude/agents/crypto-network-effect-amplifier.md +0 -614
  620. package/one/things/claude/agents/crypto-optimization-analyst.md +0 -597
  621. package/one/things/claude/agents/crypto-strategic-synthesizer.md +0 -556
  622. package/one/things/claude/agents/crypto-team-manager.md +0 -392
  623. package/one/things/claude/agents/crypto-token-analyst.md +0 -319
  624. package/one/things/claude/agents/crypto-viral-content-creator.md +0 -549
  625. package/one/things/claude/agents/crypto-wallet-identification-expert.md +0 -527
  626. package/one/things/claude/agents/crypto-wallet-identifier.md +0 -307
  627. package/one/things/claude/agents/customer-journey-designer.md +0 -474
  628. package/one/things/claude/agents/customer-success-manager.md +0 -574
  629. package/one/things/claude/agents/dev.md +0 -406
  630. package/one/things/claude/agents/documenter.md +0 -548
  631. package/one/things/claude/agents/elevate-marketing-orchestrator.md +0 -403
  632. package/one/things/claude/agents/engagement-specialist.md +0 -502
  633. package/one/things/claude/agents/engineering-architect.md +0 -387
  634. package/one/things/claude/agents/engineering-business-analyst.md +0 -527
  635. package/one/things/claude/agents/engineering-developer.md +0 -386
  636. package/one/things/claude/agents/engineering-director.md +0 -322
  637. package/one/things/claude/agents/engineering-ingestor.md +0 -659
  638. package/one/things/claude/agents/engineering-product-manager.md +0 -525
  639. package/one/things/claude/agents/engineering-product-owner.md +0 -527
  640. package/one/things/claude/agents/engineering-project-coordinator.md +0 -525
  641. package/one/things/claude/agents/engineering-quality-assurance.md +0 -392
  642. package/one/things/claude/agents/engineering-team-manager.md +0 -515
  643. package/one/things/claude/agents/engineering-user-experience.md +0 -386
  644. package/one/things/claude/agents/framework-elevate-manager.md +0 -309
  645. package/one/things/claude/agents/improver.md +0 -805
  646. package/one/things/claude/agents/intelligence-team-manager.md +0 -390
  647. package/one/things/claude/agents/lead-capture-expert.md +0 -459
  648. package/one/things/claude/agents/lead-magnet-creator.md +0 -446
  649. package/one/things/claude/agents/market-research-analyst.md +0 -435
  650. package/one/things/claude/agents/marketing-brand-identity.md +0 -344
  651. package/one/things/claude/agents/marketing-content-hooks.md +0 -455
  652. package/one/things/claude/agents/marketing-content-multiplier.md +0 -331
  653. package/one/things/claude/agents/marketing-content-poster.md +0 -372
  654. package/one/things/claude/agents/marketing-customer-journey.md +0 -331
  655. package/one/things/claude/agents/marketing-director.md +0 -402
  656. package/one/things/claude/agents/marketing-engagement.md +0 -331
  657. package/one/things/claude/agents/marketing-lead-capture.md +0 -331
  658. package/one/things/claude/agents/marketing-lead-magnet.md +0 -331
  659. package/one/things/claude/agents/marketing-network-effects.md +0 -331
  660. package/one/things/claude/agents/marketing-nurture-campaigns.md +0 -331
  661. package/one/things/claude/agents/marketing-share-optimizer.md +0 -331
  662. package/one/things/claude/agents/marketing-team-manager.md +0 -451
  663. package/one/things/claude/agents/marketing-viral-growth.md +0 -232
  664. package/one/things/claude/agents/mission-commander.md +0 -378
  665. package/one/things/claude/agents/network-effect-analyst.md +0 -604
  666. package/one/things/claude/agents/nextjs-15-specialist.md +0 -1634
  667. package/one/things/claude/agents/npx.md +0 -946
  668. package/one/things/claude/agents/nurture-campaign-manager.md +0 -554
  669. package/one/things/claude/agents/one-master.md +0 -378
  670. package/one/things/claude/agents/one-orchestrator.md +0 -345
  671. package/one/things/claude/agents/one.md +0 -658
  672. package/one/things/claude/agents/playbook-generator.md +0 -526
  673. package/one/things/claude/agents/pm.md +0 -349
  674. package/one/things/claude/agents/po.md +0 -370
  675. package/one/things/claude/agents/qa.md +0 -361
  676. package/one/things/claude/agents/research-foundation-analyst.md +0 -324
  677. package/one/things/claude/agents/research-intelligence-gatherer.md +0 -435
  678. package/one/things/claude/agents/research-market-analyst.md +0 -324
  679. package/one/things/claude/agents/research-team-manager.md +0 -489
  680. package/one/things/claude/agents/sales-environment-optimizer.md +0 -519
  681. package/one/things/claude/agents/sales-team-manager.md +0 -407
  682. package/one/things/claude/agents/sales-upsell-strategist.md +0 -324
  683. package/one/things/claude/agents/service-advocacy-campaigns.md +0 -324
  684. package/one/things/claude/agents/service-advocacy-manager.md +0 -324
  685. package/one/things/claude/agents/service-success-manager.md +0 -324
  686. package/one/things/claude/agents/service-team-manager.md +0 -405
  687. package/one/things/claude/agents/shadcn-ui-design-system-specialist.md +0 -2357
  688. package/one/things/claude/agents/share-optimization-specialist.md +0 -576
  689. package/one/things/claude/agents/sm.md +0 -352
  690. package/one/things/claude/agents/story-teller.md +0 -498
  691. package/one/things/claude/agents/task-master.md +0 -621
  692. package/one/things/claude/agents/tauri-cross-platform-specialist.md +0 -1912
  693. package/one/things/claude/agents/tester.md +0 -595
  694. package/one/things/claude/agents/the-bull-character-manager.md +0 -603
  695. package/one/things/claude/agents/tools-playbook-generator.md +0 -492
  696. package/one/things/claude/agents/turbo-repo-builder.md +0 -346
  697. package/one/things/claude/agents/upsell-strategist.md +0 -503
  698. package/one/things/claude/agents/ux-expert.md +0 -360
  699. package/one/things/claude/agents/viral-growth-orchestrator.md +0 -520
  700. package/one/things/claude/claude-code-hooks-development.json +0 -21
  701. package/one/things/claude/claude-code-hooks-production.json +0 -21
  702. package/one/things/claude/claude-code-hooks.json +0 -25
  703. package/one/things/claude/commands/agent.md +0 -124
  704. package/one/things/claude/commands/cascade-status.md +0 -153
  705. package/one/things/claude/commands/ingest.md +0 -343
  706. package/one/things/claude/commands/ingestor.md +0 -158
  707. package/one/things/claude/commands/mission.md +0 -103
  708. package/one/things/claude/commands/npx.md +0 -156
  709. package/one/things/claude/commands/one.md +0 -486
  710. package/one/things/claude/commands/quality-check.md +0 -252
  711. package/one/things/claude/commands/smart-route.md +0 -261
  712. package/one/things/claude/commands/start.md +0 -139
  713. package/one/things/claude/commands/story.md +0 -103
  714. package/one/things/claude/commands/task.md +0 -193
  715. package/one/things/claude/hook-bypass.json +0 -32
  716. package/one/things/claude/hooks/agent-hook-config.json +0 -427
  717. package/one/things/claude/hooks/build-hook.sh +0 -156
  718. package/one/things/claude/hooks/cleanup-hook.sh +0 -201
  719. package/one/things/claude/hooks/file-organization-hook.sh +0 -80
  720. package/one/things/claude/hooks/format-hook.sh +0 -43
  721. package/one/things/claude/hooks/hook-bypass.sh +0 -293
  722. package/one/things/claude/hooks/hook-debouncer.sh +0 -62
  723. package/one/things/claude/hooks/hook-logger.sh +0 -89
  724. package/one/things/claude/hooks/lint-hook.sh +0 -140
  725. package/one/things/claude/hooks/notification-hook.sh +0 -204
  726. package/one/things/claude/hooks/ontology-validation-hook.sh +0 -86
  727. package/one/things/claude/hooks/performance-metrics.json +0 -25
  728. package/one/things/claude/hooks/security-hook.sh +0 -256
  729. package/one/things/claude/hooks/story-validation-hook-enhanced.sh +0 -210
  730. package/one/things/claude/hooks/story-validation-hook.sh +0 -145
  731. package/one/things/claude/hooks/test-hook.sh +0 -145
  732. package/one/things/claude/hooks/test-story-validation.sh +0 -170
  733. package/one/things/claude/settings-local.json +0 -86
  734. package/one/things/cli/cli-code.md +0 -677
  735. package/one/things/cli/cli-compiler-code.md +0 -677
  736. package/one/things/cli/cli.md +0 -871
  737. package/one/things/components/card-shadcn.md +0 -953
  738. package/one/things/components/card.md +0 -1041
  739. package/one/things/components.md +0 -1743
  740. package/one/things/componets.md +0 -19
  741. package/one/things/contracts/Move.toml +0 -12
  742. package/one/things/contracts/README.md +0 -288
  743. package/one/things/contracts/one.move +0 -762
  744. package/one/things/contracts/sdk.ts +0 -578
  745. package/one/things/creator-diagram.md +0 -184
  746. package/one/things/crypto/FEATURES.md +0 -78
  747. package/one/things/crypto/ONECORE.md +0 -62
  748. package/one/things/crypto/ONECOREFAQ.md +0 -22
  749. package/one/things/crypto/ONECOREHOW.md +0 -46
  750. package/one/things/crypto/ONEENTERPRISE.md +0 -64
  751. package/one/things/crypto/ONEENTERPRISEFAQ.md +0 -64
  752. package/one/things/crypto/ONEENTERPRISEHOW.md +0 -53
  753. package/one/things/crypto/ONEPRO.md +0 -60
  754. package/one/things/crypto/ONEPROFAQ.md +0 -22
  755. package/one/things/crypto/ONEPROHOW.md +0 -53
  756. package/one/things/crypto/READMEAGENCY.md +0 -64
  757. package/one/things/crypto/VSL.md +0 -45
  758. package/one/things/crypto/WebsiteCopy.md +0 -176
  759. package/one/things/demo-accessibility-animations.md +0 -1025
  760. package/one/things/demo-components.md +0 -1310
  761. package/one/things/demo-design-summary.md +0 -692
  762. package/one/things/demo-design-system.md +0 -973
  763. package/one/things/demo-page-layouts.md +0 -1016
  764. package/one/things/design-system.md +0 -832
  765. package/one/things/designs/accessibility-audit.md +0 -877
  766. package/one/things/designs/component-specifications.md +0 -855
  767. package/one/things/designs/design-overview.md +0 -377
  768. package/one/things/designs/design-tokens.md +0 -448
  769. package/one/things/designs/wireframes-dashboard.md +0 -710
  770. package/one/things/docs/api-requests.md +0 -987
  771. package/one/things/docs/ecommerce/ARCHITECTURE-DIAGRAM.md +0 -485
  772. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-IMPLEMENTATION.md +0 -465
  773. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-SUMMARY.md +0 -425
  774. package/one/things/docs/ecommerce/CONVERSION-UX-IMPLEMENTATION-SUMMARY.md +0 -451
  775. package/one/things/docs/ecommerce/FEATURE-SUMMARY.md +0 -536
  776. package/one/things/docs/ecommerce/IMPLEMENTATION-NOTES.md +0 -650
  777. package/one/things/docs/ecommerce/INTEGRATION-EXAMPLE.md +0 -473
  778. package/one/things/docs/ecommerce/QUICK-START.md +0 -405
  779. package/one/things/docs/ecommerce/URGENCY-IMPLEMENTATION-SUMMARY.md +0 -567
  780. package/one/things/docs/ecommerce/URGENCY-QUICK-REFERENCE.md +0 -271
  781. package/one/things/docs/ecommerce/USAGE-EXAMPLE.astro +0 -171
  782. package/one/things/docs/ecommerce/demo.astro +0 -309
  783. package/one/things/examples/children/lemonade-stand.md +0 -404
  784. package/one/things/examples/enterprise/crm-saas.md +0 -1444
  785. package/one/things/features/1-1-agent-prompts.md +0 -562
  786. package/one/things/features/1-2-yaml-orchestrator.md +0 -548
  787. package/one/things/features/1-3-event-coordination.md +0 -547
  788. package/one/things/features/1-4-knowledge-management.md +0 -652
  789. package/one/things/features/1-5-quality-loops.md +0 -725
  790. package/one/things/features/1-6-numbering-structure.md +0 -639
  791. package/one/things/features/2-1-dataprovider-interface.md +0 -2583
  792. package/one/things/features/2-2-config-system.md +0 -3242
  793. package/one/things/features/2-3-effectts-services.md +0 -1645
  794. package/one/things/features/2-4-react-hooks.md +0 -2136
  795. package/one/things/features/2-5-auth-migration.md +0 -2144
  796. package/one/things/features/2-6-dashboard-migration.md +0 -2084
  797. package/one/things/features/2-7-alternative-providers.md +0 -2578
  798. package/one/things/features/2-7-implementation-report.md +0 -724
  799. package/one/things/features/2-cli.md +0 -1720
  800. package/one/things/features/2-design.md +0 -1770
  801. package/one/things/features/2-tests.md +0 -576
  802. package/one/things/features/AUTH_HOOKS_IMPLEMENTATION.md +0 -576
  803. package/one/things/features/DECOUPLING.md +0 -290
  804. package/one/things/features/DEPLOYMENT.md +0 -470
  805. package/one/things/features/IMPLEMENTATION_SUMMARY.md +0 -362
  806. package/one/things/features/improve.md +0 -861
  807. package/one/things/features/remove-convex-deps.md +0 -63
  808. package/one/things/features/top-features.md +0 -87
  809. package/one/things/features/use-one-backend.md +0 -1217
  810. package/one/things/features-in-english.md +0 -200
  811. package/one/things/files.yaml +0 -721
  812. package/one/things/ideas/1-create-workflow.md +0 -207
  813. package/one/things/ideas/2-backend-agnostic-frontend.md +0 -439
  814. package/one/things/implementation/backend-guide.md +0 -457
  815. package/one/things/interface.md +0 -257
  816. package/one/things/landing-page-implementation.md +0 -455
  817. package/one/things/legal/README.md +0 -234
  818. package/one/things/legal/privacy-policy.md +0 -1227
  819. package/one/things/legal/terms-of-service.md +0 -1432
  820. package/one/things/master-workflow-plan.md +0 -806
  821. package/one/things/pay.one.ie.md +0 -53
  822. package/one/things/plans/0-in-sync.md +0 -136
  823. package/one/things/plans/0-timeline.md +0 -36
  824. package/one/things/plans/1-create-workflow.md +0 -732
  825. package/one/things/plans/QUICK-START-SIMPLIFICATION.md +0 -333
  826. package/one/things/plans/README-SIMPLIFICATION.md +0 -349
  827. package/one/things/plans/SIMPLIFICATION-EXAMPLES.md +0 -16
  828. package/one/things/plans/SIMPLIFICATION-SUMMARY.md +0 -455
  829. package/one/things/plans/ai-elements-integration.md +0 -483
  830. package/one/things/plans/ai-elements.md +0 -1278
  831. package/one/things/plans/ai-integration-plan.md +0 -263
  832. package/one/things/plans/ai-integration.md +0 -996
  833. package/one/things/plans/ai-sdk.md +0 -798
  834. package/one/things/plans/ai-tools.md +0 -621
  835. package/one/things/plans/app.md +0 -832
  836. package/one/things/plans/architecture-summary.md +0 -312
  837. package/one/things/plans/async-ai-agents.md +0 -233
  838. package/one/things/plans/backend-agnostic-frontend.md +0 -390
  839. package/one/things/plans/backend-cleanup-quickstart.md +0 -380
  840. package/one/things/plans/backend-ontology-conformance.md +0 -475
  841. package/one/things/plans/backend-status.md +0 -599
  842. package/one/things/plans/backend-structure.md +0 -847
  843. package/one/things/plans/backend-target-structure.md +0 -482
  844. package/one/things/plans/backend.md +0 -1175
  845. package/one/things/plans/better-auth-any-backend-revised.md +0 -1103
  846. package/one/things/plans/better-auth-any-backend.md +0 -1896
  847. package/one/things/plans/better-auth-available-features.md +0 -273
  848. package/one/things/plans/big-plan.md +0 -52
  849. package/one/things/plans/cli-updates-required.md +0 -320
  850. package/one/things/plans/complete-step-by-step.md +0 -1409
  851. package/one/things/plans/components.md +0 -709
  852. package/one/things/plans/convex-agents.md +0 -1034
  853. package/one/things/plans/convex-better-auth.md +0 -1141
  854. package/one/things/plans/convex-on-off.md +0 -407
  855. package/one/things/plans/crypto-token-researcher.md +0 -629
  856. package/one/things/plans/data-quality-metrics.md +0 -745
  857. package/one/things/plans/deep-researcher-agent.md +0 -466
  858. package/one/things/plans/deploy-to-cloudflare.md +0 -623
  859. package/one/things/plans/deployment-architecture.md +0 -469
  860. package/one/things/plans/desktop.md +0 -1139
  861. package/one/things/plans/development-plan.md +0 -1283
  862. package/one/things/plans/development-workflow-tldr.md +0 -207
  863. package/one/things/plans/development-workflow.md +0 -959
  864. package/one/things/plans/dsl-claude-code.md +0 -1011
  865. package/one/things/plans/effect-components.md +0 -1743
  866. package/one/things/plans/effect-patterns-reference.md +0 -2235
  867. package/one/things/plans/effect.md +0 -1806
  868. package/one/things/plans/email.md +0 -966
  869. package/one/things/plans/enhance-auth.md +0 -1692
  870. package/one/things/plans/execution-strategy.md +0 -1291
  871. package/one/things/plans/existing-infrastructure.md +0 -712
  872. package/one/things/plans/feature-based-sites.md +0 -894
  873. package/one/things/plans/frontend-effects.md +0 -1276
  874. package/one/things/plans/group-folder-multi-tenancy.md +0 -893
  875. package/one/things/plans/improve-codebase.md +0 -1811
  876. package/one/things/plans/install-components.md +0 -215
  877. package/one/things/plans/integrate-frontend-and-backend.md +0 -603
  878. package/one/things/plans/landing.md +0 -820
  879. package/one/things/plans/layout.md +0 -249
  880. package/one/things/plans/mail-backend.md +0 -1361
  881. package/one/things/plans/mail.md +0 -2677
  882. package/one/things/plans/mcp-clear-context-prompt.md +0 -81
  883. package/one/things/plans/mcp-simple.md +0 -248
  884. package/one/things/plans/multi-ontology-architecture.md +0 -885
  885. package/one/things/plans/next-features.md +0 -114
  886. package/one/things/plans/npx-agent-safety.md +0 -785
  887. package/one/things/plans/npx-agent.md +0 -1089
  888. package/one/things/plans/onboarding.md +0 -51
  889. package/one/things/plans/one-protocol-and-payone-usage.md +0 -82
  890. package/one/things/plans/one.md +0 -677
  891. package/one/things/plans/ontology-6-dimensions.md +0 -2201
  892. package/one/things/plans/ontology-compliance-audit.md +0 -342
  893. package/one/things/plans/ontology-driven-strategy.md +0 -882
  894. package/one/things/plans/ontology-refine.md +0 -586
  895. package/one/things/plans/ontology-ui-approach.md +0 -375
  896. package/one/things/plans/open-agent.md +0 -840
  897. package/one/things/plans/performace.md +0 -122
  898. package/one/things/plans/phase-1-foundation.md +0 -620
  899. package/one/things/plans/phase-3-implementation.md +0 -1037
  900. package/one/things/plans/plan-connect-to-api.md +0 -146
  901. package/one/things/plans/quick-wins.md +0 -1428
  902. package/one/things/plans/r2.md +0 -777
  903. package/one/things/plans/readme-backend-cleanup.md +0 -402
  904. package/one/things/plans/release.md +0 -507
  905. package/one/things/plans/remove-backend-development-from-agents.md +0 -1331
  906. package/one/things/plans/repos.md +0 -98
  907. package/one/things/plans/separate-copy-2.md +0 -1349
  908. package/one/things/plans/separate-copy-3.md +0 -2479
  909. package/one/things/plans/separate-copy.md +0 -1349
  910. package/one/things/plans/separate-demo.md +0 -864
  911. package/one/things/plans/separate.md +0 -1999
  912. package/one/things/plans/sequence.md +0 -2040
  913. package/one/things/plans/shadcn-integration-summary.md +0 -510
  914. package/one/things/plans/sidebar.md +0 -206
  915. package/one/things/plans/skills.md +0 -709
  916. package/one/things/plans/small-fixes.md +0 -23
  917. package/one/things/plans/start-new.md +0 -764
  918. package/one/things/plans/switch-off-auth.md +0 -42
  919. package/one/things/plans/sync-checklist.md +0 -351
  920. package/one/things/plans/test-backend-connection.md +0 -514
  921. package/one/things/plans/unified-implementation-plan.md +0 -934
  922. package/one/things/plans/update-demos.md +0 -581
  923. package/one/things/plans/use-our-backend.md +0 -572
  924. package/one/things/plans/video-backend.md +0 -638
  925. package/one/things/plans/video-frontend.md +0 -490
  926. package/one/things/plans/video-old-archived.md +0 -656
  927. package/one/things/plans/wave1-onboarding-100-inferences.md +0 -1686
  928. package/one/things/plans/wave1-onboarding-vision.md +0 -744
  929. package/one/things/plans/wave1-orchestration-summary.md +0 -604
  930. package/one/things/plans/wave1-specialist-assignments.md +0 -1413
  931. package/one/things/plans/workflow-files.md +0 -1210
  932. package/one/things/plans/workflow.md +0 -1378
  933. package/one/things/plans-u.md +0 -905
  934. package/one/things/products/Blockchain Products.md +0 -6278
  935. package/one/things/products/cascade-landing-page.md +0 -841
  936. package/one/things/products/cascade.md +0 -1568
  937. package/one/things/products/context-engineering.md +0 -1488
  938. package/one/things/products/onthology.md +0 -15
  939. package/one/things/products/ontology-ui-shadcn.md +0 -1302
  940. package/one/things/products/ontology-ui.md +0 -1429
  941. package/one/things/products/ontology.md +0 -789
  942. package/one/things/products/sdk.md +0 -573
  943. package/one/things/promptkit.md +0 -930
  944. package/one/things/repos/all-repos.md +0 -0
  945. package/one/things/scripts-clean-mac.sh +0 -409
  946. package/one/things/service-providers-new.md +0 -1052
  947. package/one/things/service-providers.md +0 -1121
  948. package/one/things/structure.md +0 -532
  949. package/one/things/system.md +0 -618
  950. package/one/things/templates.md +0 -294
  951. package/one/things/tests/2-1-dataprovider-interface.md +0 -1216
  952. package/one/things/tests/2-1-test-analysis.md +0 -544
  953. package/one/things/things.md +0 -384
  954. package/one/things/todo-acp-integration.md +0 -744
  955. package/one/things/todo-ai.md +0 -933
  956. package/one/things/todo-api.md +0 -1078
  957. package/one/things/todo-assignment.md +0 -580
  958. package/one/things/todo-buy-chatgpt.md +0 -1450
  959. package/one/things/todo-components.md +0 -1683
  960. package/one/things/todo-connections.md +0 -278
  961. package/one/things/todo-ecommerce-frontend.md +0 -1313
  962. package/one/things/todo-ecommerce.md +0 -569
  963. package/one/things/todo-effects.md +0 -1075
  964. package/one/things/todo-frontend-effects.md +0 -977
  965. package/one/things/todo-landing-page.md +0 -1091
  966. package/one/things/todo-mail.md +0 -1160
  967. package/one/things/todo-master-plan.md +0 -490
  968. package/one/things/todo-onboard.md +0 -666
  969. package/one/things/todo-one-ie.md +0 -538
  970. package/one/things/todo-page.md +0 -606
  971. package/one/things/todo-plans.md +0 -282
  972. package/one/things/todo-projects.md +0 -241
  973. package/one/things/todo-refactoring-plan.md +0 -366
  974. package/one/things/todo-release.md +0 -654
  975. package/one/things/todo-sequence.md +0 -1621
  976. package/one/things/todo-use-our-backend.md +0 -1908
  977. package/one/things/todo-workflow.md +0 -626
  978. package/one/things/todo-x402.md +0 -2047
  979. package/one/things/todo.md +0 -21
  980. package/one/things/video/scripts-crypto.md +0 -835
  981. package/one/things/video-script-backup.md +0 -318
  982. package/one/things/video-script-demo.md +0 -382
  983. package/one/things/video-script-ontology.md +0 -333
  984. package/one/things/video-script.md +0 -361
@@ -1,2305 +0,0 @@
1
- ---
2
- title: Agent Designer
3
- dimension: things
4
- category: agents
5
- tags: agent, ai-agent, connections, events, knowledge, ontology, things
6
- related_dimensions: connections, events, groups, knowledge, people
7
- scope: global
8
- created: 2025-11-03
9
- updated: 2025-11-03
10
- version: 1.0.0
11
- ai_context: |
12
- This document is part of the things dimension in the agents category.
13
- Location: one/things/agents/agent-designer.md
14
- Purpose: Documents design agent
15
- Related dimensions: connections, events, groups, knowledge, people
16
- For AI agents: Read this to understand agent designer.
17
- ---
18
-
19
- # Design Agent
20
-
21
- **Version:** 2.0.0 (6-Dimension Ontology Aligned)
22
- **Role:** Create wireframes, define components, set design tokens
23
- **Type:** design_agent (business_agents category - ontology line 265)
24
- **Stage:** 5_design (workflow stage - ontology line 1042)
25
- **Context Budget:** 2,000 tokens (Feature spec + Tests + Design patterns - ontology line 1064)
26
- **Status:** Active
27
-
28
- ---
29
-
30
- ## Purpose
31
-
32
- The Design Agent translates feature specifications and quality requirements into concrete visual designs that enable tests to pass. It operates within the **6-dimension ontology**, creating designs as **things**, establishing **connections** to features and tests, logging all work as **events**, and building reusable **knowledge** patterns for future design work.
33
-
34
- **Core Responsibility:** Design is not decoration - it's the interface layer that makes features testable and usable within the ontology structure.
35
-
36
- **Ontology Integration:** This agent works AFTER quality agent defines tests (stage 4_tests) and BEFORE implementation (stage 6_implementation). Every design decision references the 6 dimensions.
37
-
38
- ---
39
-
40
- ## Role
41
-
42
- Create test-driven visual designs (wireframes, components, tokens) that satisfy acceptance criteria while ensuring accessibility, brand compliance, and implementation clarity - all mapped to the 6-dimension ontology.
43
-
44
- ---
45
-
46
- ## The 6-Dimension Ontology (Understanding Context)
47
-
48
- ### 1. Organizations (Multi-tenant isolation)
49
-
50
- Design Agent pulls brand guidelines from organization settings:
51
-
52
- - Brand colors (primary, secondary, accent)
53
- - Typography preferences (font families, scale)
54
- - Spacing system (4px base unit or custom)
55
- - Border radius style (modern/sharp/soft)
56
- - Logo and visual identity
57
-
58
- **Key Operation:**
59
-
60
- ```typescript
61
- // Get organization brand guidelines
62
- const org = await ctx.db.get(organizationId);
63
- const brandColors = org.properties.brandColors;
64
- const typography = org.properties.typography;
65
- ```
66
-
67
- ### 2. People (Authorization & governance)
68
-
69
- Design Agent respects roles:
70
-
71
- - **org_owner**: Can customize brand guidelines
72
- - **org_user**: Uses established design system
73
- - **platform_owner**: Can access all org designs for support
74
-
75
- **Key Operation:**
76
-
77
- ```typescript
78
- // Check if person can modify design tokens
79
- const person = await ctx.db.get(actorId);
80
- if (person.properties.role !== "org_owner") {
81
- throw new Error("Only org owners can modify design tokens");
82
- }
83
- ```
84
-
85
- ### 3. Things (All entities)
86
-
87
- Design Agent creates and consumes things:
88
-
89
- - **Reads:** feature (specifications), test (user flows + acceptance criteria), organization (brand)
90
- - **Creates:** design (wireframes), design (component-definition), design (design-tokens)
91
- - **References:** blog_post, course, video (content types being designed)
92
-
93
- **Key Operation:**
94
-
95
- ```typescript
96
- // Create wireframe thing
97
- await ctx.db.insert("things", {
98
- type: "design",
99
- name: "Wireframe: Course CRUD",
100
- properties: {
101
- designType: "wireframe",
102
- featureId: featureId,
103
- screens: [...],
104
- brandGuidelines: org.properties.brandColors
105
- },
106
- status: "draft",
107
- createdAt: Date.now(),
108
- updatedAt: Date.now()
109
- });
110
- ```
111
-
112
- ### 4. Connections (Relationships)
113
-
114
- Design Agent establishes connections:
115
-
116
- - **assigned_to**: feature → design_agent (work assignment)
117
- - **tested_by**: test → feature (informs design decisions)
118
- - **implements**: design → feature (design fulfills feature)
119
- - **part_of**: design → feature (design belongs to feature)
120
- - **configured_by**: organization → design_agent (brand settings)
121
-
122
- **Key Operation:**
123
-
124
- ```typescript
125
- // Link design to feature
126
- await ctx.db.insert("connections", {
127
- fromThingId: wireframeId,
128
- toThingId: featureId,
129
- relationshipType: "implements",
130
- metadata: { stage: "5_design", completeness: 100 },
131
- createdAt: Date.now(),
132
- });
133
- ```
134
-
135
- ### 5. Events (All actions over time)
136
-
137
- Design Agent logs all work as events:
138
-
139
- - **agent_created**: Design agent initialized
140
- - **agent_executed**: Design work started
141
- - **agent_completed**: Design work finished successfully
142
- - **agent_failed**: Design work encountered error
143
- - **wireframe_created**: Wireframes ready for review
144
- - **component_defined**: Component specs ready for implementation
145
- - **design_tokens_set**: Token system configured
146
- - **accessibility_validated**: WCAG compliance checked
147
-
148
- **Key Operation:**
149
-
150
- ```typescript
151
- // Log wireframe creation event
152
- await ctx.db.insert("events", {
153
- type: "wireframe_created",
154
- actorId: designAgentId,
155
- targetId: wireframeId,
156
- timestamp: Date.now(),
157
- metadata: {
158
- featureId: featureId,
159
- screens: ["create-course", "edit-course", "delete-confirmation"],
160
- format: "figma-url" | "svg" | "html-prototype",
161
- },
162
- });
163
- ```
164
-
165
- ### 6. Knowledge (Labels + vectors for RAG)
166
-
167
- Design Agent builds knowledge:
168
-
169
- - **Labels**: skill:ui-design, skill:ux-design, format:wireframe, technology:tailwind-v4, capability:responsive-design
170
- - **Chunks**: Reusable design patterns (3-column layout, centered form, modal patterns)
171
- - **Junction**: Links design patterns (knowledge) to design agent (thing) via thingKnowledge
172
-
173
- **Key Operation:**
174
-
175
- ```typescript
176
- // Store design pattern as knowledge chunk
177
- await ctx.db.insert("knowledge", {
178
- knowledgeType: "chunk",
179
- text: "Pattern: Centered Form Layout - Use Card > CardContent with max-w-2xl and mx-auto for create/edit forms...",
180
- embedding: [...],
181
- embeddingModel: "text-embedding-3-large",
182
- sourceThingId: designAgentId,
183
- labels: ["pattern:centered-form", "layout:single-column", "use-case:crud"],
184
- metadata: { category: "layout-pattern", complexity: "simple" },
185
- createdAt: Date.now()
186
- });
187
-
188
- // Link knowledge to design agent
189
- await ctx.db.insert("thingKnowledge", {
190
- thingId: designAgentId,
191
- knowledgeId: knowledgeId,
192
- role: "chunk_of",
193
- metadata: { patternType: "layout", useCase: "form-heavy-pages" },
194
- createdAt: Date.now()
195
- });
196
- ```
197
-
198
- **Golden Rule:** If a design decision isn't mapped to the 6 dimensions, it's not integrated with the ontology.
199
-
200
- ---
201
-
202
- ## Ontology Mapping (Complete 6-Dimension Integration)
203
-
204
- ### Thing Type: design_agent
205
-
206
- ```typescript
207
- {
208
- _id: Id<"things">,
209
- type: "design_agent", // business_agents category (ontology line 265)
210
- name: "Design Agent",
211
- properties: {
212
- role: "design_agent",
213
- category: "business_agents",
214
- stage: "5_design", // Workflow stage (ontology line 1042)
215
- contextBudget: 2000, // Context tokens (ontology line 1064)
216
- capabilities: [
217
- "create_wireframes", // Ontology line 1063
218
- "define_components",
219
- "set_design_tokens",
220
- "validate_accessibility",
221
- "ensure_brand_compliance"
222
- ],
223
- designSystem: {
224
- framework: "tailwind-v4", // CSS-based configuration (no JS config)
225
- componentLibrary: "shadcn-ui", // 50+ pre-installed components
226
- gridSystem: "12-column",
227
- spacingBase: 4, // px base unit
228
- colorFormat: "hsl" // HSL format for Tailwind v4
229
- },
230
- brandGuidelines: {
231
- primaryFont: "sans-serif",
232
- scale: "modular-scale-1.25",
233
- borderRadius: "modern-rounded"
234
- }
235
- },
236
- status: "active",
237
- createdAt: Date.now(),
238
- updatedAt: Date.now()
239
- }
240
- ```
241
-
242
- ### Connections (Ontology Lines 465-567)
243
-
244
- **Inputs (work assignments):**
245
-
246
- ```typescript
247
- // Feature assigned to design agent
248
- {
249
- fromThingId: featureId, // Feature thing
250
- toThingId: designAgentId, // This agent
251
- relationshipType: "assigned_to", // Not in ontology - use "delegated" (line 526)
252
- metadata: {
253
- stage: "5_design",
254
- priority: "high" | "medium" | "low",
255
- assignedBy: directorAgentId,
256
- assignedAt: Date.now()
257
- },
258
- createdAt: Date.now()
259
- }
260
-
261
- // Test definitions inform design
262
- {
263
- fromThingId: testId, // Test thing (from quality agent)
264
- toThingId: designAgentId,
265
- relationshipType: "tested_by", // Connection type (ontology line 1089)
266
- metadata: {
267
- userFlows: [...],
268
- acceptanceCriteria: [...],
269
- accessibilityRequirements: [...]
270
- },
271
- createdAt: Date.now()
272
- }
273
-
274
- // Organization brand settings
275
- {
276
- fromThingId: organizationId,
277
- toThingId: designAgentId,
278
- relationshipType: "configured_by", // Not in ontology - use "manages" (line 506)
279
- metadata: {
280
- brandColors: { primary, secondary, accent },
281
- typography: { headingFont, bodyFont },
282
- spacing: { base, scale },
283
- borderRadius: "modern" | "sharp" | "soft"
284
- },
285
- createdAt: Date.now()
286
- }
287
- ```
288
-
289
- **Outputs (design artifacts):**
290
-
291
- ```typescript
292
- // Design artifact created
293
- {
294
- fromThingId: designAgentId,
295
- toThingId: designId, // Design thing
296
- relationshipType: "created_by", // Ownership connection (ontology line 485)
297
- metadata: {
298
- featureId: featureId,
299
- designType: "wireframe" | "component" | "token-system",
300
- createdAt: Date.now()
301
- },
302
- createdAt: Date.now()
303
- }
304
-
305
- // Design implements feature
306
- {
307
- fromThingId: designId,
308
- toThingId: featureId,
309
- relationshipType: "implements", // Not in ontology - use "fulfilled" (line 528)
310
- metadata: {
311
- stage: "5_design",
312
- completeness: 100,
313
- reviewed: true
314
- },
315
- createdAt: Date.now()
316
- }
317
-
318
- // Design part of feature
319
- {
320
- fromThingId: designId,
321
- toThingId: featureId,
322
- relationshipType: "part_of", // Content relationship (ontology line 496)
323
- metadata: {
324
- designPhase: "wireframe" | "component-spec" | "tokens"
325
- },
326
- createdAt: Date.now()
327
- }
328
-
329
- // Component implements design
330
- {
331
- fromThingId: componentId, // Actual React component (future)
332
- toThingId: designId,
333
- relationshipType: "fulfilled", // Consolidated connection (ontology line 528)
334
- metadata: {
335
- componentPath: "/src/components/features/...",
336
- implementedAt: Date.now(),
337
- fulfillmentType: "implementation",
338
- protocol: "ag-ui" // CopilotKit Generative UI
339
- },
340
- createdAt: Date.now()
341
- }
342
- ```
343
-
344
- ### Events (Ontology Lines 569-709)
345
-
346
- **Watches for (Events this agent monitors):**
347
-
348
- ```typescript
349
- // Quality check complete - ready for design
350
- {
351
- type: "quality_check_complete", // Quality event (ontology line 1102)
352
- actorId: qualityAgentId,
353
- targetId: featureId,
354
- timestamp: Date.now(),
355
- metadata: {
356
- status: "approved",
357
- testsCreated: true,
358
- userFlowsDefined: true
359
- }
360
- }
361
-
362
- // Test passed - validates design decisions
363
- {
364
- type: "test_passed", // Quality event (ontology line 1102)
365
- actorId: qualityAgentId,
366
- targetId: testId,
367
- timestamp: Date.now(),
368
- metadata: {
369
- testType: "acceptance" | "accessibility" | "usability",
370
- featureId: featureId
371
- }
372
- }
373
-
374
- // Feature assigned to design agent
375
- {
376
- type: "feature_assigned", // Planning event (ontology line 1100)
377
- actorId: directorAgentId,
378
- targetId: featureId,
379
- timestamp: Date.now(),
380
- metadata: {
381
- assignedTo: designAgentId,
382
- stage: "5_design",
383
- priority: "high"
384
- }
385
- }
386
- ```
387
-
388
- **Emits (Events this agent creates):**
389
-
390
- ```typescript
391
- // Agent lifecycle events (ontology lines 642-645)
392
- {
393
- type: "agent_created", // Agent event (ontology line 642)
394
- actorId: directorAgentId,
395
- targetId: designAgentId,
396
- timestamp: Date.now(),
397
- metadata: {
398
- agentType: "design_agent",
399
- capabilities: ["create_wireframes", "define_components", "set_tokens"]
400
- }
401
- }
402
-
403
- {
404
- type: "agent_executed", // Agent event (ontology line 643)
405
- actorId: designAgentId,
406
- targetId: featureId,
407
- timestamp: Date.now(),
408
- metadata: {
409
- action: "create_wireframes" | "define_components" | "set_tokens",
410
- input: { featureSpec, tests, brandGuidelines },
411
- startedAt: Date.now()
412
- }
413
- }
414
-
415
- {
416
- type: "agent_completed", // Agent event (ontology line 644)
417
- actorId: designAgentId,
418
- targetId: designId,
419
- timestamp: Date.now(),
420
- metadata: {
421
- action: "design_complete",
422
- output: { wireframes, components, tokens },
423
- duration: 1200, // ms
424
- success: true
425
- }
426
- }
427
-
428
- {
429
- type: "agent_failed", // Agent event (ontology line 645)
430
- actorId: designAgentId,
431
- targetId: featureId,
432
- timestamp: Date.now(),
433
- metadata: {
434
- error: "InsufficientBrandGuidelines",
435
- message: "Missing primary color in organization settings",
436
- retryable: true
437
- }
438
- }
439
-
440
- // Task events (ontology line 1101)
441
- {
442
- type: "task_started", // Execution event (ontology line 1101)
443
- actorId: designAgentId,
444
- targetId: taskId,
445
- timestamp: Date.now(),
446
- metadata: {
447
- taskType: "create_wireframe",
448
- featureId: featureId
449
- }
450
- }
451
-
452
- {
453
- type: "task_completed", // Execution event (ontology line 1101)
454
- actorId: designAgentId,
455
- targetId: taskId,
456
- timestamp: Date.now(),
457
- metadata: {
458
- taskType: "create_wireframe",
459
- output: wireframeId,
460
- duration: 800
461
- }
462
- }
463
-
464
- // Design-specific events (custom, not in core ontology - use content_event)
465
- {
466
- type: "content_event", // Consolidated event (ontology line 687)
467
- actorId: designAgentId,
468
- targetId: wireframeId,
469
- timestamp: Date.now(),
470
- metadata: {
471
- action: "created", // created|updated|deleted
472
- contentType: "wireframe",
473
- featureId: featureId,
474
- screens: ["create-course", "edit-course", "delete-confirmation"],
475
- format: "figma-url" | "svg" | "html-prototype"
476
- }
477
- }
478
-
479
- {
480
- type: "content_event", // Consolidated event (ontology line 687)
481
- actorId: designAgentId,
482
- targetId: componentDefinitionId,
483
- timestamp: Date.now(),
484
- metadata: {
485
- action: "created",
486
- contentType: "component-definition",
487
- componentName: "CourseForm",
488
- props: { courseId, onSubmit, onCancel },
489
- stateManagement: "useQuery + useMutation",
490
- shadcnComponents: ["Card", "Button", "Input", "Label"]
491
- }
492
- }
493
-
494
- {
495
- type: "content_event", // Consolidated event (ontology line 687)
496
- actorId: designAgentId,
497
- targetId: tokenSystemId,
498
- timestamp: Date.now(),
499
- metadata: {
500
- action: "created",
501
- contentType: "design-tokens",
502
- colors: { primary, secondary, accent, muted },
503
- spacing: { base: 4, scale: [4, 8, 12, 16, 24, 32, 48, 64] },
504
- typography: { scale, weights, lineHeights },
505
- borderRadius: { sm: 4, md: 8, lg: 12, full: 9999 }
506
- }
507
- }
508
-
509
- // Accessibility validation (use quality_check_complete)
510
- {
511
- type: "quality_check_complete", // Quality event (ontology line 1102)
512
- actorId: designAgentId,
513
- targetId: designId,
514
- timestamp: Date.now(),
515
- metadata: {
516
- checkType: "accessibility",
517
- wcagLevel: "AA",
518
- contrastRatios: { body: 4.5, large: 3.0 },
519
- keyboardNavigation: true,
520
- screenReaderOptimized: true,
521
- issuesFound: []
522
- }
523
- }
524
- ```
525
-
526
- ### Knowledge Integration (Ontology Lines 153-228)
527
-
528
- **Labels (categorization - ontology lines 213-226):**
529
-
530
- ```typescript
531
- // Design agent knowledge labels
532
- [
533
- "skill:ui-design", // Curated prefix: skill:*
534
- "skill:ux-design",
535
- "skill:accessibility",
536
- "skill:visual-hierarchy",
537
- "skill:color-theory",
538
- "format:wireframe", // Curated prefix: format:*
539
- "format:component-spec",
540
- "format:design-tokens",
541
- "technology:tailwind-v4", // Curated prefix: technology:*
542
- "technology:shadcn-ui",
543
- "technology:react-19",
544
- "technology:astro-5",
545
- "capability:responsive-design", // Curated prefix: capability:*
546
- "capability:dark-mode",
547
- "capability:brand-systems",
548
- ];
549
- ```
550
-
551
- **Chunks (RAG for design patterns - ontology lines 163-188):**
552
-
553
- ```typescript
554
- // Design patterns stored as knowledge chunks
555
- {
556
- _id: Id<"knowledge">,
557
- knowledgeType: "chunk", // Chunk type (ontology line 167)
558
- text: `
559
- Pattern: Blog List Layout (Medium-style)
560
-
561
- Structure:
562
- - 3-column grid: [240px navigation | 1fr content | 240px meta]
563
- - Left-aligned text for readability
564
- - Generous white space (space-y-12 between articles)
565
- - Typography hierarchy: 48px title → 16px body → 14px meta
566
-
567
- Implementation:
568
- <div class="grid grid-cols-[240px_1fr_240px] gap-8">
569
- <nav>...</nav>
570
- <main class="space-y-12">...</main>
571
- <aside>...</aside>
572
- </div>
573
-
574
- Responsive Strategy:
575
- - Mobile: Stack to single column (navigation in drawer)
576
- - Tablet: Hide meta sidebar, keep navigation
577
- - Desktop: Show all three columns
578
- `,
579
- embedding: [...], // Vector for semantic search
580
- embeddingModel: "text-embedding-3-large",
581
- embeddingDim: 3072,
582
- sourceThingId: designAgentId, // Created by design agent
583
- sourceField: "patterns",
584
- chunk: {
585
- index: 0,
586
- tokenCount: 150,
587
- overlap: 0
588
- },
589
- labels: ["pattern:blog-list", "layout:3-column", "style:minimal"],
590
- metadata: {
591
- category: "layout-pattern",
592
- complexity: "medium",
593
- mobileStrategy: "stack-columns",
594
- framework: "tailwind-v4",
595
- componentLibrary: "shadcn-ui"
596
- },
597
- createdAt: Date.now(),
598
- updatedAt: Date.now()
599
- }
600
-
601
- // Link knowledge to design agent via junction (ontology lines 190-201)
602
- {
603
- _id: Id<"thingKnowledge">,
604
- thingId: designAgentId, // Design agent
605
- knowledgeId: knowledgeId, // Pattern chunk
606
- role: "chunk_of", // Junction role (ontology line 197)
607
- metadata: {
608
- patternType: "layout",
609
- useCase: "content-heavy-pages",
610
- usageCount: 12, // How many times pattern was used
611
- lastUsed: Date.now()
612
- },
613
- createdAt: Date.now()
614
- }
615
- ```
616
-
617
- **Vector Search for Pattern Matching:**
618
-
619
- ```typescript
620
- // Query: Find similar design patterns via vector search
621
- // Use knowledge.by_embedding index (ontology line 209)
622
- const similarPatterns = await ctx.vectorSearch("knowledge", "by_embedding", {
623
- vector: queryEmbedding, // Embedding of current design challenge
624
- limit: 5,
625
- });
626
-
627
- // Filter by labels for more precision
628
- const layoutPatterns = similarPatterns.filter(
629
- (p) => p.labels.includes("pattern:layout") || p.labels.includes("layout:*"),
630
- );
631
- ```
632
-
633
- ---
634
-
635
- ## Responsibilities (Ontology Line 1063)
636
-
637
- ### 1. create_wireframes
638
-
639
- **Purpose:** Create visual representations of feature interfaces AFTER tests are defined, ensuring designs enable tests to pass.
640
-
641
- **Workflow Position:** Stage 5 (design) - runs AFTER stage 4 (tests) completes successfully.
642
-
643
- **Input:**
644
-
645
- - Feature specification (thing type: feature, from specialist)
646
- - Test definitions (thing type: test, from quality agent)
647
- - User flows with acceptance criteria
648
- - Organization brand guidelines (from organization thing)
649
-
650
- **Process:**
651
-
652
- 1. **Read ontology context:**
653
- - Get feature thing (type, name, properties)
654
- - Get test thing (userFlows, acceptanceCriteria)
655
- - Get organization thing (brandColors, typography)
656
- 2. **Map user flows to screens:**
657
- - Each user flow becomes one or more screens
658
- - Each screen satisfies specific acceptance criteria
659
- 3. **Define information architecture:**
660
- - What entities are displayed? (things)
661
- - What actions are available? (events to be created)
662
- - What relationships are shown? (connections)
663
- 4. **Create wireframe for each screen:**
664
- - Layout pattern (centered-form, 3-column-grid, dashboard-sidebar)
665
- - Component structure (Card > CardContent > Form > Input)
666
- - Responsive strategy (mobile, tablet, desktop)
667
- 5. **Ensure design enables tests to pass:**
668
- - Map each acceptance criterion to UI element
669
- - Add loading states for async operations
670
- - Add error states for failure cases
671
- 6. **Validate accessibility requirements:**
672
- - WCAG AA contrast ratios (4.5:1 body, 3:1 large)
673
- - Keyboard navigation (Tab, Enter, Escape)
674
- - ARIA labels and focus management
675
- 7. **Create wireframe thing:**
676
- - Insert into things table (type: "design")
677
- - Create connection (implements) to feature
678
- - Log event (content_event with action: "created", contentType: "wireframe")
679
-
680
- **Output (Ontology Operations):**
681
-
682
- ```typescript
683
- // 1. Create wireframe thing
684
- const wireframeId = await ctx.db.insert("things", {
685
- type: "design", // Not a separate thing type, use properties.designType
686
- name: "Wireframe: Course CRUD",
687
- properties: {
688
- designType: "wireframe",
689
- featureId: featureId,
690
- screens: [
691
- {
692
- name: "create-course",
693
- path: "/courses/new",
694
- layout: "centered-form",
695
- components: [
696
- { type: "Card", contains: ["CardHeader", "CardContent"] },
697
- { type: "Form", fields: ["title", "description", "price"] },
698
- { type: "Button", variant: "primary", label: "Create Course" },
699
- ],
700
- userFlow: "Flow 1: Create a Course",
701
- acceptanceCriteria: [
702
- "User can create course with just title",
703
- "User sees loading state",
704
- "User sees success confirmation",
705
- ],
706
- responsive: {
707
- mobile: "single-column",
708
- tablet: "single-column",
709
- desktop: "centered-max-w-2xl",
710
- },
711
- },
712
- ],
713
- designSystem: "shadcn-ui",
714
- framework: "astro-react",
715
- brandGuidelines: org.properties.brandColors,
716
- },
717
- status: "draft",
718
- createdAt: Date.now(),
719
- updatedAt: Date.now(),
720
- });
721
-
722
- // 2. Create connection (design implements feature)
723
- await ctx.db.insert("connections", {
724
- fromThingId: wireframeId,
725
- toThingId: featureId,
726
- relationshipType: "part_of", // Use part_of instead of implements
727
- metadata: {
728
- stage: "5_design",
729
- completeness: 100,
730
- reviewed: false,
731
- },
732
- createdAt: Date.now(),
733
- });
734
-
735
- // 3. Log event
736
- await ctx.db.insert("events", {
737
- type: "content_event", // Use consolidated event type
738
- actorId: designAgentId,
739
- targetId: wireframeId,
740
- timestamp: Date.now(),
741
- metadata: {
742
- action: "created",
743
- contentType: "wireframe",
744
- featureId: featureId,
745
- screens: ["create-course", "edit-course", "delete-confirmation"],
746
- format: "structured-json",
747
- },
748
- });
749
-
750
- // 4. Link design patterns from knowledge base
751
- const relevantPatterns = await vectorSearch("knowledge", {
752
- query: "centered form layout for CRUD operations",
753
- filter: { labels: ["pattern:centered-form", "layout:single-column"] },
754
- });
755
-
756
- for (const pattern of relevantPatterns.slice(0, 3)) {
757
- await ctx.db.insert("thingKnowledge", {
758
- thingId: wireframeId,
759
- knowledgeId: pattern._id,
760
- role: "label", // This design uses these patterns
761
- metadata: { relevance: pattern.score },
762
- createdAt: Date.now(),
763
- });
764
- }
765
- ```
766
-
767
- **Example Implementation:**
768
-
769
- ```typescript
770
- // Design Agent Service (Effect.ts pattern)
771
- export class DesignAgentService extends Effect.Service<DesignAgentService>()(
772
- "DesignAgentService",
773
- {
774
- effect: Effect.gen(function* () {
775
- const db = yield* ConvexDatabase;
776
-
777
- return {
778
- createWireframes: (args: {
779
- featureId: Id<"things">;
780
- testId: Id<"things">;
781
- }) =>
782
- Effect.gen(function* () {
783
- // 1. Get feature thing (ontology dimension 3)
784
- const feature = yield* Effect.tryPromise(() =>
785
- db.get(args.featureId),
786
- );
787
- if (feature.type !== "feature") {
788
- return yield* Effect.fail({ _tag: "InvalidFeatureType" });
789
- }
790
-
791
- // 2. Get test thing (ontology dimension 3)
792
- const test = yield* Effect.tryPromise(() => db.get(args.testId));
793
- const userFlows = test.properties.userFlows;
794
- const acceptanceCriteria = test.properties.acceptanceCriteria;
795
-
796
- // 3. Get organization thing (ontology dimension 1)
797
- const org = yield* Effect.tryPromise(() =>
798
- db.get(feature.properties.organizationId),
799
- );
800
- const brandGuidelines = org.properties.brandColors;
801
-
802
- // 4. Get relevant design patterns from knowledge (ontology dimension 6)
803
- const patterns = yield* Effect.tryPromise(() =>
804
- db
805
- .query("knowledge")
806
- .withIndex("by_type", (q) => q.eq("knowledgeType", "chunk"))
807
- .filter((q) =>
808
- q.or(
809
- q.eq(q.field("labels"), "pattern:centered-form"),
810
- q.eq(q.field("labels"), "layout:single-column"),
811
- ),
812
- )
813
- .take(5),
814
- );
815
-
816
- // 5. Map flows to screens
817
- const screens = userFlows.map((flow) => ({
818
- name: flow.name,
819
- layout: determineLayout(flow),
820
- components: mapFlowToComponents(flow, acceptanceCriteria),
821
- userFlow: flow.goal,
822
- acceptanceCriteria: flow.criteria,
823
- }));
824
-
825
- // 6. Create wireframe thing (ontology dimension 3)
826
- const wireframeId = yield* Effect.tryPromise(() =>
827
- db.insert("things", {
828
- type: "design",
829
- name: `Wireframe: ${feature.name}`,
830
- properties: {
831
- designType: "wireframe",
832
- featureId: args.featureId,
833
- screens: screens,
834
- brandGuidelines: brandGuidelines,
835
- patternsUsed: patterns.map((p) => p._id),
836
- },
837
- status: "draft",
838
- createdAt: Date.now(),
839
- updatedAt: Date.now(),
840
- }),
841
- );
842
-
843
- // 7. Create connection (ontology dimension 4)
844
- yield* Effect.tryPromise(() =>
845
- db.insert("connections", {
846
- fromThingId: wireframeId,
847
- toThingId: args.featureId,
848
- relationshipType: "part_of",
849
- metadata: { stage: "5_design" },
850
- createdAt: Date.now(),
851
- }),
852
- );
853
-
854
- // 8. Log event (ontology dimension 5)
855
- yield* Effect.tryPromise(() =>
856
- db.insert("events", {
857
- type: "content_event",
858
- actorId: designAgentId,
859
- targetId: wireframeId,
860
- timestamp: Date.now(),
861
- metadata: {
862
- action: "created",
863
- contentType: "wireframe",
864
- featureId: args.featureId,
865
- screens: screens.map((s) => s.name),
866
- },
867
- }),
868
- );
869
-
870
- // 9. Link knowledge patterns (ontology dimension 6)
871
- for (const pattern of patterns) {
872
- yield* Effect.tryPromise(() =>
873
- db.insert("thingKnowledge", {
874
- thingId: wireframeId,
875
- knowledgeId: pattern._id,
876
- role: "label",
877
- metadata: { usageContext: "wireframe-creation" },
878
- createdAt: Date.now(),
879
- }),
880
- );
881
- }
882
-
883
- return { wireframeId, screens };
884
- }),
885
- };
886
- }),
887
- dependencies: [ConvexDatabase.Default],
888
- },
889
- ) {}
890
- ```
891
-
892
- ### 2. define_components
893
-
894
- **Purpose:** Specify React component structure, props, and state management patterns AFTER wireframes are created.
895
-
896
- **Workflow Position:** Stage 5 (design) - runs after create_wireframes completes.
897
-
898
- **Input:**
899
-
900
- - Wireframes (thing type: design, designType: "wireframe")
901
- - Feature specification (entity operations from feature thing)
902
- - shadcn/ui component library (50+ components)
903
-
904
- **Process:**
905
-
906
- 1. **Read wireframe thing:**
907
- - Extract screens and components
908
- - Identify reusable component patterns
909
- 2. **Define component hierarchy:**
910
- - Pages (Astro pages with SSR)
911
- - Features (React components with client:load)
912
- - UI (shadcn/ui base components)
913
- 3. **Specify props and TypeScript types:**
914
- - Extract entity IDs (Id<"things">)
915
- - Define callbacks (onSuccess, onCancel)
916
- 4. **Map Convex queries/mutations to component state:**
917
- - Queries: useQuery(api.entities.get)
918
- - Mutations: useMutation(api.entities.create)
919
- 5. **Define loading/error states:**
920
- - isLoading: boolean
921
- - error: string | null
922
- 6. **Document component usage:**
923
- - Import path
924
- - Example usage
925
- - Accessibility requirements
926
- 7. **Create component-definition thing:**
927
- - Insert into things table (type: "design", designType: "component-definition")
928
- - Create connection (part_of) to feature
929
- - Log event (content_event with action: "created", contentType: "component-definition")
930
-
931
- **Output (Ontology Operations):**
932
-
933
- ```typescript
934
- // 1. Create component-definition thing
935
- const componentId = await ctx.db.insert("things", {
936
- type: "design",
937
- name: "Component: CourseForm",
938
- properties: {
939
- designType: "component-definition",
940
- featureId: featureId,
941
- component: {
942
- name: "CourseForm",
943
- path: "src/components/features/courses/CourseForm.tsx",
944
- props: {
945
- courseId: "Id<'things'> | undefined",
946
- onSuccess: "(courseId: Id<'things'>) => void",
947
- onCancel: "() => void",
948
- },
949
- state: {
950
- queries: ["api.courses.get"],
951
- mutations: ["api.courses.create", "api.courses.update"],
952
- loading: "boolean",
953
- error: "string | null",
954
- },
955
- shadcnComponents: ["Card", "Button", "Input", "Label"],
956
- accessibility: {
957
- ariaLabels: ["Create course form"],
958
- keyboardNav: true,
959
- focusManagement: "auto-focus first input",
960
- },
961
- },
962
- },
963
- status: "active",
964
- createdAt: Date.now(),
965
- updatedAt: Date.now(),
966
- });
967
-
968
- // 2. Create connection (component part of feature)
969
- await ctx.db.insert("connections", {
970
- fromThingId: componentId,
971
- toThingId: featureId,
972
- relationshipType: "part_of",
973
- metadata: { stage: "5_design" },
974
- createdAt: Date.now(),
975
- });
976
-
977
- // 3. Log event
978
- await ctx.db.insert("events", {
979
- type: "content_event",
980
- actorId: designAgentId,
981
- targetId: componentId,
982
- timestamp: Date.now(),
983
- metadata: {
984
- action: "created",
985
- contentType: "component-definition",
986
- componentName: "CourseForm",
987
- featureId: featureId,
988
- },
989
- });
990
- ```
991
-
992
- ### 3. set_tokens
993
-
994
- **Purpose:** Define design tokens (colors, spacing, typography) from organization brand guidelines, ensuring WCAG accessibility.
995
-
996
- **Workflow Position:** Stage 5 (design) - can run in parallel with create_wireframes.
997
-
998
- **Input:**
999
-
1000
- - Organization brand guidelines (from organization thing)
1001
- - Tailwind v4 CSS-based configuration
1002
- - WCAG accessibility requirements (AA minimum)
1003
-
1004
- **Process:**
1005
-
1006
- 1. **Read organization thing (ontology dimension 1):**
1007
- - Get brandColors (primary, secondary, accent)
1008
- - Get typography preferences
1009
- - Get spacing system
1010
- 2. **Generate HSL color palette:**
1011
- - Convert brand colors to HSL format
1012
- - Generate variants (foreground, muted, destructive)
1013
- 3. **Define spacing scale:**
1014
- - Base unit: 4px (or org preference)
1015
- - Scale: [4, 8, 12, 16, 24, 32, 48, 64, 96, 128]
1016
- 4. **Define typography scale:**
1017
- - Modular scale 1.25x
1018
- - Weights: 400, 500, 600, 700
1019
- - Line heights: 1.25, 1.5, 1.625
1020
- 5. **Validate contrast ratios (WCAG AA):**
1021
- - Body text: ≥ 4.5:1
1022
- - Large text (≥18px): ≥ 3:1
1023
- 6. **Generate Tailwind v4 @theme configuration:**
1024
- - CSS variables with HSL values
1025
- - Dark mode overrides
1026
- 7. **Create design-tokens thing:**
1027
- - Insert into things table (type: "design", designType: "design-tokens")
1028
- - Create connection (configured_by) to organization
1029
- - Log event (content_event with action: "created", contentType: "design-tokens")
1030
- 8. **Store as knowledge chunk (ontology dimension 6):**
1031
- - Enable RAG for token system reuse
1032
- - Link to organization for context
1033
-
1034
- **Output (Ontology Operations):**
1035
-
1036
- ```typescript
1037
- // 1. Create design-tokens thing
1038
- const tokensId = await ctx.db.insert("things", {
1039
- type: "design",
1040
- name: "Design Tokens: ${org.name}",
1041
- properties: {
1042
- designType: "design-tokens",
1043
- organizationId: organizationId,
1044
- tokens: {
1045
- colors: {
1046
- background: "0 0% 100%",
1047
- foreground: "222.2 84% 4.9%",
1048
- primary: "221 83% 53%", // From org.properties.brandColors
1049
- "primary-foreground": "210 40% 98%",
1050
- // ... full palette
1051
- },
1052
- spacing: {
1053
- base: 4,
1054
- scale: [4, 8, 12, 16, 24, 32, 48, 64, 96, 128]
1055
- },
1056
- typography: {
1057
- fontFamily: { sans: "Inter, sans-serif" },
1058
- scale: { base: "1rem", lg: "1.125rem", xl: "1.25rem" },
1059
- weights: { normal: 400, medium: 500, semibold: 600, bold: 700 }
1060
- },
1061
- borderRadius: {
1062
- sm: "0.25rem", md: "0.5rem", lg: "0.75rem", full: "9999px"
1063
- }
1064
- },
1065
- accessibilityValidation: {
1066
- wcagLevel: "AA",
1067
- contrastRatios: {
1068
- "foreground on background": 16.4,
1069
- "primary on background": 4.5
1070
- },
1071
- issues: []
1072
- }
1073
- },
1074
- status: "active",
1075
- createdAt: Date.now(),
1076
- updatedAt: Date.now()
1077
- });
1078
-
1079
- // 2. Create connection (tokens configured by organization)
1080
- await ctx.db.insert("connections", {
1081
- fromThingId: tokensId,
1082
- toThingId: organizationId,
1083
- relationshipType: "created_by", // Use created_by instead of configured_by
1084
- metadata: { tokenVersion: "1.0.0" },
1085
- createdAt: Date.now()
1086
- });
1087
-
1088
- // 3. Log event
1089
- await ctx.db.insert("events", {
1090
- type: "content_event",
1091
- actorId: designAgentId,
1092
- targetId: tokensId,
1093
- timestamp: Date.now(),
1094
- metadata: {
1095
- action: "created",
1096
- contentType: "design-tokens",
1097
- organizationId: organizationId,
1098
- wcagCompliance: "AA",
1099
- contrastIssues: 0
1100
- }
1101
- });
1102
-
1103
- // 4. Store as knowledge chunk (for RAG)
1104
- const knowledgeId = await ctx.db.insert("knowledge", {
1105
- knowledgeType: "chunk",
1106
- text: `Design Token System: ${org.name}
1107
-
1108
- Brand Colors:
1109
- - Primary: hsl(221, 83%, 53%) - Blue
1110
- - Secondary: hsl(142, 76%, 36%) - Green
1111
- - Accent: hsl(48, 96%, 53%) - Yellow
1112
-
1113
- Spacing: 4px base unit
1114
- Typography: Inter font family
1115
- Border Radius: Modern rounded (8px)
1116
-
1117
- WCAG AA Compliant: All contrast ratios meet or exceed requirements.`,
1118
- embedding: [...],
1119
- embeddingModel: "text-embedding-3-large",
1120
- sourceThingId: tokensId,
1121
- labels: ["design-system", "tokens", `org:${org.slug}`],
1122
- metadata: {
1123
- organizationId: organizationId,
1124
- framework: "tailwind-v4"
1125
- },
1126
- createdAt: Date.now()
1127
- });
1128
-
1129
- // 5. Link knowledge to tokens thing
1130
- await ctx.db.insert("thingKnowledge", {
1131
- thingId: tokensId,
1132
- knowledgeId: knowledgeId,
1133
- role: "summary", // Junction role (ontology line 196)
1134
- metadata: { tokenVersion: "1.0.0" },
1135
- createdAt: Date.now()
1136
- });
1137
- ```
1138
-
1139
- ---
1140
-
1141
- ## Input
1142
-
1143
- **From Quality Agent (stage 4_tests):**
1144
-
1145
- - Feature specification (thing type: feature)
1146
- - Test definitions (thing type: test)
1147
- - User flows (what users must accomplish)
1148
- - Acceptance criteria (how we know it works)
1149
- - Accessibility requirements (WCAG AA minimum)
1150
-
1151
- **From Organization (ontology dimension 1):**
1152
-
1153
- - Brand guidelines (brandColors, typography, spacing)
1154
- - Design preferences (borderRadius, shadows)
1155
- - Logo and visual identity
1156
-
1157
- **From Knowledge Base (ontology dimension 6):**
1158
-
1159
- - Design patterns (layout patterns, component patterns)
1160
- - Previous designs (similar features, proven solutions)
1161
- - Accessibility guidelines (WCAG best practices)
1162
-
1163
- **From Workflow Events (ontology dimension 5):**
1164
-
1165
- - `quality_check_complete` event (tests defined, ready for design)
1166
- - `feature_assigned` event (design work assigned to this agent)
1167
- - `test_passed` event (validates design decisions)
1168
-
1169
- ---
1170
-
1171
- ## Output
1172
-
1173
- **Things Created (ontology dimension 3):**
1174
-
1175
- - Wireframe things (type: "design", designType: "wireframe")
1176
- - Component-definition things (type: "design", designType: "component-definition")
1177
- - Design-token things (type: "design", designType: "design-tokens")
1178
-
1179
- **Connections Created (ontology dimension 4):**
1180
-
1181
- - part_of: design → feature (design belongs to feature)
1182
- - created_by: design → design_agent (ownership)
1183
- - tested_by: test → design (test informs design)
1184
-
1185
- **Events Logged (ontology dimension 5):**
1186
-
1187
- - content_event (action: "created", contentType: "wireframe")
1188
- - content_event (action: "created", contentType: "component-definition")
1189
- - content_event (action: "created", contentType: "design-tokens")
1190
- - quality_check_complete (checkType: "accessibility")
1191
- - agent_completed (action: "design_complete")
1192
-
1193
- **Knowledge Built (ontology dimension 6):**
1194
-
1195
- - Design pattern chunks (reusable patterns for future work)
1196
- - Design token documentation (brand system knowledge)
1197
- - thingKnowledge junctions (link patterns to designs)
1198
-
1199
- ---
1200
-
1201
- ## Decision Framework
1202
-
1203
- ### Decision 1: What layout pattern fits this feature?
1204
-
1205
- **Question:** What's the primary user goal and content structure?
1206
-
1207
- **Process:**
1208
-
1209
- 1. Read feature thing (type, name, properties)
1210
- 2. Identify primary entity being displayed/edited (course, blog_post, user)
1211
- 3. Check user flows from test thing (create, list, detail, edit)
1212
- 4. Match to proven pattern from knowledge base
1213
-
1214
- **Patterns (stored in knowledge dimension):**
1215
-
1216
- - **Content-heavy (blog, docs):** 3-column grid [nav | content | meta]
1217
- - **Dashboard (analytics, admin):** Sidebar + main area with cards
1218
- - **Form-based (create/edit):** Centered single column with max-w-2xl
1219
- - **E-commerce (products):** Grid of cards with filters
1220
- - **Focus area (email, chat):** Central white panel with muted sidebars
1221
-
1222
- **Example:**
1223
-
1224
- ```typescript
1225
- // Query knowledge base for similar features
1226
- const similarFeatures = await vectorSearch("knowledge", {
1227
- query: feature.name, // "Course CRUD"
1228
- filter: { labels: ["pattern:layout", "use-case:crud"] },
1229
- });
1230
-
1231
- // Extract pattern from highest-scoring result
1232
- const recommendedPattern = similarFeatures[0].metadata.layoutPattern; // "centered-form"
1233
-
1234
- // Validate pattern matches user flows
1235
- if (userFlows.includes("create") || userFlows.includes("edit")) {
1236
- return "centered-form"; // CRUD operations use centered forms
1237
- } else if (userFlows.includes("list") || userFlows.includes("browse")) {
1238
- return "grid-of-cards"; // List views use card grids
1239
- }
1240
- ```
1241
-
1242
- ### Decision 2: What components does this need?
1243
-
1244
- **Question:** What shadcn/ui components enable the user flow?
1245
-
1246
- **Process:**
1247
-
1248
- 1. Read wireframe thing (screens array)
1249
- 2. For each screen, identify interactive elements
1250
- 3. Map elements to shadcn/ui components
1251
- 4. Validate components satisfy acceptance criteria
1252
-
1253
- **Mapping (stored as knowledge chunk):**
1254
-
1255
- - **Create/Edit forms:** Card, Button, Input, Label, Select, Textarea
1256
- - **Lists:** Card, Badge, Separator
1257
- - **Data tables:** Table, Pagination, Dropdown
1258
- - **Modals:** Dialog, AlertDialog (for destructive actions)
1259
- - **Navigation:** NavigationMenu, Tabs, Breadcrumb
1260
- - **Feedback:** Toast, Alert, Progress, Spinner
1261
-
1262
- **Example:**
1263
-
1264
- ```typescript
1265
- // User Flow: "Delete a Course"
1266
- // Acceptance Criterion: "Delete requires confirmation"
1267
-
1268
- // Query knowledge for "delete confirmation" pattern
1269
- const deletePattern = await db
1270
- .query("knowledge")
1271
- .withIndex("by_type", (q) => q.eq("knowledgeType", "chunk"))
1272
- .filter((q) => q.eq(q.field("labels"), "pattern:delete-confirmation"))
1273
- .first();
1274
-
1275
- // Pattern recommends: AlertDialog with destructive button
1276
- components: [
1277
- { type: "AlertDialog", usage: "Confirmation modal" },
1278
- { type: "Button", variant: "destructive", label: "Delete Course" },
1279
- { type: "Card", usage: "Course preview in modal" },
1280
- ];
1281
-
1282
- // Validate against acceptance criteria
1283
- const criterion = "Delete requires confirmation";
1284
- const componentSatisfies = components.some((c) => c.type === "AlertDialog"); // ✓ Pass
1285
- ```
1286
-
1287
- ### Decision 3: How does this design enable tests to pass?
1288
-
1289
- **Question:** Can I trace each acceptance criterion to a UI element?
1290
-
1291
- **Process:**
1292
-
1293
- 1. Read test thing (acceptanceCriteria array)
1294
- 2. For each criterion, identify corresponding UI element in wireframe
1295
- 3. If no element exists, add to design
1296
- 4. Validate all criteria are satisfied
1297
-
1298
- **Validation:**
1299
-
1300
- ```typescript
1301
- // Map acceptance criteria to UI elements
1302
- for (const criterion of test.properties.acceptanceCriteria) {
1303
- const matchingElement = wireframe.screens
1304
- .flatMap(s => s.components)
1305
- .find(c => criterion.includes(c.type.toLowerCase()));
1306
-
1307
- if (!matchingElement) {
1308
- // Criterion not satisfied - add missing element
1309
- console.warn(`Missing UI element for: ${criterion}`);
1310
- // Add to design
1311
- }
1312
- }
1313
-
1314
- // Example: "User sees success confirmation"
1315
- // Design Decision: Add Toast notification on success
1316
- {
1317
- component: "Toast",
1318
- trigger: "onSuccess callback from mutation",
1319
- message: "Course created successfully",
1320
- variant: "success",
1321
- duration: 3000
1322
- }
1323
- ```
1324
-
1325
- **Store decision as knowledge:**
1326
-
1327
- ```typescript
1328
- await ctx.db.insert("knowledge", {
1329
- knowledgeType: "chunk",
1330
- text: `Design Decision: Success Feedback via Toast
1331
-
1332
- Acceptance Criterion: "User sees success confirmation"
1333
-
1334
- Solution: Add Toast component triggered on successful mutation.
1335
-
1336
- Implementation:
1337
- - Component: Toast (shadcn/ui)
1338
- - Trigger: onSuccess callback from useMutation
1339
- - Message: "{Entity} {action} successfully"
1340
- - Duration: 3000ms`,
1341
- embedding: [...],
1342
- sourceThingId: designAgentId,
1343
- labels: ["decision:success-feedback", "pattern:toast", "criterion:confirmation"],
1344
- metadata: { frequency: "very-common" },
1345
- createdAt: Date.now()
1346
- });
1347
- ```
1348
-
1349
- ### Decision 4: Does this meet accessibility requirements?
1350
-
1351
- **Question:** Does design pass WCAG AA validation?
1352
-
1353
- **Checklist (stored as knowledge chunk):**
1354
-
1355
- - [ ] Color contrast ratio ≥ 4.5:1 for body text (WCAG AA)
1356
- - [ ] Color contrast ratio ≥ 3:1 for large text (≥18px)
1357
- - [ ] Keyboard navigation works (Tab, Enter, Escape)
1358
- - [ ] Focus states visible (outline or ring)
1359
- - [ ] ARIA labels on interactive elements
1360
- - [ ] Form labels associated with inputs
1361
- - [ ] Error messages announced to screen readers
1362
- - [ ] Loading states communicated
1363
-
1364
- **Example:**
1365
-
1366
- ```typescript
1367
- // Validate contrast ratios
1368
- const contrastRatios = {
1369
- "text-foreground on bg-background": calculateContrast(
1370
- tokens.colors.foreground,
1371
- tokens.colors.background,
1372
- ), // 16.4 - ✓ Pass
1373
- "text-muted-foreground on bg-background": calculateContrast(
1374
- tokens.colors["muted-foreground"],
1375
- tokens.colors.background,
1376
- ), // 5.2 - ✓ Pass
1377
- "text-primary on bg-card": calculateContrast(
1378
- tokens.colors.primary,
1379
- tokens.colors.card,
1380
- ), // 4.5 - ✓ Pass (exactly WCAG AA)
1381
- };
1382
-
1383
- // Log accessibility validation event
1384
- await ctx.db.insert("events", {
1385
- type: "quality_check_complete",
1386
- actorId: designAgentId,
1387
- targetId: tokensId,
1388
- timestamp: Date.now(),
1389
- metadata: {
1390
- checkType: "accessibility",
1391
- wcagLevel: "AA",
1392
- contrastRatios: contrastRatios,
1393
- keyboardNav: true,
1394
- ariaLabels: true,
1395
- issuesFound: [],
1396
- },
1397
- });
1398
- ```
1399
-
1400
- ---
1401
-
1402
- ## Key Behaviors
1403
-
1404
- ### 1. Design is NOT decoration
1405
-
1406
- - Every design decision must enable a user flow or test to pass
1407
- - Remove unnecessary visual elements (minimal yet sophisticated)
1408
- - Prioritize readability and usability over aesthetics
1409
- - **Ontology mapping:** Each design element traces back to acceptance criterion (test thing)
1410
-
1411
- ### 2. Design BEFORE implementation
1412
-
1413
- - Specialists should receive complete wireframes + component specs
1414
- - No "design as you go" - front-load design decisions
1415
- - Changes to design should trigger re-validation of tests
1416
- - **Ontology mapping:** Stage 5 (design) completes BEFORE stage 6 (implementation)
1417
-
1418
- ### 3. Accessibility is non-negotiable
1419
-
1420
- - WCAG AA compliance is the minimum
1421
- - Use semantic HTML (forms use `<form>`, buttons use `<button>`)
1422
- - Test with keyboard only (no mouse)
1423
- - Validate with screen reader simulation
1424
- - **Ontology mapping:** Log accessibility validation as quality_check_complete event
1425
-
1426
- ### 4. Brand consistency
1427
-
1428
- - Pull colors from organization settings (don't hard-code)
1429
- - Use organization's typography preferences
1430
- - Apply organization's border radius style (modern/sharp/soft)
1431
- - **Ontology mapping:** Query organization thing for brandColors, typography, spacing
1432
-
1433
- ### 5. Responsive by default
1434
-
1435
- - Mobile-first thinking (what's the smallest screen?)
1436
- - Test wireframes at 320px, 768px, 1024px, 1440px
1437
- - Use Tailwind responsive variants (sm:, md:, lg:, xl:)
1438
- - **Ontology mapping:** Store responsive strategy in wireframe properties
1439
-
1440
- ### 6. Build reusable knowledge
1441
-
1442
- - Store successful patterns as knowledge chunks
1443
- - Link patterns to designs via thingKnowledge junctions
1444
- - Enable future designs to learn from past work
1445
- - **Ontology mapping:** Every pattern becomes searchable via vector embeddings
1446
-
1447
- ### 7. Event-driven coordination
1448
-
1449
- - Watch for quality_check_complete event (stage 4 → stage 5 transition)
1450
- - Emit content_event when designs are created
1451
- - No manual handoffs - autonomous work pickup
1452
- - **Ontology mapping:** All coordination via events table (ontology dimension 5)
1453
-
1454
- ---
1455
-
1456
- ## Communication Patterns
1457
-
1458
- ### Event-Driven Coordination (Ontology Dimension 5)
1459
-
1460
- **Watches for:**
1461
-
1462
- - `quality_check_complete` → Begin design work (stage 4 complete)
1463
- - `test_passed` → Validates design decisions
1464
- - `feature_assigned` → New work to pick up
1465
-
1466
- **Emits:**
1467
-
1468
- - `agent_executed` → Design work started
1469
- - `content_event` (contentType: "wireframe") → Wireframes ready for review
1470
- - `content_event` (contentType: "component-definition") → Component specs ready
1471
- - `content_event` (contentType: "design-tokens") → Token system configured
1472
- - `quality_check_complete` (checkType: "accessibility") → WCAG validated
1473
- - `agent_completed` → Design phase complete
1474
-
1475
- **No Handoffs:**
1476
- Design agent watches events table autonomously. When `quality_check_complete` appears with `testsCreated: true`, design agent picks up work automatically.
1477
-
1478
- **Query Pattern:**
1479
-
1480
- ```typescript
1481
- // Watch for quality_check_complete events
1482
- const readyForDesign = await ctx.db
1483
- .query("events")
1484
- .withIndex("type_time", (q) => q.eq("type", "quality_check_complete"))
1485
- .filter((q) =>
1486
- q.and(
1487
- q.eq(q.field("metadata.testsCreated"), true),
1488
- q.eq(q.field("metadata.status"), "approved"),
1489
- ),
1490
- )
1491
- .order("desc")
1492
- .take(10);
1493
-
1494
- // For each event, check if design already started
1495
- for (const event of readyForDesign) {
1496
- const existingDesign = await ctx.db
1497
- .query("connections")
1498
- .withIndex("to_type", (q) =>
1499
- q.eq("toThingId", event.targetId).eq("relationshipType", "part_of"),
1500
- )
1501
- .filter((q) => q.eq(q.field("metadata.stage"), "5_design"))
1502
- .first();
1503
-
1504
- if (!existingDesign) {
1505
- // Start design work
1506
- await createWireframes({ featureId: event.targetId });
1507
- }
1508
- }
1509
- ```
1510
-
1511
- ---
1512
-
1513
- ## Examples
1514
-
1515
- ### Example 1: Create Wireframes for Course CRUD (6-Dimension Operations)
1516
-
1517
- **Input:**
1518
-
1519
- ```typescript
1520
- // Feature thing
1521
- {
1522
- _id: "feature_abc123",
1523
- type: "feature",
1524
- name: "2-1-course-crud",
1525
- properties: {
1526
- planId: "2-course-platform",
1527
- organizationId: "org_xyz789",
1528
- description: "CRUD operations for courses",
1529
- entities: ["course"],
1530
- operations: ["create", "read", "update", "delete"]
1531
- },
1532
- status: "active",
1533
- createdAt: Date.now(),
1534
- updatedAt: Date.now()
1535
- }
1536
-
1537
- // Test thing (from quality agent)
1538
- {
1539
- _id: "test_def456",
1540
- type: "test",
1541
- name: "Test: Course CRUD",
1542
- properties: {
1543
- featureId: "feature_abc123",
1544
- userFlows: [
1545
- {
1546
- name: "create-course",
1547
- goal: "Create a Course",
1548
- steps: ["Navigate to /courses/new", "Fill title field", "Click Create", "See success"],
1549
- timing: "< 10 seconds"
1550
- },
1551
- {
1552
- name: "update-course",
1553
- goal: "Update a Course",
1554
- steps: ["Navigate to /courses/[id]/edit", "Modify fields", "Click Save", "See success"],
1555
- timing: "< 5 seconds"
1556
- },
1557
- {
1558
- name: "delete-course",
1559
- goal: "Delete a Course",
1560
- steps: ["Click Delete button", "See confirmation modal", "Click Confirm", "See success"],
1561
- timing: "< 3 seconds"
1562
- }
1563
- ],
1564
- acceptanceCriteria: [
1565
- "User can create course with just title",
1566
- "User sees loading state during save",
1567
- "Delete requires confirmation modal",
1568
- "Form validates before submission",
1569
- "Success message appears after each operation"
1570
- ]
1571
- },
1572
- status: "active",
1573
- createdAt: Date.now(),
1574
- updatedAt: Date.now()
1575
- }
1576
-
1577
- // Organization thing
1578
- {
1579
- _id: "org_xyz789",
1580
- type: "organization",
1581
- name: "Fitness Academy",
1582
- properties: {
1583
- slug: "fitness-academy",
1584
- brandColors: {
1585
- primary: "221 83% 53%", // Blue
1586
- secondary: "142 76% 36%", // Green
1587
- accent: "48 96% 53%" // Yellow
1588
- },
1589
- typography: {
1590
- headingFont: "Inter",
1591
- bodyFont: "Inter"
1592
- },
1593
- borderRadius: "modern-rounded"
1594
- },
1595
- status: "active",
1596
- createdAt: Date.now(),
1597
- updatedAt: Date.now()
1598
- }
1599
- ```
1600
-
1601
- **Process (6-Dimension Operations):**
1602
-
1603
- ```typescript
1604
- // 1. THINGS: Get feature, test, organization
1605
- const feature = await ctx.db.get("feature_abc123");
1606
- const test = await ctx.db.get("test_def456");
1607
- const org = await ctx.db.get("org_xyz789");
1608
-
1609
- // 2. KNOWLEDGE: Query design patterns
1610
- const patterns = await ctx.db
1611
- .query("knowledge")
1612
- .withIndex("by_type", (q) => q.eq("knowledgeType", "chunk"))
1613
- .filter((q) =>
1614
- q.or(
1615
- q.eq(q.field("labels"), "pattern:centered-form"),
1616
- q.eq(q.field("labels"), "use-case:crud"),
1617
- ),
1618
- )
1619
- .take(5);
1620
-
1621
- // 3. Map user flows to screens
1622
- const screens = test.properties.userFlows.map((flow) => ({
1623
- name: flow.name,
1624
- path:
1625
- flow.name === "create-course"
1626
- ? "/courses/new"
1627
- : `/courses/[id]/${flow.name.split("-")[1]}`,
1628
- layout: "centered-form",
1629
- components: [
1630
- { type: "Card", contains: ["CardHeader", "CardContent"] },
1631
- { type: "Form", fields: ["title", "description", "price"] },
1632
- {
1633
- type: "Button",
1634
- variant: "primary",
1635
- label: flow.name.includes("create") ? "Create" : "Save",
1636
- },
1637
- ],
1638
- userFlow: flow.goal,
1639
- acceptanceCriteria: test.properties.acceptanceCriteria.filter((c) =>
1640
- c.toLowerCase().includes(flow.name.split("-")[0]),
1641
- ),
1642
- responsive: {
1643
- mobile: "single-column p-4",
1644
- tablet: "max-w-2xl mx-auto p-6",
1645
- desktop: "max-w-2xl mx-auto p-8",
1646
- },
1647
- }));
1648
-
1649
- // 4. THINGS: Create wireframe thing
1650
- const wireframeId = await ctx.db.insert("things", {
1651
- type: "design",
1652
- name: "Wireframe: Course CRUD",
1653
- properties: {
1654
- designType: "wireframe",
1655
- featureId: "feature_abc123",
1656
- organizationId: "org_xyz789",
1657
- screens: screens,
1658
- brandGuidelines: org.properties.brandColors,
1659
- patternsUsed: patterns.map((p) => p._id),
1660
- },
1661
- status: "draft",
1662
- createdAt: Date.now(),
1663
- updatedAt: Date.now(),
1664
- });
1665
-
1666
- // 5. CONNECTIONS: Link wireframe to feature
1667
- await ctx.db.insert("connections", {
1668
- fromThingId: wireframeId,
1669
- toThingId: "feature_abc123",
1670
- relationshipType: "part_of",
1671
- metadata: {
1672
- stage: "5_design",
1673
- completeness: 100,
1674
- reviewed: false,
1675
- },
1676
- createdAt: Date.now(),
1677
- });
1678
-
1679
- // 6. CONNECTIONS: Link wireframe to test (design informed by tests)
1680
- await ctx.db.insert("connections", {
1681
- fromThingId: "test_def456",
1682
- toThingId: wireframeId,
1683
- relationshipType: "tested_by",
1684
- metadata: {
1685
- testsCovered: test.properties.userFlows.length,
1686
- },
1687
- createdAt: Date.now(),
1688
- });
1689
-
1690
- // 7. EVENTS: Log wireframe creation
1691
- await ctx.db.insert("events", {
1692
- type: "content_event",
1693
- actorId: "design_agent_001",
1694
- targetId: wireframeId,
1695
- timestamp: Date.now(),
1696
- metadata: {
1697
- action: "created",
1698
- contentType: "wireframe",
1699
- featureId: "feature_abc123",
1700
- screens: screens.map((s) => s.name),
1701
- format: "structured-json",
1702
- },
1703
- });
1704
-
1705
- // 8. KNOWLEDGE: Link patterns used to wireframe
1706
- for (const pattern of patterns) {
1707
- await ctx.db.insert("thingKnowledge", {
1708
- thingId: wireframeId,
1709
- knowledgeId: pattern._id,
1710
- role: "label",
1711
- metadata: {
1712
- usageContext: "wireframe-creation",
1713
- relevance: pattern.metadata.frequency,
1714
- },
1715
- createdAt: Date.now(),
1716
- });
1717
- }
1718
-
1719
- // 9. EVENTS: Log agent completion
1720
- await ctx.db.insert("events", {
1721
- type: "agent_completed",
1722
- actorId: "design_agent_001",
1723
- targetId: wireframeId,
1724
- timestamp: Date.now(),
1725
- metadata: {
1726
- action: "create_wireframes",
1727
- duration: 1200,
1728
- success: true,
1729
- screensCreated: screens.length,
1730
- },
1731
- });
1732
- ```
1733
-
1734
- **Output (6-Dimension Summary):**
1735
-
1736
- - **THINGS:** 1 wireframe thing created
1737
- - **CONNECTIONS:** 2 connections created (part_of feature, tested_by test)
1738
- - **EVENTS:** 2 events logged (content_event, agent_completed)
1739
- - **KNOWLEDGE:** 5 patterns linked via thingKnowledge junctions
1740
-
1741
- ### Example 2: Set Design Tokens from Organization (Multi-Tenant)
1742
-
1743
- **Input:**
1744
-
1745
- ```typescript
1746
- // Organization thing
1747
- {
1748
- _id: "org_xyz789",
1749
- type: "organization",
1750
- name: "Fitness Academy",
1751
- properties: {
1752
- slug: "fitness-academy",
1753
- brandColors: {
1754
- primary: "221 83% 53%", // Blue
1755
- secondary: "142 76% 36%", // Green
1756
- accent: "48 96% 53%" // Yellow
1757
- },
1758
- typography: {
1759
- headingFont: "Inter",
1760
- bodyFont: "Inter"
1761
- },
1762
- borderRadius: "modern-rounded",
1763
- spacing: { base: 4 }
1764
- },
1765
- status: "active",
1766
- createdAt: Date.now(),
1767
- updatedAt: Date.now()
1768
- }
1769
- ```
1770
-
1771
- **Process (6-Dimension Operations):**
1772
-
1773
- ```typescript
1774
- // 1. THINGS: Get organization
1775
- const org = await ctx.db.get("org_xyz789");
1776
-
1777
- // 2. Generate token system
1778
- const tokens = {
1779
- colors: {
1780
- background: "0 0% 100%",
1781
- foreground: "222.2 84% 4.9%",
1782
- primary: org.properties.brandColors.primary,
1783
- "primary-foreground": "210 40% 98%",
1784
- secondary: org.properties.brandColors.secondary,
1785
- "secondary-foreground": "210 40% 98%",
1786
- accent: org.properties.brandColors.accent,
1787
- "accent-foreground": "222.2 84% 4.9%",
1788
- // ... full palette
1789
- },
1790
- spacing: {
1791
- base: org.properties.spacing.base,
1792
- scale: [4, 8, 12, 16, 24, 32, 48, 64, 96, 128]
1793
- },
1794
- typography: {
1795
- fontFamily: {
1796
- sans: `${org.properties.typography.bodyFont}, ui-sans-serif, sans-serif`
1797
- }
1798
- }
1799
- };
1800
-
1801
- // 3. Validate accessibility (WCAG AA)
1802
- const contrastRatios = {
1803
- "foreground on background": calculateContrast(
1804
- tokens.colors.foreground,
1805
- tokens.colors.background
1806
- ), // Must be ≥ 4.5:1
1807
- "primary on background": calculateContrast(
1808
- tokens.colors.primary,
1809
- tokens.colors.background
1810
- ) // Must be ≥ 4.5:1
1811
- };
1812
-
1813
- const wcagCompliant = Object.values(contrastRatios).every(r => r >= 4.5);
1814
-
1815
- // 4. THINGS: Create design-tokens thing
1816
- const tokensId = await ctx.db.insert("things", {
1817
- type: "design",
1818
- name: `Design Tokens: ${org.properties.name}`,
1819
- properties: {
1820
- designType: "design-tokens",
1821
- organizationId: org._id,
1822
- tokens: tokens,
1823
- accessibilityValidation: {
1824
- wcagLevel: wcagCompliant ? "AA" : "FAIL",
1825
- contrastRatios: contrastRatios,
1826
- issues: wcagCompliant ? [] : ["Low contrast ratios detected"]
1827
- },
1828
- tailwindConfig: generateTailwindConfig(tokens)
1829
- },
1830
- status: wcagCompliant ? "active" : "draft",
1831
- createdAt: Date.now(),
1832
- updatedAt: Date.now()
1833
- });
1834
-
1835
- // 5. CONNECTIONS: Link tokens to organization
1836
- await ctx.db.insert("connections", {
1837
- fromThingId: tokensId,
1838
- toThingId: org._id,
1839
- relationshipType: "created_by",
1840
- metadata: {
1841
- tokenVersion: "1.0.0",
1842
- wcagCompliant: wcagCompliant
1843
- },
1844
- createdAt: Date.now()
1845
- });
1846
-
1847
- // 6. EVENTS: Log token creation
1848
- await ctx.db.insert("events", {
1849
- type: "content_event",
1850
- actorId: "design_agent_001",
1851
- targetId: tokensId,
1852
- timestamp: Date.now(),
1853
- metadata: {
1854
- action: "created",
1855
- contentType: "design-tokens",
1856
- organizationId: org._id,
1857
- wcagCompliance: wcagCompliant ? "AA" : "FAIL",
1858
- contrastIssues: wcagCompliant ? 0 : contrastRatios.length
1859
- }
1860
- });
1861
-
1862
- // 7. KNOWLEDGE: Store token system as chunk
1863
- const knowledgeId = await ctx.db.insert("knowledge", {
1864
- knowledgeType: "chunk",
1865
- text: `Design Token System: ${org.properties.name}
1866
-
1867
- Brand Colors:
1868
- - Primary: hsl(${org.properties.brandColors.primary})
1869
- - Secondary: hsl(${org.properties.brandColors.secondary})
1870
- - Accent: hsl(${org.properties.brandColors.accent})
1871
-
1872
- Typography: ${org.properties.typography.bodyFont}
1873
- Spacing: ${org.properties.spacing.base}px base unit
1874
- Border Radius: ${org.properties.borderRadius}
1875
-
1876
- WCAG AA Compliant: ${wcagCompliant ? 'Yes' : 'No'}`,
1877
- embedding: [...],
1878
- embeddingModel: "text-embedding-3-large",
1879
- sourceThingId: tokensId,
1880
- labels: [
1881
- "design-system",
1882
- "tokens",
1883
- `org:${org.properties.slug}`,
1884
- `wcag:${wcagCompliant ? 'AA' : 'FAIL'}`
1885
- ],
1886
- metadata: {
1887
- organizationId: org._id,
1888
- framework: "tailwind-v4",
1889
- wcagCompliant: wcagCompliant
1890
- },
1891
- createdAt: Date.now()
1892
- });
1893
-
1894
- // 8. KNOWLEDGE: Link knowledge to tokens thing
1895
- await ctx.db.insert("thingKnowledge", {
1896
- thingId: tokensId,
1897
- knowledgeId: knowledgeId,
1898
- role: "summary",
1899
- metadata: {
1900
- tokenVersion: "1.0.0",
1901
- generatedAt: Date.now()
1902
- },
1903
- createdAt: Date.now()
1904
- });
1905
-
1906
- // 9. EVENTS: Log accessibility validation
1907
- await ctx.db.insert("events", {
1908
- type: "quality_check_complete",
1909
- actorId: "design_agent_001",
1910
- targetId: tokensId,
1911
- timestamp: Date.now(),
1912
- metadata: {
1913
- checkType: "accessibility",
1914
- wcagLevel: wcagCompliant ? "AA" : "FAIL",
1915
- contrastRatios: contrastRatios,
1916
- issuesFound: wcagCompliant ? [] : ["Low contrast"]
1917
- }
1918
- });
1919
- ```
1920
-
1921
- **Output (6-Dimension Summary):**
1922
-
1923
- - **ORGANIZATIONS:** Token system scoped to organization (multi-tenant)
1924
- - **THINGS:** 1 design-tokens thing created
1925
- - **CONNECTIONS:** 1 connection created (created_by organization)
1926
- - **EVENTS:** 2 events logged (content_event, quality_check_complete)
1927
- - **KNOWLEDGE:** 1 chunk created + 1 thingKnowledge junction
1928
-
1929
- **Multi-Tenant Benefit:**
1930
-
1931
- - Organization A has blue tokens
1932
- - Organization B has green tokens
1933
- - Same Design Agent serves both (queries org.\_id for brand settings)
1934
- - Each organization's designs are isolated
1935
-
1936
- ---
1937
-
1938
- ## Common Mistakes to Avoid
1939
-
1940
- ### Mistake 1: Designing without understanding tests
1941
-
1942
- ❌ **Wrong:** Create beautiful wireframes without checking acceptance criteria
1943
- ✅ **Right:** Map every acceptance criterion to a UI element in the wireframe
1944
- **Ontology:** Query test thing BEFORE creating wireframe thing
1945
-
1946
- ### Mistake 2: Over-designing
1947
-
1948
- ❌ **Wrong:** Add complex animations, custom illustrations, unique layouts for every page
1949
- ✅ **Right:** Use proven patterns from knowledge base, shadcn/ui components, minimal custom styling
1950
- **Ontology:** Query knowledge dimension for reusable patterns
1951
-
1952
- ### Mistake 3: Ignoring accessibility
1953
-
1954
- ❌ **Wrong:** Use low-contrast colors because they look modern
1955
- ✅ **Right:** Validate all color pairs meet WCAG AA (4.5:1 body, 3:1 large text)
1956
- **Ontology:** Log quality_check_complete event with accessibility validation
1957
-
1958
- ### Mistake 4: Hard-coding brand values
1959
-
1960
- ❌ **Wrong:** Set primary color to "blue-500" in wireframe
1961
- ✅ **Right:** Reference organization's brand settings, generate tokens dynamically
1962
- **Ontology:** Query organization thing for brandColors
1963
-
1964
- ### Mistake 5: Skipping responsive thinking
1965
-
1966
- ❌ **Wrong:** Design only for desktop (1440px)
1967
- ✅ **Right:** Consider mobile (320px), tablet (768px), desktop (1024px+)
1968
- **Ontology:** Store responsive strategy in wireframe properties
1969
-
1970
- ### Mistake 6: Not defining loading states
1971
-
1972
- ❌ **Wrong:** Show form with just submit button
1973
- ✅ **Right:** Define loading spinner on button, disabled state, skeleton for data loading
1974
- **Ontology:** Include loading/error states in component-definition thing
1975
-
1976
- ### Mistake 7: Vague component specs
1977
-
1978
- ❌ **Wrong:** "User sees a form"
1979
- ✅ **Right:** "Card > CardContent > Form > [Input (title), Textarea (description), Button (submit)]"
1980
- **Ontology:** Store precise component hierarchy in properties.component.children
1981
-
1982
- ### Mistake 8: Breaking ontology isolation
1983
-
1984
- ❌ **Wrong:** Create design for Organization A that references Organization B's tokens
1985
- ✅ **Right:** Always scope designs to organizationId, query org-specific settings
1986
- **Ontology:** Multi-tenant isolation via organizations dimension
1987
-
1988
- ---
1989
-
1990
- ## Success Criteria
1991
-
1992
- **Design Agent is successful when:**
1993
-
1994
- - [ ] Every user flow has a corresponding wireframe (mapped to test thing)
1995
- - [ ] Every acceptance criterion is satisfied by a UI element (traceable in properties)
1996
- - [ ] All designs meet WCAG AA accessibility (logged as quality_check_complete)
1997
- - [ ] Component specifications are implementable without ambiguity (clear props/state)
1998
- - [ ] Design tokens are generated from organization brand settings (multi-tenant)
1999
- - [ ] Specialists can implement without additional design decisions (complete specs)
2000
- - [ ] Tests pass when designs are implemented correctly (test-driven design)
2001
- - [ ] All work logged as events (complete audit trail)
2002
- - [ ] Design patterns stored as knowledge chunks (reusable for future)
2003
- - [ ] Designs scoped to organization (multi-tenant isolation)
2004
-
2005
- **Measurement (via events dimension):**
2006
-
2007
- - Time from `quality_check_complete` to `content_event` (wireframe): < 5 minutes
2008
- - Accessibility issues found: 0 (validated before completion)
2009
- - Specialist questions about design: < 2 per feature (designs should be clear)
2010
- - Test pass rate after implementation: > 90% (designs enable tests to pass)
2011
- - Pattern reuse rate: > 50% (knowledge base reduces reinvention)
2012
-
2013
- **Queries for Metrics:**
2014
-
2015
- ```typescript
2016
- // Time from quality check to wireframe creation
2017
- const qualityEvent = await ctx.db
2018
- .query("events")
2019
- .withIndex("type_time", (q) => q.eq("type", "quality_check_complete"))
2020
- .filter((q) => q.eq(q.field("targetId"), featureId))
2021
- .first();
2022
-
2023
- const wireframeEvent = await ctx.db
2024
- .query("events")
2025
- .withIndex("type_time", (q) => q.eq("type", "content_event"))
2026
- .filter((q) =>
2027
- q.and(
2028
- q.eq(q.field("metadata.featureId"), featureId),
2029
- q.eq(q.field("metadata.contentType"), "wireframe"),
2030
- ),
2031
- )
2032
- .first();
2033
-
2034
- const timeDiff = wireframeEvent.timestamp - qualityEvent.timestamp; // Should be < 300000ms (5 min)
2035
- ```
2036
-
2037
- ---
2038
-
2039
- ## Multi-Tenant Scoping (Organizations Dimension)
2040
-
2041
- **Organization Isolation:**
2042
- Every design is scoped to an organization. Brand guidelines, color tokens, and design preferences are organization-specific.
2043
-
2044
- ```typescript
2045
- // Query: Get organization's design tokens
2046
- const tokens = await ctx.db
2047
- .query("things")
2048
- .withIndex("by_type", (q) => q.eq("type", "design"))
2049
- .filter((q) =>
2050
- q.and(
2051
- q.eq(q.field("properties.designType"), "design-tokens"),
2052
- q.eq(q.field("properties.organizationId"), organizationId),
2053
- ),
2054
- )
2055
- .first();
2056
-
2057
- // Design agent MUST use these tokens for all features in this org
2058
- ```
2059
-
2060
- **Benefit:**
2061
-
2062
- - Organization A can have blue primary color
2063
- - Organization B can have green primary color
2064
- - Same Design Agent serves both, pulling correct tokens per org
2065
- - Complete data isolation (ORGANIZATIONS dimension)
2066
-
2067
- **Query Pattern:**
2068
-
2069
- ```typescript
2070
- // Get feature's organization
2071
- const feature = await ctx.db.get(featureId);
2072
- const orgId = feature.properties.organizationId;
2073
-
2074
- // Get organization's brand settings
2075
- const org = await ctx.db.get(orgId);
2076
- const brandColors = org.properties.brandColors;
2077
-
2078
- // Use org-specific settings in design
2079
- const wireframe = {
2080
- brandColors: brandColors, // NOT hard-coded colors
2081
- // ...
2082
- };
2083
- ```
2084
-
2085
- ---
2086
-
2087
- ## Integration with Other Agents
2088
-
2089
- ### Quality Agent (Stage 4 → Stage 5)
2090
-
2091
- **Connection:** Quality agent completes tests → Design agent creates wireframes
2092
-
2093
- **Event Flow:**
2094
-
2095
- 1. Quality agent emits `quality_check_complete` (testsCreated: true)
2096
- 2. Design agent watches for this event
2097
- 3. Design agent reads test thing (userFlows, acceptanceCriteria)
2098
- 4. Design agent creates wireframes that satisfy criteria
2099
- 5. Design agent emits `content_event` (wireframe created)
2100
-
2101
- **Ontology Operations:**
2102
-
2103
- - Query: events.by_type("quality_check_complete")
2104
- - Read: test thing (ontology dimension 3)
2105
- - Create: wireframe thing (ontology dimension 3)
2106
- - Log: content_event (ontology dimension 5)
2107
-
2108
- ### Frontend Specialist (Stage 5 → Stage 6)
2109
-
2110
- **Connection:** Design agent completes wireframes → Frontend specialist implements
2111
-
2112
- **Event Flow:**
2113
-
2114
- 1. Design agent emits `agent_completed` (design_complete)
2115
- 2. Frontend specialist watches for this event
2116
- 3. Frontend specialist reads wireframe thing (screens, components)
2117
- 4. Frontend specialist implements React components
2118
- 5. Frontend specialist emits `implementation_complete`
2119
-
2120
- **Ontology Operations:**
2121
-
2122
- - Query: events.by_type("agent_completed")
2123
- - Read: wireframe thing, component-definition thing
2124
- - Create: React components (not in ontology yet - future)
2125
- - Log: task_completed (ontology dimension 5)
2126
-
2127
- ### Problem Solver Agent (Test Failures)
2128
-
2129
- **Connection:** Tests fail due to design issues → Problem solver analyzes → Design agent fixes
2130
-
2131
- **Event Flow:**
2132
-
2133
- 1. Quality agent emits `test_failed` (design-related failure)
2134
- 2. Problem solver agent analyzes
2135
- 3. Problem solver delegates fix to design agent
2136
- 4. Design agent updates wireframe thing (new version)
2137
- 5. Design agent emits `content_event` (action: "updated")
2138
-
2139
- **Ontology Operations:**
2140
-
2141
- - Query: events.by_type("test_failed")
2142
- - Update: wireframe thing (status: "draft" → "active")
2143
- - Create: knowledge chunk (lesson learned)
2144
- - Log: content_event (ontology dimension 5)
2145
-
2146
- ---
2147
-
2148
- ## Workflow Integration (6-Phase Process)
2149
-
2150
- Design Agent operates in **Phase 5: DESIGN** (ontology line 1042).
2151
-
2152
- ### Phase 4 → Phase 5 Transition
2153
-
2154
- **Trigger:** `quality_check_complete` event with `testsCreated: true`
2155
-
2156
- **Process:**
2157
-
2158
- 1. Design agent watches events table
2159
- 2. Finds `quality_check_complete` for feature
2160
- 3. Checks if design already exists (query connections)
2161
- 4. If not, starts design work (create_wireframes)
2162
-
2163
- **Ontology Operations:**
2164
-
2165
- ```typescript
2166
- // Watch for phase 4 completion
2167
- const readyForDesign = await ctx.db
2168
- .query("events")
2169
- .withIndex("type_time", (q) => q.eq("type", "quality_check_complete"))
2170
- .filter((q) =>
2171
- q.and(
2172
- q.eq(q.field("metadata.testsCreated"), true),
2173
- q.eq(q.field("metadata.status"), "approved"),
2174
- ),
2175
- )
2176
- .order("desc")
2177
- .take(10);
2178
-
2179
- // Check if design started
2180
- for (const event of readyForDesign) {
2181
- const existingDesign = await ctx.db
2182
- .query("connections")
2183
- .withIndex("to_type", (q) =>
2184
- q.eq("toThingId", event.targetId).eq("relationshipType", "part_of"),
2185
- )
2186
- .filter((q) => q.eq(q.field("metadata.stage"), "5_design"))
2187
- .first();
2188
-
2189
- if (!existingDesign) {
2190
- // Start design work (phase 5)
2191
- await createWireframes({ featureId: event.targetId });
2192
- }
2193
- }
2194
- ```
2195
-
2196
- ### Phase 5 → Phase 6 Transition
2197
-
2198
- **Trigger:** Design agent emits `agent_completed` event
2199
-
2200
- **Process:**
2201
-
2202
- 1. Design agent completes all design work
2203
- 2. Emits `agent_completed` (action: "design_complete")
2204
- 3. Frontend specialist watches for this event
2205
- 4. Frontend specialist starts implementation (phase 6)
2206
-
2207
- **Ontology Operations:**
2208
-
2209
- ```typescript
2210
- // Design complete - signal phase 6
2211
- await ctx.db.insert("events", {
2212
- type: "agent_completed",
2213
- actorId: designAgentId,
2214
- targetId: wireframeId,
2215
- timestamp: Date.now(),
2216
- metadata: {
2217
- action: "design_complete",
2218
- featureId: featureId,
2219
- stage: "5_design",
2220
- nextStage: "6_implementation",
2221
- outputs: {
2222
- wireframes: [wireframeId],
2223
- components: [componentId],
2224
- tokens: [tokensId],
2225
- },
2226
- },
2227
- });
2228
-
2229
- // Frontend specialist watches and picks up
2230
- const designComplete = await ctx.db
2231
- .query("events")
2232
- .withIndex("type_time", (q) => q.eq("type", "agent_completed"))
2233
- .filter((q) =>
2234
- q.and(
2235
- q.eq(q.field("metadata.action"), "design_complete"),
2236
- q.eq(q.field("metadata.stage"), "5_design"),
2237
- ),
2238
- )
2239
- .order("desc")
2240
- .take(10);
2241
- ```
2242
-
2243
- ---
2244
-
2245
- ## Context Budget Management (2,000 Tokens)
2246
-
2247
- Design Agent has a **2,000 token context budget** (ontology line 1064).
2248
-
2249
- **Context Allocation:**
2250
-
2251
- - **500 tokens:** Feature specification (from feature thing)
2252
- - **800 tokens:** Test definitions (from test thing - user flows + acceptance criteria)
2253
- - **300 tokens:** Organization brand guidelines (from organization thing)
2254
- - **400 tokens:** Design patterns (from knowledge dimension - top 3-5 relevant patterns)
2255
-
2256
- **Context Optimization:**
2257
-
2258
- ```typescript
2259
- // 1. Load minimal feature data
2260
- const feature = await ctx.db.get(featureId);
2261
- const featureContext = {
2262
- name: feature.name,
2263
- entities: feature.properties.entities,
2264
- operations: feature.properties.operations,
2265
- }; // ~100 tokens
2266
-
2267
- // 2. Load test definitions
2268
- const test = await ctx.db.get(testId);
2269
- const testContext = {
2270
- userFlows: test.properties.userFlows.map((f) => ({
2271
- name: f.name,
2272
- goal: f.goal,
2273
- steps: f.steps,
2274
- })),
2275
- acceptanceCriteria: test.properties.acceptanceCriteria,
2276
- }; // ~600 tokens
2277
-
2278
- // 3. Load organization brand (minimal)
2279
- const org = await ctx.db.get(organizationId);
2280
- const orgContext = {
2281
- brandColors: org.properties.brandColors,
2282
- typography: org.properties.typography,
2283
- spacing: org.properties.spacing,
2284
- }; // ~150 tokens
2285
-
2286
- // 4. Load top design patterns (vector search)
2287
- const patterns = await vectorSearch("knowledge", {
2288
- query: feature.name,
2289
- limit: 3,
2290
- filter: { labels: ["pattern:layout", "pattern:component"] },
2291
- }); // ~400 tokens (3 patterns × ~130 tokens each)
2292
-
2293
- // Total: ~1,250 tokens (within 2,000 budget)
2294
- ```
2295
-
2296
- **Why 2,000 Tokens is Enough:**
2297
-
2298
- - Design decisions are **visual and structural**, not code-heavy
2299
- - Patterns are **reusable templates**, not full implementations
2300
- - Most context comes from **tests** (what needs to be designed)
2301
- - **Knowledge base** provides proven patterns (no need to think from scratch)
2302
-
2303
- ---
2304
-
2305
- **Design Agent: Translate requirements into visual interfaces that enable tests to pass. Fully integrated with the 6-dimension ontology. Accessibility and brand compliance are non-negotiable. Minimal yet sophisticated. Every design decision is traceable, searchable, and reusable.**