@needfspeed/skills-library 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (548) hide show
  1. package/CATALOG.md +38 -13
  2. package/README.md +1 -1
  3. package/docs/pstack/README.md +27 -14
  4. package/docs/pstack/agents/comment-sicko.md +32 -0
  5. package/docs/pstack/agents/poteto-agent.md +9 -0
  6. package/package.json +1 -1
  7. package/skills/pstack/architect/SKILL.md +17 -17
  8. package/skills/pstack/architect/references/design-red-flags.md +57 -0
  9. package/skills/pstack/architect/references/rationale-template.md +3 -3
  10. package/skills/pstack/architect/references/runner-prompt.md +7 -6
  11. package/skills/pstack/arena/SKILL.md +14 -37
  12. package/skills/pstack/automate-me/SKILL.md +20 -25
  13. package/skills/pstack/benchmark-checklist/SKILL.md +39 -0
  14. package/skills/pstack/blast-radius/SKILL.md +50 -0
  15. package/skills/pstack/bro/SKILL.md +7 -0
  16. package/skills/pstack/correct/SKILL.md +32 -0
  17. package/skills/pstack/create-formal-verification-skill/SKILL.md +43 -0
  18. package/skills/pstack/create-verification-skill/SKILL.md +44 -0
  19. package/skills/pstack/create-verification-skill/references/feature-map-example/README.md +47 -0
  20. package/skills/pstack/create-verification-skill/references/feature-map-example/create-note.md +39 -0
  21. package/skills/pstack/create-verification-skill/references/feature-map-example/search.md +45 -0
  22. package/skills/pstack/figure-it-out/SKILL.md +14 -17
  23. package/skills/pstack/how/SKILL.md +17 -115
  24. package/skills/pstack/how/references/explainer-prompt.md +6 -6
  25. package/skills/pstack/how/references/explorer-prompt.md +1 -18
  26. package/skills/pstack/in-your-own-words/SKILL.md +7 -0
  27. package/skills/pstack/interrogate/SKILL.md +14 -89
  28. package/skills/pstack/ketchup/SKILL.md +43 -0
  29. package/skills/pstack/ketchup-video/SKILL.md +29 -0
  30. package/skills/pstack/maintain-formal-verification-skill/SKILL.md +58 -0
  31. package/skills/pstack/maintain-verification-skill/SKILL.md +39 -0
  32. package/skills/pstack/make-bot-ui/SKILL.md +115 -0
  33. package/skills/pstack/no-comments/SKILL.md +24 -0
  34. package/skills/pstack/poteto-help/SKILL.md +163 -0
  35. package/skills/pstack/poteto-help/references/prompting.md +51 -0
  36. package/skills/pstack/poteto-help/references/recipes.md +51 -0
  37. package/skills/pstack/poteto-mode/SKILL.md +82 -56
  38. package/skills/pstack/poteto-mode/playbooks/authoring-a-skill.md +3 -3
  39. package/skills/pstack/poteto-mode/playbooks/autonomous-run.md +5 -4
  40. package/skills/pstack/poteto-mode/playbooks/autopilot-full.md +25 -0
  41. package/skills/pstack/poteto-mode/playbooks/autopilot-stack.md +8 -0
  42. package/skills/pstack/poteto-mode/playbooks/babysit.md +23 -0
  43. package/skills/pstack/poteto-mode/playbooks/bug-fix.md +6 -8
  44. package/skills/pstack/poteto-mode/playbooks/eval.md +6 -8
  45. package/skills/pstack/poteto-mode/playbooks/feature.md +7 -7
  46. package/skills/pstack/poteto-mode/playbooks/hillclimb.md +21 -0
  47. package/skills/pstack/poteto-mode/playbooks/investigation.md +3 -3
  48. package/skills/pstack/poteto-mode/playbooks/multi-phase-plan.md +153 -1
  49. package/skills/pstack/poteto-mode/playbooks/opening-a-pr.md +27 -4
  50. package/skills/pstack/poteto-mode/playbooks/orchestrate.md +25 -0
  51. package/skills/pstack/poteto-mode/playbooks/pause-safely.md +5 -5
  52. package/skills/pstack/poteto-mode/playbooks/perf-issue.md +16 -4
  53. package/skills/pstack/poteto-mode/playbooks/prototype.md +5 -5
  54. package/skills/pstack/poteto-mode/playbooks/refactoring.md +10 -9
  55. package/skills/pstack/poteto-mode/playbooks/runtime-forensics.md +3 -3
  56. package/skills/pstack/poteto-mode/playbooks/session-pickup.md +4 -6
  57. package/skills/pstack/poteto-mode/playbooks/shipping.md +12 -0
  58. package/skills/pstack/poteto-mode/playbooks/trace-forensics.md +5 -5
  59. package/skills/pstack/poteto-mode/playbooks/visual-parity.md +3 -3
  60. package/skills/pstack/poteto-mode/playbooks/worktree-cleanup.md +12 -0
  61. package/skills/pstack/poteto-mode/references/bugbot-triage.md +142 -0
  62. package/skills/pstack/poteto-mode/scripts/bootstrap.ts +62 -0
  63. package/skills/pstack/poteto-mode/scripts/bun.lock +67 -0
  64. package/skills/pstack/poteto-mode/scripts/check-plan.mjs +205 -0
  65. package/skills/pstack/poteto-mode/scripts/check-plan.test.ts +110 -0
  66. package/skills/pstack/poteto-mode/scripts/package.json +16 -0
  67. package/skills/pstack/poteto-mode/scripts/watch-pr/cli.test.ts +224 -0
  68. package/skills/pstack/poteto-mode/scripts/watch-pr/cli.ts +223 -0
  69. package/skills/pstack/poteto-mode/scripts/watch-pr/fakes.test-helper.ts +129 -0
  70. package/skills/pstack/poteto-mode/scripts/watch-pr/github.test.ts +498 -0
  71. package/skills/pstack/poteto-mode/scripts/watch-pr/github.ts +726 -0
  72. package/skills/pstack/poteto-mode/scripts/watch-pr/policy.test.ts +482 -0
  73. package/skills/pstack/poteto-mode/scripts/watch-pr/policy.ts +842 -0
  74. package/skills/pstack/poteto-mode/scripts/watch-pr/render.ts +169 -0
  75. package/skills/pstack/poteto-mode/scripts/watch-pr/tsconfig.json +13 -0
  76. package/skills/pstack/poteto-mode/scripts/watch-pr/types.compile.ts +93 -0
  77. package/skills/pstack/poteto-mode/scripts/watch-pr/types.ts +414 -0
  78. package/skills/pstack/poteto-mode/scripts/watch-pr/watch-pr +6 -0
  79. package/skills/pstack/poteto-mode/scripts/worktree-audit.sh +134 -0
  80. package/skills/pstack/principle-attack-the-premise/SKILL.md +21 -0
  81. package/skills/pstack/principle-boundary-discipline/SKILL.md +5 -3
  82. package/skills/pstack/principle-build-the-lever/SKILL.md +7 -7
  83. package/skills/pstack/principle-encode-lessons-in-structure/SKILL.md +2 -22
  84. package/skills/pstack/principle-exhaust-the-design-space/SKILL.md +1 -13
  85. package/skills/pstack/principle-experience-first/SKILL.md +5 -5
  86. package/skills/pstack/principle-explain-the-number/SKILL.md +18 -0
  87. package/skills/pstack/principle-fix-root-causes/SKILL.md +11 -12
  88. package/skills/pstack/principle-foundational-thinking/SKILL.md +5 -3
  89. package/skills/pstack/principle-guard-the-context-window/SKILL.md +1 -6
  90. package/skills/pstack/principle-laziness-protocol/SKILL.md +0 -7
  91. package/skills/pstack/principle-make-operations-idempotent/SKILL.md +4 -6
  92. package/skills/pstack/principle-migrate-callers-then-delete-legacy-apis/SKILL.md +0 -8
  93. package/skills/pstack/principle-minimize-reader-load/SKILL.md +6 -9
  94. package/skills/pstack/principle-model-the-domain/SKILL.md +24 -0
  95. package/skills/pstack/principle-never-block-on-the-human/SKILL.md +7 -15
  96. package/skills/pstack/principle-outcome-oriented-execution/SKILL.md +0 -1
  97. package/skills/pstack/principle-prove-it-works/SKILL.md +2 -13
  98. package/skills/pstack/principle-redesign-from-first-principles/SKILL.md +4 -4
  99. package/skills/pstack/principle-separate-before-serializing-shared-state/SKILL.md +3 -3
  100. package/skills/pstack/principle-sequence-verifiable-units/SKILL.md +3 -8
  101. package/skills/pstack/principle-subtract-before-you-add/SKILL.md +3 -5
  102. package/skills/pstack/principle-test-behavior-not-implementation/SKILL.md +20 -0
  103. package/skills/pstack/principle-type-system-discipline/SKILL.md +5 -21
  104. package/skills/pstack/recall/SKILL.md +35 -0
  105. package/skills/pstack/reflect/SKILL.md +25 -33
  106. package/skills/pstack/reflect/references/divergent-reviewer.md +8 -13
  107. package/skills/pstack/reflect/references/judgment-reviewer.md +8 -13
  108. package/skills/pstack/reflect/references/synthesizer.md +4 -4
  109. package/skills/pstack/reflect/references/tooling-reviewer.md +9 -18
  110. package/skills/pstack/setup-pstack/SKILL.md +44 -21
  111. package/skills/pstack/sharpen/SKILL.md +16 -0
  112. package/skills/pstack/show-me-your-work/SKILL.md +20 -20
  113. package/skills/pstack/show-me-your-work/scripts/log.sh +4 -2
  114. package/skills/pstack/statechart/SKILL.md +82 -0
  115. package/skills/pstack/statechart/references/render.md +93 -0
  116. package/skills/pstack/statechart/scripts/backends/cfg.ts +33 -0
  117. package/skills/pstack/statechart/scripts/backends/mermaid.ts +201 -0
  118. package/skills/pstack/statechart/scripts/backends/plain-text.ts +72 -0
  119. package/skills/pstack/statechart/scripts/backends/report.ts +177 -0
  120. package/skills/pstack/statechart/scripts/frontends/config.ts +276 -0
  121. package/skills/pstack/statechart/scripts/frontends/dot.ts +74 -0
  122. package/skills/pstack/statechart/scripts/frontends/marks.ts +93 -0
  123. package/skills/pstack/statechart/scripts/frontends/messages.ts +52 -0
  124. package/skills/pstack/statechart/scripts/frontends/spec.ts +114 -0
  125. package/skills/pstack/statechart/scripts/frontends/trace.ts +24 -0
  126. package/skills/pstack/statechart/scripts/frontends/value.ts +166 -0
  127. package/skills/pstack/statechart/scripts/frontends/verdict.ts +40 -0
  128. package/skills/pstack/statechart/scripts/frontends/view.ts +119 -0
  129. package/skills/pstack/statechart/scripts/ir.ts +547 -0
  130. package/skills/pstack/statechart/scripts/package.json +11 -0
  131. package/skills/pstack/statechart/scripts/passes/annotate.ts +128 -0
  132. package/skills/pstack/statechart/scripts/passes/label.ts +269 -0
  133. package/skills/pstack/statechart/scripts/passes/lift.ts +85 -0
  134. package/skills/pstack/statechart/scripts/passes/loop-check.ts +68 -0
  135. package/skills/pstack/statechart/scripts/passes/paths.ts +60 -0
  136. package/skills/pstack/statechart/scripts/passes/reach.ts +135 -0
  137. package/skills/pstack/statechart/scripts/passes/region-check.ts +97 -0
  138. package/skills/pstack/statechart/scripts/passes/regions.ts +295 -0
  139. package/skills/pstack/statechart/scripts/pipeline.ts +76 -0
  140. package/skills/pstack/statechart/scripts/run.ts +481 -0
  141. package/skills/pstack/statechart/scripts/statechart +29 -0
  142. package/skills/pstack/statechart/scripts/statechart.ts +164 -0
  143. package/skills/pstack/statechart/scripts/test/ConfigOracle.java +63 -0
  144. package/skills/pstack/statechart/scripts/test/chart.test.ts +1210 -0
  145. package/skills/pstack/statechart/scripts/test/charts/Braces.mmd +7 -0
  146. package/skills/pstack/statechart/scripts/test/charts/Escapes.mmd +11 -0
  147. package/skills/pstack/statechart/scripts/test/charts/Phases.mmd +29 -0
  148. package/skills/pstack/statechart/scripts/test/cli.test.ts +1314 -0
  149. package/skills/pstack/statechart/scripts/test/config-fuzz.test.ts +263 -0
  150. package/skills/pstack/statechart/scripts/test/corpus/Counter/ChartRun.out +57 -0
  151. package/skills/pstack/statechart/scripts/test/corpus/Counter/Counter.cfg +3 -0
  152. package/skills/pstack/statechart/scripts/test/corpus/Counter/Counter.tla +10 -0
  153. package/skills/pstack/statechart/scripts/test/corpus/Counter/chart.mmd +9 -0
  154. package/skills/pstack/statechart/scripts/test/corpus/Counter/graph.dot +16 -0
  155. package/skills/pstack/statechart/scripts/test/corpus/Counter/report.md +7 -0
  156. package/skills/pstack/statechart/scripts/test/corpus/Counter/sany.out +2 -0
  157. package/skills/pstack/statechart/scripts/test/corpus/Counter/verdict-1.out +49 -0
  158. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/ChartRun.out +60 -0
  159. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/CounterAction.cfg +4 -0
  160. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/CounterAction.tla +22 -0
  161. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/chart.mmd +26 -0
  162. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/graph.dot +19 -0
  163. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/report.md +20 -0
  164. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/sany.out +2 -0
  165. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/verdict-1.exit +1 -0
  166. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/verdict-1.out +56 -0
  167. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/verdict-2.exit +1 -0
  168. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/verdict-2.out +82 -0
  169. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/verdict-3.out +57 -0
  170. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/ChartRun.out +59 -0
  171. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.cfg +3 -0
  172. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.tla +11 -0
  173. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/chart.mmd +22 -0
  174. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/graph.dot +16 -0
  175. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/report.md +17 -0
  176. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/sany.out +2 -0
  177. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.exit +1 -0
  178. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.out +56 -0
  179. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.exit +1 -0
  180. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.out +77 -0
  181. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/ChartRun.out +69 -0
  182. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/CounterFan.cfg +2 -0
  183. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/CounterFan.tla +11 -0
  184. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/chart.mmd +85 -0
  185. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/graph.dot +70 -0
  186. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/report.md +12 -0
  187. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/sany.out +2 -0
  188. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/verdict-1.exit +1 -0
  189. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/verdict-1.out +67 -0
  190. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/verdict-2.out +57 -0
  191. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/ChartRun.exit +1 -0
  192. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/ChartRun.out +85 -0
  193. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/CounterGuard.cfg +6 -0
  194. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/CounterGuard.tla +13 -0
  195. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/chart.mmd +5 -0
  196. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/graph.dot +10 -0
  197. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/report.md +31 -0
  198. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/sany.out +2 -0
  199. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/verdict-1.exit +1 -0
  200. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/verdict-1.out +64 -0
  201. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/verdict-2.exit +1 -0
  202. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/verdict-2.out +77 -0
  203. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/ChartRun.out +55 -0
  204. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.cfg +3 -0
  205. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.tla +10 -0
  206. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/chart.mmd +12 -0
  207. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/graph.dot +6 -0
  208. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/report.md +12 -0
  209. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/sany.out +2 -0
  210. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/verdict-1.exit +1 -0
  211. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/verdict-1.out +33 -0
  212. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/verdict-2.out +54 -0
  213. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/ChartRun.out +54 -0
  214. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.cfg +3 -0
  215. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.tla +10 -0
  216. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/chart.mmd +1 -0
  217. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/graph.dot +6 -0
  218. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/report.md +7 -0
  219. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/sany.out +2 -0
  220. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/verdict-1.out +46 -0
  221. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/ChartRun.out +59 -0
  222. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/CounterInstance.cfg +2 -0
  223. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/CounterInstance.tla +10 -0
  224. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/CounterSteps.tla +6 -0
  225. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/chart.mmd +17 -0
  226. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/graph.dot +15 -0
  227. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/report.md +14 -0
  228. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/sany.out +3 -0
  229. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/verdict-1.exit +1 -0
  230. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/verdict-1.out +78 -0
  231. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/ChartRun.out +59 -0
  232. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/CounterJump.cfg +3 -0
  233. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/CounterJump.tla +19 -0
  234. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/chart.mmd +26 -0
  235. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/graph.dot +22 -0
  236. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/report.md +12 -0
  237. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/sany.out +2 -0
  238. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/verdict-1.exit +1 -0
  239. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/verdict-1.out +58 -0
  240. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/verdict-2.out +57 -0
  241. package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/ChartRun.out +57 -0
  242. package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/CounterLoop.cfg +2 -0
  243. package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/CounterLoop.tla +11 -0
  244. package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/chart.mmd +17 -0
  245. package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/graph.dot +15 -0
  246. package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/report.md +14 -0
  247. package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/sany.out +2 -0
  248. package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/verdict-1.exit +1 -0
  249. package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/verdict-1.out +76 -0
  250. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/ChartRun.out +59 -0
  251. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/CounterOrder.cfg +3 -0
  252. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/CounterOrder.tla +11 -0
  253. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/chart.mmd +19 -0
  254. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/graph.dot +10 -0
  255. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/report.md +15 -0
  256. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/sany.out +2 -0
  257. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/verdict-1.exit +1 -0
  258. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/verdict-1.out +56 -0
  259. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/verdict-2.exit +1 -0
  260. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/verdict-2.out +67 -0
  261. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/ChartRun.out +62 -0
  262. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/CounterRules.cfg +6 -0
  263. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/CounterRules.tla +24 -0
  264. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/Moves.tla +5 -0
  265. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/chart.mmd +22 -0
  266. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/graph.dot +10 -0
  267. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/report.md +23 -0
  268. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/sany.out +3 -0
  269. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-1.exit +1 -0
  270. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-1.out +58 -0
  271. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-2.exit +1 -0
  272. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-2.out +66 -0
  273. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-3.exit +1 -0
  274. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-3.out +74 -0
  275. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-4.out +59 -0
  276. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/ChartRun.out +58 -0
  277. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/CounterStart.cfg +3 -0
  278. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/CounterStart.tla +15 -0
  279. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/chart.mmd +18 -0
  280. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/graph.dot +13 -0
  281. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/report.md +11 -0
  282. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/sany.out +2 -0
  283. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/verdict-1.exit +1 -0
  284. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/verdict-1.out +33 -0
  285. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/verdict-2.out +57 -0
  286. package/skills/pstack/statechart/scripts/test/corpus/CounterStop/ChartRun.out +57 -0
  287. package/skills/pstack/statechart/scripts/test/corpus/CounterStop/CounterStop.cfg +3 -0
  288. package/skills/pstack/statechart/scripts/test/corpus/CounterStop/CounterStop.tla +15 -0
  289. package/skills/pstack/statechart/scripts/test/corpus/CounterStop/chart.mmd +7 -0
  290. package/skills/pstack/statechart/scripts/test/corpus/CounterStop/graph.dot +13 -0
  291. package/skills/pstack/statechart/scripts/test/corpus/CounterStop/report.md +6 -0
  292. package/skills/pstack/statechart/scripts/test/corpus/CounterStop/sany.out +2 -0
  293. package/skills/pstack/statechart/scripts/test/corpus/CounterStop/verdict-1.out +49 -0
  294. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/ChartRun.out +61 -0
  295. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/CounterTie.cfg +4 -0
  296. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/CounterTie.tla +14 -0
  297. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/chart.mmd +30 -0
  298. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/graph.dot +19 -0
  299. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/report.md +27 -0
  300. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/sany.out +2 -0
  301. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-1.exit +1 -0
  302. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-1.out +56 -0
  303. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-2.exit +1 -0
  304. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-2.out +64 -0
  305. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-3.exit +1 -0
  306. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-3.out +87 -0
  307. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-4.out +57 -0
  308. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/ChartRun.out +60 -0
  309. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.cfg +3 -0
  310. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.tla +12 -0
  311. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/chart.mmd +23 -0
  312. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/graph.dot +19 -0
  313. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/report.md +11 -0
  314. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/sany.out +2 -0
  315. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.exit +1 -0
  316. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.out +56 -0
  317. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/verdict-2.out +57 -0
  318. package/skills/pstack/statechart/scripts/test/corpus/CounterView/ChartRun.out +61 -0
  319. package/skills/pstack/statechart/scripts/test/corpus/CounterView/CounterView.cfg +4 -0
  320. package/skills/pstack/statechart/scripts/test/corpus/CounterView/CounterView.tla +14 -0
  321. package/skills/pstack/statechart/scripts/test/corpus/CounterView/chart.mmd +23 -0
  322. package/skills/pstack/statechart/scripts/test/corpus/CounterView/graph.dot +19 -0
  323. package/skills/pstack/statechart/scripts/test/corpus/CounterView/report.md +27 -0
  324. package/skills/pstack/statechart/scripts/test/corpus/CounterView/sany.out +2 -0
  325. package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-1.exit +1 -0
  326. package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-1.out +56 -0
  327. package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-2.exit +1 -0
  328. package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-2.out +64 -0
  329. package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-3.exit +1 -0
  330. package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-3.out +87 -0
  331. package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-4.out +57 -0
  332. package/skills/pstack/statechart/scripts/test/corpus/CounterView/view.mjs +1 -0
  333. package/skills/pstack/statechart/scripts/test/corpus/DieHard/ChartRun.out +59 -0
  334. package/skills/pstack/statechart/scripts/test/corpus/DieHard/DieHard.cfg +4 -0
  335. package/skills/pstack/statechart/scripts/test/corpus/DieHard/DieHard.tla +38 -0
  336. package/skills/pstack/statechart/scripts/test/corpus/DieHard/chart.mmd +92 -0
  337. package/skills/pstack/statechart/scripts/test/corpus/DieHard/graph.dot +126 -0
  338. package/skills/pstack/statechart/scripts/test/corpus/DieHard/report.md +17 -0
  339. package/skills/pstack/statechart/scripts/test/corpus/DieHard/sany.out +2 -0
  340. package/skills/pstack/statechart/scripts/test/corpus/DieHard/verdict-1.exit +1 -0
  341. package/skills/pstack/statechart/scripts/test/corpus/DieHard/verdict-1.out +91 -0
  342. package/skills/pstack/statechart/scripts/test/corpus/DieHard/verdict-2.out +57 -0
  343. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/ChartRun.out +61 -0
  344. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/FirstRule.cfg +6 -0
  345. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/FirstRule.tla +11 -0
  346. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/chart.mmd +22 -0
  347. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/graph.dot +16 -0
  348. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/report.md +25 -0
  349. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/sany.out +2 -0
  350. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-1.exit +1 -0
  351. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-1.out +56 -0
  352. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-2.exit +1 -0
  353. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-2.out +64 -0
  354. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-3.exit +1 -0
  355. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-3.out +64 -0
  356. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-4.exit +1 -0
  357. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-4.out +77 -0
  358. package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/ChartRun.out +57 -0
  359. package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/HiddenClock.cfg +4 -0
  360. package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/HiddenClock.tla +11 -0
  361. package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/chart.mmd +13 -0
  362. package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/graph.dot +12 -0
  363. package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/report.md +11 -0
  364. package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/sany.out +2 -0
  365. package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/verdict-1.exit +1 -0
  366. package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/verdict-1.out +72 -0
  367. package/skills/pstack/statechart/scripts/test/corpus/Login/ChartRun.out +57 -0
  368. package/skills/pstack/statechart/scripts/test/corpus/Login/Login.cfg +3 -0
  369. package/skills/pstack/statechart/scripts/test/corpus/Login/Login.tla +62 -0
  370. package/skills/pstack/statechart/scripts/test/corpus/Login/chart.mmd +27 -0
  371. package/skills/pstack/statechart/scripts/test/corpus/Login/graph.dot +40 -0
  372. package/skills/pstack/statechart/scripts/test/corpus/Login/report.md +7 -0
  373. package/skills/pstack/statechart/scripts/test/corpus/Login/sany.out +1 -0
  374. package/skills/pstack/statechart/scripts/test/corpus/Login/verdict-1.out +47 -0
  375. package/skills/pstack/statechart/scripts/test/corpus/Login/view.mjs +1 -0
  376. package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/ChartRun.out +57 -0
  377. package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.cfg +2 -0
  378. package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.tla +64 -0
  379. package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/chart.mmd +28 -0
  380. package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/graph.dot +37 -0
  381. package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/report.md +8 -0
  382. package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/sany.out +1 -0
  383. package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/verdict-1.out +47 -0
  384. package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/view.mjs +1 -0
  385. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/ChartRun.out +60 -0
  386. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/LoginParallel.cfg +3 -0
  387. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/LoginParallel.tla +64 -0
  388. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/chart.mmd +44 -0
  389. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/graph.dot +58 -0
  390. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/report.md +17 -0
  391. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/sany.out +1 -0
  392. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/verdict-1.exit +1 -0
  393. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/verdict-1.out +83 -0
  394. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/verdict-2.out +57 -0
  395. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/view.mjs +1 -0
  396. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/ChartRun.out +60 -0
  397. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.cfg +3 -0
  398. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.tla +103 -0
  399. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/chart.mmd +43 -0
  400. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/graph.dot +93 -0
  401. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/report.md +14 -0
  402. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/sany.out +1 -0
  403. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/verdict-1.exit +1 -0
  404. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/verdict-1.out +59 -0
  405. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/verdict-2.out +72 -0
  406. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/view.mjs +3 -0
  407. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/ChartRun.out +57 -0
  408. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.cfg +2 -0
  409. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.tla +100 -0
  410. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/chart.mmd +31 -0
  411. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/graph.dot +85 -0
  412. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/report.md +9 -0
  413. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/sany.out +1 -0
  414. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/verdict-1.out +47 -0
  415. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/view.mjs +3 -0
  416. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/ChartRun.out +59 -0
  417. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayer.tla +103 -0
  418. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.cfg +3 -0
  419. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.tla +6 -0
  420. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/chart.mmd +42 -0
  421. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/graph.dot +93 -0
  422. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/report.md +19 -0
  423. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/sany.out +2 -0
  424. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.exit +1 -0
  425. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.out +61 -0
  426. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-2.out +59 -0
  427. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-3.out +61 -0
  428. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.exit +1 -0
  429. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.out +66 -0
  430. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.exit +1 -0
  431. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.out +58 -0
  432. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-6.out +49 -0
  433. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/view.mjs +3 -0
  434. package/skills/pstack/statechart/scripts/test/corpus/PickWorker/ChartRun.out +57 -0
  435. package/skills/pstack/statechart/scripts/test/corpus/PickWorker/PickWorker.cfg +6 -0
  436. package/skills/pstack/statechart/scripts/test/corpus/PickWorker/PickWorker.tla +11 -0
  437. package/skills/pstack/statechart/scripts/test/corpus/PickWorker/chart.mmd +5 -0
  438. package/skills/pstack/statechart/scripts/test/corpus/PickWorker/graph.dot +11 -0
  439. package/skills/pstack/statechart/scripts/test/corpus/PickWorker/report.md +7 -0
  440. package/skills/pstack/statechart/scripts/test/corpus/PickWorker/sany.out +5 -0
  441. package/skills/pstack/statechart/scripts/test/corpus/PickWorker/verdict-1.out +70 -0
  442. package/skills/pstack/statechart/scripts/test/corpus/Shadow/ChartRun.out +61 -0
  443. package/skills/pstack/statechart/scripts/test/corpus/Shadow/Shadow.cfg +4 -0
  444. package/skills/pstack/statechart/scripts/test/corpus/Shadow/Shadow.tla +11 -0
  445. package/skills/pstack/statechart/scripts/test/corpus/Shadow/ShadowLib.tla +6 -0
  446. package/skills/pstack/statechart/scripts/test/corpus/Shadow/ShadowSub.tla +3 -0
  447. package/skills/pstack/statechart/scripts/test/corpus/Shadow/chart.mmd +9 -0
  448. package/skills/pstack/statechart/scripts/test/corpus/Shadow/graph.dot +16 -0
  449. package/skills/pstack/statechart/scripts/test/corpus/Shadow/report.md +8 -0
  450. package/skills/pstack/statechart/scripts/test/corpus/Shadow/sany.out +4 -0
  451. package/skills/pstack/statechart/scripts/test/corpus/Shadow/verdict-1.out +65 -0
  452. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/ChartRun.out +59 -0
  453. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/SpacedNames.cfg +2 -0
  454. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/SpacedNames.tla +9 -0
  455. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/chart.mmd +23 -0
  456. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/graph.dot +17 -0
  457. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/report.md +15 -0
  458. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/sany.out +1 -0
  459. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/verdict-1.exit +1 -0
  460. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/verdict-1.out +65 -0
  461. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/verdict-2.exit +1 -0
  462. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/verdict-2.out +75 -0
  463. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/ChartRun.out +69 -0
  464. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/TwoPhase.cfg +3 -0
  465. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/TwoPhase.tla +75 -0
  466. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/chart.mmd +60 -0
  467. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/graph.dot +297 -0
  468. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/report.md +20 -0
  469. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/sany.out +1 -0
  470. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/verdict-1.exit +1 -0
  471. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/verdict-1.out +95 -0
  472. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/verdict-2.out +57 -0
  473. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/view.mjs +1 -0
  474. package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/ChartRun.out +57 -0
  475. package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.cfg +3 -0
  476. package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.tla +75 -0
  477. package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/chart.mmd +37 -0
  478. package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/graph.dot +223 -0
  479. package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/report.md +11 -0
  480. package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/sany.out +1 -0
  481. package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/verdict-1.out +47 -0
  482. package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/view.mjs +1 -0
  483. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/ChartRun.exit +1 -0
  484. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/ChartRun.out +75 -0
  485. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/TypeGuard.cfg +5 -0
  486. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/TypeGuard.tla +11 -0
  487. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/chart.mmd +18 -0
  488. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/graph.dot +14 -0
  489. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/report.md +29 -0
  490. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/sany.out +2 -0
  491. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/verdict-1.exit +1 -0
  492. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/verdict-1.out +64 -0
  493. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/verdict-2.exit +1 -0
  494. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/verdict-2.out +75 -0
  495. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/ChartRun.out +58 -0
  496. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.cfg +2 -0
  497. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.tla +8 -0
  498. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/chart.mmd +22 -0
  499. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/graph.dot +16 -0
  500. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/report.md +15 -0
  501. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/sany.out +2 -0
  502. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.exit +1 -0
  503. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.out +56 -0
  504. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.exit +1 -0
  505. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.out +77 -0
  506. package/skills/pstack/statechart/scripts/test/corpus.test.ts +403 -0
  507. package/skills/pstack/statechart/scripts/test/differential.test.ts +565 -0
  508. package/skills/pstack/statechart/scripts/test/grid/Grid.cfg +2 -0
  509. package/skills/pstack/statechart/scripts/test/grid/Grid.tla +9 -0
  510. package/skills/pstack/statechart/scripts/test/grid/sany.out +2 -0
  511. package/skills/pstack/statechart/scripts/test/java.ts +63 -0
  512. package/skills/pstack/statechart/scripts/test/labels.ts +643 -0
  513. package/skills/pstack/statechart/scripts/test/messages.test.ts +212 -0
  514. package/skills/pstack/statechart/scripts/test/pipeline.test.ts +270 -0
  515. package/skills/pstack/statechart/scripts/test/plain-tlc.test.ts +255 -0
  516. package/skills/pstack/statechart/scripts/test/render.test.ts +81 -0
  517. package/skills/pstack/statechart/scripts/test/tlc-out.test.ts +90 -0
  518. package/skills/pstack/statechart/scripts/test/tlc.ts +158 -0
  519. package/skills/pstack/statechart/scripts/tsconfig.json +11 -0
  520. package/skills/pstack/statechart/scripts/worker.ts +35 -0
  521. package/skills/pstack/swarm/SKILL.md +41 -0
  522. package/skills/pstack/tdd/SKILL.md +2 -4
  523. package/skills/pstack/teach/SKILL.md +21 -0
  524. package/skills/pstack/technical-writing/SKILL.md +106 -0
  525. package/skills/pstack/typescript-best-practices/SKILL.md +11 -4
  526. package/skills/pstack/typescript-best-practices/references/patterns.md +127 -22
  527. package/skills/pstack/unslop/SKILL.md +18 -36
  528. package/skills/pstack/why/SKILL.md +31 -162
  529. package/skills/pstack/why/references/epistemics.md +22 -95
  530. package/skills/pstack/why/references/investigator-prompt.md +23 -42
  531. package/skills/pstack/why/references/source-playbook.md +1 -1
  532. package/skills/pstack/why/references/sources/code-archaeology.md +6 -43
  533. package/skills/pstack/why/references/sources/databricks.md +7 -7
  534. package/skills/pstack/why/references/sources/datadog.md +13 -15
  535. package/skills/pstack/why/references/sources/incident-postmortem.md +0 -10
  536. package/skills/pstack/why/references/sources/linear.md +2 -2
  537. package/skills/pstack/why/references/sources/notion.md +3 -3
  538. package/skills/pstack/why/references/sources/sentry.md +3 -37
  539. package/skills/pstack/why/references/sources/slack.md +1 -38
  540. package/skills/pstack/why/references/synthesizer-prompt.md +35 -41
  541. package/docs/pstack/poteto-agent.md +0 -8
  542. package/skills/pstack/how/references/critic-prompt.md +0 -59
  543. package/skills/pstack/how/references/critique-rubric.md +0 -58
  544. package/skills/pstack/interrogate/references/code-quality-review.md +0 -47
  545. package/skills/pstack/interrogate/references/lead-judgment.md +0 -58
  546. package/skills/pstack/interrogate/references/reviewer-prompt.md +0 -72
  547. package/skills/pstack/interrogate/references/rubric.md +0 -77
  548. package/skills/pstack/poteto-mode/references/plan.md +0 -105
