@giljae/opencode-pstack 0.0.0-stage → 0.0.1

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 (551) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +10 -0
  3. package/README.md +176 -2
  4. package/package.json +42 -4
  5. package/src/agents.ts +110 -0
  6. package/src/commands.ts +37 -0
  7. package/src/content.ts +119 -0
  8. package/src/host.ts +59 -0
  9. package/src/index.ts +21 -0
  10. package/src/install.ts +22 -0
  11. package/src/models.ts +112 -0
  12. package/src/pstack-setup.ts +111 -0
  13. package/src/setup.ts +42 -0
  14. package/src/skills.ts +24 -0
  15. package/vendor/pstack/LICENSE.upstream +21 -0
  16. package/vendor/pstack/README.upstream.md +290 -0
  17. package/vendor/pstack/UPSTREAM.json +545 -0
  18. package/vendor/pstack/agents/comment-sicko.md +32 -0
  19. package/vendor/pstack/agents/poteto-agent.md +10 -0
  20. package/vendor/pstack/docs/guide/01-setup.md +66 -0
  21. package/vendor/pstack/docs/guide/02-poteto-mode.md +139 -0
  22. package/vendor/pstack/docs/guide/03-understand.md +79 -0
  23. package/vendor/pstack/docs/guide/04-design.md +127 -0
  24. package/vendor/pstack/docs/guide/05-build-and-clean.md +83 -0
  25. package/vendor/pstack/docs/guide/06-verify-and-ship.md +162 -0
  26. package/vendor/pstack/docs/guide/07-overnight.md +122 -0
  27. package/vendor/pstack/docs/guide/08-principles.md +72 -0
  28. package/vendor/pstack/docs/guide/09-make-it-yours.md +100 -0
  29. package/vendor/pstack/docs/guide/10-recipes-and-pitfalls.md +182 -0
  30. package/vendor/pstack/docs/guide/README.md +38 -0
  31. package/vendor/pstack/docs/guide/images/design.jpg +0 -0
  32. package/vendor/pstack/docs/guide/images/overnight.jpg +0 -0
  33. package/vendor/pstack/docs/guide/images/recipes.jpg +0 -0
  34. package/vendor/pstack/docs/guide/images/router.jpg +0 -0
  35. package/vendor/pstack/docs/guide/images/understanding.jpg +0 -0
  36. package/vendor/pstack/docs/guide/images/verification.jpg +0 -0
  37. package/vendor/pstack/docs/harness/claude-code.md +68 -0
  38. package/vendor/pstack/skills/architect/SKILL.md +11 -0
  39. package/vendor/pstack/skills/arena/SKILL.md +48 -0
  40. package/vendor/pstack/skills/automate-me/SKILL.md +104 -0
  41. package/vendor/pstack/skills/benchmark-checklist/SKILL.md +39 -0
  42. package/vendor/pstack/skills/blast-radius/SKILL.md +50 -0
  43. package/vendor/pstack/skills/bro/SKILL.md +7 -0
  44. package/vendor/pstack/skills/correct/SKILL.md +32 -0
  45. package/vendor/pstack/skills/create-formal-verification-skill/SKILL.md +43 -0
  46. package/vendor/pstack/skills/create-verification-skill/SKILL.md +44 -0
  47. package/vendor/pstack/skills/create-verification-skill/references/feature-map-example/README.md +47 -0
  48. package/vendor/pstack/skills/create-verification-skill/references/feature-map-example/create-note.md +39 -0
  49. package/vendor/pstack/skills/create-verification-skill/references/feature-map-example/search.md +45 -0
  50. package/vendor/pstack/skills/figure-it-out/SKILL.md +52 -0
  51. package/vendor/pstack/skills/how/SKILL.md +21 -0
  52. package/vendor/pstack/skills/in-your-own-words/SKILL.md +7 -0
  53. package/vendor/pstack/skills/interrogate/SKILL.md +31 -0
  54. package/vendor/pstack/skills/ketchup/SKILL.md +43 -0
  55. package/vendor/pstack/skills/ketchup-video/SKILL.md +29 -0
  56. package/vendor/pstack/skills/maintain-formal-verification-skill/SKILL.md +58 -0
  57. package/vendor/pstack/skills/maintain-verification-skill/SKILL.md +39 -0
  58. package/vendor/pstack/skills/make-bot-ui/SKILL.md +115 -0
  59. package/vendor/pstack/skills/no-comments/SKILL.md +24 -0
  60. package/vendor/pstack/skills/poteto-help/SKILL.md +162 -0
  61. package/vendor/pstack/skills/poteto-help/references/prompting.md +51 -0
  62. package/vendor/pstack/skills/poteto-help/references/recipes.md +51 -0
  63. package/vendor/pstack/skills/poteto-mode/SKILL.md +110 -0
  64. package/vendor/pstack/skills/poteto-mode/playbooks/authoring-a-skill.md +12 -0
  65. package/vendor/pstack/skills/poteto-mode/playbooks/autonomous-run.md +13 -0
  66. package/vendor/pstack/skills/poteto-mode/playbooks/autopilot-full.md +25 -0
  67. package/vendor/pstack/skills/poteto-mode/playbooks/autopilot-stack.md +8 -0
  68. package/vendor/pstack/skills/poteto-mode/playbooks/babysit.md +10 -0
  69. package/vendor/pstack/skills/poteto-mode/playbooks/bug-fix.md +15 -0
  70. package/vendor/pstack/skills/poteto-mode/playbooks/eval.md +25 -0
  71. package/vendor/pstack/skills/poteto-mode/playbooks/feature.md +21 -0
  72. package/vendor/pstack/skills/poteto-mode/playbooks/hillclimb.md +21 -0
  73. package/vendor/pstack/skills/poteto-mode/playbooks/investigation.md +14 -0
  74. package/vendor/pstack/skills/poteto-mode/playbooks/multi-phase-plan.md +11 -0
  75. package/vendor/pstack/skills/poteto-mode/playbooks/opening-a-pr.md +9 -0
  76. package/vendor/pstack/skills/poteto-mode/playbooks/pause-safely.md +10 -0
  77. package/vendor/pstack/skills/poteto-mode/playbooks/perf-issue.md +25 -0
  78. package/vendor/pstack/skills/poteto-mode/playbooks/prototype.md +14 -0
  79. package/vendor/pstack/skills/poteto-mode/playbooks/refactoring.md +16 -0
  80. package/vendor/pstack/skills/poteto-mode/playbooks/runtime-forensics.md +11 -0
  81. package/vendor/pstack/skills/poteto-mode/playbooks/session-pickup.md +11 -0
  82. package/vendor/pstack/skills/poteto-mode/playbooks/shipping.md +12 -0
  83. package/vendor/pstack/skills/poteto-mode/playbooks/trace-forensics.md +14 -0
  84. package/vendor/pstack/skills/poteto-mode/playbooks/visual-parity.md +11 -0
  85. package/vendor/pstack/skills/poteto-mode/playbooks/worktree-cleanup.md +12 -0
  86. package/vendor/pstack/skills/poteto-mode/references/bugbot-triage.md +142 -0
  87. package/vendor/pstack/skills/poteto-mode/scripts/bootstrap.ts +62 -0
  88. package/vendor/pstack/skills/poteto-mode/scripts/bun.lock +67 -0
  89. package/vendor/pstack/skills/poteto-mode/scripts/package.json +16 -0
  90. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/cli.test.ts +224 -0
  91. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/cli.ts +223 -0
  92. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/fakes.test-helper.ts +129 -0
  93. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/github.test.ts +498 -0
  94. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/github.ts +726 -0
  95. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/policy.test.ts +482 -0
  96. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/policy.ts +842 -0
  97. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/render.ts +169 -0
  98. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/tsconfig.json +13 -0
  99. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/types.compile.ts +93 -0
  100. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/types.ts +414 -0
  101. package/vendor/pstack/skills/poteto-mode/scripts/watch-pr/watch-pr +6 -0
  102. package/vendor/pstack/skills/poteto-mode/scripts/worktree-audit.sh +134 -0
  103. package/vendor/pstack/skills/poteto-mode/worker.md +11 -0
  104. package/vendor/pstack/skills/principle-attack-the-premise/SKILL.md +15 -0
  105. package/vendor/pstack/skills/principle-boundary-discipline/SKILL.md +11 -0
  106. package/vendor/pstack/skills/principle-build-the-lever/SKILL.md +14 -0
  107. package/vendor/pstack/skills/principle-encode-lessons-in-structure/SKILL.md +11 -0
  108. package/vendor/pstack/skills/principle-exhaust-the-design-space/SKILL.md +9 -0
  109. package/vendor/pstack/skills/principle-experience-first/SKILL.md +19 -0
  110. package/vendor/pstack/skills/principle-explain-the-number/SKILL.md +14 -0
  111. package/vendor/pstack/skills/principle-fix-root-causes/SKILL.md +14 -0
  112. package/vendor/pstack/skills/principle-foundational-thinking/SKILL.md +13 -0
  113. package/vendor/pstack/skills/principle-guard-the-context-window/SKILL.md +12 -0
  114. package/vendor/pstack/skills/principle-laziness-protocol/SKILL.md +10 -0
  115. package/vendor/pstack/skills/principle-make-operations-idempotent/SKILL.md +15 -0
  116. package/vendor/pstack/skills/principle-migrate-callers-then-delete-legacy-apis/SKILL.md +14 -0
  117. package/vendor/pstack/skills/principle-minimize-reader-load/SKILL.md +15 -0
  118. package/vendor/pstack/skills/principle-model-the-domain/SKILL.md +15 -0
  119. package/vendor/pstack/skills/principle-never-block-on-the-human/SKILL.md +15 -0
  120. package/vendor/pstack/skills/principle-outcome-oriented-execution/SKILL.md +21 -0
  121. package/vendor/pstack/skills/principle-prove-it-works/SKILL.md +11 -0
  122. package/vendor/pstack/skills/principle-redesign-from-first-principles/SKILL.md +16 -0
  123. package/vendor/pstack/skills/principle-separate-before-serializing-shared-state/SKILL.md +11 -0
  124. package/vendor/pstack/skills/principle-sequence-verifiable-units/SKILL.md +13 -0
  125. package/vendor/pstack/skills/principle-subtract-before-you-add/SKILL.md +18 -0
  126. package/vendor/pstack/skills/principle-test-behavior-not-implementation/SKILL.md +16 -0
  127. package/vendor/pstack/skills/principle-type-system-discipline/SKILL.md +15 -0
  128. package/vendor/pstack/skills/recall/SKILL.md +35 -0
  129. package/vendor/pstack/skills/reflect/SKILL.md +17 -0
  130. package/vendor/pstack/skills/setup-pstack/SKILL.md +78 -0
  131. package/vendor/pstack/skills/sharpen/SKILL.md +16 -0
  132. package/vendor/pstack/skills/show-me-your-work/SKILL.md +82 -0
  133. package/vendor/pstack/skills/show-me-your-work/references/decision-log-template.tsv +1 -0
  134. package/vendor/pstack/skills/show-me-your-work/scripts/log.sh +42 -0
  135. package/vendor/pstack/skills/statechart/SKILL.md +82 -0
  136. package/vendor/pstack/skills/statechart/references/render.md +93 -0
  137. package/vendor/pstack/skills/statechart/scripts/backends/cfg.ts +33 -0
  138. package/vendor/pstack/skills/statechart/scripts/backends/mermaid.ts +249 -0
  139. package/vendor/pstack/skills/statechart/scripts/backends/plain-text.ts +72 -0
  140. package/vendor/pstack/skills/statechart/scripts/backends/report.ts +177 -0
  141. package/vendor/pstack/skills/statechart/scripts/frontends/config.ts +276 -0
  142. package/vendor/pstack/skills/statechart/scripts/frontends/dot.ts +74 -0
  143. package/vendor/pstack/skills/statechart/scripts/frontends/marks.ts +93 -0
  144. package/vendor/pstack/skills/statechart/scripts/frontends/messages.ts +52 -0
  145. package/vendor/pstack/skills/statechart/scripts/frontends/spec.ts +114 -0
  146. package/vendor/pstack/skills/statechart/scripts/frontends/trace.ts +24 -0
  147. package/vendor/pstack/skills/statechart/scripts/frontends/value.ts +166 -0
  148. package/vendor/pstack/skills/statechart/scripts/frontends/verdict.ts +40 -0
  149. package/vendor/pstack/skills/statechart/scripts/frontends/view.ts +119 -0
  150. package/vendor/pstack/skills/statechart/scripts/ir.ts +547 -0
  151. package/vendor/pstack/skills/statechart/scripts/package.json +11 -0
  152. package/vendor/pstack/skills/statechart/scripts/passes/annotate.ts +128 -0
  153. package/vendor/pstack/skills/statechart/scripts/passes/label.ts +269 -0
  154. package/vendor/pstack/skills/statechart/scripts/passes/lift.ts +85 -0
  155. package/vendor/pstack/skills/statechart/scripts/passes/loop-check.ts +68 -0
  156. package/vendor/pstack/skills/statechart/scripts/passes/paths.ts +60 -0
  157. package/vendor/pstack/skills/statechart/scripts/passes/reach.ts +135 -0
  158. package/vendor/pstack/skills/statechart/scripts/passes/region-check.ts +97 -0
  159. package/vendor/pstack/skills/statechart/scripts/passes/regions.ts +295 -0
  160. package/vendor/pstack/skills/statechart/scripts/pipeline.ts +76 -0
  161. package/vendor/pstack/skills/statechart/scripts/run.ts +506 -0
  162. package/vendor/pstack/skills/statechart/scripts/statechart +29 -0
  163. package/vendor/pstack/skills/statechart/scripts/statechart.ts +164 -0
  164. package/vendor/pstack/skills/statechart/scripts/test/ConfigOracle.java +63 -0
  165. package/vendor/pstack/skills/statechart/scripts/test/chart.test.ts +1253 -0
  166. package/vendor/pstack/skills/statechart/scripts/test/charts/Braces.mmd +7 -0
  167. package/vendor/pstack/skills/statechart/scripts/test/charts/Escapes.mmd +11 -0
  168. package/vendor/pstack/skills/statechart/scripts/test/charts/Phases.mmd +29 -0
  169. package/vendor/pstack/skills/statechart/scripts/test/cli.test.ts +1315 -0
  170. package/vendor/pstack/skills/statechart/scripts/test/config-fuzz.test.ts +263 -0
  171. package/vendor/pstack/skills/statechart/scripts/test/corpus/Counter/ChartRun.out +57 -0
  172. package/vendor/pstack/skills/statechart/scripts/test/corpus/Counter/Counter.cfg +3 -0
  173. package/vendor/pstack/skills/statechart/scripts/test/corpus/Counter/Counter.tla +10 -0
  174. package/vendor/pstack/skills/statechart/scripts/test/corpus/Counter/chart.mmd +9 -0
  175. package/vendor/pstack/skills/statechart/scripts/test/corpus/Counter/graph.dot +16 -0
  176. package/vendor/pstack/skills/statechart/scripts/test/corpus/Counter/report.md +7 -0
  177. package/vendor/pstack/skills/statechart/scripts/test/corpus/Counter/sany.out +2 -0
  178. package/vendor/pstack/skills/statechart/scripts/test/corpus/Counter/verdict-1.out +49 -0
  179. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/ChartRun.out +60 -0
  180. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.cfg +4 -0
  181. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/CounterAction.tla +22 -0
  182. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/chart.mmd +26 -0
  183. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/graph.dot +19 -0
  184. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/report.md +20 -0
  185. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/sany.out +2 -0
  186. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.exit +1 -0
  187. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/verdict-1.out +56 -0
  188. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.exit +1 -0
  189. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/verdict-2.out +82 -0
  190. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterAction/verdict-3.out +57 -0
  191. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/ChartRun.out +59 -0
  192. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.cfg +3 -0
  193. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.tla +11 -0
  194. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/chart.mmd +22 -0
  195. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/graph.dot +16 -0
  196. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/report.md +17 -0
  197. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/sany.out +2 -0
  198. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.exit +1 -0
  199. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.out +56 -0
  200. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.exit +1 -0
  201. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.out +77 -0
  202. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/ChartRun.out +69 -0
  203. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.cfg +2 -0
  204. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/CounterFan.tla +11 -0
  205. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/chart.mmd +85 -0
  206. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/graph.dot +70 -0
  207. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/report.md +12 -0
  208. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/sany.out +2 -0
  209. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.exit +1 -0
  210. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/verdict-1.out +67 -0
  211. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterFan/verdict-2.out +57 -0
  212. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.exit +1 -0
  213. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/ChartRun.out +85 -0
  214. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.cfg +6 -0
  215. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/CounterGuard.tla +13 -0
  216. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/chart.mmd +5 -0
  217. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/graph.dot +10 -0
  218. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/report.md +31 -0
  219. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/sany.out +2 -0
  220. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.exit +1 -0
  221. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/verdict-1.out +64 -0
  222. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.exit +1 -0
  223. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterGuard/verdict-2.out +77 -0
  224. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/ChartRun.out +55 -0
  225. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.cfg +3 -0
  226. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.tla +10 -0
  227. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/chart.mmd +12 -0
  228. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/graph.dot +6 -0
  229. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/report.md +12 -0
  230. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/sany.out +2 -0
  231. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.exit +1 -0
  232. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-1.out +33 -0
  233. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPast/verdict-2.out +54 -0
  234. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/ChartRun.out +54 -0
  235. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.cfg +3 -0
  236. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.tla +10 -0
  237. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/chart.mmd +1 -0
  238. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/graph.dot +6 -0
  239. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/report.md +7 -0
  240. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/sany.out +2 -0
  241. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInitPastHolds/verdict-1.out +46 -0
  242. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/ChartRun.out +59 -0
  243. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.cfg +2 -0
  244. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/CounterInstance.tla +10 -0
  245. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/CounterSteps.tla +6 -0
  246. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/chart.mmd +17 -0
  247. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/graph.dot +15 -0
  248. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/report.md +14 -0
  249. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/sany.out +3 -0
  250. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.exit +1 -0
  251. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterInstance/verdict-1.out +78 -0
  252. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/ChartRun.out +59 -0
  253. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.cfg +3 -0
  254. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/CounterJump.tla +19 -0
  255. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/chart.mmd +26 -0
  256. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/graph.dot +22 -0
  257. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/report.md +12 -0
  258. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/sany.out +2 -0
  259. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.exit +1 -0
  260. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/verdict-1.out +58 -0
  261. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterJump/verdict-2.out +57 -0
  262. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterLoop/ChartRun.out +57 -0
  263. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.cfg +2 -0
  264. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterLoop/CounterLoop.tla +11 -0
  265. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterLoop/chart.mmd +17 -0
  266. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterLoop/graph.dot +15 -0
  267. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterLoop/report.md +14 -0
  268. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterLoop/sany.out +2 -0
  269. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.exit +1 -0
  270. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterLoop/verdict-1.out +76 -0
  271. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/ChartRun.out +59 -0
  272. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.cfg +3 -0
  273. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/CounterOrder.tla +11 -0
  274. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/chart.mmd +19 -0
  275. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/graph.dot +10 -0
  276. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/report.md +15 -0
  277. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/sany.out +2 -0
  278. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.exit +1 -0
  279. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/verdict-1.out +56 -0
  280. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.exit +1 -0
  281. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterOrder/verdict-2.out +67 -0
  282. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/ChartRun.out +62 -0
  283. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.cfg +6 -0
  284. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/CounterRules.tla +24 -0
  285. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/Moves.tla +5 -0
  286. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/chart.mmd +22 -0
  287. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/graph.dot +10 -0
  288. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/report.md +23 -0
  289. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/sany.out +3 -0
  290. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.exit +1 -0
  291. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-1.out +58 -0
  292. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.exit +1 -0
  293. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-2.out +66 -0
  294. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.exit +1 -0
  295. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-3.out +74 -0
  296. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterRules/verdict-4.out +59 -0
  297. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/ChartRun.out +58 -0
  298. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.cfg +3 -0
  299. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/CounterStart.tla +15 -0
  300. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/chart.mmd +18 -0
  301. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/graph.dot +13 -0
  302. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/report.md +11 -0
  303. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/sany.out +2 -0
  304. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.exit +1 -0
  305. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/verdict-1.out +33 -0
  306. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStart/verdict-2.out +57 -0
  307. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStop/ChartRun.out +57 -0
  308. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.cfg +3 -0
  309. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStop/CounterStop.tla +15 -0
  310. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStop/chart.mmd +7 -0
  311. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStop/graph.dot +13 -0
  312. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStop/report.md +6 -0
  313. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStop/sany.out +2 -0
  314. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterStop/verdict-1.out +49 -0
  315. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/ChartRun.out +61 -0
  316. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.cfg +4 -0
  317. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/CounterTie.tla +14 -0
  318. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/chart.mmd +30 -0
  319. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/graph.dot +19 -0
  320. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/report.md +27 -0
  321. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/sany.out +2 -0
  322. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.exit +1 -0
  323. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-1.out +56 -0
  324. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.exit +1 -0
  325. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-2.out +64 -0
  326. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.exit +1 -0
  327. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-3.out +87 -0
  328. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTie/verdict-4.out +57 -0
  329. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/ChartRun.out +60 -0
  330. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.cfg +3 -0
  331. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.tla +12 -0
  332. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/chart.mmd +23 -0
  333. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/graph.dot +19 -0
  334. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/report.md +11 -0
  335. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/sany.out +2 -0
  336. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.exit +1 -0
  337. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.out +56 -0
  338. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterTieInGraph/verdict-2.out +57 -0
  339. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/ChartRun.out +61 -0
  340. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/CounterView.cfg +4 -0
  341. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/CounterView.tla +14 -0
  342. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/chart.mmd +23 -0
  343. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/graph.dot +19 -0
  344. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/report.md +27 -0
  345. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/sany.out +2 -0
  346. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-1.exit +1 -0
  347. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-1.out +56 -0
  348. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-2.exit +1 -0
  349. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-2.out +64 -0
  350. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-3.exit +1 -0
  351. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-3.out +87 -0
  352. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/verdict-4.out +57 -0
  353. package/vendor/pstack/skills/statechart/scripts/test/corpus/CounterView/view.mjs +1 -0
  354. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/ChartRun.out +59 -0
  355. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/DieHard.cfg +4 -0
  356. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/DieHard.tla +38 -0
  357. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/chart.mmd +92 -0
  358. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/graph.dot +126 -0
  359. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/report.md +17 -0
  360. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/sany.out +2 -0
  361. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/verdict-1.exit +1 -0
  362. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/verdict-1.out +91 -0
  363. package/vendor/pstack/skills/statechart/scripts/test/corpus/DieHard/verdict-2.out +57 -0
  364. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/ChartRun.out +61 -0
  365. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.cfg +6 -0
  366. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/FirstRule.tla +11 -0
  367. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/chart.mmd +22 -0
  368. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/graph.dot +16 -0
  369. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/report.md +25 -0
  370. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/sany.out +2 -0
  371. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.exit +1 -0
  372. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-1.out +56 -0
  373. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.exit +1 -0
  374. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-2.out +64 -0
  375. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.exit +1 -0
  376. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-3.out +64 -0
  377. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.exit +1 -0
  378. package/vendor/pstack/skills/statechart/scripts/test/corpus/FirstRule/verdict-4.out +77 -0
  379. package/vendor/pstack/skills/statechart/scripts/test/corpus/HiddenClock/ChartRun.out +57 -0
  380. package/vendor/pstack/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.cfg +4 -0
  381. package/vendor/pstack/skills/statechart/scripts/test/corpus/HiddenClock/HiddenClock.tla +11 -0
  382. package/vendor/pstack/skills/statechart/scripts/test/corpus/HiddenClock/chart.mmd +13 -0
  383. package/vendor/pstack/skills/statechart/scripts/test/corpus/HiddenClock/graph.dot +12 -0
  384. package/vendor/pstack/skills/statechart/scripts/test/corpus/HiddenClock/report.md +11 -0
  385. package/vendor/pstack/skills/statechart/scripts/test/corpus/HiddenClock/sany.out +2 -0
  386. package/vendor/pstack/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.exit +1 -0
  387. package/vendor/pstack/skills/statechart/scripts/test/corpus/HiddenClock/verdict-1.out +72 -0
  388. package/vendor/pstack/skills/statechart/scripts/test/corpus/Login/ChartRun.out +57 -0
  389. package/vendor/pstack/skills/statechart/scripts/test/corpus/Login/Login.cfg +3 -0
  390. package/vendor/pstack/skills/statechart/scripts/test/corpus/Login/Login.tla +62 -0
  391. package/vendor/pstack/skills/statechart/scripts/test/corpus/Login/chart.mmd +28 -0
  392. package/vendor/pstack/skills/statechart/scripts/test/corpus/Login/graph.dot +40 -0
  393. package/vendor/pstack/skills/statechart/scripts/test/corpus/Login/report.md +7 -0
  394. package/vendor/pstack/skills/statechart/scripts/test/corpus/Login/sany.out +1 -0
  395. package/vendor/pstack/skills/statechart/scripts/test/corpus/Login/verdict-1.out +47 -0
  396. package/vendor/pstack/skills/statechart/scripts/test/corpus/Login/view.mjs +1 -0
  397. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/ChartRun.out +57 -0
  398. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.cfg +2 -0
  399. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.tla +64 -0
  400. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/chart.mmd +28 -0
  401. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/graph.dot +37 -0
  402. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/report.md +8 -0
  403. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/sany.out +1 -0
  404. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/verdict-1.out +47 -0
  405. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginGuarded/view.mjs +1 -0
  406. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/ChartRun.out +60 -0
  407. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.cfg +3 -0
  408. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/LoginParallel.tla +64 -0
  409. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/chart.mmd +44 -0
  410. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/graph.dot +58 -0
  411. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/report.md +17 -0
  412. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/sany.out +1 -0
  413. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.exit +1 -0
  414. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/verdict-1.out +83 -0
  415. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/verdict-2.out +57 -0
  416. package/vendor/pstack/skills/statechart/scripts/test/corpus/LoginParallel/view.mjs +1 -0
  417. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/ChartRun.out +60 -0
  418. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.cfg +3 -0
  419. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.tla +103 -0
  420. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/chart.mmd +43 -0
  421. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/graph.dot +93 -0
  422. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/report.md +14 -0
  423. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/sany.out +1 -0
  424. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.exit +1 -0
  425. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-1.out +59 -0
  426. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/verdict-2.out +72 -0
  427. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayer/view.mjs +3 -0
  428. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/ChartRun.out +57 -0
  429. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.cfg +2 -0
  430. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.tla +100 -0
  431. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/chart.mmd +31 -0
  432. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/graph.dot +85 -0
  433. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/report.md +9 -0
  434. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/sany.out +1 -0
  435. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/verdict-1.out +47 -0
  436. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerFixed/view.mjs +3 -0
  437. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/ChartRun.out +59 -0
  438. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayer.tla +103 -0
  439. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.cfg +3 -0
  440. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.tla +6 -0
  441. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/chart.mmd +42 -0
  442. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/graph.dot +93 -0
  443. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/report.md +19 -0
  444. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/sany.out +2 -0
  445. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.exit +1 -0
  446. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.out +61 -0
  447. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-2.out +59 -0
  448. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-3.out +61 -0
  449. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.exit +1 -0
  450. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.out +66 -0
  451. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.exit +1 -0
  452. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.out +58 -0
  453. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/verdict-6.out +49 -0
  454. package/vendor/pstack/skills/statechart/scripts/test/corpus/MediaPlayerProps/view.mjs +3 -0
  455. package/vendor/pstack/skills/statechart/scripts/test/corpus/PickWorker/ChartRun.out +57 -0
  456. package/vendor/pstack/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.cfg +6 -0
  457. package/vendor/pstack/skills/statechart/scripts/test/corpus/PickWorker/PickWorker.tla +11 -0
  458. package/vendor/pstack/skills/statechart/scripts/test/corpus/PickWorker/chart.mmd +5 -0
  459. package/vendor/pstack/skills/statechart/scripts/test/corpus/PickWorker/graph.dot +11 -0
  460. package/vendor/pstack/skills/statechart/scripts/test/corpus/PickWorker/report.md +7 -0
  461. package/vendor/pstack/skills/statechart/scripts/test/corpus/PickWorker/sany.out +5 -0
  462. package/vendor/pstack/skills/statechart/scripts/test/corpus/PickWorker/verdict-1.out +70 -0
  463. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/ChartRun.out +61 -0
  464. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/Shadow.cfg +4 -0
  465. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/Shadow.tla +11 -0
  466. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/ShadowLib.tla +6 -0
  467. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/ShadowSub.tla +3 -0
  468. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/chart.mmd +9 -0
  469. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/graph.dot +16 -0
  470. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/report.md +8 -0
  471. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/sany.out +4 -0
  472. package/vendor/pstack/skills/statechart/scripts/test/corpus/Shadow/verdict-1.out +65 -0
  473. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/ChartRun.out +59 -0
  474. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.cfg +2 -0
  475. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/SpacedNames.tla +9 -0
  476. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/chart.mmd +23 -0
  477. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/graph.dot +17 -0
  478. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/report.md +15 -0
  479. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/sany.out +1 -0
  480. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.exit +1 -0
  481. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/verdict-1.out +65 -0
  482. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.exit +1 -0
  483. package/vendor/pstack/skills/statechart/scripts/test/corpus/SpacedNames/verdict-2.out +75 -0
  484. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/ChartRun.out +69 -0
  485. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.cfg +3 -0
  486. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/TwoPhase.tla +75 -0
  487. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/chart.mmd +60 -0
  488. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/graph.dot +297 -0
  489. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/report.md +20 -0
  490. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/sany.out +1 -0
  491. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.exit +1 -0
  492. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/verdict-1.out +95 -0
  493. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/verdict-2.out +57 -0
  494. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhase/view.mjs +1 -0
  495. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/ChartRun.out +57 -0
  496. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.cfg +3 -0
  497. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.tla +75 -0
  498. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/chart.mmd +37 -0
  499. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/graph.dot +223 -0
  500. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/report.md +11 -0
  501. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/sany.out +1 -0
  502. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/verdict-1.out +47 -0
  503. package/vendor/pstack/skills/statechart/scripts/test/corpus/TwoPhaseFixed/view.mjs +1 -0
  504. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.exit +1 -0
  505. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/ChartRun.out +75 -0
  506. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.cfg +5 -0
  507. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/TypeGuard.tla +11 -0
  508. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/chart.mmd +18 -0
  509. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/graph.dot +14 -0
  510. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/report.md +29 -0
  511. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/sany.out +2 -0
  512. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.exit +1 -0
  513. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/verdict-1.out +64 -0
  514. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.exit +1 -0
  515. package/vendor/pstack/skills/statechart/scripts/test/corpus/TypeGuard/verdict-2.out +75 -0
  516. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/ChartRun.out +58 -0
  517. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.cfg +2 -0
  518. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.tla +8 -0
  519. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/chart.mmd +22 -0
  520. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/graph.dot +16 -0
  521. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/report.md +15 -0
  522. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/sany.out +2 -0
  523. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.exit +1 -0
  524. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.out +56 -0
  525. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.exit +1 -0
  526. package/vendor/pstack/skills/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.out +77 -0
  527. package/vendor/pstack/skills/statechart/scripts/test/corpus.test.ts +441 -0
  528. package/vendor/pstack/skills/statechart/scripts/test/differential.test.ts +565 -0
  529. package/vendor/pstack/skills/statechart/scripts/test/drawn.ts +20 -0
  530. package/vendor/pstack/skills/statechart/scripts/test/grid/Grid.cfg +2 -0
  531. package/vendor/pstack/skills/statechart/scripts/test/grid/Grid.tla +9 -0
  532. package/vendor/pstack/skills/statechart/scripts/test/grid/sany.out +2 -0
  533. package/vendor/pstack/skills/statechart/scripts/test/java.ts +63 -0
  534. package/vendor/pstack/skills/statechart/scripts/test/labels.ts +648 -0
  535. package/vendor/pstack/skills/statechart/scripts/test/messages.test.ts +212 -0
  536. package/vendor/pstack/skills/statechart/scripts/test/pipeline.test.ts +270 -0
  537. package/vendor/pstack/skills/statechart/scripts/test/plain-tlc.test.ts +255 -0
  538. package/vendor/pstack/skills/statechart/scripts/test/render.test.ts +145 -0
  539. package/vendor/pstack/skills/statechart/scripts/test/tlc-out.test.ts +90 -0
  540. package/vendor/pstack/skills/statechart/scripts/test/tlc.ts +158 -0
  541. package/vendor/pstack/skills/statechart/scripts/tsconfig.json +11 -0
  542. package/vendor/pstack/skills/statechart/scripts/worker.ts +35 -0
  543. package/vendor/pstack/skills/swarm/SKILL.md +41 -0
  544. package/vendor/pstack/skills/tdd/SKILL.md +42 -0
  545. package/vendor/pstack/skills/teach/SKILL.md +21 -0
  546. package/vendor/pstack/skills/technical-writing/SKILL.md +70 -0
  547. package/vendor/pstack/skills/typescript-best-practices/SKILL.md +31 -0
  548. package/vendor/pstack/skills/typescript-best-practices/references/patterns.md +328 -0
  549. package/vendor/pstack/skills/unslop/SKILL.md +40 -0
  550. package/vendor/pstack/skills/why/SKILL.md +9 -0
  551. package/vendor/pstack/upstream-plugin.json +21 -0
