@proflandrigan/shards 1.1.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 (397) hide show
  1. package/README.md +475 -0
  2. package/package.json +37 -0
  3. package/src/agents/academic.md +276 -0
  4. package/src/agents/ai-engineer.md +377 -0
  5. package/src/agents/analytics-engineer.md +364 -0
  6. package/src/agents/applied-ml-scientist.md +410 -0
  7. package/src/agents/backend-engineer.md +255 -0
  8. package/src/agents/bi-engineer.md +333 -0
  9. package/src/agents/data-analyst.md +343 -0
  10. package/src/agents/data-engineer.md +260 -0
  11. package/src/agents/data-modeller.md +386 -0
  12. package/src/agents/data-scientist.md +366 -0
  13. package/src/agents/deep-learning-engineer.md +389 -0
  14. package/src/agents/ml-engineer.md +424 -0
  15. package/src/agents/mlops-engineer.md +339 -0
  16. package/src/agents/researcher.md +187 -0
  17. package/src/agents/specific_instructions/academic/critical_review.md +263 -0
  18. package/src/agents/specific_instructions/academic/report.md +113 -0
  19. package/src/agents/specific_instructions/ai_engineer/advise.md +162 -0
  20. package/src/agents/specific_instructions/ai_engineer/bi_engineer_handoff.md +86 -0
  21. package/src/agents/specific_instructions/ai_engineer/experiment.md +471 -0
  22. package/src/agents/specific_instructions/ai_engineer/experiment_ui_mode.md +44 -0
  23. package/src/agents/specific_instructions/ai_engineer/phases/index.md +45 -0
  24. package/src/agents/specific_instructions/ai_engineer/phases/phase-1.md +55 -0
  25. package/src/agents/specific_instructions/ai_engineer/phases/phase-2.md +86 -0
  26. package/src/agents/specific_instructions/ai_engineer/phases/phase-3.md +96 -0
  27. package/src/agents/specific_instructions/ai_engineer/phases/phase-4.md +138 -0
  28. package/src/agents/specific_instructions/ai_engineer/phases/phase-5.md +157 -0
  29. package/src/agents/specific_instructions/ai_engineer/phases/phase-6.md +196 -0
  30. package/src/agents/specific_instructions/ai_engineer/phases/phase-7.md +313 -0
  31. package/src/agents/specific_instructions/ai_engineer/phases.md +1011 -0
  32. package/src/agents/specific_instructions/ai_engineer/prompt_lab.md +161 -0
  33. package/src/agents/specific_instructions/ai_engineer/prompt_lab_ui_mode.md +28 -0
  34. package/src/agents/specific_instructions/ai_engineer/research.md +393 -0
  35. package/src/agents/specific_instructions/ai_engineer/research_ui_mode.md +66 -0
  36. package/src/agents/specific_instructions/ai_engineer/review.md +159 -0
  37. package/src/agents/specific_instructions/ai_engineer/validation_checklist.md +182 -0
  38. package/src/agents/specific_instructions/analytics_engineer/advise.md +155 -0
  39. package/src/agents/specific_instructions/analytics_engineer/bi_engineer_handoff.md +91 -0
  40. package/src/agents/specific_instructions/analytics_engineer/data_analyst_handoff.md +84 -0
  41. package/src/agents/specific_instructions/analytics_engineer/deep_phases.md +818 -0
  42. package/src/agents/specific_instructions/analytics_engineer/phases_deep/index.md +24 -0
  43. package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-1.md +77 -0
  44. package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-2.md +106 -0
  45. package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-3.md +93 -0
  46. package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-4.md +79 -0
  47. package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-5.md +61 -0
  48. package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-6.md +45 -0
  49. package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-7.md +235 -0
  50. package/src/agents/specific_instructions/analytics_engineer/phases_deep/phase-8.md +221 -0
  51. package/src/agents/specific_instructions/analytics_engineer/phases_quick/index.md +19 -0
  52. package/src/agents/specific_instructions/analytics_engineer/phases_quick/phase-1.md +47 -0
  53. package/src/agents/specific_instructions/analytics_engineer/phases_quick/phase-2.md +78 -0
  54. package/src/agents/specific_instructions/analytics_engineer/quick_phases.md +112 -0
  55. package/src/agents/specific_instructions/analytics_engineer/review.md +167 -0
  56. package/src/agents/specific_instructions/analytics_engineer/service_mode.md +369 -0
  57. package/src/agents/specific_instructions/analytics_engineer/ui_mode.md +45 -0
  58. package/src/agents/specific_instructions/analytics_engineer/update.md +162 -0
  59. package/src/agents/specific_instructions/analytics_engineer/validation_checklist.md +121 -0
  60. package/src/agents/specific_instructions/applied_ml_scientist/advise.md +143 -0
  61. package/src/agents/specific_instructions/applied_ml_scientist/phases/index.md +21 -0
  62. package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-1.md +51 -0
  63. package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-2.md +66 -0
  64. package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-3.md +113 -0
  65. package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-4.md +104 -0
  66. package/src/agents/specific_instructions/applied_ml_scientist/phases/phase-5.md +156 -0
  67. package/src/agents/specific_instructions/applied_ml_scientist/phases.md +428 -0
  68. package/src/agents/specific_instructions/applied_ml_scientist/research.md +379 -0
  69. package/src/agents/specific_instructions/applied_ml_scientist/review.md +142 -0
  70. package/src/agents/specific_instructions/applied_ml_scientist/validation_checklist.md +136 -0
  71. package/src/agents/specific_instructions/backend_engineer/clean.md +149 -0
  72. package/src/agents/specific_instructions/backend_engineer/review.md +91 -0
  73. package/src/agents/specific_instructions/backend_engineer/review_checklist.md +54 -0
  74. package/src/agents/specific_instructions/backend_engineer/service_mode.md +67 -0
  75. package/src/agents/specific_instructions/bi_engineer/advise.md +137 -0
  76. package/src/agents/specific_instructions/bi_engineer/data_analyst_handoff.md +77 -0
  77. package/src/agents/specific_instructions/bi_engineer/incoming_handoff.md +45 -0
  78. package/src/agents/specific_instructions/bi_engineer/phases/index.md +20 -0
  79. package/src/agents/specific_instructions/bi_engineer/phases/phase-1.md +164 -0
  80. package/src/agents/specific_instructions/bi_engineer/phases/phase-2.md +92 -0
  81. package/src/agents/specific_instructions/bi_engineer/phases/phase-3.md +121 -0
  82. package/src/agents/specific_instructions/bi_engineer/phases/phase-4.md +106 -0
  83. package/src/agents/specific_instructions/bi_engineer/phases.md +451 -0
  84. package/src/agents/specific_instructions/bi_engineer/review.md +166 -0
  85. package/src/agents/specific_instructions/bi_engineer/update.md +147 -0
  86. package/src/agents/specific_instructions/bi_engineer/validation_checklist.md +124 -0
  87. package/src/agents/specific_instructions/data_analyst/advise.md +138 -0
  88. package/src/agents/specific_instructions/data_analyst/explain.md +221 -0
  89. package/src/agents/specific_instructions/data_analyst/incoming_handoff.md +40 -0
  90. package/src/agents/specific_instructions/data_analyst/phases/index.md +20 -0
  91. package/src/agents/specific_instructions/data_analyst/phases/phase-1.md +159 -0
  92. package/src/agents/specific_instructions/data_analyst/phases/phase-2.md +112 -0
  93. package/src/agents/specific_instructions/data_analyst/phases/phase-3.md +265 -0
  94. package/src/agents/specific_instructions/data_analyst/phases/phase-4.md +100 -0
  95. package/src/agents/specific_instructions/data_analyst/phases.md +501 -0
  96. package/src/agents/specific_instructions/data_analyst/review.md +138 -0
  97. package/src/agents/specific_instructions/data_analyst/ui_mode.md +26 -0
  98. package/src/agents/specific_instructions/data_analyst/update.md +144 -0
  99. package/src/agents/specific_instructions/data_analyst/validation_checklist.md +95 -0
  100. package/src/agents/specific_instructions/data_engineer/advise.md +137 -0
  101. package/src/agents/specific_instructions/data_engineer/phases.md +466 -0
  102. package/src/agents/specific_instructions/data_engineer/phases_deep/index.md +23 -0
  103. package/src/agents/specific_instructions/data_engineer/phases_deep/phase-1.md +49 -0
  104. package/src/agents/specific_instructions/data_engineer/phases_deep/phase-2.md +93 -0
  105. package/src/agents/specific_instructions/data_engineer/phases_deep/phase-3.md +55 -0
  106. package/src/agents/specific_instructions/data_engineer/phases_deep/phase-4.md +48 -0
  107. package/src/agents/specific_instructions/data_engineer/phases_deep/phase-5.md +40 -0
  108. package/src/agents/specific_instructions/data_engineer/phases_deep/phase-6.md +102 -0
  109. package/src/agents/specific_instructions/data_engineer/phases_deep/phase-7.md +87 -0
  110. package/src/agents/specific_instructions/data_engineer/phases_quick/index.md +19 -0
  111. package/src/agents/specific_instructions/data_engineer/phases_quick/phase-1.md +45 -0
  112. package/src/agents/specific_instructions/data_engineer/phases_quick/phase-2.md +54 -0
  113. package/src/agents/specific_instructions/data_engineer/review.md +135 -0
  114. package/src/agents/specific_instructions/data_engineer/validation_checklist.md +136 -0
  115. package/src/agents/specific_instructions/data_modeller/advise.md +137 -0
  116. package/src/agents/specific_instructions/data_modeller/phases.md +581 -0
  117. package/src/agents/specific_instructions/data_modeller/phases_deep/index.md +23 -0
  118. package/src/agents/specific_instructions/data_modeller/phases_deep/phase-1.md +52 -0
  119. package/src/agents/specific_instructions/data_modeller/phases_deep/phase-2.md +113 -0
  120. package/src/agents/specific_instructions/data_modeller/phases_deep/phase-3.md +47 -0
  121. package/src/agents/specific_instructions/data_modeller/phases_deep/phase-4.md +51 -0
  122. package/src/agents/specific_instructions/data_modeller/phases_deep/phase-5.md +45 -0
  123. package/src/agents/specific_instructions/data_modeller/phases_deep/phase-6.md +105 -0
  124. package/src/agents/specific_instructions/data_modeller/phases_deep/phase-7.md +136 -0
  125. package/src/agents/specific_instructions/data_modeller/phases_quick/index.md +19 -0
  126. package/src/agents/specific_instructions/data_modeller/phases_quick/phase-1.md +47 -0
  127. package/src/agents/specific_instructions/data_modeller/phases_quick/phase-2.md +65 -0
  128. package/src/agents/specific_instructions/data_modeller/review.md +141 -0
  129. package/src/agents/specific_instructions/data_modeller/service_mode.md +218 -0
  130. package/src/agents/specific_instructions/data_modeller/validation_checklist.md +125 -0
  131. package/src/agents/specific_instructions/data_scientist/advise.md +158 -0
  132. package/src/agents/specific_instructions/data_scientist/bi_engineer_handoff.md +63 -0
  133. package/src/agents/specific_instructions/data_scientist/experiment.md +482 -0
  134. package/src/agents/specific_instructions/data_scientist/experiment_ui_mode.md +44 -0
  135. package/src/agents/specific_instructions/data_scientist/explain.md +247 -0
  136. package/src/agents/specific_instructions/data_scientist/greenfield_data.md +35 -0
  137. package/src/agents/specific_instructions/data_scientist/ml_engineer_handoff.md +52 -0
  138. package/src/agents/specific_instructions/data_scientist/notebook_walkthrough.md +76 -0
  139. package/src/agents/specific_instructions/data_scientist/phases/index.md +24 -0
  140. package/src/agents/specific_instructions/data_scientist/phases/phase-1.md +45 -0
  141. package/src/agents/specific_instructions/data_scientist/phases/phase-2.md +67 -0
  142. package/src/agents/specific_instructions/data_scientist/phases/phase-3.md +89 -0
  143. package/src/agents/specific_instructions/data_scientist/phases/phase-4.md +143 -0
  144. package/src/agents/specific_instructions/data_scientist/phases/phase-5.md +71 -0
  145. package/src/agents/specific_instructions/data_scientist/phases/phase-6.md +239 -0
  146. package/src/agents/specific_instructions/data_scientist/phases/phase-7.md +207 -0
  147. package/src/agents/specific_instructions/data_scientist/phases.md +651 -0
  148. package/src/agents/specific_instructions/data_scientist/research.md +345 -0
  149. package/src/agents/specific_instructions/data_scientist/research_ui_mode.md +52 -0
  150. package/src/agents/specific_instructions/data_scientist/review.md +136 -0
  151. package/src/agents/specific_instructions/data_scientist/service_mode.md +247 -0
  152. package/src/agents/specific_instructions/data_scientist/validation_checklist.md +183 -0
  153. package/src/agents/specific_instructions/deep_learning_engineer/advise.md +145 -0
  154. package/src/agents/specific_instructions/deep_learning_engineer/phases/index.md +21 -0
  155. package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-1.md +74 -0
  156. package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-2.md +98 -0
  157. package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-3.md +76 -0
  158. package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-4.md +128 -0
  159. package/src/agents/specific_instructions/deep_learning_engineer/phases/phase-5.md +292 -0
  160. package/src/agents/specific_instructions/deep_learning_engineer/phases.md +567 -0
  161. package/src/agents/specific_instructions/deep_learning_engineer/research.md +389 -0
  162. package/src/agents/specific_instructions/deep_learning_engineer/review.md +155 -0
  163. package/src/agents/specific_instructions/deep_learning_engineer/validation_checklist.md +147 -0
  164. package/src/agents/specific_instructions/ml_engineer/advise.md +174 -0
  165. package/src/agents/specific_instructions/ml_engineer/bi_engineer_handoff.md +71 -0
  166. package/src/agents/specific_instructions/ml_engineer/experiment.md +474 -0
  167. package/src/agents/specific_instructions/ml_engineer/experiment_ui_mode.md +44 -0
  168. package/src/agents/specific_instructions/ml_engineer/notebook_walkthrough.md +75 -0
  169. package/src/agents/specific_instructions/ml_engineer/phases/index.md +25 -0
  170. package/src/agents/specific_instructions/ml_engineer/phases/phase-1.md +49 -0
  171. package/src/agents/specific_instructions/ml_engineer/phases/phase-2.md +75 -0
  172. package/src/agents/specific_instructions/ml_engineer/phases/phase-3.md +124 -0
  173. package/src/agents/specific_instructions/ml_engineer/phases/phase-4.md +279 -0
  174. package/src/agents/specific_instructions/ml_engineer/phases/phase-5.md +160 -0
  175. package/src/agents/specific_instructions/ml_engineer/phases/phase-6-5.md +170 -0
  176. package/src/agents/specific_instructions/ml_engineer/phases/phase-6.md +295 -0
  177. package/src/agents/specific_instructions/ml_engineer/phases/phase-7.md +337 -0
  178. package/src/agents/specific_instructions/ml_engineer/phases.md +1068 -0
  179. package/src/agents/specific_instructions/ml_engineer/research.md +437 -0
  180. package/src/agents/specific_instructions/ml_engineer/research_ui_mode.md +71 -0
  181. package/src/agents/specific_instructions/ml_engineer/review.md +187 -0
  182. package/src/agents/specific_instructions/ml_engineer/service_mode.md +273 -0
  183. package/src/agents/specific_instructions/ml_engineer/validation_checklist.md +185 -0
  184. package/src/agents/specific_instructions/mlops_engineer/advise.md +139 -0
  185. package/src/agents/specific_instructions/mlops_engineer/phases/index.md +23 -0
  186. package/src/agents/specific_instructions/mlops_engineer/phases/phase-1.md +52 -0
  187. package/src/agents/specific_instructions/mlops_engineer/phases/phase-2.md +86 -0
  188. package/src/agents/specific_instructions/mlops_engineer/phases/phase-3.md +105 -0
  189. package/src/agents/specific_instructions/mlops_engineer/phases/phase-4.md +128 -0
  190. package/src/agents/specific_instructions/mlops_engineer/phases/phase-5.md +106 -0
  191. package/src/agents/specific_instructions/mlops_engineer/phases/phase-6.md +128 -0
  192. package/src/agents/specific_instructions/mlops_engineer/phases/phase-7.md +144 -0
  193. package/src/agents/specific_instructions/mlops_engineer/phases.md +671 -0
  194. package/src/agents/specific_instructions/mlops_engineer/review.md +164 -0
  195. package/src/agents/specific_instructions/mlops_engineer/service_mode.md +81 -0
  196. package/src/agents/specific_instructions/mlops_engineer/validation_checklist.md +151 -0
  197. package/src/agents/specific_instructions/researcher/critical_review.md +292 -0
  198. package/src/agents/specific_instructions/researcher/review_checklist.md +67 -0
  199. package/src/agents/specific_instructions/researcher/service_mode.md +224 -0
  200. package/src/agents/specific_instructions/shared/auto_verify_mode.md +141 -0
  201. package/src/agents/specific_instructions/shared/autonomous_research.md +1289 -0
  202. package/src/agents/specific_instructions/shared/behavioral_rules.md +36 -0
  203. package/src/agents/specific_instructions/shared/diverge_protocol.md +387 -0
  204. package/src/agents/specific_instructions/shared/engineering_guidelines.md +136 -0
  205. package/src/agents/specific_instructions/shared/experiment_versioning.md +184 -0
  206. package/src/agents/specific_instructions/shared/goal_mode.md +187 -0
  207. package/src/agents/specific_instructions/shared/incremental_testing.md +139 -0
  208. package/src/agents/specific_instructions/shared/intent_discovery.md +223 -0
  209. package/src/agents/specific_instructions/shared/join_path_protocol.md +168 -0
  210. package/src/agents/specific_instructions/shared/knowledge_checkpoint.md +83 -0
  211. package/src/agents/specific_instructions/shared/knowledge_harvest.md +220 -0
  212. package/src/agents/specific_instructions/shared/knowledge_retrieval.md +100 -0
  213. package/src/agents/specific_instructions/shared/notebook_walkthrough_protocol.md +367 -0
  214. package/src/agents/specific_instructions/shared/reviewer_verdict_protocol.md +74 -0
  215. package/src/agents/specific_instructions/shared/swarm_protocol.md +97 -0
  216. package/src/agents/specific_instructions/shared/validation_protocol.md +139 -0
  217. package/src/agents/specific_instructions/syn/arbiter.md +140 -0
  218. package/src/agents/specific_instructions/syn/brainstorm.md +550 -0
  219. package/src/agents/specific_instructions/syn/code_review.md +232 -0
  220. package/src/agents/specific_instructions/syn/diff.md +239 -0
  221. package/src/agents/specific_instructions/syn/final_review.md +65 -0
  222. package/src/agents/specific_instructions/syn/fixer.md +240 -0
  223. package/src/agents/specific_instructions/syn/free_form.md +130 -0
  224. package/src/agents/specific_instructions/syn/knowledge.md +468 -0
  225. package/src/agents/specific_instructions/syn/notebook_walkthrough.md +78 -0
  226. package/src/agents/specific_instructions/syn/panel_review.md +634 -0
  227. package/src/agents/specific_instructions/syn/pm.md +453 -0
  228. package/src/agents/specific_instructions/syn/pr_review.md +255 -0
  229. package/src/agents/specific_instructions/syn/slides.md +417 -0
  230. package/src/agents/syn.md +729 -0
  231. package/src/commands/academic.md +41 -0
  232. package/src/commands/ai-engineer.md +45 -0
  233. package/src/commands/analytics-engineer.md +48 -0
  234. package/src/commands/applied-ml-scientist.md +45 -0
  235. package/src/commands/backend-engineer.md +35 -0
  236. package/src/commands/bi-engineer.md +40 -0
  237. package/src/commands/brainstorm.md +24 -0
  238. package/src/commands/data-analyst.md +38 -0
  239. package/src/commands/data-engineer.md +37 -0
  240. package/src/commands/data-modeller.md +38 -0
  241. package/src/commands/data-scientist.md +38 -0
  242. package/src/commands/deep-learning-engineer.md +47 -0
  243. package/src/commands/end.md +49 -0
  244. package/src/commands/knowledge.md +24 -0
  245. package/src/commands/ml-engineer.md +42 -0
  246. package/src/commands/mlops-engineer.md +47 -0
  247. package/src/commands/notebook-walkthrough.md +58 -0
  248. package/src/commands/researcher.md +40 -0
  249. package/src/commands/resume.md +57 -0
  250. package/src/commands/review-pr.md +26 -0
  251. package/src/commands/shards-guide.md +41 -0
  252. package/src/commands/shards-ui.md +32 -0
  253. package/src/commands/shards.md +41 -0
  254. package/src/docs/01-getting-started/concepts.md +109 -0
  255. package/src/docs/01-getting-started/first-session.md +79 -0
  256. package/src/docs/01-getting-started/install.md +61 -0
  257. package/src/docs/02-agents/academic.md +71 -0
  258. package/src/docs/02-agents/ai-engineer.md +78 -0
  259. package/src/docs/02-agents/analytics-engineer.md +58 -0
  260. package/src/docs/02-agents/applied-ml-scientist.md +59 -0
  261. package/src/docs/02-agents/backend-engineer.md +58 -0
  262. package/src/docs/02-agents/bi-engineer.md +65 -0
  263. package/src/docs/02-agents/data-analyst.md +67 -0
  264. package/src/docs/02-agents/data-engineer.md +57 -0
  265. package/src/docs/02-agents/data-modeller.md +51 -0
  266. package/src/docs/02-agents/data-scientist.md +78 -0
  267. package/src/docs/02-agents/deep-learning-engineer.md +64 -0
  268. package/src/docs/02-agents/ml-engineer.md +80 -0
  269. package/src/docs/02-agents/mlops-engineer.md +59 -0
  270. package/src/docs/02-agents/overview.md +62 -0
  271. package/src/docs/02-agents/researcher.md +73 -0
  272. package/src/docs/02-agents/syn.md +88 -0
  273. package/src/docs/03-protocols/auto-verify.md +82 -0
  274. package/src/docs/03-protocols/autonomous-research.md +59 -0
  275. package/src/docs/03-protocols/behavioral-rules.md +35 -0
  276. package/src/docs/03-protocols/diverge.md +50 -0
  277. package/src/docs/03-protocols/engineering-guidelines.md +56 -0
  278. package/src/docs/03-protocols/experiment-versioning.md +38 -0
  279. package/src/docs/03-protocols/gate-pattern.md +65 -0
  280. package/src/docs/03-protocols/incremental-testing.md +68 -0
  281. package/src/docs/03-protocols/join-path.md +46 -0
  282. package/src/docs/03-protocols/knowledge-ledger.md +70 -0
  283. package/src/docs/03-protocols/reviewer-verdicts.md +39 -0
  284. package/src/docs/03-protocols/swarm.md +40 -0
  285. package/src/docs/03-protocols/validation.md +174 -0
  286. package/src/docs/04-ui/activity-bar.md +70 -0
  287. package/src/docs/04-ui/chat-pane.md +80 -0
  288. package/src/docs/04-ui/code-intel.md +62 -0
  289. package/src/docs/04-ui/file-editing.md +61 -0
  290. package/src/docs/04-ui/git.md +54 -0
  291. package/src/docs/04-ui/keybindings.md +79 -0
  292. package/src/docs/04-ui/knowledge-map.md +76 -0
  293. package/src/docs/04-ui/overview.md +93 -0
  294. package/src/docs/04-ui/panels.md +49 -0
  295. package/src/docs/04-ui/pinboard-selection.md +66 -0
  296. package/src/docs/04-ui/quick-open-palette.md +56 -0
  297. package/src/docs/04-ui/sessions.md +81 -0
  298. package/src/docs/04-ui/settings-permissions.md +56 -0
  299. package/src/docs/05-commands/reference.md +59 -0
  300. package/src/docs/06-outputs/directory-map.md +116 -0
  301. package/src/docs/07-workflows/ai-eval-first.md +57 -0
  302. package/src/docs/07-workflows/deep-study-to-production.md +76 -0
  303. package/src/docs/07-workflows/diverge-exploration.md +77 -0
  304. package/src/docs/07-workflows/quick-analysis.md +45 -0
  305. package/src/docs/08-integrations/claude-code-auto-mode.md +191 -0
  306. package/src/docs/08-integrations/google-slides.md +175 -0
  307. package/src/docs/README.md +30 -0
  308. package/src/docs/manifest.json +108 -0
  309. package/src/templates/analysis-template.md +20 -0
  310. package/src/templates/branch-report.md +46 -0
  311. package/src/templates/diff-report.md +88 -0
  312. package/src/templates/knowledge-index.md +7 -0
  313. package/src/templates/model-card-schema.json +186 -0
  314. package/src/templates/model-card-schema.md +88 -0
  315. package/src/templates/model-card.md +124 -0
  316. package/src/templates/project-plan.md +47 -0
  317. package/src/templates/project-specs.md +81 -0
  318. package/src/templates/report-template.md +43 -0
  319. package/src/templates/study-template.md +25 -0
  320. package/src/ui/cc-readonly.js +181 -0
  321. package/src/ui/chat-session.js +466 -0
  322. package/src/ui/css/base.css +136 -0
  323. package/src/ui/css/brainstorm.css +525 -0
  324. package/src/ui/css/chat.css +1405 -0
  325. package/src/ui/css/editor.css +546 -0
  326. package/src/ui/css/eval-dashboard.css +157 -0
  327. package/src/ui/css/experiment.css +237 -0
  328. package/src/ui/css/guide.css +186 -0
  329. package/src/ui/css/knowledge-map.css +383 -0
  330. package/src/ui/css/layout.css +431 -0
  331. package/src/ui/css/model-card.css +161 -0
  332. package/src/ui/css/notebook-walkthrough.css +271 -0
  333. package/src/ui/css/pr-review.css +403 -0
  334. package/src/ui/css/prompt-lab.css +325 -0
  335. package/src/ui/css/sessions.css +258 -0
  336. package/src/ui/css/sidebar.css +661 -0
  337. package/src/ui/css/terminal.css +113 -0
  338. package/src/ui/css/theme-light.css +542 -0
  339. package/src/ui/index.html +389 -0
  340. package/src/ui/js/agents.js +32 -0
  341. package/src/ui/js/bookmarks.js +230 -0
  342. package/src/ui/js/chat.js +1776 -0
  343. package/src/ui/js/code-intel.js +328 -0
  344. package/src/ui/js/command-palette.js +142 -0
  345. package/src/ui/js/events.js +591 -0
  346. package/src/ui/js/explorer.js +317 -0
  347. package/src/ui/js/file-view.js +477 -0
  348. package/src/ui/js/git.js +536 -0
  349. package/src/ui/js/guide.js +198 -0
  350. package/src/ui/js/hud.js +75 -0
  351. package/src/ui/js/init.js +351 -0
  352. package/src/ui/js/knowledge-map.js +906 -0
  353. package/src/ui/js/markdown.js +114 -0
  354. package/src/ui/js/monaco.js +164 -0
  355. package/src/ui/js/notebook-walkthrough.js +272 -0
  356. package/src/ui/js/notebook.js +448 -0
  357. package/src/ui/js/panels.js +2681 -0
  358. package/src/ui/js/pinboard.js +186 -0
  359. package/src/ui/js/quick-open.js +164 -0
  360. package/src/ui/js/selection-context.js +131 -0
  361. package/src/ui/js/sessions.js +256 -0
  362. package/src/ui/js/settings.js +476 -0
  363. package/src/ui/js/split-view.js +82 -0
  364. package/src/ui/js/state.js +343 -0
  365. package/src/ui/js/table.js +161 -0
  366. package/src/ui/js/tabs.js +284 -0
  367. package/src/ui/js/tabular.js +125 -0
  368. package/src/ui/js/terminal.js +354 -0
  369. package/src/ui/js/timeline.js +137 -0
  370. package/src/ui/js/utils.js +293 -0
  371. package/src/ui/notebook-kernel.py +790 -0
  372. package/src/ui/open-browser.js +55 -0
  373. package/src/ui/permission-pattern.js +42 -0
  374. package/src/ui/relay.js +513 -0
  375. package/src/ui/server.js +3072 -0
  376. package/src/ui/session-index.js +225 -0
  377. package/src/ui/shards_icon.png +0 -0
  378. package/src/ui/spawn-server.js +41 -0
  379. package/src/ui/symbol-index.js +813 -0
  380. package/src/ui/ui-push.js +177 -0
  381. package/tools/gate-hook/VALIDATION_SPEC.md +273 -0
  382. package/tools/gate-hook/__tests__/auto-verify.test.js +343 -0
  383. package/tools/gate-hook/auto-allowlist.js +179 -0
  384. package/tools/gate-hook/auto-state.js +68 -0
  385. package/tools/gate-hook/classify.js +21 -0
  386. package/tools/gate-hook/log.js +57 -0
  387. package/tools/gate-hook/parser.js +205 -0
  388. package/tools/gate-hook/sql-guard.js +230 -0
  389. package/tools/gate-hook/state.js +170 -0
  390. package/tools/gate-hook/sweep.js +139 -0
  391. package/tools/gate-hook/transcript.js +45 -0
  392. package/tools/gate-hook/validation.js +321 -0
  393. package/tools/gate-hook.js +475 -0
  394. package/tools/install.js +914 -0
  395. package/tools/shards-gates.js +311 -0
  396. package/tools/shards-sessions.js +261 -0
  397. package/tools/shards-ui.js +377 -0
