oneie 3.7.0 → 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 (1132) hide show
  1. package/README.md +9 -9
  2. package/dist/commands/agent.d.ts +2 -0
  3. package/dist/commands/agent.d.ts.map +1 -1
  4. package/dist/commands/agent.js +44 -0
  5. package/dist/commands/agent.js.map +1 -1
  6. package/dist/commands/bounty.d.ts +4 -0
  7. package/dist/commands/bounty.d.ts.map +1 -0
  8. package/dist/commands/bounty.js +24 -0
  9. package/dist/commands/bounty.js.map +1 -0
  10. package/dist/commands/capabilities.d.ts +4 -0
  11. package/dist/commands/capabilities.d.ts.map +1 -0
  12. package/dist/commands/capabilities.js +18 -0
  13. package/dist/commands/capabilities.js.map +1 -0
  14. package/dist/commands/commend.d.ts +4 -0
  15. package/dist/commands/commend.d.ts.map +1 -0
  16. package/dist/commands/commend.js +13 -0
  17. package/dist/commands/commend.js.map +1 -0
  18. package/dist/commands/completion.d.ts +4 -0
  19. package/dist/commands/completion.d.ts.map +1 -0
  20. package/dist/commands/completion.js +49 -0
  21. package/dist/commands/completion.js.map +1 -0
  22. package/dist/commands/config.d.ts +4 -0
  23. package/dist/commands/config.d.ts.map +1 -0
  24. package/dist/commands/config.js +78 -0
  25. package/dist/commands/config.js.map +1 -0
  26. package/dist/commands/doctor.d.ts +4 -0
  27. package/dist/commands/doctor.d.ts.map +1 -0
  28. package/dist/commands/doctor.js +72 -0
  29. package/dist/commands/doctor.js.map +1 -0
  30. package/dist/commands/export.d.ts +4 -0
  31. package/dist/commands/export.d.ts.map +1 -0
  32. package/dist/commands/export.js +15 -0
  33. package/dist/commands/export.js.map +1 -0
  34. package/dist/commands/fade.d.ts.map +1 -1
  35. package/dist/commands/fade.js +8 -4
  36. package/dist/commands/fade.js.map +1 -1
  37. package/dist/commands/flag.d.ts +4 -0
  38. package/dist/commands/flag.d.ts.map +1 -0
  39. package/dist/commands/flag.js +13 -0
  40. package/dist/commands/flag.js.map +1 -0
  41. package/dist/commands/health.d.ts +4 -0
  42. package/dist/commands/health.d.ts.map +1 -0
  43. package/dist/commands/health.js +11 -0
  44. package/dist/commands/health.js.map +1 -0
  45. package/dist/commands/highways.d.ts.map +1 -1
  46. package/dist/commands/highways.js +7 -4
  47. package/dist/commands/highways.js.map +1 -1
  48. package/dist/commands/hire.d.ts +4 -0
  49. package/dist/commands/hire.d.ts.map +1 -0
  50. package/dist/commands/hire.js +16 -0
  51. package/dist/commands/hire.js.map +1 -0
  52. package/dist/commands/init.d.ts.map +1 -1
  53. package/dist/commands/init.js +69 -42
  54. package/dist/commands/init.js.map +1 -1
  55. package/dist/commands/mark.d.ts.map +1 -1
  56. package/dist/commands/mark.js +7 -7
  57. package/dist/commands/mark.js.map +1 -1
  58. package/dist/commands/pay.d.ts +4 -0
  59. package/dist/commands/pay.d.ts.map +1 -0
  60. package/dist/commands/pay.js +21 -0
  61. package/dist/commands/pay.js.map +1 -0
  62. package/dist/commands/pipe.d.ts +4 -0
  63. package/dist/commands/pipe.d.ts.map +1 -0
  64. package/dist/commands/pipe.js +35 -0
  65. package/dist/commands/pipe.js.map +1 -0
  66. package/dist/commands/publish.d.ts +4 -0
  67. package/dist/commands/publish.d.ts.map +1 -0
  68. package/dist/commands/publish.js +23 -0
  69. package/dist/commands/publish.js.map +1 -0
  70. package/dist/commands/repl.d.ts +4 -0
  71. package/dist/commands/repl.d.ts.map +1 -0
  72. package/dist/commands/repl.js +56 -0
  73. package/dist/commands/repl.js.map +1 -0
  74. package/dist/commands/revenue.d.ts +4 -0
  75. package/dist/commands/revenue.d.ts.map +1 -0
  76. package/dist/commands/revenue.js +11 -0
  77. package/dist/commands/revenue.js.map +1 -0
  78. package/dist/commands/stats.d.ts +4 -0
  79. package/dist/commands/stats.d.ts.map +1 -0
  80. package/dist/commands/stats.js +11 -0
  81. package/dist/commands/stats.js.map +1 -0
  82. package/dist/commands/status.d.ts +4 -0
  83. package/dist/commands/status.d.ts.map +1 -0
  84. package/dist/commands/status.js +18 -0
  85. package/dist/commands/status.js.map +1 -0
  86. package/dist/commands/tail.d.ts +4 -0
  87. package/dist/commands/tail.d.ts.map +1 -0
  88. package/dist/commands/tail.js +51 -0
  89. package/dist/commands/tail.js.map +1 -0
  90. package/dist/commands/warn.d.ts.map +1 -1
  91. package/dist/commands/warn.js +6 -6
  92. package/dist/commands/warn.js.map +1 -1
  93. package/dist/index.js +61 -1
  94. package/dist/index.js.map +1 -1
  95. package/dist/lib/args.d.ts +1 -0
  96. package/dist/lib/args.d.ts.map +1 -1
  97. package/dist/lib/args.js +3 -0
  98. package/dist/lib/args.js.map +1 -1
  99. package/dist/lib/output.d.ts +5 -0
  100. package/dist/lib/output.d.ts.map +1 -0
  101. package/dist/lib/output.js +32 -0
  102. package/dist/lib/output.js.map +1 -0
  103. package/dist/lib/sdk.d.ts +10 -0
  104. package/dist/lib/sdk.d.ts.map +1 -0
  105. package/dist/lib/sdk.js +22 -0
  106. package/dist/lib/sdk.js.map +1 -0
  107. package/dist/utils/installation-setup.d.ts +15 -0
  108. package/dist/utils/installation-setup.d.ts.map +1 -1
  109. package/dist/utils/installation-setup.js +63 -0
  110. package/dist/utils/installation-setup.js.map +1 -1
  111. package/package.json +3 -18
  112. package/.claude/agents/TROUBLESHOOTING.md +0 -530
  113. package/.claude/agents/agent-backend.md +0 -574
  114. package/.claude/agents/agent-builder.md +0 -911
  115. package/.claude/agents/agent-claude.md +0 -645
  116. package/.claude/agents/agent-clean.md +0 -477
  117. package/.claude/agents/agent-clone.md +0 -554
  118. package/.claude/agents/agent-designer.md +0 -1080
  119. package/.claude/agents/agent-director.md +0 -2254
  120. package/.claude/agents/agent-documenter.md +0 -688
  121. package/.claude/agents/agent-frontend.md +0 -1199
  122. package/.claude/agents/agent-integrator.md +0 -670
  123. package/.claude/agents/agent-lawyer.md +0 -1320
  124. package/.claude/agents/agent-news.md +0 -363
  125. package/.claude/agents/agent-onboard.md +0 -613
  126. package/.claude/agents/agent-ontology.md +0 -585
  127. package/.claude/agents/agent-ops.md +0 -1275
  128. package/.claude/agents/agent-problem-solver.md +0 -669
  129. package/.claude/agents/agent-quality.md +0 -1042
  130. package/.claude/agents/agent-sales.md +0 -507
  131. package/.claude/agents/agent-writer.md +0 -1068
  132. package/.claude/commands/cascade.md +0 -742
  133. package/.claude/commands/chat.md +0 -728
  134. package/.claude/commands/commit.md +0 -95
  135. package/.claude/commands/create.md +0 -544
  136. package/.claude/commands/deploy.md +0 -309
  137. package/.claude/commands/fast.md +0 -636
  138. package/.claude/commands/mcp-on.md +0 -191
  139. package/.claude/commands/media-upload.md +0 -186
  140. package/.claude/commands/news.md +0 -274
  141. package/.claude/commands/onboard.md +0 -440
  142. package/.claude/commands/one.md +0 -398
  143. package/.claude/commands/optimize.md +0 -74
  144. package/.claude/commands/plan.md +0 -719
  145. package/.claude/commands/push.md +0 -214
  146. package/.claude/commands/release.md +0 -105
  147. package/.claude/commands/review.md +0 -99
  148. package/.claude/commands/server.md +0 -487
  149. package/.claude/commands/start.md +0 -227
  150. package/.claude/commands/test.md +0 -197
  151. package/.claude/commands/validate.md +0 -140
  152. package/.claude/hooks/.last-news-context +0 -1
  153. package/.claude/hooks/PULL-BEFORE-PUSH-GUIDE.md +0 -473
  154. package/.claude/hooks/README-knowledge-hooks.md +0 -451
  155. package/.claude/hooks/README-news-generation.md +0 -364
  156. package/.claude/hooks/README-root-cleanup.md +0 -200
  157. package/.claude/hooks/README.md +0 -284
  158. package/.claude/hooks/__pycache__/todo.cpython-312.pyc +0 -0
  159. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  160. package/.claude/hooks/auto-format.sh +0 -106
  161. package/.claude/hooks/check-filenames.py +0 -177
  162. package/.claude/hooks/clean-post.py +0 -468
  163. package/.claude/hooks/clean-pre.py +0 -393
  164. package/.claude/hooks/clean-root-markdown.sh +0 -73
  165. package/.claude/hooks/commit-push.sh +0 -95
  166. package/.claude/hooks/done.py +0 -236
  167. package/.claude/hooks/format-hook.sh +0 -163
  168. package/.claude/hooks/formatting.py +0 -187
  169. package/.claude/hooks/hook-logger.sh +0 -173
  170. package/.claude/hooks/knowledge-post.py +0 -355
  171. package/.claude/hooks/knowledge-pre.py +0 -245
  172. package/.claude/hooks/mcp-on.sh +0 -134
  173. package/.claude/hooks/notification-hook.sh +0 -279
  174. package/.claude/hooks/ontology-validation.py +0 -255
  175. package/.claude/hooks/push.sh +0 -153
  176. package/.claude/hooks/release-cli.sh +0 -205
  177. package/.claude/hooks/root-cleanup.py +0 -217
  178. package/.claude/hooks/security-hook.sh +0 -397
  179. package/.claude/hooks/tag-all-docs.py +0 -464
  180. package/.claude/hooks/test-validate-ontology.sh +0 -170
  181. package/.claude/hooks/todo.py +0 -368
  182. package/.claude/hooks/track-changes.sh +0 -101
  183. package/.claude/hooks/validate-imports.py +0 -182
  184. package/.claude/hooks/validate-ontology-structure-summary.md +0 -243
  185. package/.claude/hooks/validate-ontology-structure.py +0 -558
  186. package/.claude/hooks/validate-ontology-structure.py.backup +0 -518
  187. package/.claude/hooks/validate-ontology.py +0 -140
  188. package/.claude/hooks/write-news.sh +0 -194
  189. package/.claude/skills/INDEX.md +0 -523
  190. package/.claude/skills/REGISTRY.md +0 -529
  191. package/.claude/skills/agent-backend-create-mutation.md +0 -319
  192. package/.claude/skills/agent-designer-create-wireframe.md +0 -341
  193. package/.claude/skills/agent-frontend-create-page.md +0 -413
  194. package/.claude/skills/agents/README.md +0 -238
  195. package/.claude/skills/astro/add-content-collection.md +0 -30
  196. package/.claude/skills/astro/check-build.md +0 -29
  197. package/.claude/skills/astro/create-component.md +0 -29
  198. package/.claude/skills/astro/create-page.md +0 -30
  199. package/.claude/skills/astro/optimize-performance.md +0 -21
  200. package/.claude/skills/convex/check-deployment.md +0 -46
  201. package/.claude/skills/convex/create-mutation.md +0 -405
  202. package/.claude/skills/convex/create-query.md +0 -52
  203. package/.claude/skills/convex/read-schema.md +0 -373
  204. package/.claude/skills/convex/test-function.md +0 -50
  205. package/.claude/skills/deployment/check-deployment-health.md +0 -20
  206. package/.claude/skills/deployment/create-release.md +0 -21
  207. package/.claude/skills/deployment/deploy-cloudflare.md +0 -31
  208. package/.claude/skills/deployment/deploy-convex.md +0 -30
  209. package/.claude/skills/deployment/sync-repositories.md +0 -19
  210. package/.claude/skills/design/check-accessibility.md +0 -21
  211. package/.claude/skills/design/create-component-spec.md +0 -27
  212. package/.claude/skills/design/generate-design-tokens.md +0 -24
  213. package/.claude/skills/design/generate-wireframe.md +0 -30
  214. package/.claude/skills/documentation/create-migration-guide.md +0 -20
  215. package/.claude/skills/documentation/generate-api-docs.md +0 -27
  216. package/.claude/skills/documentation/generate-readme.md +0 -22
  217. package/.claude/skills/documentation/update-knowledge.md +0 -20
  218. package/.claude/skills/integration/connect-external-system.md +0 -21
  219. package/.claude/skills/integration/implement-a2a.md +0 -20
  220. package/.claude/skills/integration/implement-acp.md +0 -20
  221. package/.claude/skills/integration/verify-integration.md +0 -20
  222. package/.claude/skills/ontology/README.md +0 -255
  223. package/.claude/skills/ontology/check-dimension.md +0 -307
  224. package/.claude/skills/ontology/generate-entity-type.md +0 -339
  225. package/.claude/skills/ontology/validate-schema.md +0 -229
  226. package/.claude/skills/ontology/verify-relationships.md +0 -310
  227. package/.claude/skills/problem-solving/analyze-test-failure.md +0 -21
  228. package/.claude/skills/problem-solving/identify-root-cause.md +0 -20
  229. package/.claude/skills/problem-solving/propose-solution.md +0 -29
  230. package/.claude/skills/problem-solving/verify-fix.md +0 -21
  231. package/.claude/skills/sales/generate-demo-script.md +0 -21
  232. package/.claude/skills/sales/qualify-lead.md +0 -30
  233. package/.claude/skills/sales/track-trial.md +0 -20
  234. package/.claude/skills/sales/verify-kyc.md +0 -20
  235. package/.claude/skills/testing/analyze-coverage.md +0 -24
  236. package/.claude/skills/testing/generate-tests.md +0 -24
  237. package/.claude/skills/testing/run-tests.md +0 -27
  238. package/.claude/skills/testing/validate-e2e.md +0 -25
  239. package/AGENTS.md +0 -60
  240. package/CLAUDE.md +0 -130
  241. package/CREATE-WEBSITE.md +0 -458
  242. package/SECURITY.md +0 -31
  243. package/folders.yaml +0 -92
  244. package/one/README.md +0 -760
  245. package/one/actors/anthony-o-connell.md +0 -469
  246. package/one/actors/people.md +0 -590
  247. package/one/events/0-changes.md +0 -2764
  248. package/one/events/1-PROJECTS-START-HERE.md +0 -384
  249. package/one/events/1-projects-developer-quickstart.md +0 -620
  250. package/one/events/1-projects-feature.md +0 -2047
  251. package/one/events/1-projects-team-briefing.md +0 -583
  252. package/one/events/2024-10-14-deployment-plan.md +0 -330
  253. package/one/events/2024-10-14-deployment-success.md +0 -447
  254. package/one/events/2024-10-14-final-sync-complete.md +0 -250
  255. package/one/events/2024-10-14-release-v2.0.6.md +0 -414
  256. package/one/events/2024-10-15-agent-clean-v2-summary.md +0 -495
  257. package/one/events/2024-10-15-handoff-to-clean.md +0 -347
  258. package/one/events/2024-10-15-package-manager-tests.md +0 -442
  259. package/one/events/2024-10-15-release-command-complete.md +0 -416
  260. package/one/events/2025-10-15-private-files-secured.md +0 -359
  261. package/one/events/2025-10-15-unignore-public-group-docs.md +0 -298
  262. package/one/events/2025-11-08-backend-claude-refactor.md +0 -242
  263. package/one/events/2025-11-08-parallel-agent-implementation.md +0 -620
  264. package/one/events/2025-11-10-ai-integration-status-report.md +0 -241
  265. package/one/events/ACCESSIBILITY_CHECKLIST.md +0 -275
  266. package/one/events/ACCESSIBILITY_FIXES_SUMMARY.md +0 -293
  267. package/one/events/ALIGNMENT_REPORT_PROBLEM_SOLVER.md +0 -335
  268. package/one/events/ALIGNMENT_SUMMARY.md +0 -280
  269. package/one/events/API_ROUTES_FIXES_SUMMARY.md +0 -280
  270. package/one/events/ASTRO-INTEGRATION-EXAMPLES.md +0 -654
  271. package/one/events/AUDIT-ONTOLOGY-ALIGNMENT.md +0 -598
  272. package/one/events/AUDIT_PLAN_COMPLETION-20251108-125555.md +0 -262
  273. package/one/events/BEFORE_AFTER_COMPARISON.md +0 -978
  274. package/one/events/CART-DRAWER-INTEGRATION-GUIDE.md +0 -372
  275. package/one/events/CASCADE-2-BACKEND-AGNOSTIC.md +0 -430
  276. package/one/events/CHARTS-READY-TO-USE-20251106-080939.md +0 -184
  277. package/one/events/CHARTS-SUMMARY-20251106-080938.md +0 -196
  278. package/one/events/CLAUDE copy.md +0 -897
  279. package/one/events/CLEANUP-RELEASE-V2.0.8.md +0 -308
  280. package/one/events/CLOUDFLARE-FS-FIX-20251106-100516.md +0 -75
  281. package/one/events/COMPONENT_SHOWCASE-20251106-080938.md +0 -629
  282. package/one/events/CONNECTIONS_DEMO.md +0 -519
  283. package/one/events/CREATE-WEBSITE.md +0 -460
  284. package/one/events/CRITICAL-FIXES-COMPLETE.md +0 -571
  285. package/one/events/CUSTOM-DOMAIN.md +0 -375
  286. package/one/events/DELIVERABLES.md +0 -450
  287. package/one/events/DELIVERABLES.txt +0 -273
  288. package/one/events/DEMO-GROUPS-PAGE.md +0 -410
  289. package/one/events/DEMO-TESTING-SUMMARY.md +0 -536
  290. package/one/events/DEMO_COMPONENTS.md +0 -505
  291. package/one/events/DEMO_HOOKS_INDEX.md +0 -352
  292. package/one/events/DEMO_INFRASTRUCTURE.md +0 -923
  293. package/one/events/DEMO_INFRASTRUCTURE_SUMMARY.md +0 -588
  294. package/one/events/DEMO_INTEGRATION_CHECKLIST.md +0 -449
  295. package/one/events/DEMO_QUICK_REFERENCE.md +0 -459
  296. package/one/events/DEMO_SETUP.md +0 -494
  297. package/one/events/DEPLOYMENT copy.md +0 -444
  298. package/one/events/DEPLOYMENT.md +0 -196
  299. package/one/events/DESIGN-DELIVERABLES-20251106-080938.md +0 -557
  300. package/one/events/DESIGN-EXECUTIVE-SUMMARY-20251106-080938.md +0 -484
  301. package/one/events/DOCS-SYSTEM-GUIDE-20251105-142103.md +0 -458
  302. package/one/events/DOCUMENTER-DELIVERY-SUMMARY.md +0 -481
  303. package/one/events/DOCUMENTER-EXECUTION-GUIDE.md +0 -394
  304. package/one/events/DOCUMENTER-TASK-BREAKDOWN.md +0 -783
  305. package/one/events/ECOMMERCE-BEFORE-AFTER.md +0 -267
  306. package/one/events/ECOMMERCE-DEMO-PLAN.md +0 -243
  307. package/one/events/ECOMMERCE-ENHANCEMENTS.md +0 -594
  308. package/one/events/ECOMMERCE-HIGH-CONVERTING-ELEMENTS.md +0 -439
  309. package/one/events/ECOMMERCE-LIVE-DEMO.md +0 -381
  310. package/one/events/ECOMMERCE-QUICKSTART.md +0 -376
  311. package/one/events/ECOMMERCE-README.md +0 -354
  312. package/one/events/ECOMMERCE-REFACTOR-SUMMARY.md +0 -214
  313. package/one/events/ECOMMERCE-SETUP-SUMMARY.md +0 -414
  314. package/one/events/ECOMMERCE-TEMPLATE-COMPLETE.md +0 -753
  315. package/one/events/ECOMMERCE-TEMPLATES-SUMMARY.md +0 -941
  316. package/one/events/EFFECT_TS_API_PATTERN.md +0 -496
  317. package/one/events/EXECUTION-READY.md +0 -359
  318. package/one/events/EXECUTION-SUMMARY.md +0 -478
  319. package/one/events/FEATURE-2-4-COMPLETE.md +0 -320
  320. package/one/events/FEATURE_2_3_COMPLETE.md +0 -593
  321. package/one/events/FILE-REFERENCE-20251105-142103.md +0 -325
  322. package/one/events/GRADIENT-TEXT-PERMANENT-FIX.md +0 -241
  323. package/one/events/GROUPS-MIGRATION.md +0 -643
  324. package/one/events/GROUPS_DEMO_IMPLEMENTATION.md +0 -432
  325. package/one/events/HANDOFF.md +0 -331
  326. package/one/events/HOOKS-DEMO.md +0 -459
  327. package/one/events/IMPLEMENTATION-CHECKLIST-20251105-142103.md +0 -274
  328. package/one/events/IMPLEMENTATION-REPORT-DOCS-20251105-142102.md +0 -394
  329. package/one/events/IMPLEMENTATION-SUMMARY-FINAL.md +0 -568
  330. package/one/events/IMPLEMENTATION_SUMMARY-20251106-080938.md +0 -571
  331. package/one/events/IMPLEMENTATION_SUMMARY.md +0 -547
  332. package/one/events/INDEX-ALL-AGENTS.md +0 -190
  333. package/one/events/INDEX-FRONTEND-TESTING.md +0 -524
  334. package/one/events/INDEX-PROBLEM-SOLVER.md +0 -488
  335. package/one/events/INDEX-QUALITY-AGENT-INFER65.md +0 -455
  336. package/one/events/INDEX.md +0 -295
  337. package/one/events/INDEX_QUICK_START_REDESIGN-20251106-080939.md +0 -342
  338. package/one/events/INSTALL-TESTS.md +0 -311
  339. package/one/events/INSTALLATION_FOLDERS.md +0 -534
  340. package/one/events/INSTALLATION_FOLDERS_FILES.md +0 -223
  341. package/one/events/INSTALLATION_FOLDERS_SUMMARY.md +0 -437
  342. package/one/events/INTEGRATION-ARCHITECTURE.md +0 -579
  343. package/one/events/INTEGRATION-CHECKLIST.md +0 -1252
  344. package/one/events/INTEGRATION-ORCHESTRATION.md +0 -2641
  345. package/one/events/INTEGRATION-SUMMARY.md +0 -671
  346. package/one/events/LANDING-PAGE-EXAMPLE-OUTPUT.md +0 -684
  347. package/one/events/LANDING-PAGE-IMPLEMENTATION.md +0 -660
  348. package/one/events/LANDING-PAGE-QUICKSTART.md +0 -425
  349. package/one/events/LICENSE.md +0 -107
  350. package/one/events/MASTER-COORDINATION-PLAN.md +0 -613
  351. package/one/events/MASTER-ORCHESTRATION-INFER65.md +0 -441
  352. package/one/events/MASTER-PLAN-SUMMARY.md +0 -309
  353. package/one/events/MCP-CONFIGURATION.md +0 -354
  354. package/one/events/MCP-SETUP-COMPLETE.md +0 -223
  355. package/one/events/MIGRATION-REPORT.md +0 -453
  356. package/one/events/MIGRATION.md +0 -87
  357. package/one/events/MULTI-ONTOLOGY-COMPLETE-GUIDE.md +0 -1663
  358. package/one/events/MULTI-ONTOLOGY-IMPLEMENTATION-COMPLETE.md +0 -643
  359. package/one/events/NEWS-COMMANDS.md +0 -506
  360. package/one/events/NEWS-SYSTEM-SUMMARY.md +0 -480
  361. package/one/events/NODE-UPGRADE.md +0 -129
  362. package/one/events/ONBOARDING-IMPLEMENTATION-COMPLETE copy.md +0 -416
  363. package/one/events/ONTOLOGY-HOOKS-README.md +0 -718
  364. package/one/events/ONTOLOGY-INTEGRATION-MANIFEST.md +0 -383
  365. package/one/events/ONTOLOGY-TUTORIALS-SUMMARY.md +0 -569
  366. package/one/events/ONTOLOGY-TYPE-GENERATOR-SUMMARY.md +0 -491
  367. package/one/events/ONTOLOGY_DISCOVERY_IMPLEMENTATION.md +0 -504
  368. package/one/events/ONTOLOGY_DISCOVERY_QUICKSTART.md +0 -221
  369. package/one/events/PACKAGE-STRUCTURE.md +0 -328
  370. package/one/events/PLAN-COMPLETE.md +0 -429
  371. package/one/events/PLAYBOOK-SETUP-SUMMARY.md +0 -349
  372. package/one/events/PROBLEM-SOLVER-EXECUTIVE-SUMMARY.md +0 -484
  373. package/one/events/PROBLEM-SOLVER-QUICKSTART.md +0 -420
  374. package/one/events/PROJECTS-PLAN-SUMMARY.md +0 -480
  375. package/one/events/PROMPT_FIX_FRONTEND_ONLY.md +0 -585
  376. package/one/events/QA-CHECKLIST.md +0 -692
  377. package/one/events/QUALITY-AGENT-SUMMARY.md +0 -334
  378. package/one/events/QUALITY-EXECUTION-CHECKLIST.md +0 -593
  379. package/one/events/QUICK-REFERENCE-FRONTEND-TESTING.md +0 -475
  380. package/one/events/QUICK-START-ONTOLOGY.md +0 -426
  381. package/one/events/QUICK_START_REDESIGN-20251106-080938.md +0 -400
  382. package/one/events/README-PROBLEM-SOLVER.md +0 -394
  383. package/one/events/README-archived.md +0 -537
  384. package/one/events/README_QUICK_START_REDESIGN-20251106-080938.md +0 -484
  385. package/one/events/SEARCH_DEMO_CODE_REFERENCE.md +0 -657
  386. package/one/events/SEARCH_DEMO_DELIVERY.md +0 -433
  387. package/one/events/SEARCH_DEMO_SUMMARY.md +0 -321
  388. package/one/events/SEARCH_DEMO_VISUAL_GUIDE.md +0 -399
  389. package/one/events/SECURITY-AUDIT-FIXES.md +0 -394
  390. package/one/events/SECURITY-SCAN-COMPLETE.md +0 -299
  391. package/one/events/SHOP-BUILD-STATUS.md +0 -132
  392. package/one/events/SHOP-PREMIUM-UPDATE.md +0 -165
  393. package/one/events/SIMPLE_FIX_FRONTEND_ONLY.md +0 -280
  394. package/one/events/SITE-WIDE-GRADIENT-FIX.md +0 -317
  395. package/one/events/SPECIALIST-QUICK-REFERENCE.md +0 -678
  396. package/one/events/STORE-PRODUCTION-READY-STATUS.md +0 -377
  397. package/one/events/STRIPE-INTEGRATION.md +0 -432
  398. package/one/events/STRIPE-PAYMENT-METHODS-GUIDE.md +0 -447
  399. package/one/events/STRIPE-SETUP-GUIDE.md +0 -480
  400. package/one/events/TEST-PLAN-INDEX.md +0 -364
  401. package/one/events/TEST-PLAN.md +0 -1435
  402. package/one/events/TEST-SUMMARY.md +0 -411
  403. package/one/events/TESTING-DELIVERY.txt +0 -372
  404. package/one/events/TESTS-QUICK-REF.md +0 -280
  405. package/one/events/TRANSITIONS-QUICK-START.md +0 -159
  406. package/one/events/TRANSPARENCY-FIXES.md +0 -293
  407. package/one/events/TYPESCRIPT_FIXES.md +0 -170
  408. package/one/events/TYPESCRIPT_FIXES_COMPLETE.txt +0 -412
  409. package/one/events/TYPESCRIPT_FIXES_INDEX.md +0 -359
  410. package/one/events/VERIFICATION_CHECKLIST-20251106-080938.md +0 -326
  411. package/one/events/VIEW-TRANSITIONS.md +0 -446
  412. package/one/events/agent-command-implementation.md +0 -305
  413. package/one/events/agent-director-enhancement-summary.md +0 -404
  414. package/one/events/agent-director-routing-update.md +0 -214
  415. package/one/events/agent-onboard-implementation-summary.md +0 -475
  416. package/one/events/agent-ontology-alignment-completion.md +0 -263
  417. package/one/events/ai-integration-complete.md +0 -294
  418. package/one/events/ai-integration-lessons-learned.md +0 -511
  419. package/one/events/backend-integration-tests.md +0 -624
  420. package/one/events/backend-structure-diagram.txt +0 -393
  421. package/one/events/backend-structure-summary.txt +0 -269
  422. package/one/events/bullfm-video-podcast-analysis.md +0 -319
  423. package/one/events/clean-agent-ontology-cleanup-report.md +0 -371
  424. package/one/events/clean-agent-todo-analysis-summary.md +0 -336
  425. package/one/events/cloudflare-automation-complete.md +0 -350
  426. package/one/events/cloudflare-pages-infrastructure-setup.md +0 -282
  427. package/one/events/contact-page-complete.md +0 -316
  428. package/one/events/convex-analysis-index.md +0 -322
  429. package/one/events/convex-structure-analysis.md +0 -718
  430. package/one/events/creation-instructions-9-todos.md +0 -906
  431. package/one/events/cycle-3-video-player-port-20251108.md +0 -368
  432. package/one/events/cycle-3-video-player-port-complete-20251108.md +0 -334
  433. package/one/events/deployment-installation-folders.md +0 -178
  434. package/one/events/deployment-ops-summary.md +0 -386
  435. package/one/events/deployment-verification.md +0 -366
  436. package/one/events/design-spec-complete.md +0 -226
  437. package/one/events/documentation-audit-index.md +0 -473
  438. package/one/events/documentation-audit-summary.md +0 -417
  439. package/one/events/documentation-improvement-roadmap.md +0 -906
  440. package/one/events/documentation-standards-compliance-report.md +0 -538
  441. package/one/events/documentation-updates.md +0 -370
  442. package/one/events/events.md +0 -563
  443. package/one/events/fix-product-hydration-20251106.md +0 -211
  444. package/one/events/frontend-effects-complete.md +0 -584
  445. package/one/events/frontend-effects-orchestration.md +0 -1356
  446. package/one/events/frontend-effects-risk-register.md +0 -1055
  447. package/one/events/frontend-effects-week1-assignments.md +0 -1594
  448. package/one/events/hook-ontology-alignment-summary.md +0 -528
  449. package/one/events/installation-folders-workflow-integration.md +0 -458
  450. package/one/events/landing-page-generator.md +0 -476
  451. package/one/events/legal-assessment-2025-10-16.md +0 -1917
  452. package/one/events/master-coordination-plan.json +0 -1078
  453. package/one/events/master-plan-9-todos.md +0 -900
  454. package/one/events/mobile-performance-optimization.md +0 -179
  455. package/one/events/onboarding-implementation-complete.md +0 -523
  456. package/one/events/ontology-audit-agent-clone.md +0 -323
  457. package/one/events/ontology-test-examples.md +0 -580
  458. package/one/events/phase1-backend-implementation-complete.md +0 -536
  459. package/one/events/plan-completion-audit.md +0 -707
  460. package/one/events/plan-files-updated.md +0 -273
  461. package/one/events/production-readiness-plan.md +0 -389
  462. package/one/events/readme.md +0 -100
  463. package/one/events/release.md +0 -272
  464. package/one/events/root-cleanup-alignment-report.md +0 -265
  465. package/one/events/security-fixes-2025-01-15.md +0 -226
  466. package/one/events/separate-implementation-status.md +0 -555
  467. package/one/events/server-command-optimization-20251108.md +0 -150
  468. package/one/events/session-summary-2025-10-18.md +0 -366
  469. package/one/events/skills-complete.md +0 -351
  470. package/one/events/skills-infer-6-10-summary.md +0 -70
  471. package/one/events/skills-phase1-complete.md +0 -281
  472. package/one/events/specialist-assignments.md +0 -766
  473. package/one/events/structural-analysis-architecture-vs-plans.md +0 -600
  474. package/one/events/test-dashboard.md +0 -363
  475. package/one/events/test-index.md +0 -421
  476. package/one/events/test-report-ontology.md +0 -611
  477. package/one/events/testing-summary.md +0 -388
  478. package/one/events/todo-agent-builder.md +0 -1180
  479. package/one/events/todo-agent-director.md +0 -164
  480. package/one/events/todo-agent-documenter.md +0 -1815
  481. package/one/events/todo-agent-frontend.md +0 -1542
  482. package/one/events/todo-agent-problem-solver.md +0 -1682
  483. package/one/events/todo-agent-quality.md +0 -1647
  484. package/one/events/todo-refactoring-complete.md +0 -408
  485. package/one/events/wave1-backend-implementation-complete.md +0 -698
  486. package/one/events/web-AI_INTEGRATION_PHASE2_SUMMARY-20251111-152540.md +0 -529
  487. package/one/events/web-BUY-IN-CHATGPT-README-20251116-235241.md +0 -491
  488. package/one/events/web-CHARTS-IMPLEMENTATION-20251106-080939.md +0 -576
  489. package/one/events/web-CHARTS-QUICKSTART-20251106-080939.md +0 -416
  490. package/one/events/web-CODE-HIGHLIGHTING-SUMMARY-20251111-152540.md +0 -442
  491. package/one/events/web-DEPLOYMENT_SUMMARY-20251116-005428.md +0 -290
  492. package/one/events/web-DESIGN-SUMMARY-20251106-080939.md +0 -514
  493. package/one/events/web-README-AI-INTEGRATION-20251111-152540.md +0 -196
  494. package/one/events/web-RECHARTS-INTEGRATION-20251111-152540.md +0 -265
  495. package/one/events/web-RELEASE_OPTIMIZATION_PLAN-20251116-005428.md +0 -447
  496. package/one/events/web-TEST-CLEANUP-20251105-143205.md +0 -3
  497. package/one/events/web-USING-ANY-COMPONENT-IN-CHAT-20251111-152540.md +0 -561
  498. package/one/events/web-test-code-highlighting-20251111-152540.md +0 -231
  499. package/one/groups/features.md +0 -2904
  500. package/one/groups/groups.md +0 -587
  501. package/one/groups/one.md +0 -619
  502. package/one/groups/strategy-copy.md +0 -887
  503. package/one/learning/.obsidian/app.json +0 -1
  504. package/one/learning/.obsidian/appearance.json +0 -1
  505. package/one/learning/.obsidian/core-plugins.json +0 -33
  506. package/one/learning/.obsidian/ecommerce-ontology.md +0 -210
  507. package/one/learning/.obsidian/workspace.json +0 -211
  508. package/one/learning/100-inference-quick-reference.md +0 -449
  509. package/one/learning/ag-ui-protocol.md +0 -613
  510. package/one/learning/agent-onboard-usage.md +0 -630
  511. package/one/learning/agentic-commerce.md +0 -146
  512. package/one/learning/ai-agents-vs-memecoins-thesis.md +0 -683
  513. package/one/learning/ai-api-reference.md +0 -715
  514. package/one/learning/ai-platform.md +0 -323
  515. package/one/learning/ai-quickstart.md +0 -355
  516. package/one/learning/ai-sdk-implementation.md +0 -436
  517. package/one/learning/ai-token-crypto-analysis-framework.md +0 -1191
  518. package/one/learning/ai-token-paradigm-shift-2025.md +0 -732
  519. package/one/learning/altcoin-cycle-prediction-ontology.md +0 -884
  520. package/one/learning/altcoin-cycle-trading-strategy.md +0 -642
  521. package/one/learning/architecture-any-backend.md +0 -1589
  522. package/one/learning/architecture-diagram.md +0 -404
  523. package/one/learning/architecture-frontend.md +0 -1014
  524. package/one/learning/architecture.md +0 -1742
  525. package/one/learning/archived/ontology.old.md +0 -2840
  526. package/one/learning/astro-effect-complete-vision.md +0 -2148
  527. package/one/learning/astro-effect-simple-architecture.md +0 -750
  528. package/one/learning/audit-agent-onboard-alignment.md +0 -481
  529. package/one/learning/audit-agent-sales-alignment.md +0 -444
  530. package/one/learning/backend-api-reference.md +0 -728
  531. package/one/learning/cascading-context-specification.md +0 -1617
  532. package/one/learning/claude-code-integration.md +0 -1293
  533. package/one/learning/cli-claude-handoff.md +0 -736
  534. package/one/learning/context-engineering.md +0 -610
  535. package/one/learning/crypto-analysis-strategy.md +0 -1276
  536. package/one/learning/crypto-cycle-2024-2025-analysis.md +0 -44
  537. package/one/learning/crypto.md +0 -978
  538. package/one/learning/develop/design.md +0 -364
  539. package/one/learning/develop/index.md +0 -145
  540. package/one/learning/development-commands.md +0 -251
  541. package/one/learning/docs.md +0 -627
  542. package/one/learning/dsl.md +0 -1678
  543. package/one/learning/event-driven-documentation.md +0 -270
  544. package/one/learning/files.md +0 -2489
  545. package/one/learning/frontend.md +0 -1056
  546. package/one/learning/games-english.md +0 -691
  547. package/one/learning/games.md +0 -1082
  548. package/one/learning/generative-ui-patterns.md +0 -559
  549. package/one/learning/guidelines.md +0 -314
  550. package/one/learning/hono.md +0 -2127
  551. package/one/learning/implementation-examples.md +0 -2554
  552. package/one/learning/installation-folders.md +0 -366
  553. package/one/learning/institutional-cycle-paradigm-2025.md +0 -555
  554. package/one/learning/knowledge.md +0 -660
  555. package/one/learning/language.md +0 -998
  556. package/one/learning/lessons-learned.md +0 -378
  557. package/one/learning/lessons-website-building-focus.md +0 -382
  558. package/one/learning/merge-report.md +0 -254
  559. package/one/learning/metadata-system.md +0 -504
  560. package/one/learning/nine-padel-playbook.md +0 -229
  561. package/one/learning/one-protocol-ai-agents.md +0 -892
  562. package/one/learning/one-protocol-executive-report.md +0 -617
  563. package/one/learning/one-protocol-standard.md +0 -869
  564. package/one/learning/one-protocol-whitepaper.md +0 -756
  565. package/one/learning/ontology-blog.yaml +0 -47
  566. package/one/learning/ontology-cheatsheet.md +0 -617
  567. package/one/learning/ontology-community.yaml +0 -65
  568. package/one/learning/ontology-core-universal.md +0 -740
  569. package/one/learning/ontology-core.yaml +0 -63
  570. package/one/learning/ontology-courses.yaml +0 -76
  571. package/one/learning/ontology-creator.md +0 -402
  572. package/one/learning/ontology-crypto.md +0 -1603
  573. package/one/learning/ontology-developer-guide.md +0 -814
  574. package/one/learning/ontology-documentation.md +0 -377
  575. package/one/learning/ontology-ecommerce.md +0 -269
  576. package/one/learning/ontology-education-game.md +0 -1654
  577. package/one/learning/ontology-education.md +0 -938
  578. package/one/learning/ontology-engineering-specification.md +0 -1310
  579. package/one/learning/ontology-engineering.md +0 -1676
  580. package/one/learning/ontology-files.yaml +0 -525
  581. package/one/learning/ontology-frontend-master.md +0 -2898
  582. package/one/learning/ontology-frontend-specifications.md +0 -2196
  583. package/one/learning/ontology-frontend.md +0 -2475
  584. package/one/learning/ontology-index.md +0 -397
  585. package/one/learning/ontology-minimal.yaml +0 -301
  586. package/one/learning/ontology-portfolio.yaml +0 -45
  587. package/one/learning/ontology-quickstart.md +0 -602
  588. package/one/learning/ontology-release.md +0 -317
  589. package/one/learning/ontology-shop.yaml +0 -148
  590. package/one/learning/ontology-tokens.yaml +0 -51
  591. package/one/learning/ontology-tutorial.md +0 -455
  592. package/one/learning/ontology-v2.md +0 -4449
  593. package/one/learning/ontology-video-script.md +0 -939
  594. package/one/learning/ontology-visual-guide.md +0 -378
  595. package/one/learning/ontology.md +0 -3847
  596. package/one/learning/ontology.yaml +0 -1653
  597. package/one/learning/parallel-agents.md +0 -932
  598. package/one/learning/patterns/backend/convex-mutation-pattern.md +0 -130
  599. package/one/learning/patterns/backend/convex-query-pattern.md +0 -143
  600. package/one/learning/patterns/backend/mutation-template.md +0 -249
  601. package/one/learning/patterns/backend/query-template.md +0 -286
  602. package/one/learning/patterns/backend/service-template.md +0 -258
  603. package/one/learning/patterns/design/component-architecture.md +0 -435
  604. package/one/learning/patterns/design/index.md +0 -160
  605. package/one/learning/patterns/design/test-driven-design-pattern.md +0 -196
  606. package/one/learning/patterns/design/wireframe-template.md +0 -250
  607. package/one/learning/patterns/frontend/component-template.md +0 -246
  608. package/one/learning/patterns/frontend/form-template.md +0 -348
  609. package/one/learning/patterns/frontend/page-template.md +0 -209
  610. package/one/learning/patterns/frontend/react-component-pattern.md +0 -188
  611. package/one/learning/patterns/test/acceptance-criteria-template.md +0 -396
  612. package/one/learning/patterns/test/technical-test-template.md +0 -566
  613. package/one/learning/patterns/test/test-driven-pattern.md +0 -160
  614. package/one/learning/patterns/test/user-flow-template.md +0 -272
  615. package/one/learning/performance.md +0 -459
  616. package/one/learning/provider-agnostic-content.md +0 -995
  617. package/one/learning/provider-creation-guide.md +0 -1082
  618. package/one/learning/quality-loop.md +0 -419
  619. package/one/learning/quick-start-ontology-mapping.md +0 -773
  620. package/one/learning/readme-architecture.md +0 -158
  621. package/one/learning/readme.md +0 -149
  622. package/one/learning/rules.md +0 -644
  623. package/one/learning/score.md +0 -85
  624. package/one/learning/specifications.md +0 -873
  625. package/one/learning/tags.md +0 -148
  626. package/one/learning/todo-template.md +0 -269
  627. package/one/learning/todo.md +0 -269
  628. package/one/learning/troubleshooting.md +0 -434
  629. package/one/learning/typescript-patterns.md +0 -321
  630. package/one/learning/universal-generation-language.md +0 -827
  631. package/one/learning/x402-research.md +0 -104
  632. package/one/license.md +0 -107
  633. package/one/paths/a2a.md +0 -600
  634. package/one/paths/acp.md +0 -808
  635. package/one/paths/acps.md +0 -749
  636. package/one/paths/agentkit.md +0 -367
  637. package/one/paths/agui.md +0 -785
  638. package/one/paths/any-backend.md +0 -1720
  639. package/one/paths/ap2.md +0 -1072
  640. package/one/paths/api/queries-reference.md +0 -860
  641. package/one/paths/api-docs.md +0 -1909
  642. package/one/paths/api-reference.md +0 -1029
  643. package/one/paths/api.md +0 -2208
  644. package/one/paths/architecture-diagram.md +0 -112
  645. package/one/paths/communications.md +0 -467
  646. package/one/paths/connections.md +0 -357
  647. package/one/paths/copilotkit.md +0 -1577
  648. package/one/paths/cryptonetworks.md +0 -799
  649. package/one/paths/documentation.md +0 -1138
  650. package/one/paths/effect.md +0 -297
  651. package/one/paths/elizaos.md +0 -1308
  652. package/one/paths/groups.md +0 -814
  653. package/one/paths/inference.md +0 -76
  654. package/one/paths/integration-examples.md +0 -893
  655. package/one/paths/integration-guide.md +0 -887
  656. package/one/paths/integration-phase2.md +0 -754
  657. package/one/paths/kyc.md +0 -650
  658. package/one/paths/mcp.md +0 -860
  659. package/one/paths/membership.md +0 -1170
  660. package/one/paths/middleware.md +0 -1085
  661. package/one/paths/multitenant.md +0 -1359
  662. package/one/paths/n8n.md +0 -1033
  663. package/one/paths/patterns.md +0 -107
  664. package/one/paths/protocols.md +0 -297
  665. package/one/paths/relationships.md +0 -125
  666. package/one/paths/schema.md +0 -605
  667. package/one/paths/service-layer.md +0 -568
  668. package/one/paths/vectors.md +0 -225
  669. package/one/paths/wordpress.md +0 -1320
  670. package/one/paths/workflow-copy.md +0 -923
  671. package/one/paths/workflow-examples.md +0 -759
  672. package/one/paths/workflow-onboarding.md +0 -701
  673. package/one/paths/workflow.md +0 -923
  674. package/one/paths/workflows/delegation.md +0 -903
  675. package/one/paths/workflows/frontend.md +0 -1055
  676. package/one/paths/workflows/strategy.md +0 -921
  677. package/one/paths/workflows/tasks.md +0 -716
  678. package/one/paths/x402-baazar.md +0 -131
  679. package/one/paths/x402.md +0 -1353
  680. package/one/things/ALIGNMENT_AUDIT_QUALITY_AGENT.md +0 -401
  681. package/one/things/AUDIT_AGENT_INTEGRATOR_ALIGNMENT.md +0 -588
  682. package/one/things/AUDIT_REPORT_AGENT_CLEAN.md +0 -461
  683. package/one/things/CHECKLIST.md +0 -407
  684. package/one/things/IMPLEMENTATION_STATUS.md +0 -379
  685. package/one/things/ONE.md +0 -529
  686. package/one/things/agents/agent-backend.md +0 -1501
  687. package/one/things/agents/agent-builder.md +0 -1064
  688. package/one/things/agents/agent-clean.md +0 -1112
  689. package/one/things/agents/agent-clone.md +0 -1324
  690. package/one/things/agents/agent-deploy.md +0 -986
  691. package/one/things/agents/agent-designer.md +0 -2305
  692. package/one/things/agents/agent-director.md +0 -1526
  693. package/one/things/agents/agent-documenter.md +0 -1129
  694. package/one/things/agents/agent-frontend.md +0 -1201
  695. package/one/things/agents/agent-integrator.md +0 -1269
  696. package/one/things/agents/agent-lawyer.md +0 -1371
  697. package/one/things/agents/agent-problem-solver.md +0 -1457
  698. package/one/things/agents/agent-quality.md +0 -1483
  699. package/one/things/agents/agent-sales.md +0 -1074
  700. package/one/things/cascade/cascade.yaml +0 -481
  701. package/one/things/cascade/docs/examples/1-1-agent-prompts/design.md +0 -523
  702. package/one/things/cascade/docs/examples/1-1-agent-prompts/tests.md +0 -314
  703. package/one/things/cascade/docs/examples/1-1-agent-prompts.md +0 -562
  704. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/design.md +0 -543
  705. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/tests.md +0 -272
  706. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator.md +0 -548
  707. package/one/things/cascade/docs/examples/1-3-event-coordination/design.md +0 -586
  708. package/one/things/cascade/docs/examples/1-3-event-coordination/tests.md +0 -267
  709. package/one/things/cascade/docs/examples/1-3-event-coordination.md +0 -547
  710. package/one/things/cascade/docs/examples/1-4-knowledge-management/design.md +0 -665
  711. package/one/things/cascade/docs/examples/1-4-knowledge-management/tests.md +0 -236
  712. package/one/things/cascade/docs/examples/1-4-knowledge-management.md +0 -652
  713. package/one/things/cascade/docs/examples/1-5-quality-loops/design.md +0 -860
  714. package/one/things/cascade/docs/examples/1-5-quality-loops/tests.md +0 -255
  715. package/one/things/cascade/docs/examples/1-5-quality-loops.md +0 -725
  716. package/one/things/cascade/docs/examples/1-6-numbering-structure/design.md +0 -659
  717. package/one/things/cascade/docs/examples/1-6-numbering-structure/tests.md +0 -256
  718. package/one/things/cascade/docs/examples/1-6-numbering-structure.md +0 -639
  719. package/one/things/cascade/docs/examples/readme.md +0 -259
  720. package/one/things/cascade/docs/getting-started.md +0 -533
  721. package/one/things/cascade/docs/workflow.md +0 -1378
  722. package/one/things/cascade/readme.md +0 -379
  723. package/one/things/cascade/templates/feature-template.md +0 -289
  724. package/one/things/claude/agents/advocacy-activation-manager.md +0 -710
  725. package/one/things/claude/agents/advocacy-campaign-designer.md +0 -688
  726. package/one/things/claude/agents/analyst.md +0 -508
  727. package/one/things/claude/agents/architect.md +0 -505
  728. package/one/things/claude/agents/brand-identity-specialist.md +0 -538
  729. package/one/things/claude/agents/bstp-token-strategist.md +0 -690
  730. package/one/things/claude/agents/builder-repo.md +0 -532
  731. package/one/things/claude/agents/bullstamp-community-builder.md +0 -597
  732. package/one/things/claude/agents/bullstamp-marketing-orchestrator.md +0 -529
  733. package/one/things/claude/agents/bulltilt-platform-growth.md +0 -590
  734. package/one/things/claude/agents/company-bullstamp-character.md +0 -602
  735. package/one/things/claude/agents/company-bullstamp-community.md +0 -307
  736. package/one/things/claude/agents/company-bullstamp-marketing.md +0 -307
  737. package/one/things/claude/agents/company-bullstamp-token.md +0 -307
  738. package/one/things/claude/agents/company-bulltilt-growth.md +0 -307
  739. package/one/things/claude/agents/content-bibliography-formatter.md +0 -404
  740. package/one/things/claude/agents/content-calendar-planner.md +0 -473
  741. package/one/things/claude/agents/content-chapter-formatter.md +0 -513
  742. package/one/things/claude/agents/content-formatter.md +0 -571
  743. package/one/things/claude/agents/content-hook-specialist.md +0 -485
  744. package/one/things/claude/agents/content-image-formatter.md +0 -560
  745. package/one/things/claude/agents/content-introduction-formatter.md +0 -510
  746. package/one/things/claude/agents/content-multiplication-engine.md +0 -579
  747. package/one/things/claude/agents/content-playbook-writer.md +0 -473
  748. package/one/things/claude/agents/content-team-manager.md +0 -647
  749. package/one/things/claude/agents/content-toc-formatter.md +0 -547
  750. package/one/things/claude/agents/convex-backend-specialist.md +0 -2725
  751. package/one/things/claude/agents/core-manager.md +0 -607
  752. package/one/things/claude/agents/core-master.md +0 -426
  753. package/one/things/claude/agents/cross-functional-manager.md +0 -476
  754. package/one/things/claude/agents/crypto-airdrop-strategist.md +0 -622
  755. package/one/things/claude/agents/crypto-analytics-educator.md +0 -596
  756. package/one/things/claude/agents/crypto-architecture-specialist.md +0 -497
  757. package/one/things/claude/agents/crypto-community-analyst.md +0 -314
  758. package/one/things/claude/agents/crypto-community-psychologist.md +0 -546
  759. package/one/things/claude/agents/crypto-dex-optimization-expert.md +0 -579
  760. package/one/things/claude/agents/crypto-dex-optimizer.md +0 -307
  761. package/one/things/claude/agents/crypto-diamond-formation-specialist.md +0 -552
  762. package/one/things/claude/agents/crypto-diamond-hands.md +0 -307
  763. package/one/things/claude/agents/crypto-ecosystem-expansion-manager.md +0 -597
  764. package/one/things/claude/agents/crypto-engagement-specialist.md +0 -581
  765. package/one/things/claude/agents/crypto-market-researcher.md +0 -307
  766. package/one/things/claude/agents/crypto-marketing-orchestrator.md +0 -563
  767. package/one/things/claude/agents/crypto-network-effect-amplifier.md +0 -614
  768. package/one/things/claude/agents/crypto-optimization-analyst.md +0 -597
  769. package/one/things/claude/agents/crypto-strategic-synthesizer.md +0 -556
  770. package/one/things/claude/agents/crypto-team-manager.md +0 -392
  771. package/one/things/claude/agents/crypto-token-analyst.md +0 -319
  772. package/one/things/claude/agents/crypto-viral-content-creator.md +0 -549
  773. package/one/things/claude/agents/crypto-wallet-identification-expert.md +0 -527
  774. package/one/things/claude/agents/crypto-wallet-identifier.md +0 -307
  775. package/one/things/claude/agents/customer-journey-designer.md +0 -474
  776. package/one/things/claude/agents/customer-success-manager.md +0 -574
  777. package/one/things/claude/agents/dev.md +0 -406
  778. package/one/things/claude/agents/documenter.md +0 -548
  779. package/one/things/claude/agents/elevate-marketing-orchestrator.md +0 -403
  780. package/one/things/claude/agents/engagement-specialist.md +0 -502
  781. package/one/things/claude/agents/engineering-architect.md +0 -387
  782. package/one/things/claude/agents/engineering-business-analyst.md +0 -527
  783. package/one/things/claude/agents/engineering-developer.md +0 -386
  784. package/one/things/claude/agents/engineering-director.md +0 -322
  785. package/one/things/claude/agents/engineering-ingestor.md +0 -659
  786. package/one/things/claude/agents/engineering-product-manager.md +0 -525
  787. package/one/things/claude/agents/engineering-product-owner.md +0 -527
  788. package/one/things/claude/agents/engineering-project-coordinator.md +0 -525
  789. package/one/things/claude/agents/engineering-quality-assurance.md +0 -392
  790. package/one/things/claude/agents/engineering-team-manager.md +0 -515
  791. package/one/things/claude/agents/engineering-user-experience.md +0 -386
  792. package/one/things/claude/agents/framework-elevate-manager.md +0 -309
  793. package/one/things/claude/agents/improver.md +0 -805
  794. package/one/things/claude/agents/intelligence-team-manager.md +0 -390
  795. package/one/things/claude/agents/lead-capture-expert.md +0 -459
  796. package/one/things/claude/agents/lead-magnet-creator.md +0 -446
  797. package/one/things/claude/agents/market-research-analyst.md +0 -435
  798. package/one/things/claude/agents/marketing-brand-identity.md +0 -344
  799. package/one/things/claude/agents/marketing-content-hooks.md +0 -455
  800. package/one/things/claude/agents/marketing-content-multiplier.md +0 -331
  801. package/one/things/claude/agents/marketing-content-poster.md +0 -372
  802. package/one/things/claude/agents/marketing-customer-journey.md +0 -331
  803. package/one/things/claude/agents/marketing-director.md +0 -402
  804. package/one/things/claude/agents/marketing-engagement.md +0 -331
  805. package/one/things/claude/agents/marketing-lead-capture.md +0 -331
  806. package/one/things/claude/agents/marketing-lead-magnet.md +0 -331
  807. package/one/things/claude/agents/marketing-network-effects.md +0 -331
  808. package/one/things/claude/agents/marketing-nurture-campaigns.md +0 -331
  809. package/one/things/claude/agents/marketing-share-optimizer.md +0 -331
  810. package/one/things/claude/agents/marketing-team-manager.md +0 -451
  811. package/one/things/claude/agents/marketing-viral-growth.md +0 -232
  812. package/one/things/claude/agents/mission-commander.md +0 -378
  813. package/one/things/claude/agents/network-effect-analyst.md +0 -604
  814. package/one/things/claude/agents/nextjs-15-specialist.md +0 -1634
  815. package/one/things/claude/agents/npx.md +0 -946
  816. package/one/things/claude/agents/nurture-campaign-manager.md +0 -554
  817. package/one/things/claude/agents/one-master.md +0 -378
  818. package/one/things/claude/agents/one-orchestrator.md +0 -345
  819. package/one/things/claude/agents/one.md +0 -658
  820. package/one/things/claude/agents/playbook-generator.md +0 -526
  821. package/one/things/claude/agents/pm.md +0 -349
  822. package/one/things/claude/agents/po.md +0 -370
  823. package/one/things/claude/agents/qa.md +0 -361
  824. package/one/things/claude/agents/research-foundation-analyst.md +0 -324
  825. package/one/things/claude/agents/research-intelligence-gatherer.md +0 -435
  826. package/one/things/claude/agents/research-market-analyst.md +0 -324
  827. package/one/things/claude/agents/research-team-manager.md +0 -489
  828. package/one/things/claude/agents/sales-environment-optimizer.md +0 -519
  829. package/one/things/claude/agents/sales-team-manager.md +0 -407
  830. package/one/things/claude/agents/sales-upsell-strategist.md +0 -324
  831. package/one/things/claude/agents/service-advocacy-campaigns.md +0 -324
  832. package/one/things/claude/agents/service-advocacy-manager.md +0 -324
  833. package/one/things/claude/agents/service-success-manager.md +0 -324
  834. package/one/things/claude/agents/service-team-manager.md +0 -405
  835. package/one/things/claude/agents/shadcn-ui-design-system-specialist.md +0 -2357
  836. package/one/things/claude/agents/share-optimization-specialist.md +0 -576
  837. package/one/things/claude/agents/sm.md +0 -352
  838. package/one/things/claude/agents/story-teller.md +0 -498
  839. package/one/things/claude/agents/task-master.md +0 -621
  840. package/one/things/claude/agents/tauri-cross-platform-specialist.md +0 -1912
  841. package/one/things/claude/agents/tester.md +0 -595
  842. package/one/things/claude/agents/the-bull-character-manager.md +0 -603
  843. package/one/things/claude/agents/tools-playbook-generator.md +0 -492
  844. package/one/things/claude/agents/turbo-repo-builder.md +0 -346
  845. package/one/things/claude/agents/upsell-strategist.md +0 -503
  846. package/one/things/claude/agents/ux-expert.md +0 -360
  847. package/one/things/claude/agents/viral-growth-orchestrator.md +0 -520
  848. package/one/things/claude/claude-code-hooks-development.json +0 -21
  849. package/one/things/claude/claude-code-hooks-production.json +0 -21
  850. package/one/things/claude/claude-code-hooks.json +0 -25
  851. package/one/things/claude/commands/agent.md +0 -124
  852. package/one/things/claude/commands/cascade-status.md +0 -153
  853. package/one/things/claude/commands/ingest.md +0 -343
  854. package/one/things/claude/commands/ingestor.md +0 -158
  855. package/one/things/claude/commands/mission.md +0 -103
  856. package/one/things/claude/commands/npx.md +0 -156
  857. package/one/things/claude/commands/one.md +0 -486
  858. package/one/things/claude/commands/quality-check.md +0 -252
  859. package/one/things/claude/commands/smart-route.md +0 -261
  860. package/one/things/claude/commands/start.md +0 -139
  861. package/one/things/claude/commands/story.md +0 -103
  862. package/one/things/claude/commands/task.md +0 -193
  863. package/one/things/claude/hook-bypass.json +0 -32
  864. package/one/things/claude/hooks/agent-hook-config.json +0 -427
  865. package/one/things/claude/hooks/build-hook.sh +0 -156
  866. package/one/things/claude/hooks/cleanup-hook.sh +0 -201
  867. package/one/things/claude/hooks/file-organization-hook.sh +0 -80
  868. package/one/things/claude/hooks/format-hook.sh +0 -43
  869. package/one/things/claude/hooks/hook-bypass.sh +0 -293
  870. package/one/things/claude/hooks/hook-debouncer.sh +0 -62
  871. package/one/things/claude/hooks/hook-logger.sh +0 -89
  872. package/one/things/claude/hooks/lint-hook.sh +0 -140
  873. package/one/things/claude/hooks/notification-hook.sh +0 -204
  874. package/one/things/claude/hooks/ontology-validation-hook.sh +0 -86
  875. package/one/things/claude/hooks/performance-metrics.json +0 -25
  876. package/one/things/claude/hooks/security-hook.sh +0 -256
  877. package/one/things/claude/hooks/story-validation-hook-enhanced.sh +0 -210
  878. package/one/things/claude/hooks/story-validation-hook.sh +0 -145
  879. package/one/things/claude/hooks/test-hook.sh +0 -145
  880. package/one/things/claude/hooks/test-story-validation.sh +0 -170
  881. package/one/things/claude/settings-local.json +0 -86
  882. package/one/things/cli/cli-code.md +0 -677
  883. package/one/things/cli/cli-compiler-code.md +0 -677
  884. package/one/things/cli/cli.md +0 -871
  885. package/one/things/components/card-shadcn.md +0 -953
  886. package/one/things/components/card.md +0 -1041
  887. package/one/things/components.md +0 -1743
  888. package/one/things/componets.md +0 -19
  889. package/one/things/contracts/Move.toml +0 -12
  890. package/one/things/contracts/README.md +0 -288
  891. package/one/things/contracts/one.move +0 -762
  892. package/one/things/contracts/sdk.ts +0 -579
  893. package/one/things/creator-diagram.md +0 -184
  894. package/one/things/crypto/FEATURES.md +0 -78
  895. package/one/things/crypto/ONECORE.md +0 -62
  896. package/one/things/crypto/ONECOREFAQ.md +0 -22
  897. package/one/things/crypto/ONECOREHOW.md +0 -46
  898. package/one/things/crypto/ONEENTERPRISE.md +0 -64
  899. package/one/things/crypto/ONEENTERPRISEFAQ.md +0 -64
  900. package/one/things/crypto/ONEENTERPRISEHOW.md +0 -53
  901. package/one/things/crypto/ONEPRO.md +0 -60
  902. package/one/things/crypto/ONEPROFAQ.md +0 -22
  903. package/one/things/crypto/ONEPROHOW.md +0 -53
  904. package/one/things/crypto/READMEAGENCY.md +0 -64
  905. package/one/things/crypto/VSL.md +0 -45
  906. package/one/things/crypto/WebsiteCopy.md +0 -176
  907. package/one/things/demo-accessibility-animations.md +0 -1025
  908. package/one/things/demo-components.md +0 -1310
  909. package/one/things/demo-design-summary.md +0 -692
  910. package/one/things/demo-design-system.md +0 -973
  911. package/one/things/demo-page-layouts.md +0 -1016
  912. package/one/things/design-system.md +0 -832
  913. package/one/things/designs/accessibility-audit.md +0 -877
  914. package/one/things/designs/component-specifications.md +0 -855
  915. package/one/things/designs/design-overview.md +0 -377
  916. package/one/things/designs/design-tokens.md +0 -448
  917. package/one/things/designs/wireframes-dashboard.md +0 -710
  918. package/one/things/docs/api-requests.md +0 -987
  919. package/one/things/docs/ecommerce/ARCHITECTURE-DIAGRAM.md +0 -485
  920. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-IMPLEMENTATION.md +0 -465
  921. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-SUMMARY.md +0 -425
  922. package/one/things/docs/ecommerce/CONVERSION-UX-IMPLEMENTATION-SUMMARY.md +0 -451
  923. package/one/things/docs/ecommerce/FEATURE-SUMMARY.md +0 -536
  924. package/one/things/docs/ecommerce/IMPLEMENTATION-NOTES.md +0 -650
  925. package/one/things/docs/ecommerce/INTEGRATION-EXAMPLE.md +0 -473
  926. package/one/things/docs/ecommerce/QUICK-START.md +0 -405
  927. package/one/things/docs/ecommerce/URGENCY-IMPLEMENTATION-SUMMARY.md +0 -567
  928. package/one/things/docs/ecommerce/URGENCY-QUICK-REFERENCE.md +0 -271
  929. package/one/things/docs/ecommerce/USAGE-EXAMPLE.astro +0 -171
  930. package/one/things/docs/ecommerce/demo.astro +0 -309
  931. package/one/things/examples/children/lemonade-stand.md +0 -404
  932. package/one/things/examples/enterprise/crm-saas.md +0 -1444
  933. package/one/things/features/1-1-agent-prompts.md +0 -562
  934. package/one/things/features/1-2-yaml-orchestrator.md +0 -548
  935. package/one/things/features/1-3-event-coordination.md +0 -547
  936. package/one/things/features/1-4-knowledge-management.md +0 -652
  937. package/one/things/features/1-5-quality-loops.md +0 -725
  938. package/one/things/features/1-6-numbering-structure.md +0 -639
  939. package/one/things/features/2-1-dataprovider-interface.md +0 -2583
  940. package/one/things/features/2-2-config-system.md +0 -3242
  941. package/one/things/features/2-3-effectts-services.md +0 -1645
  942. package/one/things/features/2-4-react-hooks.md +0 -2136
  943. package/one/things/features/2-5-auth-migration.md +0 -2144
  944. package/one/things/features/2-6-dashboard-migration.md +0 -2084
  945. package/one/things/features/2-7-alternative-providers.md +0 -2578
  946. package/one/things/features/2-7-implementation-report.md +0 -724
  947. package/one/things/features/2-cli.md +0 -1720
  948. package/one/things/features/2-design.md +0 -1770
  949. package/one/things/features/2-tests.md +0 -576
  950. package/one/things/features/AUTH_HOOKS_IMPLEMENTATION.md +0 -576
  951. package/one/things/features/DECOUPLING.md +0 -290
  952. package/one/things/features/DEPLOYMENT.md +0 -470
  953. package/one/things/features/IMPLEMENTATION_SUMMARY.md +0 -362
  954. package/one/things/features/improve.md +0 -861
  955. package/one/things/features/remove-convex-deps.md +0 -63
  956. package/one/things/features/top-features.md +0 -87
  957. package/one/things/features/use-one-backend.md +0 -1217
  958. package/one/things/features-in-english.md +0 -200
  959. package/one/things/files.yaml +0 -721
  960. package/one/things/ideas/1-create-workflow.md +0 -207
  961. package/one/things/ideas/2-backend-agnostic-frontend.md +0 -439
  962. package/one/things/implementation/backend-guide.md +0 -457
  963. package/one/things/interface.md +0 -257
  964. package/one/things/landing-page-implementation.md +0 -455
  965. package/one/things/legal/README.md +0 -234
  966. package/one/things/legal/privacy-policy.md +0 -1227
  967. package/one/things/legal/terms-of-service.md +0 -1432
  968. package/one/things/master-workflow-plan.md +0 -806
  969. package/one/things/pay.one.ie.md +0 -53
  970. package/one/things/plans/0-in-sync.md +0 -136
  971. package/one/things/plans/0-timeline.md +0 -36
  972. package/one/things/plans/1-create-workflow.md +0 -732
  973. package/one/things/plans/QUICK-START-SIMPLIFICATION.md +0 -333
  974. package/one/things/plans/README-SIMPLIFICATION.md +0 -349
  975. package/one/things/plans/SIMPLIFICATION-EXAMPLES.md +0 -16
  976. package/one/things/plans/SIMPLIFICATION-SUMMARY.md +0 -455
  977. package/one/things/plans/ai-elements-integration.md +0 -483
  978. package/one/things/plans/ai-elements.md +0 -1278
  979. package/one/things/plans/ai-integration-plan.md +0 -263
  980. package/one/things/plans/ai-integration.md +0 -996
  981. package/one/things/plans/ai-sdk.md +0 -798
  982. package/one/things/plans/ai-tools.md +0 -621
  983. package/one/things/plans/app.md +0 -832
  984. package/one/things/plans/architecture-summary.md +0 -312
  985. package/one/things/plans/async-ai-agents.md +0 -233
  986. package/one/things/plans/backend-agnostic-frontend.md +0 -390
  987. package/one/things/plans/backend-cleanup-quickstart.md +0 -380
  988. package/one/things/plans/backend-ontology-conformance.md +0 -475
  989. package/one/things/plans/backend-status.md +0 -599
  990. package/one/things/plans/backend-structure.md +0 -847
  991. package/one/things/plans/backend-target-structure.md +0 -482
  992. package/one/things/plans/backend.md +0 -1175
  993. package/one/things/plans/better-auth-any-backend-revised.md +0 -1103
  994. package/one/things/plans/better-auth-any-backend.md +0 -1896
  995. package/one/things/plans/better-auth-available-features.md +0 -273
  996. package/one/things/plans/big-plan.md +0 -52
  997. package/one/things/plans/cli-updates-required.md +0 -320
  998. package/one/things/plans/complete-step-by-step.md +0 -1409
  999. package/one/things/plans/components.md +0 -709
  1000. package/one/things/plans/convex-agents.md +0 -1034
  1001. package/one/things/plans/convex-better-auth.md +0 -1141
  1002. package/one/things/plans/convex-on-off.md +0 -407
  1003. package/one/things/plans/crypto-token-researcher.md +0 -629
  1004. package/one/things/plans/data-quality-metrics.md +0 -745
  1005. package/one/things/plans/deep-researcher-agent.md +0 -466
  1006. package/one/things/plans/deploy-to-cloudflare.md +0 -623
  1007. package/one/things/plans/deployment-architecture.md +0 -469
  1008. package/one/things/plans/desktop.md +0 -1139
  1009. package/one/things/plans/development-plan.md +0 -1283
  1010. package/one/things/plans/development-workflow-tldr.md +0 -207
  1011. package/one/things/plans/development-workflow.md +0 -959
  1012. package/one/things/plans/dsl-claude-code.md +0 -1011
  1013. package/one/things/plans/effect-components.md +0 -1743
  1014. package/one/things/plans/effect-patterns-reference.md +0 -2235
  1015. package/one/things/plans/effect.md +0 -1806
  1016. package/one/things/plans/email.md +0 -966
  1017. package/one/things/plans/enhance-auth.md +0 -1692
  1018. package/one/things/plans/execution-strategy.md +0 -1291
  1019. package/one/things/plans/existing-infrastructure.md +0 -712
  1020. package/one/things/plans/feature-based-sites.md +0 -894
  1021. package/one/things/plans/frontend-effects.md +0 -1276
  1022. package/one/things/plans/group-folder-multi-tenancy.md +0 -893
  1023. package/one/things/plans/improve-codebase.md +0 -1811
  1024. package/one/things/plans/install-components.md +0 -215
  1025. package/one/things/plans/integrate-frontend-and-backend.md +0 -603
  1026. package/one/things/plans/landing.md +0 -820
  1027. package/one/things/plans/layout.md +0 -249
  1028. package/one/things/plans/mail-backend.md +0 -1361
  1029. package/one/things/plans/mail.md +0 -2677
  1030. package/one/things/plans/mcp-clear-context-prompt.md +0 -81
  1031. package/one/things/plans/mcp-simple.md +0 -248
  1032. package/one/things/plans/multi-ontology-architecture.md +0 -885
  1033. package/one/things/plans/next-features.md +0 -114
  1034. package/one/things/plans/npx-agent-safety.md +0 -785
  1035. package/one/things/plans/npx-agent.md +0 -1089
  1036. package/one/things/plans/onboarding.md +0 -51
  1037. package/one/things/plans/one-protocol-and-payone-usage.md +0 -82
  1038. package/one/things/plans/one.md +0 -677
  1039. package/one/things/plans/ontology-6-dimensions.md +0 -2201
  1040. package/one/things/plans/ontology-compliance-audit.md +0 -342
  1041. package/one/things/plans/ontology-driven-strategy.md +0 -882
  1042. package/one/things/plans/ontology-refine.md +0 -586
  1043. package/one/things/plans/ontology-ui-approach.md +0 -375
  1044. package/one/things/plans/open-agent.md +0 -840
  1045. package/one/things/plans/performace.md +0 -122
  1046. package/one/things/plans/phase-1-foundation.md +0 -620
  1047. package/one/things/plans/phase-3-implementation.md +0 -1037
  1048. package/one/things/plans/plan-connect-to-api.md +0 -146
  1049. package/one/things/plans/quick-wins.md +0 -1428
  1050. package/one/things/plans/r2.md +0 -777
  1051. package/one/things/plans/readme-backend-cleanup.md +0 -402
  1052. package/one/things/plans/release.md +0 -507
  1053. package/one/things/plans/remove-backend-development-from-agents.md +0 -1331
  1054. package/one/things/plans/repos.md +0 -98
  1055. package/one/things/plans/separate-copy-2.md +0 -1349
  1056. package/one/things/plans/separate-copy-3.md +0 -2479
  1057. package/one/things/plans/separate-copy.md +0 -1349
  1058. package/one/things/plans/separate-demo.md +0 -864
  1059. package/one/things/plans/separate.md +0 -1999
  1060. package/one/things/plans/sequence.md +0 -2040
  1061. package/one/things/plans/shadcn-integration-summary.md +0 -510
  1062. package/one/things/plans/sidebar.md +0 -206
  1063. package/one/things/plans/skills.md +0 -709
  1064. package/one/things/plans/small-fixes.md +0 -23
  1065. package/one/things/plans/start-new.md +0 -764
  1066. package/one/things/plans/switch-off-auth.md +0 -42
  1067. package/one/things/plans/sync-checklist.md +0 -351
  1068. package/one/things/plans/test-backend-connection.md +0 -514
  1069. package/one/things/plans/unified-implementation-plan.md +0 -934
  1070. package/one/things/plans/update-demos.md +0 -581
  1071. package/one/things/plans/use-our-backend.md +0 -572
  1072. package/one/things/plans/video-backend.md +0 -638
  1073. package/one/things/plans/video-frontend.md +0 -490
  1074. package/one/things/plans/video-old-archived.md +0 -656
  1075. package/one/things/plans/wave1-onboarding-100-inferences.md +0 -1686
  1076. package/one/things/plans/wave1-onboarding-vision.md +0 -744
  1077. package/one/things/plans/wave1-orchestration-summary.md +0 -604
  1078. package/one/things/plans/wave1-specialist-assignments.md +0 -1413
  1079. package/one/things/plans/workflow-files.md +0 -1210
  1080. package/one/things/plans/workflow.md +0 -1378
  1081. package/one/things/plans-u.md +0 -905
  1082. package/one/things/products/Blockchain Products.md +0 -6278
  1083. package/one/things/products/cascade-landing-page.md +0 -841
  1084. package/one/things/products/cascade.md +0 -1568
  1085. package/one/things/products/context-engineering.md +0 -1488
  1086. package/one/things/products/onthology.md +0 -15
  1087. package/one/things/products/ontology-ui-shadcn.md +0 -1302
  1088. package/one/things/products/ontology-ui.md +0 -1429
  1089. package/one/things/products/ontology.md +0 -789
  1090. package/one/things/products/sdk.md +0 -573
  1091. package/one/things/promptkit.md +0 -930
  1092. package/one/things/repos/all-repos.md +0 -0
  1093. package/one/things/scripts-clean-mac.sh +0 -409
  1094. package/one/things/service-providers-new.md +0 -1052
  1095. package/one/things/service-providers.md +0 -1121
  1096. package/one/things/structure.md +0 -532
  1097. package/one/things/system.md +0 -618
  1098. package/one/things/templates.md +0 -294
  1099. package/one/things/tests/2-1-dataprovider-interface.md +0 -1216
  1100. package/one/things/tests/2-1-test-analysis.md +0 -544
  1101. package/one/things/things.md +0 -384
  1102. package/one/things/todo-acp-integration.md +0 -744
  1103. package/one/things/todo-ai.md +0 -933
  1104. package/one/things/todo-api.md +0 -1078
  1105. package/one/things/todo-assignment.md +0 -580
  1106. package/one/things/todo-buy-chatgpt.md +0 -1450
  1107. package/one/things/todo-components.md +0 -1683
  1108. package/one/things/todo-connections.md +0 -278
  1109. package/one/things/todo-ecommerce-frontend.md +0 -1313
  1110. package/one/things/todo-ecommerce.md +0 -569
  1111. package/one/things/todo-effects.md +0 -1075
  1112. package/one/things/todo-frontend-effects.md +0 -977
  1113. package/one/things/todo-landing-page.md +0 -1091
  1114. package/one/things/todo-mail.md +0 -1160
  1115. package/one/things/todo-master-plan.md +0 -490
  1116. package/one/things/todo-onboard.md +0 -666
  1117. package/one/things/todo-one-ie.md +0 -538
  1118. package/one/things/todo-page.md +0 -606
  1119. package/one/things/todo-plans.md +0 -282
  1120. package/one/things/todo-projects.md +0 -241
  1121. package/one/things/todo-refactoring-plan.md +0 -366
  1122. package/one/things/todo-release.md +0 -654
  1123. package/one/things/todo-sequence.md +0 -1621
  1124. package/one/things/todo-use-our-backend.md +0 -1908
  1125. package/one/things/todo-workflow.md +0 -626
  1126. package/one/things/todo-x402.md +0 -2047
  1127. package/one/things/todo.md +0 -21
  1128. package/one/things/video/scripts-crypto.md +0 -835
  1129. package/one/things/video-script-backup.md +0 -318
  1130. package/one/things/video-script-demo.md +0 -382
  1131. package/one/things/video-script-ontology.md +0 -333
  1132. 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.**