@@ -0,0 +1,134 @@
1
+ #!/usr/bin/env bash
2
+ # Read-only worktree prune audit. Classifies every git worktree by size, merge
3
+ # state, uncommitted work, remote/PR state, and the most recent chat that
4
+ # operated in it. Emits a table sorted by size with a suggested bucket. Never
5
+ # deletes anything; deletion stays a human-gated step in the playbook.
6
+ #
7
+ # Usage: worktree-audit.sh [-b|--base <ref>] [repo-path]
8
+ # repo-path defaults to the current repo.
9
+ # -b sets the ref the MERGED column checks against (e.g. origin/integration).
10
+ # Without it the base is origin/HEAD, then origin/main, then origin/master.
11
+ # origin/HEAD is the remote's default branch, not necessarily the branch PRs
12
+ # merge into; pass -b when they differ.
13
+ set -u
14
+
15
+ base=""
16
+ while [ $# -gt 0 ]; do
17
+ case "$1" in
18
+ -b|--base) [ $# -ge 2 ] || { echo "error: $1 needs a ref" >&2; exit 2; }; base="$2"; shift 2 ;;
19
+ -h|--help) sed -n '2,/^set -u/p' "$0" | sed '$d; s/^# \{0,1\}//'; exit 0 ;;
20
+ -*) echo "error: unknown option: $1" >&2; exit 2 ;;
21
+ *) break ;;
22
+ esac
23
+ done
24
+
25
+ repo="${1:-$(git rev-parse --show-toplevel 2>/dev/null)}"
26
+ [ -z "$repo" ] && { echo "not in a git repo; pass a repo path" >&2; exit 1; }
27
+ cd "$repo" || exit 1
28
+ git rev-parse --git-dir >/dev/null 2>&1 || { echo "error: not a git repo: $repo" >&2; exit 1; }
29
+
30
+ # Main worktree is the first entry; everything else is a candidate.
31
+ main_wt=$(git worktree list --porcelain | awk '/^worktree /{print $2; exit}')
32
+
33
+ if [ -z "$base" ]; then
34
+ for cand in "$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null)" origin/main origin/master; do
35
+ [ -n "$cand" ] && git rev-parse --verify --quiet "$cand^{commit}" >/dev/null && { base="$cand"; break; }
36
+ done
37
+ [ -z "$base" ] && { echo "error: no base ref (origin/HEAD, origin/main, origin/master all missing); pass -b <ref>" >&2; exit 1; }
38
+ echo "warn: no -b given; MERGED checks against $base" >&2
39
+ fi
40
+
41
+ # The base drives the merge check. The fetch is best-effort (stale is fine for
42
+ # a first pass) and runs before the check, since -b may name a branch not
43
+ # fetched yet. The explicit refspec creates it even in a single-branch clone.
44
+ case "$base" in
45
+ origin/*) git fetch origin "+refs/heads/${base#origin/}:refs/remotes/$base" --quiet 2>/dev/null \
46
+ || echo "warn: could not fetch $base; merged column may be stale" >&2 ;;
47
+ esac
48
+ git rev-parse --verify --quiet "$base^{commit}" >/dev/null 2>&1 || { echo "error: base ref not found: $base" >&2; exit 1; }
49
+
50
+ # GNU coreutils (Linux, Homebrew gnubin) reads `stat -f` as file system status
51
+ # and `date -r` as a file, so pick the stat and date flags once.
52
+ if stat -c %Y / >/dev/null 2>&1; then
53
+ stat_fmt=(-c '%Y %n'); fmt_day() { date -d "@$1" '+%Y-%m-%d'; }
54
+ else
55
+ stat_fmt=(-f '%m %N'); fmt_day() { date -r "$1" '+%Y-%m-%d'; }
56
+ fi
57
+
58
+ # PR state by branch, fetched once as [{number, state, head}] with a lowercase
59
+ # state. Origin when its CLI can read this repo's PRs, otherwise gh. Empty when
60
+ # neither can.
61
+ prs=$(mktemp)
62
+ if command -v origin >/dev/null 2>&1 \
63
+ && raw=$(origin pr list --author "@me" --state all --limit 1000 \
64
+ --json number,status,headRef 2>/dev/null); then
65
+ printf '%s' "$raw" | jq '[.[] | {number, state: .status, head: .headRef}]' > "$prs" 2>/dev/null
66
+ elif raw=$(gh pr list --author "@me" --state all --limit 1000 \
67
+ --json number,state,headRefName 2>/dev/null); then
68
+ printf '%s' "$raw" | jq '[.[] | {number, state: (.state | ascii_downcase), head: .headRefName}]' > "$prs" 2>/dev/null
69
+ fi
70
+ [ -s "$prs" ] || echo "[]" > "$prs"
71
+
72
+ # Transcripts dir: ~/.cursor/projects/<slugified-repo-path>/agent-transcripts.
73
+ slug=$(printf '%s' "$main_wt" | sed 's#^/##; s#/#-#g')
74
+ transcripts="$HOME/.cursor/projects/$slug/agent-transcripts"
75
+ now=$(date +%s)
76
+
77
+ echo "# base: $base"
78
+ printf "SIZE\tAGE\tMERGED\tDIRTY\tREMOTE\tPR\tLAST_CHAT\tBUCKET\tWORKTREE\n"
79
+
80
+ git worktree list --porcelain | awk '/^worktree /{print $2}' | while read -r wt; do
81
+ [ "$wt" = "$main_wt" ] && continue
82
+
83
+ size=$(du -sh "$wt" 2>/dev/null | awk '{print $1}')
84
+ head=$(git -C "$wt" rev-parse HEAD 2>/dev/null)
85
+ head_ts=$(git -C "$wt" log -1 --format='%ct' HEAD 2>/dev/null || echo 0)
86
+ age=$([ "$head_ts" -gt 0 ] 2>/dev/null && echo "$(( (now - head_ts) / 86400 ))d" || echo "?")
87
+
88
+ # Squash-merged branches are not ancestors of the base, so PR state is the
89
+ # real signal; merge-base only catches fast-forward/rebase merges.
90
+ git merge-base --is-ancestor "$head" "$base" 2>/dev/null && merged=YES || merged=no
91
+
92
+ # Distinguish real WIP (tracked edits) from disposable untracked scratch.
93
+ porcelain=$(git -C "$wt" status --porcelain 2>/dev/null)
94
+ if [ -z "$porcelain" ]; then dirty=clean
95
+ elif printf '%s\n' "$porcelain" | grep -qv '^??'; then
96
+ dirty="wip:$(printf '%s\n' "$porcelain" | grep -cv '^??')"
97
+ else dirty="scratch:$(printf '%s\n' "$porcelain" | grep -c '^??')"; fi
98
+
99
+ branch=$(git -C "$wt" symbolic-ref --quiet --short HEAD 2>/dev/null || echo "")
100
+ if [ -z "$branch" ]; then remote=detached
101
+ elif git -C "$wt" show-ref --verify --quiet "refs/remotes/origin/$branch"; then
102
+ [ "$(git -C "$wt" rev-parse "origin/$branch" 2>/dev/null)" = "$head" ] \
103
+ && remote=pushed \
104
+ || remote="ahead$(git -C "$wt" rev-list --count "origin/$branch..HEAD" 2>/dev/null)"
105
+ else remote=no-remote; fi
106
+
107
+ pr=$([ -n "$branch" ] && jq -r --arg b "$branch" \
108
+ '.[] | select(.head==$b) | "#\(.number)/\(.state)"' "$prs" 2>/dev/null | head -1)
109
+ [ -z "$pr" ] && pr="-"
110
+
111
+ # Most recent chat whose transcript operated in this worktree. Match path
112
+ # followed by "/" or a quote so glint-482 does not match glint-482-r37.
113
+ last="-"; last_ts=0
114
+ if [ -d "$transcripts" ]; then
115
+ f=$(rg -l -e "${wt}/" -e "${wt}\"" "$transcripts" 2>/dev/null \
116
+ | xargs stat "${stat_fmt[@]}" 2>/dev/null | sort -rn | head -1)
117
+ if [ -n "$f" ]; then last_ts=$(echo "$f" | awk '{print $1}')
118
+ last=$(fmt_day "$last_ts" 2>/dev/null); fi
119
+ fi
120
+ recent=$([ "$last_ts" -gt 0 ] 2>/dev/null && [ $(( (now - last_ts) / 86400 )) -le 4 ] && echo yes || echo no)
121
+
122
+ case "$dirty" in wip:*) bucket=hold-wip ;; *)
123
+ case "$pr" in */open|*/draft) bucket=hold-open-pr ;; *)
124
+ if [ "$recent" = yes ]; then bucket=verify-recent-chat
125
+ elif [ "$merged" = YES ] || [ "$pr" != "-" ]; then bucket=safe
126
+ else bucket=review; fi ;;
127
+ esac ;;
128
+ esac
129
+
130
+ printf "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n" \
131
+ "$size" "$age" "$merged" "$dirty" "$remote" "$pr" "$last" "$bucket" "$wt"
132
+ done | sort -t$'\t' -k1,1 -rh
133
+
134
+ rm -f "$prs"
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: principle-attack-the-premise
3
+ description: "Apply when two or more fixes that share one premise have failed the same gate. Write the premise down and test it directly before you write another fix that assumes it."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Attack the Premise
8
+
9
+ When two or more fixes that share one premise have failed the same gate, suspect the premise, not the fixes.
10
+
11
+ **Why:** Each failed fix is evidence against the belief it assumed. A third fix on the same premise spends effort where the evidence already says the cause is not.
12
+
13
+ **Pattern:**
14
+ - **Write the premise down.** The premise is the one sentence that every failed fix assumed.
15
+ - **Test the premise before the next fix.** Find an observation that would come out differently if the premise were false, and make it. Look at how the failures are distributed, not only at how large they are. Make the check rerunnable per [Build the Lever](../principle-build-the-lever/SKILL.md).
16
+ - **Follow the evidence.** If it contradicts the premise, the cause is elsewhere. Look for what the failures have in common that the premise did not predict. If it confirms the premise, ask the next "why" per [Fix Root Causes](../principle-fix-root-causes/SKILL.md). The earlier fixes may have treated a consequence instead of the cause.
17
+ - **Remove the condition instead of compensating for it**, per the [Laziness Protocol](../principle-laziness-protocol/SKILL.md). If the evidence shows that one part always lands on the losing side, change what puts it there. A mechanism that cleans up after it leaves the cause in place and adds work on every run.
18
+
19
+ **Stop:** Do not start the next fix before the premise is written down and tested.
20
+
21
+ This principle is distinct from [Redesign from First Principles](../principle-redesign-from-first-principles/SKILL.md), which rebuilds a design around a new requirement. It questions a fact the current design assumes.
@@ -6,19 +6,21 @@ disable-model-invocation: true
6
6
 
