dsh-pstack 0.1.0 → 0.2.0-beta.3

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 (406) hide show
  1. package/LICENSE +2 -3
  2. package/README.md +174 -148
  3. package/README.zh.md +185 -0
  4. package/assets/logo.png +0 -0
  5. package/cordis.patch.yml +103 -14
  6. package/dist/host-contract-CUPSpeNk.d.mts +22 -0
  7. package/dist/index.d.mts +87 -14
  8. package/dist/index.mjs +370 -143
  9. package/dist/models.d.mts +44 -0
  10. package/dist/models.mjs +201 -0
  11. package/dist/paths-BT77khwm.mjs +48 -0
  12. package/dist/{LICENSE → pstack/LICENSE} +1 -2
  13. package/dist/pstack/README.md +291 -0
  14. package/{assets → dist/pstack}/agents/comment-sicko.md +1 -1
  15. package/dist/pstack/agents/poteto-agent.md +9 -0
  16. package/{assets → dist/pstack}/docs/guide/01-setup.md +11 -9
  17. package/dist/{assets → pstack}/docs/guide/02-poteto-mode.md +2 -2
  18. package/{assets → dist/pstack}/docs/guide/04-design.md +4 -4
  19. package/dist/{assets → pstack}/docs/guide/05-build-and-clean.md +3 -3
  20. package/dist/{assets → pstack}/docs/guide/06-verify-and-ship.md +11 -1
  21. package/{assets → dist/pstack}/docs/guide/07-overnight.md +10 -10
  22. package/dist/{assets → pstack}/docs/guide/09-make-it-yours.md +4 -4
  23. package/{assets → dist/pstack}/docs/guide/10-recipes-and-pitfalls.md +6 -4
  24. package/dist/pstack/docs/guide/images/design.jpg +0 -0
  25. package/dist/pstack/docs/guide/images/overnight.jpg +0 -0
  26. package/dist/pstack/docs/guide/images/recipes.jpg +0 -0
  27. package/dist/pstack/docs/guide/images/router.jpg +0 -0
  28. package/dist/pstack/docs/guide/images/understanding.jpg +0 -0
  29. package/dist/pstack/docs/guide/images/verification.jpg +0 -0
  30. package/dist/pstack/docs/harness/dsh.md +98 -0
  31. package/{assets → dist/pstack}/skills/architect/SKILL.md +5 -5
  32. package/dist/pstack/skills/arena/SKILL.md +50 -0
  33. package/{assets → dist/pstack}/skills/automate-me/SKILL.md +14 -13
  34. package/dist/{assets → pstack}/skills/benchmark-checklist/SKILL.md +1 -3
  35. package/dist/{assets → pstack}/skills/blast-radius/SKILL.md +1 -3
  36. package/{assets → dist/pstack}/skills/bro/SKILL.md +0 -2
  37. package/dist/{assets → pstack}/skills/correct/SKILL.md +1 -3
  38. package/{assets → dist/pstack}/skills/create-formal-verification-skill/SKILL.md +5 -3
  39. package/{assets → dist/pstack}/skills/create-verification-skill/SKILL.md +6 -6
  40. package/{assets → dist/pstack}/skills/figure-it-out/SKILL.md +4 -4
  41. package/dist/{assets → pstack}/skills/how/SKILL.md +4 -4
  42. package/{assets → dist/pstack}/skills/how/references/explainer-prompt.md +1 -1
  43. package/dist/pstack/skills/in-your-own-words/SKILL.md +7 -0
  44. package/dist/pstack/skills/interrogate/SKILL.md +33 -0
  45. package/{assets → dist/pstack}/skills/ketchup/SKILL.md +1 -3
  46. package/dist/pstack/skills/ketchup-video/SKILL.md +29 -0
  47. package/{assets → dist/pstack}/skills/maintain-formal-verification-skill/SKILL.md +2 -2
  48. package/dist/{assets → pstack}/skills/maintain-verification-skill/SKILL.md +3 -3
  49. package/dist/pstack/skills/make-bot-ui/SKILL.md +117 -0
  50. package/{assets → dist/pstack}/skills/no-comments/SKILL.md +4 -4
  51. package/{assets → dist/pstack}/skills/poteto-help/SKILL.md +21 -17
  52. package/dist/{assets → pstack}/skills/poteto-help/references/prompting.md +1 -1
  53. package/dist/{assets → pstack}/skills/poteto-help/references/recipes.md +3 -3
  54. package/{assets → dist/pstack}/skills/poteto-mode/SKILL.md +20 -21
  55. package/dist/{assets → pstack}/skills/poteto-mode/playbooks/authoring-a-skill.md +1 -1
  56. package/dist/{assets → pstack}/skills/poteto-mode/playbooks/autonomous-run.md +2 -2
  57. package/{assets → dist/pstack}/skills/poteto-mode/playbooks/autopilot-full.md +7 -7
  58. package/dist/pstack/skills/poteto-mode/playbooks/autopilot-stack.md +8 -0
  59. package/{assets → dist/pstack}/skills/poteto-mode/playbooks/babysit.md +3 -3
  60. package/{assets → dist/pstack}/skills/poteto-mode/playbooks/bug-fix.md +3 -3
  61. package/dist/{assets → pstack}/skills/poteto-mode/playbooks/eval.md +1 -1
  62. package/{assets → dist/pstack}/skills/poteto-mode/playbooks/feature.md +1 -1
  63. package/{assets → dist/pstack}/skills/poteto-mode/playbooks/hillclimb.md +1 -1
  64. package/{assets → dist/pstack}/skills/poteto-mode/playbooks/multi-phase-plan.md +13 -13
  65. package/dist/{assets → pstack}/skills/poteto-mode/playbooks/opening-a-pr.md +3 -3
  66. package/dist/pstack/skills/poteto-mode/playbooks/orchestrate.md +25 -0
  67. package/dist/{assets → pstack}/skills/poteto-mode/playbooks/perf-issue.md +2 -2
  68. package/{assets → dist/pstack}/skills/poteto-mode/playbooks/prototype.md +1 -1
  69. package/dist/{assets → pstack}/skills/poteto-mode/playbooks/refactoring.md +2 -2
  70. package/{assets → dist/pstack}/skills/poteto-mode/playbooks/runtime-forensics.md +1 -1
  71. package/{assets → dist/pstack}/skills/poteto-mode/playbooks/session-pickup.md +1 -1
  72. package/dist/{assets → pstack}/skills/poteto-mode/playbooks/shipping.md +2 -2
  73. package/{assets → dist/pstack}/skills/poteto-mode/playbooks/visual-parity.md +1 -1
  74. package/dist/{assets → pstack}/skills/poteto-mode/playbooks/worktree-cleanup.md +2 -2
  75. package/{assets → dist/pstack}/skills/poteto-mode/scripts/check-plan.mjs +83 -70
  76. package/dist/{assets/skills/poteto-mode/scripts/check-plan.test.ts → pstack/skills/poteto-mode/scripts/check-plan.test.mjs} +53 -21
  77. package/dist/pstack/skills/poteto-mode/scripts/expect.mjs +254 -0
  78. package/dist/pstack/skills/poteto-mode/scripts/support.mjs +93 -0
  79. package/dist/pstack/skills/poteto-mode/scripts/watch-pr/cli.mjs +123 -0
  80. package/dist/pstack/skills/poteto-mode/scripts/watch-pr/cli.test.mjs +217 -0
  81. package/dist/pstack/skills/poteto-mode/scripts/watch-pr/fakes.test-helper.mjs +119 -0
  82. package/dist/pstack/skills/poteto-mode/scripts/watch-pr/github.mjs +626 -0
  83. package/dist/pstack/skills/poteto-mode/scripts/watch-pr/github.test.mjs +521 -0
  84. package/dist/pstack/skills/poteto-mode/scripts/watch-pr/policy.mjs +657 -0
  85. package/dist/pstack/skills/poteto-mode/scripts/watch-pr/policy.test.mjs +523 -0
  86. package/dist/pstack/skills/poteto-mode/scripts/watch-pr/render.mjs +106 -0
  87. package/dist/pstack/skills/poteto-mode/scripts/watch-pr/types.mjs +9 -0
  88. package/dist/pstack/skills/poteto-mode/scripts/watch-pr/watch-pr.mjs +5 -0
  89. package/dist/pstack/skills/poteto-mode/scripts/worktree-audit.mjs +668 -0
  90. package/dist/pstack/skills/poteto-mode/scripts/worktree-audit.test.mjs +134 -0
  91. package/{assets → dist/pstack}/skills/principle-attack-the-premise/SKILL.md +1 -3
  92. package/{assets → dist/pstack}/skills/principle-boundary-discipline/SKILL.md +1 -3
  93. package/{assets → dist/pstack}/skills/principle-build-the-lever/SKILL.md +0 -3
  94. package/dist/pstack/skills/principle-encode-lessons-in-structure/SKILL.md +11 -0
  95. package/dist/pstack/skills/principle-exhaust-the-design-space/SKILL.md +9 -0
  96. package/{assets → dist/pstack}/skills/principle-experience-first/SKILL.md +1 -3
  97. package/dist/{assets → pstack}/skills/principle-explain-the-number/SKILL.md +3 -4
  98. package/dist/{assets → pstack}/skills/principle-fix-root-causes/SKILL.md +1 -3
  99. package/{assets → dist/pstack}/skills/principle-foundational-thinking/SKILL.md +0 -2
  100. package/dist/{assets → pstack}/skills/principle-guard-the-context-window/SKILL.md +0 -2
  101. package/dist/{assets → pstack}/skills/principle-laziness-protocol/SKILL.md +1 -3
  102. package/dist/{assets → pstack}/skills/principle-make-operations-idempotent/SKILL.md +1 -3
  103. package/dist/{assets → pstack}/skills/principle-migrate-callers-then-delete-legacy-apis/SKILL.md +1 -3
  104. package/{assets → dist/pstack}/skills/principle-minimize-reader-load/SKILL.md +1 -3
  105. package/{assets → dist/pstack}/skills/principle-model-the-domain/SKILL.md +1 -3
  106. package/{assets → dist/pstack}/skills/principle-never-block-on-the-human/SKILL.md +1 -3
  107. package/dist/{assets → pstack}/skills/principle-outcome-oriented-execution/SKILL.md +1 -3
  108. package/{assets → dist/pstack}/skills/principle-prove-it-works/SKILL.md +3 -3
  109. package/dist/{assets → pstack}/skills/principle-redesign-from-first-principles/SKILL.md +1 -3
  110. package/{assets → dist/pstack}/skills/principle-separate-before-serializing-shared-state/SKILL.md +1 -3
  111. package/dist/{assets → pstack}/skills/principle-sequence-verifiable-units/SKILL.md +1 -3
  112. package/dist/{assets → pstack}/skills/principle-subtract-before-you-add/SKILL.md +1 -3
  113. package/{assets → dist/pstack}/skills/principle-test-behavior-not-implementation/SKILL.md +1 -3
  114. package/{assets → dist/pstack}/skills/principle-type-system-discipline/SKILL.md +1 -3
  115. package/dist/{assets → pstack}/skills/recall/SKILL.md +4 -4
  116. package/dist/pstack/skills/reflect/SKILL.md +71 -0
  117. package/{assets → dist/pstack}/skills/reflect/references/divergent-reviewer.md +1 -1
  118. package/{assets → dist/pstack}/skills/reflect/references/judgment-reviewer.md +1 -1
  119. package/{assets → dist/pstack}/skills/reflect/references/synthesizer.md +3 -3
  120. package/dist/{assets → pstack}/skills/reflect/references/tooling-reviewer.md +1 -1
  121. package/dist/pstack/skills/setup-pstack/SKILL.md +80 -0
  122. package/{assets → dist/pstack}/skills/sharpen/SKILL.md +1 -3
  123. package/{assets → dist/pstack}/skills/show-me-your-work/SKILL.md +3 -3
  124. package/dist/pstack/skills/show-me-your-work/scripts/log.mjs +106 -0
  125. package/dist/pstack/skills/show-me-your-work/scripts/log.test.mjs +56 -0
  126. package/dist/pstack/skills/statechart/SKILL.md +82 -0
  127. package/dist/pstack/skills/statechart/references/render.md +93 -0
  128. package/dist/pstack/skills/statechart/scripts/backends/cfg.mjs +31 -0
  129. package/dist/pstack/skills/statechart/scripts/backends/mermaid.mjs +186 -0
  130. package/dist/pstack/skills/statechart/scripts/backends/plain-text.mjs +62 -0
  131. package/dist/pstack/skills/statechart/scripts/backends/report.mjs +84 -0
  132. package/dist/pstack/skills/statechart/scripts/frontends/config.mjs +268 -0
  133. package/dist/pstack/skills/statechart/scripts/frontends/dot.mjs +67 -0
  134. package/dist/pstack/skills/statechart/scripts/frontends/marks.mjs +94 -0
  135. package/dist/pstack/skills/statechart/scripts/frontends/messages.mjs +48 -0
  136. package/dist/pstack/skills/statechart/scripts/frontends/spec.mjs +101 -0
  137. package/dist/pstack/skills/statechart/scripts/frontends/trace.mjs +39 -0
  138. package/dist/pstack/skills/statechart/scripts/frontends/value.mjs +180 -0
  139. package/dist/pstack/skills/statechart/scripts/frontends/verdict.mjs +40 -0
  140. package/dist/pstack/skills/statechart/scripts/frontends/view.mjs +99 -0
  141. package/dist/pstack/skills/statechart/scripts/ir.mjs +277 -0
  142. package/dist/pstack/skills/statechart/scripts/passes/annotate.mjs +92 -0
  143. package/dist/pstack/skills/statechart/scripts/passes/label.mjs +210 -0
  144. package/dist/pstack/skills/statechart/scripts/passes/lift.mjs +84 -0
  145. package/dist/pstack/skills/statechart/scripts/passes/loop-check.mjs +47 -0
  146. package/dist/pstack/skills/statechart/scripts/passes/paths.mjs +72 -0
  147. package/dist/pstack/skills/statechart/scripts/passes/reach.mjs +135 -0
  148. package/dist/pstack/skills/statechart/scripts/passes/region-check.mjs +82 -0
  149. package/dist/pstack/skills/statechart/scripts/passes/regions.mjs +268 -0
  150. package/dist/pstack/skills/statechart/scripts/pipeline.mjs +72 -0
  151. package/dist/pstack/skills/statechart/scripts/run.mjs +440 -0
  152. package/dist/pstack/skills/statechart/scripts/statechart.mjs +155 -0
  153. package/dist/pstack/skills/statechart/scripts/statechart.test.mjs +198 -0
  154. package/dist/pstack/skills/statechart/scripts/worker.mjs +31 -0
  155. package/dist/pstack/skills/swarm/SKILL.md +43 -0
  156. package/{assets → dist/pstack}/skills/tdd/SKILL.md +1 -3
  157. package/{assets → dist/pstack}/skills/teach/SKILL.md +3 -3
  158. package/{assets → dist/pstack}/skills/technical-writing/SKILL.md +2 -2
  159. package/{assets → dist/pstack}/skills/typescript-best-practices/SKILL.md +1 -2
  160. package/{assets → dist/pstack}/skills/unslop/SKILL.md +0 -2
  161. package/dist/{assets → pstack}/skills/why/SKILL.md +9 -9
  162. package/dist/script.d.mts +91 -0
  163. package/dist/script.mjs +485 -0
  164. package/dist/skill.d.mts +38 -0
  165. package/dist/skill.mjs +183 -0
  166. package/dist/skills/authored/decision-audit/SKILL.md +99 -0
  167. package/dist/skills/authored/decision-audit/SKILL.zh.md +99 -0
  168. package/dist/skills/authored/decision-audit/references/recover-commit.md +17 -0
  169. package/dist/skills/authored/decision-audit/references/recover-commit.zh.md +17 -0
  170. package/dist/skills/authored/decision-write/SKILL.md +131 -0
  171. package/dist/skills/authored/decision-write/SKILL.zh.md +131 -0
  172. package/dist/skills/authored/decision-write/references/land.md +48 -0
  173. package/dist/skills/authored/decision-write/references/land.zh.md +48 -0
  174. package/dist/skills/authored/setup-project-docs/SKILL.md +58 -0
  175. package/dist/skills/authored/setup-project-docs/SKILL.zh.md +58 -0
  176. package/dist/skills/authored/setup-project-docs/references/decision-conventions.md +11 -0
  177. package/dist/skills/authored/setup-project-docs/references/decision-conventions.zh.md +11 -0
  178. package/dist/skills/vendored/retro/SKILL.md +44 -0
  179. package/dist/skills/vendored/retro/agents/openai.yaml +5 -0
  180. package/dist/skills/vendored/writing-for-agents/SKILL-MECHANICS.md +22 -0
  181. package/dist/skills/vendored/writing-for-agents/SKILL.md +81 -0
  182. package/dist/skills/vendored/writing-for-agents/agents/openai.yaml +3 -0
  183. package/dist/subagent.d.mts +175 -106
  184. package/dist/subagent.mjs +1012 -344
  185. package/locale/en.json +7 -0
  186. package/locale/zh.json +7 -0
  187. package/package.json +61 -50
  188. package/assets/agents/poteto-agent.md +0 -8
  189. package/assets/docs/guide/02-poteto-mode.md +0 -139
  190. package/assets/docs/guide/05-build-and-clean.md +0 -83
  191. package/assets/docs/guide/06-verify-and-ship.md +0 -152
  192. package/assets/docs/guide/09-make-it-yours.md +0 -100
  193. package/assets/docs/harness/dsh.md +0 -65
  194. package/assets/docs/pstack-models.example.md +0 -23
  195. package/assets/skills/arena/SKILL.md +0 -50
  196. package/assets/skills/benchmark-checklist/SKILL.md +0 -41
  197. package/assets/skills/blast-radius/SKILL.md +0 -52
  198. package/assets/skills/correct/SKILL.md +0 -34
  199. package/assets/skills/how/SKILL.md +0 -38
  200. package/assets/skills/in-your-own-words/SKILL.md +0 -9
  201. package/assets/skills/interrogate/SKILL.md +0 -69
  202. package/assets/skills/interrogate/references/code-quality-review.md +0 -47
  203. package/assets/skills/interrogate/references/lead-judgment.md +0 -39
  204. package/assets/skills/interrogate/references/reviewer-prompt.md +0 -62
  205. package/assets/skills/interrogate/references/rubric.md +0 -77
  206. package/assets/skills/maintain-verification-skill/SKILL.md +0 -41
  207. package/assets/skills/poteto-help/references/prompting.md +0 -51
  208. package/assets/skills/poteto-help/references/recipes.md +0 -51
  209. package/assets/skills/poteto-mode/playbooks/authoring-a-skill.md +0 -12
  210. package/assets/skills/poteto-mode/playbooks/autonomous-run.md +0 -13
  211. package/assets/skills/poteto-mode/playbooks/autopilot-stack.md +0 -12
  212. package/assets/skills/poteto-mode/playbooks/eval.md +0 -25
  213. package/assets/skills/poteto-mode/playbooks/opening-a-pr.md +0 -34
  214. package/assets/skills/poteto-mode/playbooks/orchestrate.md +0 -112
  215. package/assets/skills/poteto-mode/playbooks/perf-issue.md +0 -25
  216. package/assets/skills/poteto-mode/playbooks/refactoring.md +0 -16
  217. package/assets/skills/poteto-mode/playbooks/shipping.md +0 -12
  218. package/assets/skills/poteto-mode/playbooks/worktree-cleanup.md +0 -12
  219. package/assets/skills/poteto-mode/scripts/bootstrap.ts +0 -62
  220. package/assets/skills/poteto-mode/scripts/bun.lock +0 -67
  221. package/assets/skills/poteto-mode/scripts/check-plan.test.ts +0 -96
  222. package/assets/skills/poteto-mode/scripts/orch/orch.test.ts +0 -761
  223. package/assets/skills/poteto-mode/scripts/orch/orch.ts +0 -590
  224. package/assets/skills/poteto-mode/scripts/orch/store.ts +0 -1677
  225. package/assets/skills/poteto-mode/scripts/package.json +0 -16
  226. package/assets/skills/poteto-mode/scripts/watch-pr/cli.test.ts +0 -224
  227. package/assets/skills/poteto-mode/scripts/watch-pr/cli.ts +0 -223
  228. package/assets/skills/poteto-mode/scripts/watch-pr/fakes.test-helper.ts +0 -129
  229. package/assets/skills/poteto-mode/scripts/watch-pr/github.test.ts +0 -436
  230. package/assets/skills/poteto-mode/scripts/watch-pr/github.ts +0 -718
  231. package/assets/skills/poteto-mode/scripts/watch-pr/policy.test.ts +0 -420
  232. package/assets/skills/poteto-mode/scripts/watch-pr/policy.ts +0 -836
  233. package/assets/skills/poteto-mode/scripts/watch-pr/render.ts +0 -169
  234. package/assets/skills/poteto-mode/scripts/watch-pr/tsconfig.json +0 -13
  235. package/assets/skills/poteto-mode/scripts/watch-pr/types.compile.ts +0 -93
  236. package/assets/skills/poteto-mode/scripts/watch-pr/types.ts +0 -413
  237. package/assets/skills/poteto-mode/scripts/watch-pr/watch-pr +0 -6
  238. package/assets/skills/poteto-mode/scripts/worktree-audit.sh +0 -127
  239. package/assets/skills/principle-encode-lessons-in-structure/SKILL.md +0 -13
  240. package/assets/skills/principle-exhaust-the-design-space/SKILL.md +0 -11
  241. package/assets/skills/principle-explain-the-number/SKILL.md +0 -19
  242. package/assets/skills/principle-fix-root-causes/SKILL.md +0 -23
  243. package/assets/skills/principle-guard-the-context-window/SKILL.md +0 -14
  244. package/assets/skills/principle-laziness-protocol/SKILL.md +0 -12
  245. package/assets/skills/principle-make-operations-idempotent/SKILL.md +0 -24
  246. package/assets/skills/principle-migrate-callers-then-delete-legacy-apis/SKILL.md +0 -16
  247. package/assets/skills/principle-outcome-oriented-execution/SKILL.md +0 -23
  248. package/assets/skills/principle-redesign-from-first-principles/SKILL.md +0 -18
  249. package/assets/skills/principle-sequence-verifiable-units/SKILL.md +0 -19
  250. package/assets/skills/principle-subtract-before-you-add/SKILL.md +0 -20
  251. package/assets/skills/recall/SKILL.md +0 -37
  252. package/assets/skills/reflect/SKILL.md +0 -70
  253. package/assets/skills/reflect/references/tooling-reviewer.md +0 -48
  254. package/assets/skills/setup-pstack/SKILL.md +0 -76
  255. package/assets/skills/show-me-your-work/scripts/log.sh +0 -42
  256. package/assets/skills/swarm/SKILL.md +0 -41
  257. package/assets/skills/why/SKILL.md +0 -100
  258. package/dist/README.md +0 -159
  259. package/dist/assets/agents/comment-sicko.md +0 -32
  260. package/dist/assets/agents/poteto-agent.md +0 -8
  261. package/dist/assets/docs/guide/01-setup.md +0 -64
  262. package/dist/assets/docs/guide/03-understand.md +0 -79
  263. package/dist/assets/docs/guide/04-design.md +0 -133
  264. package/dist/assets/docs/guide/07-overnight.md +0 -122
  265. package/dist/assets/docs/guide/08-principles.md +0 -72
  266. package/dist/assets/docs/guide/10-recipes-and-pitfalls.md +0 -180
  267. package/dist/assets/docs/guide/README.md +0 -38
  268. package/dist/assets/docs/harness/dsh.md +0 -65
  269. package/dist/assets/docs/pstack-models.example.md +0 -23
  270. package/dist/assets/skills/architect/SKILL.md +0 -81
  271. package/dist/assets/skills/architect/references/design-red-flags.md +0 -57
  272. package/dist/assets/skills/architect/references/rationale-template.md +0 -35
  273. package/dist/assets/skills/architect/references/runner-prompt.md +0 -20
  274. package/dist/assets/skills/arena/SKILL.md +0 -50
  275. package/dist/assets/skills/automate-me/SKILL.md +0 -105
  276. package/dist/assets/skills/bro/SKILL.md +0 -9
  277. package/dist/assets/skills/create-formal-verification-skill/SKILL.md +0 -43
  278. package/dist/assets/skills/create-verification-skill/SKILL.md +0 -46
  279. package/dist/assets/skills/create-verification-skill/references/feature-map-example/README.md +0 -47
  280. package/dist/assets/skills/create-verification-skill/references/feature-map-example/create-note.md +0 -39
  281. package/dist/assets/skills/create-verification-skill/references/feature-map-example/search.md +0 -45
  282. package/dist/assets/skills/figure-it-out/SKILL.md +0 -54
  283. package/dist/assets/skills/how/references/explainer-prompt.md +0 -55
  284. package/dist/assets/skills/how/references/explorer-prompt.md +0 -35
  285. package/dist/assets/skills/in-your-own-words/SKILL.md +0 -9
  286. package/dist/assets/skills/interrogate/SKILL.md +0 -69
  287. package/dist/assets/skills/interrogate/references/code-quality-review.md +0 -47
  288. package/dist/assets/skills/interrogate/references/lead-judgment.md +0 -39
  289. package/dist/assets/skills/interrogate/references/reviewer-prompt.md +0 -62
  290. package/dist/assets/skills/interrogate/references/rubric.md +0 -77
  291. package/dist/assets/skills/ketchup/SKILL.md +0 -45
  292. package/dist/assets/skills/maintain-formal-verification-skill/SKILL.md +0 -60
  293. package/dist/assets/skills/no-comments/SKILL.md +0 -26
  294. package/dist/assets/skills/poteto-help/SKILL.md +0 -161
  295. package/dist/assets/skills/poteto-mode/SKILL.md +0 -153
  296. package/dist/assets/skills/poteto-mode/playbooks/autopilot-full.md +0 -25
  297. package/dist/assets/skills/poteto-mode/playbooks/autopilot-stack.md +0 -12
  298. package/dist/assets/skills/poteto-mode/playbooks/babysit.md +0 -23
  299. package/dist/assets/skills/poteto-mode/playbooks/bug-fix.md +0 -15
  300. package/dist/assets/skills/poteto-mode/playbooks/feature.md +0 -21
  301. package/dist/assets/skills/poteto-mode/playbooks/hillclimb.md +0 -21
  302. package/dist/assets/skills/poteto-mode/playbooks/investigation.md +0 -14
  303. package/dist/assets/skills/poteto-mode/playbooks/multi-phase-plan.md +0 -155
  304. package/dist/assets/skills/poteto-mode/playbooks/orchestrate.md +0 -112
  305. package/dist/assets/skills/poteto-mode/playbooks/pause-safely.md +0 -10
  306. package/dist/assets/skills/poteto-mode/playbooks/prototype.md +0 -14
  307. package/dist/assets/skills/poteto-mode/playbooks/runtime-forensics.md +0 -11
  308. package/dist/assets/skills/poteto-mode/playbooks/session-pickup.md +0 -11
  309. package/dist/assets/skills/poteto-mode/playbooks/trace-forensics.md +0 -14
  310. package/dist/assets/skills/poteto-mode/playbooks/visual-parity.md +0 -11
  311. package/dist/assets/skills/poteto-mode/references/bugbot-triage.md +0 -142
  312. package/dist/assets/skills/poteto-mode/scripts/bootstrap.ts +0 -62
  313. package/dist/assets/skills/poteto-mode/scripts/bun.lock +0 -67
  314. package/dist/assets/skills/poteto-mode/scripts/check-plan.mjs +0 -205
  315. package/dist/assets/skills/poteto-mode/scripts/orch/orch.test.ts +0 -761
  316. package/dist/assets/skills/poteto-mode/scripts/orch/orch.ts +0 -590
  317. package/dist/assets/skills/poteto-mode/scripts/orch/store.ts +0 -1677
  318. package/dist/assets/skills/poteto-mode/scripts/package.json +0 -16
  319. package/dist/assets/skills/poteto-mode/scripts/watch-pr/cli.test.ts +0 -224
  320. package/dist/assets/skills/poteto-mode/scripts/watch-pr/cli.ts +0 -223
  321. package/dist/assets/skills/poteto-mode/scripts/watch-pr/fakes.test-helper.ts +0 -129
  322. package/dist/assets/skills/poteto-mode/scripts/watch-pr/github.test.ts +0 -436
  323. package/dist/assets/skills/poteto-mode/scripts/watch-pr/github.ts +0 -718
  324. package/dist/assets/skills/poteto-mode/scripts/watch-pr/policy.test.ts +0 -420
  325. package/dist/assets/skills/poteto-mode/scripts/watch-pr/policy.ts +0 -836
  326. package/dist/assets/skills/poteto-mode/scripts/watch-pr/render.ts +0 -169
  327. package/dist/assets/skills/poteto-mode/scripts/watch-pr/tsconfig.json +0 -13
  328. package/dist/assets/skills/poteto-mode/scripts/watch-pr/types.compile.ts +0 -93
  329. package/dist/assets/skills/poteto-mode/scripts/watch-pr/types.ts +0 -413
  330. package/dist/assets/skills/poteto-mode/scripts/watch-pr/watch-pr +0 -6
  331. package/dist/assets/skills/poteto-mode/scripts/worktree-audit.sh +0 -127
  332. package/dist/assets/skills/principle-attack-the-premise/SKILL.md +0 -23
  333. package/dist/assets/skills/principle-boundary-discipline/SKILL.md +0 -36
  334. package/dist/assets/skills/principle-build-the-lever/SKILL.md +0 -26
  335. package/dist/assets/skills/principle-encode-lessons-in-structure/SKILL.md +0 -13
  336. package/dist/assets/skills/principle-exhaust-the-design-space/SKILL.md +0 -11
  337. package/dist/assets/skills/principle-experience-first/SKILL.md +0 -21
  338. package/dist/assets/skills/principle-foundational-thinking/SKILL.md +0 -23
  339. package/dist/assets/skills/principle-minimize-reader-load/SKILL.md +0 -20
  340. package/dist/assets/skills/principle-model-the-domain/SKILL.md +0 -26
  341. package/dist/assets/skills/principle-never-block-on-the-human/SKILL.md +0 -17
  342. package/dist/assets/skills/principle-prove-it-works/SKILL.md +0 -24
  343. package/dist/assets/skills/principle-separate-before-serializing-shared-state/SKILL.md +0 -18
  344. package/dist/assets/skills/principle-test-behavior-not-implementation/SKILL.md +0 -22
  345. package/dist/assets/skills/principle-type-system-discipline/SKILL.md +0 -15
  346. package/dist/assets/skills/reflect/SKILL.md +0 -70
  347. package/dist/assets/skills/reflect/references/divergent-reviewer.md +0 -38
  348. package/dist/assets/skills/reflect/references/judgment-reviewer.md +0 -37
  349. package/dist/assets/skills/reflect/references/synthesizer.md +0 -56
  350. package/dist/assets/skills/setup-pstack/SKILL.md +0 -76
  351. package/dist/assets/skills/sharpen/SKILL.md +0 -18
  352. package/dist/assets/skills/show-me-your-work/SKILL.md +0 -84
  353. package/dist/assets/skills/show-me-your-work/references/decision-log-template.tsv +0 -1
  354. package/dist/assets/skills/show-me-your-work/scripts/log.sh +0 -42
  355. package/dist/assets/skills/swarm/SKILL.md +0 -41
  356. package/dist/assets/skills/tdd/SKILL.md +0 -44
  357. package/dist/assets/skills/teach/SKILL.md +0 -23
  358. package/dist/assets/skills/technical-writing/SKILL.md +0 -108
  359. package/dist/assets/skills/typescript-best-practices/SKILL.md +0 -32
  360. package/dist/assets/skills/typescript-best-practices/references/patterns.md +0 -328
  361. package/dist/assets/skills/unslop/SKILL.md +0 -64
  362. package/dist/assets/skills/why/references/epistemics.md +0 -71
  363. package/dist/assets/skills/why/references/investigator-prompt.md +0 -84
  364. package/dist/assets/skills/why/references/source-playbook.md +0 -17
  365. package/dist/assets/skills/why/references/sources/code-archaeology.md +0 -51
  366. package/dist/assets/skills/why/references/sources/databricks.md +0 -70
  367. package/dist/assets/skills/why/references/sources/datadog.md +0 -97
  368. package/dist/assets/skills/why/references/sources/incident-postmortem.md +0 -5
  369. package/dist/assets/skills/why/references/sources/linear.md +0 -48
  370. package/dist/assets/skills/why/references/sources/notion.md +0 -55
  371. package/dist/assets/skills/why/references/sources/sentry.md +0 -66
  372. package/dist/assets/skills/why/references/sources/slack.md +0 -17
  373. package/dist/assets/skills/why/references/synthesizer-prompt.md +0 -129
  374. package/dist/cordis.patch.yml +0 -20
  375. package/dist/index.mjs.map +0 -1
  376. package/dist/paths-Bbai4CaT.mjs +0 -16
  377. package/dist/paths-Bbai4CaT.mjs.map +0 -1
  378. package/dist/subagent.mjs.map +0 -1
  379. /package/{assets → dist/pstack}/docs/guide/03-understand.md +0 -0
  380. /package/{assets → dist/pstack}/docs/guide/08-principles.md +0 -0
  381. /package/{assets → dist/pstack}/docs/guide/README.md +0 -0
  382. /package/{assets → dist/pstack}/skills/architect/references/design-red-flags.md +0 -0
  383. /package/{assets → dist/pstack}/skills/architect/references/rationale-template.md +0 -0
  384. /package/{assets → dist/pstack}/skills/architect/references/runner-prompt.md +0 -0
  385. /package/{assets → dist/pstack}/skills/create-verification-skill/references/feature-map-example/README.md +0 -0
  386. /package/{assets → dist/pstack}/skills/create-verification-skill/references/feature-map-example/create-note.md +0 -0
  387. /package/{assets → dist/pstack}/skills/create-verification-skill/references/feature-map-example/search.md +0 -0
  388. /package/{assets → dist/pstack}/skills/how/references/explorer-prompt.md +0 -0
  389. /package/{assets → dist/pstack}/skills/poteto-mode/playbooks/investigation.md +0 -0
  390. /package/{assets → dist/pstack}/skills/poteto-mode/playbooks/pause-safely.md +0 -0
  391. /package/{assets → dist/pstack}/skills/poteto-mode/playbooks/trace-forensics.md +0 -0
  392. /package/{assets → dist/pstack}/skills/poteto-mode/references/bugbot-triage.md +0 -0
  393. /package/{assets → dist/pstack}/skills/show-me-your-work/references/decision-log-template.tsv +0 -0
  394. /package/{assets → dist/pstack}/skills/typescript-best-practices/references/patterns.md +0 -0
  395. /package/{assets → dist/pstack}/skills/why/references/epistemics.md +0 -0
  396. /package/{assets → dist/pstack}/skills/why/references/investigator-prompt.md +0 -0
  397. /package/{assets → dist/pstack}/skills/why/references/source-playbook.md +0 -0
  398. /package/{assets → dist/pstack}/skills/why/references/sources/code-archaeology.md +0 -0
  399. /package/{assets → dist/pstack}/skills/why/references/sources/databricks.md +0 -0
  400. /package/{assets → dist/pstack}/skills/why/references/sources/datadog.md +0 -0
  401. /package/{assets → dist/pstack}/skills/why/references/sources/incident-postmortem.md +0 -0
  402. /package/{assets → dist/pstack}/skills/why/references/sources/linear.md +0 -0
  403. /package/{assets → dist/pstack}/skills/why/references/sources/notion.md +0 -0
  404. /package/{assets → dist/pstack}/skills/why/references/sources/sentry.md +0 -0
  405. /package/{assets → dist/pstack}/skills/why/references/sources/slack.md +0 -0
  406. /package/{assets → dist/pstack}/skills/why/references/synthesizer-prompt.md +0 -0
