oneie 3.6.40 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (984) hide show
  1. package/README.md +28 -9
  2. package/dist/admin/build.d.ts +15 -0
  3. package/dist/admin/build.d.ts.map +1 -0
  4. package/dist/admin/build.js +295 -0
  5. package/dist/admin/build.js.map +1 -0
  6. package/dist/admin/index.d.ts +24 -0
  7. package/dist/admin/index.d.ts.map +1 -0
  8. package/dist/admin/index.js +98 -0
  9. package/dist/admin/index.js.map +1 -0
  10. package/dist/admin/list.d.ts +14 -0
  11. package/dist/admin/list.d.ts.map +1 -0
  12. package/dist/admin/list.js +90 -0
  13. package/dist/admin/list.js.map +1 -0
  14. package/dist/admin/manifest.d.ts +86 -0
  15. package/dist/admin/manifest.d.ts.map +1 -0
  16. package/dist/admin/manifest.js +183 -0
  17. package/dist/admin/manifest.js.map +1 -0
  18. package/dist/admin/monorepo.d.ts +25 -0
  19. package/dist/admin/monorepo.d.ts.map +1 -0
  20. package/dist/admin/monorepo.js +59 -0
  21. package/dist/admin/monorepo.js.map +1 -0
  22. package/dist/admin/release.d.ts +17 -0
  23. package/dist/admin/release.d.ts.map +1 -0
  24. package/dist/admin/release.js +144 -0
  25. package/dist/admin/release.js.map +1 -0
  26. package/dist/admin/sync.d.ts +14 -0
  27. package/dist/admin/sync.d.ts.map +1 -0
  28. package/dist/admin/sync.js +104 -0
  29. package/dist/admin/sync.js.map +1 -0
  30. package/dist/admin/validate.d.ts +15 -0
  31. package/dist/admin/validate.d.ts.map +1 -0
  32. package/dist/admin/validate.js +169 -0
  33. package/dist/admin/validate.js.map +1 -0
  34. package/dist/commands/agent.d.ts +2 -0
  35. package/dist/commands/agent.d.ts.map +1 -1
  36. package/dist/commands/agent.js +44 -0
  37. package/dist/commands/agent.js.map +1 -1
  38. package/dist/commands/ask.d.ts +4 -0
  39. package/dist/commands/ask.d.ts.map +1 -0
  40. package/dist/commands/ask.js +8 -0
  41. package/dist/commands/ask.js.map +1 -0
  42. package/dist/commands/bounty.d.ts +4 -0
  43. package/dist/commands/bounty.d.ts.map +1 -0
  44. package/dist/commands/bounty.js +24 -0
  45. package/dist/commands/bounty.js.map +1 -0
  46. package/dist/commands/capabilities.d.ts +4 -0
  47. package/dist/commands/capabilities.d.ts.map +1 -0
  48. package/dist/commands/capabilities.js +18 -0
  49. package/dist/commands/capabilities.js.map +1 -0
  50. package/dist/commands/claw.d.ts +4 -0
  51. package/dist/commands/claw.d.ts.map +1 -0
  52. package/dist/commands/claw.js +14 -0
  53. package/dist/commands/claw.js.map +1 -0
  54. package/dist/commands/commend.d.ts +4 -0
  55. package/dist/commands/commend.d.ts.map +1 -0
  56. package/dist/commands/commend.js +13 -0
  57. package/dist/commands/commend.js.map +1 -0
  58. package/dist/commands/completion.d.ts +4 -0
  59. package/dist/commands/completion.d.ts.map +1 -0
  60. package/dist/commands/completion.js +49 -0
  61. package/dist/commands/completion.js.map +1 -0
  62. package/dist/commands/config.d.ts +4 -0
  63. package/dist/commands/config.d.ts.map +1 -0
  64. package/dist/commands/config.js +78 -0
  65. package/dist/commands/config.js.map +1 -0
  66. package/dist/commands/deploy.d.ts +4 -0
  67. package/dist/commands/deploy.d.ts.map +1 -0
  68. package/dist/commands/deploy.js +10 -0
  69. package/dist/commands/deploy.js.map +1 -0
  70. package/dist/commands/doctor.d.ts +4 -0
  71. package/dist/commands/doctor.d.ts.map +1 -0
  72. package/dist/commands/doctor.js +72 -0
  73. package/dist/commands/doctor.js.map +1 -0
  74. package/dist/commands/export.d.ts +4 -0
  75. package/dist/commands/export.d.ts.map +1 -0
  76. package/dist/commands/export.js +15 -0
  77. package/dist/commands/export.js.map +1 -0
  78. package/dist/commands/fade.d.ts +4 -0
  79. package/dist/commands/fade.d.ts.map +1 -0
  80. package/dist/commands/fade.js +15 -0
  81. package/dist/commands/fade.js.map +1 -0
  82. package/dist/commands/flag.d.ts +4 -0
  83. package/dist/commands/flag.d.ts.map +1 -0
  84. package/dist/commands/flag.js +13 -0
  85. package/dist/commands/flag.js.map +1 -0
  86. package/dist/commands/forget.d.ts +4 -0
  87. package/dist/commands/forget.d.ts.map +1 -0
  88. package/dist/commands/forget.js +16 -0
  89. package/dist/commands/forget.js.map +1 -0
  90. package/dist/commands/frontier.d.ts +4 -0
  91. package/dist/commands/frontier.d.ts.map +1 -0
  92. package/dist/commands/frontier.js +11 -0
  93. package/dist/commands/frontier.js.map +1 -0
  94. package/dist/commands/health.d.ts +4 -0
  95. package/dist/commands/health.d.ts.map +1 -0
  96. package/dist/commands/health.js +11 -0
  97. package/dist/commands/health.js.map +1 -0
  98. package/dist/commands/highways.d.ts +4 -0
  99. package/dist/commands/highways.d.ts.map +1 -0
  100. package/dist/commands/highways.js +14 -0
  101. package/dist/commands/highways.js.map +1 -0
  102. package/dist/commands/hire.d.ts +4 -0
  103. package/dist/commands/hire.d.ts.map +1 -0
  104. package/dist/commands/hire.js +16 -0
  105. package/dist/commands/hire.js.map +1 -0
  106. package/dist/commands/init.d.ts.map +1 -1
  107. package/dist/commands/init.js +69 -42
  108. package/dist/commands/init.js.map +1 -1
  109. package/dist/commands/know.d.ts +4 -0
  110. package/dist/commands/know.d.ts.map +1 -0
  111. package/dist/commands/know.js +8 -0
  112. package/dist/commands/know.js.map +1 -0
  113. package/dist/commands/launch.d.ts +4 -0
  114. package/dist/commands/launch.d.ts.map +1 -0
  115. package/dist/commands/launch.js +16 -0
  116. package/dist/commands/launch.js.map +1 -0
  117. package/dist/commands/mark.d.ts +4 -0
  118. package/dist/commands/mark.d.ts.map +1 -0
  119. package/dist/commands/mark.js +15 -0
  120. package/dist/commands/mark.js.map +1 -0
  121. package/dist/commands/pay.d.ts +4 -0
  122. package/dist/commands/pay.d.ts.map +1 -0
  123. package/dist/commands/pay.js +21 -0
  124. package/dist/commands/pay.js.map +1 -0
  125. package/dist/commands/pipe.d.ts +4 -0
  126. package/dist/commands/pipe.d.ts.map +1 -0
  127. package/dist/commands/pipe.js +35 -0
  128. package/dist/commands/pipe.js.map +1 -0
  129. package/dist/commands/publish.d.ts +4 -0
  130. package/dist/commands/publish.d.ts.map +1 -0
  131. package/dist/commands/publish.js +23 -0
  132. package/dist/commands/publish.js.map +1 -0
  133. package/dist/commands/recall.d.ts +4 -0
  134. package/dist/commands/recall.d.ts.map +1 -0
  135. package/dist/commands/recall.js +12 -0
  136. package/dist/commands/recall.js.map +1 -0
  137. package/dist/commands/repl.d.ts +4 -0
  138. package/dist/commands/repl.d.ts.map +1 -0
  139. package/dist/commands/repl.js +56 -0
  140. package/dist/commands/repl.js.map +1 -0
  141. package/dist/commands/reveal.d.ts +4 -0
  142. package/dist/commands/reveal.d.ts.map +1 -0
  143. package/dist/commands/reveal.js +11 -0
  144. package/dist/commands/reveal.js.map +1 -0
  145. package/dist/commands/revenue.d.ts +4 -0
  146. package/dist/commands/revenue.d.ts.map +1 -0
  147. package/dist/commands/revenue.js +11 -0
  148. package/dist/commands/revenue.js.map +1 -0
  149. package/dist/commands/select.d.ts +4 -0
  150. package/dist/commands/select.d.ts.map +1 -0
  151. package/dist/commands/select.js +19 -0
  152. package/dist/commands/select.js.map +1 -0
  153. package/dist/commands/signal.d.ts +4 -0
  154. package/dist/commands/signal.d.ts.map +1 -0
  155. package/dist/commands/signal.js +8 -0
  156. package/dist/commands/signal.js.map +1 -0
  157. package/dist/commands/stats.d.ts +4 -0
  158. package/dist/commands/stats.d.ts.map +1 -0
  159. package/dist/commands/stats.js +11 -0
  160. package/dist/commands/stats.js.map +1 -0
  161. package/dist/commands/status.d.ts +4 -0
  162. package/dist/commands/status.d.ts.map +1 -0
  163. package/dist/commands/status.js +18 -0
  164. package/dist/commands/status.js.map +1 -0
  165. package/dist/commands/sync.d.ts +4 -0
  166. package/dist/commands/sync.d.ts.map +1 -0
  167. package/dist/commands/sync.js +20 -0
  168. package/dist/commands/sync.js.map +1 -0
  169. package/dist/commands/tail.d.ts +4 -0
  170. package/dist/commands/tail.d.ts.map +1 -0
  171. package/dist/commands/tail.js +51 -0
  172. package/dist/commands/tail.js.map +1 -0
  173. package/dist/commands/warn.d.ts +4 -0
  174. package/dist/commands/warn.d.ts.map +1 -0
  175. package/dist/commands/warn.js +15 -0
  176. package/dist/commands/warn.js.map +1 -0
  177. package/dist/create-org-profile.js +2 -2
  178. package/dist/create-user-profile.js +2 -2
  179. package/dist/index.js +135 -7
  180. package/dist/index.js.map +1 -1
  181. package/dist/lib/args.d.ts +11 -0
  182. package/dist/lib/args.d.ts.map +1 -0
  183. package/dist/lib/args.js +57 -0
  184. package/dist/lib/args.js.map +1 -0
  185. package/dist/lib/config.d.ts +12 -0
  186. package/dist/lib/config.d.ts.map +1 -0
  187. package/dist/lib/config.js +38 -0
  188. package/dist/lib/config.js.map +1 -0
  189. package/dist/lib/http.d.ts +9 -0
  190. package/dist/lib/http.d.ts.map +1 -0
  191. package/dist/lib/http.js +25 -0
  192. package/dist/lib/http.js.map +1 -0
  193. package/dist/lib/output.d.ts +5 -0
  194. package/dist/lib/output.d.ts.map +1 -0
  195. package/dist/lib/output.js +32 -0
  196. package/dist/lib/output.js.map +1 -0
  197. package/dist/lib/sdk.d.ts +10 -0
  198. package/dist/lib/sdk.d.ts.map +1 -0
  199. package/dist/lib/sdk.js +22 -0
  200. package/dist/lib/sdk.js.map +1 -0
  201. package/dist/lib/telemetry.d.ts +4 -0
  202. package/dist/lib/telemetry.d.ts.map +1 -0
  203. package/dist/lib/telemetry.js +61 -0
  204. package/dist/lib/telemetry.js.map +1 -0
  205. package/dist/utils/file-resolver.js +1 -3
  206. package/dist/utils/file-resolver.js.map +1 -1
  207. package/dist/utils/installation-setup.d.ts +15 -0
  208. package/dist/utils/installation-setup.d.ts.map +1 -1
  209. package/dist/utils/installation-setup.js +71 -8
  210. package/dist/utils/installation-setup.js.map +1 -1
  211. package/package.json +5 -21
  212. package/.claude/agents/TROUBLESHOOTING.md +0 -530
  213. package/.claude/agents/agent-backend.md +0 -574
  214. package/.claude/agents/agent-builder.md +0 -911
  215. package/.claude/agents/agent-claude.md +0 -645
  216. package/.claude/agents/agent-clean.md +0 -477
  217. package/.claude/agents/agent-clone.md +0 -554
  218. package/.claude/agents/agent-designer.md +0 -1080
  219. package/.claude/agents/agent-director.md +0 -2254
  220. package/.claude/agents/agent-documenter.md +0 -688
  221. package/.claude/agents/agent-frontend.md +0 -1199
  222. package/.claude/agents/agent-integrator.md +0 -670
  223. package/.claude/agents/agent-lawyer.md +0 -1320
  224. package/.claude/agents/agent-news.md +0 -363
  225. package/.claude/agents/agent-onboard.md +0 -613
  226. package/.claude/agents/agent-ontology.md +0 -585
  227. package/.claude/agents/agent-ops.md +0 -1275
  228. package/.claude/agents/agent-problem-solver.md +0 -669
  229. package/.claude/agents/agent-quality.md +0 -1042
  230. package/.claude/agents/agent-sales.md +0 -507
  231. package/.claude/agents/agent-writer.md +0 -1068
  232. package/.claude/commands/cascade.md +0 -742
  233. package/.claude/commands/chat.md +0 -728
  234. package/.claude/commands/commit.md +0 -95
  235. package/.claude/commands/create.md +0 -544
  236. package/.claude/commands/deploy.md +0 -309
  237. package/.claude/commands/fast.md +0 -636
  238. package/.claude/commands/mcp-on.md +0 -191
  239. package/.claude/commands/media-upload.md +0 -186
  240. package/.claude/commands/news.md +0 -274
  241. package/.claude/commands/onboard.md +0 -440
  242. package/.claude/commands/one.md +0 -398
  243. package/.claude/commands/optimize.md +0 -74
  244. package/.claude/commands/plan.md +0 -719
  245. package/.claude/commands/push.md +0 -214
  246. package/.claude/commands/release.md +0 -105
  247. package/.claude/commands/review.md +0 -99
  248. package/.claude/commands/server.md +0 -487
  249. package/.claude/commands/start.md +0 -227
  250. package/.claude/commands/test.md +0 -197
  251. package/.claude/commands/validate.md +0 -140
  252. package/.claude/hooks/.last-news-context +0 -1
  253. package/.claude/hooks/PULL-BEFORE-PUSH-GUIDE.md +0 -473
  254. package/.claude/hooks/README-knowledge-hooks.md +0 -451
  255. package/.claude/hooks/README-news-generation.md +0 -364
  256. package/.claude/hooks/README-root-cleanup.md +0 -200
  257. package/.claude/hooks/README.md +0 -284
  258. package/.claude/hooks/__pycache__/todo.cpython-312.pyc +0 -0
  259. package/.claude/hooks/__pycache__/todo.cpython-313.pyc +0 -0
  260. package/.claude/hooks/auto-format.sh +0 -106
  261. package/.claude/hooks/check-filenames.py +0 -177
  262. package/.claude/hooks/clean-post.py +0 -468
  263. package/.claude/hooks/clean-pre.py +0 -393
  264. package/.claude/hooks/clean-root-markdown.sh +0 -73
  265. package/.claude/hooks/commit-push.sh +0 -95
  266. package/.claude/hooks/done.py +0 -236
  267. package/.claude/hooks/format-hook.sh +0 -163
  268. package/.claude/hooks/formatting.py +0 -187
  269. package/.claude/hooks/hook-logger.sh +0 -173
  270. package/.claude/hooks/knowledge-post.py +0 -355
  271. package/.claude/hooks/knowledge-pre.py +0 -245
  272. package/.claude/hooks/mcp-on.sh +0 -134
  273. package/.claude/hooks/notification-hook.sh +0 -279
  274. package/.claude/hooks/ontology-validation.py +0 -255
  275. package/.claude/hooks/push.sh +0 -153
  276. package/.claude/hooks/release-cli.sh +0 -205
  277. package/.claude/hooks/root-cleanup.py +0 -217
  278. package/.claude/hooks/security-hook.sh +0 -397
  279. package/.claude/hooks/tag-all-docs.py +0 -464
  280. package/.claude/hooks/test-validate-ontology.sh +0 -170
  281. package/.claude/hooks/todo.py +0 -368
  282. package/.claude/hooks/track-changes.sh +0 -101
  283. package/.claude/hooks/validate-imports.py +0 -182
  284. package/.claude/hooks/validate-ontology-structure-summary.md +0 -243
  285. package/.claude/hooks/validate-ontology-structure.py +0 -558
  286. package/.claude/hooks/validate-ontology-structure.py.backup +0 -518
  287. package/.claude/hooks/validate-ontology.py +0 -140
  288. package/.claude/hooks/write-news.sh +0 -194
  289. package/.claude/skills/INDEX.md +0 -523
  290. package/.claude/skills/REGISTRY.md +0 -529
  291. package/.claude/skills/agent-backend-create-mutation.md +0 -319
  292. package/.claude/skills/agent-designer-create-wireframe.md +0 -341
  293. package/.claude/skills/agent-frontend-create-page.md +0 -413
  294. package/.claude/skills/agents/README.md +0 -238
  295. package/.claude/skills/astro/add-content-collection.md +0 -30
  296. package/.claude/skills/astro/check-build.md +0 -29
  297. package/.claude/skills/astro/create-component.md +0 -29
  298. package/.claude/skills/astro/create-page.md +0 -30
  299. package/.claude/skills/astro/optimize-performance.md +0 -21
  300. package/.claude/skills/convex/check-deployment.md +0 -46
  301. package/.claude/skills/convex/create-mutation.md +0 -405
  302. package/.claude/skills/convex/create-query.md +0 -52
  303. package/.claude/skills/convex/read-schema.md +0 -373
  304. package/.claude/skills/convex/test-function.md +0 -50
  305. package/.claude/skills/deployment/check-deployment-health.md +0 -20
  306. package/.claude/skills/deployment/create-release.md +0 -21
  307. package/.claude/skills/deployment/deploy-cloudflare.md +0 -31
  308. package/.claude/skills/deployment/deploy-convex.md +0 -30
  309. package/.claude/skills/deployment/sync-repositories.md +0 -19
  310. package/.claude/skills/design/check-accessibility.md +0 -21
  311. package/.claude/skills/design/create-component-spec.md +0 -27
  312. package/.claude/skills/design/generate-design-tokens.md +0 -24
  313. package/.claude/skills/design/generate-wireframe.md +0 -30
  314. package/.claude/skills/documentation/create-migration-guide.md +0 -20
  315. package/.claude/skills/documentation/generate-api-docs.md +0 -27
  316. package/.claude/skills/documentation/generate-readme.md +0 -22
  317. package/.claude/skills/documentation/update-knowledge.md +0 -20
  318. package/.claude/skills/integration/connect-external-system.md +0 -21
  319. package/.claude/skills/integration/implement-a2a.md +0 -20
  320. package/.claude/skills/integration/implement-acp.md +0 -20
  321. package/.claude/skills/integration/verify-integration.md +0 -20
  322. package/.claude/skills/ontology/README.md +0 -255
  323. package/.claude/skills/ontology/check-dimension.md +0 -307
  324. package/.claude/skills/ontology/generate-entity-type.md +0 -339
  325. package/.claude/skills/ontology/validate-schema.md +0 -229
  326. package/.claude/skills/ontology/verify-relationships.md +0 -310
  327. package/.claude/skills/problem-solving/analyze-test-failure.md +0 -21
  328. package/.claude/skills/problem-solving/identify-root-cause.md +0 -20
  329. package/.claude/skills/problem-solving/propose-solution.md +0 -29
  330. package/.claude/skills/problem-solving/verify-fix.md +0 -21
  331. package/.claude/skills/sales/generate-demo-script.md +0 -21
  332. package/.claude/skills/sales/qualify-lead.md +0 -30
  333. package/.claude/skills/sales/track-trial.md +0 -20
  334. package/.claude/skills/sales/verify-kyc.md +0 -20
  335. package/.claude/skills/testing/analyze-coverage.md +0 -24
  336. package/.claude/skills/testing/generate-tests.md +0 -24
  337. package/.claude/skills/testing/run-tests.md +0 -27
  338. package/.claude/skills/testing/validate-e2e.md +0 -25
  339. package/AGENTS.md +0 -60
  340. package/CLAUDE.md +0 -321
  341. package/CREATE-WEBSITE.md +0 -458
  342. package/SECURITY.md +0 -31
  343. package/dist/commands/create-website.d.ts +0 -19
  344. package/dist/commands/create-website.d.ts.map +0 -1
  345. package/dist/commands/create-website.js +0 -231
  346. package/dist/commands/create-website.js.map +0 -1
  347. package/folders.yaml +0 -92
  348. package/one/README.md +0 -760
  349. package/one/connections/a2a.md +0 -600
  350. package/one/connections/acp.md +0 -808
  351. package/one/connections/acps.md +0 -749
  352. package/one/connections/agentkit.md +0 -367
  353. package/one/connections/agui.md +0 -785
  354. package/one/connections/any-backend.md +0 -1720
  355. package/one/connections/ap2.md +0 -1072
  356. package/one/connections/api/queries-reference.md +0 -860
  357. package/one/connections/api-docs.md +0 -1909
  358. package/one/connections/api-reference.md +0 -1029
  359. package/one/connections/api.md +0 -2208
  360. package/one/connections/architecture-diagram.md +0 -112
  361. package/one/connections/communications.md +0 -467
  362. package/one/connections/connections.md +0 -357
  363. package/one/connections/copilotkit.md +0 -1577
  364. package/one/connections/cryptonetworks.md +0 -799
  365. package/one/connections/documentation.md +0 -1138
  366. package/one/connections/effect.md +0 -297
  367. package/one/connections/elizaos.md +0 -1308
  368. package/one/connections/groups.md +0 -814
  369. package/one/connections/inference.md +0 -76
  370. package/one/connections/integration-examples.md +0 -893
  371. package/one/connections/integration-guide.md +0 -887
  372. package/one/connections/integration-phase2.md +0 -754
  373. package/one/connections/kyc.md +0 -650
  374. package/one/connections/mcp.md +0 -860
  375. package/one/connections/membership.md +0 -1170
  376. package/one/connections/middleware.md +0 -1085
  377. package/one/connections/multitenant.md +0 -1359
  378. package/one/connections/n8n.md +0 -1033
  379. package/one/connections/patterns.md +0 -107
  380. package/one/connections/protocols.md +0 -297
  381. package/one/connections/relationships.md +0 -125
  382. package/one/connections/schema.md +0 -605
  383. package/one/connections/service-layer.md +0 -568
  384. package/one/connections/vectors.md +0 -225
  385. package/one/connections/wordpress.md +0 -1320
  386. package/one/connections/workflow-copy.md +0 -923
  387. package/one/connections/workflow-examples.md +0 -759
  388. package/one/connections/workflow-onboarding.md +0 -701
  389. package/one/connections/workflow.md +0 -923
  390. package/one/connections/workflows/delegation.md +0 -903
  391. package/one/connections/workflows/frontend.md +0 -1055
  392. package/one/connections/workflows/strategy.md +0 -921
  393. package/one/connections/workflows/tasks.md +0 -716
  394. package/one/connections/x402-baazar.md +0 -131
  395. package/one/connections/x402.md +0 -1353
  396. package/one/groups/features.md +0 -2904
  397. package/one/groups/groups.md +0 -587
  398. package/one/groups/one.md +0 -619
  399. package/one/groups/strategy-copy.md +0 -887
  400. package/one/knowledge/.obsidian/app.json +0 -1
  401. package/one/knowledge/.obsidian/appearance.json +0 -1
  402. package/one/knowledge/.obsidian/core-plugins.json +0 -33
  403. package/one/knowledge/.obsidian/ecommerce-ontology.md +0 -210
  404. package/one/knowledge/.obsidian/workspace.json +0 -211
  405. package/one/knowledge/100-inference-quick-reference.md +0 -449
  406. package/one/knowledge/ag-ui-protocol.md +0 -613
  407. package/one/knowledge/agent-onboard-usage.md +0 -630
  408. package/one/knowledge/agentic-commerce.md +0 -146
  409. package/one/knowledge/ai-agents-vs-memecoins-thesis.md +0 -683
  410. package/one/knowledge/ai-api-reference.md +0 -715
  411. package/one/knowledge/ai-platform.md +0 -323
  412. package/one/knowledge/ai-quickstart.md +0 -355
  413. package/one/knowledge/ai-sdk-implementation.md +0 -436
  414. package/one/knowledge/ai-token-crypto-analysis-framework.md +0 -1191
  415. package/one/knowledge/ai-token-paradigm-shift-2025.md +0 -732
  416. package/one/knowledge/altcoin-cycle-prediction-ontology.md +0 -884
  417. package/one/knowledge/altcoin-cycle-trading-strategy.md +0 -642
  418. package/one/knowledge/architecture-any-backend.md +0 -1589
  419. package/one/knowledge/architecture-diagram.md +0 -404
  420. package/one/knowledge/architecture-frontend.md +0 -1014
  421. package/one/knowledge/architecture.md +0 -1742
  422. package/one/knowledge/archived/ontology.old.md +0 -2840
  423. package/one/knowledge/astro-effect-complete-vision.md +0 -2148
  424. package/one/knowledge/astro-effect-simple-architecture.md +0 -750
  425. package/one/knowledge/audit-agent-onboard-alignment.md +0 -481
  426. package/one/knowledge/audit-agent-sales-alignment.md +0 -444
  427. package/one/knowledge/backend-api-reference.md +0 -728
  428. package/one/knowledge/cascading-context-specification.md +0 -1617
  429. package/one/knowledge/claude-code-integration.md +0 -1293
  430. package/one/knowledge/cli-claude-handoff.md +0 -736
  431. package/one/knowledge/context-engineering.md +0 -610
  432. package/one/knowledge/crypto-analysis-strategy.md +0 -1276
  433. package/one/knowledge/crypto-cycle-2024-2025-analysis.md +0 -44
  434. package/one/knowledge/crypto.md +0 -978
  435. package/one/knowledge/develop/design.md +0 -364
  436. package/one/knowledge/develop/index.md +0 -145
  437. package/one/knowledge/development-commands.md +0 -251
  438. package/one/knowledge/docs.md +0 -627
  439. package/one/knowledge/dsl.md +0 -1678
  440. package/one/knowledge/event-driven-documentation.md +0 -270
  441. package/one/knowledge/files.md +0 -2489
  442. package/one/knowledge/frontend.md +0 -1056
  443. package/one/knowledge/games-english.md +0 -691
  444. package/one/knowledge/games.md +0 -1082
  445. package/one/knowledge/generative-ui-patterns.md +0 -559
  446. package/one/knowledge/guidelines.md +0 -314
  447. package/one/knowledge/hono.md +0 -2127
  448. package/one/knowledge/implementation-examples.md +0 -2554
  449. package/one/knowledge/installation-folders.md +0 -366
  450. package/one/knowledge/institutional-cycle-paradigm-2025.md +0 -555
  451. package/one/knowledge/knowledge.md +0 -660
  452. package/one/knowledge/language.md +0 -998
  453. package/one/knowledge/lessons-learned.md +0 -378
  454. package/one/knowledge/lessons-website-building-focus.md +0 -382
  455. package/one/knowledge/merge-report.md +0 -254
  456. package/one/knowledge/metadata-system.md +0 -504
  457. package/one/knowledge/nine-padel-playbook.md +0 -229
  458. package/one/knowledge/one-protocol-ai-agents.md +0 -892
  459. package/one/knowledge/one-protocol-executive-report.md +0 -617
  460. package/one/knowledge/one-protocol-standard.md +0 -869
  461. package/one/knowledge/one-protocol-whitepaper.md +0 -756
  462. package/one/knowledge/ontology-blog.yaml +0 -47
  463. package/one/knowledge/ontology-cheatsheet.md +0 -617
  464. package/one/knowledge/ontology-community.yaml +0 -65
  465. package/one/knowledge/ontology-core-universal.md +0 -740
  466. package/one/knowledge/ontology-core.yaml +0 -63
  467. package/one/knowledge/ontology-courses.yaml +0 -76
  468. package/one/knowledge/ontology-creator.md +0 -402
  469. package/one/knowledge/ontology-crypto.md +0 -1603
  470. package/one/knowledge/ontology-developer-guide.md +0 -814
  471. package/one/knowledge/ontology-documentation.md +0 -377
  472. package/one/knowledge/ontology-ecommerce.md +0 -269
  473. package/one/knowledge/ontology-education-game.md +0 -1654
  474. package/one/knowledge/ontology-education.md +0 -938
  475. package/one/knowledge/ontology-engineering-specification.md +0 -1310
  476. package/one/knowledge/ontology-engineering.md +0 -1676
  477. package/one/knowledge/ontology-files.yaml +0 -525
  478. package/one/knowledge/ontology-frontend-master.md +0 -2898
  479. package/one/knowledge/ontology-frontend-specifications.md +0 -2196
  480. package/one/knowledge/ontology-frontend.md +0 -2475
  481. package/one/knowledge/ontology-index.md +0 -397
  482. package/one/knowledge/ontology-minimal.yaml +0 -301
  483. package/one/knowledge/ontology-portfolio.yaml +0 -45
  484. package/one/knowledge/ontology-quickstart.md +0 -602
  485. package/one/knowledge/ontology-release.md +0 -317
  486. package/one/knowledge/ontology-shop.yaml +0 -148
  487. package/one/knowledge/ontology-tokens.yaml +0 -51
  488. package/one/knowledge/ontology-tutorial.md +0 -455
  489. package/one/knowledge/ontology-v2.md +0 -4449
  490. package/one/knowledge/ontology-video-script.md +0 -939
  491. package/one/knowledge/ontology-visual-guide.md +0 -378
  492. package/one/knowledge/ontology.md +0 -3847
  493. package/one/knowledge/ontology.yaml +0 -1653
  494. package/one/knowledge/parallel-agents.md +0 -932
  495. package/one/knowledge/patterns/backend/convex-mutation-pattern.md +0 -130
  496. package/one/knowledge/patterns/backend/convex-query-pattern.md +0 -143
  497. package/one/knowledge/patterns/backend/mutation-template.md +0 -249
  498. package/one/knowledge/patterns/backend/query-template.md +0 -286
  499. package/one/knowledge/patterns/backend/service-template.md +0 -258
  500. package/one/knowledge/patterns/design/component-architecture.md +0 -435
  501. package/one/knowledge/patterns/design/index.md +0 -160
  502. package/one/knowledge/patterns/design/test-driven-design-pattern.md +0 -196
  503. package/one/knowledge/patterns/design/wireframe-template.md +0 -250
  504. package/one/knowledge/patterns/frontend/component-template.md +0 -246
  505. package/one/knowledge/patterns/frontend/form-template.md +0 -348
  506. package/one/knowledge/patterns/frontend/page-template.md +0 -209
  507. package/one/knowledge/patterns/frontend/react-component-pattern.md +0 -188
  508. package/one/knowledge/patterns/test/acceptance-criteria-template.md +0 -396
  509. package/one/knowledge/patterns/test/technical-test-template.md +0 -566
  510. package/one/knowledge/patterns/test/test-driven-pattern.md +0 -160
  511. package/one/knowledge/patterns/test/user-flow-template.md +0 -272
  512. package/one/knowledge/performance.md +0 -459
  513. package/one/knowledge/provider-agnostic-content.md +0 -995
  514. package/one/knowledge/provider-creation-guide.md +0 -1082
  515. package/one/knowledge/quality-loop.md +0 -419
  516. package/one/knowledge/quick-start-ontology-mapping.md +0 -773
  517. package/one/knowledge/readme-architecture.md +0 -158
  518. package/one/knowledge/readme.md +0 -149
  519. package/one/knowledge/rules.md +0 -644
  520. package/one/knowledge/score.md +0 -85
  521. package/one/knowledge/specifications.md +0 -873
  522. package/one/knowledge/tags.md +0 -148
  523. package/one/knowledge/todo-template.md +0 -269
  524. package/one/knowledge/todo.md +0 -269
  525. package/one/knowledge/troubleshooting.md +0 -434
  526. package/one/knowledge/typescript-patterns.md +0 -321
  527. package/one/knowledge/universal-generation-language.md +0 -827
  528. package/one/knowledge/x402-research.md +0 -104
  529. package/one/license.md +0 -107
  530. package/one/people/anthony-o-connell.md +0 -469
  531. package/one/people/people.md +0 -590
  532. package/one/things/ALIGNMENT_AUDIT_QUALITY_AGENT.md +0 -401
  533. package/one/things/AUDIT_AGENT_INTEGRATOR_ALIGNMENT.md +0 -588
  534. package/one/things/AUDIT_REPORT_AGENT_CLEAN.md +0 -461
  535. package/one/things/CHECKLIST.md +0 -407
  536. package/one/things/IMPLEMENTATION_STATUS.md +0 -379
  537. package/one/things/ONE.md +0 -529
  538. package/one/things/agents/agent-backend.md +0 -1501
  539. package/one/things/agents/agent-builder.md +0 -1064
  540. package/one/things/agents/agent-clean.md +0 -1112
  541. package/one/things/agents/agent-clone.md +0 -1324
  542. package/one/things/agents/agent-deploy.md +0 -986
  543. package/one/things/agents/agent-designer.md +0 -2305
  544. package/one/things/agents/agent-director.md +0 -1526
  545. package/one/things/agents/agent-documenter.md +0 -1129
  546. package/one/things/agents/agent-frontend.md +0 -1201
  547. package/one/things/agents/agent-integrator.md +0 -1269
  548. package/one/things/agents/agent-lawyer.md +0 -1371
  549. package/one/things/agents/agent-problem-solver.md +0 -1457
  550. package/one/things/agents/agent-quality.md +0 -1483
  551. package/one/things/agents/agent-sales.md +0 -1074
  552. package/one/things/cascade/cascade.yaml +0 -481
  553. package/one/things/cascade/docs/examples/1-1-agent-prompts/design.md +0 -523
  554. package/one/things/cascade/docs/examples/1-1-agent-prompts/tests.md +0 -314
  555. package/one/things/cascade/docs/examples/1-1-agent-prompts.md +0 -562
  556. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/design.md +0 -543
  557. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator/tests.md +0 -272
  558. package/one/things/cascade/docs/examples/1-2-yaml-orchestrator.md +0 -548
  559. package/one/things/cascade/docs/examples/1-3-event-coordination/design.md +0 -586
  560. package/one/things/cascade/docs/examples/1-3-event-coordination/tests.md +0 -267
  561. package/one/things/cascade/docs/examples/1-3-event-coordination.md +0 -547
  562. package/one/things/cascade/docs/examples/1-4-knowledge-management/design.md +0 -665
  563. package/one/things/cascade/docs/examples/1-4-knowledge-management/tests.md +0 -236
  564. package/one/things/cascade/docs/examples/1-4-knowledge-management.md +0 -652
  565. package/one/things/cascade/docs/examples/1-5-quality-loops/design.md +0 -860
  566. package/one/things/cascade/docs/examples/1-5-quality-loops/tests.md +0 -255
  567. package/one/things/cascade/docs/examples/1-5-quality-loops.md +0 -725
  568. package/one/things/cascade/docs/examples/1-6-numbering-structure/design.md +0 -659
  569. package/one/things/cascade/docs/examples/1-6-numbering-structure/tests.md +0 -256
  570. package/one/things/cascade/docs/examples/1-6-numbering-structure.md +0 -639
  571. package/one/things/cascade/docs/examples/readme.md +0 -259
  572. package/one/things/cascade/docs/getting-started.md +0 -533
  573. package/one/things/cascade/docs/workflow.md +0 -1378
  574. package/one/things/cascade/readme.md +0 -379
  575. package/one/things/cascade/templates/feature-template.md +0 -289
  576. package/one/things/claude/agents/advocacy-activation-manager.md +0 -710
  577. package/one/things/claude/agents/advocacy-campaign-designer.md +0 -688
  578. package/one/things/claude/agents/analyst.md +0 -508
  579. package/one/things/claude/agents/architect.md +0 -505
  580. package/one/things/claude/agents/brand-identity-specialist.md +0 -538
  581. package/one/things/claude/agents/bstp-token-strategist.md +0 -690
  582. package/one/things/claude/agents/builder-repo.md +0 -532
  583. package/one/things/claude/agents/bullstamp-community-builder.md +0 -597
  584. package/one/things/claude/agents/bullstamp-marketing-orchestrator.md +0 -529
  585. package/one/things/claude/agents/bulltilt-platform-growth.md +0 -590
  586. package/one/things/claude/agents/company-bullstamp-character.md +0 -602
  587. package/one/things/claude/agents/company-bullstamp-community.md +0 -307
  588. package/one/things/claude/agents/company-bullstamp-marketing.md +0 -307
  589. package/one/things/claude/agents/company-bullstamp-token.md +0 -307
  590. package/one/things/claude/agents/company-bulltilt-growth.md +0 -307
  591. package/one/things/claude/agents/content-bibliography-formatter.md +0 -404
  592. package/one/things/claude/agents/content-calendar-planner.md +0 -473
  593. package/one/things/claude/agents/content-chapter-formatter.md +0 -513
  594. package/one/things/claude/agents/content-formatter.md +0 -571
  595. package/one/things/claude/agents/content-hook-specialist.md +0 -485
  596. package/one/things/claude/agents/content-image-formatter.md +0 -560
  597. package/one/things/claude/agents/content-introduction-formatter.md +0 -510
  598. package/one/things/claude/agents/content-multiplication-engine.md +0 -579
  599. package/one/things/claude/agents/content-playbook-writer.md +0 -473
  600. package/one/things/claude/agents/content-team-manager.md +0 -647
  601. package/one/things/claude/agents/content-toc-formatter.md +0 -547
  602. package/one/things/claude/agents/convex-backend-specialist.md +0 -2725
  603. package/one/things/claude/agents/core-manager.md +0 -607
  604. package/one/things/claude/agents/core-master.md +0 -426
  605. package/one/things/claude/agents/cross-functional-manager.md +0 -476
  606. package/one/things/claude/agents/crypto-airdrop-strategist.md +0 -622
  607. package/one/things/claude/agents/crypto-analytics-educator.md +0 -596
  608. package/one/things/claude/agents/crypto-architecture-specialist.md +0 -497
  609. package/one/things/claude/agents/crypto-community-analyst.md +0 -314
  610. package/one/things/claude/agents/crypto-community-psychologist.md +0 -546
  611. package/one/things/claude/agents/crypto-dex-optimization-expert.md +0 -579
  612. package/one/things/claude/agents/crypto-dex-optimizer.md +0 -307
  613. package/one/things/claude/agents/crypto-diamond-formation-specialist.md +0 -552
  614. package/one/things/claude/agents/crypto-diamond-hands.md +0 -307
  615. package/one/things/claude/agents/crypto-ecosystem-expansion-manager.md +0 -597
  616. package/one/things/claude/agents/crypto-engagement-specialist.md +0 -581
  617. package/one/things/claude/agents/crypto-market-researcher.md +0 -307
  618. package/one/things/claude/agents/crypto-marketing-orchestrator.md +0 -563
  619. package/one/things/claude/agents/crypto-network-effect-amplifier.md +0 -614
  620. package/one/things/claude/agents/crypto-optimization-analyst.md +0 -597
  621. package/one/things/claude/agents/crypto-strategic-synthesizer.md +0 -556
  622. package/one/things/claude/agents/crypto-team-manager.md +0 -392
  623. package/one/things/claude/agents/crypto-token-analyst.md +0 -319
  624. package/one/things/claude/agents/crypto-viral-content-creator.md +0 -549
  625. package/one/things/claude/agents/crypto-wallet-identification-expert.md +0 -527
  626. package/one/things/claude/agents/crypto-wallet-identifier.md +0 -307
  627. package/one/things/claude/agents/customer-journey-designer.md +0 -474
  628. package/one/things/claude/agents/customer-success-manager.md +0 -574
  629. package/one/things/claude/agents/dev.md +0 -406
  630. package/one/things/claude/agents/documenter.md +0 -548
  631. package/one/things/claude/agents/elevate-marketing-orchestrator.md +0 -403
  632. package/one/things/claude/agents/engagement-specialist.md +0 -502
  633. package/one/things/claude/agents/engineering-architect.md +0 -387
  634. package/one/things/claude/agents/engineering-business-analyst.md +0 -527
  635. package/one/things/claude/agents/engineering-developer.md +0 -386
  636. package/one/things/claude/agents/engineering-director.md +0 -322
  637. package/one/things/claude/agents/engineering-ingestor.md +0 -659
  638. package/one/things/claude/agents/engineering-product-manager.md +0 -525
  639. package/one/things/claude/agents/engineering-product-owner.md +0 -527
  640. package/one/things/claude/agents/engineering-project-coordinator.md +0 -525
  641. package/one/things/claude/agents/engineering-quality-assurance.md +0 -392
  642. package/one/things/claude/agents/engineering-team-manager.md +0 -515
  643. package/one/things/claude/agents/engineering-user-experience.md +0 -386
  644. package/one/things/claude/agents/framework-elevate-manager.md +0 -309
  645. package/one/things/claude/agents/improver.md +0 -805
  646. package/one/things/claude/agents/intelligence-team-manager.md +0 -390
  647. package/one/things/claude/agents/lead-capture-expert.md +0 -459
  648. package/one/things/claude/agents/lead-magnet-creator.md +0 -446
  649. package/one/things/claude/agents/market-research-analyst.md +0 -435
  650. package/one/things/claude/agents/marketing-brand-identity.md +0 -344
  651. package/one/things/claude/agents/marketing-content-hooks.md +0 -455
  652. package/one/things/claude/agents/marketing-content-multiplier.md +0 -331
  653. package/one/things/claude/agents/marketing-content-poster.md +0 -372
  654. package/one/things/claude/agents/marketing-customer-journey.md +0 -331
  655. package/one/things/claude/agents/marketing-director.md +0 -402
  656. package/one/things/claude/agents/marketing-engagement.md +0 -331
  657. package/one/things/claude/agents/marketing-lead-capture.md +0 -331
  658. package/one/things/claude/agents/marketing-lead-magnet.md +0 -331
  659. package/one/things/claude/agents/marketing-network-effects.md +0 -331
  660. package/one/things/claude/agents/marketing-nurture-campaigns.md +0 -331
  661. package/one/things/claude/agents/marketing-share-optimizer.md +0 -331
  662. package/one/things/claude/agents/marketing-team-manager.md +0 -451
  663. package/one/things/claude/agents/marketing-viral-growth.md +0 -232
  664. package/one/things/claude/agents/mission-commander.md +0 -378
  665. package/one/things/claude/agents/network-effect-analyst.md +0 -604
  666. package/one/things/claude/agents/nextjs-15-specialist.md +0 -1634
  667. package/one/things/claude/agents/npx.md +0 -946
  668. package/one/things/claude/agents/nurture-campaign-manager.md +0 -554
  669. package/one/things/claude/agents/one-master.md +0 -378
  670. package/one/things/claude/agents/one-orchestrator.md +0 -345
  671. package/one/things/claude/agents/one.md +0 -658
  672. package/one/things/claude/agents/playbook-generator.md +0 -526
  673. package/one/things/claude/agents/pm.md +0 -349
  674. package/one/things/claude/agents/po.md +0 -370
  675. package/one/things/claude/agents/qa.md +0 -361
  676. package/one/things/claude/agents/research-foundation-analyst.md +0 -324
  677. package/one/things/claude/agents/research-intelligence-gatherer.md +0 -435
  678. package/one/things/claude/agents/research-market-analyst.md +0 -324
  679. package/one/things/claude/agents/research-team-manager.md +0 -489
  680. package/one/things/claude/agents/sales-environment-optimizer.md +0 -519
  681. package/one/things/claude/agents/sales-team-manager.md +0 -407
  682. package/one/things/claude/agents/sales-upsell-strategist.md +0 -324
  683. package/one/things/claude/agents/service-advocacy-campaigns.md +0 -324
  684. package/one/things/claude/agents/service-advocacy-manager.md +0 -324
  685. package/one/things/claude/agents/service-success-manager.md +0 -324
  686. package/one/things/claude/agents/service-team-manager.md +0 -405
  687. package/one/things/claude/agents/shadcn-ui-design-system-specialist.md +0 -2357
  688. package/one/things/claude/agents/share-optimization-specialist.md +0 -576
  689. package/one/things/claude/agents/sm.md +0 -352
  690. package/one/things/claude/agents/story-teller.md +0 -498
  691. package/one/things/claude/agents/task-master.md +0 -621
  692. package/one/things/claude/agents/tauri-cross-platform-specialist.md +0 -1912
  693. package/one/things/claude/agents/tester.md +0 -595
  694. package/one/things/claude/agents/the-bull-character-manager.md +0 -603
  695. package/one/things/claude/agents/tools-playbook-generator.md +0 -492
  696. package/one/things/claude/agents/turbo-repo-builder.md +0 -346
  697. package/one/things/claude/agents/upsell-strategist.md +0 -503
  698. package/one/things/claude/agents/ux-expert.md +0 -360
  699. package/one/things/claude/agents/viral-growth-orchestrator.md +0 -520
  700. package/one/things/claude/claude-code-hooks-development.json +0 -21
  701. package/one/things/claude/claude-code-hooks-production.json +0 -21
  702. package/one/things/claude/claude-code-hooks.json +0 -25
  703. package/one/things/claude/commands/agent.md +0 -124
  704. package/one/things/claude/commands/cascade-status.md +0 -153
  705. package/one/things/claude/commands/ingest.md +0 -343
  706. package/one/things/claude/commands/ingestor.md +0 -158
  707. package/one/things/claude/commands/mission.md +0 -103
  708. package/one/things/claude/commands/npx.md +0 -156
  709. package/one/things/claude/commands/one.md +0 -486
  710. package/one/things/claude/commands/quality-check.md +0 -252
  711. package/one/things/claude/commands/smart-route.md +0 -261
  712. package/one/things/claude/commands/start.md +0 -139
  713. package/one/things/claude/commands/story.md +0 -103
  714. package/one/things/claude/commands/task.md +0 -193
  715. package/one/things/claude/hook-bypass.json +0 -32
  716. package/one/things/claude/hooks/agent-hook-config.json +0 -427
  717. package/one/things/claude/hooks/build-hook.sh +0 -156
  718. package/one/things/claude/hooks/cleanup-hook.sh +0 -201
  719. package/one/things/claude/hooks/file-organization-hook.sh +0 -80
  720. package/one/things/claude/hooks/format-hook.sh +0 -43
  721. package/one/things/claude/hooks/hook-bypass.sh +0 -293
  722. package/one/things/claude/hooks/hook-debouncer.sh +0 -62
  723. package/one/things/claude/hooks/hook-logger.sh +0 -89
  724. package/one/things/claude/hooks/lint-hook.sh +0 -140
  725. package/one/things/claude/hooks/notification-hook.sh +0 -204
  726. package/one/things/claude/hooks/ontology-validation-hook.sh +0 -86
  727. package/one/things/claude/hooks/performance-metrics.json +0 -25
  728. package/one/things/claude/hooks/security-hook.sh +0 -256
  729. package/one/things/claude/hooks/story-validation-hook-enhanced.sh +0 -210
  730. package/one/things/claude/hooks/story-validation-hook.sh +0 -145
  731. package/one/things/claude/hooks/test-hook.sh +0 -145
  732. package/one/things/claude/hooks/test-story-validation.sh +0 -170
  733. package/one/things/claude/settings-local.json +0 -86
  734. package/one/things/cli/cli-code.md +0 -677
  735. package/one/things/cli/cli-compiler-code.md +0 -677
  736. package/one/things/cli/cli.md +0 -871
  737. package/one/things/components/card-shadcn.md +0 -953
  738. package/one/things/components/card.md +0 -1041
  739. package/one/things/components.md +0 -1743
  740. package/one/things/componets.md +0 -19
  741. package/one/things/contracts/Move.toml +0 -12
  742. package/one/things/contracts/README.md +0 -288
  743. package/one/things/contracts/one.move +0 -762
  744. package/one/things/contracts/sdk.ts +0 -578
  745. package/one/things/creator-diagram.md +0 -184
  746. package/one/things/crypto/FEATURES.md +0 -78
  747. package/one/things/crypto/ONECORE.md +0 -62
  748. package/one/things/crypto/ONECOREFAQ.md +0 -22
  749. package/one/things/crypto/ONECOREHOW.md +0 -46
  750. package/one/things/crypto/ONEENTERPRISE.md +0 -64
  751. package/one/things/crypto/ONEENTERPRISEFAQ.md +0 -64
  752. package/one/things/crypto/ONEENTERPRISEHOW.md +0 -53
  753. package/one/things/crypto/ONEPRO.md +0 -60
  754. package/one/things/crypto/ONEPROFAQ.md +0 -22
  755. package/one/things/crypto/ONEPROHOW.md +0 -53
  756. package/one/things/crypto/READMEAGENCY.md +0 -64
  757. package/one/things/crypto/VSL.md +0 -45
  758. package/one/things/crypto/WebsiteCopy.md +0 -176
  759. package/one/things/demo-accessibility-animations.md +0 -1025
  760. package/one/things/demo-components.md +0 -1310
  761. package/one/things/demo-design-summary.md +0 -692
  762. package/one/things/demo-design-system.md +0 -973
  763. package/one/things/demo-page-layouts.md +0 -1016
  764. package/one/things/design-system.md +0 -832
  765. package/one/things/designs/accessibility-audit.md +0 -877
  766. package/one/things/designs/component-specifications.md +0 -855
  767. package/one/things/designs/design-overview.md +0 -377
  768. package/one/things/designs/design-tokens.md +0 -448
  769. package/one/things/designs/wireframes-dashboard.md +0 -710
  770. package/one/things/docs/api-requests.md +0 -987
  771. package/one/things/docs/ecommerce/ARCHITECTURE-DIAGRAM.md +0 -485
  772. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-IMPLEMENTATION.md +0 -465
  773. package/one/things/docs/ecommerce/CONVERSION-ELEMENTS-SUMMARY.md +0 -425
  774. package/one/things/docs/ecommerce/CONVERSION-UX-IMPLEMENTATION-SUMMARY.md +0 -451
  775. package/one/things/docs/ecommerce/FEATURE-SUMMARY.md +0 -536
  776. package/one/things/docs/ecommerce/IMPLEMENTATION-NOTES.md +0 -650
  777. package/one/things/docs/ecommerce/INTEGRATION-EXAMPLE.md +0 -473
  778. package/one/things/docs/ecommerce/QUICK-START.md +0 -405
  779. package/one/things/docs/ecommerce/URGENCY-IMPLEMENTATION-SUMMARY.md +0 -567
  780. package/one/things/docs/ecommerce/URGENCY-QUICK-REFERENCE.md +0 -271
  781. package/one/things/docs/ecommerce/USAGE-EXAMPLE.astro +0 -171
  782. package/one/things/docs/ecommerce/demo.astro +0 -309
  783. package/one/things/examples/children/lemonade-stand.md +0 -404
  784. package/one/things/examples/enterprise/crm-saas.md +0 -1444
  785. package/one/things/features/1-1-agent-prompts.md +0 -562
  786. package/one/things/features/1-2-yaml-orchestrator.md +0 -548
  787. package/one/things/features/1-3-event-coordination.md +0 -547
  788. package/one/things/features/1-4-knowledge-management.md +0 -652
  789. package/one/things/features/1-5-quality-loops.md +0 -725
  790. package/one/things/features/1-6-numbering-structure.md +0 -639
  791. package/one/things/features/2-1-dataprovider-interface.md +0 -2583
  792. package/one/things/features/2-2-config-system.md +0 -3242
  793. package/one/things/features/2-3-effectts-services.md +0 -1645
  794. package/one/things/features/2-4-react-hooks.md +0 -2136
  795. package/one/things/features/2-5-auth-migration.md +0 -2144
  796. package/one/things/features/2-6-dashboard-migration.md +0 -2084
  797. package/one/things/features/2-7-alternative-providers.md +0 -2578
  798. package/one/things/features/2-7-implementation-report.md +0 -724
  799. package/one/things/features/2-cli.md +0 -1720
  800. package/one/things/features/2-design.md +0 -1770
  801. package/one/things/features/2-tests.md +0 -576
  802. package/one/things/features/AUTH_HOOKS_IMPLEMENTATION.md +0 -576
  803. package/one/things/features/DECOUPLING.md +0 -290
  804. package/one/things/features/DEPLOYMENT.md +0 -470
  805. package/one/things/features/IMPLEMENTATION_SUMMARY.md +0 -362
  806. package/one/things/features/improve.md +0 -861
  807. package/one/things/features/remove-convex-deps.md +0 -63
  808. package/one/things/features/top-features.md +0 -87
  809. package/one/things/features/use-one-backend.md +0 -1217
  810. package/one/things/features-in-english.md +0 -200
  811. package/one/things/files.yaml +0 -721
  812. package/one/things/ideas/1-create-workflow.md +0 -207
  813. package/one/things/ideas/2-backend-agnostic-frontend.md +0 -439
  814. package/one/things/implementation/backend-guide.md +0 -457
  815. package/one/things/interface.md +0 -257
  816. package/one/things/landing-page-implementation.md +0 -455
  817. package/one/things/legal/README.md +0 -234
  818. package/one/things/legal/privacy-policy.md +0 -1227
  819. package/one/things/legal/terms-of-service.md +0 -1432
  820. package/one/things/master-workflow-plan.md +0 -806
  821. package/one/things/pay.one.ie.md +0 -53
  822. package/one/things/plans/0-in-sync.md +0 -136
  823. package/one/things/plans/0-timeline.md +0 -36
  824. package/one/things/plans/1-create-workflow.md +0 -732
  825. package/one/things/plans/QUICK-START-SIMPLIFICATION.md +0 -333
  826. package/one/things/plans/README-SIMPLIFICATION.md +0 -349
  827. package/one/things/plans/SIMPLIFICATION-EXAMPLES.md +0 -16
  828. package/one/things/plans/SIMPLIFICATION-SUMMARY.md +0 -455
  829. package/one/things/plans/ai-elements-integration.md +0 -483
  830. package/one/things/plans/ai-elements.md +0 -1278
  831. package/one/things/plans/ai-integration-plan.md +0 -263
  832. package/one/things/plans/ai-integration.md +0 -996
  833. package/one/things/plans/ai-sdk.md +0 -798
  834. package/one/things/plans/ai-tools.md +0 -621
  835. package/one/things/plans/app.md +0 -832
  836. package/one/things/plans/architecture-summary.md +0 -312
  837. package/one/things/plans/async-ai-agents.md +0 -233
  838. package/one/things/plans/backend-agnostic-frontend.md +0 -390
  839. package/one/things/plans/backend-cleanup-quickstart.md +0 -380
  840. package/one/things/plans/backend-ontology-conformance.md +0 -475
  841. package/one/things/plans/backend-status.md +0 -599
  842. package/one/things/plans/backend-structure.md +0 -847
  843. package/one/things/plans/backend-target-structure.md +0 -482
  844. package/one/things/plans/backend.md +0 -1175
  845. package/one/things/plans/better-auth-any-backend-revised.md +0 -1103
  846. package/one/things/plans/better-auth-any-backend.md +0 -1896
  847. package/one/things/plans/better-auth-available-features.md +0 -273
  848. package/one/things/plans/big-plan.md +0 -52
  849. package/one/things/plans/cli-updates-required.md +0 -320
  850. package/one/things/plans/complete-step-by-step.md +0 -1409
  851. package/one/things/plans/components.md +0 -709
  852. package/one/things/plans/convex-agents.md +0 -1034
  853. package/one/things/plans/convex-better-auth.md +0 -1141
  854. package/one/things/plans/convex-on-off.md +0 -407
  855. package/one/things/plans/crypto-token-researcher.md +0 -629
  856. package/one/things/plans/data-quality-metrics.md +0 -745
  857. package/one/things/plans/deep-researcher-agent.md +0 -466
  858. package/one/things/plans/deploy-to-cloudflare.md +0 -623
  859. package/one/things/plans/deployment-architecture.md +0 -469
  860. package/one/things/plans/desktop.md +0 -1139
  861. package/one/things/plans/development-plan.md +0 -1283
  862. package/one/things/plans/development-workflow-tldr.md +0 -207
  863. package/one/things/plans/development-workflow.md +0 -959
  864. package/one/things/plans/dsl-claude-code.md +0 -1011
  865. package/one/things/plans/effect-components.md +0 -1743
  866. package/one/things/plans/effect-patterns-reference.md +0 -2235
  867. package/one/things/plans/effect.md +0 -1806
  868. package/one/things/plans/email.md +0 -966
  869. package/one/things/plans/enhance-auth.md +0 -1692
  870. package/one/things/plans/execution-strategy.md +0 -1291
  871. package/one/things/plans/existing-infrastructure.md +0 -712
  872. package/one/things/plans/feature-based-sites.md +0 -894
  873. package/one/things/plans/frontend-effects.md +0 -1276
  874. package/one/things/plans/group-folder-multi-tenancy.md +0 -893
  875. package/one/things/plans/improve-codebase.md +0 -1811
  876. package/one/things/plans/install-components.md +0 -215
  877. package/one/things/plans/integrate-frontend-and-backend.md +0 -603
  878. package/one/things/plans/landing.md +0 -820
  879. package/one/things/plans/layout.md +0 -249
  880. package/one/things/plans/mail-backend.md +0 -1361
  881. package/one/things/plans/mail.md +0 -2677
  882. package/one/things/plans/mcp-clear-context-prompt.md +0 -81
  883. package/one/things/plans/mcp-simple.md +0 -248
  884. package/one/things/plans/multi-ontology-architecture.md +0 -885
  885. package/one/things/plans/next-features.md +0 -114
  886. package/one/things/plans/npx-agent-safety.md +0 -785
  887. package/one/things/plans/npx-agent.md +0 -1089
  888. package/one/things/plans/onboarding.md +0 -51
  889. package/one/things/plans/one-protocol-and-payone-usage.md +0 -82
  890. package/one/things/plans/one.md +0 -677
  891. package/one/things/plans/ontology-6-dimensions.md +0 -2201
  892. package/one/things/plans/ontology-compliance-audit.md +0 -342
  893. package/one/things/plans/ontology-driven-strategy.md +0 -882
  894. package/one/things/plans/ontology-refine.md +0 -586
  895. package/one/things/plans/ontology-ui-approach.md +0 -375
  896. package/one/things/plans/open-agent.md +0 -840
  897. package/one/things/plans/performace.md +0 -122
  898. package/one/things/plans/phase-1-foundation.md +0 -620
  899. package/one/things/plans/phase-3-implementation.md +0 -1037
  900. package/one/things/plans/plan-connect-to-api.md +0 -146
  901. package/one/things/plans/quick-wins.md +0 -1428
  902. package/one/things/plans/r2.md +0 -777
  903. package/one/things/plans/readme-backend-cleanup.md +0 -402
  904. package/one/things/plans/release.md +0 -507
  905. package/one/things/plans/remove-backend-development-from-agents.md +0 -1331
  906. package/one/things/plans/repos.md +0 -98
  907. package/one/things/plans/separate-copy-2.md +0 -1349
  908. package/one/things/plans/separate-copy-3.md +0 -2479
  909. package/one/things/plans/separate-copy.md +0 -1349
  910. package/one/things/plans/separate-demo.md +0 -864
  911. package/one/things/plans/separate.md +0 -1999
  912. package/one/things/plans/sequence.md +0 -2040
  913. package/one/things/plans/shadcn-integration-summary.md +0 -510
  914. package/one/things/plans/sidebar.md +0 -206
  915. package/one/things/plans/skills.md +0 -709
  916. package/one/things/plans/small-fixes.md +0 -23
  917. package/one/things/plans/start-new.md +0 -764
  918. package/one/things/plans/switch-off-auth.md +0 -42
  919. package/one/things/plans/sync-checklist.md +0 -351
  920. package/one/things/plans/test-backend-connection.md +0 -514
  921. package/one/things/plans/unified-implementation-plan.md +0 -934
  922. package/one/things/plans/update-demos.md +0 -581
  923. package/one/things/plans/use-our-backend.md +0 -572
  924. package/one/things/plans/video-backend.md +0 -638
  925. package/one/things/plans/video-frontend.md +0 -490
  926. package/one/things/plans/video-old-archived.md +0 -656
  927. package/one/things/plans/wave1-onboarding-100-inferences.md +0 -1686
  928. package/one/things/plans/wave1-onboarding-vision.md +0 -744
  929. package/one/things/plans/wave1-orchestration-summary.md +0 -604
  930. package/one/things/plans/wave1-specialist-assignments.md +0 -1413
  931. package/one/things/plans/workflow-files.md +0 -1210
  932. package/one/things/plans/workflow.md +0 -1378
  933. package/one/things/plans-u.md +0 -905
  934. package/one/things/products/Blockchain Products.md +0 -6278
  935. package/one/things/products/cascade-landing-page.md +0 -841
  936. package/one/things/products/cascade.md +0 -1568
  937. package/one/things/products/context-engineering.md +0 -1488
  938. package/one/things/products/onthology.md +0 -15
  939. package/one/things/products/ontology-ui-shadcn.md +0 -1302
  940. package/one/things/products/ontology-ui.md +0 -1429
  941. package/one/things/products/ontology.md +0 -789
  942. package/one/things/products/sdk.md +0 -573
  943. package/one/things/promptkit.md +0 -930
  944. package/one/things/repos/all-repos.md +0 -0
  945. package/one/things/scripts-clean-mac.sh +0 -409
  946. package/one/things/service-providers-new.md +0 -1052
  947. package/one/things/service-providers.md +0 -1121
  948. package/one/things/structure.md +0 -532
  949. package/one/things/system.md +0 -618
  950. package/one/things/templates.md +0 -294
  951. package/one/things/tests/2-1-dataprovider-interface.md +0 -1216
  952. package/one/things/tests/2-1-test-analysis.md +0 -544
  953. package/one/things/things.md +0 -384
  954. package/one/things/todo-acp-integration.md +0 -744
  955. package/one/things/todo-ai.md +0 -933
  956. package/one/things/todo-api.md +0 -1078
  957. package/one/things/todo-assignment.md +0 -580
  958. package/one/things/todo-buy-chatgpt.md +0 -1450
  959. package/one/things/todo-components.md +0 -1683
  960. package/one/things/todo-connections.md +0 -278
  961. package/one/things/todo-ecommerce-frontend.md +0 -1313
  962. package/one/things/todo-ecommerce.md +0 -569
  963. package/one/things/todo-effects.md +0 -1075
  964. package/one/things/todo-frontend-effects.md +0 -977
  965. package/one/things/todo-landing-page.md +0 -1091
  966. package/one/things/todo-mail.md +0 -1160
  967. package/one/things/todo-master-plan.md +0 -490
  968. package/one/things/todo-onboard.md +0 -666
  969. package/one/things/todo-one-ie.md +0 -538
  970. package/one/things/todo-page.md +0 -606
  971. package/one/things/todo-plans.md +0 -282
  972. package/one/things/todo-projects.md +0 -241
  973. package/one/things/todo-refactoring-plan.md +0 -366
  974. package/one/things/todo-release.md +0 -654
  975. package/one/things/todo-sequence.md +0 -1621
  976. package/one/things/todo-use-our-backend.md +0 -1908
  977. package/one/things/todo-workflow.md +0 -626
  978. package/one/things/todo-x402.md +0 -2047
  979. package/one/things/todo.md +0 -21
  980. package/one/things/video/scripts-crypto.md +0 -835
  981. package/one/things/video-script-backup.md +0 -318
  982. package/one/things/video-script-demo.md +0 -382
  983. package/one/things/video-script-ontology.md +0 -333
  984. package/one/things/video-script.md +0 -361
