@accelerationguy/accel 1.0.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 (376) hide show
  1. package/CLAUDE.md +19 -0
  2. package/LICENSE +33 -0
  3. package/README.md +275 -0
  4. package/bin/install.js +661 -0
  5. package/docs/getting-started.md +164 -0
  6. package/docs/module-guide.md +139 -0
  7. package/modules/drive/LICENSE +21 -0
  8. package/modules/drive/PAUL-VS-GSD.md +171 -0
  9. package/modules/drive/README.md +555 -0
  10. package/modules/drive/assets/terminal.svg +67 -0
  11. package/modules/drive/bin/install.js +210 -0
  12. package/modules/drive/integration.js +76 -0
  13. package/modules/drive/package.json +38 -0
  14. package/modules/drive/src/commands/add-phase.md +36 -0
  15. package/modules/drive/src/commands/apply.md +83 -0
  16. package/modules/drive/src/commands/assumptions.md +37 -0
  17. package/modules/drive/src/commands/audit.md +57 -0
  18. package/modules/drive/src/commands/complete-milestone.md +36 -0
  19. package/modules/drive/src/commands/config.md +175 -0
  20. package/modules/drive/src/commands/consider-issues.md +41 -0
  21. package/modules/drive/src/commands/discover.md +48 -0
  22. package/modules/drive/src/commands/discuss-milestone.md +33 -0
  23. package/modules/drive/src/commands/discuss.md +34 -0
  24. package/modules/drive/src/commands/flows.md +73 -0
  25. package/modules/drive/src/commands/handoff.md +201 -0
  26. package/modules/drive/src/commands/help.md +525 -0
  27. package/modules/drive/src/commands/init.md +54 -0
  28. package/modules/drive/src/commands/map-codebase.md +34 -0
  29. package/modules/drive/src/commands/milestone.md +34 -0
  30. package/modules/drive/src/commands/pause.md +44 -0
  31. package/modules/drive/src/commands/plan-fix.md +216 -0
  32. package/modules/drive/src/commands/plan.md +36 -0
  33. package/modules/drive/src/commands/progress.md +138 -0
  34. package/modules/drive/src/commands/register.md +29 -0
  35. package/modules/drive/src/commands/remove-phase.md +37 -0
  36. package/modules/drive/src/commands/research-phase.md +209 -0
  37. package/modules/drive/src/commands/research.md +47 -0
  38. package/modules/drive/src/commands/resume.md +49 -0
  39. package/modules/drive/src/commands/status.md +78 -0
  40. package/modules/drive/src/commands/unify.md +87 -0
  41. package/modules/drive/src/commands/verify.md +60 -0
  42. package/modules/drive/src/references/checkpoints.md +234 -0
  43. package/modules/drive/src/references/context-management.md +219 -0
  44. package/modules/drive/src/references/git-strategy.md +206 -0
  45. package/modules/drive/src/references/loop-phases.md +254 -0
  46. package/modules/drive/src/references/plan-format.md +263 -0
  47. package/modules/drive/src/references/quality-principles.md +152 -0
  48. package/modules/drive/src/references/research-quality-control.md +247 -0
  49. package/modules/drive/src/references/sonarqube-integration.md +244 -0
  50. package/modules/drive/src/references/specialized-workflow-integration.md +186 -0
  51. package/modules/drive/src/references/subagent-criteria.md +179 -0
  52. package/modules/drive/src/references/tdd.md +219 -0
  53. package/modules/drive/src/references/work-units.md +161 -0
  54. package/modules/drive/src/rules/commands.md +108 -0
  55. package/modules/drive/src/rules/references.md +107 -0
  56. package/modules/drive/src/rules/style.md +123 -0
  57. package/modules/drive/src/rules/templates.md +51 -0
  58. package/modules/drive/src/rules/workflows.md +133 -0
  59. package/modules/drive/src/templates/CONTEXT.md +88 -0
  60. package/modules/drive/src/templates/DEBUG.md +164 -0
  61. package/modules/drive/src/templates/DISCOVERY.md +148 -0
  62. package/modules/drive/src/templates/HANDOFF.md +77 -0
  63. package/modules/drive/src/templates/ISSUES.md +93 -0
  64. package/modules/drive/src/templates/MILESTONES.md +167 -0
  65. package/modules/drive/src/templates/PLAN.md +328 -0
  66. package/modules/drive/src/templates/PROJECT.md +219 -0
  67. package/modules/drive/src/templates/RESEARCH.md +130 -0
  68. package/modules/drive/src/templates/ROADMAP.md +328 -0
  69. package/modules/drive/src/templates/SPECIAL-FLOWS.md +70 -0
  70. package/modules/drive/src/templates/STATE.md +210 -0
  71. package/modules/drive/src/templates/SUMMARY.md +221 -0
  72. package/modules/drive/src/templates/UAT-ISSUES.md +139 -0
  73. package/modules/drive/src/templates/codebase/architecture.md +259 -0
  74. package/modules/drive/src/templates/codebase/concerns.md +329 -0
  75. package/modules/drive/src/templates/codebase/conventions.md +311 -0
  76. package/modules/drive/src/templates/codebase/integrations.md +284 -0
  77. package/modules/drive/src/templates/codebase/stack.md +190 -0
  78. package/modules/drive/src/templates/codebase/structure.md +287 -0
  79. package/modules/drive/src/templates/codebase/testing.md +484 -0
  80. package/modules/drive/src/templates/config.md +181 -0
  81. package/modules/drive/src/templates/milestone-archive.md +236 -0
  82. package/modules/drive/src/templates/milestone-context.md +190 -0
  83. package/modules/drive/src/templates/paul-json.md +147 -0
  84. package/modules/drive/src/vector-config/PAUL +26 -0
  85. package/modules/drive/src/vector-config/PAUL.manifest +11 -0
  86. package/modules/drive/src/workflows/apply-phase.md +393 -0
  87. package/modules/drive/src/workflows/audit-plan.md +344 -0
  88. package/modules/drive/src/workflows/complete-milestone.md +479 -0
  89. package/modules/drive/src/workflows/configure-special-flows.md +283 -0
  90. package/modules/drive/src/workflows/consider-issues.md +172 -0
  91. package/modules/drive/src/workflows/create-milestone.md +268 -0
  92. package/modules/drive/src/workflows/debug.md +292 -0
  93. package/modules/drive/src/workflows/discovery.md +187 -0
  94. package/modules/drive/src/workflows/discuss-milestone.md +245 -0
  95. package/modules/drive/src/workflows/discuss-phase.md +231 -0
  96. package/modules/drive/src/workflows/init-project.md +698 -0
  97. package/modules/drive/src/workflows/map-codebase.md +459 -0
  98. package/modules/drive/src/workflows/pause-work.md +259 -0
  99. package/modules/drive/src/workflows/phase-assumptions.md +181 -0
  100. package/modules/drive/src/workflows/plan-phase.md +385 -0
  101. package/modules/drive/src/workflows/quality-gate.md +263 -0
  102. package/modules/drive/src/workflows/register-manifest.md +107 -0
  103. package/modules/drive/src/workflows/research.md +241 -0
  104. package/modules/drive/src/workflows/resume-project.md +200 -0
  105. package/modules/drive/src/workflows/roadmap-management.md +334 -0
  106. package/modules/drive/src/workflows/transition-phase.md +368 -0
  107. package/modules/drive/src/workflows/unify-phase.md +290 -0
  108. package/modules/drive/src/workflows/verify-work.md +241 -0
  109. package/modules/forge/README.md +281 -0
  110. package/modules/forge/bin/install.js +200 -0
  111. package/modules/forge/package.json +32 -0
  112. package/modules/forge/skillsmith/rules/checklists-rules.md +42 -0
  113. package/modules/forge/skillsmith/rules/context-rules.md +43 -0
  114. package/modules/forge/skillsmith/rules/entry-point-rules.md +44 -0
  115. package/modules/forge/skillsmith/rules/frameworks-rules.md +43 -0
  116. package/modules/forge/skillsmith/rules/tasks-rules.md +52 -0
  117. package/modules/forge/skillsmith/rules/templates-rules.md +43 -0
  118. package/modules/forge/skillsmith/skillsmith.md +82 -0
  119. package/modules/forge/skillsmith/tasks/audit.md +277 -0
  120. package/modules/forge/skillsmith/tasks/discover.md +145 -0
  121. package/modules/forge/skillsmith/tasks/distill.md +276 -0
  122. package/modules/forge/skillsmith/tasks/scaffold.md +349 -0
  123. package/modules/forge/specs/checklists.md +193 -0
  124. package/modules/forge/specs/context.md +223 -0
  125. package/modules/forge/specs/entry-point.md +320 -0
  126. package/modules/forge/specs/frameworks.md +228 -0
  127. package/modules/forge/specs/rules.md +245 -0
  128. package/modules/forge/specs/tasks.md +344 -0
  129. package/modules/forge/specs/templates.md +335 -0
  130. package/modules/forge/terminal.svg +70 -0
  131. package/modules/ignition/README.md +245 -0
  132. package/modules/ignition/bin/install.js +184 -0
  133. package/modules/ignition/checklists/planning-quality.md +55 -0
  134. package/modules/ignition/data/application/config.md +21 -0
  135. package/modules/ignition/data/application/guide.md +51 -0
  136. package/modules/ignition/data/application/skill-loadout.md +11 -0
  137. package/modules/ignition/data/campaign/config.md +18 -0
  138. package/modules/ignition/data/campaign/guide.md +36 -0
  139. package/modules/ignition/data/campaign/skill-loadout.md +10 -0
  140. package/modules/ignition/data/client/config.md +18 -0
  141. package/modules/ignition/data/client/guide.md +36 -0
  142. package/modules/ignition/data/client/skill-loadout.md +11 -0
  143. package/modules/ignition/data/utility/config.md +18 -0
  144. package/modules/ignition/data/utility/guide.md +31 -0
  145. package/modules/ignition/data/utility/skill-loadout.md +8 -0
  146. package/modules/ignition/data/workflow/config.md +19 -0
  147. package/modules/ignition/data/workflow/guide.md +41 -0
  148. package/modules/ignition/data/workflow/skill-loadout.md +10 -0
  149. package/modules/ignition/integration.js +54 -0
  150. package/modules/ignition/package.json +35 -0
  151. package/modules/ignition/seed.md +81 -0
  152. package/modules/ignition/tasks/add-type.md +164 -0
  153. package/modules/ignition/tasks/graduate.md +182 -0
  154. package/modules/ignition/tasks/ideate.md +221 -0
  155. package/modules/ignition/tasks/launch.md +137 -0
  156. package/modules/ignition/tasks/status.md +71 -0
  157. package/modules/ignition/templates/planning-application.md +193 -0
  158. package/modules/ignition/templates/planning-campaign.md +138 -0
  159. package/modules/ignition/templates/planning-client.md +149 -0
  160. package/modules/ignition/templates/planning-utility.md +112 -0
  161. package/modules/ignition/templates/planning-workflow.md +125 -0
  162. package/modules/ignition/terminal.svg +74 -0
  163. package/modules/mission-control/CONTEXT-CONTINUITY-SPEC.md +293 -0
  164. package/modules/mission-control/CONTEXT-ENGINEERING-GUIDE.md +282 -0
  165. package/modules/mission-control/README.md +91 -0
  166. package/modules/mission-control/assets/terminal.svg +80 -0
  167. package/modules/mission-control/examples/entities.example.json +133 -0
  168. package/modules/mission-control/examples/projects.example.json +318 -0
  169. package/modules/mission-control/examples/state.example.json +183 -0
  170. package/modules/mission-control/examples/vector.example.json +245 -0
  171. package/modules/mission-control/mission-control/checklists/install-verification.md +46 -0
  172. package/modules/mission-control/mission-control/frameworks/framework-registry.md +83 -0
  173. package/modules/mission-control/mission-control/mission-control.md +83 -0
  174. package/modules/mission-control/mission-control/tasks/insights.md +73 -0
  175. package/modules/mission-control/mission-control/tasks/install.md +194 -0
  176. package/modules/mission-control/mission-control/tasks/status.md +125 -0
  177. package/modules/mission-control/schemas/entities.schema.json +89 -0
  178. package/modules/mission-control/schemas/projects.schema.json +221 -0
  179. package/modules/mission-control/schemas/state.schema.json +108 -0
  180. package/modules/mission-control/schemas/vector.schema.json +200 -0
  181. package/modules/momentum/README.md +678 -0
  182. package/modules/momentum/bin/install.js +563 -0
  183. package/modules/momentum/integration.js +131 -0
  184. package/modules/momentum/package.json +42 -0
  185. package/modules/momentum/schemas/entities.schema.json +89 -0
  186. package/modules/momentum/schemas/projects.schema.json +221 -0
  187. package/modules/momentum/schemas/state.schema.json +108 -0
  188. package/modules/momentum/src/commands/audit-claude-md.md +31 -0
  189. package/modules/momentum/src/commands/audit.md +33 -0
  190. package/modules/momentum/src/commands/groom.md +35 -0
  191. package/modules/momentum/src/commands/history.md +27 -0
  192. package/modules/momentum/src/commands/pulse.md +33 -0
  193. package/modules/momentum/src/commands/scaffold.md +33 -0
  194. package/modules/momentum/src/commands/status.md +28 -0
  195. package/modules/momentum/src/commands/surface-convert.md +35 -0
  196. package/modules/momentum/src/commands/surface-create.md +34 -0
  197. package/modules/momentum/src/commands/surface-list.md +27 -0
  198. package/modules/momentum/src/commands/vector-hygiene.md +33 -0
  199. package/modules/momentum/src/framework/context/momentum-principles.md +71 -0
  200. package/modules/momentum/src/framework/frameworks/audit-strategies.md +53 -0
  201. package/modules/momentum/src/framework/frameworks/satellite-registration.md +44 -0
  202. package/modules/momentum/src/framework/tasks/audit-claude-md.md +68 -0
  203. package/modules/momentum/src/framework/tasks/audit.md +64 -0
  204. package/modules/momentum/src/framework/tasks/groom.md +164 -0
  205. package/modules/momentum/src/framework/tasks/history.md +34 -0
  206. package/modules/momentum/src/framework/tasks/pulse.md +83 -0
  207. package/modules/momentum/src/framework/tasks/scaffold.md +202 -0
  208. package/modules/momentum/src/framework/tasks/status.md +35 -0
  209. package/modules/momentum/src/framework/tasks/surface-convert.md +143 -0
  210. package/modules/momentum/src/framework/tasks/surface-create.md +184 -0
  211. package/modules/momentum/src/framework/tasks/surface-list.md +42 -0
  212. package/modules/momentum/src/framework/tasks/vector-hygiene.md +160 -0
  213. package/modules/momentum/src/framework/templates/workspace-json.md +96 -0
  214. package/modules/momentum/src/hooks/_template.py +129 -0
  215. package/modules/momentum/src/hooks/active-hook.py +178 -0
  216. package/modules/momentum/src/hooks/backlog-hook.py +115 -0
  217. package/modules/momentum/src/hooks/mission-control-insights.py +169 -0
  218. package/modules/momentum/src/hooks/momentum-pulse-check.py +351 -0
  219. package/modules/momentum/src/hooks/operator.py +53 -0
  220. package/modules/momentum/src/hooks/psmm-injector.py +67 -0
  221. package/modules/momentum/src/hooks/satellite-detection.py +248 -0
  222. package/modules/momentum/src/packages/momentum-mcp/index.js +119 -0
  223. package/modules/momentum/src/packages/momentum-mcp/package.json +10 -0
  224. package/modules/momentum/src/packages/momentum-mcp/tools/entities.js +226 -0
  225. package/modules/momentum/src/packages/momentum-mcp/tools/operator.js +106 -0
  226. package/modules/momentum/src/packages/momentum-mcp/tools/projects.js +322 -0
  227. package/modules/momentum/src/packages/momentum-mcp/tools/psmm.js +206 -0
  228. package/modules/momentum/src/packages/momentum-mcp/tools/state.js +199 -0
  229. package/modules/momentum/src/packages/momentum-mcp/tools/surfaces.js +404 -0
  230. package/modules/momentum/src/skill/momentum.md +111 -0
  231. package/modules/momentum/src/tasks/groom.md +164 -0
  232. package/modules/momentum/src/templates/operator.json +66 -0
  233. package/modules/momentum/src/templates/workspace.json +111 -0
  234. package/modules/momentum/terminal.svg +77 -0
  235. package/modules/radar/README.md +1552 -0
  236. package/modules/radar/commands/audit.md +233 -0
  237. package/modules/radar/commands/guardrails.md +194 -0
  238. package/modules/radar/commands/init.md +207 -0
  239. package/modules/radar/commands/playbook.md +176 -0
  240. package/modules/radar/commands/remediate.md +156 -0
  241. package/modules/radar/commands/report.md +172 -0
  242. package/modules/radar/commands/resume.md +176 -0
  243. package/modules/radar/commands/status.md +148 -0
  244. package/modules/radar/commands/transform.md +205 -0
  245. package/modules/radar/commands/validate.md +177 -0
  246. package/modules/radar/docs/ARCHITECTURE.md +336 -0
  247. package/modules/radar/docs/GETTING-STARTED.md +287 -0
  248. package/modules/radar/docs/standards/agents.md +197 -0
  249. package/modules/radar/docs/standards/commands.md +250 -0
  250. package/modules/radar/docs/standards/domains.md +191 -0
  251. package/modules/radar/docs/standards/personas.md +211 -0
  252. package/modules/radar/docs/standards/rules.md +218 -0
  253. package/modules/radar/docs/standards/runtime.md +445 -0
  254. package/modules/radar/docs/standards/schemas.md +269 -0
  255. package/modules/radar/docs/standards/tools.md +273 -0
  256. package/modules/radar/docs/standards/workflows.md +254 -0
  257. package/modules/radar/docs/terminal.svg +72 -0
  258. package/modules/radar/docs/validation/convention-compliance-report.md +183 -0
  259. package/modules/radar/docs/validation/cross-reference-report.md +195 -0
  260. package/modules/radar/docs/validation/validation-summary.md +118 -0
  261. package/modules/radar/docs/validation/version-manifest.yaml +363 -0
  262. package/modules/radar/install.sh +711 -0
  263. package/modules/radar/integration.js +53 -0
  264. package/modules/radar/src/core/agents/architect.md +25 -0
  265. package/modules/radar/src/core/agents/compliance-officer.md +25 -0
  266. package/modules/radar/src/core/agents/data-engineer.md +25 -0
  267. package/modules/radar/src/core/agents/devils-advocate.md +22 -0
  268. package/modules/radar/src/core/agents/performance-engineer.md +25 -0
  269. package/modules/radar/src/core/agents/principal-engineer.md +23 -0
  270. package/modules/radar/src/core/agents/reality-gap-analyst.md +22 -0
  271. package/modules/radar/src/core/agents/security-engineer.md +25 -0
  272. package/modules/radar/src/core/agents/senior-app-engineer.md +25 -0
  273. package/modules/radar/src/core/agents/sre.md +25 -0
  274. package/modules/radar/src/core/agents/staff-engineer.md +23 -0
  275. package/modules/radar/src/core/agents/test-engineer.md +25 -0
  276. package/modules/radar/src/core/personas/architect.md +111 -0
  277. package/modules/radar/src/core/personas/compliance-officer.md +104 -0
  278. package/modules/radar/src/core/personas/data-engineer.md +113 -0
  279. package/modules/radar/src/core/personas/devils-advocate.md +105 -0
  280. package/modules/radar/src/core/personas/performance-engineer.md +119 -0
  281. package/modules/radar/src/core/personas/principal-engineer.md +119 -0
  282. package/modules/radar/src/core/personas/reality-gap-analyst.md +111 -0
  283. package/modules/radar/src/core/personas/security-engineer.md +108 -0
  284. package/modules/radar/src/core/personas/senior-app-engineer.md +111 -0
  285. package/modules/radar/src/core/personas/sre.md +117 -0
  286. package/modules/radar/src/core/personas/staff-engineer.md +109 -0
  287. package/modules/radar/src/core/personas/test-engineer.md +109 -0
  288. package/modules/radar/src/core/workflows/disagreement-resolution.md +183 -0
  289. package/modules/radar/src/core/workflows/phase-0-context.md +148 -0
  290. package/modules/radar/src/core/workflows/phase-1-reconnaissance.md +169 -0
  291. package/modules/radar/src/core/workflows/phase-2-domain-audits.md +190 -0
  292. package/modules/radar/src/core/workflows/phase-3-cross-domain.md +177 -0
  293. package/modules/radar/src/core/workflows/phase-4-adversarial-review.md +165 -0
  294. package/modules/radar/src/core/workflows/phase-5-report.md +189 -0
  295. package/modules/radar/src/core/workflows/phase-checkpoint.md +222 -0
  296. package/modules/radar/src/core/workflows/session-handoff.md +152 -0
  297. package/modules/radar/src/domains/00-context.md +201 -0
  298. package/modules/radar/src/domains/01-architecture.md +248 -0
  299. package/modules/radar/src/domains/02-data.md +224 -0
  300. package/modules/radar/src/domains/03-correctness.md +230 -0
  301. package/modules/radar/src/domains/04-security.md +274 -0
  302. package/modules/radar/src/domains/05-compliance.md +228 -0
  303. package/modules/radar/src/domains/06-testing.md +228 -0
  304. package/modules/radar/src/domains/07-reliability.md +246 -0
  305. package/modules/radar/src/domains/08-performance.md +247 -0
  306. package/modules/radar/src/domains/09-maintainability.md +271 -0
  307. package/modules/radar/src/domains/10-operability.md +250 -0
  308. package/modules/radar/src/domains/11-change-risk.md +246 -0
  309. package/modules/radar/src/domains/12-team-risk.md +221 -0
  310. package/modules/radar/src/domains/13-risk-synthesis.md +202 -0
  311. package/modules/radar/src/rules/agent-boundaries.md +78 -0
  312. package/modules/radar/src/rules/disagreement-protocol.md +76 -0
  313. package/modules/radar/src/rules/epistemic-hygiene.md +78 -0
  314. package/modules/radar/src/schemas/confidence.md +185 -0
  315. package/modules/radar/src/schemas/disagreement.md +238 -0
  316. package/modules/radar/src/schemas/finding.md +287 -0
  317. package/modules/radar/src/schemas/report-section.md +150 -0
  318. package/modules/radar/src/schemas/signal.md +108 -0
  319. package/modules/radar/src/tools/checkov.md +463 -0
  320. package/modules/radar/src/tools/git-history.md +581 -0
  321. package/modules/radar/src/tools/gitleaks.md +447 -0
  322. package/modules/radar/src/tools/grype.md +611 -0
  323. package/modules/radar/src/tools/semgrep.md +378 -0
  324. package/modules/radar/src/tools/sonarqube.md +550 -0
  325. package/modules/radar/src/tools/syft.md +539 -0
  326. package/modules/radar/src/tools/trivy.md +439 -0
  327. package/modules/radar/src/transform/agents/change-risk-modeler.md +24 -0
  328. package/modules/radar/src/transform/agents/execution-validator.md +24 -0
  329. package/modules/radar/src/transform/agents/guardrail-generator.md +24 -0
  330. package/modules/radar/src/transform/agents/pedagogy-agent.md +24 -0
  331. package/modules/radar/src/transform/agents/remediation-architect.md +24 -0
  332. package/modules/radar/src/transform/personas/change-risk-modeler.md +95 -0
  333. package/modules/radar/src/transform/personas/execution-validator.md +95 -0
  334. package/modules/radar/src/transform/personas/guardrail-generator.md +103 -0
  335. package/modules/radar/src/transform/personas/pedagogy-agent.md +105 -0
  336. package/modules/radar/src/transform/personas/remediation-architect.md +95 -0
  337. package/modules/radar/src/transform/rules/change-risk-rules.md +87 -0
  338. package/modules/radar/src/transform/rules/safety-governance.md +87 -0
  339. package/modules/radar/src/transform/schemas/change-risk.md +139 -0
  340. package/modules/radar/src/transform/schemas/intervention-level.md +207 -0
  341. package/modules/radar/src/transform/schemas/playbook.md +205 -0
  342. package/modules/radar/src/transform/schemas/verification-plan.md +134 -0
  343. package/modules/radar/src/transform/workflows/phase-6-remediation.md +148 -0
  344. package/modules/radar/src/transform/workflows/phase-7-risk-validation.md +161 -0
  345. package/modules/radar/src/transform/workflows/phase-8-execution-planning.md +159 -0
  346. package/modules/radar/src/transform/workflows/transform-safety.md +158 -0
  347. package/modules/vector/.vector-template/sessions/.gitkeep +0 -0
  348. package/modules/vector/.vector-template/vector.json +72 -0
  349. package/modules/vector/AUDIT-CLAUDEMD.md +154 -0
  350. package/modules/vector/INSTALL.md +185 -0
  351. package/modules/vector/LICENSE +21 -0
  352. package/modules/vector/README.md +409 -0
  353. package/modules/vector/VECTOR-BLOCK.md +57 -0
  354. package/modules/vector/assets/terminal.svg +68 -0
  355. package/modules/vector/bin/install.js +455 -0
  356. package/modules/vector/bin/migrate-v1-to-v2.sh +492 -0
  357. package/modules/vector/commands/help.md +46 -0
  358. package/modules/vector/hooks/vector-hook.py +775 -0
  359. package/modules/vector/mcp/index.js +118 -0
  360. package/modules/vector/mcp/package.json +10 -0
  361. package/modules/vector/mcp/tools/decisions.js +269 -0
  362. package/modules/vector/mcp/tools/domains.js +361 -0
  363. package/modules/vector/mcp/tools/staging.js +252 -0
  364. package/modules/vector/mcp/tools/vector-json.js +647 -0
  365. package/modules/vector/package.json +38 -0
  366. package/modules/vector/schemas/vector.schema.json +237 -0
  367. package/package.json +39 -0
  368. package/shared/branding/branding.js +70 -0
  369. package/shared/config/defaults.json +59 -0
  370. package/shared/events/README.md +175 -0
  371. package/shared/events/event-bus.js +134 -0
  372. package/shared/events/event_bus.py +255 -0
  373. package/shared/events/integrations.js +161 -0
  374. package/shared/events/schemas/audit-complete.schema.json +21 -0
  375. package/shared/events/schemas/phase-progress.schema.json +23 -0
  376. package/shared/events/schemas/plan-created.schema.json +21 -0