@@ -0,0 +1,113 @@
1
+ > **Previous:** phase-1.md confirmed
2
+ > **Next:** phase-3.md (read only after this phase's gate is confirmed)
3
+
4
+ ---
5
+
6
+ ## Deep Phase 2 — Entity Discovery
7
+
8
+ Goal: Identify core entities, their grain, and natural keys.
9
+
10
+ Ask about:
11
+ - Core entities in this domain?
12
+ - What uniquely identifies each entity? (natural key)
13
+ - What is the grain — one row per what?
14
+ - Slowly changing dimensions?
15
+ - Events (facts) vs. things (dimensions)?
16
+
17
+ Inspect existing project for overlapping models, conformed dimensions, naming collisions.
18
+ Present entity inventory as a table.
19
+
20
+ ### Cross-Agent Consultation — Entity Validation
21
+
22
+ Before documenting, consult two shards to pressure-test the entity list.
23
+
24
+ Tell the user: "Checking in with the Data Analyst and Data Engineer before we lock
25
+ these entities down..."
26
+
27
+ Invoke both in parallel:
28
+
29
+ ```
30
+ Task(
31
+ subagent_type="data-analyst",
32
+ description="Analytical requirements for [domain] schema entities",
33
+ prompt="I am the Data Modeller shard designing a new schema for [domain].
34
+ I've identified the following candidate entities:
35
+ [paste entity inventory table from above]
36
+
37
+ Phase 1 business context:
38
+ - Domain: [domain]
39
+ - Consumers: [consumers from Phase 1]
40
+ - Key questions this schema must answer: [questions from Phase 1]
41
+
42
+ Please explore and return:
43
+ 1. What analytical queries will analysts run most often against these entities?
44
+ 2. Is the proposed grain correct for those queries, or does analysis typically
45
+ require a finer or coarser grain?
46
+ 3. Are there any attributes or calculated fields analysts always need that
47
+ suggest additional entities or columns I should plan for?
48
+ 4. Any join patterns or aggregation patterns I should design the relationships
49
+ around?
50
+
51
+ Keep your response focused on analytical requirements — not implementation."
52
+ )
53
+ ```
54
+
55
+ ```
56
+ Task(
57
+ subagent_type="data-engineer",
58
+ description="Source data feasibility for [domain] schema entities",
59
+ prompt="I am the Data Modeller shard designing a new schema for [domain].
60
+ I've identified the following candidate entities:
61
+ [paste entity inventory table from above]
62
+
63
+ Phase 1 business context:
64
+ - Domain: [domain]
65
+ - Source of truth system: [source system from Phase 1]
66
+ - Consumers: [consumers from Phase 1]
67
+
68
+ Please explore and return:
69
+ 1. Which source systems or raw tables can supply data for each entity?
70
+ 2. Are there existing staging or intermediate models I can build on?
71
+ 3. What is the expected data volume and freshness for each entity's source?
72
+ 4. Any pipeline constraints (incremental complexity, SCD handling, join
73
+ fan-out at source) that should influence how I define entity grain or keys?
74
+ 5. Any source data quality issues I should factor into the entity design?
75
+
76
+ Keep your response focused on source feasibility and pipeline constraints —
77
+ not the logical model design itself."
78
+ )
79
+ ```
80
+
81
+ After both return, summarize their key findings in 3-5 bullets and ask the user
82
+ if any findings require revisions to the entity list before documenting.
83
+
84
+ ### Document Deep Phase 2
85
+
86
+ ```markdown
87
+ ---
88
+
89
+ ## Deep Phase 2: Entity Discovery (Data Modeller)
90
+ - **Entities identified:**
91
+ | Entity | Type | Natural Key | Grain | SCD? |
92
+ |--------|------|-------------|-------|------|
93
+ | <name> | Dimension | <key> | one per <x> | No |
94
+ | <name> | Fact | <key> | one per <x> per <y> | N/A |
95
+ - **Existing models that overlap:**
96
+ - <model>: <how it overlaps>
97
+ - **Conformed dimensions available:** <list or "none">
98
+ - **Naming collisions or conflicts:** <list or "none">
99
+ - **Cross-agent consultation findings:**
100
+ - Data Analyst: <key analytical requirements or grain feedback>
101
+ - Data Engineer: <source feasibility findings or pipeline constraints>
102
+ - **Entity list revised:** Yes / No — <if yes, what changed>
103
+ ```
104
+
105
+ ::GATE:: id=data-modeller-deep-phase-2 phase=2 kind=phase
106
+ Read this section back to the user. Stop here — do not begin the next phase or output any further content. Wait for the user to explicitly confirm before proceeding. Do not interpret silence or partial agreement as confirmation.
107
+ ::ENDGATE::
108
+
109
+ ---
110
+
111
+ ## When this gate is confirmed
112
+
113
+ Read `.claude/agents/specific_instructions/data_modeller/phases_deep/phase-3.md` in full and follow its instructions starting from Deep Phase 3.
@@ -0,0 +1,47 @@
1
+ > **Previous:** phase-2.md confirmed
2
+ > **Next:** phase-4.md (read only after this phase's gate is confirmed)
3
+
4
+ ---
5
+
6
+ ## Deep Phase 3 — Relationship Mapping
7
+
8
+ Goal: Define how entities relate to each other.
9
+
10
+ For each relationship: two entities, cardinality, optionality, join key(s), FK direction.
11
+
12
+ Ask about:
13
+ - Many-to-many relationships needing bridge tables?
14
+ - Self-referential relationships?
15
+ - Time-dependent relationships?
16
+
17
+ Present the full relationship map as a text diagram.
18
+
19
+ ### Document Deep Phase 3
20
+
21
+ ```markdown
22
+ ---
23
+
24
+ ## Deep Phase 3: Relationship Mapping (Data Modeller)
25
+ - **Relationships:**
26
+ | From | To | Cardinality | Optionality | Join Key | Notes |
27
+ |------|----|-------------|-------------|----------|-------|
28
+ | <entity> | <entity> | 1:M | Required | <key> | |
29
+ - **Bridge tables needed:**
30
+ - <bridge entity>: resolves <entity> ↔ <entity> M:M
31
+ - **Time-dependent relationships:**
32
+ - <description or "none">
33
+ - **Relationship diagram:**
34
+ ```
35
+ <text diagram>
36
+ ```
37
+ ```
38
+
39
+ ::GATE:: id=data-modeller-deep-phase-3 phase=3 kind=phase
40
+ Read this section back to the user. Stop here — do not begin the next phase or output any further content. Wait for the user to explicitly confirm before proceeding. Do not interpret silence or partial agreement as confirmation.
41
+ ::ENDGATE::
42
+
43
+ ---
44
+
45
+ ## When this gate is confirmed
46
+
47
+ Read `.claude/agents/specific_instructions/data_modeller/phases_deep/phase-4.md` in full and follow its instructions starting from Deep Phase 4.
@@ -0,0 +1,51 @@
1
+ > **Previous:** phase-3.md confirmed
2
+ > **Next:** phase-5.md (read only after this phase's gate is confirmed)
3
+
4
+ ---
5
+
6
+ ## Deep Phase 4 — Column Specification
7
+
8
+ Goal: Define columns for each entity.
9
+
10
+ For each entity: PK and generation strategy, FK columns, attributes (name, type,
11
+ nullable, definition), derived/computed columns, timestamp columns.
12
+
13
+ Ask about:
14
+ - Naming conventions? (_id, _at, is_)
15
+ - Standard columns on every model? (_loaded_at, _source_system)
16
+ - Enums or constrained value sets?
17
+
18
+ ### Document Deep Phase 4
19
+
20
+ ```markdown
21
+ ---
22
+
23
+ ## Deep Phase 4: Column Specification (Data Modeller)
24
+ - **Naming conventions:**
25
+ - Keys: <convention>
26
+ - Timestamps: <convention>
27
+ - Booleans: <convention>
28
+ - Standard columns: <list or "none">
29
+ - **Entity columns:**
30
+
31
+ ### <Entity Name>
32
+ | Column | Type | Nullable | Key | Description |
33
+ |--------|------|----------|-----|-------------|
34
+ | <col> | <type> | No | PK | <description> |
35
+ | <col> | <type> | No | FK → <entity> | <description> |
36
+
37
+ - **Enums / constrained values:**
38
+ - <column>: <valid values>
39
+ - **Derived columns:**
40
+ - <column>: <computation logic>
41
+ ```
42
+
43
+ ::GATE:: id=data-modeller-deep-phase-4 phase=4 kind=phase
44
+ Read this section back to the user. Stop here — do not begin the next phase or output any further content. Wait for the user to explicitly confirm before proceeding. Do not interpret silence or partial agreement as confirmation.
45
+ ::ENDGATE::
46
+
47
+ ---
48
+
49
+ ## When this gate is confirmed
50
+
51
+ Read `.claude/agents/specific_instructions/data_modeller/phases_deep/phase-5.md` in full and follow its instructions starting from Deep Phase 5.
@@ -0,0 +1,45 @@
1
+ > **Previous:** phase-4.md confirmed
2
+ > **Next:** phase-6.md (read only after this phase's gate is confirmed)
3
+
4
+ ---
5
+
6
+ ## Deep Phase 5 — Physical Design Decisions
7
+
8
+ Goal: Map logical model to dbt implementation decisions.
9
+
10
+ For each entity: dbt layer, materialization, incremental strategy (if applicable),
11
+ SCD approach, model file naming.
12
+
13
+ Ask about:
14
+ - Expected row counts and growth rate
15
+ - Query patterns (dashboards, ad-hoc, downstream models)
16
+ - Performance constraints
17
+
18
+ ### Document Deep Phase 5
19
+
20
+ ```markdown
21
+ ---
22
+
23
+ ## Deep Phase 5: Physical Design (Data Modeller)
24
+ - **Logical → physical mapping:**
25
+ | Entity | dbt Model Name | Layer | Materialization | Notes |
26
+ |--------|---------------|-------|-----------------|-------|
27
+ | <entity> | <name> | mart | table | |
28
+ - **Incremental configs (if applicable):**
29
+ - <model>: unique_key=<col>, strategy=<merge|delete+insert|append>
30
+ - **SCD handling:**
31
+ - <model>: <snapshot strategy or "N/A">
32
+ - **Expected scale:**
33
+ - <model>: ~<N> rows, growing ~<N>/day
34
+ - **Performance constraints:** <SLA or "none">
35
+ ```
36
+
37
+ ::GATE:: id=data-modeller-deep-phase-5 phase=5 kind=phase
38
+ Read this section back to the user. Stop here — do not begin the next phase or output any further content. Wait for the user to explicitly confirm before proceeding. Do not interpret silence or partial agreement as confirmation.
39
+ ::ENDGATE::
40
+
41
+ ---
42
+
43
+ ## When this gate is confirmed
44
+
45
+ Read `.claude/agents/specific_instructions/data_modeller/phases_deep/phase-6.md` in full and follow its instructions starting from Deep Phase 6.
@@ -0,0 +1,105 @@
1
+ > **Previous:** phase-5.md confirmed
2
+ > **Next:** phase-7.md (read only after this phase's gate is confirmed)
3
+
4
+ ---
5
+
6
+ ## Deep Phase 6 — Build
7
+
8
+ **Context checkpoint:** Before building, prompt the user:
9
+
10
+ "Planning's locked — good moment to run `/compact` or `/clear` before we start
11
+ executing. I'll be working from project-specs.md from here. Say the word when
12
+ you're ready."
13
+
14
+ Wait for any signal from the user before beginning build steps.
15
+
16
+ **Knowledge re-check:** Follow `.claude/agents/specific_instructions/shared/knowledge_checkpoint.md` before building.
17
+
18
+ Build in this order:
19
+ 1. Source definitions
20
+ 2. Staging models
21
+ 3. Intermediate models
22
+ 4. Mart / dimension / fact models
23
+ 5. Schema files with tests and docs
24
+ 6. Snapshots for SCD Type 2
25
+
26
+ For each model: write SQL, write .yml schema, run `dbt build --select +model_name`,
27
+ fix failures before next model.
28
+
29
+ **Post-build validation (per model, after `dbt build` passes):** Run the
30
+ applicable checks below using `dbt show` or the warehouse CLI. If any check
31
+ fails, halt and diagnose before advancing to the next model. In a contract-first
32
+ / no-data environment, skip validation queries and note "THEORETICAL — no data
33
+ to validate" in the build log.
34
+
35
+ > **Auto-verify mode**: this is a bulk read-only verification stretch — the
36
+ > kind that otherwise spams permission prompts. Open `::AUTO-VERIFY:: agent=data-modeller phase=6 tool_budget=<N> ttl_minutes=<N>`
37
+ > at the start of the post-build sweep and `::ENDAUTO::` at the end. The hook
38
+ > auto-approves `dbt show`, `dbt ls`, and SELECT-only warehouse-CLI queries while
39
+ > the block is open; `dbt build` and any write still prompt as normal. See
40
+ > `specific_instructions/shared/auto_verify_mode.md`.
41
+
42
+ 1. **Grain validation** (every model with a stated PK):
43
+ ```sql
44
+ select count(*) as total_rows, count(distinct <pk_columns>) as distinct_pks
45
+ from <model>
46
+ -- FAIL if total_rows != distinct_pks
47
+ ```
48
+ 2. **Join fan-out verification** (models with joins — Tier 2+ from
49
+ `join_path_protocol.md`):
50
+ ```sql
51
+ select 'before_join' as stage, count(*) as row_count from <left_model>
52
+ union all
53
+ select 'after_join', count(*)
54
+ from <left_model> join <right_model> on <join_condition>
55
+ -- FAIL if after > before and diverges from predicted fan-out
56
+ ```
57
+ 3. **PK/FK null check** (dimension and fact models):
58
+ ```sql
59
+ select '<column>' as col, count(*) as total,
60
+ count(<column>) as non_null,
61
+ round(100.0 * (count(*) - count(<column>)) / nullif(count(*), 0), 2) as null_pct
62
+ from <model>
63
+ -- FAIL if PK has any nulls; WARN if FK null_pct > 5%
64
+ ```
65
+ 4. **Sample output inspection** (every model):
66
+ `dbt show --select <model> --limit 5` — visually confirm column names,
67
+ types, and values look correct before moving on.
68
+
69
+ Scale to model importance: staging models need only grain + sample; dimension/fact
70
+ models get the full suite.
71
+
72
+ ### Document Deep Phase 6
73
+
74
+ ```markdown
75
+ ---
76
+
77
+ ## Deep Phase 6: Build Log (Data Modeller)
78
+ - **Files created:**
79
+ - <file path>: <brief description>
80
+ - **Files modified:**
81
+ - <file path>: <what changed>
82
+ - **Build validation:**
83
+ - `dbt build` result: Pass | Fail — <details>
84
+ - Tests passing: <N> / <N>
85
+ - **Post-build validation:**
86
+ | Model | Grain Check | Fan-Out Check | PK/FK Nulls | Sample OK | Notes |
87
+ |-------|-------------|---------------|-------------|-----------|-------|
88
+ | <model> | PASS / FAIL | PASS / FAIL / N/A | PASS / WARN / FAIL | Yes / No | <details or "clean"> |
89
+ - (or "THEORETICAL — no data to validate" if contract-first design)
90
+ - **Deviations from design:** <changes from earlier phases and why, or "none">
91
+ - **Entity-relationship diagram (final):**
92
+ ```
93
+ <updated text diagram>
94
+ ```
95
+ ```
96
+
97
+ ::GATE:: id=data-modeller-deep-phase-6 phase=6 kind=phase validates=data_modeller
98
+ Read this section back to the user. Stop here — do not begin the next phase or output any further content. Wait for the user to explicitly confirm before proceeding. Do not interpret silence or partial agreement as confirmation.
99
+ ::ENDGATE::
100
+
101
+ ---
102
+
103
+ ## When this gate is confirmed
104
+
105
+ Read `.claude/agents/specific_instructions/data_modeller/phases_deep/phase-7.md` in full and follow its instructions starting from Deep Phase 7.
@@ -0,0 +1,136 @@
1
+ > **Previous:** phase-6.md confirmed
2
+ > **Next:** This is the final phase — follow the Syn sign-off instructions in this phase to close the project.
3
+
4
+ ---
5
+
6
+ ## Deep Phase 7 — Review and Handoff
7
+
8
+ **Before finalizing**, invoke Syn for a final review:
9
+
10
+ Tell the user: "I'm asking Syn to review the full project specs before we close this out..."
11
+
12
+ ```
13
+ Task(
14
+ subagent_type="syn",
15
+ description="Final review of data model specs",
16
+ prompt="I am the Data Modeller shard. I've completed all phases for project
17
+ [project_name]. Please review the project-specs.md at [file_path] and provide
18
+ your final review verdict. Check for gaps, consistency, and completeness."
19
+ )
20
+ ```
21
+
22
+ Append Syn's review to the specs. Present it to the user.
23
+
24
+ If Syn's review includes a "Code Review" section with `Code artifacts found: Yes`:
25
+ - Tell the user: "Syn spotted [N] code file(s) it can review. Want a code pass? (y/n)"
26
+ - If yes, invoke:
27
+
28
+ ```
29
+ Task(
30
+ subagent_type="syn",
31
+ description="Code review and fix for data model",
32
+ prompt="CODE REVIEW MODE. I am the Data Modeller shard. Project: [project_name].
33
+ Directory: [project_dir]. Please review and fix the code artifacts produced
34
+ in this project. The project-specs.md is at [file_path] for context."
35
+ )
36
+ ```
37
+
38
+ Append Syn's code review summary to the specs. Present findings to user.
39
+
40
+ **Analytics Engineer handoff (conditional):**
41
+
42
+ After presenting the completed logical model, ask:
43
+ "The logical data model is complete. Would you like to hand this off to the
44
+ Analytics Engineer to build the physical dbt implementation (staging models,
45
+ intermediate transforms, mart SQL, tests, and documentation)?
46
+
47
+ - (a) Yes — I'll invoke the Analytics Engineer with a full handoff.
48
+ - (b) No — the logical model is the deliverable."
49
+
50
+ If user says (a), invoke:
51
+
52
+ ```
53
+ Task(
54
+ subagent_type="analytics-engineer",
55
+ description="Physical dbt implementation of logical model: [project_name]",
56
+ prompt="I am the Data Modeller shard. I have completed the logical data model
57
+ for project [project_name] and need physical dbt implementation.
58
+
59
+ Model specs: data_models/<project_name>/project-specs.md
60
+
61
+ Summary:
62
+ - Entities modeled: <entity list from Phase 3>
63
+ - Source tables: <source list from Phase 1>
64
+ - Grain definitions: <from Phase 2>
65
+ - Key relationships: <from Phase 3>
66
+ - Proposed mart structure: <from Phase 4>
67
+
68
+ Please implement:
69
+ 1. Staging models for each source
70
+ 2. Intermediate transforms as needed
71
+ 3. Mart models matching the logical model's entity grain
72
+ 4. dbt schema tests (uniqueness, not-null, accepted values, relationships)
73
+ 5. Column-level documentation
74
+
75
+ Please read data_models/<project_name>/project-specs.md for full context and the
76
+ complete ER diagram."
77
+ )
78
+ ```
79
+
80
+ Document the outcome in Phase 7 specs.
81
+
82
+ Then:
83
+ 1. Run full DAG validation
84
+ 2. Spot-check entity relationships
85
+ 3. Validate grain (uniqueness tests pass)
86
+ 4. Summarize in 3-5 bullet points
87
+ 5. Present final ER diagram
88
+ 6. List all files created/modified
89
+ 7. Flag limitations and future work
90
+ 8. Ask if consumer needs a handoff artifact
91
+
92
+ **Knowledge harvest.** Before closing, extract reusable knowledge from this project.
93
+ Read `.claude/agents/specific_instructions/shared/knowledge_harvest.md` and follow
94
+ the protocol. Present candidates to the user for confirmation before writing.
95
+
96
+ ### Document Deep Phase 7
97
+
98
+ ```markdown
99
+ ---
100
+
101
+ ## Deep Phase 7: Review and Handoff (Data Modeller)
102
+ - **Syn Review:** <included above>
103
+ - **End-to-end validation:** Pass | Fail — <details>
104
+ - **Grain validation:** All PKs unique — Yes | No
105
+ - **Relationship validation:** Join row counts as expected — Yes | No
106
+ - **Summary:**
107
+ 1. <plain-language description>
108
+ 2. <plain-language description>
109
+ 3. <plain-language description>
110
+ - **Final ER diagram:**
111
+ ```
112
+ <text diagram>
113
+ ```
114
+ - **All files created/modified:**
115
+ - <file path>
116
+ - **Known limitations:**
117
+ - <limitation>
118
+ - **Analytics Engineer handoff:** Not requested | Invoked — <handoff summary>
119
+ - **Original request fulfilled:** Yes | Partially | No — <explanation>
120
+ - **Knowledge harvested:**
121
+ - <title> → .shards/knowledge/<type>/<filename>.md
122
+ - Or: None — project did not produce reusable knowledge
123
+ - **Status:** Complete
124
+ ```
125
+
126
+ Update specs header status to `Complete`.
127
+
128
+ ::GATE:: id=data-modeller-deep-phase-7 phase=7 kind=final
129
+ Read this final section back to the user. Stop here — wait for the user to explicitly confirm the project is closed before wrapping up.
130
+ ::ENDGATE::
131
+
132
+ ---
133
+
134
+ ## When this gate is confirmed
135
+
136
+ This is the final phase. Once Syn returns APPROVED sign-off, the project is complete. Do not read further files.
@@ -0,0 +1,19 @@
1
+ # Data Modeller — Quick Track Phase Journey
2
+
3
+ You will work through these phases sequentially. Each phase is in its own file
4
+ under this directory. **Only read the next phase's file after the previous
5
+ phase's gate has been confirmed by the user.** Do not pre-read ahead.
6
+
7
+ ## Phases (Quick Track)
8
+
9
+ | # | File | Goal | Gated |
10
+ |---|------------|-----------------------------------------------------------------|-------|
11
+ | 1 | phase-1.md | Scope the change — affected tables, blast radius | yes |
12
+ | 2 | phase-2.md | Implement and validate | final |
13
+
14
+ ## How to proceed
15
+
16
+ 1. You are now oriented. Do not read phase files beyond the current one.
17
+ 2. Start Quick Phase 1 now: Read `phase-1.md` in full and follow its instructions.
18
+ 3. When a phase's gate is confirmed, that phase's file will tell you which file to read next.
19
+ 4. If the Quick track escalates to Deep, load the phases_deep/ directory.
@@ -0,0 +1,47 @@
1
+ > **Previous:** This is the first phase of the Data Modeller Quick Track.
2
+ > **Next:** phase-2.md (read only after this phase's gate is confirmed)
3
+
4
+ ---
5
+
6
+ ## Quick Phase 1 — Scope the Change
7
+
8
+ Ask about:
9
+ - Which model(s) and column(s) are affected?
10
+ - Current state vs. desired state?
11
+ - Downstream dependencies?
12
+ - **What should still be true after this change?** Ask for specific regression checks / invariants the user expects to hold once the change lands (e.g. "key uniqueness preserved", "no new nulls in `order_id`", "cardinality to `customers` unchanged").
13
+
14
+ Then:
15
+ 1. Read the model file and its .yml schema
16
+ 2. Trace downstream dependencies via ref()
17
+ 3. Assess blast radius
18
+ 4. Present the change plan
19
+
20
+ ### Document Quick Phase 1
21
+
22
+ Append to project-specs.md:
23
+
24
+ ```markdown
25
+ ---
26
+
27
+ ## Quick Phase 1: Change Scope (Data Modeller)
28
+ - **Affected model(s):** <model name(s) and file path(s)>
29
+ - **Current state:** <what exists now>
30
+ - **Desired state:** <what should exist after>
31
+ - **Downstream dependencies:** <models that reference affected columns>
32
+ - **Blast radius:** Isolated | Minor (<3 models) | Significant (3+)
33
+ - **Change plan:**
34
+ - <file>: <what changes>
35
+ - **Acceptance criteria (must hold after change):**
36
+ - <criterion 1>
37
+ ```
38
+
39
+ ::GATE:: id=data-modeller-quick-phase-1 phase=1 kind=phase
40
+ Read this section back to the user. Stop here — do not begin the next phase or output any further content. Wait for the user to explicitly confirm before proceeding. Do not interpret silence or partial agreement as confirmation.
41
+ ::ENDGATE::
42
+
43
+ ---
44
+
45
+ ## When this gate is confirmed
46
+
47
+ Read `.claude/agents/specific_instructions/data_modeller/phases_quick/phase-2.md` in full and follow its instructions starting from Quick Phase 2.
@@ -0,0 +1,65 @@
1
+ > **Previous:** phase-1.md confirmed
2
+ > **Next:** This is the final phase of the Quick Track — follow the escalation rules if scope grew, otherwise close the project.
3
+
4
+ ---
5
+
6
+ ## Quick Phase 2 — Implement and Validate
7
+
8
+ **Context checkpoint:** Before building, prompt the user:
9
+
10
+ "Planning's locked — good moment to run `/compact` or `/clear` before we start
11
+ executing. I'll be working from project-specs.md from here. Say the word when
12
+ you're ready."
13
+
14
+ Wait for any signal from the user before beginning build steps.
15
+
16
+ **Knowledge re-check:** Follow `.claude/agents/specific_instructions/shared/knowledge_checkpoint.md` before building.
17
+
18
+ 1. Implement the change in model SQL and .yml schema
19
+ 2. Update any downstream models that reference changed columns
20
+ 3. Run `dbt build --select +model_name+` to validate
21
+ 4. **Post-build validation:** After the build passes, run grain validation
22
+ (`count(*) vs count(distinct pk)`) on each changed model. For models with
23
+ joins, run the fan-out check from `join_path_protocol.md` Tier 2+. Run
24
+ `dbt show --select <model> --limit 5` to confirm output looks right.
25
+ If any check fails, fix before proceeding. Skip if no-data environment.
26
+ **Auto-verify:** if 3+ models are being validated, open
27
+ `::AUTO-VERIFY:: agent=data-modeller phase=2` before the sweep and
28
+ `::ENDAUTO::` after. See `specific_instructions/shared/auto_verify_mode.md`.
29
+ 5. Summarize what changed
30
+
31
+ **Knowledge harvest.** Before closing, extract reusable knowledge from this project.
32
+ Read `.claude/agents/specific_instructions/shared/knowledge_harvest.md` and follow
33
+ the protocol. Present candidates to the user for confirmation before writing.
34
+
35
+ ### Document Quick Phase 2
36
+
37
+ Append to project-specs.md:
38
+
39
+ ```markdown
40
+ ---
41
+
42
+ ## Quick Phase 2: Implementation (Data Modeller)
43
+ - **Files changed:**
44
+ - <file path>: <what changed>
45
+ - **Downstream updates:** <files updated or "none needed">
46
+ - **Validation result:** Pass | Fail — <details>
47
+ - **Post-build validation:** PASS | FAIL | SKIPPED (no data) — <details>
48
+ - **Follow-up needed:** Yes / No — <if yes, describe>
49
+ - **Knowledge harvested:**
50
+ - <title> → .shards/knowledge/<type>/<filename>.md
51
+ - Or: None — project did not produce reusable knowledge
52
+ - **Status:** Complete
53
+ ```
54
+
55
+ Update the specs header status to `Complete`.
56
+
57
+ ::GATE:: id=data-modeller-quick-phase-2 phase=2 kind=final
58
+ Read this section back to the user. Stop here — wait for the user to explicitly confirm the change is correct before wrapping up.
59
+ ::ENDGATE::
60
+
61
+ ---
62
+
63
+ ## When this gate is confirmed
64
+
65
+ This is the final phase of the Quick Track. If escalation to Deep Track is required, read `.claude/agents/specific_instructions/data_modeller/phases_deep/index.md` and continue from there. Otherwise, the project is complete.