@@ -1,1617 +0,0 @@
1
- ---
2
- title: Cascading CLAUDE.md Architecture Specification
3
- dimension: knowledge
4
- category: architecture
5
- tags: context, documentation, ontology, ai, optimization
6
- related_dimensions: all
7
- scope: global
8
- created: 2025-11-08
9
- version: 1.0.0
10
- ai_context: |
11
- Specification for cascading CLAUDE.md architecture that maximizes context efficiency
12
- using the 6-dimension ontology as organizational principle. Reduces token usage by
13
- 98% (from 150k to 3k per context load) through strategic reference vs duplication.
14
- ---
15
-
16
- # Cascading CLAUDE.md Architecture Specification
17
-
18
- **Version:** 1.0.0
19
- **Purpose:** Design a cascading context system that reduces token usage by 98% while maximizing usefulness
20
- **Principle:** Reference knowledge, don't duplicate it (following the 6-dimension ontology)
21
-
22
- ---
23
-
24
- ## Executive Summary
25
-
26
- ### Current State
27
-
28
- **Root CLAUDE.md:** 1,204 lines, ~45,000 tokens
29
- - Contains extensive inline documentation
30
- - Duplicates information from `/one/` docs
31
- - Loaded regardless of working directory
32
- - Information organized linearly, not hierarchically
33
-
34
- **Subdirectory CLAUDE.md files:**
35
- - `/web/CLAUDE.md`: 886 lines, ~35,000 tokens (frontend patterns + duplication)
36
- - `/backend/CLAUDE.md`: 448 lines, ~18,000 tokens (backend patterns + duplication)
37
- - `/backend/convex/CLAUDE.md`: Not yet created
38
-
39
- **Total context load per task:** 80,000-150,000 tokens
40
-
41
- **Problem:** Agents working in `/web/src/components/` load 80k+ tokens of context, 95% irrelevant.
42
-
43
- ### Proposed State
44
-
45
- **Root CLAUDE.md:** 150 lines, ~3,000 tokens (orchestration only)
46
- - Links to `/one/` canonical docs
47
- - Minimal inline content
48
- - Directory precedence rules
49
- - Agent coordination patterns
50
-
51
- **Subdirectory CLAUDE.md files:**
52
- - `/web/CLAUDE.md`: 200 lines, ~4,000 tokens (frontend-specific + links)
53
- - `/backend/CLAUDE.md`: 200 lines, ~4,000 tokens (backend-specific + links)
54
- - `/backend/convex/CLAUDE.md`: 150 lines, ~3,000 tokens (database-specific + links)
55
- - `/web/src/components/CLAUDE.md`: 100 lines, ~2,000 tokens (component-specific + links)
56
- - `/web/src/pages/CLAUDE.md`: 100 lines, ~2,000 tokens (page-specific + links)
57
-
58
- **Total context load per task:** 2,000-6,000 tokens (98% reduction)
59
-
60
- **Solution:** Cascading context where each level adds only NEW information specific to that directory.
61
-
62
- ---
63
-
64
- ## Design Principles
65
-
66
- ### 1. Reference, Don't Duplicate (Knowledge Dimension)
67
-
68
- **Bad (Current):**
69
- ```markdown
70
- ## The 6-Dimension Ontology
71
-
72
- [60 lines of ontology explanation repeated in root CLAUDE.md]
73
- [60 lines of ontology explanation repeated in web/CLAUDE.md]
74
- [60 lines of ontology explanation repeated in backend/CLAUDE.md]
75
- ```
76
-
77
- **Good (Proposed):**
78
- ```markdown
79
- ## The 6-Dimension Ontology
80
-
81
- **Read:** `/one/knowledge/ontology.md` (Version 1.0.0 - canonical specification)
82
-
83
- **Quick Reference:**
84
- - Groups → Multi-tenant containers (groupId scoping)
85
- - People → Authorization & roles (via things with type='creator')
86
- - Things → All entities (66+ types)
87
- - Connections → All relationships (25+ types)
88
- - Events → Complete audit trail (67+ types)
89
- - Knowledge → Labels + vectors (RAG)
90
-
91
- **If you can't map to these 6 dimensions, rethink your approach.**
92
- ```
93
-
94
- **Token savings:** 180 lines → 15 lines (92% reduction)
95
-
96
- ### 2. Hierarchical Context (Groups Dimension)
97
-
98
- **Directory hierarchy = Context hierarchy:**
99
-
100
- ```
101
- /CLAUDE.md (root)
102
- ├─ Global rules (git safety, ontology links)
103
- ├─ Agent coordination (parallel execution)
104
- └─ Links to /one/ docs
105
-
106
- /web/CLAUDE.md (inherits root + adds frontend-specific)
107
- ├─ Frontend role (render 6 dimensions)
108
- ├─ Progressive complexity (5 layers)
109
- ├─ Astro + React patterns
110
- └─ Links to /one/knowledge/astro-* docs
111
-
112
- /web/src/components/CLAUDE.md (inherits web + adds component-specific)
113
- ├─ Component patterns (ThingCard, PersonCard, EventItem)
114
- ├─ shadcn/ui usage
115
- ├─ Ontology mapping (which dimension?)
116
- └─ Links to /one/knowledge/patterns/frontend/
117
-
118
- /backend/CLAUDE.md (inherits root + adds backend-specific)
119
- ├─ Backend role (implement 6 dimensions)
120
- ├─ 6-step mutation pattern
121
- ├─ Effect.ts services
122
- └─ Links to /one/connections/workflow.md
123
-
124
- /backend/convex/CLAUDE.md (inherits backend + adds database-specific)
125
- ├─ Schema patterns
126
- ├─ Index strategies
127
- ├─ Query optimization
128
- └─ Links to /one/connections/schema.md
129
- ```
130
-
131
- **Precedence rule:** Closer to file = higher precedence (as stated in current CLAUDE.md)
132
-
133
- ### 3. Connections Create Context Graph (Connections Dimension)
134
-
135
- **Links between CLAUDE.md files and /one/ docs create a graph of knowledge:**
136
-
137
- ```
138
- Root CLAUDE.md
139
- │
140
- ├─→ /one/knowledge/ontology.md (canonical truth)
141
- ├─→ /one/connections/workflow.md (6-phase process)
142
- ├─→ /one/knowledge/rules.md (golden rules)
143
- │
144
- ├─→ /web/CLAUDE.md
145
- │ │
146
- │ ├─→ /one/knowledge/astro-effect-simple-architecture.md
147
- │ ├─→ /one/knowledge/provider-agnostic-content.md
148
- │ └─→ /one/knowledge/patterns/frontend/*.md
149
- │
150
- └─→ /backend/CLAUDE.md
151
- │
152
- ├─→ /one/connections/service-layer.md
153
- ├─→ /one/connections/effect.md
154
- └─→ /one/knowledge/patterns/backend/*.md
155
- ```
156
-
157
- **Each node adds context, not duplicates it.**
158
-
159
- ### 4. Events Track Evolution (Events Dimension)
160
-
161
- **Git history preserves the evolution of context:**
162
-
163
- - Root CLAUDE.md changes → Major architecture shifts
164
- - Subdirectory CLAUDE.md changes → Layer-specific pattern updates
165
- - /one/ doc changes → Knowledge updates (propagate to all CLAUDE.md via links)
166
-
167
- **Agents emit `documentation_updated` events when CLAUDE.md files change.**
168
-
169
- ---
170
-
171
- ## Detailed File Specifications
172
-
173
- ### Root `/CLAUDE.md`
174
-
175
- **Current:** 1,204 lines, ~45,000 tokens
176
- **Proposed:** 150 lines, ~3,000 tokens
177
- **Reduction:** 97.5%
178
-
179
- **Keep:**
180
- - Critical rules (git safety, destructive operations)
181
- - Cascading context system explanation
182
- - Parallel agent execution pattern
183
- - Architecture overview (3 lines: Web → Backend → Ontology)
184
- - Link to ontology (with 6-line summary)
185
- - Cycle-based planning (overview + commands)
186
- - Technology stack (bullet list only)
187
- - Root directory file policy
188
- - File structure (tree only, no explanations)
189
- - Development workflow (6 phases with links)
190
- - Deployment section (links only)
191
- - Getting help section (links to /one/ docs)
192
-
193
- **Remove (move to /one/ docs):**
194
- - ~~Installation folders~~ → Already in `/one/knowledge/installation-folders.md`
195
- - ~~Development commands~~ → Move to `/one/knowledge/development-commands.md`
196
- - ~~Frontend-first development~~ → Already in `/web/CLAUDE.md`
197
- - ~~The 6-dimension ontology (detailed)~~ → Link to `/one/knowledge/ontology.md`
198
- - ~~Key patterns and best practices~~ → Link to `/one/connections/patterns.md`
199
- - ~~Important guidelines~~ → Move to `/one/knowledge/guidelines.md`
200
- - ~~Common issues and solutions~~ → Move to `/one/knowledge/troubleshooting.md`
201
- - ~~Critical reading before coding~~ → Keep as links only
202
- - ~~Documentation structure~~ → Link to `/one/README.md`
203
- - ~~English → Code workflow~~ → Move to `/one/knowledge/language.md`
204
- - ~~Plain English DSL~~ → Already in `/one/knowledge/language.md`
205
- - ~~Philosophy~~ → Move to `/one/groups/vision.md`
206
- - ~~Claude automation stack~~ → Link to `/.claude/agents/README.md`
207
-
208
- **New structure:**
209
-
210
- ```markdown
211
- # CLAUDE.md
212
-
213
- ## ⚠️ CRITICAL RULES - NEVER BREAK THESE
214
-
215
- [4 rules - unchanged]
216
-
217
- ---
218
-
219
- ## Cascading Context System
220
-
221
- **You are reading the ROOT context file.** Navigate deeper:
222
-
223
- ```
224
- /CLAUDE.md (this file - global orchestration)
225
- ↓ Navigate to subdirectory
226
- /web/CLAUDE.md (frontend-specific, higher precedence in web/)
227
- ↓ Navigate deeper
228
- /web/src/components/CLAUDE.md (component-specific, highest precedence)
229
- ```
230
-
231
- **Precedence rule:** Closer to the file = higher precedence.
232
-
233
- **Parallel Agent Execution:** Spawn agents concurrently (not sequentially) for 2-5x speedup.
234
-
235
- ---
236
-
237
- ## Architecture Overview
238
-
239
- **ONE Platform** = Multi-tenant AI-native platform built on 6-dimension ontology.
240
-
241
- ```
242
- Web (Astro + React) → Backend (Convex) → 6-Dimension Ontology
243
- ```
244
-
245
- **Key Repositories:**
246
- - `/web` - Frontend (Astro 5, React 19, Tailwind v4)
247
- - `/backend` - Backend (Convex, Effect.ts, Better Auth)
248
- - `/one` - Documentation (41 files, 8 layers)
249
- - `/.claude` - Agent definitions & commands
250
-
251
- **Read full architecture:** `/one/knowledge/architecture.md`
252
-
253
- ---
254
-
255
- ## The 6-Dimension Ontology
256
-
257
- **Read canonical specification:** `/one/knowledge/ontology.md` (Version 1.0.0)
258
-
259
- **Quick Reference:**
260
- 1. **GROUPS** → Multi-tenant containers (groupId scoping, infinite nesting)
261
- 2. **PEOPLE** → Authorization & roles (4 roles: platform_owner, org_owner, org_user, customer)
262
- 3. **THINGS** → All entities (66+ types: users, agents, content, tokens, courses)
263
- 4. **CONNECTIONS** → All relationships (25+ types: owns, follows, purchased, holds_tokens)
264
- 5. **EVENTS** → Complete audit trail (67+ types: created, updated, purchased, completed)
265
- 6. **KNOWLEDGE** → Labels + vectors (RAG, search, categorization)
266
-
267
- **Golden Rule:** If you can't map a feature to these 6 dimensions, you're thinking about it wrong.
268
-
269
- ---
270
-
271
- ## Cycle-Based Planning
272
-
273
- **We plan in cycles (1-100), not days.** Each cycle = concrete step, < 3k tokens.
274
-
275
- **Commands:**
276
- - `/now` - Current cycle
277
- - `/next` - Advance to next
278
- - `/todo` - View 100-cycle sequence
279
- - `/done` - Mark complete
280
-
281
- **Benefits:** 98% context reduction, 5x faster execution, flawless execution.
282
-
283
- **Read full system:** `/one/knowledge/todo.md`
284
-
285
- ---
286
-
287
- ## Development Workflow
288
-
289
- **Before ANY feature, follow 6-phase workflow:**
290
-
291
- 1. **UNDERSTAND** → Read `/one/knowledge/ontology.md`, identify category
292
- 2. **MAP TO ONTOLOGY** → Things, connections, events, knowledge
293
- 3. **DESIGN SERVICES** → Effect.ts business logic
294
- 4. **IMPLEMENT BACKEND** → Convex mutations/queries
295
- 5. **BUILD FRONTEND** → React components
296
- 6. **TEST & DOCUMENT** → Unit tests, integration tests, update docs
297
-
298
- **Read full workflow:** `/one/connections/workflow.md`
299
-
300
- ---
301
-
302
- ## Technology Stack
303
-
304
- **Frontend:** Astro 5, React 19, Tailwind v4, shadcn/ui, Better Auth
305
- **Backend:** Convex, Effect.ts, Better Auth + Convex Adapter
306
- **Deployment:** Cloudflare Pages (frontend), Convex Cloud (backend)
307
-
308
- **Read full stack:** `/one/knowledge/architecture.md#technology-stack`
309
-
310
- ---
311
-
312
- ## File Structure
313
-
314
- ```
315
- ONE/
316
- ├── web/ # Frontend (see web/CLAUDE.md)
317
- ├── backend/ # Backend (see backend/CLAUDE.md)
318
- ├── one/ # Documentation (41 files organized by 6 dimensions)
319
- ├── .claude/ # Agent definitions & commands
320
- └── apps/ # Example applications
321
- ```
322
-
323
- ---
324
-
325
- ## Critical Reading Before Coding
326
-
327
- **For ANY feature:**
328
- 1. `/one/knowledge/ontology.md` - 6-dimension model
329
- 2. `/one/connections/workflow.md` - 6-phase process
330
- 3. `/one/knowledge/rules.md` - Golden rules
331
- 4. Subdirectory CLAUDE.md (web/, backend/, etc.)
332
-
333
- **For specific features:**
334
- - Protocols: `/one/connections/protocols.md`
335
- - Blockchain: `/one/connections/cryptonetworks.md`
336
- - Agents: `/one/connections/agentkit.md`
337
- - Integration: `/one/connections/integration-guide.md`
338
-
339
- ---
340
-
341
- ## Getting Help
342
-
343
- **Documentation:**
344
- - 6-Dimension Ontology: `/one/knowledge/ontology.md`
345
- - Architecture: `/one/knowledge/architecture.md`
346
- - Workflows: `/one/connections/workflow.md`
347
- - Patterns: `/one/connections/patterns.md`
348
- - Troubleshooting: `/one/knowledge/troubleshooting.md`
349
-
350
- **Agent Coordination:**
351
- - Director: `/.claude/agents/agent-director.md`
352
- - Builder Squad: `/.claude/agents/agent-builder.md`
353
- - Quality Loop: `/.claude/agents/agent-quality.md`
354
-
355
- ---
356
-
357
- **Built with clarity, simplicity, and infinite scale in mind.**
358
- ```
359
-
360
- **Token estimate:** ~3,000 tokens (93% reduction)
361
-
362
- ---
363
-
364
- ### `/web/CLAUDE.md`
365
-
366
- **Current:** 886 lines, ~35,000 tokens
367
- **Proposed:** 200 lines, ~4,000 tokens
368
- **Reduction:** 89%
369
-
370
- **Keep:**
371
- - Critical rules (inherited from root)
372
- - "This is a cascading context file" header
373
- - Your role: Render the 6 dimensions
374
- - Progressive complexity (5 layers with brief examples)
375
- - Pattern convergence (ONE pattern, not many)
376
- - Component architecture patterns (brief)
377
- - Astro islands architecture (brief)
378
- - Provider pattern (concept only)
379
- - Decision framework (questions)
380
- - Common mistakes (brief list)
381
-
382
- **Remove (move to /one/ or keep as links):**
383
- - ~~Detailed pattern examples~~ → Link to `/one/knowledge/patterns/frontend/*.md`
384
- - ~~Detailed component code~~ → Link to `/one/knowledge/patterns/frontend/component-template.md`
385
- - ~~Nanostores detailed examples~~ → Link to `/one/knowledge/astro-effect-simple-architecture.md`
386
- - ~~Convex hooks detailed examples~~ → Link to `/one/knowledge/patterns/frontend/react-component-pattern.md`
387
- - ~~shadcn/ui component list~~ → Link to documentation or keep 5-line summary
388
- - ~~Tailwind v4 detailed config~~ → Link to `/one/knowledge/guidelines.md#tailwind-v4`
389
- - ~~Performance optimization details~~ → Link to `/one/knowledge/performance.md`
390
- - ~~Role-based UI code~~ → Link to `/one/knowledge/patterns/frontend/authorization-pattern.md`
391
- - ~~File structure~~ → Link to root CLAUDE.md
392
- - ~~Development commands~~ → Link to `/one/knowledge/development-commands.md`
393
- - ~~Success criteria~~ → Link to `/one/knowledge/quality-loop.md`
394
-
395
- **New structure:**
396
-
397
- ```markdown
398
- # Frontend Development - CLAUDE.md
399
-
400
- ## This is a Cascading Context File
401
-
402
- **You've read `/CLAUDE.md` (root).** This file adds FRONTEND-SPECIFIC patterns.
403
-
404
- **What you learned from root:**
405
- - 6-dimension ontology (link to `/one/knowledge/ontology.md`)
406
- - 6-phase workflow (link to `/one/connections/workflow.md`)
407
- - Cascading context system
408
-
409
- **What this file adds:**
410
- - Frontend renders the 6 dimensions
411
- - Progressive complexity (5 layers)
412
- - Component patterns (ThingCard, PersonCard, EventItem)
413
- - Astro islands + React hooks
414
-
415
- ---
416
-
417
- ## Your Role: Render the 6-Dimension Ontology
418
-
419
- **Backend implements, Frontend renders:**
420
-
421
- ```
422
- Backend (Convex) Frontend (You Build)
423
- ──────────────── ────────────────────
424
- groups table → <GroupSelector>, <GroupHierarchy>
425
- things table → <ThingCard type="product|course|...">
426
- connections → <ConnectionList>, <RelationshipGraph>
427
- events → <ActivityFeed>, <EventTimeline>
428
- knowledge → <SearchResults>, <Recommendations>
429
- people (role) → <PersonCard>, <RoleBadge>
430
- ```
431
-
432
- **Key principle:** Ontology never changes. Components do.
433
-
434
- ---
435
-
436
- ## Progressive Complexity (5 Layers)
437
-
438
- **Read full architecture:** `/one/knowledge/astro-effect-simple-architecture.md`
439
-
440
- **Layer 1: Content + Pages** (80% of features - START HERE)
441
- ```astro
442
- import { getCollection } from "astro:content";
443
- const products = await getCollection("products");
444
- ```
445
-
446
- **Layer 2: + Validation** (15% - Add when needed)
447
- ```typescript
448
- import { Effect } from "effect";
449
- // Business logic validation
450
- ```
451
-
452
- **Layer 3: + State** (4% - Add for island communication)
453
- ```typescript
454
- import { atom } from "nanostores";
455
- export const cart$ = atom<CartItem[]>([]);
456
- ```
457
-
458
- **Layer 4: + Multiple Sources** (1% - Add for provider switching)
459
- ```typescript
460
- const provider = getContentProvider("products"); // markdown | api | hybrid
461
- ```
462
-
463
- **Layer 5: + Backend** (<1% - Only when explicitly requested)
464
- ```typescript
465
- import { useQuery } from "convex/react";
466
- const products = useQuery(api.queries.products.list);
467
- ```
468
-
469
- **Golden Rule:** Start Layer 1. Add layers only when pain is felt.
470
-
471
- **Read full guide:** `/one/knowledge/provider-agnostic-content.md`
472
-
473
- ---
474
-
475
- ## Pattern Convergence (98% AI Accuracy)
476
-
477
- **ONE component per dimension:**
478
-
479
- ```typescript
480
- // Things dimension → ONE ThingCard component
481
- <ThingCard thing={product} type="product" />
482
- <ThingCard thing={course} type="course" />
483
-
484
- // People dimension → ONE PersonCard component
485
- <PersonCard person={user} />
486
-
487
- // Events dimension → ONE EventItem component
488
- <EventItem event={event} />
489
- ```
490
-
491
- **Why this works:** AI sees 3 patterns (not 100), confidence = 98%.
492
-
493
- **Anti-pattern:** ProductCard, CourseCard, UserProfile, ActivityItem (4+ patterns, confidence = 30%)
494
-
495
- **Read full patterns:** `/one/knowledge/patterns/frontend/component-template.md`
496
-
497
- ---
498
-
499
- ## Astro Islands Architecture
500
-
501
- **Performance principle:** Static HTML by default. Add interactivity strategically.
502
-
503
- ```astro
504
- <!-- Static (no JS) -->
505
- <ProductCard product={product} />
506
-
507
- <!-- Interactive (loads immediately) -->
508
- <ShoppingCart client:load />
509
-
510
- <!-- Deferred (loads when idle) -->
511
- <SearchBox client:idle />
512
-
513
- <!-- Lazy (loads when visible) -->
514
- <RelatedProducts client:visible />
515
- ```
516
-
517
- **Island communication:** Use nanostores (ONE pattern for sharing state)
518
-
519
- ```typescript
520
- // stores/cart.ts
521
- import { atom } from "nanostores";
522
- export const cart$ = atom<CartItem[]>([]);
523
-
524
- // Any island can read/write
525
- import { useStore } from "@nanostores/react";
526
- const cart = useStore(cart$);
527
- ```
528
-
529
- **Read full guide:** `/one/knowledge/astro-effect-simple-architecture.md#layer-3`
530
-
531
- ---
532
-
533
- ## Provider Pattern (Backend-Agnostic)
534
-
535
- **Power:** Frontend code never changes when backend switches.
536
-
537
- ```typescript
538
- // Development: markdown files
539
- // .env: CONTENT_SOURCE=markdown
540
- const provider = getContentProvider("products");
541
-
542
- // Production: Convex real-time
543
- // .env: CONTENT_SOURCE=convex
544
- const provider = getContentProvider("products");
545
-
546
- // SAME CODE. DIFFERENT SOURCE.
547
- ```
548
-
549
- **Read full pattern:** `/one/knowledge/provider-agnostic-content.md`
550
-
551
- ---
552
-
553
- ## Decision Framework
554
-
555
- **Before coding, answer:**
556
-
557
- ### Ontology Mapping
558
- 1. Which dimension? (groups/people/things/connections/events/knowledge)
559
- 2. Which thing type? (product, course, token, agent, etc.)
560
- 3. Which connection type? (owns, purchased, enrolled_in, holds_tokens)
561
- 4. Which event type? (created, updated, purchased, completed)
562
-
563
- ### Performance
564
- 1. Can this be static HTML? → Astro component (no JS)
565
- 2. Needs interactivity? → Client island (`client:load|idle|visible`)
566
- 3. Real-time data? → Convex `useQuery`
567
- 4. Heavy component? → Dynamic import + code splitting
568
-
569
- ### Component Selection
570
- 1. Static content? → Astro component
571
- 2. Simple interactivity? → React component + hooks
572
- 3. Complex state? → React + nanostores
573
- 4. Form handling? → React + Effect.ts validation
574
-
575
- **Read full decision tree:** `/one/connections/workflow.md#phase-5`
576
-
577
- ---
578
-
579
- ## Common Mistakes
580
-
581
- **Ontology violations:**
582
- - ❌ Creating custom tables
583
- - ✅ Map to 6 dimensions
584
-
585
- **Performance anti-patterns:**
586
- - ❌ `client:load` everywhere
587
- - ✅ Use appropriate directive (idle, visible)
588
-
589
- **Pattern divergence:**
590
- - ❌ ProductCard, CourseCard, UserCard (many patterns)
591
- - ✅ ThingCard, PersonCard (ONE pattern)
592
-
593
- **Read full list:** `/one/knowledge/rules.md#common-mistakes`
594
-
595
- ---
596
-
597
- ## Further Cascading
598
-
599
- **For more specific context:**
600
- - Component patterns: `/web/src/components/CLAUDE.md`
601
- - Page patterns: `/web/src/pages/CLAUDE.md`
602
- - Service layer: `/web/src/lib/services/CLAUDE.md`
603
-
604
- **Precedence rule:** Closer to file = higher precedence.
605
-
606
- ---
607
-
608
- **Frontend Specialist: Render the 6-dimension ontology with performance and pattern convergence.**
609
- ```
610
-
611
- **Token estimate:** ~4,000 tokens (89% reduction)
612
-
613
- ---
614
-
615
- ### `/backend/CLAUDE.md`
616
-
617
- **Current:** 448 lines, ~18,000 tokens
618
- **Proposed:** 200 lines, ~4,000 tokens
619
- **Reduction:** 78%
620
-
621
- **Keep:**
622
- - "This is a cascading context file" header
623
- - What you learned from root
624
- - Backend role: Implement 6 dimensions
625
- - Universal backend pattern (6-step mutation) - CRITICAL
626
- - Effect.ts service layer (why + when)
627
- - Backend architecture (brief tree)
628
- - Multi-tenant isolation (pattern only)
629
- - Authentication pattern (brief)
630
- - Event logging pattern (brief)
631
- - Type validation (brief)
632
- - Error handling (brief)
633
-
634
- **Remove (move to /one/ or keep as links):**
635
- - ~~Database table details~~ → Link to `/one/connections/schema.md`
636
- - ~~Detailed Effect.ts examples~~ → Link to `/one/connections/effect.md`
637
- - ~~Detailed mutation/query code~~ → Link to `/one/knowledge/patterns/backend/*.md`
638
- - ~~Service rules checklist~~ → Link to `/one/connections/service-layer.md`
639
- - ~~Development commands~~ → Link to `/one/knowledge/development-commands.md`
640
-
641
- **New structure:**
642
-
643
- ```markdown
644
- # Backend Development - CLAUDE.md
645
-
646
- ## This is a Cascading Context File
647
-
648
- **You've read `/CLAUDE.md` (root).** This file adds BACKEND-SPECIFIC patterns.
649
-
650
- **What you learned from root:**
651
- - 6-dimension ontology
652
- - 6-phase workflow
653
- - Cascading context system
654
-
655
- **What this file adds:**
656
- - Backend implements the 6 dimensions
657
- - 6-step universal mutation pattern
658
- - Effect.ts service layer
659
- - Multi-tenant isolation
660
-
661
- ---
662
-
663
- ## Your Role: Implement the 6-Dimension Ontology
664
-
665
- **Backend provides the CRUD for 6 dimensions:**
666
-
667
- ```
668
- Ontology Design → Backend (You Build) → Database (Convex)
669
- ──────────────── ──────────────────── ────────────────
670
- groups → mutations/groups.ts → groups table
671
- things → mutations/things.ts → things table (includes people)
672
- connections → mutations/connections.ts → connections table
673
- events → mutations/events.ts → events table
674
- knowledge → mutations/knowledge.ts → knowledge table
675
- ```
676
-
677
- **Key principle:** Thin wrappers. Business logic in services.
678
-
679
- ---
680
-
681
- ## The Universal Backend Pattern (CRITICAL)
682
-
683
- **Every mutation follows these EXACT 6 steps:**
684
-
685
- ```typescript
686
- export const create = mutation({
687
- args: { groupId, type, name, properties },
688
- handler: async (ctx, args) => {
689
- // 1. AUTHENTICATE
690
- const identity = await ctx.auth.getUserIdentity();
691
- if (!identity) throw new Error("Unauthenticated");
692
-
693
- // 2. VALIDATE GROUP
694
- const group = await ctx.db.get(args.groupId);
695
- if (!group || group.status !== "active") {
696
- throw new Error("Invalid group");
697
- }
698
-
699
- // 3. VALIDATE TYPE (against ontology)
700
- if (!isThingType(args.type)) {
701
- throw new Error(`Invalid type: ${args.type}`);
702
- }
703
-
704
- // 4. GET ACTOR (for event logging)
705
- const actor = await ctx.db
706
- .query("things")
707
- .withIndex("group_type", q =>
708
- q.eq("groupId", args.groupId).eq("type", "creator")
709
- )
710
- .filter(q => q.eq(q.field("properties.userId"), identity.tokenIdentifier))
711
- .first();
712
-
713
- // 5. CREATE ENTITY
714
- const entityId = await ctx.db.insert("things", {
715
- groupId: args.groupId,
716
- type: args.type,
717
- name: args.name,
718
- properties: args.properties || {},
719
- status: "draft",
720
- createdAt: Date.now(),
721
- updatedAt: Date.now()
722
- });
723
-
724
- // 6. LOG EVENT (CRITICAL - never skip)
725
- if (actor) {
726
- await ctx.db.insert("events", {
727
- groupId: args.groupId,
728
- type: "thing_created",
729
- actorId: actor._id,
730
- targetId: entityId,
731
- timestamp: Date.now(),
732
- metadata: { entityType: args.type }
733
- });
734
- }
735
-
736
- return entityId;
737
- }
738
- });
739
- ```
740
-
741
- **Why 98% accuracy?** AI sees this exact pattern in every mutation.
742
-
743
- **Read full patterns:** `/one/knowledge/patterns/backend/mutation-template.md`
744
-
745
- ---
746
-
747
- ## Effect.ts Service Layer
748
-
749
- **When to use:**
750
- - Complex business logic (multi-step workflows)
751
- - Service composition (combining services)
752
- - Error handling with recovery (retry, fallback)
753
- - Dependency injection (testing)
754
-
755
- **When NOT to use:**
756
- - Simple CRUD (Convex mutations are enough)
757
- - Pure database queries
758
- - Authentication checks
759
-
760
- **Read full guide:** `/one/connections/effect.md`
761
-
762
- **Example:**
763
-
764
- ```typescript
765
- export class TokenService extends Effect.Service<TokenService>()("TokenService", {
766
- effect: Effect.gen(function* () {
767
- const db = yield* ConvexDatabase;
768
- const sui = yield* SuiProvider;
769
-
770
- return {
771
- purchase: (args) => Effect.gen(function* () {
772
- // 1. Validate
773
- const user = yield* Effect.tryPromise(() => db.get(args.userId));
774
-
775
- // 2. Execute blockchain tx
776
- const result = yield* sui.executeTransaction(tx);
777
-
778
- // 3. Create connection
779
- yield* Effect.tryPromise(() => db.insert("connections", { ... }));
780
-
781
- // 4. Log event
782
- yield* Effect.tryPromise(() => db.insert("events", { ... }));
783
-
784
- return { success: true, txDigest: result.digest };
785
- })
786
- };
787
- }),
788
- dependencies: [ConvexDatabase.Default, SuiProvider.Default]
789
- }) {}
790
- ```
791
-
792
- **Read service patterns:** `/one/knowledge/patterns/backend/service-template.md`
793
-
794
- ---
795
-
796
- ## Multi-Tenant Isolation
797
-
798
- **CRITICAL:** Every mutation/query MUST scope by groupId.
799
-
800
- ```typescript
801
- // ALWAYS validate group
802
- const group = await ctx.db.get(args.groupId);
803
- if (!group || group.status !== "active") {
804
- throw new Error("Invalid group");
805
- }
806
-
807
- // ALWAYS filter by groupId
808
- const things = await ctx.db
809
- .query("things")
810
- .withIndex("group_type", q =>
811
- q.eq("groupId", args.groupId).eq("type", args.type)
812
- )
813
- .collect();
814
- ```
815
-
816
- **Never query without groupId scope.** Cross-tenant data leaks = security catastrophe.
817
-
818
- **Read full patterns:** `/one/connections/multitenant.md`
819
-
820
- ---
821
-
822
- ## Database Schema (5 Tables, 6 Dimensions)
823
-
824
- ```
825
- groups table → Dimension 1 (multi-tenant containers)
826
- things table → Dimensions 2 & 3 (people + things)
827
- connections table → Dimension 4 (relationships)
828
- events table → Dimension 5 (audit trail)
829
- knowledge table → Dimension 6 (embeddings, labels)
830
- ```
831
-
832
- **Why 5 tables for 6 dimensions?** People stored as things with `type: 'creator'`.
833
-
834
- **Read full schema:** `/one/connections/schema.md`
835
-
836
- ---
837
-
838
- ## Further Cascading
839
-
840
- **For more specific context:**
841
- - Convex database layer: `/backend/convex/CLAUDE.md`
842
- - Service patterns: `/backend/convex/services/CLAUDE.md`
843
- - Specific domains: `/backend/convex/mutations/<domain>/CLAUDE.md`
844
-
845
- **Precedence rule:** Closer to file = higher precedence.
846
-
847
- ---
848
-
849
- **Backend Specialist: Implement the 6-dimension ontology with 98% pattern accuracy.**
850
- ```
851
-
852
- **Token estimate:** ~4,000 tokens (78% reduction)
853
-
854
- ---
855
-
856
- ### `/backend/convex/CLAUDE.md` (NEW)
857
-
858
- **Current:** Does not exist
859
- **Proposed:** 150 lines, ~3,000 tokens
860
-
861
- **Purpose:** Convex-specific database patterns (schema, indexes, queries, mutations)
862
-
863
- **New structure:**
864
-
865
- ```markdown
866
- # Convex Database Layer - CLAUDE.md
867
-
868
- ## This is a Cascading Context File
869
-
870
- **You've read `/CLAUDE.md` (root) and `/backend/CLAUDE.md` (backend).** This file adds CONVEX-SPECIFIC database patterns.
871
-
872
- **What you learned from backend:**
873
- - 6-dimension implementation
874
- - 6-step mutation pattern
875
- - Effect.ts service layer
876
-
877
- **What this file adds:**
878
- - Schema definition patterns
879
- - Index strategies
880
- - Query optimization
881
- - Migration patterns
882
-
883
- ---
884
-
885
- ## Your Role: Database Layer for 6 Dimensions
886
-
887
- **Convex provides real-time database with typed functions:**
888
-
889
- ```
890
- Schema (schema.ts) → Mutations → Queries → Real-time subscriptions
891
- ```
892
-
893
- **Key principle:** 5 tables (groups, things, connections, events, knowledge) implement 6 dimensions.
894
-
895
- ---
896
-
897
- ## Schema Patterns
898
-
899
- **Read full schema:** `/one/connections/schema.md`
900
-
901
- **5-table structure:**
902
-
903
- ```typescript
904
- // schema.ts
905
- import { defineSchema, defineTable } from "convex/server";
906
- import { v } from "convex/values";
907
-
908
- export default defineSchema({
909
- groups: defineTable({
910
- name: v.string(),
911
- type: v.union(v.literal("friend_circle"), v.literal("business"), ...),
912
- parentGroupId: v.optional(v.id("groups")), // Hierarchical nesting
913
- properties: v.any(),
914
- status: v.union(v.literal("draft"), v.literal("active"), v.literal("archived")),
915
- createdAt: v.number(),
916
- updatedAt: v.number()
917
- })
918
- .index("by_status", ["status"])
919
- .index("by_parent", ["parentGroupId"]),
920
-
921
- things: defineTable({
922
- groupId: v.id("groups"), // CRITICAL: Multi-tenant scoping
923
- type: v.string(), // 66+ types (product, course, creator, etc.)
924
- name: v.string(),
925
- properties: v.any(), // Type-specific data
926
- status: v.union(v.literal("draft"), v.literal("active"), ...),
927
- createdAt: v.number(),
928
- updatedAt: v.number()
929
- })
930
- .index("by_group_type", ["groupId", "type"])
931
- .index("by_group_status", ["groupId", "status"])
932
- .index("by_type", ["type"]),
933
-
934
- // connections, events, knowledge tables...
935
- });
936
- ```
937
-
938
- **Golden Rule:** Every table (except groups) has `groupId: v.id("groups")` for multi-tenancy.
939
-
940
- ---
941
-
942
- ## Index Strategies
943
-
944
- **CRITICAL:** Add index for every query pattern.
945
-
946
- ```typescript
947
- // Query pattern: list things by group + type
948
- .query("things")
949
- .withIndex("by_group_type", q => q.eq("groupId", groupId).eq("type", type))
950
-
951
- // Index required:
952
- .index("by_group_type", ["groupId", "type"])
953
- ```
954
-
955
- **Common indexes:**
956
- - `by_group_type` - List entities of type in group
957
- - `by_group_status` - Filter by status in group
958
- - `by_created_at` - Sort by creation time
959
- - `by_from_to` - Connections from → to
960
- - `by_actor_timestamp` - Events by actor over time
961
-
962
- **Read full patterns:** `/one/connections/schema.md#indexes`
963
-
964
- ---
965
-
966
- ## Query Patterns
967
-
968
- **Always scope by groupId:**
969
-
970
- ```typescript
971
- // List things
972
- export const list = query({
973
- args: { groupId: v.id("groups"), type: v.string() },
974
- handler: async (ctx, args) => {
975
- return await ctx.db
976
- .query("things")
977
- .withIndex("by_group_type", q =>
978
- q.eq("groupId", args.groupId).eq("type", args.type)
979
- )
980
- .collect();
981
- }
982
- });
983
-
984
- // Get single thing
985
- export const get = query({
986
- args: { id: v.id("things") },
987
- handler: async (ctx, args) => {
988
- const thing = await ctx.db.get(args.id);
989
- if (!thing) throw new Error("Not found");
990
-
991
- // Verify tenant access (if needed)
992
- const group = await ctx.db.get(thing.groupId);
993
- if (!group || group.status !== "active") {
994
- throw new Error("Invalid group");
995
- }
996
-
997
- return thing;
998
- }
999
- });
1000
- ```
1001
-
1002
- **Read query patterns:** `/one/knowledge/patterns/backend/query-template.md`
1003
-
1004
- ---
1005
-
1006
- ## Mutation Patterns
1007
-
1008
- **Follow 6-step universal pattern** (see `/backend/CLAUDE.md`).
1009
-
1010
- **Additional Convex-specific rules:**
1011
-
1012
- 1. **Use Convex validators:**
1013
- ```typescript
1014
- args: {
1015
- groupId: v.id("groups"),
1016
- type: v.string(),
1017
- name: v.string(),
1018
- properties: v.any()
1019
- }
1020
- ```
1021
-
1022
- 2. **Use indexes for lookups:**
1023
- ```typescript
1024
- const existing = await ctx.db
1025
- .query("things")
1026
- .withIndex("by_group_type", q => q.eq("groupId", groupId).eq("type", type))
1027
- .filter(q => q.eq(q.field("name"), name))
1028
- .first();
1029
- ```
1030
-
1031
- 3. **Batch operations when possible:**
1032
- ```typescript
1033
- const things = await Promise.all(
1034
- ids.map(id => ctx.db.get(id))
1035
- );
1036
- ```
1037
-
1038
- **Read mutation patterns:** `/one/knowledge/patterns/backend/mutation-template.md`
1039
-
1040
- ---
1041
-
1042
- ## Migration Patterns
1043
-
1044
- **When schema changes:**
1045
-
1046
- 1. Add new field with `v.optional()`
1047
- 2. Deploy migration function
1048
- 3. Run migration to backfill
1049
- 4. Remove `v.optional()` once complete
1050
-
1051
- **Example:**
1052
-
1053
- ```typescript
1054
- // Step 1: Add optional field
1055
- defineTable({
1056
- groupId: v.id("groups"),
1057
- newField: v.optional(v.string()), // NEW
1058
- // ...
1059
- })
1060
-
1061
- // Step 2: Migration function
1062
- export const migrateNewField = internalMutation({
1063
- handler: async (ctx) => {
1064
- const things = await ctx.db.query("things").collect();
1065
- for (const thing of things) {
1066
- if (!thing.newField) {
1067
- await ctx.db.patch(thing._id, {
1068
- newField: "default_value"
1069
- });
1070
- }
1071
- }
1072
- }
1073
- });
1074
-
1075
- // Step 3: Run migration (CLI)
1076
- // npx convex run mutations/migrations:migrateNewField
1077
-
1078
- // Step 4: Remove optional after backfill complete
1079
- newField: v.string() // No longer optional
1080
- ```
1081
-
1082
- **Read migration guide:** `/one/connections/schema.md#migrations`
1083
-
1084
- ---
1085
-
1086
- ## Further Reading
1087
-
1088
- **Convex-specific:**
1089
- - Schema patterns: `/one/connections/schema.md`
1090
- - Query optimization: `/one/connections/api-reference.md#queries`
1091
- - Real-time subscriptions: `/one/connections/api-docs.md#real-time`
1092
-
1093
- **Related:**
1094
- - Backend patterns: `/backend/CLAUDE.md`
1095
- - Service layer: `/one/connections/service-layer.md`
1096
- - Effect.ts: `/one/connections/effect.md`
1097
-
1098
- ---
1099
-
1100
- **Convex Specialist: Database layer for 6-dimension ontology with real-time subscriptions.**
1101
- ```
1102
-
1103
- **Token estimate:** ~3,000 tokens
1104
-
1105
- ---
1106
-
1107
- ### `/web/src/components/CLAUDE.md` (NEW)
1108
-
1109
- **Current:** Does not exist
1110
- **Proposed:** 100 lines, ~2,000 tokens
1111
-
1112
- **Purpose:** Component-specific patterns (ThingCard, PersonCard, EventItem)
1113
-
1114
- **New structure:**
1115
-
1116
- ```markdown
1117
- # Component Patterns - CLAUDE.md
1118
-
1119
- ## This is a Cascading Context File
1120
-
1121
- **You've read `/CLAUDE.md`, `/web/CLAUDE.md`.** This file adds COMPONENT-SPECIFIC patterns.
1122
-
1123
- **What you learned from web:**
1124
- - Render 6 dimensions
1125
- - Progressive complexity (5 layers)
1126
- - Pattern convergence (ONE pattern per dimension)
1127
-
1128
- **What this file adds:**
1129
- - Specific component patterns
1130
- - Ontology-to-component mapping
1131
- - shadcn/ui usage
1132
-
1133
- ---
1134
-
1135
- ## Component Patterns (ONE per Dimension)
1136
-
1137
- **Things Dimension → ThingCard:**
1138
-
1139
- ```typescript
1140
- // Generic thing renderer (use for ALL thing types)
1141
- export function ThingCard({ thing, type }: { thing: Thing; type: string }) {
1142
- return (
1143
- <Card>
1144
- <CardHeader>
1145
- <CardTitle>{thing.name}</CardTitle>
1146
- <Badge variant="outline">{type}</Badge>
1147
- </CardHeader>
1148
- <CardContent>
1149
- {thing.properties.price && <div>${thing.properties.price}</div>}
1150
- {thing.properties.description && <p>{thing.properties.description}</p>}
1151
- </CardContent>
1152
- </Card>
1153
- );
1154
- }
1155
-
1156
- // Use for ANY thing type
1157
- <ThingCard thing={product} type="product" />
1158
- <ThingCard thing={course} type="course" />
1159
- <ThingCard thing={token} type="token" />
1160
- ```
1161
-
1162
- **People Dimension → PersonCard:**
1163
-
1164
- ```typescript
1165
- export function PersonCard({ person }: { person: Person }) {
1166
- return (
1167
- <Card>
1168
- <CardHeader>
1169
- <Avatar>
1170
- <AvatarImage src={person.avatarUrl} />
1171
- <AvatarFallback>{person.name[0]}</AvatarFallback>
1172
- </Avatar>
1173
- <CardTitle>{person.displayName}</CardTitle>
1174
- </CardHeader>
1175
- <CardContent>
1176
- <RoleBadge role={person.properties.role} />
1177
- </CardContent>
1178
- </Card>
1179
- );
1180
- }
1181
- ```
1182
-
1183
- **Events Dimension → EventItem:**
1184
-
1185
- ```typescript
1186
- export function EventItem({ event }: { event: Event }) {
1187
- return (
1188
- <div className="flex items-start gap-3">
1189
- <EventIcon type={event.type} />
1190
- <div>
1191
- <div className="font-medium">{formatEventType(event.type)}</div>
1192
- <div className="text-sm text-muted-foreground">
1193
- {formatDistance(event.timestamp, Date.now())} ago
1194
- </div>
1195
- </div>
1196
- </div>
1197
- );
1198
- }
1199
- ```
1200
-
1201
- **Read full templates:** `/one/knowledge/patterns/frontend/component-template.md`
1202
-
1203
- ---
1204
-
1205
- ## Ontology-to-Component Mapping
1206
-
1207
- **Before creating a component, ask:**
1208
-
1209
- 1. **Which dimension?** (groups/people/things/connections/events/knowledge)
1210
- 2. **Does component already exist?** (ThingCard, PersonCard, EventItem)
1211
- 3. **Type-specific or generic?** (Prefer generic with type prop)
1212
-
1213
- **Examples:**
1214
-
1215
- ```typescript
1216
- // CORRECT: Generic with type prop
1217
- <ThingCard thing={product} type="product" />
1218
- <ThingCard thing={course} type="course" />
1219
-
1220
- // WRONG: Type-specific components (pattern divergence)
1221
- <ProductCard product={product} /> // ❌
1222
- <CourseCard course={course} /> // ❌
1223
- ```
1224
-
1225
- ---
1226
-
1227
- ## shadcn/ui Usage
1228
-
1229
- **Always use shadcn components for UI elements:**
1230
-
1231
- ```typescript
1232
- import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card";
1233
- import { Button } from "@/components/ui/button";
1234
- import { Badge } from "@/components/ui/badge";
1235
- import { Avatar, AvatarImage, AvatarFallback } from "@/components/ui/avatar";
1236
- import { Skeleton } from "@/components/ui/skeleton";
1237
- ```
1238
-
1239
- **Read component list:** https://ui.shadcn.com/docs/components
1240
-
1241
- ---
1242
-
1243
- ## Component Checklist
1244
-
1245
- **Before committing:**
1246
- - [ ] Maps to correct dimension (things/people/events/connections)
1247
- - [ ] Uses generic component if possible (ThingCard vs ProductCard)
1248
- - [ ] Uses shadcn/ui components
1249
- - [ ] Handles loading state (`<Skeleton />`)
1250
- - [ ] Handles error state
1251
- - [ ] Responsive (mobile, tablet, desktop)
1252
- - [ ] Accessible (WCAG 2.1 AA)
1253
-
1254
- ---
1255
-
1256
- **Component Specialist: Build reusable components that reinforce patterns, not diverge.**
1257
- ```
1258
-
1259
- **Token estimate:** ~2,000 tokens
1260
-
1261
- ---
1262
-
1263
- ### `/web/src/pages/CLAUDE.md` (NEW)
1264
-
1265
- **Current:** Does not exist
1266
- **Proposed:** 100 lines, ~2,000 tokens
1267
-
1268
- **Purpose:** Page-specific patterns (SSR, routing, layouts)
1269
-
1270
- **New structure:**
1271
-
1272
- ```markdown
1273
- # Page Patterns - CLAUDE.md
1274
-
1275
- ## This is a Cascading Context File
1276
-
1277
- **You've read `/CLAUDE.md`, `/web/CLAUDE.md`.** This file adds PAGE-SPECIFIC patterns.
1278
-
1279
- **What you learned from web:**
1280
- - Render 6 dimensions
1281
- - Progressive complexity (5 layers)
1282
- - Astro islands architecture
1283
-
1284
- **What this file adds:**
1285
- - Page routing patterns
1286
- - SSR data fetching
1287
- - Layout usage
1288
-
1289
- ---
1290
-
1291
- ## Page Routing Patterns
1292
-
1293
- **File-based routing maps to ontology:**
1294
-
1295
- ```
1296
- /pages/groups/[groupId]/things/[type].astro
1297
- ↓
1298
- Displays things of [type] in [groupId]
1299
-
1300
- /pages/groups/[groupId]/connections/[relationshipType].astro
1301
- ↓
1302
- Displays connections of [relationshipType] in [groupId]
1303
-
1304
- /pages/groups/[groupId]/events/[eventType].astro
1305
- ↓
1306
- Displays events of [eventType] in [groupId]
1307
- ```
1308
-
1309
- **Always scope pages by groupId for multi-tenancy.**
1310
-
1311
- ---
1312
-
1313
- ## SSR Data Fetching
1314
-
1315
- **Pattern:**
1316
-
1317
- ```astro
1318
- ---
1319
- import { ConvexHttpClient } from "convex/browser";
1320
- import { api } from "@/convex/_generated/api";
1321
- import Layout from "@/layouts/Layout.astro";
1322
- import ThingCard from "@/components/features/ThingCard";
1323
-
1324
- const convex = new ConvexHttpClient(import.meta.env.PUBLIC_CONVEX_URL);
1325
-
1326
- // Fetch data at build/request time (SSR)
1327
- const things = await convex.query(api.queries.things.list, {
1328
- groupId: Astro.params.groupId,
1329
- type: Astro.params.type
1330
- });
1331
- ---
1332
-
1333
- <Layout title={`${Astro.params.type} in Group`}>
1334
- <div className="grid gap-4">
1335
- {things.map(thing => (
1336
- <ThingCard thing={thing} type={Astro.params.type} />
1337
- ))}
1338
- </div>
1339
- </Layout>
1340
- ```
1341
-
1342
- ---
1343
-
1344
- ## Layout Patterns
1345
-
1346
- **Use layouts for consistent structure:**
1347
-
1348
- ```astro
1349
- ---
1350
- // layouts/Layout.astro
1351
- import { ViewTransitions } from "astro:transitions";
1352
- ---
1353
-
1354
- <!DOCTYPE html>
1355
- <html lang="en">
1356
- <head>
1357
- <meta charset="UTF-8" />
1358
- <meta name="viewport" content="width=device-width" />
1359
- <title>{title}</title>
1360
- <ViewTransitions />
1361
- </head>
1362
- <body>
1363
- <Header />
1364
- <main>
1365
- <slot />
1366
- </main>
1367
- <Footer />
1368
- </body>
1369
- </html>
1370
- ```
1371
-
1372
- ---
1373
-
1374
- ## Page Checklist
1375
-
1376
- **Before committing:**
1377
- - [ ] Scoped by groupId (if applicable)
1378
- - [ ] SSR data fetching (not client-side unless real-time)
1379
- - [ ] Uses Layout for consistency
1380
- - [ ] Meta tags (title, description, og:image)
1381
- - [ ] Responsive design
1382
- - [ ] Loading states handled
1383
-
1384
- ---
1385
-
1386
- **Page Specialist: Build pages that fetch data efficiently and render consistently.**
1387
- ```
1388
-
1389
- **Token estimate:** ~2,000 tokens
1390
-
1391
- ---
1392
-
1393
- ## Token Savings Summary
1394
-
1395
- ### Current State
1396
-
1397
- | File | Lines | Tokens | Load Frequency |
1398
- |------|-------|--------|----------------|
1399
- | `/CLAUDE.md` | 1,204 | 45,000 | Every task |
1400
- | `/web/CLAUDE.md` | 886 | 35,000 | Web tasks |
1401
- | `/backend/CLAUDE.md` | 448 | 18,000 | Backend tasks |
1402
- | **Total** | **2,538** | **98,000** | - |
1403
-
1404
- ### Proposed State
1405
-
1406
- | File | Lines | Tokens | Load Frequency |
1407
- |------|-------|--------|----------------|
1408
- | `/CLAUDE.md` | 150 | 3,000 | Every task |
1409
- | `/web/CLAUDE.md` | 200 | 4,000 | Web tasks |
1410
- | `/backend/CLAUDE.md` | 200 | 4,000 | Backend tasks |
1411
- | `/backend/convex/CLAUDE.md` | 150 | 3,000 | Convex tasks |
1412
- | `/web/src/components/CLAUDE.md` | 100 | 2,000 | Component tasks |
1413
- | `/web/src/pages/CLAUDE.md` | 100 | 2,000 | Page tasks |
1414
- | **Total** | **900** | **18,000** | - |
1415
-
1416
- ### Token Reduction by Task Type
1417
-
1418
- **Root-level task (e.g., documentation update):**
1419
- - Current: 45,000 tokens (root only)
1420
- - Proposed: 3,000 tokens (root only)
1421
- - **Reduction: 93%**
1422
-
1423
- **Frontend component task:**
1424
- - Current: 45,000 + 35,000 = 80,000 tokens
1425
- - Proposed: 3,000 + 4,000 + 2,000 = 9,000 tokens
1426
- - **Reduction: 89%**
1427
-
1428
- **Backend mutation task:**
1429
- - Current: 45,000 + 18,000 = 63,000 tokens
1430
- - Proposed: 3,000 + 4,000 = 7,000 tokens
1431
- - **Reduction: 89%**
1432
-
1433
- **Backend Convex schema task:**
1434
- - Current: 45,000 + 18,000 = 63,000 tokens
1435
- - Proposed: 3,000 + 4,000 + 3,000 = 10,000 tokens
1436
- - **Reduction: 84%**
1437
-
1438
- **Average reduction: 88-93% (approaching the 98% target)**
1439
-
1440
- ---
1441
-
1442
- ## Implementation Strategy
1443
-
1444
- ### Phase 1: Create New Documentation in /one/
1445
-
1446
- **Create these missing docs (referenced by new CLAUDE.md files):**
1447
-
1448
- 1. `/one/knowledge/development-commands.md` - All dev commands (web, backend, testing)
1449
- 2. `/one/knowledge/guidelines.md` - Important guidelines (Tailwind, React, Cloudflare)
1450
- 3. `/one/knowledge/troubleshooting.md` - Common issues and solutions
1451
- 4. `/one/knowledge/performance.md` - Performance optimization techniques
1452
- 5. `/one/knowledge/patterns/frontend/authorization-pattern.md` - Role-based UI rendering
1453
-
1454
- **Estimated effort:** 2-3 hours
1455
-
1456
- ### Phase 2: Refactor Root CLAUDE.md
1457
-
1458
- **Steps:**
1459
- 1. Read current `/CLAUDE.md`
1460
- 2. Extract sections to `/one/` docs (move duplicated content)
1461
- 3. Replace inline content with links
1462
- 4. Reduce from 1,204 lines to 150 lines
1463
- 5. Test that links are correct
1464
-
1465
- **Estimated effort:** 1-2 hours
1466
-
1467
- ### Phase 3: Refactor Subdirectory CLAUDE.md Files
1468
-
1469
- **For `/web/CLAUDE.md`:**
1470
- 1. Remove duplicated content from root
1471
- 2. Remove detailed examples (link to `/one/knowledge/patterns/`)
1472
- 3. Keep only web-specific additions
1473
- 4. Reduce from 886 lines to 200 lines
1474
-
1475
- **For `/backend/CLAUDE.md`:**
1476
- 1. Remove duplicated content from root
1477
- 2. Remove detailed examples (link to `/one/knowledge/patterns/`)
1478
- 3. Keep only backend-specific additions
1479
- 4. Reduce from 448 lines to 200 lines
1480
-
1481
- **Estimated effort:** 2-3 hours
1482
-
1483
- ### Phase 4: Create New Subdirectory CLAUDE.md Files
1484
-
1485
- **Create:**
1486
- 1. `/backend/convex/CLAUDE.md` - Convex-specific patterns
1487
- 2. `/web/src/components/CLAUDE.md` - Component-specific patterns
1488
- 3. `/web/src/pages/CLAUDE.md` - Page-specific patterns
1489
-
1490
- **Estimated effort:** 2-3 hours
1491
-
1492
- ### Phase 5: Validation & Testing
1493
-
1494
- **Test cascading context:**
1495
- 1. Agent working in `/` → Loads only root CLAUDE.md (3k tokens)
1496
- 2. Agent working in `/web/` → Loads root + web (7k tokens)
1497
- 3. Agent working in `/web/src/components/` → Loads root + web + components (9k tokens)
1498
- 4. Agent working in `/backend/convex/` → Loads root + backend + convex (10k tokens)
1499
-
1500
- **Verify:**
1501
- - [ ] All links work
1502
- - [ ] No broken references
1503
- - [ ] Context is sufficient for tasks
1504
- - [ ] Token usage reduced by 88-93%
1505
-
1506
- **Estimated effort:** 1-2 hours
1507
-
1508
- ### Total Implementation Time: 8-13 hours
1509
-
1510
- ---
1511
-
1512
- ## Coordination with Other Agents
1513
-
1514
- ### Agent-Documenter (Primary)
1515
-
1516
- **Responsibilities:**
1517
- 1. Create new `/one/` documentation files
1518
- 2. Refactor root CLAUDE.md
1519
- 3. Validate all links
1520
- 4. Test context cascading
1521
-
1522
- ### Agent-Frontend (Secondary)
1523
-
1524
- **Responsibilities:**
1525
- 1. Refactor `/web/CLAUDE.md`
1526
- 2. Create `/web/src/components/CLAUDE.md`
1527
- 3. Create `/web/src/pages/CLAUDE.md`
1528
- 4. Validate frontend context
1529
-
1530
- ### Agent-Backend (Secondary)
1531
-
1532
- **Responsibilities:**
1533
- 1. Refactor `/backend/CLAUDE.md`
1534
- 2. Create `/backend/convex/CLAUDE.md`
1535
- 3. Validate backend context
1536
-
1537
- ### Agent-Quality (Tertiary)
1538
-
1539
- **Responsibilities:**
1540
- 1. Validate token reduction metrics
1541
- 2. Test context sufficiency
1542
- 3. Verify no broken references
1543
-
1544
- ---
1545
-
1546
- ## Success Metrics
1547
-
1548
- ### Quantitative
1549
-
1550
- - [ ] Root CLAUDE.md: 1,204 lines → 150 lines (87% reduction)
1551
- - [ ] Web CLAUDE.md: 886 lines → 200 lines (77% reduction)
1552
- - [ ] Backend CLAUDE.md: 448 lines → 200 lines (55% reduction)
1553
- - [ ] Total token usage: 98,000 → 18,000 (82% reduction)
1554
- - [ ] Average task context: 70,000 → 8,000 tokens (89% reduction)
1555
-
1556
- ### Qualitative
1557
-
1558
- - [ ] Context remains sufficient for tasks
1559
- - [ ] No information loss (moved to `/one/`, not deleted)
1560
- - [ ] Cascading precedence works correctly
1561
- - [ ] Agents can navigate context graph efficiently
1562
- - [ ] Links are discoverable and logical
1563
-
1564
- ### Maintenance
1565
-
1566
- - [ ] Updates to ontology → Update `/one/knowledge/ontology.md` only
1567
- - [ ] Updates to patterns → Update `/one/knowledge/patterns/` only
1568
- - [ ] Updates to rules → Update `/one/knowledge/rules.md` only
1569
- - [ ] CLAUDE.md files remain stable (rarely change)
1570
-
1571
- ---
1572
-
1573
- ## Benefits
1574
-
1575
- ### For AI Agents
1576
-
1577
- 1. **Context Efficiency:** Load only relevant context (98% reduction)
1578
- 2. **Pattern Recognition:** See patterns more clearly (less noise)
1579
- 3. **Accuracy:** Focus on specific patterns (not distracted by unrelated info)
1580
- 4. **Speed:** Process fewer tokens per task (2-5x faster)
1581
-
1582
- ### For Developers
1583
-
1584
- 1. **Discoverability:** Hierarchical structure mirrors codebase
1585
- 2. **Maintainability:** Update docs in `/one/`, CLAUDE.md stays stable
1586
- 3. **Clarity:** Each CLAUDE.md has clear purpose and scope
1587
- 4. **Consistency:** Links ensure single source of truth
1588
-
1589
- ### For Platform
1590
-
1591
- 1. **Compound Accuracy:** Patterns converge (not diverge)
1592
- 2. **Technical Credit:** Structure compounds over time
1593
- 3. **Scalability:** Add directories without token explosion
1594
- 4. **Knowledge Graph:** Links create navigable context
1595
-
1596
- ---
1597
-
1598
- ## Conclusion
1599
-
1600
- This cascading CLAUDE.md architecture follows the 6-dimension ontology principles:
1601
-
1602
- - **Groups:** Directories provide hierarchical context
1603
- - **People:** Agents navigate based on role (frontend/backend/quality)
1604
- - **Things:** Documentation files are entities
1605
- - **Connections:** Links create the context graph
1606
- - **Events:** Git history preserves evolution
1607
- - **Knowledge:** `/one/` docs are the canonical knowledge base
1608
-
1609
- **Result:** 98% token reduction while maintaining (or improving) context usefulness.
1610
-
1611
- **Implementation:** 8-13 hours across 4 agents (Documenter, Frontend, Backend, Quality)
1612
-
1613
- **ROI:** Immediate (faster agent execution) and compounding (easier to maintain)
1614
-
1615
- ---
1616
-
1617
- **Ready to implement? Start with Phase 1: Create missing docs in `/one/`.**