7
7
  # Boundary Discipline
8
8
 
9
- Place validation, type narrowing, and error handling at system boundaries. Trust internal code unconditionally. Business logic lives in pure functions; the shell is thin and mechanical.
9
+ Place validation, type narrowing, and error handling at system boundaries. Trust internal code unconditionally. Business logic lives in pure functions. The shell is thin and mechanical.
10
10
 
11
- **Why:** Scattered validation is noisy, redundant, and gives a false sense of safety. Validate data once at the boundary. Keep logic out of framework wiring so it can be tested without the framework.
11
+ **Why:** Scattered validation is noisy, redundant, and gives a false sense of safety. Keep logic out of framework wiring so it can be tested without the framework.
12
12
 
13
13
  **The pattern:**
14
14
  - **At boundaries** (CLI args, config files, external APIs, network protocols): validate, return errors, handle defensively.
15
15
  - **Inside the system:** typed data, error propagation, no re-validation. Trust the types.
16
+ - **Across the boundary.** Expose domain concepts, not the boundary's private representation. Keep general-purpose mechanism inside and special-purpose policy at the edge.
16
17
 
17
18
  **Applications:**
18
19
 
19
20
  Validation and error handling:
20
21
  - Validate config at parse time (the boundary), not inside business logic
21
- - Store raw data at boundaries; parse lazily at use-site
22
+ - Parse raw data into domain types at the boundary
23
+ - Do not re-export transport, storage, framework, or wire types through the public surface
22
24
  - No redundant nil checks deep in call chains if the boundary already validated