@@ -0,0 +1,41 @@
1
+ ---
2
+ name: swarm
3
+ description: "Fan out N parallel workers, drain them, and return one report. Use for /swarm, 'swarm this', or parallel coverage, races, gauntlets, and exploration."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Swarm
8
+
9
+ ## Start
10
+
11
+ Open a todolist with one entry per phase before launching anything.
12
+
13
+ 1. Frame
14
+ 2. Fan out
15
+ 3. Aggregate
16
+ 4. Report
17
+
18
+ ## Phase A: Frame
19
+
20
+ 1. State the done predicate and the artifact or report the swarm must return.
21
+ 2. Choose the shape. Partition into slices, race N workers on identical briefs, or mix both. For a race or mixed shape, declare `first pass`, `rank all`, or `best-of` before spawning.
22
+ 3. Pick the worker model from the `swarm workers` line in `~/.cursor/rules/pstack-models.mdc`. If the rule or that line is missing, use `claude-opus-5-5-high-fast`. For `auto` or `inherit-parent`, omit `model` so the workers run on the parent model. If the Task tool rejects a slug, use the default and say so. If it rejects the default, use the closest valid slug of the same family from its error message. For a model race, name each arm's model up front. Pick each subagent's reasoning level for the job, per the Subagents section of the **poteto-mode** skill.
23
+ 4. Give each worker its own writable output when it writes. When workers verify or measure commits, each brief names the exact SHAs. A measurement brief also names the method (sample count, what one sample is, order). The worker records both in its result.
24
+
25
+ ## Phase B: Fan out
26
+
27
+ Spawn all N workers in one message with `subagent_type: generalPurpose`, `environment: "cloud"`, `run_in_background: true`, and the step 3 model, left unset for `auto` or `inherit-parent`. Use `environment: "local"` only when the worker needs access to something on the user's computer.
28
+
29
+ When a worker must start from a non-default pushed branch, pass `cloud_base_branch`.
30
+
31
+ Every brief stands alone. Include the goal, scope, exact slice or race arm, how to verify, and what to report. Reports use `PASS`, `ISSUES`, or `BLOCKED` with evidence. A worker that can prove a defect reports `ISSUES` and lists every issue it can prove, not only the first.
32
+
33
+ If a worker drops out, proceed with N-1 and note it.
34
+
35
+ ## Phase C: Aggregate
36
+
37
+ Read the terminal results. Drop a result that does not record the SHAs and method its brief names, and respawn that worker once. After a second miss, record a gap. A gap does not count as a pass. For coverage, every required slice needs a result. For a race, apply the selection rule declared up front. Use first pass, rank all, or best-of. Do not paste raw worker dumps.
38
+
39
+ ## Phase D: Report
40
+
41
+ Return one consolidated in-chat report with a result table, issue one-liners, gaps or dropouts, and the race rule when used.
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: tdd
3
+ description: "Use only when the user explicitly asks for TDD, a failing test, or a regression test, OR when the bug has an obvious cheap local test target. Skip when the test path is unclear, expensive, integration-heavy, or not requested."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # TDD Bug Fix
8
+
9
+ When fixing a bug with a clear, cheap test path, make the broken behavior executable before changing production code. The goal is a focused regression test that fails before the fix and passes after it.
10
+
11
+ Do not force a test when it would be impractical. If the available test would require broad harness setup, brittle mocks, slow end-to-end infrastructure, production-only state, vague reproduction steps, or large unrelated fixture churn, skip adding a new test and use the closest useful verification instead.
12
+
13
+ ## Workflow
14
+
15
+ 1. **Understand the bug.** Identify the intended behavior, current behavior, affected path, and smallest observable reproduction.
16
+ 2. **Choose the narrowest executable check.** Prefer the closest unit, component, integration, or regression test already used for that codepath. If no practical test path is obvious, do not create one from scratch just to satisfy the workflow.
17
+ 3. **Write the failing test first.** Add the smallest focused test that would have caught the bug. The test should encode intended behavior, not mirror the current implementation.
18
+ 4. **Run the new test before fixing.** Confirm it fails for the intended reason. If it passes or fails for an unrelated reason, correct the test or reproduction before editing the implementation.
19
+ 5. **Fix the bug.** Make the smallest production change that satisfies the intended behavior while preserving nearby contracts.
20
+ 6. **Rerun the regression test.** Confirm the test now passes.
21
+
22
+ ## If a Failing Test Is Impractical
23
+
24
+ Use the closest executable regression check instead: a targeted script, manual reproduction command, browser automation, snapshot comparison, log assertion, or focused integration check.
25
+
26
+ Prefer no new test over a bad test. A bad test is one that mostly tests mocks, encodes current implementation details, depends on timing or unrelated global state, needs expensive infrastructure for a small fix, or would be deleted immediately after proving the fix.
27
+
28
+ ## Guardrails
29
+
30
+ - Do not change tests merely to match a wrong implementation.
31
+ - Do not weaken existing assertions unless the expected behavior has genuinely changed and the reason is clear.
32
+ - Keep the regression test focused on the bug. Avoid broad fixture churn or unrelated coverage expansion.
33
+ - If the bug is flaky, make the test deterministic where possible and document the signal being locked down.
34
+ - If the bug exposes a broader class of failures, first land the focused regression path, then consider additional sibling coverage.
35
+
36
+ ## Final Response
37
+
38
+ Report the evidence, not just the outcome:
39
+
40
+ - Name the failing-before test or executable check and the failure it produced.
41
+ - Name the passing-after test run and any nearby validation performed.
42
+ - If failing-before evidence could not be demonstrated, state why and describe the closest regression check used instead.
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: teach
3
+ description: "Explain a body of work plainly so a person actually understands it. Runs the `how` and `why` skills and weaves what they find into one clear explanation. Use for 'teach me this', 'help me really understand X', 'explain this change or subsystem to me'."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Teach
8
+
9
+ **You explain what a thing is, how it works, and why it's built that way, in one plain account at the person's pace. The goal is that they understand it, not that you change anything.**
10
+
11
+ Teach sits on top of `how` and `why`. Get your bearings on what the work is and what it touches, then run `how` for how it works and `why` for why it's that way. Those are real skill invocations that do their own digging. Blend what they find into one plain explanation, lead with what matters to the person, and go deeper when they ask. Reword freely for teaching, with one exception. Keep `why`'s confidence language intact (its hedges are findings, not style).
12
+
13
+ 1. Decide the few things they should walk away understanding. Choose them from why they're asking (about to change it, reviewing it, debugging it, new to it) and what they already know, both read from the conversation, not quizzed out of them. Skip what they plainly already know. Put the depth where their question is.
14
+ 2. Let `how` and `why` do the work, don't redo it. Read the code yourself to get oriented, then run `how` for how it works and `why` for why. Run them in parallel and combine the results. Match the size to the question. Run both for a subsystem, maybe one is enough for a small change.
15
+ 3. Start with a plain definition. Name the thing and say what it is in general terms, the way a senior engineer would say it out loud, with its common name if it has one. Then tie it to the case in front of you ("in X, we use this to ...") and build from there: how it works, the deeper reasons, the edge cases. For each part, explain the idea so it clicks: the problem it solves and how it actually works. Walk through what happens as the person does the thing (opens a long chat, scrolls up) when that is what makes it land. Listing functions and constants is reference, not teaching. Don't print framing labels ("the one idea to hold onto", "the thing to walk away with", "the key insight", "at its core", "TL;DR"). Give the smallest complete answer first, a sentence or two, not a dense paragraph, then stop. Add layers when they ask. Never a wall of text.
16
+ 4. Keep it a conversation, not a lecture or a performance. Offer to go deeper or move on, and follow their lead. No quizzes. No pacing theater. Don't print "Pause", don't ask them to say it back, don't announce "the sentence to nail", and don't flag a part as important or hard ("here is the part worth slowing down on", "this is the tricky part", "here is where it gets interesting"). Just say it. When you would pause, stop and let them respond. Running one-shot with no live human, deliver it cleanly and put any offer to go deeper at the end.
17
+ 5. Show, don't only tell, and build the picture up diagram by diagram. Open the diff, the code, or the debugger when that is the fastest way to land it. Draw when a picture lands faster than words. For anything with three or more moving parts, do not draw one diagram with all of them at once. Draw a short series instead, where each diagram redraws the last and adds a single part, so the reader watches the system assemble. A single all-at-once diagram, especially one saved for the end, is a reference, not teaching. Concretely, to teach a flow from A to B to C, draw it three times. First A to B. Then redraw and add C. Then redraw and add the return edge or the next piece. Match the medium to the idea, and use both kinds when both help. A mermaid diagram fits a flow or structure where the labels carry the meaning. When the idea is spatial, like layout, overlap, scroll position, or a before and after, reach for the image-generation tool and draw it marker-on-whiteboard style with a few short labels, since image models garble long text. Generate that picture, don't settle for describing it in words. The build-up rule holds for generated images too. A single simple point needs no figure.
18
+
19
+ Write every response through the **unslop** skill, in plain spoken English, the way you'd explain it to a colleague. Be tight, not terse. Cut filler and hedging, keep the part that makes it click. State the concrete mechanism, not a metaphor, a framing, or a preview of what is coming. This is the target density: "Virtualization runs in two parts, one for rendering and one for loading from disk. When an item scrolls out past the buffer, both its DOM node and its in-memory data are evicted." Normal sentence case, not all-lowercase. No em dashes. Prefer periods over commas. Keep each sentence to one or two commas. If clauses pile up, split them into separate sentences. Give each concept one name and keep it. Avoid mirror sentences ("A without B, or B without A") and tidy closers ("the rest follows", "it all falls out"). The words in these steps are directions to you, not labels to print. Don't echo the structure as headers or stock phrases.
20
+
21
+ **Reply:** the explanation itself, never a report about what you did or delivered. Lead with the main point, then the plain account of what it is, how it works, and why, and the threads worth chasing with `how` or `why`.
@@ -0,0 +1,70 @@
1
+ ---
2
+ name: technical-writing
3
+ description: "Layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use for /technical-writing or when writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Technical writing
8
+
9
+ Write so a tired engineer understands on the first read.
10
+
11
+ - Cut every word that does no work.
12
+ - Use the short, everyday word: "use", not "utilize".
13
+ - When a rule makes a sentence worse, fix the sentence another way or leave it alone.
14
+ - Write the real symbol, file, flag, or command name, not a synonym or a description of it.
15
+ - Don't invent jargon. Use the words a developer would say out loud. Say what a named pattern means the first time.
16
+
17
+ ## Vary the rhythm
18
+
19
+ - Mix sentence lengths. Split the sentence that carries two thoughts. Keep the long sentence that carries one.
20
+ - Have a view in explanation. Keep reference dry.
21
+ - Be specific. Not "schema changes can cause issues" but "a column rename fails the build".
22
+
23
+ ## Pick the mode first (Diátaxis)
24
+
25
+ One document, one mode. Don't mix modes. Split and link instead.
26
+
27
+ - **Tutorial: learning by doing.** Say what the learner will build. Every step produces a visible result, and you say what they should see. Explanation gets one clause and a link.
28
+ - **How-to: steps to a goal.** Solve the reader's problem. Assume competence. Action only. Allow forks. Name the guide by the task.
29
+ - **Reference: facts for lookup.** Only describe. Be dry, complete, and sure. Mirror the structure of the thing described.
30
+ - **Explanation: understanding and why.** One bounded topic. Give context: design decisions, history, constraints, alternatives. Opinion is allowed here and nowhere else.
31
+
32
+ ## Write sentences to the reader (Google developer style)
33
+
34
+ - Talk to the reader as "you", in the present tense.
35
+ - Say who does what. Passive is fine only when the actor is unknown or beside the point.
36
+ - Write instructions as commands. Put the condition before the instruction and the common case first.
37
+ - No buzzwords, no figurative language, no "please", and never "simply", "easy", or "quickly" in a procedure.
38
+ - Don't pre-announce, and don't start consecutive sentences with the same phrase.
39
+ - Link with words that say where the link goes.
40
+ - Headings carry the point, in sentence case. One h1 per page, no skipped levels.
41
+ - Numbered lists for sequences, bullets for everything else. Introduce a list with a complete sentence. Keep items parallel.
42
+ - Code goes in code font. UI elements go in bold. Use serial commas. Drop "etc.".
43
+
44
+ ## Make statements load one at a time (STE rules)
45
+
46
+ - One instruction per sentence. One thought per sentence everywhere else.
47
+ - Split instructions longer than about 20 words and other sentences longer than about 25.
48
+ - Put the warning or condition before the step it guards.
49
+ - Keep "the" and "a".
50
+ - Give each word one meaning, and pick one word per action.
51
+ - Write procedures as direct commands, never as narration and never in the passive.
52
+ - Avoid "-ing" words where you can.
53
+
54
+ ## Leave no sentence open to two readings (Global English)
55
+
56
+ - Keep words like "only" and "not" next to the word they change.
57
+ - Break up long noun strings.
58
+ - Make every "it", "they", and "this" point at one obvious thing. Never use "this" or "which" to point at a whole clause.
59
+ - Don't drop verbs, or the small words that show structure, such as "that".
60
+ - Repeat the article in a series when it prevents a misread. Say which parts "and" or "or" joins.
61
+ - Use periods, not semicolons or em dashes. No slashes, and no "(s)". Make text in parentheses a full grammatical unit.
62
+ - Call each thing by one name, everywhere.
63
+ - Skip idioms, colloquialisms, Latin abbreviations, and metaphors.
64
+
65
+ ## Voice and repo specifics
66
+
67
+ - Apply the **unslop** skill to every doc this skill touches. That skill owns the slop-pattern catalog: AI vocabulary, filler, hedging, formatting tells.
68
+ - PR descriptions and commit messages are writing too. Every layer except Diátaxis applies to them. A PR body is a briefing that a reviewer can read in under a minute. Do not paste swarm logs, SHA lists, or metric tables. Link them.
69
+ - Product UI strings are not documentation. Use your product's copy guidelines for those.
70
+ - Indent code snippets with tabs. Write real paths. Make every count or tree claim true at the commit that lands it, and include the command that regenerates it.
@@ -0,0 +1,31 @@
1
+ ---
2
+ name: typescript-best-practices
3
+ description: TypeScript best practices. Use when reading or editing any .ts or .tsx file.
4
+ paths: ["**/*.ts", "**/*.tsx"]
5
+ disable-model-invocation: true
6
+ ---
7
+
8
+ # TypeScript best practices
9
+
10
+ Apply the **type-system-discipline** principle skill first.
11
+
12
+ | Rule | Summary |
13
+ |------|---------|
14
+ | Discriminated unions | Model variants with a `kind` literal discriminant so impossible states can't be represented. No optional-field bags. |
15
+ | Branded types | Brand primitives with `& { readonly __brand: "X" }` so they can't be mixed up. Validate once at the boundary. A brand comes from a verifying type guard (`input is AgentId`), never from `as`. |
16
+ | Constructive modeling | Build the shape so the illegal value can't be constructed. `[T, ...T[]]` for non-empty, `[T, T][]` for even length, `start` plus `duration` for a range. Not a runtime guard, not a wish for refinement types. |
17
+ | Simplest total type | Keep `T[]` while every operation on it stays total. Strengthen to `NonEmpty<T>` only where the loose type forces `!`, a cast, or a "should never happen" throw. |
18
+ | `unknown` over `any` | External data is `unknown`. |
19
+ | Schemas before guards | Before hand-writing a property-by-property type guard, use the repository's runtime schema library and infer the type from the schema, such as `z.infer`. |
20
+ | No `as` casts | Every `as` is a runtime crash waiting. Cast only after validation. |
21
+ | Narrowing hierarchy | Discriminant switch > `in` operator > `typeof`/`instanceof` > user-defined type guard > `as`. |
22
+ | Type guards | Must verify the claim. A lying guard is worse than `as` because the bug hides behind a name that says it's safe. Name them `isX` or `hasX`. |
23
+ | Exhaustiveness | Inline `const _exhaustive: never = x;` in default arms so the compiler errors when a new variant is added. |
24
+ | `satisfies` over `as` | Validates the value without widening literal types. |
25
+ | Boundary validation | Parse where data crosses in, into a named domain type. `Record<string, unknown>` (however spelled) stops at that parse. Trust types inside. See the **boundary-discipline** principle skill. |
26
+ | Schema-derived types | Reach for `Pick`/`Omit`/`Parameters`/`ReturnType`/`Awaited`/`typeof` before declaring a new interface. |
27
+ | Object args | Pass objects, not positional, so argument order is self-documenting. Skip on hot paths (per-frame render, tokenizers, parsers). |
28
+ | Real tests | Don't mock what you can run. Prefer the framework's real test primitives with leak/disposable checks, and verify UI in a running build. Mock only what you can't run locally. |
29
+ | Structured telemetry | Prefer structured logger diagnostics with enough context to debug from an id. No `console.log` in shipped code. |
30
+
31
+ Examples: `references/patterns.md`.
@@ -0,0 +1,328 @@
1
+ # TypeScript patterns
2
+
3
+ Code examples for each rule in `SKILL.md`. The underlying principles are language-agnostic. See the **type-system-discipline** and **boundary-discipline** principle skills.
4
+
5
+ ## Branded types
6
+
7
+ Brand primitives so they can't be mixed up. Validate once at the boundary. Downstream code trusts the type.
8
+
9
+ ```ts
10
+ type AgentId = string & { readonly __brand: "AgentId" };
11
+
12
+ function isAgentId(input: string): input is AgentId {
13
+ return isUUID(input);
14
+ }
15
+
16
+ function parseAgentId(input: string): AgentId {
17
+ if (!isAgentId(input)) throw new Error(`Invalid agent id: ${input}`);
18
+ return input;
19
+ }
20
+
21
+ function focusAgent(id: AgentId): void {
22
+ /* input is trusted */
23
+ }
24
+ ```
25
+
26
+ Match the `readonly __brand: 'X'` shape. Don't invent a new convention.
27
+
28
+ ## Discriminated unions
29
+
30
+ Model variants with a literal discriminant. Every variant shares the field name and each variant's value is unique, so impossible combos can't be represented.
31
+
32
+ ```ts
33
+ // Don't. Boolean + optionals lets contradictory states exist.
34
+ type DiffState = { loading: boolean; diff?: GitDiff; error?: string };
35
+
36
+ // Do. Only valid states exist.
37
+ type DiffState =
38
+ | { kind: "loading" }
39
+ | { kind: "ready"; diff: GitDiff }
40
+ | { kind: "error"; error: string };
41
+ ```
42
+
43
+ Pick one discriminant name (`kind`, `type`, `tag`) and stick to it.
44
+
45
+ ## Constructive modeling
46
+
47
+ Build the type from parts that are all legal instead of restricting a loose type with runtime checks.
48
+
49
+ Non-empty, via a variadic tuple:
50
+
51
+ ```ts
52
+ type NonEmpty<T> = [T, ...T[]];
53
+
54
+ // Don't: T[] plus a length check every caller must repeat
55
+ function pickWinner(entries: string[]): string {
56
+ if (entries.length === 0) throw new Error("no entries");
57
+ return entries[Math.floor(Math.random() * entries.length)];
58
+ }
59
+
60
+ // Do: an empty value of the type can't exist
61
+ function pickWinner(entries: NonEmpty<string>): string {
62
+ return entries[Math.floor(Math.random() * entries.length)];
63
+ }
64
+ ```
65
+
66
+ Where a plain `T[]` arrives, narrow once with a guard. The fact then travels in the type:
67
+
68
+ ```ts
69
+ const isNonEmpty = <T>(arr: T[]): arr is NonEmpty<T> => arr.length > 0;
70
+ ```
71
+
72
+ Even length, as pairs:
73
+
74
+ ```ts
75
+ type Pairs<T> = [T, T][];
76
+ ```
77
+
78
+ A time range, as start plus duration:
79
+
80
+ ```ts
81
+ // Don't: a comment holds the invariant
82
+ type TimeRange = { start: Date; end: Date }; // start <= end
83
+
84
+ // Do: a negative range can't be written; derive end when needed
85
+ type TimeRange = { start: Date; durationMs: number };
86
+ ```
87
+
88
+ Keep `durationMs` a plain number. Brand it (per Branded types) only if a raw number could be passed where a duration is expected, not by reflex. Pick the representation that makes the bad state unconstructable, then expose the reading you need on top (`pairs.flat()`, a `rangeEnd()` helper).
89
+
90
+ ## Simplest total type
91
+
92
+ Don't strengthen everything. Keep `T[]` when every operation on it is total:
93
+
94
+ ```ts
95
+ const sum = (xs: number[]) => xs.reduce((a, b) => a + b, 0); // [] is 0, fine
96
+ ```
97
+
98
+ Strengthen when the loose type forces a lie at a use site. The tells are `!`, `arr[0] as T`, and a "should never happen" throw:
99
+
100
+ ```ts
101
+ // Don't: partiality smuggled past the compiler
102
+ function newestSession(sessions: Session[]): Session {
103
+ return sessions.at(0)!;
104
+ }
105
+
106
+ // Do: strengthen the input; the assertion disappears
107
+ function newestSession(sessions: NonEmpty<Session>): Session {
108
+ return sessions[0];
109
+ }
110
+ ```
111
+
112
+ Weakening the result to `Session | undefined` is the other total signature.
113
+
114
+ ## `unknown` over `any`
115
+
116
+ External data is always `unknown`. Narrow before use.
117
+
118
+ ```ts
119
+ // Don't
120
+ function handle(input: any) {
121
+ return input.foo.bar;
122
+ }
123
+
124
+ // Do
125
+ function handle(input: unknown) {
126
+ if (typeof input === "object" && input !== null && "foo" in input) {
127
+ // narrowed; compiler verifies access
128
+ }
129
+ }
130
+ ```
131
+
132
+ External sources include RPC payloads, `JSON.parse`, `postMessage`, IPC, file contents, environment variables, database results.
133
+
134
+ ## Schemas before hand-rolled guards
135
+
136
+ Before writing a property-by-property type guard for external data, look for the repository's runtime schema library and existing schemas. Let one schema own validation and derive the TypeScript type from it. Do not maintain a schema, a duplicate interface, and a guard that can drift apart.
137
+
138
+ ```ts
139
+ import { z } from "zod";
140
+
141
+ const UserSchema = z.object({
142
+ id: z.string().uuid(),
143
+ role: z.enum(["admin", "member"]),
144
+ });
145
+
146
+ type User = z.infer<typeof UserSchema>;
147
+
148
+ function parseUser(input: unknown): User {
149
+ return UserSchema.parse(input);
150
+ }
151
+ ```
152
+
153
+ Use `safeParse` when failure is an expected branch. Use the equivalent inference helper when the repository uses another schema library. Do not add a new schema dependency for one guard. This rule prefers the schema system the codebase already trusts.
154
+
155
+ ## No `as` casts
156
+
157
+ Every `as` is a potential runtime crash. Cast only after the type system has verified the claim.
158
+
159
+ ```ts
160
+ import { z } from "zod";
161
+
162
+ // Don't
163
+ const user = data as User;
164
+
165
+ // Don't
166
+ function isUser(data: unknown): data is User {
167
+ return typeof data === "object" && data !== null && "id" in data;
168
+ }
169
+
170
+ // Do
171
+ const userSchema = z.object({ id: z.string(), name: z.string() });
172
+ type User = z.infer<typeof userSchema>;
173
+
174
+ function parseUser(data: unknown): User {
175
+ return userSchema.parse(data);
176
+ }
177
+ ```
178
+
179
+ When the type comes first, annotate the validator with the type it proves. The compiler then rejects a validator that proves less than the type. Remove `name` from the object below and the assignment fails to compile.
180
+
181
+ ```ts
182
+ type User = { id: string; name: string };
183
+
184
+ const userSchema: z.ZodType<User> = z.object({ id: z.string(), name: z.string() });
185
+ ```
186
+
187
+ When refactoring an `as` out of existing code, identify why TypeScript can't infer:
188
+
189
+ - Missing discriminant: add one, switch to a discriminated union.
190
+ - Overly wide source type (e.g. `Record<string, unknown>`): narrow it.
191
+ - Untyped boundary: parse with the schema that owns the shape. Add a schema only where none exists.
192
+ - Genuinely inexpressible: use a branded type or `satisfies`.
193
+
194
+ ## Narrowing hierarchy
195
+
196
+ From best to last-resort:
197
+
198
+ 1. **Discriminated union switch / if.** Compiler narrows automatically.
199
+ 2. **`in` operator.** `"key" in obj` narrows to variants containing that key.
200
+ 3. **`typeof` / `instanceof`.** For primitives and class instances.
201
+ 4. **User-defined type guard.** When the above aren't enough.
202
+ 5. **`as` cast.** Only after validation.
203
+
204
+ ```ts
205
+ function area(s: Shape): number {
206
+ if ("radius" in s) return Math.PI * s.radius ** 2; // narrowed to circle
207
+ return s.width * s.height; // narrowed to rect
208
+ }
209
+ ```
210
+
211
+ ## Type guards
212
+
213
+ A guard must actually verify the claim. A lying guard is worse than `as`.
214
+
215
+ ```ts
216
+ function isCircle(s: Shape): s is Shape & { kind: "circle" } {
217
+ return s.kind === "circle";
218
+ }
219
+ ```
220
+
221
+ Prefer discriminant narrowing when possible.
222
+
223
+ ## Exhaustiveness
224
+
225
+ In default arms, assign the discriminant to a `never`-typed local.
226
+
227
+ ```ts
228
+ // Value-returning switch
229
+ function area(s: Shape): number {
230
+ switch (s.kind) {
231
+ case "circle":
232
+ return Math.PI * s.radius ** 2;
233
+ case "rect":
234
+ return s.width * s.height;
235
+ default: {
236
+ const _exhaustive: never = s;
237
+ return _exhaustive;
238
+ }
239
+ }
240
+ }
241
+
242
+ // Void switch
243
+ function handle(s: Shape): void {
244
+ switch (s.kind) {
245
+ case "circle":
246
+ drawCircle(s);
247
+ break;
248
+ case "rect":
249
+ drawRect(s);
250
+ break;
251
+ default: {
252
+ const _exhaustive: never = s;
253
+ void _exhaustive;
254
+ }
255
+ }
256
+ }
257
+ ```
258
+
259
+ Return-style in value-returning switches, void-style in statement switches.
260
+
261
+ ## `satisfies` over `as`
262
+
263
+ `satisfies` validates without widening literal types.
264
+
265
+ ```ts
266
+ // Don't. Widens, loses literal types.
267
+ const config = { theme: "dark", cols: 3 } as Config;
268
+
269
+ // Do. Validates AND preserves literal types.
270
+ const config = { theme: "dark", cols: 3 } satisfies Config;
271
+ // config.theme is "dark" (literal), not string
272
+ ```
273
+
274
+ ## Boundary validation
275
+
276
+ Validate once where data crosses in. Trust types inside. See the **boundary-discipline** principle skill.
277
+
278
+ - **Wire formats** (proto, JSON-RPC): parse with `ignoreUnknownFields` so forward-compatible changes don't break old clients.
279
+ - **Persisted JSON:** versioned blob with a try/catch around the parse.
280
+ - **Don't re-validate** deep in call chains.
281
+
282
+ ## Schema-derived types
283
+
284
+ When a `.proto`, OpenAPI spec, GraphQL schema, or database migration already defines a shape, derive from the generated types instead of duplicating them.
285
+
286
+ ```ts
287
+ // Don't. Duplicate shape, drifts when the schema changes.
288
+ type CheckSummary = {
289
+ totalCount: number;
290
+ checks: { name: string; status: string }[];
291
+ };
292
+ function renderChecks(s: CheckSummary) {
293
+ /* ... */
294
+ }
295
+
296
+ // Do. Derive from the generated schema type.
297
+ import type { ChecksMessage } from "<generated module>";
298
+ function renderChecks(s: Pick<ChecksMessage, "totalCount" | "checks">) {
299
+ /* ... */
300
+ }
301
+ ```
302
+
303
+ Reach for `Pick`, `Omit`, `Parameters`, `ReturnType`, `Awaited`, `typeof` before writing a new interface.
304
+
305
+ ## Object args
306
+
307
+ ```ts
308
+ // Don't. Swap two args, still compiles.
309
+ openFile(uri, {
310
+ startLineNumber: 10,
311
+ startColumn: 1,
312
+ endLineNumber: 10,
313
+ endColumn: 1,
314
+ });
315
+
316
+ // Do. Order-independent, self-documenting.
317
+ openFile({
318
+ uri,
319
+ selection: {
320
+ startLineNumber: 10,
321
+ startColumn: 1,
322
+ endLineNumber: 10,
323
+ endColumn: 1,
324
+ },
325
+ });
326
+ ```
327
+
328
+ Skip on hot paths: per-frame render, tokenizers, parsers, anything in a tight loop where the allocation cost matters.
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: unslop
3
+ description: Cut AI tells from any writing.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Unslop
8
+
9
+ Edit text to remove AI patterns. Scan for the patterns below, then rewrite. Preserve meaning and match the intended tone.
10
+
11
+ Rule numbers are stable ids that other skills cite. A removed rule leaves a gap.
12
+
13
+ 3. No trailing "-ing" phrases that add no fact ("highlighting...", "ensuring...").
14
+ 5. No vague attributions ("experts believe"). Name the source or delete.
15
+ 7. No AI vocabulary: additionally, crucial, delve, enhance, foster, landscape, pivotal, showcase, testament, underscore, vibrant.
16
+ 8. Say "is" or "has", not "serves as", "stands as", "boasts", "features".
17
+ 9. No "not just X, but Y". State the point.
18
+ 10. Don't force ideas into threes.
19
+ 11. One name per thing. Repeat it.
20
+ 12. No "from X to Y" unless X and Y sit on a real scale.
21
+ 13. No em dashes, en dashes, or hyphens used as dashes, and no parentheses in their place. Use a period or a comma.
22
+ 14. A colon goes before a list or an example, never mid-sentence as a connector.
23
+ 15. Don't bold every proper noun or acronym.
24
+ 16. No bold label and colon that restates its line ("**Performance:** Performance improved..."). A bold lead-in that ends in a period and adds new detail is fine.
25
+ 17. Sentence case headings.
26
+ 18. No decorative emojis.
27
+ 19. Straight quotes.
28
+ 20. No chatbot phrases ("I hope this helps!", "Let me know if...").
29
+ 22. No praise or agreement openers. Respond directly.
30
+ 23. Cut filler. "In order to" becomes "to". Delete "it is important to note that".
31
+ 24. One hedge at most: "may".
32
+ 25. No generic conclusions. State specific plans or facts.
33
+ 26. No abstract metaphor nouns: substrate, wedge, vector, nexus, primitive, harness, surface, scaffolding, paradigm, ratchet, north star, flywheel. Use the concrete word.
34
+ 27. Say what it does, not how it feels. Name the mechanism or the number. Cut a sentence that could appear unchanged in another project's docs.
35
+ 28. One idea per sentence. Split a sentence the reader has to reread.
36
+ 29. Active voice. Name the actor unless it is unknown or doesn't matter.
37
+ 30. Cut adverbs or use a stronger verb. Give the number.
38
+ 31. Use the plain word: "use", not "utilize" or "leverage".
39
+ 32. No metaphor, aphorism, personified code, or figurative verb where a literal phrase exists.
40
+ 33. Write whole sentences with their articles and verbs. Spell out arrows and abbreviations.
@@ -0,0 +1,9 @@
1
+ ---
2
+ name: why
3
+ description: "Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Returns a cited read on decisions and tradeoffs. Use how for runtime behavior."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Why
8
+
9
+ Answer from the record, not the code: read the commits and PR discussions that introduced the target and each later change, and other sources if the trail is thin. Cite what the authors wrote, mark your own inferences as inferences, and say what the record does not answer.
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
+ "name": "pstack",
4
+ "version": "0.15.43",
5
+ "description": "if you want to go fast, go deep first. pstack helps you write less, but higher quality code. rigorous agent workflows you can parallelize with confidence.",
6
+ "author": {
7
+ "name": "Lauren Tan"
8
+ },
9
+ "homepage": "https://github.com/cursor/plugins/tree/main/pstack",
10
+ "repository": "https://github.com/cursor/plugins",
11
+ "license": "MIT",
12
+ "keywords": [
13
+ "pstack",
14
+ "poteto-mode",
15
+ "workflow",
16
+ "principles",
17
+ "agent-style",
18
+ "subagents",
19
+ "unslop"
20
+ ]
21
+ }