@@ -0,0 +1,311 @@
1
+ # Coding Conventions Template
2
+
3
+ Template for `.drive/codebase/CONVENTIONS.md` - captures coding style and patterns.
4
+
5
+ **Purpose:** Document how code is written in this codebase. Prescriptive guide for Claude to match existing style.
6
+
7
+ ---
8
+
9
+ ## File Template
10
+
11
+ ```markdown
12
+ # Coding Conventions
13
+
14
+ **Analysis Date:** [YYYY-MM-DD]
15
+
16
+ ## Naming Patterns
17
+
18
+ **Files:**
19
+ - [Pattern: e.g., "kebab-case for all files"]
20
+ - [Test files: e.g., "*.test.ts alongside source"]
21
+ - [Components: e.g., "PascalCase.tsx for React components"]
22
+
23
+ **Functions:**
24
+ - [Pattern: e.g., "camelCase for all functions"]
25
+ - [Async: e.g., "no special prefix for async functions"]
26
+ - [Handlers: e.g., "handleEventName for event handlers"]
27
+
28
+ **Variables:**
29
+ - [Pattern: e.g., "camelCase for variables"]
30
+ - [Constants: e.g., "UPPER_SNAKE_CASE for constants"]
31
+ - [Private: e.g., "_prefix for private members" or "no prefix"]
32
+
33
+ **Types:**
34
+ - [Interfaces: e.g., "PascalCase, no I prefix"]
35
+ - [Types: e.g., "PascalCase for type aliases"]
36
+ - [Enums: e.g., "PascalCase for enum name, UPPER_CASE for values"]
37
+
38
+ ## Code Style
39
+
40
+ **Formatting:**
41
+ - [Tool: e.g., "Prettier with config in .prettierrc"]
42
+ - [Line length: e.g., "100 characters max"]
43
+ - [Quotes: e.g., "single quotes for strings"]
44
+ - [Semicolons: e.g., "required" or "omitted"]
45
+
46
+ **Linting:**
47
+ - [Tool: e.g., "ESLint with eslint.config.js"]
48
+ - [Rules: e.g., "extends airbnb-base, no console in production"]
49
+ - [Run: e.g., "npm run lint"]
50
+
51
+ ## Import Organization
52
+
53
+ **Order:**
54
+ 1. [e.g., "External packages (react, express, etc.)"]
55
+ 2. [e.g., "Internal modules (@/lib, @/components)"]
56
+ 3. [e.g., "Relative imports (., ..)"]
57
+ 4. [e.g., "Type imports (import type {})"]
58
+
59
+ **Grouping:**
60
+ - [Blank lines: e.g., "blank line between groups"]
61
+ - [Sorting: e.g., "alphabetical within each group"]
62
+
63
+ **Path Aliases:**
64
+ - [Aliases used: e.g., "@/ for src/, @components/ for src/components/"]
65
+
66
+ ## Error Handling
67
+
68
+ **Patterns:**
69
+ - [Strategy: e.g., "throw errors, catch at boundaries"]
70
+ - [Custom errors: e.g., "extend Error class, named *Error"]
71
+ - [Async: e.g., "use try/catch, no .catch() chains"]
72
+
73
+ **Error Types:**
74
+ - [When to throw: e.g., "invalid input, missing dependencies"]
75
+ - [When to return: e.g., "expected failures return Result<T, E>"]
76
+ - [Logging: e.g., "log error with context before throwing"]
77
+
78
+ ## Logging
79
+
80
+ **Framework:**
81
+ - [Tool: e.g., "console.log, pino, winston"]
82
+ - [Levels: e.g., "debug, info, warn, error"]
83
+
84
+ **Patterns:**
85
+ - [Format: e.g., "structured logging with context object"]
86
+ - [When: e.g., "log state transitions, external calls"]
87
+ - [Where: e.g., "log at service boundaries, not in utils"]
88
+
89
+ ## Comments
90
+
91
+ **When to Comment:**
92
+ - [e.g., "explain why, not what"]
93
+ - [e.g., "document business logic, algorithms, edge cases"]
94
+ - [e.g., "avoid obvious comments like // increment counter"]
95
+
96
+ **JSDoc/TSDoc:**
97
+ - [Usage: e.g., "required for public APIs, optional for internal"]
98
+ - [Format: e.g., "use @param, @returns, @throws tags"]
99
+
100
+ **TODO Comments:**
101
+ - [Pattern: e.g., "// TODO(username): description"]
102
+ - [Tracking: e.g., "link to issue number if available"]
103
+
104
+ ## Function Design
105
+
106
+ **Size:**
107
+ - [e.g., "keep under 50 lines, extract helpers"]
108
+
109
+ **Parameters:**
110
+ - [e.g., "max 3 parameters, use object for more"]
111
+ - [e.g., "destructure objects in parameter list"]
112
+
113
+ **Return Values:**
114
+ - [e.g., "explicit returns, no implicit undefined"]
115
+ - [e.g., "return early for guard clauses"]
116
+
117
+ ## Module Design
118
+
119
+ **Exports:**
120
+ - [e.g., "named exports preferred, default exports for React components"]
121
+ - [e.g., "export from index.ts for public API"]
122
+
123
+ **Barrel Files:**
124
+ - [e.g., "use index.ts to re-export public API"]
125
+ - [e.g., "avoid circular dependencies"]
126
+
127
+ ---
128
+
129
+ *Convention analysis: [date]*
130
+ *Update when patterns change*
131
+ ```
132
+
133
+ ---
134
+
135
+ ## Good Example
136
+
137
+ ```markdown
138
+ # Coding Conventions
139
+
140
+ **Analysis Date:** 2025-01-20
141
+
142
+ ## Naming Patterns
143
+
144
+ **Files:**
145
+ - kebab-case for all files (command-handler.ts, user-service.ts)
146
+ - *.test.ts alongside source files
147
+ - index.ts for barrel exports
148
+
149
+ **Functions:**
150
+ - camelCase for all functions
151
+ - No special prefix for async functions
152
+ - handleEventName for event handlers (handleClick, handleSubmit)
153
+
154
+ **Variables:**
155
+ - camelCase for variables
156
+ - UPPER_SNAKE_CASE for constants (MAX_RETRIES, API_BASE_URL)
157
+ - No underscore prefix (no private marker in TS)
158
+
159
+ **Types:**
160
+ - PascalCase for interfaces, no I prefix (User, not IUser)
161
+ - PascalCase for type aliases (UserConfig, ResponseData)
162
+ - PascalCase for enum names, UPPER_CASE for values (Status.PENDING)
163
+
164
+ ## Code Style
165
+
166
+ **Formatting:**
167
+ - Prettier with .prettierrc
168
+ - 100 character line length
169
+ - Single quotes for strings
170
+ - Semicolons required
171
+ - 2 space indentation
172
+
173
+ **Linting:**
174
+ - ESLint with eslint.config.js
175
+ - Extends @typescript-eslint/recommended
176
+ - No console.log in production code (use logger)
177
+ - Run: npm run lint
178
+
179
+ ## Import Organization
180
+
181
+ **Order:**
182
+ 1. External packages (react, express, commander)
183
+ 2. Internal modules (@/lib, @/services)
184
+ 3. Relative imports (./utils, ../types)
185
+ 4. Type imports (import type { User })
186
+
187
+ **Grouping:**
188
+ - Blank line between groups
189
+ - Alphabetical within each group
190
+ - Type imports last within each group
191
+
192
+ **Path Aliases:**
193
+ - @/ maps to src/
194
+ - No other aliases defined
195
+
196
+ ## Error Handling
197
+
198
+ **Patterns:**
199
+ - Throw errors, catch at boundaries (route handlers, main functions)
200
+ - Extend Error class for custom errors (ValidationError, NotFoundError)
201
+ - Async functions use try/catch, no .catch() chains
202
+
203
+ **Error Types:**
204
+ - Throw on invalid input, missing dependencies, invariant violations
205
+ - Log error with context before throwing: logger.error({ err, userId }, 'Failed to process')
206
+ - Include cause in error message: new Error('Failed to X', { cause: originalError })
207
+
208
+ ## Logging
209
+
210
+ **Framework:**
211
+ - pino logger instance exported from lib/logger.ts
212
+ - Levels: debug, info, warn, error (no trace)
213
+
214
+ **Patterns:**
215
+ - Structured logging with context: logger.info({ userId, action }, 'User action')
216
+ - Log at service boundaries, not in utility functions
217
+ - Log state transitions, external API calls, errors
218
+ - No console.log in committed code
219
+
220
+ ## Comments
221
+
222
+ **When to Comment:**
223
+ - Explain why, not what: // Retry 3 times because API has transient failures
224
+ - Document business rules: // Users must verify email within 24 hours
225
+ - Explain non-obvious algorithms or workarounds
226
+ - Avoid obvious comments: // set count to 0
227
+
228
+ **JSDoc/TSDoc:**
229
+ - Required for public API functions
230
+ - Optional for internal functions if signature is self-explanatory
231
+ - Use @param, @returns, @throws tags
232
+
233
+ **TODO Comments:**
234
+ - Format: // TODO: description (no username, using git blame)
235
+ - Link to issue if exists: // TODO: Fix race condition (issue #123)
236
+
237
+ ## Function Design
238
+
239
+ **Size:**
240
+ - Keep under 50 lines
241
+ - Extract helpers for complex logic
242
+ - One level of abstraction per function
243
+
244
+ **Parameters:**
245
+ - Max 3 parameters
246
+ - Use options object for 4+ parameters: function create(options: CreateOptions)
247
+ - Destructure in parameter list: function process({ id, name }: ProcessParams)
248
+
249
+ **Return Values:**
250
+ - Explicit return statements
251
+ - Return early for guard clauses
252
+ - Use Result<T, E> type for expected failures
253
+
254
+ ## Module Design
255
+
256
+ **Exports:**
257
+ - Named exports preferred
258
+ - Default exports only for React components
259
+ - Export public API from index.ts barrel files
260
+
261
+ **Barrel Files:**
262
+ - index.ts re-exports public API
263
+ - Keep internal helpers private (don't export from index)
264
+ - Avoid circular dependencies (import from specific files if needed)
265
+
266
+ ---
267
+
268
+ *Convention analysis: 2025-01-20*
269
+ *Update when patterns change*
270
+ ```
271
+
272
+ ---
273
+
274
+ ## Guidelines
275
+
276
+ **What belongs in CONVENTIONS.md:**
277
+ - Naming patterns observed in the codebase
278
+ - Formatting rules (Prettier config, linting rules)
279
+ - Import organization patterns
280
+ - Error handling strategy
281
+ - Logging approach
282
+ - Comment conventions
283
+ - Function and module design patterns
284
+
285
+ **What does NOT belong here:**
286
+ - Architecture decisions (that's ARCHITECTURE.md)
287
+ - Technology choices (that's STACK.md)
288
+ - Test patterns (that's TESTING.md)
289
+ - File organization (that's STRUCTURE.md)
290
+
291
+ **When filling this template:**
292
+ - Check .prettierrc, .eslintrc, or similar config files
293
+ - Examine 5-10 representative source files for patterns
294
+ - Look for consistency: if 80%+ follows a pattern, document it
295
+ - Be prescriptive: "Use X" not "Sometimes Y is used"
296
+ - Note deviations: "Legacy code uses Y, new code should use X"
297
+ - Keep under ~150 lines total
298
+
299
+ **Useful for phase planning when:**
300
+ - Writing new code (match existing style)
301
+ - Adding features (follow naming patterns)
302
+ - Refactoring (apply consistent conventions)
303
+ - Code review (check against documented patterns)
304
+ - Onboarding (understand style expectations)
305
+
306
+ **Analysis approach:**
307
+ - Scan src/ directory for file naming patterns
308
+ - Check package.json scripts for lint/format commands
309
+ - Read 5-10 files to identify function naming, error handling
310
+ - Look for config files (.prettierrc, eslint.config.js)
311
+ - Note patterns in imports, comments, function signatures
@@ -0,0 +1,284 @@
1
+ # External Integrations Template
2
+
3
+ Template for `.drive/codebase/INTEGRATIONS.md` - captures external service dependencies.
4
+
5
+ **Purpose:** Document what external systems this codebase communicates with. Focused on "what lives outside our code that we depend on."
6
+
7
+ ---
8
+
9
+ ## File Template
10
+
11
+ ```markdown
12
+ # External Integrations
13
+
14
+ **Analysis Date:** [YYYY-MM-DD]
15
+
16
+ ## APIs & External Services
17
+
18
+ **Payment Processing:**
19
+ - [Service] - [What it's used for: e.g., "subscription billing, one-time payments"]
20
+ - SDK/Client: [e.g., "stripe npm package v14.x"]
21
+ - Auth: [e.g., "API key in STRIPE_SECRET_KEY env var"]
22
+ - Endpoints used: [e.g., "checkout sessions, webhooks"]
23
+
24
+ **Email/SMS:**
25
+ - [Service] - [What it's used for: e.g., "transactional emails"]
26
+ - SDK/Client: [e.g., "sendgrid/mail v8.x"]
27
+ - Auth: [e.g., "API key in SENDGRID_API_KEY env var"]
28
+ - Templates: [e.g., "managed in SendGrid dashboard"]
29
+
30
+ **External APIs:**
31
+ - [Service] - [What it's used for]
32
+ - Integration method: [e.g., "REST API via fetch", "GraphQL client"]
33
+ - Auth: [e.g., "OAuth2 token in AUTH_TOKEN env var"]
34
+ - Rate limits: [if applicable]
35
+
36
+ ## Data Storage
37
+
38
+ **Databases:**
39
+ - [Type/Provider] - [e.g., "PostgreSQL on Supabase"]
40
+ - Connection: [e.g., "via DATABASE_URL env var"]
41
+ - Client: [e.g., "Prisma ORM v5.x"]
42
+ - Migrations: [e.g., "prisma migrate in migrations/"]
43
+
44
+ **File Storage:**
45
+ - [Service] - [e.g., "AWS S3 for user uploads"]
46
+ - SDK/Client: [e.g., "@aws-sdk/client-s3"]
47
+ - Auth: [e.g., "IAM credentials in AWS_* env vars"]
48
+ - Buckets: [e.g., "prod-uploads, dev-uploads"]
49
+
50
+ **Caching:**
51
+ - [Service] - [e.g., "Redis for session storage"]
52
+ - Connection: [e.g., "REDIS_URL env var"]
53
+ - Client: [e.g., "ioredis v5.x"]
54
+
55
+ ## Authentication & Identity
56
+
57
+ **Auth Provider:**
58
+ - [Service] - [e.g., "Supabase Auth", "Auth0", "custom JWT"]
59
+ - Implementation: [e.g., "Supabase client SDK"]
60
+ - Token storage: [e.g., "httpOnly cookies", "localStorage"]
61
+ - Session management: [e.g., "JWT refresh tokens"]
62
+
63
+ **OAuth Integrations:**
64
+ - [Provider] - [e.g., "Google OAuth for sign-in"]
65
+ - Credentials: [e.g., "GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET"]
66
+ - Scopes: [e.g., "email, profile"]
67
+
68
+ ## Monitoring & Observability
69
+
70
+ **Error Tracking:**
71
+ - [Service] - [e.g., "Sentry"]
72
+ - DSN: [e.g., "SENTRY_DSN env var"]
73
+ - Release tracking: [e.g., "via SENTRY_RELEASE"]
74
+
75
+ **Analytics:**
76
+ - [Service] - [e.g., "Mixpanel for product analytics"]
77
+ - Token: [e.g., "MIXPANEL_TOKEN env var"]
78
+ - Events tracked: [e.g., "user actions, page views"]
79
+
80
+ **Logs:**
81
+ - [Service] - [e.g., "CloudWatch", "Datadog", "none (stdout only)"]
82
+ - Integration: [e.g., "AWS Lambda built-in"]
83
+
84
+ ## CI/CD & Deployment
85
+
86
+ **Hosting:**
87
+ - [Platform] - [e.g., "Vercel", "AWS Lambda", "Docker on ECS"]
88
+ - Deployment: [e.g., "automatic on main branch push"]
89
+ - Environment vars: [e.g., "configured in Vercel dashboard"]
90
+
91
+ **CI Pipeline:**
92
+ - [Service] - [e.g., "GitHub Actions"]
93
+ - Workflows: [e.g., "test.yml, deploy.yml"]
94
+ - Secrets: [e.g., "stored in GitHub repo secrets"]
95
+
96
+ ## Environment Configuration
97
+
98
+ **Development:**
99
+ - Required env vars: [List critical vars]
100
+ - Secrets location: [e.g., ".env.local (gitignored)", "1Password vault"]
101
+ - Mock/stub services: [e.g., "Stripe test mode", "local PostgreSQL"]
102
+
103
+ **Staging:**
104
+ - Environment-specific differences: [e.g., "uses staging Stripe account"]
105
+ - Data: [e.g., "separate staging database"]
106
+
107
+ **Production:**
108
+ - Secrets management: [e.g., "Vercel environment variables"]
109
+ - Failover/redundancy: [e.g., "multi-region DB replication"]
110
+
111
+ ## Webhooks & Callbacks
112
+
113
+ **Incoming:**
114
+ - [Service] - [Endpoint: e.g., "/api/webhooks/stripe"]
115
+ - Verification: [e.g., "signature validation via stripe.webhooks.constructEvent"]
116
+ - Events: [e.g., "payment_intent.succeeded, customer.subscription.updated"]
117
+
118
+ **Outgoing:**
119
+ - [Service] - [What triggers it]
120
+ - Endpoint: [e.g., "external CRM webhook on user signup"]
121
+ - Retry logic: [if applicable]
122
+
123
+ ---
124
+
125
+ *Integration audit: [date]*
126
+ *Update when adding/removing external services*
127
+ ```
128
+
129
+ ---
130
+
131
+ ## Good Example
132
+
133
+ ```markdown
134
+ # External Integrations
135
+
136
+ **Analysis Date:** 2025-01-20
137
+
138
+ ## APIs & External Services
139
+
140
+ **Payment Processing:**
141
+ - Stripe - Subscription billing and one-time course payments
142
+ - SDK/Client: stripe npm package v14.8
143
+ - Auth: API key in STRIPE_SECRET_KEY env var
144
+ - Endpoints used: checkout sessions, customer portal, webhooks
145
+
146
+ **Email/SMS:**
147
+ - SendGrid - Transactional emails (receipts, password resets)
148
+ - SDK/Client: @sendgrid/mail v8.1
149
+ - Auth: API key in SENDGRID_API_KEY env var
150
+ - Templates: Managed in SendGrid dashboard (template IDs in code)
151
+
152
+ **External APIs:**
153
+ - OpenAI API - Course content generation
154
+ - Integration method: REST API via openai npm package v4.x
155
+ - Auth: Bearer token in OPENAI_API_KEY env var
156
+ - Rate limits: 3500 requests/min (tier 3)
157
+
158
+ ## Data Storage
159
+
160
+ **Databases:**
161
+ - PostgreSQL on Supabase - Primary data store
162
+ - Connection: via DATABASE_URL env var
163
+ - Client: Prisma ORM v5.8
164
+ - Migrations: prisma migrate in prisma/migrations/
165
+
166
+ **File Storage:**
167
+ - Supabase Storage - User uploads (profile images, course materials)
168
+ - SDK/Client: @supabase/supabase-js v2.x
169
+ - Auth: Service role key in SUPABASE_SERVICE_ROLE_KEY
170
+ - Buckets: avatars (public), course-materials (private)
171
+
172
+ **Caching:**
173
+ - None currently (all database queries, no Redis)
174
+
175
+ ## Authentication & Identity
176
+
177
+ **Auth Provider:**
178
+ - Supabase Auth - Email/password + OAuth
179
+ - Implementation: Supabase client SDK with server-side session management
180
+ - Token storage: httpOnly cookies via @supabase/ssr
181
+ - Session management: JWT refresh tokens handled by Supabase
182
+
183
+ **OAuth Integrations:**
184
+ - Google OAuth - Social sign-in
185
+ - Credentials: GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET (Supabase dashboard)
186
+ - Scopes: email, profile
187
+
188
+ ## Monitoring & Observability
189
+
190
+ **Error Tracking:**
191
+ - Sentry - Server and client errors
192
+ - DSN: SENTRY_DSN env var
193
+ - Release tracking: Git commit SHA via SENTRY_RELEASE
194
+
195
+ **Analytics:**
196
+ - None (planned: Mixpanel)
197
+
198
+ **Logs:**
199
+ - Vercel logs - stdout/stderr only
200
+ - Retention: 7 days on Pro plan
201
+
202
+ ## CI/CD & Deployment
203
+
204
+ **Hosting:**
205
+ - Vercel - Next.js app hosting
206
+ - Deployment: Automatic on main branch push
207
+ - Environment vars: Configured in Vercel dashboard (synced to .env.example)
208
+
209
+ **CI Pipeline:**
210
+ - GitHub Actions - Tests and type checking
211
+ - Workflows: .github/workflows/ci.yml
212
+ - Secrets: None needed (public repo tests only)
213
+
214
+ ## Environment Configuration
215
+
216
+ **Development:**
217
+ - Required env vars: DATABASE_URL, NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY
218
+ - Secrets location: .env.local (gitignored), team shared via 1Password vault
219
+ - Mock/stub services: Stripe test mode, Supabase local dev project
220
+
221
+ **Staging:**
222
+ - Uses separate Supabase staging project
223
+ - Stripe test mode
224
+ - Same Vercel account, different environment
225
+
226
+ **Production:**
227
+ - Secrets management: Vercel environment variables
228
+ - Database: Supabase production project with daily backups
229
+
230
+ ## Webhooks & Callbacks
231
+
232
+ **Incoming:**
233
+ - Stripe - /api/webhooks/stripe
234
+ - Verification: Signature validation via stripe.webhooks.constructEvent
235
+ - Events: payment_intent.succeeded, customer.subscription.updated, customer.subscription.deleted
236
+
237
+ **Outgoing:**
238
+ - None
239
+
240
+ ---
241
+
242
+ *Integration audit: 2025-01-20*
243
+ *Update when adding/removing external services*
244
+ ```
245
+
246
+ ---
247
+
248
+ ## Guidelines
249
+
250
+ **What belongs in INTEGRATIONS.md:**
251
+ - External services the code communicates with
252
+ - Authentication patterns (where secrets live, not the secrets themselves)
253
+ - SDKs and client libraries used
254
+ - Environment variable names (not values)
255
+ - Webhook endpoints and verification methods
256
+ - Database connection patterns
257
+ - File storage locations
258
+ - Monitoring and logging services
259
+
260
+ **What does NOT belong here:**
261
+ - Actual API keys or secrets (NEVER write these)
262
+ - Internal architecture (that's ARCHITECTURE.md)
263
+ - Code patterns (that's CONVENTIONS.md)
264
+ - Technology choices (that's STACK.md)
265
+ - Performance issues (that's CONCERNS.md)
266
+
267
+ **When filling this template:**
268
+ - Check .env.example or .env.template for required env vars
269
+ - Look for SDK imports (stripe, @sendgrid/mail, etc.)
270
+ - Check for webhook handlers in routes/endpoints
271
+ - Note where secrets are managed (not the secrets)
272
+ - Document environment-specific differences (dev/staging/prod)
273
+ - Include auth patterns for each service
274
+
275
+ **Useful for phase planning when:**
276
+ - Adding new external service integrations
277
+ - Debugging authentication issues
278
+ - Understanding data flow outside the application
279
+ - Setting up new environments
280
+ - Auditing third-party dependencies
281
+ - Planning for service outages or migrations
282
+
283
+ **Security note:**
284
+ Document WHERE secrets live (env vars, Vercel dashboard, 1Password), never WHAT the secrets are.