23
25
 
24
26
  Code organization:
@@ -7,17 +7,17 @@ disable-model-invocation: true
7
7
 
8
8
  When the work isn't trivial, build the tool that does it instead of doing it by hand.
9
9
 
10
- **Why:** Two payoffs. Throughput: a codemod, generator, or script does the work the same way every time and reruns for free. Confidence: the tool is one artifact a reviewer can read and rerun to check the work. Hand-done changes can only be re-verified by redoing them. A deterministic script turns "trust me" into "run this".
10
+ A codemod, generator, or script does the work the same way every time and reruns for free. The tool is one artifact a reviewer can read and rerun to check the work. Hand-done changes can only be re-verified by redoing them. A deterministic script turns "trust me" into "run this".
11
11
 
12
- **Pattern:** Default to building the lever. Skip it only when the task is genuinely trivial, a couple of obvious edits you can see at a glance.
12
+ Default to building the lever. Skip it only when the task is trivial, a couple of obvious edits you can see at a glance.
13
13
 
14
- - Do the first unit by hand to learn the recipe, then build the tool. Prove it by rerunning it on that unit and diffing against your hand-done version. Make the lever safe to rerun. A reviewer will.
14
+ - Do the first unit by hand to learn the recipe, then build the tool. Prove it by rerunning it on that unit and diffing against your hand-done version. Make the lever safe to rerun.
15
15
  - Codemod or script for edits, generator for repetitive files, a dump-to-sqlite query for analysis, a rerunnable check for verification.
