pstack-opencode 0.0.0-stage → 0.15.37-opencode

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 (547) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSE-cursor-team-kit +21 -0
  3. package/agents/comment-sicko.md +32 -0
  4. package/agents/poteto-agent.md +11 -0
  5. package/agents/poteto-mode.md +5 -0
  6. package/package.json +8 -4
  7. package/plugin/index.js +202 -0
  8. package/plugin/lib.js +277 -0
  9. package/skills/architect/SKILL.md +79 -0
  10. package/skills/architect/references/design-red-flags.md +57 -0
  11. package/skills/architect/references/rationale-template.md +35 -0
  12. package/skills/architect/references/runner-prompt.md +20 -0
  13. package/skills/arena/SKILL.md +48 -0
  14. package/skills/automate-me/SKILL.md +104 -0
  15. package/skills/benchmark-checklist/SKILL.md +39 -0
  16. package/skills/blast-radius/SKILL.md +50 -0
  17. package/skills/bro/SKILL.md +7 -0
  18. package/skills/control-cli/SKILL.md +109 -0
  19. package/skills/control-ui/SKILL.md +113 -0
  20. package/skills/correct/SKILL.md +32 -0
  21. package/skills/create-formal-verification-skill/SKILL.md +43 -0
  22. package/skills/create-verification-skill/SKILL.md +44 -0
  23. package/skills/create-verification-skill/references/feature-map-example/README.md +47 -0
  24. package/skills/create-verification-skill/references/feature-map-example/create-note.md +39 -0
  25. package/skills/create-verification-skill/references/feature-map-example/search.md +45 -0
  26. package/skills/deslop/SKILL.md +22 -0
  27. package/skills/figure-it-out/SKILL.md +52 -0
  28. package/skills/how/SKILL.md +36 -0
  29. package/skills/how/references/explainer-prompt.md +55 -0
  30. package/skills/how/references/explorer-prompt.md +35 -0
  31. package/skills/in-your-own-words/SKILL.md +7 -0
  32. package/skills/interrogate/SKILL.md +31 -0
  33. package/skills/ketchup/SKILL.md +43 -0
  34. package/skills/ketchup-video/SKILL.md +29 -0
  35. package/skills/maintain-formal-verification-skill/SKILL.md +58 -0
  36. package/skills/maintain-verification-skill/SKILL.md +39 -0
  37. package/skills/no-comments/SKILL.md +24 -0
  38. package/skills/poteto-help/SKILL.md +160 -0
  39. package/skills/poteto-help/references/prompting.md +51 -0
  40. package/skills/poteto-help/references/recipes.md +51 -0
  41. package/skills/poteto-mode/SKILL.md +149 -0
  42. package/skills/poteto-mode/playbooks/authoring-a-skill.md +12 -0
  43. package/skills/poteto-mode/playbooks/autonomous-run.md +13 -0
  44. package/skills/poteto-mode/playbooks/autopilot-full.md +25 -0
  45. package/skills/poteto-mode/playbooks/autopilot-stack.md +8 -0
  46. package/skills/poteto-mode/playbooks/babysit.md +23 -0
  47. package/skills/poteto-mode/playbooks/bug-fix.md +19 -0
  48. package/skills/poteto-mode/playbooks/eval.md +25 -0
  49. package/skills/poteto-mode/playbooks/feature.md +25 -0
  50. package/skills/poteto-mode/playbooks/hillclimb.md +25 -0
  51. package/skills/poteto-mode/playbooks/investigation.md +19 -0
  52. package/skills/poteto-mode/playbooks/multi-phase-plan.md +155 -0
  53. package/skills/poteto-mode/playbooks/opening-a-pr.md +32 -0
  54. package/skills/poteto-mode/playbooks/orchestrate.md +25 -0
  55. package/skills/poteto-mode/playbooks/pause-safely.md +10 -0
  56. package/skills/poteto-mode/playbooks/perf-issue.md +29 -0
  57. package/skills/poteto-mode/playbooks/prototype.md +14 -0
  58. package/skills/poteto-mode/playbooks/refactoring.md +20 -0
  59. package/skills/poteto-mode/playbooks/review.md +19 -0
  60. package/skills/poteto-mode/playbooks/runtime-forensics.md +11 -0
  61. package/skills/poteto-mode/playbooks/session-pickup.md +11 -0
  62. package/skills/poteto-mode/playbooks/shipping.md +12 -0
  63. package/skills/poteto-mode/playbooks/trace-forensics.md +14 -0
  64. package/skills/poteto-mode/playbooks/visual-parity.md +11 -0
  65. package/skills/poteto-mode/playbooks/worktree-cleanup.md +12 -0
  66. package/skills/poteto-mode/references/bugbot-triage.md +142 -0
  67. package/skills/poteto-mode/scripts/bootstrap.ts +62 -0
  68. package/skills/poteto-mode/scripts/bun.lock +67 -0
  69. package/skills/poteto-mode/scripts/check-plan.mjs +205 -0
  70. package/skills/poteto-mode/scripts/check-plan.test.ts +110 -0
  71. package/skills/poteto-mode/scripts/package.json +16 -0
  72. package/skills/poteto-mode/scripts/watch-pr/cli.test.ts +224 -0
  73. package/skills/poteto-mode/scripts/watch-pr/cli.ts +223 -0
  74. package/skills/poteto-mode/scripts/watch-pr/fakes.test-helper.ts +129 -0
  75. package/skills/poteto-mode/scripts/watch-pr/github.test.ts +498 -0
  76. package/skills/poteto-mode/scripts/watch-pr/github.ts +726 -0
  77. package/skills/poteto-mode/scripts/watch-pr/policy.test.ts +482 -0
  78. package/skills/poteto-mode/scripts/watch-pr/policy.ts +842 -0
  79. package/skills/poteto-mode/scripts/watch-pr/render.ts +169 -0
  80. package/skills/poteto-mode/scripts/watch-pr/tsconfig.json +13 -0
  81. package/skills/poteto-mode/scripts/watch-pr/types.compile.ts +93 -0
  82. package/skills/poteto-mode/scripts/watch-pr/types.ts +414 -0
  83. package/skills/poteto-mode/scripts/watch-pr/watch-pr +6 -0
  84. package/skills/poteto-mode/scripts/worktree-audit.sh +137 -0
  85. package/skills/principle-attack-the-premise/SKILL.md +21 -0
  86. package/skills/principle-boundary-discipline/SKILL.md +34 -0
  87. package/skills/principle-build-the-lever/SKILL.md +23 -0
  88. package/skills/principle-encode-lessons-in-structure/SKILL.md +11 -0
  89. package/skills/principle-exhaust-the-design-space/SKILL.md +9 -0
  90. package/skills/principle-experience-first/SKILL.md +19 -0
  91. package/skills/principle-explain-the-number/SKILL.md +18 -0
  92. package/skills/principle-fix-root-causes/SKILL.md +21 -0
  93. package/skills/principle-foundational-thinking/SKILL.md +21 -0
  94. package/skills/principle-guard-the-context-window/SKILL.md +12 -0
  95. package/skills/principle-laziness-protocol/SKILL.md +10 -0
  96. package/skills/principle-make-operations-idempotent/SKILL.md +22 -0
  97. package/skills/principle-migrate-callers-then-delete-legacy-apis/SKILL.md +14 -0
  98. package/skills/principle-minimize-reader-load/SKILL.md +18 -0
  99. package/skills/principle-model-the-domain/SKILL.md +24 -0
  100. package/skills/principle-never-block-on-the-human/SKILL.md +15 -0
  101. package/skills/principle-outcome-oriented-execution/SKILL.md +21 -0
  102. package/skills/principle-prove-it-works/SKILL.md +22 -0
  103. package/skills/principle-redesign-from-first-principles/SKILL.md +16 -0
  104. package/skills/principle-separate-before-serializing-shared-state/SKILL.md +16 -0
  105. package/skills/principle-sequence-verifiable-units/SKILL.md +17 -0
  106. package/skills/principle-subtract-before-you-add/SKILL.md +18 -0
  107. package/skills/principle-test-behavior-not-implementation/SKILL.md +20 -0
  108. package/skills/principle-type-system-discipline/SKILL.md +13 -0
  109. package/skills/recall/SKILL.md +35 -0
  110. package/skills/reflect/SKILL.md +70 -0
  111. package/skills/reflect/references/divergent-reviewer.md +38 -0
  112. package/skills/reflect/references/judgment-reviewer.md +37 -0
  113. package/skills/reflect/references/synthesizer.md +56 -0
  114. package/skills/reflect/references/tooling-reviewer.md +48 -0
  115. package/skills/setup-pstack/SKILL.md +76 -0
  116. package/skills/sharpen/SKILL.md +16 -0
  117. package/skills/show-me-your-work/SKILL.md +82 -0
  118. package/skills/show-me-your-work/references/decision-log-template.tsv +1 -0
  119. package/skills/show-me-your-work/scripts/log.sh +42 -0
  120. package/skills/statechart/SKILL.md +82 -0
  121. package/skills/statechart/references/render.md +93 -0
  122. package/skills/statechart/scripts/backends/cfg.ts +33 -0
  123. package/skills/statechart/scripts/backends/mermaid.ts +201 -0
  124. package/skills/statechart/scripts/backends/plain-text.ts +72 -0
  125. package/skills/statechart/scripts/backends/report.ts +177 -0
  126. package/skills/statechart/scripts/frontends/config.ts +276 -0
  127. package/skills/statechart/scripts/frontends/dot.ts +74 -0
  128. package/skills/statechart/scripts/frontends/marks.ts +93 -0
  129. package/skills/statechart/scripts/frontends/messages.ts +52 -0
  130. package/skills/statechart/scripts/frontends/spec.ts +114 -0
  131. package/skills/statechart/scripts/frontends/trace.ts +24 -0
  132. package/skills/statechart/scripts/frontends/value.ts +166 -0
  133. package/skills/statechart/scripts/frontends/verdict.ts +40 -0
  134. package/skills/statechart/scripts/frontends/view.ts +119 -0
  135. package/skills/statechart/scripts/ir.ts +547 -0
  136. package/skills/statechart/scripts/package.json +11 -0
  137. package/skills/statechart/scripts/passes/annotate.ts +128 -0
  138. package/skills/statechart/scripts/passes/label.ts +269 -0
  139. package/skills/statechart/scripts/passes/lift.ts +85 -0
  140. package/skills/statechart/scripts/passes/loop-check.ts +68 -0
  141. package/skills/statechart/scripts/passes/paths.ts +60 -0
  142. package/skills/statechart/scripts/passes/reach.ts +135 -0
  143. package/skills/statechart/scripts/passes/region-check.ts +97 -0
  144. package/skills/statechart/scripts/passes/regions.ts +295 -0
  145. package/skills/statechart/scripts/pipeline.ts +76 -0
  146. package/skills/statechart/scripts/run.ts +481 -0
  147. package/skills/statechart/scripts/statechart +29 -0
  148. package/skills/statechart/scripts/statechart.ts +164 -0
  149. package/skills/statechart/scripts/test/ConfigOracle.java +63 -0
  150. package/skills/statechart/scripts/test/chart.test.ts +1210 -0
  151. package/skills/statechart/scripts/test/charts/Braces.mmd +7 -0
  152. package/skills/statechart/scripts/test/charts/Escapes.mmd +11 -0
  153. package/skills/statechart/scripts/test/charts/Phases.mmd +29 -0
  154. package/skills/statechart/scripts/test/cli.test.ts +1314 -0
  155. package/skills/statechart/scripts/test/config-fuzz.test.ts +263 -0
  156. package/skills/statechart/scripts/test/corpus/Counter/ChartRun.out +57 -0
  157. package/skills/statechart/scripts/test/corpus/Counter/Counter.cfg +3 -0
  158. package/skills/statechart/scripts/test/corpus/Counter/Counter.tla +10 -0
  159. package/skills/statechart/scripts/test/corpus/Counter/chart.mmd +9 -0
  160. package/skills/statechart/scripts/test/corpus/Counter/graph.dot +16 -0
  161. package/skills/statechart/scripts/test/corpus/Counter/report.md +7 -0
  162. package/skills/statechart/scripts/test/corpus/Counter/sany.out +2 -0
  163. package/skills/statechart/scripts/test/corpus/Counter/verdict-1.out +49 -0
  164. package/skills/statechart/scripts/test/corpus/CounterAction/ChartRun.out +60 -0
  165. package/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.cfg +4 -0
  166. package/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.tla +22 -0
  167. package/skills/statechart/scripts/test/corpus/CounterAction/chart.mmd +26 -0
  168. package/skills/statechart/scripts/test/corpus/CounterAction/graph.dot +19 -0
  169. package/skills/statechart/scripts/test/corpus/CounterAction/report.md +20 -0
  170. package/skills/statechart/scripts/test/corpus/CounterAction/sany.out +2 -0
  171. package/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.exit +1 -0
  172. package/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.out +56 -0
  173. package/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.exit +1 -0
  174. package/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.out +82 -0
  175. package/skills/statechart/scripts/test/corpus/CounterAction/verdict-3.out +57 -0
  176. package/skills/statechart/scripts/test/corpus/CounterDeadlock/ChartRun.out +59 -0
  177. package/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.cfg +3 -0
  178. package/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.tla +11 -0
  179. package/skills/statechart/scripts/test/corpus/CounterDeadlock/chart.mmd +22 -0
  180. package/skills/statechart/scripts/test/corpus/CounterDeadlock/graph.dot +16 -0
  181. package/skills/statechart/scripts/test/corpus/CounterDeadlock/report.md +17 -0
  182. package/skills/statechart/scripts/test/corpus/CounterDeadlock/sany.out +2 -0
  183. package/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.exit +1 -0
  184. package/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.out +56 -0
  185. package/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.exit +1 -0
  186. package/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.out +77 -0
  187. package/skills/statechart/scripts/test/corpus/CounterFan/ChartRun.out +69 -0
  188. package/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.cfg +2 -0
  189. package/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.tla +11 -0
  190. package/skills/statechart/scripts/test/corpus/CounterFan/chart.mmd +85 -0
  191. package/skills/statechart/scripts/test/corpus/CounterFan/graph.dot +70 -0
  192. package/skills/statechart/scripts/test/corpus/CounterFan/report.md +12 -0
  193. package/skills/statechart/scripts/test/corpus/CounterFan/sany.out +2 -0
  194. package/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.exit +1 -0
  195. package/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.out +67 -0
  196. package/skills/statechart/scripts/test/corpus/CounterFan/verdict-2.out +57 -0
  197. package/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.exit +1 -0
  198. package/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.out +85 -0
  199. package/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.cfg +6 -0
  200. package/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.tla +13 -0
  201. package/skills/statechart/scripts/test/corpus/CounterGuard/chart.mmd +5 -0
  202. package/skills/statechart/scripts/test/corpus/CounterGuard/graph.dot +10 -0
  203. package/skills/statechart/scripts/test/corpus/CounterGuard/report.md +31 -0
  204. package/skills/statechart/scripts/test/corpus/CounterGuard/sany.out +2 -0
  205. package/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.exit +1 -0
  206. package/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.out +64 -0
  207. package/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.exit +1 -0
  208. package/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.out +77 -0
  209. package/skills/statechart/scripts/test/corpus/CounterInitPast/ChartRun.out +55 -0
  210. package/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.cfg +3 -0
  211. package/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.tla +10 -0
  212. package/skills/statechart/scripts/test/corpus/CounterInitPast/chart.mmd +12 -0
  213. package/skills/statechart/scripts/test/corpus/CounterInitPast/graph.dot +6 -0
  214. package/skills/statechart/scripts/test/corpus/CounterInitPast/report.md +12 -0
  215. package/skills/statechart/scripts/test/corpus/CounterInitPast/sany.out +2 -0
  216. package/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.exit +1 -0
  217. package/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.out +33 -0
  218. package/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-2.out +54 -0
  219. package/skills/statechart/scripts/test/corpus/CounterInitPastHolds/ChartRun.out +54 -0
  220. package/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.cfg +3 -0
  221. package/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.tla +10 -0
  222. package/skills/statechart/scripts/test/corpus/CounterInitPastHolds/chart.mmd +1 -0
  223. package/skills/statechart/scripts/test/corpus/CounterInitPastHolds/graph.dot +6 -0
  224. package/skills/statechart/scripts/test/corpus/CounterInitPastHolds/report.md +7 -0
  225. package/skills/statechart/scripts/test/corpus/CounterInitPastHolds/sany.out +2 -0
  226. package/skills/statechart/scripts/test/corpus/CounterInitPastHolds/verdict-1.out +46 -0
  227. package/skills/statechart/scripts/test/corpus/CounterInstance/ChartRun.out +59 -0
  228. package/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.cfg +2 -0
  229. package/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.tla +10 -0
  230. package/skills/statechart/scripts/test/corpus/CounterInstance/CounterSteps.tla +6 -0
  231. package/skills/statechart/scripts/test/corpus/CounterInstance/chart.mmd +17 -0
  232. package/skills/statechart/scripts/test/corpus/CounterInstance/graph.dot +15 -0
  233. package/skills/statechart/scripts/test/corpus/CounterInstance/report.md +14 -0
  234. package/skills/statechart/scripts/test/corpus/CounterInstance/sany.out +3 -0
  235. package/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.exit +1 -0
  236. package/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.out +78 -0
  237. package/skills/statechart/scripts/test/corpus/CounterJump/ChartRun.out +59 -0
  238. package/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.cfg +3 -0
  239. package/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.tla +19 -0
  240. package/skills/statechart/scripts/test/corpus/CounterJump/chart.mmd +26 -0
  241. package/skills/statechart/scripts/test/corpus/CounterJump/graph.dot +22 -0
  242. package/skills/statechart/scripts/test/corpus/CounterJump/report.md +12 -0
  243. package/skills/statechart/scripts/test/corpus/CounterJump/sany.out +2 -0
  244. package/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.exit +1 -0
  245. package/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.out +58 -0
  246. package/skills/statechart/scripts/test/corpus/CounterJump/verdict-2.out +57 -0
  247. package/skills/statechart/scripts/test/corpus/CounterLoop/ChartRun.out +57 -0
  248. package/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.cfg +2 -0
  249. package/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.tla +11 -0
  250. package/skills/statechart/scripts/test/corpus/CounterLoop/chart.mmd +17 -0
  251. package/skills/statechart/scripts/test/corpus/CounterLoop/graph.dot +15 -0
  252. package/skills/statechart/scripts/test/corpus/CounterLoop/report.md +14 -0
  253. package/skills/statechart/scripts/test/corpus/CounterLoop/sany.out +2 -0
  254. package/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.exit +1 -0
  255. package/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.out +76 -0
  256. package/skills/statechart/scripts/test/corpus/CounterOrder/ChartRun.out +59 -0
  257. package/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.cfg +3 -0
  258. package/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.tla +11 -0
  259. package/skills/statechart/scripts/test/corpus/CounterOrder/chart.mmd +19 -0
  260. package/skills/statechart/scripts/test/corpus/CounterOrder/graph.dot +10 -0
  261. package/skills/statechart/scripts/test/corpus/CounterOrder/report.md +15 -0
  262. package/skills/statechart/scripts/test/corpus/CounterOrder/sany.out +2 -0
  263. package/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.exit +1 -0
  264. package/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.out +56 -0
  265. package/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.exit +1 -0
  266. package/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.out +67 -0
  267. package/skills/statechart/scripts/test/corpus/CounterRules/ChartRun.out +62 -0
  268. package/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.cfg +6 -0
  269. package/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.tla +24 -0
  270. package/skills/statechart/scripts/test/corpus/CounterRules/Moves.tla +5 -0
  271. package/skills/statechart/scripts/test/corpus/CounterRules/chart.mmd +22 -0
  272. package/skills/statechart/scripts/test/corpus/CounterRules/graph.dot +10 -0
  273. package/skills/statechart/scripts/test/corpus/CounterRules/report.md +23 -0
  274. package/skills/statechart/scripts/test/corpus/CounterRules/sany.out +3 -0
  275. package/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.exit +1 -0
  276. package/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.out +58 -0
  277. package/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.exit +1 -0
  278. package/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.out +66 -0
  279. package/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.exit +1 -0
  280. package/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.out +74 -0
  281. package/skills/statechart/scripts/test/corpus/CounterRules/verdict-4.out +59 -0
  282. package/skills/statechart/scripts/test/corpus/CounterStart/ChartRun.out +58 -0
  283. package/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.cfg +3 -0
  284. package/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.tla +15 -0
  285. package/skills/statechart/scripts/test/corpus/CounterStart/chart.mmd +18 -0
  286. package/skills/statechart/scripts/test/corpus/CounterStart/graph.dot +13 -0
  287. package/skills/statechart/scripts/test/corpus/CounterStart/report.md +11 -0
  288. package/skills/statechart/scripts/test/corpus/CounterStart/sany.out +2 -0
  289. package/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.exit +1 -0
  290. package/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.out +33 -0
  291. package/skills/statechart/scripts/test/corpus/CounterStart/verdict-2.out +57 -0
  292. package/skills/statechart/scripts/test/corpus/CounterStop/ChartRun.out +57 -0
  293. package/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.cfg +3 -0
  294. package/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.tla +15 -0
  295. package/skills/statechart/scripts/test/corpus/CounterStop/chart.mmd +7 -0
  296. package/skills/statechart/scripts/test/corpus/CounterStop/graph.dot +13 -0
  297. package/skills/statechart/scripts/test/corpus/CounterStop/report.md +6 -0
  298. package/skills/statechart/scripts/test/corpus/CounterStop/sany.out +2 -0
  299. package/skills/statechart/scripts/test/corpus/CounterStop/verdict-1.out +49 -0
  300. package/skills/statechart/scripts/test/corpus/CounterTie/ChartRun.out +61 -0
  301. package/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.cfg +4 -0
  302. package/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.tla +14 -0
  303. package/skills/statechart/scripts/test/corpus/CounterTie/chart.mmd +30 -0
  304. package/skills/statechart/scripts/test/corpus/CounterTie/graph.dot +19 -0
  305. package/skills/statechart/scripts/test/corpus/CounterTie/report.md +27 -0
  306. package/skills/statechart/scripts/test/corpus/CounterTie/sany.out +2 -0
  307. package/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.exit +1 -0
  308. package/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.out +56 -0
  309. package/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.exit +1 -0
  310. package/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.out +64 -0
  311. package/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.exit +1 -0
  312. package/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.out +87 -0
  313. package/skills/statechart/scripts/test/corpus/CounterTie/verdict-4.out +57 -0
  314. package/skills/statechart/scripts/test/corpus/CounterTieInGraph/ChartRun.out +60 -0
  315. package/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.cfg +3 -0
  316. package/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.tla +12 -0
  317. package/skills/statechart/scripts/test/corpus/CounterTieInGraph/chart.mmd +23 -0
  318. package/skills/statechart/scripts/test/corpus/CounterTieInGraph/graph.dot +19 -0
  319. package/skills/statechart/scripts/test/corpus/CounterTieInGraph/report.md +11 -0
  320. package/skills/statechart/scripts/test/corpus/CounterTieInGraph/sany.out +2 -0
  321. package/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.exit +1 -0
  322. package/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.out +56 -0
  323. package/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-2.out +57 -0
  324. package/skills/statechart/scripts/test/corpus/CounterView/ChartRun.out +61 -0
  325. package/skills/statechart/scripts/test/corpus/CounterView/CounterView.cfg +4 -0
  326. package/skills/statechart/scripts/test/corpus/CounterView/CounterView.tla +14 -0
  327. package/skills/statechart/scripts/test/corpus/CounterView/chart.mmd +23 -0
  328. package/skills/statechart/scripts/test/corpus/CounterView/graph.dot +19 -0
  329. package/skills/statechart/scripts/test/corpus/CounterView/report.md +27 -0
  330. package/skills/statechart/scripts/test/corpus/CounterView/sany.out +2 -0
  331. package/skills/statechart/scripts/test/corpus/CounterView/verdict-1.exit +1 -0
  332. package/skills/statechart/scripts/test/corpus/CounterView/verdict-1.out +56 -0
  333. package/skills/statechart/scripts/test/corpus/CounterView/verdict-2.exit +1 -0
  334. package/skills/statechart/scripts/test/corpus/CounterView/verdict-2.out +64 -0
  335. package/skills/statechart/scripts/test/corpus/CounterView/verdict-3.exit +1 -0
  336. package/skills/statechart/scripts/test/corpus/CounterView/verdict-3.out +87 -0
  337. package/skills/statechart/scripts/test/corpus/CounterView/verdict-4.out +57 -0
  338. package/skills/statechart/scripts/test/corpus/CounterView/view.mjs +1 -0
  339. package/skills/statechart/scripts/test/corpus/DieHard/ChartRun.out +59 -0
  340. package/skills/statechart/scripts/test/corpus/DieHard/DieHard.cfg +4 -0
  341. package/skills/statechart/scripts/test/corpus/DieHard/DieHard.tla +38 -0
  342. package/skills/statechart/scripts/test/corpus/DieHard/chart.mmd +92 -0
  343. package/skills/statechart/scripts/test/corpus/DieHard/graph.dot +126 -0
  344. package/skills/statechart/scripts/test/corpus/DieHard/report.md +17 -0
  345. package/skills/statechart/scripts/test/corpus/DieHard/sany.out +2 -0
  346. package/skills/statechart/scripts/test/corpus/DieHard/verdict-1.exit +1 -0
  347. package/skills/statechart/scripts/test/corpus/DieHard/verdict-1.out +91 -0
  348. package/skills/statechart/scripts/test/corpus/DieHard/verdict-2.out +57 -0
  349. package/skills/statechart/scripts/test/corpus/FirstRule/ChartRun.out +61 -0
  350. package/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.cfg +6 -0
  351. package/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.tla +11 -0
  352. package/skills/statechart/scripts/test/corpus/FirstRule/chart.mmd +22 -0
  353. package/skills/statechart/scripts/test/corpus/FirstRule/graph.dot +16 -0
  354. package/skills/statechart/scripts/test/corpus/FirstRule/report.md +25 -0
  355. package/skills/statechart/scripts/test/corpus/FirstRule/sany.out +2 -0
  356. package/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.exit +1 -0
  357. package/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.out +56 -0
  358. package/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.exit +1 -0
  359. package/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.out +64 -0
  360. package/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.exit +1 -0
  361. package/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.out +64 -0
  362. package/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.exit +1 -0
  363. package/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.out +77 -0
  364. package/skills/statechart/scripts/test/corpus/HiddenClock/ChartRun.out +57 -0
  365. package/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.cfg +4 -0
  366. package/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.tla +11 -0
  367. package/skills/statechart/scripts/test/corpus/HiddenClock/chart.mmd +13 -0
  368. package/skills/statechart/scripts/test/corpus/HiddenClock/graph.dot +12 -0
  369. package/skills/statechart/scripts/test/corpus/HiddenClock/report.md +11 -0
  370. package/skills/statechart/scripts/test/corpus/HiddenClock/sany.out +2 -0
  371. package/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.exit +1 -0
  372. package/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.out +72 -0
  373. package/skills/statechart/scripts/test/corpus/Login/ChartRun.out +57 -0
  374. package/skills/statechart/scripts/test/corpus/Login/Login.cfg +3 -0
  375. package/skills/statechart/scripts/test/corpus/Login/Login.tla +62 -0
  376. package/skills/statechart/scripts/test/corpus/Login/chart.mmd +27 -0
  377. package/skills/statechart/scripts/test/corpus/Login/graph.dot +40 -0
  378. package/skills/statechart/scripts/test/corpus/Login/report.md +7 -0
  379. package/skills/statechart/scripts/test/corpus/Login/sany.out +1 -0
  380. package/skills/statechart/scripts/test/corpus/Login/verdict-1.out +47 -0
  381. package/skills/statechart/scripts/test/corpus/Login/view.mjs +1 -0
  382. package/skills/statechart/scripts/test/corpus/LoginGuarded/ChartRun.out +57 -0
  383. package/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.cfg +2 -0
  384. package/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.tla +64 -0
  385. package/skills/statechart/scripts/test/corpus/LoginGuarded/chart.mmd +28 -0
  386. package/skills/statechart/scripts/test/corpus/LoginGuarded/graph.dot +37 -0
  387. package/skills/statechart/scripts/test/corpus/LoginGuarded/report.md +8 -0
  388. package/skills/statechart/scripts/test/corpus/LoginGuarded/sany.out +1 -0
  389. package/skills/statechart/scripts/test/corpus/LoginGuarded/verdict-1.out +47 -0
  390. package/skills/statechart/scripts/test/corpus/LoginGuarded/view.mjs +1 -0
  391. package/skills/statechart/scripts/test/corpus/LoginParallel/ChartRun.out +60 -0
  392. package/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.cfg +3 -0
  393. package/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.tla +64 -0
  394. package/skills/statechart/scripts/test/corpus/LoginParallel/chart.mmd +44 -0
  395. package/skills/statechart/scripts/test/corpus/LoginParallel/graph.dot +58 -0
  396. package/skills/statechart/scripts/test/corpus/LoginParallel/report.md +17 -0
  397. package/skills/statechart/scripts/test/corpus/LoginParallel/sany.out +1 -0
  398. package/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.exit +1 -0
  399. package/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.out +83 -0
  400. package/skills/statechart/scripts/test/corpus/LoginParallel/verdict-2.out +57 -0
  401. package/skills/statechart/scripts/test/corpus/LoginParallel/view.mjs +1 -0
  402. package/skills/statechart/scripts/test/corpus/MediaPlayer/ChartRun.out +60 -0
  403. package/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.cfg +3 -0
  404. package/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.tla +103 -0
  405. package/skills/statechart/scripts/test/corpus/MediaPlayer/chart.mmd +43 -0
  406. package/skills/statechart/scripts/test/corpus/MediaPlayer/graph.dot +93 -0
  407. package/skills/statechart/scripts/test/corpus/MediaPlayer/report.md +14 -0
  408. package/skills/statechart/scripts/test/corpus/MediaPlayer/sany.out +1 -0
  409. package/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.exit +1 -0
  410. package/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.out +59 -0
  411. package/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-2.out +72 -0
  412. package/skills/statechart/scripts/test/corpus/MediaPlayer/view.mjs +3 -0
  413. package/skills/statechart/scripts/test/corpus/MediaPlayerFixed/ChartRun.out +57 -0
  414. package/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.cfg +2 -0
  415. package/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.tla +100 -0
  416. package/skills/statechart/scripts/test/corpus/MediaPlayerFixed/chart.mmd +31 -0
  417. package/skills/statechart/scripts/test/corpus/MediaPlayerFixed/graph.dot +85 -0
  418. package/skills/statechart/scripts/test/corpus/MediaPlayerFixed/report.md +9 -0
  419. package/skills/statechart/scripts/test/corpus/MediaPlayerFixed/sany.out +1 -0
  420. package/skills/statechart/scripts/test/corpus/MediaPlayerFixed/verdict-1.out +47 -0
  421. package/skills/statechart/scripts/test/corpus/MediaPlayerFixed/view.mjs +3 -0
  422. package/skills/statechart/scripts/test/corpus/MediaPlayerProps/ChartRun.out +59 -0
  423. package/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayer.tla +103 -0
  424. package/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.cfg +3 -0
  425. package/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.tla +6 -0
  426. package/skills/statechart/scripts/test/corpus/MediaPlayerProps/chart.mmd +42 -0
  427. package/skills/statechart/scripts/test/corpus/MediaPlayerProps/graph.dot +93 -0
  428. package/skills/statechart/scripts/test/corpus/MediaPlayerProps/report.md +19 -0
  429. package/skills/statechart/scripts/test/corpus/MediaPlayerProps/sany.out +2 -0
  430. package/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.exit +1 -0
  431. package/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.out +61 -0
  432. package/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-2.out +59 -0
  433. package/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-3.out +61 -0
  434. package/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.exit +1 -0
  435. package/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.out +66 -0
  436. package/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.exit +1 -0
  437. package/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.out +58 -0
  438. package/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-6.out +49 -0
  439. package/skills/statechart/scripts/test/corpus/MediaPlayerProps/view.mjs +3 -0
  440. package/skills/statechart/scripts/test/corpus/PickWorker/ChartRun.out +57 -0
  441. package/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.cfg +6 -0
  442. package/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.tla +11 -0
  443. package/skills/statechart/scripts/test/corpus/PickWorker/chart.mmd +5 -0
  444. package/skills/statechart/scripts/test/corpus/PickWorker/graph.dot +11 -0
  445. package/skills/statechart/scripts/test/corpus/PickWorker/report.md +7 -0
  446. package/skills/statechart/scripts/test/corpus/PickWorker/sany.out +5 -0
  447. package/skills/statechart/scripts/test/corpus/PickWorker/verdict-1.out +70 -0
  448. package/skills/statechart/scripts/test/corpus/Shadow/ChartRun.out +61 -0
  449. package/skills/statechart/scripts/test/corpus/Shadow/Shadow.cfg +4 -0
  450. package/skills/statechart/scripts/test/corpus/Shadow/Shadow.tla +11 -0
  451. package/skills/statechart/scripts/test/corpus/Shadow/ShadowLib.tla +6 -0
  452. package/skills/statechart/scripts/test/corpus/Shadow/ShadowSub.tla +3 -0
  453. package/skills/statechart/scripts/test/corpus/Shadow/chart.mmd +9 -0
  454. package/skills/statechart/scripts/test/corpus/Shadow/graph.dot +16 -0
  455. package/skills/statechart/scripts/test/corpus/Shadow/report.md +8 -0
  456. package/skills/statechart/scripts/test/corpus/Shadow/sany.out +4 -0
  457. package/skills/statechart/scripts/test/corpus/Shadow/verdict-1.out +65 -0
  458. package/skills/statechart/scripts/test/corpus/SpacedNames/ChartRun.out +59 -0
  459. package/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.cfg +2 -0
  460. package/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.tla +9 -0
  461. package/skills/statechart/scripts/test/corpus/SpacedNames/chart.mmd +23 -0
  462. package/skills/statechart/scripts/test/corpus/SpacedNames/graph.dot +17 -0
  463. package/skills/statechart/scripts/test/corpus/SpacedNames/report.md +15 -0
  464. package/skills/statechart/scripts/test/corpus/SpacedNames/sany.out +1 -0
  465. package/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.exit +1 -0
  466. package/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.out +65 -0
  467. package/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.exit +1 -0
  468. package/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.out +75 -0
  469. package/skills/statechart/scripts/test/corpus/TwoPhase/ChartRun.out +69 -0
  470. package/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.cfg +3 -0
  471. package/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.tla +75 -0
  472. package/skills/statechart/scripts/test/corpus/TwoPhase/chart.mmd +60 -0
  473. package/skills/statechart/scripts/test/corpus/TwoPhase/graph.dot +297 -0
  474. package/skills/statechart/scripts/test/corpus/TwoPhase/report.md +20 -0
  475. package/skills/statechart/scripts/test/corpus/TwoPhase/sany.out +1 -0
  476. package/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.exit +1 -0
  477. package/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.out +95 -0
  478. package/skills/statechart/scripts/test/corpus/TwoPhase/verdict-2.out +57 -0
  479. package/skills/statechart/scripts/test/corpus/TwoPhase/view.mjs +1 -0
  480. package/skills/statechart/scripts/test/corpus/TwoPhaseFixed/ChartRun.out +57 -0
  481. package/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.cfg +3 -0
  482. package/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.tla +75 -0
  483. package/skills/statechart/scripts/test/corpus/TwoPhaseFixed/chart.mmd +37 -0
  484. package/skills/statechart/scripts/test/corpus/TwoPhaseFixed/graph.dot +223 -0
  485. package/skills/statechart/scripts/test/corpus/TwoPhaseFixed/report.md +11 -0
  486. package/skills/statechart/scripts/test/corpus/TwoPhaseFixed/sany.out +1 -0
  487. package/skills/statechart/scripts/test/corpus/TwoPhaseFixed/verdict-1.out +47 -0
  488. package/skills/statechart/scripts/test/corpus/TwoPhaseFixed/view.mjs +1 -0
  489. package/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.exit +1 -0
  490. package/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.out +75 -0
  491. package/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.cfg +5 -0
  492. package/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.tla +11 -0
  493. package/skills/statechart/scripts/test/corpus/TypeGuard/chart.mmd +18 -0
  494. package/skills/statechart/scripts/test/corpus/TypeGuard/graph.dot +14 -0
  495. package/skills/statechart/scripts/test/corpus/TypeGuard/report.md +29 -0
  496. package/skills/statechart/scripts/test/corpus/TypeGuard/sany.out +2 -0
  497. package/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.exit +1 -0
  498. package/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.out +64 -0
  499. package/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.exit +1 -0
  500. package/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.out +75 -0
  501. package/skills/statechart/scripts/test/corpus/UserNoDeadlock/ChartRun.out +58 -0
  502. package/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.cfg +2 -0
  503. package/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.tla +8 -0
  504. package/skills/statechart/scripts/test/corpus/UserNoDeadlock/chart.mmd +22 -0
  505. package/skills/statechart/scripts/test/corpus/UserNoDeadlock/graph.dot +16 -0
  506. package/skills/statechart/scripts/test/corpus/UserNoDeadlock/report.md +15 -0
  507. package/skills/statechart/scripts/test/corpus/UserNoDeadlock/sany.out +2 -0
  508. package/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.exit +1 -0
  509. package/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.out +56 -0
  510. package/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.exit +1 -0
  511. package/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.out +77 -0
  512. package/skills/statechart/scripts/test/corpus.test.ts +403 -0
  513. package/skills/statechart/scripts/test/differential.test.ts +565 -0
  514. package/skills/statechart/scripts/test/grid/Grid.cfg +2 -0
  515. package/skills/statechart/scripts/test/grid/Grid.tla +9 -0
  516. package/skills/statechart/scripts/test/grid/sany.out +2 -0
  517. package/skills/statechart/scripts/test/java.ts +63 -0
  518. package/skills/statechart/scripts/test/labels.ts +643 -0
  519. package/skills/statechart/scripts/test/messages.test.ts +212 -0
  520. package/skills/statechart/scripts/test/pipeline.test.ts +270 -0
  521. package/skills/statechart/scripts/test/plain-tlc.test.ts +255 -0
  522. package/skills/statechart/scripts/test/render.test.ts +81 -0
  523. package/skills/statechart/scripts/test/tlc-out.test.ts +90 -0
  524. package/skills/statechart/scripts/test/tlc.ts +158 -0
  525. package/skills/statechart/scripts/tsconfig.json +11 -0
  526. package/skills/statechart/scripts/worker.ts +35 -0
  527. package/skills/swarm/SKILL.md +41 -0
  528. package/skills/tdd/SKILL.md +42 -0
  529. package/skills/teach/SKILL.md +21 -0
  530. package/skills/technical-writing/SKILL.md +106 -0
  531. package/skills/typescript-best-practices/SKILL.md +30 -0
  532. package/skills/typescript-best-practices/references/patterns.md +328 -0
  533. package/skills/unslop/SKILL.md +62 -0
  534. package/skills/why/SKILL.md +98 -0
  535. package/skills/why/references/epistemics.md +71 -0
  536. package/skills/why/references/investigator-prompt.md +86 -0
  537. package/skills/why/references/source-playbook.md +17 -0
  538. package/skills/why/references/sources/code-archaeology.md +51 -0
  539. package/skills/why/references/sources/databricks.md +70 -0
  540. package/skills/why/references/sources/datadog.md +97 -0
  541. package/skills/why/references/sources/incident-postmortem.md +5 -0
  542. package/skills/why/references/sources/linear.md +48 -0
  543. package/skills/why/references/sources/notion.md +55 -0
  544. package/skills/why/references/sources/sentry.md +66 -0
  545. package/skills/why/references/sources/slack.md +17 -0
  546. package/skills/why/references/synthesizer-prompt.md +129 -0
  547. package/README.md +0 -3
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: create-formal-verification-skill
3
+ description: "Generate a project-local skill that formally verifies the code where a bug costs the most and tests reach the least, in any language, with whichever verification tool fits. Use for /create-formal-verification-skill, \"model-check this race\", \"prove this invariant\", or when concurrency, retries, state machines, parsers, or unsafe code need more than tests."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Create a formal verification skill
8
+
9
+ A test checks the cases that someone thought to write. Formal verification checks every case in a stated scope: every order of steps in a model, every input up to a bound, or every input. This skill finds the part of the repo where that matters most, verifies one property of it, and leaves a project-local skill that lets the next agent check a change against that property. Write that skill for an agent who reads it cold, mid-change, and has never seen your work. The user must be able to trust the result and act on it without learning the verification language.
10
+
11
+ ## Choose the target from the code
12
+
13
+ Answer from the codebase, and ask the user only what you cannot observe. If the user named an area or a bug, start there.
14
+
15
+ A good target is a promise the code makes, where a break harms users and tests rarely reach the case that breaks it. Choose the strongest such target in the repo, not the one that is easiest to verify.
16
+
17
+ ## Let the question choose the tool
18
+
19
+ Pick the tool that answers the question at the lowest cost: a model checker, a proof assistant, an SMT-backed verifier, or another tool. Whether events can happen in a bad order usually suits a model checker over a small model of the design, and TLA+ is the default for that in any language. Whether the code itself behaves for every input, as with memory safety, overflow, or a data-structure invariant, usually suits a verifier that runs on the code. If no verifier runs on this language, say so, and test the real code with generated inputs, not a hand model of the function. A property that must hold at every size, where a bound is not enough, can need a proof. Prefer a tool that the repo's developers can install and run, and tell the user why you chose it.
20
+
21
+ ## What makes it good
22
+
23
+ - **True to the code.** Every part of the model or proof points to code that a reviewer can open. What the verification treats as one indivisible step is one indivisible step in the code. Names come from this repo.
24
+ - **Able to fail.** A check that you have never seen fail proves nothing. Show each property failing on a broken variant of the code it guards, such as a removed check or a reordered step.
25
+ - **Findings stay findings.** When the current code breaks the property, report it with the counterexample in the code's terms. Do not weaken the property or the model until it passes, and do not change product code unless the user asks.
26
+ - **Honest about scope.** Say what is verified, under which bounds and assumptions, and what is left out. A pass covers the model or the bound, not the whole system.
27
+ - **Readable without the tool.** State the property and the harm in one plain sentence each. Tell a counterexample as a short sequence of steps in the code's words.
28
+ - **Cheap to rerun.** One command, a reproducible tool version, and a run short enough that the next agent will use it on every relevant change.
29
+ - **Kept in step with the code.** Record which files and functions each check covers, and the commit at which you last confirmed that the verification describes them. When the covered code changes after that commit, the next agent can see that the verification needs another look.
30
+
31
+ ## Generate the verify skill
32
+
33
+ Write a project-local skill with frontmatter that names the area and says when to use it. Without frontmatter, the skill never registers. From the skill alone, the next agent must be able to tell whether a change touches the verified code, run the check, tell a real bug from a modeling error, and update the verification when a change is intended. Put the coverage record and the sync commit in the skill, and tell the next agent to move the sync commit forward only after it confirms that the verification describes the code at the new commit. Use this repo's real commands, paths, and nouns, and leave no placeholders.
34
+
35
+ If the check is a TLA+ model, tell the next agent to load the pstack [`statechart`](../statechart/SKILL.md) skill with the `skill` tool and read every result with it. It shows each invariant violation the checker finds as its shortest path in plain words. When the check passes, `statechart` draws a chart of how the system moves between states. Refer to the `statechart` skill by its ID. Its commands, options, and file paths change between releases and machines, so copy none of them into the generated skill or its scripts.
36
+
37
+ ## Prove it before you hand off
38
+
39
+ Follow the generated skill once, as the next agent would, on a scratch change that breaks the property in the real code. It must catch the break. Then drop the scratch change and confirm that the check is back where it started: passing, or failing only on the findings you will report. A verify skill that was never run is a draft. If the skill misses the break or a step does not run, fix the skill or the verification, not the scratch change.
40
+
41
+ ## Hand off
42
+
43
+ Tell the user what you verified, which tool you used and why, the bounds, what the check found in plain words, how to run it, and what it does not cover. Suggest a second target only if you found a close one. Point the user at `/maintain-formal-verification-skill` for bringing the verification back in line after changes that did not recheck it.
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: create-verification-skill
3
+ description: "Generate a project-local verification skill that drives your app the way a user does — any language, framework, or platform. Use for /create-verification-skill, \"make a control skill for this repo\", or when a project has no scripted way to prove UI/CLI/service behavior."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Create a verification skill
8
+
9
+ Every serious project needs a scripted way to drive the real app and prove behavior: launch it, exercise a feature the way a user would, and capture evidence. This skill generates that as a project-local skill (`.opencode/skills/verify-<app>/`) tailored to the repo. You write the generator's output for the next agent, not for a human: it will be read cold, mid-task, by an agent that has never seen the app.
10
+
11
+ ## 1. Interview the repo, not the user
12
+
13
+ Answer these from the codebase and only ask the user what you cannot observe:
14
+
15
+ - **Surface:** what does a user actually touch? A web UI, a CLI/TUI, a desktop app, an API, a mobile app, a library? A repo can have several; pick the primary one and note the rest.
16
+ - **Run:** how does the app start locally? Prefer the repo's own documented dev command (package scripts, Makefile, README quickstart). Note ports, env vars, seed data, auth.
17
+ - **Drive:** how can an agent interact with it programmatically? Existing harnesses first — Playwright/Cypress specs, expect scripts, PTY helpers, curl-able endpoints, a debug port. Only then pick a generic recipe: browser/CDP for web and Electron, a tmux/PTY harness for CLI/TUI, plain HTTP for services.
18
+ - **Observe:** what evidence can be captured? Screenshots, terminal transcripts, response bodies, logs, exit codes, DB state.
19
+ - **Isolate:** can two instances run side by side (ports, data dirs, profiles)? If not, say so in the generated skill: refusing to double-drive a shared instance beats corrupting the user's session.
20
+
21
+ If the checkout doesn't build or start as-is, fix that first (or report it precisely) before generating; a skill written against a broken base teaches wrong steps. When an irrelevant missing asset blocks startup (a static dir the API never serves, a sample config), the generated skill may create it, clearly marked as verification scaffolding, and remove it in cleanup.
22
+
23
+ ## 2. Generate the skill
24
+
25
+ Write `.opencode/skills/verify-<app>/SKILL.md` with YAML frontmatter (`name: verify-<app>` and a `description` that names the app, the surface, and when to reach for it — without frontmatter the skill never registers) and these sections, each grounded in what the interview actually found (no placeholders left):
26
+
27
+ - **Launch:** the exact command that starts the app for verification, and how to tell it's ready (a log line, a prompt). Launch must reach a usable state from an empty data dir, including any migrations and seed data. Ready means usable, not just that a process answers. A database health check can pass while its init scripts are still running. Include teardown. For a short-lived CLI or TUI there is no server to keep alive: launch means build the binary (or install deps) once, then start each drive in its own isolated PTY or tmux session.
28
+ - **Doctor:** one read-only check that answers "is this instance worth driving?" — process up, right version/build, port owned by us, auth valid. An agent runs this first whenever anything looks off.
29
+ - **Drive:** the harness recipe with real selectors/commands from this repo, not examples. Prefer stable handles (ARIA labels, data attributes, prompt strings, route paths) over coordinates and tab order.
30
+ - **Evidence:** what to capture for a proof and where it goes. State the proof standards: exercise the real user path, not internal setters or test-only endpoints; capture the action and the resulting state, not just the final screen; verify side effects (files written, rows inserted, messages sent) alongside what's visible; mocks only where a production boundary already isolates the external system. When the safe path is a dry-run or test mode, verify what it actually skips by observing (files, network, git refs) rather than trusting its name: some dry-runs still touch the network or open a browser.
31
+ - **Cleanup:** how to tear down instances the run created. Never kill by process name; kill what you started. Cleanup removes instances and scratch state, never the evidence: proof artifacts survive the teardown, in a location the skill names.
32
+ - **Helpers:** any script the skill ships is executable and its invocation is shown in the skill body. A helper the reader has to reverse-engineer is not a helper.
33
+
34
+ ## 3. Seed the feature map
35
+
36
+ Create `.opencode/skills/verify-<app>/features/README.md` plus one file per user-facing feature you can identify (aim for the top 3-5 to start, from routes, commands, menus, or docs). Follow the shape in [`references/feature-map-example/`](references/feature-map-example/), with a README index and one file per feature. Each file answers, from the user's point of view: what the feature is, how to reach it, how to drive it with the harness, and what observable end state proves it works. The four H2s are `Sub-features`, `How to get to it (user POV)`, `Driving it with <harness>`, and `Gotchas`. If the seed data lacks a precondition that a journey needs, the journey reports a failure and the reason goes in that feature's `Gotchas`. Never weaken the journey to make it pass. The map is the repo's maintained verification source; a proof that drives one convenient entry point is incomplete when the map lists others.
37
+
38
+ ## 4. Prove the generated skill before handing it over
39
+
40
+ Run its own instructions end to end once: launch, doctor, drive ONE mapped feature (one is enough; the map exists so later runs can cover the rest), capture evidence, clean up. After cleanup, confirm the evidence still exists at the named location — a cleanup that eats the proof fails this step. Fix what fails, and run the generated cleanup after every failed iteration too, so broken attempts don't strand processes and ports. A generated skill that was never executed is a draft, not a deliverable. If you proved it in a stand-in for the real target (a container in place of a fresh VM, a local stack in place of a remote one), list every setup step the stand-in did that the target will not. Those steps stay unverified until a run on the real target covers them.
41
+
42
+ ## 5. Offer the maintenance loop
43
+
44
+ Point the user at `/maintain-verification-skill` for keeping the map honest as the app changes. Suggest a cadence only if they ask.
@@ -0,0 +1,47 @@
1
+ # Notes verification map
2
+
3
+ This directory is the maintained source for verifying the user-facing behavior of Notes. Read the index before driving the app, then use the matching feature file as the recipe.
4
+
5
+ ## Baseline preconditions
6
+
7
+ - Launch Notes at `http://127.0.0.1:4173` with a disposable data directory.
8
+ - Set `NOTES_DATA_DIR=/tmp/notes-verify-$RUN_ID` so concurrent runs do not share state.
9
+ - Seed notes titled `Quarterly plan` and `Grocery list`.
10
+ - Put `control-notes` and the `notes` CLI on `PATH`.
11
+ - Run `control-notes doctor` and require the expected URL, data directory, and build revision.
12
+ - Never drive an instance that was not started by this verification run.
13
+
14
+ ## Driving conventions
15
+
16
+ - Start every recipe from the baseline state unless its preconditions say otherwise.
17
+ - Prefer ARIA roles and accessible names over CSS selectors or DOM position.
18
+ - Treat every command as literal. Keep quoted names and flags unchanged.
19
+ - Run browser actions through `control-notes browser`.
20
+ - Run terminal actions through `control-notes cli -- <command>`.
21
+ - Restore seeded data after a mutation. Do not remove proof artifacts during cleanup.
22
+
23
+ ## Proof and skip reporting
24
+
25
+ - Capture the user action and the resulting state, not only the final screen.
26
+ - UI proof includes an ARIA snapshot and a screenshot with the app identity visible.
27
+ - CLI proof includes the command, stdout, stderr, and exit code.
28
+ - Mutation proof includes a read-only second view of the stored value.
29
+ - Record the feature ID and entry point used with every artifact.
30
+ - Report an unreachable path with the attempted command and the unmet precondition.
31
+ - Do not report a skipped entry point as verified through a different path.
32
+
33
+ ## Feature entry contract
34
+
35
+ Each feature file starts with an H1 title and one paragraph describing the user-visible behavior. It then uses exactly four H2 sections in this order.
36
+
37
+ 1. `Sub-features` lists short IDs with one line for each behavior.
38
+ 2. `How to get to it (user POV)` lists every user entry point.
39
+ 3. `Driving it with <harness>` starts with `Preconditions:` and uses labeled bullets that pair each user action with an exact command and observable result.
40
+ 4. `Gotchas` lists traps that can waste or invalidate a verification run.
41
+
42
+ Keep implementation details out of the map. Name only user paths, stable handles, required state, commands, and observable proof.
43
+
44
+ ## Features
45
+
46
+ - [Create a note](./create-note.md) covers browser and CLI creation, cancellation, persistence, and cleanup.
47
+ - [Search notes](./search.md) covers toolbar, keyboard, and CLI search with matching, empty, and clear states.
@@ -0,0 +1,39 @@
1
+ # Create a note
2
+
3
+ Create note lets a user save a titled note from the browser or CLI, cancel an unfinished draft, and confirm the saved note from a second user-facing view.
4
+
5
+ ## Sub-features
6
+
7
+ - `create-open` opens a blank editor from each browser entry point.
8
+ - `create-save` persists a title and body.
9
+ - `create-cancel` discards an unfinished browser draft.
10
+ - `create-cli` creates the same note shape from the terminal.
11
+
12
+ ## How to get to it (user POV)
13
+
14
+ - Choose the `New note` button in the browser toolbar.
15
+ - Press `n` in the browser while focus is outside an editable field.
16
+ - Run `notes create --title <title> --body <body>` in a terminal.
17
+
18
+ ## Driving it with control-notes
19
+
20
+ Preconditions:
21
+
22
+ - Notes is healthy at `http://127.0.0.1:4173`.
23
+ - No note is titled `Release checklist`.
24
+ - `control-notes doctor` reports the expected URL and disposable data directory.
25
+
26
+ - **Open editor.** Choose `New note`. Run `control-notes browser click --role button --name "New note"`. A form named `Note editor` appears with focus in the `Title` textbox.
27
+ - **Enter content.** Type the title and body. Run `control-notes browser fill --role textbox --name "Title" --value "Release checklist"` and `control-notes browser fill --role textbox --name "Body" --value "Tag and publish"`. The `Save note` button becomes enabled.
28
+ - **Save note.** Choose `Save note`. Run `control-notes browser click --role button --name "Save note"`. A status named `Note saved` appears and the heading reads `Release checklist`.
29
+ - **Confirm persistence.** Return to the note list and reopen the note. Run `control-notes browser click --role link --name "All notes"` and `control-notes browser click --role link --name "Release checklist"`. The editor shows both saved values.
30
+ - **Cancel draft.** Open a new note, enter `Discard me`, and choose `Cancel`. Run `control-notes browser click --role button --name "New note"`, `control-notes browser fill --role textbox --name "Title" --value "Discard me"`, and `control-notes browser click --role button --name "Cancel"`. The note list returns and has no `Discard me` link.
31
+ - **CLI entry.** Create a second note. Run `control-notes cli -- notes create --title "CLI note" --body "Created from terminal" --format json`. Exit code `0` and stdout contain the new note ID and title.
32
+ - **Proof.** Reopen both saved notes from `All notes`. Run `control-notes browser snapshot --aria --path artifacts/create-note/list.aria.txt` and `control-notes browser screenshot --path artifacts/create-note/list.png`. The artifacts show `Release checklist` and `CLI note`.
33
+
34
+ ## Gotchas
35
+
36
+ - Pressing `n` while a textbox has focus types the character instead of opening a new editor.
37
+ - Titles are trimmed on save. Assert the rendered title, not the draft input value.
38
+ - A save status alone is insufficient proof. Reopen the note from the list.
39
+ - Remove `Release checklist` and `CLI note` during fixture cleanup, but retain their proof artifacts.
@@ -0,0 +1,45 @@
1
+ # Search notes
2
+
3
+ Search lets a user find notes by title or body text, inspect a matching note, and distinguish no matches from an unavailable search.
4
+
5
+ ## Sub-features
6
+
7
+ - `search-open` opens search from each supported browser entry point.
8
+ - `search-match` returns title and body matches without changing note data.
9
+ - `search-open-result` opens a result in the note editor.
10
+ - `search-empty` shows a complete empty state for a query with no matches.
11
+ - `search-clear` removes the query and restores the recent-notes view.
12
+ - `search-cli` returns the same matching notes from the terminal.
13
+
14
+ ## How to get to it (user POV)
15
+
16
+ - Choose the `Search` button in the browser toolbar.
17
+ - Press `/` in the browser while focus is outside an editable field.
18
+ - Run `notes search <query>` in a terminal.
19
+
20
+ ## Driving it with control-notes
21
+
22
+ Preconditions:
23
+
24
+ - Notes is healthy at `http://127.0.0.1:4173`.
25
+ - The disposable data directory contains `Quarterly plan` with body text `Draft budget`.
26
+ - `control-notes doctor` reports the expected URL and data directory.
27
+
28
+ - **Toolbar entry.** Choose the `Search` button. Run `control-notes browser click --role button --name "Search"`. A dialog named `Search notes` appears with focus in its searchbox.
29
+ - **Keyboard entry.** Close the dialog, focus the page, and press `/`. Run `control-notes browser press --key "/"`. The same dialog appears and the page does not insert a slash.
30
+ - **Title match.** Type `quarterly`. Run `control-notes browser fill --role searchbox --name "Search notes" --value "quarterly"`. The `Search results` list contains `Quarterly plan` and does not contain `Grocery list`.
31
+ - **Body match.** Replace the query with `budget`. Run `control-notes browser fill --role searchbox --name "Search notes" --value "budget"`. The result `Quarterly plan` remains visible with a body-match excerpt.
32
+ - **Open result.** Choose `Quarterly plan`. Run `control-notes browser click --role link --name "Quarterly plan"`. The dialog closes and the editor heading reads `Quarterly plan`.
33
+ - **Empty state.** Reopen search and enter `volcano`. Run `control-notes browser fill --role searchbox --name "Search notes" --value "volcano"`. A status named `No matching notes` appears after search completes.
34
+ - **Clear query.** Choose `Clear search`. Run `control-notes browser click --role button --name "Clear search"`. The searchbox is empty and the `Recent notes` region replaces the result list.
35
+ - **CLI match.** Search from the terminal. Run `control-notes cli -- notes search "quarterly" --format json`. Exit code `0` and stdout contain one object whose title is `Quarterly plan`.
36
+ - **CLI miss.** Search for an absent value. Run `control-notes cli -- notes search "volcano" --format json`. Exit code `0` and stdout are `[]`.
37
+ - **Proof.** Capture the populated result state. Run `control-notes browser snapshot --aria --path artifacts/search/results.aria.txt` and `control-notes browser screenshot --path artifacts/search/results.png`. Both artifacts identify Notes, the query, and `Quarterly plan`.
38
+
39
+ ## Gotchas
40
+
41
+ - Pressing `/` while the editor or searchbox has focus inserts text instead of opening search.
42
+ - Results update after a short debounce. Wait for the results list or empty status, not a fixed sleep.
43
+ - Archived notes are excluded unless the user enables `Include archived`.
44
+ - The CLI defaults to human-readable output. Use `--format json` for stable assertions.
45
+ - Opening a result changes browser state. Reopen search before proving another query.
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: deslop
3
+ description: Remove AI-generated code slop and clean up code style
4
+ ---
5
+
6
+ # Remove AI code slop
7
+
8
+ Check the diff against main and remove AI-generated slop introduced in the branch.
9
+
10
+ ## Focus Areas
11
+
12
+ - Extra comments that are unnecessary or inconsistent with local style
13
+ - Defensive checks or try/catch blocks that are abnormal for trusted code paths
14
+ - Casts to `any` used only to bypass type issues
15
+ - Deeply nested code that should be simplified with early returns
16
+ - Other patterns inconsistent with the file and surrounding codebase
17
+
18
+ ## Guardrails
19
+
20
+ - Keep behavior unchanged unless fixing a clear bug.
21
+ - Prefer minimal, focused edits over broad rewrites.
22
+ - Keep the final summary concise (1-3 sentences).
@@ -0,0 +1,52 @@
1
+ ---
2
+ name: figure-it-out
3
+ description: "Design an auditable playbook when no narrower one fits: a large migration, an ambitious multi-part change, or work a human reviews after stepping away. Scales rigor to the task, runs a hypothesis loop, and logs decisions. Use for /figure-it-out or 'figure it out'."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Figure it out
8
+
9
+ When the task matches no playbook, design one. The deliverable before any code is the workflow itself: a sequence of phases that scales rigor to the task, runs the scientific method, and leaves a decision trail a human can audit after stepping away.
10
+
11
+ ## Start
12
+
13
+ Open a todo list with `todowrite` whose first item is to read the Principles section of the `poteto-mode` skill. Then add the phases below as todos.
14
+
15
+ ## Phase A: Frame
16
+
17
+ Ground first, then commit. Don't start the run until you can state:
18
+
19
+ - The definition of done as a falsifiable predicate (the `principle-prove-it-works` skill).
20
+ - Scope, quantified: rough units and effort, plus the blockers grounding surfaced.
21
+ - The rigor level, biased high. One-way doors and high blast radius get more. Reversible low-stakes steps get less. Rigor is gates and artifacts, not "try harder".
22
+
23
+ Present the framing and tradeoffs before committing to a long run. Reversible work proceeds (the `principle-never-block-on-the-human` skill), but a multi-hour run earns one checkpoint.
24
+
25
+ ## Phase B: Design the workflow
26
+
27
+ Decompose into atomic, independently-landable units. Sequence riskiest-unknown-first. Scaffold and verification come before features (the `principle-foundational-thinking` skill).
28
+
29
+ - Build the verification harness before the work, with the baseline captured from the pre-change state, so the check reads as "old value vs new value".
30
+ - For one-way-door design decisions, load and run the `architect` skill (it runs the `arena` skill). Skip it for mechanical work whose shape is already concrete. A second arena over a settled design is over-engineering (the `principle-laziness-protocol` skill).
31
+ - Decide what fans out. Parallelize only across seams, and give each worker its own worktree or branch (the `principle-separate-before-serializing-shared-state` skill). Don't over-fan. Pick each subagent's reasoning level for the job, per the Subagents section of the `poteto-mode` skill.
32
+ - Write the designed phase list down. That list is what the human reviews.
33
+
34
+ Then execute the design. Add its steps to the todo list as concrete items between the Phase C and Phase D entries. Run each under the Phase C loop discipline, and weave the Phase D log through them, a row as each step lands, rather than saving the whole trail for the end.
35
+
36
+ ## Phase C: Run the loop
37
+
38
+ Each unit is an experiment. State the hypothesis, make the smallest change, measure against the predicate on the real artifact, keep it if it advanced, revert it if it didn't. Apply the `principle-sequence-verifiable-units` skill, verifying each unit before starting the next instead of batching checks at the end.
39
+
40
+ - Verify by inspecting the artifact, never a self-report. When something passes too easily, suspect the observation method before the system.
41
+ - Pair delegated work with a judge. If a worker games the gate, reset and harden the contract. If the gate itself is wrong, fix the gate in its own change rather than routing around it.
42
+ - A verdict is VERIFIED, NOT VERIFIED, or INCONCLUSIVE. Inconclusive is not a pass. Don't hide a negative.
43
+
44
+ ## Phase D: Keep the audit trail
45
+
46
+ Load the `show-me-your-work` skill and log the run with it. figure-it-out's work is usually ambitious enough to commit the trail so the reviewer can read it in the PR. The trail plus the diff is what lets the human come back and trust the work.
47
+
48
+ ## Phase E: Verify and hand back
49
+
50
+ Check the whole against the Phase A predicate on the real product, not just the harness. Encode any recurring correction as a gate, a lint rule, a check, or a script (the `principle-encode-lessons-in-structure` skill).
51
+
52
+ **Reply:** the playbook you designed, the rigor level and why, the decision-trail path, what's verified against the predicate, and what's still open.
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: how
3
+ description: "Use for \"how does X work\", code walkthroughs before changing something, and placement / ownership / layering questions (\"where should this live\", \"which package owns this\", \"is this the right layer\"). Explains subsystem architecture, runtime flow, onboarding mental models. Use why for motivation."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # How
8
+
9
+ Explore the codebase to answer "how does X work?" questions. Produce architectural explanations at the level of a senior engineer onboarding onto a subsystem, enough to build a working mental model, not so much that it reads like annotated source code.
10
+
11
+ Every spawn is a `subagent` call with `agent: "explore"`, which reads, searches, and runs `shell` but cannot edit. Each brief says "do not edit files", and you check `git status` after the spawns return. Explorers use the `how explorer` line in the `pstack-models` instruction entry (default `<provider>/grok-4.7#xhigh`), and every explainer uses the `how explainer` line (default `<provider>/claude-opus-5-5#xhigh`). Set `model` to that line's value, or to the default if the entry or the line is missing. A default's `<provider>` is one that lists the model. If none does, omit `model` and say so. Leave `model` unset when the value is `auto` or `inherit-parent`. If the `subagent` tool rejects a value, use the default and say so. If it rejects the default, use the closest listed model of the same family (`opencode models`), or omit `model` so the child runs on the parent model, and say which. Pick each subagent's reasoning level for the job, per the Subagents section of the `poteto-mode` skill.
12
+
13
+ ## 1. Assess complexity
14
+
15
+ If the scope is ambiguous, state your interpretation and explore. The user can redirect.
16
+
17
+ - **Simple** (a single module, a small utility, a narrow question such as "how does function X work"): no explorers. Spawn one explainer that explores and explains in one pass, built from `references/explainer-prompt.md` without the explorer-findings section. Go to step 4.
18
+ - **Complex** (a subsystem spanning multiple files or services, a cross-cutting feature, a full architectural overview): go to step 2.
19
+
20
+ When in doubt, take the simple path.
21
+
22
+ ## 2. Explore (complex only)
23
+
24
+ Decompose the question into 2 to 4 angles, each a distinct slice of the subsystem. Spawn all explorers in a single message, each with `references/explorer-prompt.md` and its angle filled in.
25
+
26
+ ## 3. Synthesize (complex only)
27
+
28
+ Once all explorers have returned, spawn one explainer with `references/explainer-prompt.md` and every explorer's findings filled in.
29
+
30
+ ## 4. Present
31
+
32
+ Present the explainer's output. Light edits for clarity or context from the conversation are fine. Do not substantially rewrite it.
33
+
34
+ ## Output format
35
+
36
+ The explanation uses the sections defined in `references/explainer-prompt.md`, dropping any that do not apply: Overview, Key Concepts, How It Works, Where Things Live, Gotchas.
@@ -0,0 +1,55 @@
1
+ # Explainer Prompt Template
2
+
3
+ Build the explainer subagent's prompt from this template. Fill in the placeholders.
4
+
5
+ ---
6
+
7
+ You are writing an architectural explanation for a senior engineer. Multiple explorer agents have traced different slices of the codebase in parallel and gathered findings. Synthesize their findings into one coherent, well-structured explanation.
8
+
9
+ ## Original Question
10
+
11
+ > {QUESTION}
12
+
13
+ ## Explorer Findings
14
+
15
+ {EXPLORER_FINDINGS_ALL}
16
+
17
+ ## Instructions
18
+
19
+ The explorers each investigated a different angle of the same subsystem. Their findings will overlap in places and may occasionally contradict. Reconcile them. Merge overlapping descriptions, resolve contradictions by checking the code yourself, and combine the separate slices into a unified picture.
20
+
21
+ Write an explanation a senior engineer unfamiliar with this area could read and walk away with a solid mental model, understanding the architecture well enough to start working in it confidently.
22
+
23
+ You have read-only access to the codebase to check anything, clarify a detail, or fill a gap. Use Read, Grep, and Glob as needed. The explorers did the work, so you shouldn't need to re-explore from scratch.
24
+
25
+ ## Output Format
26
+
27
+ Use this structure, adapted to what makes sense for the question. Not every section is needed for every question.
28
+
29
+ ### Overview
30
+ 1-2 paragraphs. What is this thing, what does it do, why does it exist. Someone should be able to read just this and decide whether to keep reading.
31
+
32
+ ### Key Concepts
33
+ The important types, services, or abstractions needed to follow the rest. Brief definitions, not exhaustive.
34
+
35
+ ### How It Works
36
+ The core of the explanation, and the longest section. Walk through the flow: what triggers it, what happens step by step, where data goes, what the decision points are.
37
+
38
+ Use prose, not pseudocode. Reference specific files and functions so the reader knows where to look, but don't dump large code blocks unless a snippet is essential to a point.
39
+
40
+ When the flow involves multiple components talking to each other, or data transforming through stages, include a diagram. Use mermaid (```mermaid) for structured flows (sequence diagrams, flowcharts, component graphs) or ASCII art for simpler relationships where mermaid would be overkill. Use your judgment. A diagram should clarify, not decorate. If prose covers the flow, skip the diagram.
41
+
42
+ ### Where Things Live
43
+ A brief file/directory map. Just the ones someone would need to start working here.
44
+
45
+ ### Gotchas
46
+ Non-obvious things, surprising behavior, historical context, pitfalls. Skip this section if there's nothing worth calling out.
47
+
48
+ ## Communication Style
49
+
50
+ - Use concrete language, not abstractions-about-abstractions
51
+ - Say "the `UserService` calls `AuthClient.refresh()`" not "the service delegates to the client"
52
+ - When something is complex, explain why it's complex. Don't just describe the complexity
53
+ - When something is simple, don't pad it out
54
+ - If there's a helpful analogy, use it. If there isn't, don't force one
55
+ - If the explorers flagged open questions or gaps, acknowledge them rather than hiding them
@@ -0,0 +1,35 @@
1
+ # Explorer Prompt Template
2
+
3
+ Build each explorer subagent's prompt from this template. Fill in the placeholders.
4
+
5
+ ---
6
+
7
+ Other explorers are investigating different slices of the same subsystem in parallel. Don't try to cover everything. Focus on your assigned angle and go deep.
8
+
9
+ ## Question
10
+
11
+ > {QUESTION}
12
+
13
+ ## Your Exploration Angle
14
+
15
+ {EXPLORATION_ANGLE}
16
+
17
+ ## Output
18
+
19
+ ### Components Found
20
+ The key types, services, classes, and abstractions. For each: name, file path, and a one-sentence description of what it does.
21
+
22
+ ### Flow
23
+ The execution flow step by step. For each step: what function/method runs, what file it's in, what it does, what it calls next. Include the data that flows between steps.
24
+
25
+ ### Files Read
26
+ Every file you read during exploration, so the explainer can reference them.
27
+
28
+ ### Boundaries
29
+ Where this subsystem connects to other parts of the codebase. The inputs and outputs.
30
+
31
+ ### Non-Obvious Things
32
+ Anything surprising, historically motivated, or easy to get wrong. Things that look like they should work one way but work another.
33
+
34
+ ### Open Questions
35
+ Anything you couldn't fully trace or understand. Be honest about gaps.
@@ -0,0 +1,7 @@
1
+ ---
2
+ name: in-your-own-words
3
+ description: "Restate in your own words what you think the user's goals are and what problem they're trying to solve. Use for /in-your-own-words."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ Restate in your own words what you think the user's goals are and what problem they're trying to solve.
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: interrogate
3
+ description: "Use for \"interrogate\", \"adversarial review\", \"multi-model review\", \"challenge this\", \"stress test this code\", \"find blind spots\", or \"tear this apart\". Adversaries try to break a change or design, and only findings proven by a run survive."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Interrogate
8
+
9
+ Adversaries try to break a change or a design. A finding survives only when a run proves it. Report the findings. Do not apply fixes.
10
+
11
+ ## Frame
12
+
13
+ The scope is what the user names. Otherwise it is the branch diff from its merge base with the base branch, through the working tree. Load the `in-your-own-words` skill with the `skill` tool and state the intent with it, from the user's message, the commits, and the PR description. Ask the user when the intent is unclear.
14
+
15
+ ## Fan out
16
+
17
+ Load the `arena` skill and run its Phase A steps 3 and 4 and Phase B, with four changes. Read the `interrogate reviewers` line in place of `arena runners`. Copy the scope's uncommitted changes into each worktree. Spawn each adversary with `agent: "general"`. In place of the arena task and rationale, give each adversary the scope, the intent, and this brief:
18
+
19
+ > Break this change. Prove each finding with a run against the real code, such as a failing test, a repro script, or command output that shows the wrong behavior. For a design or plan, run a prototype or probe the current tree. Keep repros in your own worktree. Report each finding with a title, the exact command, the output it printed, and the output the intent requires. Leave out anything you did not run. That covers style, naming, structure, and risks that need a future change to matter. No findings is a valid result.
20
+
21
+ ## Verify
22
+
23
+ Verify each finding per arena Phase F by rerunning its command. Keep a finding when the output shows the failure and the failure breaks the intent. Drop the rest. Merge findings that share a root cause.
24
+
25
+ Skip arena Phases C, D, and E. Adversaries find different failures, so the verdict keeps every verified finding, not one adversary's list.
26
+
27
+ ## Output
28
+
29
+ - **Intent**: the restatement.
30
+ - **Findings**: for each verified finding, the command, its output, how it breaks the intent, and the adversaries that found it. Say "no verified findings" when none survive.
31
+ - **Dropped**: for each adversary, the count of dropped findings and why.
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: ketchup
3
+ description: "Catch the user up on what changed in this chat since their last message, in plain words and small visuals. List every item waiting on them with what they need to decide it from the reply alone. Use for /ketchup."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Ketchup
8
+
9
+ Catch the user up on what changed in this chat since the last message they wrote before `/ketchup`, and help them understand each change, not only where it stands. Then lay out every call waiting on them so they can make it from your reply alone. Notifications and subagent results are not their messages. Assume the user remembers their last message and nothing after it.
10
+
11
+ Use the [`bro`](../bro/SKILL.md) skill's voice, not its task: plain words, short sentences, no jargon, like one person catching up another. Say what changed for the user, not how you did it. Say "the tests pass", not "CI is green". Leave out hashes, file paths, commands, build numbers, and test counts unless the user needs one to act. Call each PR, branch, or agent by a name the user would know, not by a label you invented. If a fact needs context to make sense, give the context or leave the fact out.
12
+
13
+ ## Gather what changed
14
+
15
+ Keep this turn read-only. Make visuals only from what you already have: do not change code, start an app or a job, or post anything. Collect your own work since that message, reports from subagents, and messages from anyone else in this chat. Check the current state of each PR, CI run, or agent this chat touched. Check each number you will show against the facts it comes from, and say so when you correct one.
16
+
17
+ An action item is a call or step only the user can take, such as a product choice, an approval, an irreversible action, or access you lack. Include any still waiting on the user, even one raised before their last message. Work you can still do yourself is not an action item. Never make up a call to fill the reply. A step the user did not ask for and the work does not need is not an action item, unless it is irreversible and waiting on the user: give it one line and no visual.
18
+
19
+ One call can cover many items, such as each PR in a set awaiting merge. For each item, collect its link, what it changes for users, the evidence behind your pick, its risk, and your pick. Write "unknown" for a fact the call needs that you do not know. Leave out a link you do not have.
20
+
21
+ ## Write the reply
22
+
23
+ Spend words on the calls, not on the story. Keep what happened under 100 words, not counting pictures, and shorter when less happened. Leave out work that changed nothing for the user. Give each item about 30 words. The reply grows with the number of items: two items need well under 150 words in all, not counting pictures, and thirty need far more. Never cut items or shrink them to stay under a word count: no count in place of a list, and no link in place of an item. A link can add depth, but the reply alone must be enough to decide.
24
+
25
+ Open with one short sentence that names what waits on the user, or says nothing does. The action items give the detail. If nothing happened and nothing waits on the user, say so and stop.
26
+
27
+ Then show what happened, pictures first. Embed inline the screenshots and videos the work produced, then any diagram that explains a change. Then sum up in one short bullet per thing the user asked for: what came of it, and whether it is done, still running, failed, or not checked. Write each line the way you would say it out loud: "Search was slow from a missing index", not "Search review: done" or "Slow search: missing index". Name any bug found and fixed on the way. Each line must stay true when read alone. Never mark something done that still waits on the user, and leave out anything the action items say. Under the summary, give at most three short lines that change what the user knows or must do. Then name in one line any work left that you can do yourself.
28
+
29
+ Then list the action items. Ask the call the user owns, such as merge, approve, or pick, and give your pick. A step you would take first goes in your pick. So does anything that must happen first, and anything that cannot be undone. Give the number or link of each PR, issue, or agent a call is about, also in a call between options.
30
+
31
+ Fit the shape to the call. A call about one item is one bullet: the call, your pick, what it changes for users, the evidence behind your pick, and its risk, with the item named once. When items share a call, write the call and your pick once, then give each item its own bullet, riskiest first: its link and name, what it changes for users, the evidence behind your pick, and its risk. Name an item's pick only where it differs from the call's. Give each item's risk even when it is low, such as "Low risk: only the colors change." Say what waiting costs only when it is more than a delay, such as a deadline or lost data.
32
+
33
+ For a call between options, give every option the work weighed, each with what it gets the user and what it costs, and the current state when there is one. Those costs are the call's risk, so add no separate risk line. When the screenshots above show the options, write each option's gain and cost under its screenshot.
34
+
35
+ ## Visuals
36
+
37
+ A visual is a picture: a screenshot, a video, a Mermaid diagram, a chart you render to an image file, or a generated image. A Markdown table is not a visual, even with before and after columns.
38
+
39
+ When something is easier to grasp as a picture than as sentences, draw it: how a design or system works, a PR stack or dependency chain with each PR's state, a before and after of a fix, or options side by side. Never draw a status list, a list of action items, or boxes with nothing connecting them. Never give a fact twice, in text or across visuals.
40
+
41
+ Keep each visual small enough to read at a glance: at most six boxes, with at most eight words in each. Write labels as plain words a person would say, not tags like "Tests: pass". A fact that needs a sentence belongs in the text, or nowhere.
42
+
43
+ Embed screenshots and videos inline when the change is visible, not only as links. If a visible change has none, mark its summary line "No screenshot yet," and say there what changed on screen. Draw diagrams and charts from facts you have: a Mermaid diagram for how things connect and a chart rendered to an image for numbers. Never invent a number, and never draw or generate a picture of a screen you did not capture. Link only artifacts that exist.
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: ketchup-video
3
+ description: "Catch the user up like the ketchup skill, with a short subtitled video of slides for what happened and the waiting calls as text under it. Use for /ketchup-video."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Ketchup video
8
+
9
+ Follow the [`ketchup`](../ketchup/SKILL.md) skill, but show what happened in a short subtitled video instead of its summary and visuals. Its window starts at the last message the user wrote before `/ketchup-video`, not before any earlier `/ketchup`. Writing and rendering the video, outside the repo, is the one exception to its read-only rule. The reply is ketchup's opening sentence, the embedded video, one line naming any work left that you can do yourself, and the action items. When the video shows a call's options, call each option by the name the video gives it. If the render fails, say so in one line and give only the calls.
10
+
11
+ ## Slides
12
+
13
+ Use the screenshots, recordings, diffs, and data the work produced, not the chat's prose about them. Before you draw, write the one sentence the user should leave with and one line per slide. Drop each slide that does not change what the user knows. Use at most 10 slides, and fewer is better. Neither note goes in the reply.
14
+
15
+ Each slide makes one point. Build the slides on one picture and change it from slide to slide, rather than cut to an unrelated one. A color or shape means the same thing on every slide. Show the work in pictures, such as how a system works, a PR stack with each PR's state, a before and after of a fix, or options side by side. Point at what changed with arrows, highlights, and motion. A slide is never a bullet list, a status list, a table, or boxes with nothing connecting them.
16
+
17
+ Keep text to the minimum. Put each label on the thing it names, in plain words a person would say, not tags like "Tests: pass". Never caption what a picture shows, and never give a fact twice, across slides or in the text under them.
18
+
19
+ Show what came of each thing the user asked for, and whether it is done, still running, failed, or not checked. Never show something done that still waits on the user. Show any bug found and fixed on the way. If a visible change has no screenshot, say so on its slide and name what changed on screen. Draw only from facts you have. Never invent a number, and never draw a screen you did not capture.
20
+
21
+ ## Subtitles
22
+
23
+ Give each slide one short subtitle line, about ten words, that says its point the way you would tell the user, from only what that slide shows. Say what the picture means rather than read out its labels. Put the subtitle in a strip below the slide, the same height on every slide and empty except for the subtitle, so it never covers the slide. Set it small, but readable when the video plays at chat size.
24
+
25
+ ## Render
26
+
27
+ Render one silent landscape video, such as an mp4, with motion between slides. Every frame is the slide itself, edge to edge, above its subtitle strip. Make the frames from the slides, never by recording a screen, and burn each subtitle into its slide's frames so it stays on screen for the slide's whole hold. The hold is the time a slide is fully on screen, not counting the motion into or out of it. Hold each slide long enough to read the words it adds, at least one second for each three words. A slide adds its subtitle and each word that was not on the slide before it, including a label it changes. The first slide adds all its words. Words inside a screenshot do not count.
28
+
29
+ Before you embed the video, check the rendered file. Look at one frame from each slide at chat size, and check that its subtitle is readable and covers nothing. Measure each hold by matching the file's frames to the slide, not with a still-frame detector, which counts the faint ends of a fade as still. Count the words each slide adds against its measured hold. Fix any slide you cannot read in that time, render again, and check again.