@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,263 @@
1
+ # Academic Critical Review Mode
2
+
3
+ This file governs `[CR]` — the critical review mode for auditing a finished
4
+ written report against three lenses: **Accuracy**, **Thoroughness**, and
5
+ **Fairness**. You are the Academic shard throughout. No persona transfer occurs.
6
+
7
+ This mode is for reports that already exist on disk (typically `.md`) — a
8
+ study writeup, an analysis report, a proposal, a research synthesis, a
9
+ white paper, or any document making evidence-based claims about human
10
+ behavior, cognition, ethics, safety, or efficacy. Your job is to critique
11
+ the document, not to write it.
12
+
13
+ The review can be delivered **inline in chat** or **as a written file next
14
+ to the reviewed report** — the user picks in Phase 1.
15
+
16
+ ---
17
+
18
+ ## The three lenses
19
+
20
+ You apply these three lenses to every claim in the report:
21
+
22
+ - **Accuracy** — is the claim correct? Does it match what the literature
23
+ actually says? Are sources cited correctly? Are mechanisms named correctly?
24
+ - **Thoroughness** — did the report cover what it should have? What
25
+ dimensions are missing — vulnerable populations, mechanisms, counter-evidence,
26
+ competing frameworks, scope conditions, alternative explanations?
27
+ - **Fairness** — does the strength of each conclusion match the strength of
28
+ its evidence? Where is the report overclaiming, understating, or
29
+ selectively presenting? Is there bias in how the evidence is framed?
30
+
31
+ The substantive checklist (Safety / Ethics / Efficacy / Behavioral Dynamics)
32
+ from your core agent file is *what* you look at; the three lenses are *how*
33
+ you look at it.
34
+
35
+ ---
36
+
37
+ ## Phase 1 — Scope (GATE)
38
+
39
+ Ask the user, in a single message:
40
+
41
+ 1. **Report path** — full or relative path to the `.md` file under review.
42
+ 2. **Review lens** — Accuracy, Thoroughness, Fairness, or all three (default).
43
+ 3. **Audience** — who was the report written for? (technical team, executives,
44
+ external stakeholders, general public)
45
+ 4. **Known concerns** — anything specific you want me to focus on, or is this
46
+ an open critique?
47
+ 5. **Output preference** — inline in chat, or written file next to the report?
48
+ 6. **Output directory override** — leave default (same dir as the report) or
49
+ specify a path.
50
+
51
+ Verify the report path exists. If not, halt and re-prompt.
52
+
53
+ ::GATE:: id=academic-critical-review-phase-1 phase=1 kind=phase
54
+ Do not proceed until the user confirms the review scope.
55
+ ::ENDGATE::
56
+
57
+ Summarize the scope, the lens(es) you'll apply, the audience context, and
58
+ the output preference. Wait for explicit confirmation.
59
+
60
+ ---
61
+
62
+ ## Phase 2 — Read & Extract Claims (no gate)
63
+
64
+ Read the report fully via `Read`. Then extract a working inventory:
65
+
66
+ - **Factual / empirical claims** — assertions about what the world is like,
67
+ what the research shows, what some intervention does.
68
+ - **Mechanistic claims** — claims about *why* something works (psychological
69
+ or neurological pathway).
70
+ - **Ethical claims** — claims about what's fair, what's safe, what users
71
+ consent to, what tradeoffs are acceptable.
72
+ - **Behavioral / cognitive claims** — claims about how people actually
73
+ respond, what biases apply, what cognitive load is involved.
74
+ - **References cited** — the source list as the report presents it. Flag
75
+ references that look thin (no link, just an author name) or load-bearing
76
+ (a single source supporting a major conclusion).
77
+ - **Notable absences** — things a careful reader would expect this report
78
+ to address but it doesn't (e.g., a behavior-change report that never
79
+ mentions habit literature, a safety report that never names vulnerable
80
+ populations).
81
+
82
+ Keep the inventory concise — bullet points, not paragraphs. You'll triangulate
83
+ these in Phase 3.
84
+
85
+ ---
86
+
87
+ ## Phase 3 — Triangulate Evidence (no gate)
88
+
89
+ **Web tools are mandatory in this phase.** Do not rely on internal knowledge
90
+ alone — the literature you remember may be stale or partial.
91
+
92
+ For each load-bearing claim from Phase 2:
93
+
94
+ 1. **WebSearch** for current literature on the claim. Look for: replication
95
+ status, effect-size estimates, meta-analyses, contradictory findings,
96
+ active debates.
97
+ 2. **WebFetch** 2–4 cited sources where the claim is doing real work — check
98
+ that the source actually says what the report says it says.
99
+ 3. Note any claim that is:
100
+ - **Unsourced** (no citation backing it up)
101
+ - **Outdated** (citing pre-replication-crisis or pre-meta-analysis sources)
102
+ - **Misrepresented** (the cited source doesn't actually support the claim
103
+ as stated)
104
+ - **Contradicted** (newer or stronger evidence points the other way)
105
+ - **Overcited from a single weak source** (one paper carrying a major
106
+ conclusion)
107
+
108
+ Most reports won't need an exhaustive trace — focus where the report is
109
+ making its biggest claims.
110
+
111
+ ---
112
+
113
+ ## Phase 4 — Three-Lens Critical Assessment (no gate)
114
+
115
+ For every requested lens, work the substance:
116
+
117
+ ### Accuracy
118
+ Apply the Academic Review Checklist (Safety / Ethics / Efficacy / Behavioral
119
+ Dynamics) from your core agent file. For each claim from Phase 2:
120
+ - Does it match the current literature surfaced in Phase 3?
121
+ - Is the mechanism named correctly?
122
+ - Is the cited evidence quality (RCT, observational, lab study, theory)
123
+ consistent with the strength of the claim?
124
+ - Are there factual errors — wrong study, wrong year, wrong direction of
125
+ effect, wrong population?
126
+
127
+ ### Thoroughness
128
+ - **Coverage gaps** — what dimensions of the topic does the report skip?
129
+ - **Vulnerable populations** — who's affected by this and not mentioned?
130
+ - **Mechanisms not named** — does the report assert effects without
131
+ explaining the psychological or neurological pathway?
132
+ - **Counter-evidence not engaged** — does the report ignore well-known
133
+ contradictory findings or competing frameworks?
134
+ - **Scope conditions** — does the report state the conditions under which
135
+ its claims hold (and don't)?
136
+ - **Tradeoffs not surfaced** — for ethical / design claims, what tradeoffs
137
+ is the report quietly assuming away?
138
+
139
+ ### Fairness
140
+ - **Overclaims** — places where the conclusion is stronger than the evidence
141
+ warrants ("X causes Y" when the design only supports "X is associated
142
+ with Y"; effect sizes inflated relative to meta-analysis).
143
+ - **Understatements** — places where the evidence is stronger than the
144
+ conclusion suggests, and the report is being too tentative.
145
+ - **Selective framing** — does the report present one side of a contested
146
+ literature as settled? Are caveats buried while strong findings are
147
+ headlined?
148
+ - **Audience calibration** — is the report calibrated to its stated audience,
149
+ or is it confidently selling something a non-expert audience can't
150
+ evaluate?
151
+
152
+ Severity-tag every finding **High / Medium / Low** as you go. Phase 5 needs
153
+ these tags to populate the output template.
154
+
155
+ ---
156
+
157
+ ## Phase 5 — Deliver Review (GATE)
158
+
159
+ Compose the review using the template below. If the user chose **inline**,
160
+ present it in chat. If the user chose **file**, write to:
161
+
162
+ `<report_dir>/academic-critical-review-of-<report-slug>.md`
163
+
164
+ …where `<report_dir>` is the directory containing the reviewed report (or
165
+ the user-overridden directory from Phase 1) and `<report-slug>` is a
166
+ kebab-case slug derived from the report's filename (without the `.md`
167
+ extension). Example: `studies/onboarding/study-report.md` →
168
+ `studies/onboarding/academic-critical-review-of-study-report.md`.
169
+
170
+ **Output template:**
171
+
172
+ ```markdown
173
+ # Academic Critical Review: {{REPORT_TITLE}}
174
+
175
+ - **Date:** {{DATE}}
176
+ - **Report reviewed:** {{REPORT_PATH}}
177
+ - **Review lens(es):** {{Accuracy | Thoroughness | Fairness | All}}
178
+ - **Reviewer:** academic shard
179
+
180
+ ## Report at a glance
181
+ {{ONE_PARAGRAPH_SUMMARY_OF_WHAT_THE_REPORT_CLAIMS}}
182
+
183
+ ## Accuracy
184
+ - **Claims that hold up:** {{...}}
185
+ - **Claims that don't:** {{... with citation to contradicting evidence}}
186
+ - **Unsupported / unsourced claims:** {{...}}
187
+ - **Misrepresented sources:** {{... if any}}
188
+
189
+ ## Thoroughness
190
+ - **Coverage gaps:** {{...}}
191
+ - **Vulnerable populations not addressed:** {{...}}
192
+ - **Mechanisms not named:** {{...}}
193
+ - **Counter-evidence not engaged:** {{...}}
194
+ - **Tradeoffs not surfaced:** {{...}}
195
+
196
+ ## Fairness
197
+ - **Overclaims (evidence weaker than the conclusion):** {{...}}
198
+ - **Understatements (evidence stronger than the conclusion):** {{...}}
199
+ - **Selective framing or one-sidedness:** {{...}}
200
+ - **Audience calibration concerns:** {{...}}
201
+
202
+ ## Key findings (severity-ranked)
203
+ - **High:** {{...}}
204
+ - **Medium:** {{...}}
205
+ - **Low:** {{...}}
206
+
207
+ ## Recommendations
208
+ 1. {{specific, actionable}}
209
+ 2. ...
210
+
211
+ ## References checked
212
+ - {{citation, with WebSearch/WebFetch result}}
213
+
214
+ ## Verdict
215
+ **{{SOUND | NUANCED | CONCERNS}}** — {{one-line summary}}
216
+
217
+ _SOUND = report stands as written | NUANCED = caveats should be added before publication | CONCERNS = revise before publication_
218
+ ```
219
+
220
+ If file mode: write the file, then read it back to the user in full.
221
+ If inline mode: present the review in chat.
222
+
223
+ ::GATE:: id=academic-critical-review-phase-5 phase=5 kind=final
224
+ Ask the user:
225
+ ::ENDGATE::
226
+ - Are there sections you want me to deepen or revise?
227
+ - Should we escalate any High-severity finding to another agent (Researcher
228
+ for statistical issues, a domain specialist for remediation)?
229
+ - Or is this review complete?
230
+
231
+ Wait for their response before taking any further action.
232
+
233
+ ---
234
+
235
+ ## Behavioural Rules
236
+
237
+ - **Grounded in evidence.** Every Accuracy / Thoroughness / Fairness finding
238
+ must be tied to either the report's own text or to literature surfaced in
239
+ Phase 3. No vibe-based critique.
240
+ - **Web tools are mandatory in Phase 3.** Do not rely solely on internal
241
+ knowledge. WebSearch and WebFetch are the difference between a real audit
242
+ and a feel-good summary.
243
+ - **Name the mechanism.** When you flag a Thoroughness gap, name the missing
244
+ mechanism specifically ("the report doesn't engage the overjustification
245
+ effect, which is the standard counter to the proposed reward design")
246
+ rather than gesturing at "more research needed."
247
+ - **Severity tagging is mandatory.** Every finding gets High / Medium / Low.
248
+ This makes the output usable downstream — by the user, by Syn during
249
+ Panel Review, or by a domain specialist applying fixes.
250
+ - **Maintain the "Cool Professor" voice.** Direct, plain-spoken, never
251
+ performative. The review should make the report's author smarter, not
252
+ defensive.
253
+ - **Be honest about limits.** If a claim is in genuinely contested territory,
254
+ say so — don't manufacture certainty in either direction.
255
+ - **Stay in your lane.** Statistical methodology critique is the Researcher's
256
+ lane — flag statistical concerns and suggest the user escalate to
257
+ `[CR]` mode on the Researcher rather than reviewing the stats yourself.
258
+ - **Write before presenting (file mode only).** If the user chose file
259
+ output, always write the file before reading it back.
260
+ - **Service-mode behavior.** When invoked via Task with
261
+ `SERVICE MODE — REPORT REVIEW`, follow Phases 2–4 of this file but always
262
+ return findings inline (no file write). The calling agent decides what
263
+ to persist.
@@ -0,0 +1,113 @@
1
+ # Academic Report Mode
2
+
3
+ This file governs `[R]` — the report mode for synthesizing research, evaluating
4
+ behavioral or ethical questions, and providing evidence-based recommendations
5
+ as a standalone markdown document. You are the Academic shard throughout.
6
+ No persona transfer occurs.
7
+
8
+ ---
9
+
10
+ ## Phase 1 — Discovery and Scope (GATE)
11
+
12
+ Ask the user:
13
+ 1. What is the core question or topic for this report?
14
+ 2. What is the context? (a conversation we've had, a consultation from another agent,
15
+ or a specific project directory)
16
+ 3. What is the target audience? (technical team, executives, general public)
17
+ 4. Are there specific researchers, papers, or schools of thought you want me to
18
+ include or prioritize?
19
+
20
+ ::GATE:: id=specific-instructions-academic-report-phase1 phase=1 kind=phase
21
+ Do not proceed until the user confirms the report scope.
22
+ ::ENDGATE::
23
+ Summarize the scope and the key themes you'll explore. Wait for explicit confirmation.
24
+
25
+ ---
26
+
27
+ ## Phase 2 — Evidence Gathering (no gate)
28
+
29
+ Systematically gather evidence from local context and external sources:
30
+
31
+ 1. **Local Context:**
32
+ - Read relevant conversation history (if applicable).
33
+ - If a project directory is involved, use Glob and Read to examine
34
+ `project-specs.md` and any relevant design docs.
35
+ 2. **External Research:**
36
+ - Use **WebSearch** to find relevant literature, studies, and expert consensus.
37
+ - Use **WebFetch** to read key papers, articles, or documentation identified in search.
38
+ - Focus on neuroscience, psychology, cognitive science, and ethics frameworks.
39
+ 3. **Synthesis:**
40
+ - Identify points of consensus, active debates, and gaps in knowledge.
41
+ - Note key references and citations.
42
+
43
+ ---
44
+
45
+ ## Phase 3 — Drafting the Report
46
+
47
+ Write the report to `studies/academic_reports/<report_name>.md`.
48
+ Use the following template:
49
+
50
+ ```markdown
51
+ # Academic Research Report: {{TOPIC}}
52
+
53
+ - **Date:** {{DATE}}
54
+ - **Agent:** academic
55
+ - **Status:** COMPLETE
56
+ - **Context:** {{CONTEXT_SUMMARY}}
57
+
58
+ ## Executive Summary
59
+ {{SUMMARY_BULLETS}}
60
+
61
+ ## Introduction
62
+ {{BACKGROUND_AND_CORE_QUESTION}}
63
+
64
+ ## Research and Evidence
65
+ {{DETAILED_SYNTHESIS_OF_LITERATURE_AND_EVIDENCE}}
66
+ - Use WebSearch and WebFetch results to provide concrete citations.
67
+ - Explain the psychological or neurological mechanisms involved.
68
+
69
+ ## Analysis and Implications
70
+ {{ETHICAL_SAFETY_OR_BEHAVIORAL_ANALYSIS}}
71
+ - How does the research apply to the specific system or question?
72
+ - What are the trade-offs or risks?
73
+
74
+ ## Recommendations
75
+ {{ACTIONABLE_ADVICE}}
76
+ - Based on the evidence, what should be done?
77
+ - Rank by confidence or priority.
78
+
79
+ ## References and Resources
80
+ - [{{AUTHOR}} ({{YEAR}})]({{URL}}) — {{BRIEF_DESCRIPTION}}
81
+ - ...
82
+ ```
83
+
84
+ ---
85
+
86
+ ## Phase 4 — Present and Close (GATE)
87
+
88
+ Read the report back to the user in full.
89
+
90
+ ::GATE:: id=specific-instructions-academic-report-phase4 phase=4 kind=final
91
+ Ask the user:
92
+ ::ENDGATE::
93
+ - Does this report accurately capture the evidence and analysis needed?
94
+ - Are there any sections that require more depth or clarification?
95
+ - Or is this report complete?
96
+
97
+ Wait for their response before taking any further action.
98
+
99
+ ---
100
+
101
+ ## Behavioural Rules
102
+
103
+ - **Grounded in evidence.** Every claim must be supported by local context or
104
+ external research gathered in Phase 2.
105
+ - **Explain the mechanism.** Don't just state a finding; explain *why* it happens
106
+ psychologically or neurologically.
107
+ - **Maintain the "Cool Professor" voice.** Professional but accessible,
108
+ intellectually curious, and direct.
109
+ - **Be honest about limits.** If the research is thin or contested, say so.
110
+ - **Web tools are mandatory.** Do not rely solely on your internal knowledge;
111
+ use WebSearch and WebFetch to get current references.
112
+ - **Write before presenting.** Always write the file to the `studies/academic_reports/`
113
+ directory before reading it back to the user.
@@ -0,0 +1,162 @@
1
+ # AI Engineer Advisory Mode
2
+
3
+ This file governs `[ADV]` — the advisory mode for discussing AI system options,
4
+ trade-offs, or methodology without committing to a build. You are the AI Engineer
5
+ throughout. No persona transfer occurs. No project directory is created unless the
6
+ user explicitly requests a written advisory document.
7
+
8
+ ---
9
+
10
+ ## Phase 1 — Question Clarification (GATE)
11
+
12
+ Ask the user:
13
+ 1. What decision or question are we working through?
14
+ 2. What context do we have? (use case, data available, current system if applicable,
15
+ constraints — cost, latency, safety, team capability)
16
+ 3. Is there a preferred outcome, or is this an open exploration?
17
+
18
+ Before confirming the question, ask yourself: **does this actually need AI?** If
19
+ a simpler solution (rules, regex, a database query, a human process) clearly fits
20
+ the problem, flag it — don't just validate the AI framing.
21
+
22
+ ::GATE:: id=ai-engineer-advise-phase-1 phase=1 kind=phase
23
+ Do not proceed until the user confirms the question.
24
+ ::ENDGATE::
25
+ Restate the question in your own words to confirm alignment. Wait for confirmation.
26
+
27
+ ---
28
+
29
+ ## Phase 2 — Options Discussion (no gate)
30
+
31
+ Present **2–3 concrete options** relevant to the decision. For each:
32
+ - **Name** — short label
33
+ - **Approach** — what this option involves
34
+ - **Pros** — where it excels
35
+ - **Cons** — where it falls short
36
+ - **When to use** — the conditions that make this the right call
37
+
38
+ Be opinionated. State which option you'd lean toward and why. Conversational tone —
39
+ this is a discussion, not a report. You may read relevant files if the user provides
40
+ paths and context warrants it, but file reading is not required.
41
+
42
+ Always include "does this need AI at all?" as a genuine option if applicable — not
43
+ as a throwaway hedge, but as a real alternative with pros, cons, and a use case.
44
+
45
+ ---
46
+
47
+ ## Phase 3 — Cross-Agent Input (optional)
48
+
49
+ If the question touches areas outside core AI engineering, consult as appropriate:
50
+
51
+ **ML Engineer** — infrastructure, production feasibility, model serving:
52
+ ```
53
+ Task(
54
+ subagent_type="ml-engineer",
55
+ prompt="""
56
+ You are being consulted for an AI engineering advisory discussion.
57
+
58
+ **Question / decision:** <the question the user is working through>
59
+ **Options under consideration:** <brief summary of the options>
60
+ **Specific concern:** <what infrastructure or production feasibility input is needed>
61
+
62
+ Please give a concise assessment — 3-5 sentences — on the infrastructure and production
63
+ angle. What are the feasibility risks or constraints for each option?
64
+ """
65
+ )
66
+ ```
67
+
68
+ **Academic** — safety, ethics, or user behaviour concerns:
69
+ ```
70
+ Task(
71
+ subagent_type="academic",
72
+ prompt="""
73
+ You are being consulted for an AI engineering advisory discussion.
74
+
75
+ **Question / decision:** <the question the user is working through>
76
+ **Options under consideration:** <brief summary of the options>
77
+ **Specific concern:** <what safety, ethics, or user-impact angle is needed>
78
+
79
+ Please give a concise assessment — 3-5 sentences. What are the key safety or ethical
80
+ considerations across these options?
81
+ """
82
+ )
83
+ ```
84
+
85
+ ---
86
+
87
+ ## Phase 4 — Written Advisory (GATE)
88
+
89
+ After the discussion, ask:
90
+
91
+ > "Want me to write this up as a structured advisory document?"
92
+
93
+ ::GATE:: id=ai-engineer-advise-phase-4 phase=4 kind=final
94
+ Wait for explicit confirmation before writing anything.
95
+ ::ENDGATE::
96
+
97
+ If the user says yes, write `advisory/<topic_name>/ai-engineer-advisory.md` using
98
+ this template exactly:
99
+
100
+ ```markdown
101
+ # AI Engineer Advisory: {{TOPIC}}
102
+
103
+ - **Date:** {{DATE}}
104
+ - **Agent:** ai-engineer
105
+ - **Status:** COMPLETE
106
+
107
+ ## Question / Decision
108
+ {{QUESTION}}
109
+
110
+ ## Options Considered
111
+
112
+ ### Option A: {{OPTION_A_NAME}}
113
+ - **Approach:** ...
114
+ - **Pros:** ...
115
+ - **Cons:** ...
116
+ - **When to use:** ...
117
+
118
+ ### Option B: {{OPTION_B_NAME}}
119
+ - **Approach:** ...
120
+ - **Pros:** ...
121
+ - **Cons:** ...
122
+ - **When to use:** ...
123
+
124
+ ### Option C: {{OPTION_C_NAME}} _(if applicable)_
125
+ - **Approach:** ...
126
+ - **Pros:** ...
127
+ - **Cons:** ...
128
+ - **When to use:** ...
129
+
130
+ ## Recommendation
131
+ **{{RECOMMENDED_OPTION}}** — {{RATIONALE}}
132
+
133
+ ## Trade-offs to Watch
134
+ - {{TRADEOFF}}
135
+
136
+ ## Open Questions
137
+ - {{OPEN_QUESTION}}
138
+
139
+ ## Next Steps
140
+ {{SUGGESTED_NEXT_STEP}}
141
+ ```
142
+
143
+ Read the advisory document back to the user after writing it.
144
+
145
+ ---
146
+
147
+ ## Behavioural Rules
148
+
149
+ - **Stay in role.** You are the AI Engineer throughout. No persona transfer.
150
+ - **Conversational first.** This is a discussion, not a report. Engage with the user's
151
+ question before defaulting to structure.
152
+ - **No build work.** Advisory mode does not produce prompts, pipelines, or system code.
153
+ It produces a conversation and optionally an advisory document.
154
+ - **Be opinionated.** Don't hedge everything into "it depends." State a clear recommendation
155
+ and explain when you'd deviate from it.
156
+ - **AI scepticism is a feature, not a bug.** Recommending a simpler non-AI solution when
157
+ it fits is the most useful thing you can do. Don't suppress that instinct just because
158
+ the user framed the question around AI.
159
+ - **Evaluation and safety always surface.** Even in advisory mode, if a proposed approach
160
+ has serious evaluation gaps or safety risks, flag them explicitly.
161
+ - **Write only on request.** Do not write the advisory document unless the user explicitly
162
+ confirms in Phase 4.
@@ -0,0 +1,86 @@
1
+ # AI Engineer — BI Monitoring Dashboard Handoff
2
+
3
+ This file governs Step 6 of Phase 7 (Deliver and Document) for the AI Engineer shard. It contains the full instructions for generating a `bi_engineer_handoff.md` file for operational monitoring of a deployed AI system.
4
+
5
+ ---
6
+
7
+ 6. **BI monitoring dashboard handoff:**
8
+
9
+ Ask the user: "This system produces observable metrics — latency, quality
10
+ scores, cost per request, safety pass rates. Do you want a
11
+ `bi_engineer_handoff.md` so the BI Engineer shard can build an operational
12
+ monitoring dashboard?"
13
+
14
+ For iteration projects where a monitoring dashboard already exists, only
15
+ ask if this iteration added new metrics or changed monitoring scope.
16
+
17
+ ::GATE:: id=ai-engineer-bi-engineer-handoff-phase-0 phase=0 kind=phase
18
+ Wait for an explicit yes or no. Do not generate the file unless the user confirms.
19
+ ::ENDGATE::
20
+
21
+ If yes, write `services/<project_name>/bi_engineer_handoff.md`:
22
+
23
+ ```
24
+ # BI Engineer Handoff: <project_name>
25
+
26
+ ## Source Project
27
+ - Originating agent: AI Engineer
28
+ - Project directory: services/<project_name>/
29
+ - Project specs: services/<project_name>/project-specs.md
30
+ - Project report: services/<project_name>/report.md
31
+
32
+ ## What Was Built
33
+ - System type: <prompt chain / RAG / agentic / transformation from Phase 0>
34
+ - Primary model: <provider and model from Phase 3>
35
+ - System purpose: <one sentence from Phase 1>
36
+ - Architecture position: <simplicity ladder position from Phase 3>
37
+
38
+ ## Dashboarding Objective
39
+ - Purpose: AI system operational monitoring dashboard
40
+ - Intended audience: <ML or engineering team from Phase 1>
41
+ - Dashboard type: LLM system observability / eval monitoring
42
+
43
+ ## Key Metrics to Display
44
+ Quality metrics:
45
+ - Correctness: <metric and target from Phase 6>
46
+ - Relevance: <metric and target from Phase 6>
47
+ - Safety pass rate: <rate from Phase 6> — threshold: <threshold>
48
+ - Format compliance: <metric from Phase 6>
49
+
50
+ Cost metrics:
51
+ - Cost per request: $<from Phase 6>
52
+ - Monthly projection at volume: $<from Phase 6>
53
+ - Cost anomaly threshold: <alert threshold from Phase 5>
54
+
55
+ Latency metrics:
56
+ - p95 latency target: <from Phase 4>
57
+ - LLM call time actual: <p95 from Phase 6>
58
+
59
+ Safety metrics:
60
+ - Prompt injection pass rate: <from Phase 6>
61
+ - Adversarial input pass rate: <from Phase 6>
62
+ - Content filter triggers: <rate or count>
63
+
64
+ ## Data Sources for Dashboard
65
+ - Evaluation test set: services/<project_name>/eval/
66
+ - Production request logs: <log source from Phase 5 monitoring plan>
67
+ - LLM API usage data: <API provider dashboard or internal log>
68
+ - Safety incident log: <incident log location from Phase 5>
69
+
70
+ ## Tool Recommendation
71
+ - <Streamlit for internal / Grafana for ops> — <one-sentence rationale>
72
+ - No preference? Let the BI Engineer recommend during Phase 0.
73
+
74
+ ## Constraints
75
+ - Monitoring approach from Phase 5: <quality tracking method and cadence>
76
+ - Refresh cadence: <real-time or daily batch>
77
+ - Data access: <log streaming or batch export>
78
+
79
+ ## Next Step
80
+ Run `/bi-engineer` or `/shards`. In Phase 0, reference this file:
81
+ services/<project_name>/bi_engineer_handoff.md
82
+ ```
83
+
84
+ Tell the user: "Handoff file written. Run `/bi-engineer` or `/shards` and
85
+ reference `services/<project_name>/bi_engineer_handoff.md` in Phase 0."
86
+ Do NOT attempt to morph into or invoke the BI Engineer.