16
- - A deterministic lever beats fan-out. If the tool can process every unit in one pass, run it yourself; don't fan out delegates to hand-apply what a script can do.
17
- - When you fan work out to subagents, write the lever as a skill they all read: the recipe, the verification contract, and the do-not-touch fences in one artifact, so every delegate inherits the same hardened version instead of re-explaining it per prompt and watching each one drift. Keep it outside the delegates' write scope so they can't quietly edit the contract.
16
+ - A deterministic lever beats fan-out. If the tool can process every unit in one pass, run it yourself. Don't fan out delegates to hand-apply what a script can do.
17
+ - When you fan work out to subagents, write the lever as a skill they all read: the recipe, the verification contract, and the do-not-touch fences in one artifact. Keep it outside the delegates' write scope so they can't quietly edit the contract.
18
18
  - Applying this principle produces a file. If you cited it and there is no codemod, script, generator, or delegate skill in the diff, you didn't apply it.
19
- - Commit the lever when the work outlives the session, so the next run reruns it instead of redoing it.
19
+ - Commit the lever when the work outlives the session.
20
20
 
21
- **Balance:** The bar is triviality, not repetition. A one-off still earns a lever when the lever is what makes the work checkable. Per the [Laziness Protocol](../principle-laziness-protocol/SKILL.md), build the smallest script that does or proves the job, never a framework.
21
+ The bar is triviality, not repetition. A one-off still earns a lever when the lever is what makes the work checkable. Per the [Laziness Protocol](../principle-laziness-protocol/SKILL.md), build the smallest script that does or proves the job, never a framework.
22
22
 