@@ -1,70 +0,0 @@
1
- # Databricks Analytics & System Tables
2
-
3
- ## What this source contains
4
-
5
- Databricks is the product-analytics, data-pipeline, and warehouse-telemetry layer. It complements Datadog. Datadog is the *infra/runtime* view, Databricks is the *product/data* view (what users did, which experiments ran, how feature usage evolved, where a threshold constant came from).
6
-
7
- - **Product analytics events.** `your_warehouse.events.analytics_track_event` (raw) and typed, deduplicated per-event dbt models in `<your_analytics_db>.<schema>.<table>`. User behavior: feature invocations, clicks, accepts/rejects, submissions, client-reported errors.
8
- - **Usage & billing events.** `your_warehouse.events.usage_event` / `<your_analytics_db>.<schema>.stg_usage_events`, `your_warehouse.events.raw_model_event` / `<your_analytics_db>.<schema>.stg_raw_model_events`. For cost- or volume-driven decisions.
9
- - **Experiment / feature-flag data.** Exposure and outcome tables. **Schema is company-specific.** Probe with `SHOW TABLES` before assuming names.
10
- - **System tables.** `system.query.history`, `system.compute.warehouses`, `system.billing.*`, `system.access.audit`. Answer "was this query expensive?", "how often did anyone run this?", "when did warehouse load spike?"
11
- - **dbt lineage.** Models in `<your_analytics_db>.<schema>` reveal what pipelines depend on a table/field. Upstream changes frequently motivate consumer-code changes.
12
- - **Databricks notebooks.** Exploratory analyses engineers wrote before code changes. **Not queryable via the SQL MCP.** If you suspect the rationale lives in a notebook, name it as a gap.
13
-
14
- ## How to search it
15
-
16
- Use the Databricks SQL MCP. Primary tool: `execute_sql_read_only`. If it returns a `statement_id`, poll with `poll_sql_result` rather than re-running.
17
-
18
- **Orient before querying.** Schemas are company-specific. Probe before trusting a table name:
19
-
20
- ```sql
21
- SHOW TABLES IN <your_analytics_db>.<schema> LIKE '*<keyword>*';
22
- DESCRIBE TABLE <your_analytics_db>.<schema>.stg_<event>;
23
- ```
24
-
25
- **Time-bound every query.** These tables are huge and unconstrained scans time out. Filter on `_timestamp` (events) or `start_time` (`system.query.history`) with a window bracketing the ship date, typically ~30 days before and after, wider only for strong reason.
26
-
27
- **Prefer typed dbt models over the raw table.** `<your_analytics_db>.<schema>.<table>` is deduplicated, typed, and liquid-clustered. `your_warehouse.events.analytics_track_event` has duplicates and untyped `properties_json`. Model-name pattern: `stg_<source>_<event_name_with_underscores>`, where `<source>` is `app`, `backend`, `website`, or `cli`. Confirm the exact model name with `SHOW TABLES` when the pattern alone doesn't resolve it. Drop to the raw table only when there's no dbt model yet, or you need events from inside the dbt refresh lag.
28
-
29
- **Column conventions on the typed dbt models** (knowing these avoids a `DESCRIBE` round-trip):
30
-
31
- - `_timestamp`, `_id`, `_auth_id`, `_request_id`, `event_name`. Standard on every model
32
- - `properties_<name>`. Typed, underscore-cased event properties (`properties_entrypoint`, `properties_size_bytes`, …)
33
- - `context_team_id`, `context_client_version`, `context_country`, `context_client_os`. Pre-extracted client context
34
-
35
- ### Investigation patterns that tend to pay off
36
-
37
- Pick the table + column combination that matches the target:
38
-
39
- 1. **Event usage trajectory.** Daily counts on the relevant `stg_*` model across a ±30d window around the PR merge. A step function from zero to steady volume within a day or two of the merge is strong circumstantial evidence the PR launched the feature. A decay to zero suggests a deprecation or deletion.
40
- 2. **Guard-rail / defensive-check origin.** Distribution (median / p99 / max) of the relevant `properties_<name>` column in the 14 days *before* the PR. A p99 that matches the target's threshold constant suggests the number was chosen from data.
41
- 3. **Experiment / feature-flag lookup.** `SHOW TABLES ... LIKE '*experiment*'` to find the exposure table, then pull exposure counts by variant for the relevant flag key near the PR date.
42
- 4. **Query-history evidence for migrations, backfills, or perf rewrites.** `system.query.history` filtered by `statement_text ILIKE '%<table_or_symbol>%'` with a tight `start_time` window surfaces the expensive queries that likely motivated the change (sort by `total_duration_ms` or aggregate `SUM(read_bytes)`, `COUNT(*)`).
43
- 5. **dbt lineage.** If the target reads from or writes into a `<your_analytics_db>.<schema>` model, the model's own git history (in this repo) often carries the rationale. Hand that lead back to the git investigator rather than chasing it yourself.
44
-
45
- ## What good evidence looks like here
46
-
47
- Beyond the pattern shapes above:
48
-
49
- - An error-classifying event's count drops to near zero in the days after a defensive-code PR. Suggests the PR resolved that error class
50
- - An exposure table row names the target's feature-flag key with a "shipped" / "concluded" decision around the PR ship date
51
-
52
- ## Common pitfalls
53
-
54
- - **Instrumented ≠ caused.** An event's existence means someone cared enough to log it, not that the target code exists *because* of it. Pair with a PR/commit citation from the git investigator before claiming causation.
55
- - **Silent instrumentation changes.** A step function in event volume may mean a new event started being logged, not that user behavior changed. Check for instrumentation PRs in the same window before reading the ramp as a feature-launch signal.
56
- - **Schema drift.** Event properties evolve. A column on the typed dbt model today may not have existed when the target was written. Older data may carry the property only inside raw `properties_json`.
57
- - **dbt refresh lag.** `<your_analytics_db>.<schema>.*` is rebuilt on a schedule (often hourly/daily). For events from the last few hours, fall back to `your_warehouse.events.*` and deduplicate by `_id`.
58
- - **Company-specific tables.** Experiment, feature-flag, billing, and usage tables vary. Reporting a result from a table whose existence you never confirmed is a classic failure mode. Probe with `SHOW TABLES` / `DESCRIBE TABLE` first.
59
- - **Retention cliff.** If the relevant window predates the table's retention or the dbt model's creation date, that's a *gap*, not a null result. Name it explicitly so the synthesizer doesn't read "no results" as "no activity."
60
- - **Notebooks aren't queryable.** The SQL MCP can't see Databricks notebooks. If you suspect the rationale lives in one, return a gap.
61
-
62
- ## What to return
63
-
64
- For each relevant finding:
65
- - Type (product event / experiment exposure / usage or billing event / system-table row / dbt model)
66
- - Fully-qualified table name and the exact query you ran
67
- - Time window queried
68
- - Compact numeric summary (counts, percentiles, first/last-seen timestamps). **Don't dump raw rows.**
69
- - Temporal correlation with the target's ship date (e.g., "first row 2024-08-15, PR #49074 merged 2024-08-14")
70
- - Relevance + strength: direct / circumstantial / weak
@@ -1,97 +0,0 @@
1
- # Datadog Telemetry
2
-
3
- ## What this source contains
4
-
5
- Datadog holds the runtime record, what actually happened in production, as opposed to what was planned or discussed.
6
-
7
- - **Metrics.** Counters, gauges, histograms instrumented by the team. A metric's *presence* is itself evidence that someone thought the number worth watching.
8
- - **Monitors & alerts.** Conditions the team decided warranted waking someone up. A monitor firing on `rate_limit_hit > 10/min` is direct evidence the team worried about that threshold.
9
- - **Dashboards.** Curated views of what the team considers important for a subsystem.
10
- - **APM traces & spans.** Request-level runtime data, for "why is this slow" / "why is there a timeout here" questions.
11
- - **Logs.** High-volume event records, often holding the error conditions that motivated defensive code.
12
- - **Incidents.** Formal incident records with timelines and linked postmortems.
13
- - **Notebooks.** The team's exploratory investigations, often with hypotheses and analyses.
14
-
15
- ## How to search it
16
-
17
- Use the Datadog MCP. Start broad, then narrow.
18
-
19
- 1. **Identify the owning service(s).**
20
-
21
- ```
22
- search_datadog_services (filter by name or team)
23
- search_datadog_service_dependencies (see upstream/downstream)
24
- ```
25
-
26
- 2. **Dashboards and monitors first.**
27
-
28
- ```
29
- search_datadog_dashboards (query: feature name, service name, symbol)
30
- search_datadog_monitors (same queries)
31
- ```
32
-
33
- When a dashboard or monitor covers the target, note its queries and watched thresholds. The threshold is frequently the answer to "why is this clamped at N?"
34
-
35
- 3. **Metrics around the target.**
36
-
37
- ```
38
- search_datadog_metrics (by name pattern, e.g., the feature or symbol)
39
- get_datadog_metric_context (metadata: description, units, tags)
40
- get_datadog_metric (timeseries; "was there a spike around the PR date?")
41
- ```
42
-
43
- Correlating a metric's trajectory with the target's add/change date is strong supporting evidence: "the `payment_timeout` metric spiked 2023-11-03, and the retry logic merged 2023-11-06."
44
-
45
- 4. **Logs. Narrow, don't dump.**
46
-
47
- ```
48
- search_datadog_logs (raw log patterns near the target, set use_log_patterns=true)
49
- analyze_datadog_logs (SQL-style aggregations, only when you need counts)
50
- ```
51
-
52
- Search with symbols, error strings, or feature names. **Strongly prefer time-bounded queries** (e.g., 30 days before/after the change).
53
-
54
- 5. **APM spans and traces.**
55
-
56
- ```
57
- aggregate_spans (stats: "how often does this endpoint fail?")
58
- search_datadog_spans (inspect individual spans)
59
- get_datadog_trace (a specific trace ID)
60
- ```
61
-
62
- Useful for timeouts, retries, slow paths, and cross-service behavior.
63
-
64
- 6. **Incidents.**
65
-
66
- ```
67
- search_datadog_incidents (by title, team, date range)
68
- get_datadog_incident (full detail for a specific incident)
69
- ```
70
-
71
- If the target looks defensive, search for incidents around the time it was added. An incident whose timeline includes "added defensive check for X" is near-direct evidence.
72
-
73
- ## What good evidence looks like here
74
-
75
- - A monitor whose query and threshold match the constraint the code enforces (code clamps to 100, monitor alerts when requests exceed 100/min)
76
- - A dashboard created by the target's author, with widgets that correspond to what the code measures or guards against
77
- - A metric showing a production spike immediately before the code was merged, and stable values after
78
- - An incident record referencing the target code, the same symbols, or the same error strings
79
- - Logs showing a specific error pattern the defensive code would prevent, timestamped in the window before the change
80
-
81
- ## Common pitfalls
82
-
83
- - **Correlation is not causation.** A spike before a PR and stabilization after is suggestive, not definitive, since other changes may have landed in the same window. Check neighboring PRs.
84
- - **Overfitting to the chart you found.** A chart reflects its maker's framing. A chart named "retry success rate" is evidence the team cared about retry success, not that it's why a specific line of code exists.
85
- - **Vanished telemetry.** Metrics can be renamed, deleted, or have short retention. If you can't find data from the relevant window, that's a gap, not a null result.
86
- - **Noise at scale.** Narrow log searches by service, tag, and time window aggressively. Use `analyze_datadog_logs` to aggregate rather than dumping raw logs.
87
- - **Instrumented != caused.** A metric shows someone cared enough to measure something, not that the code was added *because* of it. Cross-reference with commit/PR dates.
88
-
89
- ## What to return
90
-
91
- For each relevant item:
92
- - Type (dashboard / monitor / metric / log pattern / trace / incident / notebook)
93
- - Title or name
94
- - Link or identifier (dashboard ID, monitor ID, metric name, incident ID)
95
- - Owner/author and created/modified date
96
- - The specific condition, query, or quote that bears on the question (verbatim where possible)
97
- - Relevance: what this suggests about the target code, and how strong the connection is
@@ -1,5 +0,0 @@
1
- # Incident & Postmortem Context
2
-
3
- - **Linear**: look for tickets labeled `incident`, `sev-*`, `postmortem-action-item`, `reliability`
4
- - **Slack**: search `#sev-*` and `#incident-*` channels around the dates the target code was added
5
- - **Git**: commits with messages like "fix for incident", "add defensive check", "revert" followed by "re-apply with..." are strong signals
@@ -1,48 +0,0 @@
1
- # Linear Tickets
2
-
3
- ## What this source contains
4
-
5
- - Issues describing features, bugs, and their motivation
6
- - Project docs attached to issues (often PRDs or specs)
7
- - Parent/sub-issue relationships (broader initiative → specific tickets)
8
- - Comments on issues (clarifications, scope changes, "why we're doing this" rationale)
9
- - Labels (e.g., `compliance`, `customer-request`, `perf`) that signal the type of motivation
10
- - Status updates that explain scope changes
11
- - Attachments and linked GitHub PRs
12
-
13
- Linear is where the product/business context often lives: the "we're doing this because customer X asked" or "this is for the Q3 compliance initiative" layer.
14
-
15
- ## How to search it
16
-
17
- Use the Linear MCP.
18
-
19
- 1. **Start with linked tickets.** If the seed commits or PRs reference ticket IDs (e.g., `ENG-1234`, `[BUG-567]`), fetch those first with `get_issue`. Read the full issue including comments.
20
- 2. **List related issues by keyword.** Use `list_issues` with text search for the feature name, key symbol, or business term. Try multiple phrasings.
21
- 3. **Walk the issue tree.** If you land on a sub-issue, fetch its parent. Sub-issues are tactical. Parents often carry the "why."
22
- 4. **Read project docs.** If the issue belongs to a project, use `get_project` and check attached docs. Project-level documents are where specs and rationale are most often captured.
23
- 5. **Check labels and milestones.** Labels hint at the category of motivation (customer-request, incident-followup, compliance). Milestones tie work to deadlines, which often reveal motivation.
24
-
25
- ## What good evidence looks like here
26
-
27
- - An issue description stating the business problem: "Customer Acme needs X because of their SOC2 audit"
28
- - A comment recording a decision: "We decided to go with approach B because approach A would require touching the billing service"
29
- - A parent issue titled like an initiative: "Q3 Enterprise Readiness" or "Reduce Payment Failures"
30
- - An attached PRD or spec
31
- - Labels like `customer:acme`, `incident-followup`, `compliance`, `perf-regression`
32
-
33
- ## Common pitfalls
34
-
35
- - **Scope drift.** The ticket the PR references may have been closed and reopened with a different scope. Read the whole history.
36
- - **Mechanical templates.** Some teams require "Why" sections but fill them with boilerplate. Generic text ("improve user experience") is probably not a real answer.
37
- - **Stale tickets.** Old tickets often reflect a version of the plan that changed. Check dates and cross-reference with the code's ship date.
38
- - **Closed-as-duplicate chains.** Follow the duplicate-of relationships back to the canonical ticket.
39
- - **Private workspace content.** If you can't access an issue, note that as a gap rather than guessing.
40
-
41
- ## What to return
42
-
43
- For each relevant ticket:
44
- - Ticket ID and title
45
- - The problem/motivation quoted from the description or comments (not paraphrased. The synthesizer needs the exact text to cite)
46
- - Labels, parent issue, project
47
- - Author, created date, closed date
48
- - Link to the ticket if available
@@ -1,55 +0,0 @@
1
- # Notion Docs
2
-
3
- ## What this source contains
4
-
5
- - PRDs (product requirement documents)
6
- - Technical specs and RFCs
7
- - Architectural decision records (ADRs)
8
- - Meeting notes from design reviews
9
- - Team pages with domain context
10
- - Postmortems from incidents
11
- - Runbooks that may explain defensive code
12
- - Strategy documents that set priorities
13
-
14
- Notion is where "why" often lives in long-form before it becomes code. A significant feature usually has a doc.
15
-
16
- ## How to search it
17
-
18
- Use the Notion MCP.
19
-
20
- 1. **Keyword searches with `notion-search`.** Try:
21
- - The feature name
22
- - Key symbols / class names from the target code
23
- - Author handles (design docs are often authored before the code lands)
24
- - Error strings or user-visible terms
25
- - Time-bounded queries if you know when the code shipped
26
- 2. **Fetch candidate pages with `notion-fetch`.** Read the full content, not the preview. Rationale is often buried mid-document.
27
- 3. **Follow backlinks and child pages.** Design docs often have sub-pages for alternatives considered, appendices, or implementation notes.
28
- 4. **Check related databases.** `notion-query-data-sources` and `notion-query-meeting-notes` can surface meeting notes that discussed the decision.
29
- 5. **Search author-specific spaces.** If the PR author has a personal notebook (common at some companies), it may hold exploratory thinking that preceded the code.
30
-
31
- ## What good evidence looks like here
32
-
33
- - A PRD with a "Problem statement" or "Motivation" section that matches the target code's purpose
34
- - An "Alternatives considered" or "Rejected approaches" section
35
- - A postmortem that names the target code as the fix for a specific incident
36
- - Meeting notes that record "we decided X because Y" and tie to the same author/date range as the PR
37
- - An ADR template filled out non-trivially (status, context, decision, consequences)
38
-
39
- ## Common pitfalls
40
-
41
- - **Outdated docs.** Specs are often written before implementation and not updated. The doc may describe a plan that changed. Cross-check against the actual PR.
42
- - **Doc vs. reality drift.** A spec may say "we'll do X" but the code actually does Y. Flag the divergence. The synthesizer will surface the contradiction.
43
- - **Boilerplate templates.** Some orgs require a "Why" section that gets filled with fluff. Look for specificity.
44
- - **Unlinked docs.** The most relevant doc may not be linked from anywhere. Broad keyword searches help.
45
- - **Multiple drafts.** If a topic has multiple docs, find the one that was finalized or most recently updated. Check dates.
46
- - **Access-restricted pages.** If you can't access a page, note it as a gap.
47
-
48
- ## What to return
49
-
50
- For each relevant doc:
51
- - Title and URL
52
- - Authors and last-updated date
53
- - The motivation text (verbatim quote), with page/section location
54
- - Relevant linked pages (so the synthesizer can cite them)
55
- - Whether the doc was finalized or draft
@@ -1,66 +0,0 @@
1
- # Sentry Error History
2
-
3
- ## How to search it
4
-
5
- Use the Sentry MCP.
6
-
7
- 1. **Orient.** If you don't know the project slug and organization:
8
-
9
- ```
10
- find_organizations
11
- find_projects
12
- ```
13
-
14
- 2. **Search for issues related to the target.**
15
-
16
- ```
17
- search_issues (natural language, e.g., "errors in PaymentService timeout", "unhandled exceptions in uploadFile")
18
- ```
19
-
20
- Build queries from the exception class names the target handles, its function or class name, the error message strings it checks for, and its file path.
21
-
22
- 3. **Narrow by release and time window.**
23
-
24
- ```
25
- search_issue_events (filter by release, time, environment, trace ID, tags)
26
- get_issue_tag_values (for an issue, see distribution across versions, users, environments)
27
- ```
28
-
29
- For a suspected issue, check **first seen** and **last seen** (does the stop line up with the target's ship date?), the **affected releases** (which saw it, and which was the fix?), and the **frequency trajectory** (did it spike, then get resolved?).
30
-
31
- 4. **Pull the full event for context.**
32
-
33
- ```
34
- get_sentry_resource (pass a Sentry URL or type+ID)
35
- ```
36
-
37
- Does the stack trace pass through the target code? Do the tags and breadcrumbs match the conditions the target defends against?
38
-
39
- 5. **Check releases that landed near the target.**
40
-
41
- ```
42
- find_releases (around the commit date of the target)
43
- ```
44
-
45
- Cross-reference release version with the PR's merge date.
46
-
47
- 6. **Use Seer sparingly.**
48
-
49
- ```
50
- analyze_issue_with_seer
51
- ```
52
-
53
- Seer's AI root-cause analyses are a hypothesis generator. Treat them as inference, not authoritative. The actual events and stack traces are the primary evidence.
54
-
55
- ## What to return
56
-
57
- For each relevant issue:
58
- - Issue ID and title
59
- - Project and organization
60
- - First seen / last seen timestamps
61
- - Event count (and sampling rate if known)
62
- - Affected releases
63
- - A representative stack trace snippet showing relevance to the target (verbatim excerpt, not summary)
64
- - First/last-seen correlation with the target's ship date
65
- - Link to the issue
66
- - Any author comments or resolution notes
@@ -1,17 +0,0 @@
1
- # Slack Conversations
2
-
3
- ## How to search it
4
-
5
- Slack MCP tools vary. Check which Slack MCP is available and inspect its tool schema first. It may require `mcp_auth`. If authentication fails, stop and report the gap.
6
-
7
- 1. **Author-bounded search.** Messages from the PR author around the PR merge date. Limits scope dramatically and often hits gold.
8
- 3. **PR URL search.** Slack often links PRs when they're reviewed or discussed. Search for the PR URL (or just `/pull/<number>`).
9
- 4. **Error string search.** If the code handles a specific error, search for the error string. Incident threads often surface.
10
-
11
- ## Common pitfalls
12
-
13
- - **Channel archaeology limits.** Very old messages may be gone due to retention policies. If you can't find anything before a certain date, note the retention cliff.
14
- - **Unsearched DMs.** Many decisions happen in DMs that aren't searchable. You'll miss them. That's a known limitation.
15
- - **Speculative jokes as "decisions."** Slack is casual. "Lol just do the thing" isn't a decision, even if it preceded the commit. Look for considered discussion.
16
- - **Context collapse in single messages.** Without the thread, a single message often reads differently than in context. Always fetch threads.
17
- - **Auth failures.** If the MCP isn't authenticated, stop. Don't make up findings. Report that Slack wasn't searchable.
@@ -1,129 +0,0 @@
1
- # Synthesizer Prompt Template
2
-
3
- Fill in the placeholders.
4
-
5
- ---
6
-
7
- You are answering a "why" question about a piece of code by synthesizing findings from investigators who searched different historical sources (source control, issue / ticket tracker, long-form documents, real-time team chat, infrastructure observability, error / exception tracking, product analytics warehouse, and code comments). Produce a confidence-weighted, evidence-cited narrative that says honestly what the evidence supports, and just as honestly what it doesn't.
8
-
9
- ## The Question
10
-
11
- > {QUESTION}
12
-
13
- ## The Code Anchor
14
-
15
- **Target files:** {FILES_WITH_LINE_RANGES}
16
-
17
- **Key symbols:** {SYMBOLS}
18
-
19
- ## Investigator Findings
20
-
21
- {ALL_INVESTIGATOR_FINDINGS}
22
-
23
- ## Sources That Weren't Searched
24
-
25
- {SKIPPED_SOURCES_WITH_REASONS}
26
-
27
- ## Epistemics Framework
28
-
29
- You MUST follow `references/epistemics.md`. Read it in full before writing. The key rules:
30
-
31
- 1. Every claim must sit in one tier: **Direct**, **Supported**, **Inferred**, **Speculative**, **Unknown**. The tier sets its section and its phrasing.
32
- 2. Every Direct/Supported claim must have a citation (PR #, ticket ID, doc URL, chat permalink, commit hash, or file:line).
33
- 3. Inferred and Speculative claims must use hedged language ("appears to", "likely", "suggests", "one possibility is").
34
- 4. Never cite code as evidence for its own intent.
35
- 5. Document gaps. Don't fill them with plausible-sounding guesses.
36
- 6. Treat a hypothesis embedded in the user's question as a candidate, not a conclusion. Check it independently.
37
-
38
- ## Instructions
39
-
40
- 1. **Read all investigator findings** and weigh the evidence yourself. Investigators gathered raw evidence, not conclusions.
41
- 2. **Merge overlaps.** When several investigators cite the same PR, ticket, or doc, give it one authoritative reference.
42
- 3. **Surface contradictions.** When two items disagree, show both. Don't pick one.
43
- 4. **Calibrate each claim.** Find its evidence and tier. Direct: cite it and state it plainly. Inferred: hedge it and show the inference. Speculative: mark it. No evidence: put it in the gaps.
44
- 5. **Verify citations by spot-checking.** If you're uncertain a cited item exists or says what the investigator claims, check it by reading the codebase or calling MCP tools. Don't propagate errors. Do not write files, commit, or modify external state.
45
- 6. **Don't overreach.** The user will act on this. Leave an open question open rather than fill it with a confident guess.
46
-
47
- ## Output Format
48
-
49
- Write for the user, in this exact structure:
50
-
51
- ---
52
-
53
- ### The Question
54
-
55
- Restate the user's question in one or two sentences.
56
-
57
- ### The Code in Question
58
-
59
- File paths, line ranges, key symbols. Two or three lines to orient a cold reader.
60
-
61
- ### What We Found
62
-
63
- Claims with textual evidence, each quoted or paraphrased and cited precisely:
64
-
65
- - **[Direct]** {Claim}. Source: [PR #123](url) / ticket ID / file:line. {Brief quote or paraphrase.}
66
- - **[Supported]** {Claim}. Evidence: {list of items and what each contributes}.
67
-
68
- `[Direct]` is single-source, explicit evidence. `[Supported]` is multiple indirect items converging on a conclusion.
69
-
70
- ### What We Can Reasonably Infer
71
-
72
- Claims stated nowhere but well-supported by indirect evidence. Each bullet must make the inference chain visible ("Given A and B, it's likely that C") and must use hedged language ("appears to", "likely", "suggests", "is consistent with"):
73
-
74
- - **[Inferred]** {Hedged claim}. Reasoning: {the specific evidence and the inference step}.
75
-
76
- Skip this section if there's nothing to infer.
77
-
78
- ### Competing Hypotheses
79
-
80
- If the evidence fits multiple stories, present each. Don't force a winner the record doesn't support. For each hypothesis:
81
-
82
- - **Hypothesis:** {one-sentence statement}
83
- - **Evidence for:** {specific items}
84
- - **Evidence against or missing:** {what would need to be true but isn't, or what counter-signals exist}
85
-
86
- Skip this section if there's a single clear answer.
87
-
88
- ### What We Don't Know
89
-
90
- Specific gaps: "We searched the issue tracker for [query1], [query2], [query3] and found no issue discussing the rate-limit threshold", not "We don't know why." Include:
91
-
92
- - Questions that went unanswered
93
- - Searches that returned nothing
94
- - Sources that were unavailable, and why (such as a missing real-time team chat MCP)
95
- - People who would likely know but whom you can't ask
96
-
97
- ### Sources Consulted
98
-
99
- What was actually searched, so the user can judge coverage and redirect:
100
-
101
- - **Source control history**: {file paths}, {number of commits reviewed}, PRs #{numbers}, and code comments searched. Or "Not searched. This should not happen because git and `gh` are always expected."
102
- - **Issue / ticket tracker**: {ticket IDs and keyword searches}. Or "Not searched. No matching MCP available in this environment."
103
- - **Long-form documents**: {page titles and search queries}. Or "Not searched. No matching MCP available in this environment."
104
- - **Real-time team chat**: {channels searched, date ranges, queries}. Or "Not searched. No matching MCP available in this environment."
105
- - **Infrastructure observability**: {dashboards, monitors, metrics, logs, traces, or incidents searched}. Or "Not searched. No matching MCP available in this environment."
106
- - **Error / exception tracking**: {issues, events, or releases searched}. Or "Not searched. No matching MCP available in this environment."
107
- - **Product analytics warehouse**: {fully-qualified tables queried, the time windows, and the numeric summaries (counts, percentiles, first/last-seen timestamps) that bore on the question}. Or "Not searched. No matching MCP available in this environment."
108
-
109
- ### Confidence Summary
110
-
111
- One or two sentences on overall confidence, e.g.:
112
-
113
- > "The core rationale (A) is well-supported by direct PR and ticket evidence. The specific threshold value (100) is inferred from the surrounding context but not explicitly documented. The question of whether this was driven by a customer request could not be answered. No relevant issue tracker or long-form doc content surfaced, and real-time team chat search was unavailable."
114
-
115
- ---
116
-
117
- ## Quality Check Before Returning
118
-
119
- Revise if any item fails:
120
-
121
- 1. Does every claim in "What We Found" have a citation? If not, add one or move it to "Inferred" or "Hypotheses."
122
- 2. Is the phrasing tier-appropriate? (Direct claims can use "because". Inferred claims cannot.)
123
- 3. Did you surface every contradiction you noticed, or quietly pick one?
124
- 4. Does "What We Don't Know" name specific gaps? If it's empty or missing, be suspicious. Historical investigations almost always have gaps.
125
- 5. Did you check any hypothesis embedded in the question against the evidence rather than rubber-stamp it?
126
- 6. Did you cite code as evidence for its own intent? Remove it. Code is mechanics, not motivation.
127
- 7. Is the tone calibrated? A confident-sounding answer on weak evidence is the exact failure this skill exists to prevent.
128
-
129
- The value of this output is its honesty, not its authority. A reader who takes it to the original author, an engineering lead, or a product manager should know what's known, what's inferred, and what's missing, so they can ask the right follow-up questions. Optimize for being useful, not for looking decisive.
@@ -1,20 +0,0 @@
1
- # dsh-pstack bundle patch.
2
- #
3
- # Two rows, both installed by this package:
4
- # - `pstack` mounts the bundled skill provider. Every pstack skill becomes a
5
- # normal DSH skill: model-invocable skills reach the catalog, user-invocable
6
- # skills reach the `/` menu.
7
- # - `pstack-subagent` mounts the `pstack_subagent` tool, the DSH replacement
8
- # for Cursor's `Task` tool. It resolves pstack role lines from
9
- # `~/.dsh/pstack-models.md` and delegates through `ctx.subagents`.
10
- #
11
- # The `pstack` row requires `ctx.skills`, which `@deepseek-ai/dsh-base` provides.
12
- # The `pstack-subagent` row requires `ctx.tools` and `ctx.subagents`, also in
13
- # base-backed profiles. Installing this bundle into a profile that lacks them
14
- # leaves the rows pending, exactly like any other dependency-driven plugin.
15
- - insert:
16
- - id: pstack
17
- name: "dsh-pstack"
18
-
19
- - id: pstack-subagent
20
- name: "dsh-pstack/subagent"
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/frontmatter.ts","../src/provider.ts"],"sourcesContent":["/**\n * The pstack SKILL.md frontmatter subset: plain scalars, quoted scalars, and\n * folded or literal block scalars. Kept dependency-free so the plugin can be\n * imported at boot before any optional parser is available.\n */\n\nexport interface Frontmatter {\n data: Record<string, string>;\n body: string;\n}\n\nconst DELIMITER = \"---\";\n\nfunction unquote(value: string): string {\n const trimmed = value.trim();\n if (trimmed.length >= 2) {\n const first = trimmed[0];\n const last = trimmed[trimmed.length - 1];\n if ((first === '\"' && last === '\"') || (first === \"'\" && last === \"'\")) {\n const inner = trimmed.slice(1, -1);\n return first === '\"'\n ? inner.replace(/\\\\\"/g, '\"').replace(/\\\\n/g, \"\\n\").replace(/\\\\\\\\/g, \"\\\\\")\n : inner.replace(/''/g, \"'\");\n }\n }\n return trimmed;\n}\n\nexport function parseFrontmatter(source: string): Frontmatter {\n const normalized = source.replace(/\\r\\n/g, \"\\n\");\n const lines = normalized.split(\"\\n\");\n if (lines[0]?.trim() !== DELIMITER) return { data: {}, body: normalized };\n\n let end = -1;\n for (let index = 1; index < lines.length; index += 1) {\n if (lines[index]?.trim() === DELIMITER) {\n end = index;\n break;\n }\n }\n if (end === -1) return { data: {}, body: normalized };\n\n const data: Record<string, string> = {};\n let index = 1;\n while (index < end) {\n const line = lines[index] ?? \"\";\n const match = /^([A-Za-z0-9_-]+):\\s*(.*)$/.exec(line);\n if (!match) {\n index += 1;\n continue;\n }\n const key = match[1]!;\n const rawValue = match[2] ?? \"\";\n index += 1;\n\n if (rawValue === \">\" || rawValue === \">-\" || rawValue === \"|\" || rawValue === \"|-\") {\n const folded = rawValue.startsWith(\">\");\n const collected: string[] = [];\n while (index < end) {\n const next = lines[index] ?? \"\";\n if (next.trim() !== \"\" && !/^\\s/.test(next)) break;\n collected.push(next.replace(/^\\s{1,4}/, \"\"));\n index += 1;\n }\n data[key] = folded\n ? collected.join(\" \").replace(/\\s+/g, \" \").trim()\n : collected.join(\"\\n\").replace(/\\n+$/, \"\");\n continue;\n }\n\n if (rawValue === \"\") {\n const collected: string[] = [];\n while (index < end) {\n const next = lines[index] ?? \"\";\n if (next.trim() !== \"\" && !/^\\s/.test(next)) break;\n collected.push(next.trim());\n index += 1;\n }\n data[key] = collected.join(\" \").trim();\n continue;\n }\n\n data[key] = unquote(rawValue);\n }\n\n return {\n data,\n body: lines\n .slice(end + 1)\n .join(\"\\n\")\n .replace(/^\\n+/, \"\"),\n };\n}\n","/**\n * Bundled pstack skill provider.\n *\n * One provider hosts every pstack skill so the catalog stays one entry per\n * skill and the package ships as a single installable bundle. The provider is\n * immutable: `assets/skills/` is generated at build time, so discovery always\n * completes with the same list.\n */\nimport { readdirSync, readFileSync } from \"node:fs\";\nimport type { Context } from \"@deepseek-ai/cordis\";\nimport {\n BUNDLED_SKILL_RANK,\n type SkillCandidate,\n type SkillDefinition,\n type SkillProvider,\n} from \"@deepseek-ai/dsh-skill\";\nimport { parseFrontmatter } from \"./frontmatter.ts\";\nimport { SKILLS_ROOT, SKILLS_ROOT_URL } from \"./paths.ts\";\n\nexport interface PstackSkillEntry {\n readonly name: string;\n readonly description: string;\n readonly modelInvocable: boolean;\n readonly userInvocable: boolean;\n readonly directory: string;\n}\n\nexport const PROVIDER_NAME = \"pstack\";\n\nfunction text(value: string | undefined): string {\n return (value ?? \"\").trim();\n}\n\n/**\n * Parse one generated SKILL.md into the catalog entry the provider serves.\n * Generated files always carry `name` and `description`; a hand-edit that\n * removes them fails loudly instead of silently dropping the skill.\n */\nexport function toEntry(directory: string, source: string): PstackSkillEntry {\n const { data } = parseFrontmatter(source);\n if (!text(data.name) || !text(data.description)) {\n throw new Error(`pstack skill \"${directory}\" is missing name or description frontmatter`);\n }\n return {\n name: text(data.name),\n description: text(data.description),\n modelInvocable: data[\"disable-model-invocation\"] !== \"true\",\n userInvocable: data[\"user-invocable\"] !== \"false\",\n directory,\n };\n}\n\nfunction resourceBase(directory: string) {\n return { kind: \"directory\" as const, path: `${SKILLS_ROOT}${directory}/` };\n}\n\nexport function toCandidate(entry: PstackSkillEntry): SkillCandidate {\n return {\n name: entry.name,\n description: entry.description,\n invocation: { modelInvocable: entry.modelInvocable, userInvocable: entry.userInvocable },\n provider: PROVIDER_NAME,\n source: \"bundled\",\n rank: BUNDLED_SKILL_RANK,\n resourceBase: resourceBase(entry.directory),\n locator: entry.directory,\n path: `${SKILLS_ROOT}${entry.directory}/SKILL.md`,\n };\n}\n\nexport interface PstackProviderOptions {\n /** Directory names to serve. The build passes the generated list. */\n readonly directories: readonly string[];\n /** Reads one skill body. Tests override it to avoid touching the package. */\n readonly read?: (directory: string) => string;\n}\n\nexport function createProvider(options: PstackProviderOptions): SkillProvider {\n const read =\n options.read ??\n ((directory: string) => readFileSync(`${SKILLS_ROOT}${directory}/SKILL.md`, \"utf8\"));\n const entries = options.directories.map((directory) => toEntry(directory, read(directory)));\n const byName = new Map(entries.map((entry) => [entry.name, entry]));\n\n const load = (entry: PstackSkillEntry): SkillDefinition => {\n const { body } = parseFrontmatter(read(entry.directory));\n return {\n name: entry.name,\n description: entry.description,\n invocation: { modelInvocable: entry.modelInvocable, userInvocable: entry.userInvocable },\n provider: PROVIDER_NAME,\n source: \"bundled\",\n resourceBase: resourceBase(entry.directory),\n path: `${SKILLS_ROOT}${entry.directory}/SKILL.md`,\n content: body,\n };\n };\n\n return {\n name: PROVIDER_NAME,\n list: async () => entries.map(toCandidate),\n get: async (candidate) => {\n const entry = byName.get(candidate.name);\n return entry ? load(entry) : undefined;\n },\n };\n}\n\nexport const name = \"pstack\";\n\nexport interface Config {\n /** Extra skill directories to serve in addition to the bundled set. */\n readonly extraSkillDirectories?: string[];\n}\n\nexport const inject = [\"skills\"];\n\nexport function listBundledSkillDirectories(): string[] {\n return readdirSync(SKILLS_ROOT, { withFileTypes: true })\n .filter((entry) => entry.isDirectory())\n .map((entry) => entry.name)\n .sort();\n}\n\nexport function apply(ctx: Context, config: Config = {}): void {\n const directories = [\n ...new Set([...listBundledSkillDirectories(), ...(config.extraSkillDirectories ?? [])]),\n ];\n ctx.skills.registerProvider(() => createProvider({ directories }));\n}\n\n/** Absolute root of the generated skill tree, exported for doctor checks. */\nexport const skillsRoot = SKILLS_ROOT;\nexport const skillsRootUrl = SKILLS_ROOT_URL;\n"],"mappings":"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"}
@@ -1,16 +0,0 @@
1
- import { fileURLToPath } from "node:url";
2
- //#region src/paths.ts
3
- /**
4
- * Locate one pstack skill directory inside this package.
5
- *
6
- * The provider registers candidates from an explicit file list, so this helper
7
- * resolves the directory the built entry point and the tests share.
8
- */
9
- const SKILLS_ROOT_URL = new URL("../assets/skills/", import.meta.url);
10
- const AGENTS_ROOT_URL = new URL("../assets/agents/", import.meta.url);
11
- const SKILLS_ROOT = fileURLToPath(SKILLS_ROOT_URL);
12
- const AGENTS_ROOT = fileURLToPath(AGENTS_ROOT_URL);
13
- //#endregion
14
- export { SKILLS_ROOT as n, SKILLS_ROOT_URL as r, AGENTS_ROOT as t };
15
-
16
- //# sourceMappingURL=paths-Bbai4CaT.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"paths-Bbai4CaT.mjs","names":[],"sources":["../src/paths.ts"],"sourcesContent":["/**\n * Locate one pstack skill directory inside this package.\n *\n * The provider registers candidates from an explicit file list, so this helper\n * resolves the directory the built entry point and the tests share.\n */\nimport { fileURLToPath } from \"node:url\";\n\nexport const SKILLS_ROOT_URL = new URL(\"../assets/skills/\", import.meta.url);\nexport const AGENTS_ROOT_URL = new URL(\"../assets/agents/\", import.meta.url);\nexport const SKILLS_ROOT = fileURLToPath(SKILLS_ROOT_URL);\nexport const AGENTS_ROOT = fileURLToPath(AGENTS_ROOT_URL);\n"],"mappings":";;;;;;;;AAQA,MAAa,kBAAkB,IAAI,IAAI,qBAAqB,YAAY,GAAG;AAC3E,MAAa,kBAAkB,IAAI,IAAI,qBAAqB,YAAY,GAAG;AAC3E,MAAa,cAAc,cAAc,eAAe;AACxD,MAAa,cAAc,cAAc,eAAe"}