23
23
  Distinct from [Encode Lessons in Structure](../principle-encode-lessons-in-structure/SKILL.md), which makes a recurring instruction a durable guardrail. This is throughput and reviewability on the work in front of you. For scripting the verification itself, see [Prove It Works](../principle-prove-it-works/SKILL.md).
@@ -6,26 +6,6 @@ disable-model-invocation: true
6
6
 
7
7
  # Encode Lessons in Structure
8
8
 
9
- Encode recurring fixes in mechanisms (tools, code, metadata, automation) instead of textual instructions. Every error, human correction, and unexpected outcome is a learning signal. Capture it, route it, and close the loop.
9
+ If the lesson needs judgment and cannot be encoded, make the instruction more prominent and add an example of the failure mode.
10
10
 
11
- **Why:** Textual instructions are easy to miss. They require the reader to notice, remember, and comply. Structural mechanisms (lint rules, metadata flags, runtime checks, automation scripts) enforce the rule without cooperation.
12
-
13
- **Pattern:**
14
- When you catch yourself writing the same instruction a second time:
15
- 1. Ask: can this be a lint rule, a metadata flag, a runtime check, or a script?
16
- 2. If yes, encode it. Delete the instruction
17
- 3. If no (genuinely requires judgment), make the instruction more prominent and add an example of the failure mode
18
-
19
- **Pick the strongest rung.** When more than one mechanism would work, choose the strongest the situation allows (an unrepresentable state that cannot compile, then a lint or banned API that fails CI, then a canonical helper, then a runtime check), because agents copy whatever the surrounding code already does and a weaker guard becomes the next template.
20
-
21
- **Corollary:** Don't paper over symptoms. If the fix is structural, ONLY use the structural fix. The instruction IS the symptom.
22
-
23
- **Feedback loop:**
24
- - **Capture every correction.** When the human intervenes or tests fail, decide if it's a one-off or a pattern.
25
- - **Route to the right layer.** One-off -> brain note. Recurring fix -> skill or lint rule. Systemic issue -> principle.
26
- - **Close the loop.** Don't just record. Apply now or create a concrete todo.
27
-
28
- **Anti-patterns:**
29
- - Acknowledging without recording ("I'll keep that in mind" does not persist)
30
- - Recording without routing (a brain note about a lint rule that should exist is wasted unless the lint rule gets implemented)
31
- - Fixing without generalizing (fixing one instance while leaving the recurring pattern intact)
11
+ **Corollary:** If the fix is structural, only use the structural fix. The instruction is the symptom.
@@ -6,16 +6,4 @@ disable-model-invocation: true
6
6
 
7
7
  # Exhaust the Design Space
8
8
 
9
- When a novel interaction or architectural decision has no established precedent, explore several concrete alternatives before implementation. Building the wrong thing costs more than exploring three options.
10
-
11
- **The rule:** When the right answer is not obvious, build 2-3 competing prototypes or sketches. Compare them side by side. Only then commit.
12
-
13
- **When it applies:**
14
- - Novel UI interactions (no prior art in the codebase)
15
- - Architectural choices with multiple viable approaches
16
- - Product design decisions where user experience depends on feel, not logic
17
-
18
- **When it doesn't:**
19
- - Mechanical implementation where the pattern is established
20
- - Bug fixes or refactors with a clear target state
21
- - Changes where constraints dictate a single viable approach
9
+ It also applies to product design decisions where user experience depends on feel, not logic.
@@ -6,14 +6,14 @@ disable-model-invocation: true
6
6
 
7
7
  # Experience First
8
8
 
9
- The product is the experience. Every technical decision either helps or hurts it. When implementation convenience conflicts with user delight, choose delight.
9
+ When implementation convenience conflicts with user delight, choose delight.
10
10
 
11
- - Say no to 1,000 things (every feature, control, and option must earn its place)
11
+ - Every feature, control, and option must be justified
12
12
  - Ship less, ship better (polished experience with three features beats rough one with ten)
13
13
  - Prototype before committing (design decisions are cheaper in throwaway HTML than production code)
14
- - Sweat the details (transitions, alignment, spacing, feedback, error states)
14
+ - Get the details right (transitions, alignment, spacing, feedback, error states)
15
15
  - Tighten the core loop (every feature should serve the central workflow or get out of the way)
16
16
 
17
- The user is whoever consumes the work. For a UI that is the end user. For a library or an internal API it is the colleague who imports it. The engineer who maintains the code next is a user too. Weigh their experience the same way, and explain impact from their seat.
17
+ The user is whoever consumes the work. For a UI that is the end user. For a library or an internal API it is the colleague who imports it. The engineer who maintains the code next is a user too. Weigh their experience the same way, and explain impact from their perspective.
18
18
 
19
- Foundations should serve the experience, not the other way around. Foundational thinking governs the *sequence* of work; this principle governs the *target*.
19
+ Foundations should serve the experience. Foundational thinking governs the *sequence* of work. This principle governs the *target*.
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: principle-explain-the-number
3
+ description: "Apply before you measure, and before you trust, report, or act on a number you measured: a speedup, a regression, a throughput, a latency, or an eval result. Find what limits it, and rule out that it measured something other than the work you think."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Explain the Number
8
+
9
+ - **Write the decision before you run.** Name the result that would change a decision, and the noise floor. Stop when the run-to-run spread is larger than the effect.
10
+ - **Ask "why not double?"** Name the resource or code path that bounds the result, such as a core, a lock, the disk, the network, or the load generator itself. Get it from a profile or from system counters taken during a run, then map it to source. A guess from reading the code is not a limiter. If you cannot say why the number is not twice as good, you do not know what you measured.
11
+ - **List what else the number could be measuring, and rule out each one with evidence.** The usual suspects are errors, skipped or cached work, code that never ran, an untuned side (one left on default settings), noise, and a piece too small to matter end to end.
12
+ - **Keep the evidence with the number.** Put the run count, the spread, and the limiter in the notes or a linked artifact.
13
+
14
+ For a performance number, run the full procedure with the [benchmark-checklist](../benchmark-checklist/SKILL.md) skill. For an eval result, ask the same of the trials: did every run do the task, does the gap hold across trials and models, and does the scenario matter.
15
+
16
+ You skipped this when a run started without the result that would change a decision, when the evidence behind a number has no run count, no spread, or no named limiter, or when the time saved is larger than the time the changed piece took.
17
+
18
+ Distinct from [Prove It Works](../principle-prove-it-works/SKILL.md), which checks that an output is real.
@@ -1,22 +1,21 @@
1
1
  ---
2
2
  name: principle-fix-root-causes
3
- description: "Apply when debugging. Trace each symptom to its root cause and fix it there; reproduce first, ask why until you reach it, resist nil-check guards that silence crashes."
3
+ description: "Apply when debugging. Trace each symptom back to the first place the system went wrong and fix it there. A guard is a fix only when the state it handles is legitimate."
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
7
7
  # Fix Root Causes
8
8
 
9
- When debugging, do not paper over symptoms. Trace every problem to its root cause and fix it there.
9
+ When debugging, fix the fault, not the place where it surfaced. The symptom is where a wrong state became visible. The root cause is the first place the system did something it should not do, or failed to handle a state it should handle.
10
10
 
11
- **Why:** Symptom fixes accumulate. Each workaround makes the system harder to reason about, and the real bug remains. Root-cause fixes are slower upfront but reduce total debugging time.
11
+ **Why:** A symptom fix hides the evidence and leaves the fault free to surface somewhere else. Each one makes the system harder to reason about, because the code now carries a workaround for a bug that nobody named.
12
12
 
13
13
  **Pattern:**
14
- - Reproduce first (if you can't reproduce it, you can't verify your fix)
15
- - Ask "why" until you hit the root cause
16
- - Resist the urge to add guards (adding a nil check to silence a crash is a symptom fix)
17
- - Check for the pattern, not just the instance (grep for the same pattern, fix all instances)
18
- - When stuck, instrument. Don't guess (add logging, read the actual error)
19
-
20
- **Restart bugs: suspect state before code**
21
-
22
- Code doesn't change between runs. State does. When something "fails after restart," suspect stale persistent state first: config files, caches, lock files, serialized state. If clearing a state file restores behavior, prioritize state validation as the fix.
14
+ - Reproduce first.
15
+ - Ask "why" at each step until the answer is a wrong decision in the code, not a consequence of an earlier one.
16
+ - When stuck, instrument. Read the actual error and the actual state. Do not guess.
17
+ - Ask whether the state that triggered the symptom is legitimate. If the system may be in that state, the code that broke on it is the root cause, and handling the state there is the fix. If the state should never exist, a check where it broke hides the bug. Find what produced the state. Guards, retries, swallowed errors, clamped values, and discarded state are the usual ways to hide a bug.
18
+ - When something fails only after a restart, suspect persisted state first: config files, caches, lock files, serialized state.
19
+ - Check for the pattern, not just the instance. Find every place with the same fault and fix them all.
20
+ - If a workaround needs a paragraph-long comment to justify it, the code is wrong. Fix the code, not the comment.
21
+ - If the deciding fact took a deep dig to find, propose the cheap, always-on signal that would have shown it at first look.
@@ -6,9 +6,9 @@ disable-model-invocation: true
6
6
 
7
7
  # Foundational Thinking
8
8
 
9
- **Structural decisions** protect option value. **Code-level decisions** protect simplicity. Over-engineering is often a premature decision that closes doors. The right foundational data structure keeps doors open.
9
+ **Structural decisions** protect option value. **Code-level decisions** protect simplicity.
10
10
 
11
- **Data structures first.** Get the data shape right before writing logic. The right shape makes downstream code obvious. Define core types early, trace every access pattern, and choose structures that match the dominant paths. A data-structure change late is a rewrite. Early, it is often a one-line diff.
11
+ **Data structures first.** Get the data shape right before writing logic. Define core types early, trace every access pattern, and choose structures that match the dominant paths.
12
12
 
13
13
  At code level, DRY the structure, not every line. Types and data models should converge. Three similar statements still beat a premature abstraction. Prefer explicit over clever. Test behavior and edge cases, not line counts.
14
14
 
@@ -16,4 +16,6 @@ At code level, DRY the structure, not every line. Types and data models should c
16
16
 
17
17
  **Scaffold first.** If something helps every later phase, do it first. Ask "does every subsequent phase benefit from this existing?" CI, linting, test infrastructure, and shared types are scaffold. Sequence for option value: setup before features, tests before fixes. Keep commits small and single-purpose.
18
18
 
19
- Subtraction comes before scaffolding: remove dead weight first, then lay foundations.
19
+ Each increment should land a coherent abstraction or deepen one that exists. Do not spread a new capability across callers as special-case coordination.
20
+
21
+ Subtraction comes before scaffolding. Remove dead code first, then lay foundations.
@@ -6,12 +6,7 @@ disable-model-invocation: true
6
6
 
7
7
  # Guard the Context Window
8
8
 
9
- The context window is finite and non-renewable within a session. Every token that enters should earn its place.
10
-
11
- **Why:** Context overflow degrades reasoning quality, creates compression artifacts, and halts progress. Unlike compute or time, context spent inside a session cannot be reclaimed.
9
+ **Why:** Context overflow degrades reasoning quality, creates compression artifacts, and halts progress.
12
10
 
13
11
  **Pattern:**
14
- - **Isolate large payloads.** Route verbose outputs, screenshots, and large documents to subagents. The main context gets summaries, not raw data.
15
- - **Don't read what you won't use.** Read selectively based on relevance. If a file isn't needed for the current task, skip it.
16
- - **Keep frequently used content inline.** Templates and references used on every invocation belong in the skill file, not in separate files that cost a read each time.
17
12
  - **Size phases and cap scope.** Limit files per phase, set turn budgets, account for mechanism costs.
@@ -6,12 +6,5 @@ disable-model-invocation: true
6
6
 
7
7
  # Laziness Protocol
8
8
 
9
- Writing code is cheap for you, which makes over-engineering easy. Counter it by borrowing a human maintainer's fatigue. Aim for the most result with the least code and complexity.
10
-
11
- - **Prefer deletion.** When asked to refactor or improve, look for removals before additions.
12
- - **Maintain a flat hierarchy.** Avoid deep abstractions. If answering a question requires tracing through more than 3 files or layers, flatten it.
13
9
  - **Consolidate decisions.** Do not repeat the same choice in several places. Put it behind one source of truth and pass the result as a simple flag.
14
10
  - **Minimize the diff.** Make the smallest change that solves the problem. Fewer lines beat "elegant" boilerplate.
15
- - **Question the threading.** If a task asks you to pass a new signal through types, schemas, pipelines, or similar layers, stop and look for a more direct path.
16
-
17
- **Prime directive:** If a human developer would find the code exhausting to maintain, it is a bad solution. Be lazy. Stay simple.
@@ -6,15 +6,13 @@ disable-model-invocation: true
6
6
 
7
7
  # Make Operations Idempotent
8
8
 
9
- Design operations so they converge to the correct state regardless of how many times they run or where they start from. Every state-mutating operation should answer: "What happens if this runs twice? What happens if the previous run crashed halfway?"
9
+ Design operations so they converge to the correct state regardless of how many times they run or where the previous run stopped. Every state-mutating operation should answer: "What happens if this runs twice? What happens if the previous run crashed halfway?"
10
10
 
11
11
  **Why:** Commands, lifecycle operations, and processing loops run where crashes, restarts, and retries are normal. If partial state changes the next run's outcome, every restart becomes a debugging session.
12
12
 
13
- **The pattern:**
14
- - Convergent startup: scan for existing state, clean stale artifacts, adopt live sessions
15
- - Content-based cleanup: compare by content equivalence, not creation order
16
- - Self-healing locks: use PID-based stale lock detection
17
- - Idempotent scheduling: failed work respawns cleanly, fresh input regenerated after each cycle
13
+ **The idea:** derive each step from the state that exists, not from what the previous run meant to do. Read the current state, compare it to the goal, and apply only the difference. A step written this way is safe to repeat, because a repeat finds nothing left to do.
14
+
15
+ Anything a run leaves behind, such as a lock, a temporary file, a half-written record, or a claimed job, must be recognizable as stale by the next run. Judge staleness by evidence that stays true wherever the previous run could have stopped, not only in the common case. A marker that the next run cannot judge turns every crash into manual cleanup. For example, write to a temporary path and rename it into place, or compare artifacts by content instead of by creation order.
18
16
 
19
17
  **The test:**
20
18
  1. What happens if this runs twice in a row?
@@ -6,17 +6,9 @@ disable-model-invocation: true
6
6
 
7
7
  # Migrate Callers Then Delete Legacy APIs
8
8
 
9
- When we decide a new API is the right design, migrate callers and remove the old API in the same refactor wave instead of preserving compatibility layers.
10
-
11
- **Rule:**
12
- - Do not keep legacy API paths alive only because internal callers still exist
13
- - Inventory callers, migrate them, and delete the old API immediately
14
- - Treat temporary adapters as exceptional and time-boxed, not default architecture
15
9
  - Update tests to assert the new contract, and delete tests that only protect pre-refactor implementation details
16
10
 
17
11
  **When this applies:**
18
12
  - No external users depend on backward compatibility
19
13
  - The project can absorb coordinated breaking changes
20
14
  - The new API is part of a simplification or refactor initiative
21
-
22
- Keeping both old and new APIs creates dual-path complexity, slows cleanup, and makes the codebase feel append-only.
@@ -6,16 +6,13 @@ disable-model-invocation: true
6
6
 
7
7
  # Minimize Reader Load
8
8
 
9
- Maintainability is the work a reader must do to understand code. Track two axes:
10
- 1. **Layers to trace.** How many indirections sit between the question and the answer.
11
- 2. **State to hold.** How much hidden or mutable context the reader must keep in their head.
9
+ Maintainability is the work a reader must do to understand code. Track two axes: **layers to trace** (indirections between the question and the answer) and **state to hold** (hidden or mutable context the reader must keep in their head). LOC, cyclomatic complexity, and "clean architecture" are proxies. Reader load is the thing that matters. The two axes are independent. A flat file with 50 globals can be as hard to reason about as a 6-layer adapter stack. Guard both. This is the human analog of [Guard the Context Window](../principle-guard-the-context-window/SKILL.md). Working memory is finite for readers too.
12
10
 
13
- **Why:** Code is read far more than it is written. LOC, cyclomatic complexity, and "clean architecture" are proxies. Reader load is the thing that matters. The two axes are independent. A flat file with 50 globals can be as hard to reason about as a 6-layer adapter stack. Guard both. This is the human analog of [Guard the Context Window](../principle-guard-the-context-window/SKILL.md): working memory is finite for readers too.
14
-
15
- **The pattern:**
16
- - **Collapse layers** that do not earn their keep: wrappers with one caller, adapters with no second implementation, indirection introduced for a future that never came. Inline them.
11
+ - **Collapse layers** that cost more than they save: wrappers with one caller, adapters with no second implementation, speculative indirection that was never needed. Inline them.
12
+ - **Make adjacent layers change the abstraction.** A layer that repeats the same methods and arguments adds reader load without compression. Collapse pass-through layers.
13
+ - **Demand interface compression.** A broad interface that hides little complexity makes readers learn both the surface and the implementation. Prefer boundaries that hide meaningful decisions.
17
14
  - **Shrink state scope:** prefer pure functions (returns over mutations), locals over fields, fields over module state, and module state over globals. Derive instead of sync.
18
15
  - **Name the invariant at the boundary,** not in every consumer, so the reader learns it once.
19
- - Before adding a layer or a piece of state, ask: does this reduce reader load somewhere else by at least as much?
16
+ - Before adding a layer or a piece of state, ask: does it reduce reader load elsewhere by at least as much?
20
17
 
21
- **The test:** Can a new reader answer "where does X come from?" and "what can change X?" in under 30 seconds? If not, cut layers or cut state.
18
+ **The test:** can a new reader answer "where does X come from?" and "what can change X?" in under 30 seconds? If not, cut layers or cut state.
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: principle-model-the-domain
3
+ description: "Apply when writing stateful logic, or when code branches a lot or repeats a shape assumption across files."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Model the Domain
8
+
9
+ Encode the real domain in a data structure instead of scattering it across conditionals. A structure that matches the domain makes invalid states unrepresentable and deletes branches. Choosing it at write time is cheap. Recovering it later reads as a refactor and gets deferred.
10
+
11
+ Reach for:
12
+
13
+ - A state machine instead of scattered booleans, phases, or lifecycle checks.
14
+ - A typed model instead of loose parameters or repeated shape assumptions.
15
+ - A map, registry, lookup table, or discriminated union instead of branching spread across files.
16
+ - A reducer or command/event model instead of ad hoc state mutations.
17
+ - A module organized around one body of domain knowledge instead of a sequence such as load, validate, transform, and save. Execution order is not ownership.
18
+ - A small module boundary that gathers repeated behavior, ownership, or invariants.
19
+ - A queue, cache, index, graph, tree, or normalized collection where the access pattern calls for it.
20
+ - Any other structure that fits. When none fits, work out what the code must never allow and how the data gets read, then find the structure that encodes exactly that.
21
+
22
+ Do not force an abstraction. Prefer boring code if the current shape is already clear, local, and unlikely to grow. Be skeptical of an abstraction that adds indirection without removing branches, duplicated rules, invalid states, or lifecycle risk.
23
+
24
+ The sign that you skipped this is a new feature that grows an existing if/else chain by one more branch, or a second boolean that must stay in sync with the first. Temporal decomposition is another sign. Phase-named modules repeat the same domain rules across steps.
@@ -1,23 +1,15 @@
1
1
  ---
2
2
  name: principle-never-block-on-the-human
3
- description: "Apply when tempted to ask 'should I do X?' on reversible work. Proceed, present the result, let the human course-correct after the fact; reserve confirmation for irreversible actions."
3
+ description: "Apply when tempted to ask 'should I do X?' on reversible work."
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
7
7
  # Never Block on the Human
8
8
 
9
- The human supervises asynchronously. Agents must stay unblocked: make reasonable decisions, proceed, and let the human course-correct after the fact. Code is cheap. Waiting is expensive.
9
+ The human supervises asynchronously. Agents must stay unblocked. Make reasonable decisions, proceed, and let the human course-correct after the fact. Since code changes are reversible and reviewable, a wrong decision usually costs less than blocking.
10
10
 
11
- **Why:** Every permission pause stalls the pipeline and makes the human the bottleneck. Since code changes are reversible and reviewable, a wrong decision usually costs less than blocking.
12
-
13
- **Pattern:**
14
- - **Proceed, then present.** Do the work, show the result. Don't ask "should I do X?" Do X, explain why.
15
- - **Reserve questions for genuine ambiguity.** Ask only when you truly cannot infer intent from context.
16
- - **Make the system self-healing.** When you notice a problem, log it and fix it in the next round.
17
- - **Supervision is async.** The human reviews plans, diffs, and changes on their own schedule. Design workflows for review-after-the-fact.
18
- - **Code is cheap, attention is scarce.** A wrong implementation costs minutes to fix. A blocked agent costs the human's attention to unblock.
19
-
20
- **Boundaries:**
21
- - **Irreversible actions** (force-push, delete production data, send external messages) still require confirmation.
22
- - **Reversible actions** (write code, edit notes, split tasks) should proceed without blocking.
23
- - **Product direction** comes from the human; *execution* should not block.
11
+ - Proceed, then present. Do the work, show the result. Don't ask "should I do X?" Do X, explain why.
12
+ - Make the system self-healing. When you notice a problem, log it and fix it in the next round.
13
+ - Irreversible actions (force-push, delete production data, send external messages) still require confirmation.
14
+ - Reversible actions (write code, edit notes, split tasks) should proceed without blocking.
15
+ - Product direction comes from the human. Execution should not block.
@@ -13,7 +13,6 @@ Optimize for the intended, verifiable end state rather than preserving smooth in
13
13
  **Core rule:**
14
14
  - Prioritize end-state integrity over transitional stability
15
15
  - Intermediate breakage is acceptable when it is planned, scoped, and reversible
16
- - Always run final verification before declaring done
17
16
 
18
17
  **Guardrails:**
19
18
  - Use this for planned rewrites and migrations with explicit phase boundaries
@@ -10,24 +10,13 @@ Verify every task output by checking the real thing directly. Do not infer from
10
10
 
11
11
  **Why:** Unverified work has unknown correctness. Indirect verification (file mtimes, output freshness, agent self-reports, cached screenshots) feels cheaper than direct observation. Acting on a wrong inference costs far more than checking the source.
12
12
 
13
- **Pattern:** After completing any task, ask: "how do I prove this actually works?"
14
-
15
13
  Check the real thing, not a proxy:
16
14
  - Check process liveness directly, not indirectly through derived state
17
15
  - Read the actual value, not a cached or derived representation
18
16
  - When verification fails, suspect the observation method before suspecting the system
19
17
 
20
- Code and features:
21
- 1. Build it (necessary but not sufficient)
22
- 2. Run it and exercise the actual feature path
23
- 3. Check the full chain: does data flow from input to output?
24
- 4. For integrations, test the full communication path end-to-end
25
-
26
- Delegation: trust artifacts, not self-reports.
27
- When verifying delegated work, inspect the actual output artifact (git diff, file contents, runtime behavior), not the delegate's summary. Agents report what they intended, not always what happened.
28
-
29
18
  ## Script the check when you can
30
19
 
31
- The strongest proof is a deterministic script that re-runs the same comparison, not a one-time eyeball. Write the script, run it, and keep its output as an artifact a reviewer can re-run instead of trusting your word. A script comparing the old and new compiled output catches what a glance misses.
20
+ The strongest proof is a deterministic script that re-runs the same comparison, not a one-time eyeball. Write the script, run it, and keep its output as an artifact a reviewer can re-run instead of trusting your word.
32
21
 
33
- Keep the artifact visible for the human. Commit it only for large or complex work where the trail has to be auditable later, like a big port or migration (the **show-me-your-work** skill). Most work just needs it visible, not committed.
22
+ Keep the artifact visible for the human. Commit it only for large or complex work where the trail has to be auditable later, like a big port or migration (the **show-me-your-work** skill).
@@ -1,16 +1,16 @@
1
1
  ---
2
2
  name: principle-redesign-from-first-principles
3
- description: "Apply when integrating a new requirement into an existing design. Redesign as if the requirement had been a foundational assumption from day one, instead of bolting it on."
3
+ description: "Apply when integrating a new requirement into an existing design."
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
7
7
  # Redesign From First Principles
8
8
 
9
- When integrating a change, don't bolt it onto the existing design. Redesign as if the requirement had been there from the start. The result should look like what we would have built if we'd known on day one.
9
+ When integrating a change, don't bolt it onto the existing design. Redesign as if the requirement had been a foundational assumption from the start.
10
10
 
11
- - Read all affected files and understand the current design holistically
11
+ - Read all affected files and understand the current design
12
12
  - Ask: "if we were writing this from scratch with this new requirement, what would we build?"
13
13
  - Propagate the change through every reference: types, docs, examples, rationale sections
14
- - Think about the redesign holistically, then deliver it incrementally
14
+ - Think about the whole redesign, then deliver it incrementally
15
15
 
16
16
  This is the method for preserving option value when integrating changes into an existing design.
@@ -6,11 +6,11 @@ disable-model-invocation: true
6
6
 
7
7
  # Separate Before Serializing Shared State
8
8
 
9
- When concurrent actors might share mutable state, first ask whether they truly need the same mutable object. If not, eliminate the sharing. When sharing is real, enforce serialization structurally: lockfiles, sequential phases, exclusive ownership. Instructions and conventions are not concurrency control.
9
+ When concurrent actors might share mutable state, first ask whether they need the same mutable object. If not, eliminate the sharing. When sharing is real, enforce serialization structurally: lockfiles, sequential phases, exclusive ownership. Instructions and conventions are not concurrency control.
10
10
 
11
- **Why:** Concurrent writes to shared state create race conditions that are intermittent, hard to reproduce, and expensive to debug. Telling agents or goroutines to "take turns" does not work.
11
+ **Why:** Concurrent writes to shared state create race conditions that are intermittent, hard to reproduce, and expensive to debug.
12
12
 
13
13
  **Pattern:**
14
14
  1. **Identify shared mutable state** (files both read and write, branches both push to, APIs both define and consume).
15
- 2. **Default: eliminate the shared write target.** Ask: do these actors need one canonical object, or are they publishing independent facts? Give each actor its own owned file, key, branch, or state directory, and merge only at the read/reporting boundary. Two workers writing their own `lastX` field into one `state.json` is still shared mutation; `indexer-state.json` + `metrics-state.json` is not.
15
+ 2. **Default: eliminate the shared write target.** Ask: do these actors need one canonical object, or are they publishing independent facts? Give each actor its own owned file, key, branch, or state directory, and merge only at the read/reporting boundary. Two workers writing their own `lastX` field into one `state.json` is still shared mutation. `indexer-state.json` + `metrics-state.json` is not.
16
16
  3. **Only when one shared write target is a real invariant, serialize access structurally** (lockfiles, sequential phases, single-writer actor, or atomic compare-and-swap). Treat "we need a lock" as a design smell to check, not as the default answer.