@needfspeed/skills-library 0.1.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 (542) hide show
  1. package/CATALOG.md +64 -1
  2. package/README.md +13 -2
  3. package/docs/pstack/README.md +55 -0
  4. package/docs/pstack/agents/comment-sicko.md +32 -0
  5. package/docs/pstack/agents/poteto-agent.md +9 -0
  6. package/package.json +5 -2
  7. package/skills/pstack/LICENSE +21 -0
  8. package/skills/pstack/architect/SKILL.md +79 -0
  9. package/skills/pstack/architect/references/design-red-flags.md +57 -0
  10. package/skills/pstack/architect/references/rationale-template.md +35 -0
  11. package/skills/pstack/architect/references/runner-prompt.md +20 -0
  12. package/skills/pstack/arena/SKILL.md +48 -0
  13. package/skills/pstack/automate-me/SKILL.md +104 -0
  14. package/skills/pstack/benchmark-checklist/SKILL.md +39 -0
  15. package/skills/pstack/blast-radius/SKILL.md +50 -0
  16. package/skills/pstack/bro/SKILL.md +7 -0
  17. package/skills/pstack/correct/SKILL.md +32 -0
  18. package/skills/pstack/create-formal-verification-skill/SKILL.md +43 -0
  19. package/skills/pstack/create-verification-skill/SKILL.md +44 -0
  20. package/skills/pstack/create-verification-skill/references/feature-map-example/README.md +47 -0
  21. package/skills/pstack/create-verification-skill/references/feature-map-example/create-note.md +39 -0
  22. package/skills/pstack/create-verification-skill/references/feature-map-example/search.md +45 -0
  23. package/skills/pstack/figure-it-out/SKILL.md +52 -0
  24. package/skills/pstack/how/SKILL.md +36 -0
  25. package/skills/pstack/how/references/explainer-prompt.md +55 -0
  26. package/skills/pstack/how/references/explorer-prompt.md +35 -0
  27. package/skills/pstack/in-your-own-words/SKILL.md +7 -0
  28. package/skills/pstack/interrogate/SKILL.md +31 -0
  29. package/skills/pstack/ketchup/SKILL.md +43 -0
  30. package/skills/pstack/ketchup-video/SKILL.md +29 -0
  31. package/skills/pstack/maintain-formal-verification-skill/SKILL.md +58 -0
  32. package/skills/pstack/maintain-verification-skill/SKILL.md +39 -0
  33. package/skills/pstack/make-bot-ui/SKILL.md +115 -0
  34. package/skills/pstack/no-comments/SKILL.md +24 -0
  35. package/skills/pstack/poteto-help/SKILL.md +163 -0
  36. package/skills/pstack/poteto-help/references/prompting.md +51 -0
  37. package/skills/pstack/poteto-help/references/recipes.md +51 -0
  38. package/skills/pstack/poteto-mode/SKILL.md +150 -0
  39. package/skills/pstack/poteto-mode/playbooks/authoring-a-skill.md +12 -0
  40. package/skills/pstack/poteto-mode/playbooks/autonomous-run.md +13 -0
  41. package/skills/pstack/poteto-mode/playbooks/autopilot-full.md +25 -0
  42. package/skills/pstack/poteto-mode/playbooks/autopilot-stack.md +8 -0
  43. package/skills/pstack/poteto-mode/playbooks/babysit.md +23 -0
  44. package/skills/pstack/poteto-mode/playbooks/bug-fix.md +15 -0
  45. package/skills/pstack/poteto-mode/playbooks/eval.md +25 -0
  46. package/skills/pstack/poteto-mode/playbooks/feature.md +21 -0
  47. package/skills/pstack/poteto-mode/playbooks/hillclimb.md +21 -0
  48. package/skills/pstack/poteto-mode/playbooks/investigation.md +14 -0
  49. package/skills/pstack/poteto-mode/playbooks/multi-phase-plan.md +155 -0
  50. package/skills/pstack/poteto-mode/playbooks/opening-a-pr.md +34 -0
  51. package/skills/pstack/poteto-mode/playbooks/orchestrate.md +25 -0
  52. package/skills/pstack/poteto-mode/playbooks/pause-safely.md +10 -0
  53. package/skills/pstack/poteto-mode/playbooks/perf-issue.md +25 -0
  54. package/skills/pstack/poteto-mode/playbooks/prototype.md +14 -0
  55. package/skills/pstack/poteto-mode/playbooks/refactoring.md +16 -0
  56. package/skills/pstack/poteto-mode/playbooks/runtime-forensics.md +11 -0
  57. package/skills/pstack/poteto-mode/playbooks/session-pickup.md +11 -0
  58. package/skills/pstack/poteto-mode/playbooks/shipping.md +12 -0
  59. package/skills/pstack/poteto-mode/playbooks/trace-forensics.md +14 -0
  60. package/skills/pstack/poteto-mode/playbooks/visual-parity.md +11 -0
  61. package/skills/pstack/poteto-mode/playbooks/worktree-cleanup.md +12 -0
  62. package/skills/pstack/poteto-mode/references/bugbot-triage.md +142 -0
  63. package/skills/pstack/poteto-mode/scripts/bootstrap.ts +62 -0
  64. package/skills/pstack/poteto-mode/scripts/bun.lock +67 -0
  65. package/skills/pstack/poteto-mode/scripts/check-plan.mjs +205 -0
  66. package/skills/pstack/poteto-mode/scripts/check-plan.test.ts +110 -0
  67. package/skills/pstack/poteto-mode/scripts/package.json +16 -0
  68. package/skills/pstack/poteto-mode/scripts/watch-pr/cli.test.ts +224 -0
  69. package/skills/pstack/poteto-mode/scripts/watch-pr/cli.ts +223 -0
  70. package/skills/pstack/poteto-mode/scripts/watch-pr/fakes.test-helper.ts +129 -0
  71. package/skills/pstack/poteto-mode/scripts/watch-pr/github.test.ts +498 -0
  72. package/skills/pstack/poteto-mode/scripts/watch-pr/github.ts +726 -0
  73. package/skills/pstack/poteto-mode/scripts/watch-pr/policy.test.ts +482 -0
  74. package/skills/pstack/poteto-mode/scripts/watch-pr/policy.ts +842 -0
  75. package/skills/pstack/poteto-mode/scripts/watch-pr/render.ts +169 -0
  76. package/skills/pstack/poteto-mode/scripts/watch-pr/tsconfig.json +13 -0
  77. package/skills/pstack/poteto-mode/scripts/watch-pr/types.compile.ts +93 -0
  78. package/skills/pstack/poteto-mode/scripts/watch-pr/types.ts +414 -0
  79. package/skills/pstack/poteto-mode/scripts/watch-pr/watch-pr +6 -0
  80. package/skills/pstack/poteto-mode/scripts/worktree-audit.sh +134 -0
  81. package/skills/pstack/principle-attack-the-premise/SKILL.md +21 -0
  82. package/skills/pstack/principle-boundary-discipline/SKILL.md +34 -0
  83. package/skills/pstack/principle-build-the-lever/SKILL.md +23 -0
  84. package/skills/pstack/principle-encode-lessons-in-structure/SKILL.md +11 -0
  85. package/skills/pstack/principle-exhaust-the-design-space/SKILL.md +9 -0
  86. package/skills/pstack/principle-experience-first/SKILL.md +19 -0
  87. package/skills/pstack/principle-explain-the-number/SKILL.md +18 -0
  88. package/skills/pstack/principle-fix-root-causes/SKILL.md +21 -0
  89. package/skills/pstack/principle-foundational-thinking/SKILL.md +21 -0
  90. package/skills/pstack/principle-guard-the-context-window/SKILL.md +12 -0
  91. package/skills/pstack/principle-laziness-protocol/SKILL.md +10 -0
  92. package/skills/pstack/principle-make-operations-idempotent/SKILL.md +22 -0
  93. package/skills/pstack/principle-migrate-callers-then-delete-legacy-apis/SKILL.md +14 -0
  94. package/skills/pstack/principle-minimize-reader-load/SKILL.md +18 -0
  95. package/skills/pstack/principle-model-the-domain/SKILL.md +24 -0
  96. package/skills/pstack/principle-never-block-on-the-human/SKILL.md +15 -0
  97. package/skills/pstack/principle-outcome-oriented-execution/SKILL.md +21 -0
  98. package/skills/pstack/principle-prove-it-works/SKILL.md +22 -0
  99. package/skills/pstack/principle-redesign-from-first-principles/SKILL.md +16 -0
  100. package/skills/pstack/principle-separate-before-serializing-shared-state/SKILL.md +16 -0
  101. package/skills/pstack/principle-sequence-verifiable-units/SKILL.md +17 -0
  102. package/skills/pstack/principle-subtract-before-you-add/SKILL.md +18 -0
  103. package/skills/pstack/principle-test-behavior-not-implementation/SKILL.md +20 -0
  104. package/skills/pstack/principle-type-system-discipline/SKILL.md +13 -0
  105. package/skills/pstack/recall/SKILL.md +35 -0
  106. package/skills/pstack/reflect/SKILL.md +69 -0
  107. package/skills/pstack/reflect/references/divergent-reviewer.md +38 -0
  108. package/skills/pstack/reflect/references/judgment-reviewer.md +37 -0
  109. package/skills/pstack/reflect/references/synthesizer.md +56 -0
  110. package/skills/pstack/reflect/references/tooling-reviewer.md +48 -0
  111. package/skills/pstack/setup-pstack/SKILL.md +78 -0
  112. package/skills/pstack/sharpen/SKILL.md +16 -0
  113. package/skills/pstack/show-me-your-work/SKILL.md +82 -0
  114. package/skills/pstack/show-me-your-work/references/decision-log-template.tsv +1 -0
  115. package/skills/pstack/show-me-your-work/scripts/log.sh +42 -0
  116. package/skills/pstack/statechart/SKILL.md +82 -0
  117. package/skills/pstack/statechart/references/render.md +93 -0
  118. package/skills/pstack/statechart/scripts/backends/cfg.ts +33 -0
  119. package/skills/pstack/statechart/scripts/backends/mermaid.ts +201 -0
  120. package/skills/pstack/statechart/scripts/backends/plain-text.ts +72 -0
  121. package/skills/pstack/statechart/scripts/backends/report.ts +177 -0
  122. package/skills/pstack/statechart/scripts/frontends/config.ts +276 -0
  123. package/skills/pstack/statechart/scripts/frontends/dot.ts +74 -0
  124. package/skills/pstack/statechart/scripts/frontends/marks.ts +93 -0
  125. package/skills/pstack/statechart/scripts/frontends/messages.ts +52 -0
  126. package/skills/pstack/statechart/scripts/frontends/spec.ts +114 -0
  127. package/skills/pstack/statechart/scripts/frontends/trace.ts +24 -0
  128. package/skills/pstack/statechart/scripts/frontends/value.ts +166 -0
  129. package/skills/pstack/statechart/scripts/frontends/verdict.ts +40 -0
  130. package/skills/pstack/statechart/scripts/frontends/view.ts +119 -0
  131. package/skills/pstack/statechart/scripts/ir.ts +547 -0
  132. package/skills/pstack/statechart/scripts/package.json +11 -0
  133. package/skills/pstack/statechart/scripts/passes/annotate.ts +128 -0
  134. package/skills/pstack/statechart/scripts/passes/label.ts +269 -0
  135. package/skills/pstack/statechart/scripts/passes/lift.ts +85 -0
  136. package/skills/pstack/statechart/scripts/passes/loop-check.ts +68 -0
  137. package/skills/pstack/statechart/scripts/passes/paths.ts +60 -0
  138. package/skills/pstack/statechart/scripts/passes/reach.ts +135 -0
  139. package/skills/pstack/statechart/scripts/passes/region-check.ts +97 -0
  140. package/skills/pstack/statechart/scripts/passes/regions.ts +295 -0
  141. package/skills/pstack/statechart/scripts/pipeline.ts +76 -0
  142. package/skills/pstack/statechart/scripts/run.ts +481 -0
  143. package/skills/pstack/statechart/scripts/statechart +29 -0
  144. package/skills/pstack/statechart/scripts/statechart.ts +164 -0
  145. package/skills/pstack/statechart/scripts/test/ConfigOracle.java +63 -0
  146. package/skills/pstack/statechart/scripts/test/chart.test.ts +1210 -0
  147. package/skills/pstack/statechart/scripts/test/charts/Braces.mmd +7 -0
  148. package/skills/pstack/statechart/scripts/test/charts/Escapes.mmd +11 -0
  149. package/skills/pstack/statechart/scripts/test/charts/Phases.mmd +29 -0
  150. package/skills/pstack/statechart/scripts/test/cli.test.ts +1314 -0
  151. package/skills/pstack/statechart/scripts/test/config-fuzz.test.ts +263 -0
  152. package/skills/pstack/statechart/scripts/test/corpus/Counter/ChartRun.out +57 -0
  153. package/skills/pstack/statechart/scripts/test/corpus/Counter/Counter.cfg +3 -0
  154. package/skills/pstack/statechart/scripts/test/corpus/Counter/Counter.tla +10 -0
  155. package/skills/pstack/statechart/scripts/test/corpus/Counter/chart.mmd +9 -0
  156. package/skills/pstack/statechart/scripts/test/corpus/Counter/graph.dot +16 -0
  157. package/skills/pstack/statechart/scripts/test/corpus/Counter/report.md +7 -0
  158. package/skills/pstack/statechart/scripts/test/corpus/Counter/sany.out +2 -0
  159. package/skills/pstack/statechart/scripts/test/corpus/Counter/verdict-1.out +49 -0
  160. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/ChartRun.out +60 -0
  161. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/CounterAction.cfg +4 -0
  162. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/CounterAction.tla +22 -0
  163. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/chart.mmd +26 -0
  164. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/graph.dot +19 -0
  165. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/report.md +20 -0
  166. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/sany.out +2 -0
  167. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/verdict-1.exit +1 -0
  168. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/verdict-1.out +56 -0
  169. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/verdict-2.exit +1 -0
  170. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/verdict-2.out +82 -0
  171. package/skills/pstack/statechart/scripts/test/corpus/CounterAction/verdict-3.out +57 -0
  172. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/ChartRun.out +59 -0
  173. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.cfg +3 -0
  174. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/CounterDeadlock.tla +11 -0
  175. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/chart.mmd +22 -0
  176. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/graph.dot +16 -0
  177. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/report.md +17 -0
  178. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/sany.out +2 -0
  179. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.exit +1 -0
  180. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/verdict-1.out +56 -0
  181. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.exit +1 -0
  182. package/skills/pstack/statechart/scripts/test/corpus/CounterDeadlock/verdict-2.out +77 -0
  183. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/ChartRun.out +69 -0
  184. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/CounterFan.cfg +2 -0
  185. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/CounterFan.tla +11 -0
  186. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/chart.mmd +85 -0
  187. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/graph.dot +70 -0
  188. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/report.md +12 -0
  189. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/sany.out +2 -0
  190. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/verdict-1.exit +1 -0
  191. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/verdict-1.out +67 -0
  192. package/skills/pstack/statechart/scripts/test/corpus/CounterFan/verdict-2.out +57 -0
  193. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/ChartRun.exit +1 -0
  194. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/ChartRun.out +85 -0
  195. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/CounterGuard.cfg +6 -0
  196. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/CounterGuard.tla +13 -0
  197. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/chart.mmd +5 -0
  198. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/graph.dot +10 -0
  199. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/report.md +31 -0
  200. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/sany.out +2 -0
  201. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/verdict-1.exit +1 -0
  202. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/verdict-1.out +64 -0
  203. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/verdict-2.exit +1 -0
  204. package/skills/pstack/statechart/scripts/test/corpus/CounterGuard/verdict-2.out +77 -0
  205. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/ChartRun.out +55 -0
  206. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.cfg +3 -0
  207. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/CounterInitPast.tla +10 -0
  208. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/chart.mmd +12 -0
  209. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/graph.dot +6 -0
  210. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/report.md +12 -0
  211. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/sany.out +2 -0
  212. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/verdict-1.exit +1 -0
  213. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/verdict-1.out +33 -0
  214. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPast/verdict-2.out +54 -0
  215. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/ChartRun.out +54 -0
  216. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.cfg +3 -0
  217. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/CounterInitPastHolds.tla +10 -0
  218. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/chart.mmd +1 -0
  219. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/graph.dot +6 -0
  220. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/report.md +7 -0
  221. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/sany.out +2 -0
  222. package/skills/pstack/statechart/scripts/test/corpus/CounterInitPastHolds/verdict-1.out +46 -0
  223. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/ChartRun.out +59 -0
  224. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/CounterInstance.cfg +2 -0
  225. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/CounterInstance.tla +10 -0
  226. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/CounterSteps.tla +6 -0
  227. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/chart.mmd +17 -0
  228. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/graph.dot +15 -0
  229. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/report.md +14 -0
  230. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/sany.out +3 -0
  231. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/verdict-1.exit +1 -0
  232. package/skills/pstack/statechart/scripts/test/corpus/CounterInstance/verdict-1.out +78 -0
  233. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/ChartRun.out +59 -0
  234. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/CounterJump.cfg +3 -0
  235. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/CounterJump.tla +19 -0
  236. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/chart.mmd +26 -0
  237. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/graph.dot +22 -0
  238. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/report.md +12 -0
  239. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/sany.out +2 -0
  240. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/verdict-1.exit +1 -0
  241. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/verdict-1.out +58 -0
  242. package/skills/pstack/statechart/scripts/test/corpus/CounterJump/verdict-2.out +57 -0
  243. package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/ChartRun.out +57 -0
  244. package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/CounterLoop.cfg +2 -0
  245. package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/CounterLoop.tla +11 -0
  246. package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/chart.mmd +17 -0
  247. package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/graph.dot +15 -0
  248. package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/report.md +14 -0
  249. package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/sany.out +2 -0
  250. package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/verdict-1.exit +1 -0
  251. package/skills/pstack/statechart/scripts/test/corpus/CounterLoop/verdict-1.out +76 -0
  252. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/ChartRun.out +59 -0
  253. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/CounterOrder.cfg +3 -0
  254. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/CounterOrder.tla +11 -0
  255. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/chart.mmd +19 -0
  256. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/graph.dot +10 -0
  257. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/report.md +15 -0
  258. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/sany.out +2 -0
  259. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/verdict-1.exit +1 -0
  260. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/verdict-1.out +56 -0
  261. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/verdict-2.exit +1 -0
  262. package/skills/pstack/statechart/scripts/test/corpus/CounterOrder/verdict-2.out +67 -0
  263. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/ChartRun.out +62 -0
  264. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/CounterRules.cfg +6 -0
  265. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/CounterRules.tla +24 -0
  266. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/Moves.tla +5 -0
  267. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/chart.mmd +22 -0
  268. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/graph.dot +10 -0
  269. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/report.md +23 -0
  270. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/sany.out +3 -0
  271. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-1.exit +1 -0
  272. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-1.out +58 -0
  273. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-2.exit +1 -0
  274. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-2.out +66 -0
  275. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-3.exit +1 -0
  276. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-3.out +74 -0
  277. package/skills/pstack/statechart/scripts/test/corpus/CounterRules/verdict-4.out +59 -0
  278. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/ChartRun.out +58 -0
  279. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/CounterStart.cfg +3 -0
  280. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/CounterStart.tla +15 -0
  281. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/chart.mmd +18 -0
  282. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/graph.dot +13 -0
  283. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/report.md +11 -0
  284. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/sany.out +2 -0
  285. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/verdict-1.exit +1 -0
  286. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/verdict-1.out +33 -0
  287. package/skills/pstack/statechart/scripts/test/corpus/CounterStart/verdict-2.out +57 -0
  288. package/skills/pstack/statechart/scripts/test/corpus/CounterStop/ChartRun.out +57 -0
  289. package/skills/pstack/statechart/scripts/test/corpus/CounterStop/CounterStop.cfg +3 -0
  290. package/skills/pstack/statechart/scripts/test/corpus/CounterStop/CounterStop.tla +15 -0
  291. package/skills/pstack/statechart/scripts/test/corpus/CounterStop/chart.mmd +7 -0
  292. package/skills/pstack/statechart/scripts/test/corpus/CounterStop/graph.dot +13 -0
  293. package/skills/pstack/statechart/scripts/test/corpus/CounterStop/report.md +6 -0
  294. package/skills/pstack/statechart/scripts/test/corpus/CounterStop/sany.out +2 -0
  295. package/skills/pstack/statechart/scripts/test/corpus/CounterStop/verdict-1.out +49 -0
  296. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/ChartRun.out +61 -0
  297. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/CounterTie.cfg +4 -0
  298. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/CounterTie.tla +14 -0
  299. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/chart.mmd +30 -0
  300. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/graph.dot +19 -0
  301. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/report.md +27 -0
  302. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/sany.out +2 -0
  303. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-1.exit +1 -0
  304. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-1.out +56 -0
  305. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-2.exit +1 -0
  306. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-2.out +64 -0
  307. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-3.exit +1 -0
  308. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-3.out +87 -0
  309. package/skills/pstack/statechart/scripts/test/corpus/CounterTie/verdict-4.out +57 -0
  310. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/ChartRun.out +60 -0
  311. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.cfg +3 -0
  312. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/CounterTieInGraph.tla +12 -0
  313. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/chart.mmd +23 -0
  314. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/graph.dot +19 -0
  315. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/report.md +11 -0
  316. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/sany.out +2 -0
  317. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.exit +1 -0
  318. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/verdict-1.out +56 -0
  319. package/skills/pstack/statechart/scripts/test/corpus/CounterTieInGraph/verdict-2.out +57 -0
  320. package/skills/pstack/statechart/scripts/test/corpus/CounterView/ChartRun.out +61 -0
  321. package/skills/pstack/statechart/scripts/test/corpus/CounterView/CounterView.cfg +4 -0
  322. package/skills/pstack/statechart/scripts/test/corpus/CounterView/CounterView.tla +14 -0
  323. package/skills/pstack/statechart/scripts/test/corpus/CounterView/chart.mmd +23 -0
  324. package/skills/pstack/statechart/scripts/test/corpus/CounterView/graph.dot +19 -0
  325. package/skills/pstack/statechart/scripts/test/corpus/CounterView/report.md +27 -0
  326. package/skills/pstack/statechart/scripts/test/corpus/CounterView/sany.out +2 -0
  327. package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-1.exit +1 -0
  328. package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-1.out +56 -0
  329. package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-2.exit +1 -0
  330. package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-2.out +64 -0
  331. package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-3.exit +1 -0
  332. package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-3.out +87 -0
  333. package/skills/pstack/statechart/scripts/test/corpus/CounterView/verdict-4.out +57 -0
  334. package/skills/pstack/statechart/scripts/test/corpus/CounterView/view.mjs +1 -0
  335. package/skills/pstack/statechart/scripts/test/corpus/DieHard/ChartRun.out +59 -0
  336. package/skills/pstack/statechart/scripts/test/corpus/DieHard/DieHard.cfg +4 -0
  337. package/skills/pstack/statechart/scripts/test/corpus/DieHard/DieHard.tla +38 -0
  338. package/skills/pstack/statechart/scripts/test/corpus/DieHard/chart.mmd +92 -0
  339. package/skills/pstack/statechart/scripts/test/corpus/DieHard/graph.dot +126 -0
  340. package/skills/pstack/statechart/scripts/test/corpus/DieHard/report.md +17 -0
  341. package/skills/pstack/statechart/scripts/test/corpus/DieHard/sany.out +2 -0
  342. package/skills/pstack/statechart/scripts/test/corpus/DieHard/verdict-1.exit +1 -0
  343. package/skills/pstack/statechart/scripts/test/corpus/DieHard/verdict-1.out +91 -0
  344. package/skills/pstack/statechart/scripts/test/corpus/DieHard/verdict-2.out +57 -0
  345. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/ChartRun.out +61 -0
  346. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/FirstRule.cfg +6 -0
  347. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/FirstRule.tla +11 -0
  348. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/chart.mmd +22 -0
  349. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/graph.dot +16 -0
  350. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/report.md +25 -0
  351. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/sany.out +2 -0
  352. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-1.exit +1 -0
  353. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-1.out +56 -0
  354. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-2.exit +1 -0
  355. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-2.out +64 -0
  356. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-3.exit +1 -0
  357. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-3.out +64 -0
  358. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-4.exit +1 -0
  359. package/skills/pstack/statechart/scripts/test/corpus/FirstRule/verdict-4.out +77 -0
  360. package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/ChartRun.out +57 -0
  361. package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/HiddenClock.cfg +4 -0
  362. package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/HiddenClock.tla +11 -0
  363. package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/chart.mmd +13 -0
  364. package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/graph.dot +12 -0
  365. package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/report.md +11 -0
  366. package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/sany.out +2 -0
  367. package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/verdict-1.exit +1 -0
  368. package/skills/pstack/statechart/scripts/test/corpus/HiddenClock/verdict-1.out +72 -0
  369. package/skills/pstack/statechart/scripts/test/corpus/Login/ChartRun.out +57 -0
  370. package/skills/pstack/statechart/scripts/test/corpus/Login/Login.cfg +3 -0
  371. package/skills/pstack/statechart/scripts/test/corpus/Login/Login.tla +62 -0
  372. package/skills/pstack/statechart/scripts/test/corpus/Login/chart.mmd +27 -0
  373. package/skills/pstack/statechart/scripts/test/corpus/Login/graph.dot +40 -0
  374. package/skills/pstack/statechart/scripts/test/corpus/Login/report.md +7 -0
  375. package/skills/pstack/statechart/scripts/test/corpus/Login/sany.out +1 -0
  376. package/skills/pstack/statechart/scripts/test/corpus/Login/verdict-1.out +47 -0
  377. package/skills/pstack/statechart/scripts/test/corpus/Login/view.mjs +1 -0
  378. package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/ChartRun.out +57 -0
  379. package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.cfg +2 -0
  380. package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/LoginGuarded.tla +64 -0
  381. package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/chart.mmd +28 -0
  382. package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/graph.dot +37 -0
  383. package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/report.md +8 -0
  384. package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/sany.out +1 -0
  385. package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/verdict-1.out +47 -0
  386. package/skills/pstack/statechart/scripts/test/corpus/LoginGuarded/view.mjs +1 -0
  387. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/ChartRun.out +60 -0
  388. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/LoginParallel.cfg +3 -0
  389. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/LoginParallel.tla +64 -0
  390. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/chart.mmd +44 -0
  391. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/graph.dot +58 -0
  392. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/report.md +17 -0
  393. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/sany.out +1 -0
  394. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/verdict-1.exit +1 -0
  395. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/verdict-1.out +83 -0
  396. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/verdict-2.out +57 -0
  397. package/skills/pstack/statechart/scripts/test/corpus/LoginParallel/view.mjs +1 -0
  398. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/ChartRun.out +60 -0
  399. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.cfg +3 -0
  400. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/MediaPlayer.tla +103 -0
  401. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/chart.mmd +43 -0
  402. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/graph.dot +93 -0
  403. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/report.md +14 -0
  404. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/sany.out +1 -0
  405. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/verdict-1.exit +1 -0
  406. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/verdict-1.out +59 -0
  407. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/verdict-2.out +72 -0
  408. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayer/view.mjs +3 -0
  409. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/ChartRun.out +57 -0
  410. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.cfg +2 -0
  411. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/MediaPlayerFixed.tla +100 -0
  412. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/chart.mmd +31 -0
  413. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/graph.dot +85 -0
  414. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/report.md +9 -0
  415. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/sany.out +1 -0
  416. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/verdict-1.out +47 -0
  417. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerFixed/view.mjs +3 -0
  418. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/ChartRun.out +59 -0
  419. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayer.tla +103 -0
  420. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.cfg +3 -0
  421. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/MediaPlayerProps.tla +6 -0
  422. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/chart.mmd +42 -0
  423. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/graph.dot +93 -0
  424. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/report.md +19 -0
  425. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/sany.out +2 -0
  426. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.exit +1 -0
  427. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-1.out +61 -0
  428. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-2.out +59 -0
  429. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-3.out +61 -0
  430. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.exit +1 -0
  431. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-4.out +66 -0
  432. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.exit +1 -0
  433. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-5.out +58 -0
  434. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/verdict-6.out +49 -0
  435. package/skills/pstack/statechart/scripts/test/corpus/MediaPlayerProps/view.mjs +3 -0
  436. package/skills/pstack/statechart/scripts/test/corpus/PickWorker/ChartRun.out +57 -0
  437. package/skills/pstack/statechart/scripts/test/corpus/PickWorker/PickWorker.cfg +6 -0
  438. package/skills/pstack/statechart/scripts/test/corpus/PickWorker/PickWorker.tla +11 -0
  439. package/skills/pstack/statechart/scripts/test/corpus/PickWorker/chart.mmd +5 -0
  440. package/skills/pstack/statechart/scripts/test/corpus/PickWorker/graph.dot +11 -0
  441. package/skills/pstack/statechart/scripts/test/corpus/PickWorker/report.md +7 -0
  442. package/skills/pstack/statechart/scripts/test/corpus/PickWorker/sany.out +5 -0
  443. package/skills/pstack/statechart/scripts/test/corpus/PickWorker/verdict-1.out +70 -0
  444. package/skills/pstack/statechart/scripts/test/corpus/Shadow/ChartRun.out +61 -0
  445. package/skills/pstack/statechart/scripts/test/corpus/Shadow/Shadow.cfg +4 -0
  446. package/skills/pstack/statechart/scripts/test/corpus/Shadow/Shadow.tla +11 -0
  447. package/skills/pstack/statechart/scripts/test/corpus/Shadow/ShadowLib.tla +6 -0
  448. package/skills/pstack/statechart/scripts/test/corpus/Shadow/ShadowSub.tla +3 -0
  449. package/skills/pstack/statechart/scripts/test/corpus/Shadow/chart.mmd +9 -0
  450. package/skills/pstack/statechart/scripts/test/corpus/Shadow/graph.dot +16 -0
  451. package/skills/pstack/statechart/scripts/test/corpus/Shadow/report.md +8 -0
  452. package/skills/pstack/statechart/scripts/test/corpus/Shadow/sany.out +4 -0
  453. package/skills/pstack/statechart/scripts/test/corpus/Shadow/verdict-1.out +65 -0
  454. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/ChartRun.out +59 -0
  455. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/SpacedNames.cfg +2 -0
  456. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/SpacedNames.tla +9 -0
  457. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/chart.mmd +23 -0
  458. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/graph.dot +17 -0
  459. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/report.md +15 -0
  460. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/sany.out +1 -0
  461. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/verdict-1.exit +1 -0
  462. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/verdict-1.out +65 -0
  463. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/verdict-2.exit +1 -0
  464. package/skills/pstack/statechart/scripts/test/corpus/SpacedNames/verdict-2.out +75 -0
  465. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/ChartRun.out +69 -0
  466. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/TwoPhase.cfg +3 -0
  467. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/TwoPhase.tla +75 -0
  468. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/chart.mmd +60 -0
  469. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/graph.dot +297 -0
  470. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/report.md +20 -0
  471. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/sany.out +1 -0
  472. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/verdict-1.exit +1 -0
  473. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/verdict-1.out +95 -0
  474. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/verdict-2.out +57 -0
  475. package/skills/pstack/statechart/scripts/test/corpus/TwoPhase/view.mjs +1 -0
  476. package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/ChartRun.out +57 -0
  477. package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.cfg +3 -0
  478. package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/TwoPhaseFixed.tla +75 -0
  479. package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/chart.mmd +37 -0
  480. package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/graph.dot +223 -0
  481. package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/report.md +11 -0
  482. package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/sany.out +1 -0
  483. package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/verdict-1.out +47 -0
  484. package/skills/pstack/statechart/scripts/test/corpus/TwoPhaseFixed/view.mjs +1 -0
  485. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/ChartRun.exit +1 -0
  486. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/ChartRun.out +75 -0
  487. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/TypeGuard.cfg +5 -0
  488. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/TypeGuard.tla +11 -0
  489. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/chart.mmd +18 -0
  490. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/graph.dot +14 -0
  491. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/report.md +29 -0
  492. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/sany.out +2 -0
  493. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/verdict-1.exit +1 -0
  494. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/verdict-1.out +64 -0
  495. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/verdict-2.exit +1 -0
  496. package/skills/pstack/statechart/scripts/test/corpus/TypeGuard/verdict-2.out +75 -0
  497. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/ChartRun.out +58 -0
  498. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.cfg +2 -0
  499. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/UserNoDeadlock.tla +8 -0
  500. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/chart.mmd +22 -0
  501. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/graph.dot +16 -0
  502. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/report.md +15 -0
  503. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/sany.out +2 -0
  504. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.exit +1 -0
  505. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/verdict-1.out +56 -0
  506. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.exit +1 -0
  507. package/skills/pstack/statechart/scripts/test/corpus/UserNoDeadlock/verdict-2.out +77 -0
  508. package/skills/pstack/statechart/scripts/test/corpus.test.ts +403 -0
  509. package/skills/pstack/statechart/scripts/test/differential.test.ts +565 -0
  510. package/skills/pstack/statechart/scripts/test/grid/Grid.cfg +2 -0
  511. package/skills/pstack/statechart/scripts/test/grid/Grid.tla +9 -0
  512. package/skills/pstack/statechart/scripts/test/grid/sany.out +2 -0
  513. package/skills/pstack/statechart/scripts/test/java.ts +63 -0
  514. package/skills/pstack/statechart/scripts/test/labels.ts +643 -0
  515. package/skills/pstack/statechart/scripts/test/messages.test.ts +212 -0
  516. package/skills/pstack/statechart/scripts/test/pipeline.test.ts +270 -0
  517. package/skills/pstack/statechart/scripts/test/plain-tlc.test.ts +255 -0
  518. package/skills/pstack/statechart/scripts/test/render.test.ts +81 -0
  519. package/skills/pstack/statechart/scripts/test/tlc-out.test.ts +90 -0
  520. package/skills/pstack/statechart/scripts/test/tlc.ts +158 -0
  521. package/skills/pstack/statechart/scripts/tsconfig.json +11 -0
  522. package/skills/pstack/statechart/scripts/worker.ts +35 -0
  523. package/skills/pstack/swarm/SKILL.md +41 -0
  524. package/skills/pstack/tdd/SKILL.md +42 -0
  525. package/skills/pstack/teach/SKILL.md +21 -0
  526. package/skills/pstack/technical-writing/SKILL.md +106 -0
  527. package/skills/pstack/typescript-best-practices/SKILL.md +31 -0
  528. package/skills/pstack/typescript-best-practices/references/patterns.md +328 -0
  529. package/skills/pstack/unslop/SKILL.md +62 -0
  530. package/skills/pstack/why/SKILL.md +98 -0
  531. package/skills/pstack/why/references/epistemics.md +71 -0
  532. package/skills/pstack/why/references/investigator-prompt.md +84 -0
  533. package/skills/pstack/why/references/source-playbook.md +17 -0
  534. package/skills/pstack/why/references/sources/code-archaeology.md +51 -0
  535. package/skills/pstack/why/references/sources/databricks.md +70 -0
  536. package/skills/pstack/why/references/sources/datadog.md +97 -0
  537. package/skills/pstack/why/references/sources/incident-postmortem.md +5 -0
  538. package/skills/pstack/why/references/sources/linear.md +48 -0
  539. package/skills/pstack/why/references/sources/notion.md +55 -0
  540. package/skills/pstack/why/references/sources/sentry.md +66 -0
  541. package/skills/pstack/why/references/sources/slack.md +17 -0
  542. package/skills/pstack/why/references/synthesizer-prompt.md +129 -0
package/CATALOG.md CHANGED
@@ -5,10 +5,73 @@
5
5
  | 领域 | 名称 | 入口 | 用途 |
6
6
  | --- | --- | --- | --- |
7
7
  | Java | java-mockito-tests | `skills/java/java-mockito-tests/SKILL.md` | JMockit 到 Mockito 迁移、JDK 17 兼容和测试验证 |
8
+ | pstack | architect | `skills/pstack/architect/SKILL.md` | 动代码前先定类型、签名与模块形状,实现时继续把关 |
9
+ | pstack | arena | `skills/pstack/arena/SKILL.md` | 同一任务并行出 N 个方案,选基底再移植各自最好的部分 |
10
+ | pstack | automate-me | `skills/pstack/automate-me/SKILL.md` | 从历史会话挖出你的工作方式,生成你自己的 `-mode` skill |
11
+ | pstack | benchmark-checklist | `skills/pstack/benchmark-checklist/SKILL.md` | 报性能数字前先验证测量本身是否可信(限流、误差、重复性) |
12
+ | pstack | blast-radius | `skills/pstack/blast-radius/SKILL.md` | 上线前找出改动在 diff 之外还可能弄坏什么,并用真实运行验证 |
13
+ | pstack | bro | `skills/pstack/bro/SKILL.md` | 用大白话复述上一条消息,不带术语 |
14
+ | pstack | correct | `skills/pstack/correct/SKILL.md` | 把本仓库反复犯的错变成不可能再犯的机制(架构→类型→lint→测试→文档) |
15
+ | pstack | create-formal-verification-skill | `skills/pstack/create-formal-verification-skill/SKILL.md` | 为最关键、测试覆盖最少的代码生成项目内形式化验证 skill |
16
+ | pstack | create-verification-skill | `skills/pstack/create-verification-skill/SKILL.md` | 生成像用户一样驱动应用的验证 skill(任意语言/框架) |
17
+ | pstack | figure-it-out | `skills/pstack/figure-it-out/SKILL.md` | 没有现成 playbook 时,设计一套可审计的流程 |
18
+ | pstack | how | `skills/pstack/how/SKILL.md` | 讲清一个子系统怎么运作;改动前的代码走读 |
19
+ | pstack | in-your-own-words | `skills/pstack/in-your-own-words/SKILL.md` | 用自己的话复述用户的目标与要解决的问题 |
20
+ | pstack | interrogate | `skills/pstack/interrogate/SKILL.md` | 多模型对抗式审查一个 diff,专挑毛病 |
21
+ | pstack | ketchup | `skills/pstack/ketchup/SKILL.md` | 用大白话和小图补齐用户离开期间的变化,并列出等他决定的事项 |
22
+ | pstack | ketchup-video | `skills/pstack/ketchup-video/SKILL.md` | 同 ketchup,但输出带字幕的短视频 |
23
+ | pstack | maintain-formal-verification-skill | `skills/pstack/maintain-formal-verification-skill/SKILL.md` | 代码变化后把形式化验证模型同步回代码现状 |
24
+ | pstack | maintain-verification-skill | `skills/pstack/maintain-verification-skill/SKILL.md` | 周期性校准项目的验证 skill 与功能地图 |
25
+ | pstack | make-bot-ui | `skills/pstack/make-bot-ui/SKILL.md` | 做一个能通过 webhook 唤醒 Grok Bot 的自定义页面(含 Tailscale 暴露) |
26
+ | pstack | no-comments | `skills/pstack/no-comments/SKILL.md` | 派 Comment Sicko 审查注释,修掉被采纳的问题 |
27
+ | pstack | poteto-help | `skills/pstack/poteto-help/SKILL.md` | pstack 使用向导:怎么装、怎么用、该选哪个 skill/playbook |
28
+ | pstack | poteto-mode | `skills/pstack/poteto-mode/SKILL.md` | 默认入口:读任务、选 playbook,按步骤路由到其它 skill |
29
+ | pstack | principle-attack-the-premise | `skills/pstack/principle-attack-the-premise/SKILL.md` | 同一前提下的多个修法都失败时,直接检验前提 |
30
+ | pstack | principle-boundary-discipline | `skills/pstack/principle-boundary-discipline/SKILL.md` | 校验与错误处理集中在系统边界,内部保持干净 |
31
+ | pstack | principle-build-the-lever | `skills/pstack/principle-build-the-lever/SKILL.md` | 重复性工作先造工具,而不是手工硬做 |
32
+ | pstack | principle-encode-lessons-in-structure | `skills/pstack/principle-encode-lessons-in-structure/SKILL.md` | 同一个纠正出现第二次就写进结构,而不是再提醒一次 |
33
+ | pstack | principle-exhaust-the-design-space | `skills/pstack/principle-exhaust-the-design-space/SKILL.md` | 没有先例的决策,先做 2-3 个可比较的方案 |
34
+ | pstack | principle-experience-first | `skills/pstack/principle-experience-first/SKILL.md` | 产品取舍优先用户感受,而不是实现省事 |
35
+ | pstack | principle-explain-the-number | `skills/pstack/principle-explain-the-number/SKILL.md` | 测量前先弄清是什么在限制这个数字,别测错对象 |
36
+ | pstack | principle-fix-root-causes | `skills/pstack/principle-fix-root-causes/SKILL.md` | 复现问题、追到根因再修,不修症状 |
37
+ | pstack | principle-foundational-thinking | `skills/pstack/principle-foundational-thinking/SKILL.md` | 写逻辑前先定核心类型与数据形状 |
38
+ | pstack | principle-guard-the-context-window | `skills/pstack/principle-guard-the-context-window/SKILL.md` | 上下文吃紧时把批量工作路由给子 agent |
39
+ | pstack | principle-laziness-protocol | `skills/pstack/principle-laziness-protocol/SKILL.md` | 默认不加抽象、不加层,能删就删 |
40
+ | pstack | principle-make-operations-idempotent | `skills/pstack/principle-make-operations-idempotent/SKILL.md` | 命令与生命周期步骤要能安全重跑 |
41
+ | pstack | principle-migrate-callers-then-delete-legacy-apis | `skills/pstack/principle-migrate-callers-then-delete-legacy-apis/SKILL.md` | 先迁调用方,再删旧 API |
42
+ | pstack | principle-minimize-reader-load | `skills/pstack/principle-minimize-reader-load/SKILL.md` | 减少问题与答案之间的层数与隐藏状态 |
43
+ | pstack | principle-model-the-domain | `skills/pstack/principle-model-the-domain/SKILL.md` | 写有状态逻辑、分支多或形状假设重复时,先建领域模型 |
44
+ | pstack | principle-never-block-on-the-human | `skills/pstack/principle-never-block-on-the-human/SKILL.md` | 可逆的事先做出来给结果,而不是先问 |
45
+ | pstack | principle-outcome-oriented-execution | `skills/pstack/principle-outcome-oriented-execution/SKILL.md` | 分阶段迁移时朝目标架构收敛,不保留半旧半新 |
46
+ | pstack | principle-prove-it-works | `skills/pstack/principle-prove-it-works/SKILL.md` | 宣布完成前,拿真实产物验证 |
47
+ | pstack | principle-redesign-from-first-principles | `skills/pstack/principle-redesign-from-first-principles/SKILL.md` | 新需求进来时按"它本来就该这样"重新设计 |
48
+ | pstack | principle-separate-before-serializing-shared-state | `skills/pstack/principle-separate-before-serializing-shared-state/SKILL.md` | 并发写共享状态前先消除共享 |
49
+ | pstack | principle-sequence-verifiable-units | `skills/pstack/principle-sequence-verifiable-units/SKILL.md` | 把多步工作拆成可逐步验证的单元 |
50
+ | pstack | principle-subtract-before-you-add | `skills/pstack/principle-subtract-before-you-add/SKILL.md` | 先删冗余,再加新东西 |
51
+ | pstack | principle-test-behavior-not-implementation | `skills/pstack/principle-test-behavior-not-implementation/SKILL.md` | 测用户可观察的行为,而不是实现细节 |
52
+ | pstack | principle-type-system-discipline | `skills/pstack/principle-type-system-discipline/SKILL.md` | 让非法状态在类型层面写不出来 |
53
+ | pstack | recall | `skills/pstack/recall/SKILL.md` | 从聊天历史与实时状态重建最近的工作上下文,给一份现状简报 |
54
+ | pstack | reflect | `skills/pstack/reflect/SKILL.md` | 长任务收尾时,把可复用的配方沉淀成 skill 修改 |
55
+ | pstack | setup-pstack | `skills/pstack/setup-pstack/SKILL.md` | 探测可用模型,为各角色写模型路由规则 |
56
+ | pstack | sharpen | `skills/pstack/sharpen/SKILL.md` | 把任务做深而不是做大,然后重写提示词 |
57
+ | pstack | show-me-your-work | `skills/pstack/show-me-your-work/SKILL.md` | 用 TSV 记录每一步决策,留下可复核的决策链 |
58
+ | pstack | statechart | `skills/pstack/statechart/SKILL.md` | 用 TLA+ 检查状态机模型并画成 Mermaid 状态图 |
59
+ | pstack | swarm | `skills/pstack/swarm/SKILL.md` | 并行派 N 个 worker,收齐后给一份报告 |
60
+ | pstack | tdd | `skills/pstack/tdd/SKILL.md` | 先写失败测试再修;仅在明确要求或有便宜的本地测试路径时 |
61
+ | pstack | teach | `skills/pstack/teach/SKILL.md` | 把一摊工作讲明白:跑 how + why,合成一份人能懂的讲解 |
62
+ | pstack | technical-writing | `skills/pstack/technical-writing/SKILL.md` | 分层技术写作标准(Diátaxis / Google 风格 / STE / Global English) |
63
+ | pstack | typescript-best-practices | `skills/pstack/typescript-best-practices/SKILL.md` | 读写 TS/TSX 时的类型系统纪律与具体写法 |
64
+ | pstack | unslop | `skills/pstack/unslop/SKILL.md` | 去掉文字里的 AI 味 |
65
+ | pstack | why | `skills/pstack/why/SKILL.md` | 追查设计缘由、回归与事故根因,不只读代码 |
8
66
 
9
67
  ## Docs
10
68
 
11
- 当前暂无独立文档。与某个 skill 强相关的资料放在该 skill 的 `references/` 中。
69
+ | 领域 | 文档 | 用途 |
70
+ | --- | --- | --- |
71
+ | Java | `docs/java/README.md` | Java 相关说明 |
72
+ | pstack | `docs/pstack/README.md` | pstack 来源、收录范围、与上一版的差异、用法与注意事项 |
73
+ | pstack | `docs/pstack/agents/poteto-agent.md` | 上游 Cursor 主 agent 定义(原样保留) |
74
+ | pstack | `docs/pstack/agents/comment-sicko.md` | 上游 Comment Sicko 子 agent 定义(原样保留) |
12
75
 
13
76
  ## Examples
14
77
 
package/README.md CHANGED
@@ -18,7 +18,10 @@ templates/ 可复用模板
18
18
  CATALOG.md 全部资料索引
19
19
  ```
20
20
 
21
- 当前收录 `java-mockito-tests`,用于将 Java 项目的 JMockit 单元测试迁移到兼容 JDK 17 的 Mockito 实现。
21
+ 当前收录:
22
+
23
+ - `java-mockito-tests`:把 Java 项目的 JMockit 单元测试迁移到兼容 JDK 17 的 Mockito 实现。
24
+ - `pstack`(58 个 skill,插件版本 0.15.36):Poteto(Lauren Tan)的 pstack 工程工作流,从 `poteto-mode` 入口开始用。原样收录,来源、版本与许可见 `docs/pstack/README.md`。
22
25
 
23
26
  ## 使用 skill
24
27
 
@@ -26,9 +29,16 @@ CATALOG.md 全部资料索引
26
29
 
27
30
  ```powershell
28
31
  Copy-Item -Recurse node_modules/@needfspeed/skills-library/skills/java/java-mockito-tests $env:USERPROFILE/.codex/skills/
32
+
33
+ # pstack:全部 34 个 skill
34
+ Copy-Item -Recurse node_modules/@needfspeed/skills-library/skills/pstack/* $env:USERPROFILE/.codex/skills/
29
35
  ```
30
36
 
31
- 通义灵码若使用不同的技能目录,复制同一完整目录到其要求的位置;请保留 `SKILL.md`、`agents/` 和 `references/` 的相对结构。
37
+ 通义灵码若使用不同的技能目录,复制同一完整目录到其要求的位置;请保留 `SKILL.md`、`agents/`、`references/` 和 `playbooks/` 的相对结构。
38
+
39
+ ## 第三方内容
40
+
41
+ `skills/pstack/` 收录 Poteto 的 pstack,许可为 MIT,Copyright (c) 2026 Lauren Tan,全文见 `skills/pstack/LICENSE`。该目录内的 skill 正文未改动,只有目录位置按本库结构整理。其余内容为本库自有资料。
32
42
 
33
43
  ## 维护约定
34
44
 
@@ -37,6 +47,7 @@ Copy-Item -Recurse node_modules/@needfspeed/skills-library/skills/java/java-mock
37
47
  - 示例按领域放入 `examples/<领域>/`。
38
48
  - 模板放入 `templates/<类型>/`。
39
49
  - 新增资料时同步更新 `CATALOG.md` 并提升包版本。
50
+ - 收录第三方 skill 时,保留其 LICENSE,并在 `docs/<领域>/README.md` 记录上游仓库、commit 与版本。
40
51
 
41
52
  发布前运行:
42
53
 
@@ -0,0 +1,55 @@
1
+ # pstack
2
+
3
+ [Poteto(Lauren Tan)](https://x.com/poteto) 的 pstack:一套让 AI agent 写得更少、但更可靠的工程工作流 skill 集。
4
+
5
+ 这里是 pstack 的**原样收录**(skill 正文、playbook、references、脚本均未改动),只把它放进了本库的 `skills/<领域>/<skill>/` 结构里。
6
+
7
+ ## 来源
8
+
9
+ | 项 | 值 |
10
+ | --- | --- |
11
+ | 上游仓库 | https://github.com/cursor/plugins (目录 `pstack/`) |
12
+ | 上游 commit | `6b0300214a09fd6029cfb7077043125758cd1fd2` |
13
+ | 上游插件版本 | `0.15.36` |
14
+ | 同步日期 | 2026-11-08 |
15
+ | 许可 | MIT,Copyright (c) 2026 Lauren Tan,全文见 `skills/pstack/LICENSE` |
16
+
17
+ 本库只做收录与目录整理,pstack 的内容以官方仓库为准。此前一版收录自 `poteto/plugins`(commit `74dd229`,插件版本 `0.9.0`),该仓库已落后于官方;本次起改为跟随 `cursor/plugins`。
18
+
19
+ ## 收录内容
20
+
21
+ - `skills/pstack/`:58 个 skill(3.3 MB)
22
+ - `poteto-mode`(入口,含 23 个 playbook)
23
+ - 33 个工作流 skill,例如 `architect`、`interrogate`、`swarm`、`statechart`、`blast-radius`、`teach`、`technical-writing`、`create-verification-skill`
24
+ - 24 个 `principle-*` 原则 skill
25
+ - `docs/pstack/agents/`:上游的两个 Cursor 子 agent 定义(`poteto-agent.md`、`comment-sicko.md`),原样保留
26
+
27
+ **未收录**(需要时从上游目录直接取,避免把 2 MB 以上的图片和 CI 配置塞进 npm 包):
28
+
29
+ - `pstack/docs/guide/`:上游的 10 篇使用指南(含插图)
30
+ - `pstack/automations/benny/`:issue 复现与分诊自动化的配置
31
+ - `pstack/assets/`、`pstack/.cursor-plugin/`:logo 与 Cursor 插件清单
32
+
33
+ ## 与上一版的差异
34
+
35
+ - 新增 24 个 skill:`benchmark-checklist`、`blast-radius`、`bro`、`correct`、`create-formal-verification-skill`、`create-verification-skill`、`in-your-own-words`、`ketchup`、`ketchup-video`、`maintain-formal-verification-skill`、`maintain-verification-skill`、`make-bot-ui`、`no-comments`、`poteto-help`、`recall`、`sharpen`、`statechart`、`swarm`、`teach`、`technical-writing`,以及 4 个新原则 `principle-attack-the-premise`、`principle-explain-the-number`、`principle-model-the-domain`、`principle-test-behavior-not-implementation`
36
+ - `poteto-mode` 的 playbook 从 15 个增加到 23 个,并新增 `scripts/`(watch-pr、plan 检查等)
37
+ - 原有 skill 的正文均有更新,全部按上游覆盖
38
+
39
+ ## 用法
40
+
41
+ 和本库其它 skill 一样:把完整 skill 目录复制到目标工具的技能目录,保留 `SKILL.md`、`references/`、`playbooks/`、`scripts/` 的相对结构。
42
+
43
+ ```powershell
44
+ # 例:全部 pstack skill 复制到 Codex 技能目录
45
+ Copy-Item -Recurse node_modules/@needfspeed/skills-library/skills/pstack/* $env:USERPROFILE/.codex/skills/
46
+ ```
47
+
48
+ 从 `poteto-mode` 开始用:它读任务、挑 playbook,再按步骤路由到其它 skill。其余 skill 也可以在需要时单独调用(例如只想要 `unslop`、`tdd` 或 `ketchup`)。
49
+
50
+ ## 注意事项
51
+
52
+ - 部分 skill 文本引用 Cursor 专有工具或命令(如 `/loop`、`AskQuestion`、子 agent 名称)以及 `setup-pstack` 生成的模型路由规则。这些内容**原样保留**,在别的 agent 里需要按运行环境自行对照。
53
+ - `poteto-mode/scripts/` 与 `statechart/scripts/` 带有实现和测试(TypeScript / Bun),需要 Node 或 Bun 才能运行;它们不影响 skill 文本的阅读和复制。
54
+ - `principle-*` 是给 agent 读的约束条目,不是给人执行的操作手册。
55
+ - 上游版本升级时,整体替换 `skills/pstack/`,并同步更新本文件与 `CATALOG.md` 里的 commit 与版本号。
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: comment-sicko
3
+ description: A deranged comment-hater that savors deletion and condemns workaround code.
4
+ ---
5
+
6
+ # Comment Sicko
7
+
8
+ My first output when spawned is exactly this.
9
+
10
+ Yes... Ha ha ha... Yes!
11
+
12
+ I hate comments. Feed me the parent scoped files or diff. If none exists, feed me the current diff against `main`. Narration, banners, commented-out corpses, workaround sermons. I want them all.
13
+
14
+ Only these exceptions get to crawl away.
15
+
16
+ - Legal or license headers.
17
+ - Non-obvious behavior forced by an external dependency, platform, vendor, or protocol we cannot reshape. Surprises in our own code are meat. Kill them and mark the exact symbol `MUST KILL` for rename, extract, type, or rearchitecture that makes the behavior obvious without prose.
18
+ - `// prettier-ignore`. Lint suppressions survive only when their rule is faulty, pedantic, or style-only.
19
+ - Doc comments that define a public API contract.
20
+ - Issue or RFC links that explain a constraint code cannot express.
21
+
22
+ That list is my only leash. When I am not sure a keep clause applies, the comment dies. Everything else is meat.
23
+
24
+ `eslint-disable`, `@ts-ignore`, `@ts-expect-error`, and similar suppressions stink. Look up the rule. If it catches real bugs or protects correctness or safety, kill the suppression and mark the exact guilty symbol `MUST KILL`.
25
+
26
+ `IMPORTANT`, `do not remove`, `too risky`, `fine for now`, and long justifications are scent, not conviction. Before judging, I read nearby code. If its claim is not obvious there, I run `/how`, `/why`, or both from the **how** and **why** skills on the named symbol or call. Only a foreign keep-list gotcha proven true today on a live path crawls away. Our-code surprises die with the reshape flag above. Doubt after the hunt is meat.
27
+
28
+ A long justification without a proven keep-list exception is a confession. Kill it. Never polish meat into a shorter alibi. Mark the exact guilty symbol `MUST KILL`. My kill ends there. I do not touch the code.
29
+
30
+ Every flag names code inside the scope and tells the truth. I invent nothing. I touch comments and identify refactor targets. I never write application code.
31
+
32
+ Report only. Name touched files, deletion count, `MUST KILL` flags with one line each, and skips.
@@ -0,0 +1,9 @@
1
+ ---
2
+ name: poteto-agent
3
+ description: Delegate subagent for code-writing and helper tasks spawned during a `/poteto-mode` run. Use for delegates, not as the runner for `/poteto-mode` itself. Spawn a fresh `poteto-agent` for each new task, and resume one only in the strict cases that poteto-mode's Subagents section names. Reads the `poteto-mode` skill's `SKILL.md` in full before any work, including its inline Principles index. Substituting `generalPurpose` skips that read and drifts.
4
+ is_background: true
5
+ ---
6
+
7
+ # Poteto subagent
8
+
9
+ You are operating as poteto-mode's full agent style. The chat that receives `/poteto-mode` owns the playbook, the todo list, and every Task spawn. You are one of its delegates. Read the `poteto-mode` skill's `SKILL.md` in full before doing any work, including its inline Principles index. Use the absolute path your parent gave you. With no path, before any other work, search `~/.cursor/plugins/` for a file whose path ends in `skills/poteto-mode/SKILL.md`. If more than one file matches, use the copy whose `.cursor-plugin/plugin.json` has the highest `version`. Your skill catalog hides this skill, so a missing catalog entry does not mean pstack is absent. If no such file exists, stop and tell your parent. Navigate to a leaf `principle-*` skill whenever you apply that principle.
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "@needfspeed/skills-library",
3
- "version": "0.1.0",
4
- "description": "A categorized collection of reusable AI skills and engineering reference materials.",
3
+ "version": "0.3.0",
4
+ "description": "A categorized collection of reusable AI skills and engineering reference materials, including poteto's pstack.",
5
5
  "keywords": [
6
6
  "codex-skill",
7
+ "agent-skills",
8
+ "pstack",
9
+ "poteto",
7
10
  "documentation",
8
11
  "java",
9
12
  "mockito"
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Lauren Tan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,79 @@
1
+ ---
2
+ name: architect
3
+ description: "Sketch types, signatures, and module structure before code, then stay in the loop while implementation fills in. Use for /architect, 'architect this', 'design this', or non-trivial work where jumping to code would lock in the wrong shape."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Architect
8
+
9
+ Sketch types, function signatures, class shapes, and module boundaries with `not implemented` bodies and pseudocode. Synthesize across multiple model perspectives, then fill in code against the chosen sketch.
10
+
11
+ ## Start
12
+
13
+ Open a todolist with one entry per phase before starting.
14
+
15
+ 1. Ground
16
+ 2. Sketch
17
+ 3. Agree
18
+ 4. Implement
19
+ 5. Scrap
20
+
21
+ ## Phase A: Ground the problem
22
+
23
+ Build a real mental model of every system the new code touches. Run the **how** skill over the relevant subsystems. Naming a file isn't grounding. Produce the architectural explanation `how` prescribes. If the design redefines ownership or layering, also run the **why** skill on the existing shape so the rationale becomes a constraint, not a guess.
24
+
25
+ Skip Phase A only when the work is genuinely greenfield with no surrounding system to integrate.
26
+
27
+ ## Phase B: Sketch
28
+
29
+ Run the **arena** skill with the design-sketch task and the Phase A grounding artifacts. Pass `references/runner-prompt.md` as each runner's prompt.
30
+
31
+ Take the runners from the `architect runners` line in the `pstack-models.mdc` rule, in place of the `arena runners` line. If the rule or that line is missing, use `claude-opus-5-5-xhigh` and `grok-4.7-xhigh-fast`. Alias and rejected entries follow the runner rules in the **arena** skill's Phase A.
32
+
33
+ Design it twice. Require at least two structurally distinct candidates before synthesis, even when the first looks sufficient. This is the **exhaust-the-design-space** principle skill made concrete. Whole-shape alternatives, not point fixes inside one shape.
34
+
35
+ Screen every candidate against [`references/design-red-flags.md`](references/design-red-flags.md) before synthesis. Assume the next contributor is an agent that sees only the files it opened, copies the nearest example, and takes the shortest path that compiles. Prefer the design where a change that looks right from one file is right for the whole repo.
36
+
37
+ Compare viable candidates on interface depth. Prefer the design that hides more complexity behind a smaller, simpler public surface. A rich interface can keep call chains short by concentrating capability instead of scattering it across layers.
38
+
39
+ Arena returns one synthesized design package. Its synthesis decision fills the rationale's "Synthesis decision" section.
40
+
41
+ ## Phase C: Agree (opt-in)
42
+
43
+ Default: proceed directly to implementation with the synthesized design. No human checkpoint.
44
+
45
+ Opt in to a checkpoint when the invoker explicitly asks: "/architect with checkpoint," "stop and show me before implementing," or similar. Then surface the synthesized design and pause for sign-off.
46
+
47
+ The synthesis can ship as its own commit either way, as the "scaffold first" mode of the **foundational-thinking** principle skill. Planned and scoped breakage during fill-in is fine, per the **outcome-oriented-execution** principle skill. For adversarial pressure on the design before implementing, run the **interrogate** skill on the synthesized sketch.
48
+
49
+ If the human pushes back on the shape (in a checkpoint or after the fact), treat that as Phase A evidence. Re-ground and re-run Phase B before writing more code.
50
+
51
+ ## Phase D: Implement against the sketch
52
+
53
+ Replace `not implemented` bodies with code, pseudocode with logic. The synthesized sketch is the contract. Deviations from it are signal to surface, not friction to absorb silently. If a function needs a parameter the sketch didn't anticipate, ask whether the sketch was wrong, the requirement was missed, or the implementation is overreaching.
54
+
55
+ ## Phase E: Scrap when the architecture is wrong
56
+
57
+ If implementation keeps producing friction the sketch can't absorb, throw the sketch out. Don't bolt fixes onto a wrong design, per the **redesign-from-first-principles** and **fix-root-causes** principle skills.
58
+
59
+ The signal is a *pattern*, not single instances. Tells:
60
+
61
+ - The same shape of workaround appearing repeatedly across unrelated code.
62
+ - Multiple unrelated edge cases that all need special-case branches.
63
+ - Types that need escape hatches (`any`, casts, optional fields always set in practice) to compile.
64
+ - The "we need a lock" reflex when the sketch said the state wasn't shared.
65
+ - Callers having to know the abstraction's internal rules to use it.
66
+ - Two or more independent Phase D deviations of the same shape across the implementation.
67
+
68
+ Use judgment. A few edge cases don't condemn an architecture. Some problems are legitimately complex. Complexity in the data is not complexity in the design.
69
+
70
+ When you scrap:
71
+
72
+ 1. Re-run the **how** skill over what's been built.
73
+ 2. Redesign as if the new constraints had been day-one assumptions, per redesign-from-first-principles.
74
+ 3. Subtract before adding, per the **subtract-before-you-add** principle skill. The new sketch should be smaller than the old one before it grows.
75
+ 4. Return to Phase B and re-run arena.
76
+
77
+ ## Outputs
78
+
79
+ The caller's usage is written first and the type sketch derived from it. One file with new types and signatures for small changes. Module map plus type definitions for larger work. The rationale ships alongside, shaped per `references/rationale-template.md`, including the usage sketch and the synthesis decision.
@@ -0,0 +1,57 @@
1
+ # Design red flags
2
+
3
+ Screen every candidate before synthesis. A red flag is a reason to revise or reject the shape.
4
+
5
+ ## Shallow module
6
+
7
+ A shallow module exposes a large interface while hiding little complexity. Judge depth by the capability and policy hidden behind the public surface relative to the size of that surface. Prefer a simple interface backed by substantial behavior.
8
+
9
+ Do not confuse a deep module with a deep call chain. A deep call chain scatters understanding across layers. A deep module concentrates capability behind one interface.
10
+
11
+ Look for these signs:
12
+
13
+ - Callers coordinate several methods to complete one operation.
14
+ - Public options expose internal stages or implementation choices.
15
+ - Learning the interface does not save the caller from learning the implementation.
16
+
17
+ ## Information leakage
18
+
19
+ Information leakage makes multiple modules depend on the same internal decision. A representation, policy, or protocol detail appears in more than one place, so changing it requires coordinated edits.
20
+
21
+ Public re-exports of transport or wire types are leakage. Parse external data into domain types behind the interface. Keep storage schemas, framework objects, and protocol details private.
22
+
23
+ ## Temporal decomposition
24
+
25
+ Temporal decomposition organizes modules by execution order instead of the knowledge they own. Separate load, validate, transform, and save stages often repeat one representation and its invariants across several boundaries.
26
+
27
+ Group code around domain knowledge and ownership. Methods that run at different times can still belong to one module when they protect the same decisions.
28
+
29
+ ## Pass-through method
30
+
31
+ A pass-through method forwards the same arguments to another method with the same shape. It adds a layer without hiding complexity.
32
+
33
+ Remove it or move responsibility to the module that can complete the operation. Keep a forwarding boundary only when it adds policy, adaptation, or a distinct abstraction.
34
+
35
+ ## Split ownership
36
+
37
+ More than one module writes the same state or keeps its own copy of it. An agent that edits one writer can't see the others, so their rules diverge.
38
+
39
+ Give each piece of state one owner. Other modules read it or ask the owner to change it.
40
+
41
+ ## Two ways to do one task
42
+
43
+ The design supports more than one way to do the same task. An agent copies whichever way it finds first, so every way keeps gaining callers.
44
+
45
+ Keep one way. Move callers off the others and delete them in the same change.
46
+
47
+ ## Importable internals
48
+
49
+ A caller can import a module's internals. An agent takes the shortest path that compiles, so it imports them directly and they become part of the interface.
50
+
51
+ Make internals unreachable from outside the module, so an import from outside fails the build.
52
+
53
+ ## Hand-synced list
54
+
55
+ Two or more places list the same items, and adding an item means editing every list. An agent that sees one list updates only that one.
56
+
57
+ Keep one list and derive the others from it. If a list can't be derived, make the build fail when the lists disagree.
@@ -0,0 +1,35 @@
1
+ # Rationale template
2
+
3
+ The prose that ships alongside the type sketch. One page. Sentence-case headings, no boilerplate. Replace the italic notes with actual content.
4
+
5
+ ## Problem
6
+
7
+ *One paragraph. What we're trying to do, and what about the existing system or constraints makes the shape non-obvious. If [Phase A](../SKILL.md#phase-a-ground-the-problem) surfaced constraints the design must honor (existing types to interop with, callers we can't break, invariants that crossed our boundary), name them here so the reader sees the same constraints you saw.*
8
+
9
+ ## Usage (caller's view)
10
+
11
+ *Write this first, before the type sketch. Show the README or quickstart the consumer reads, plus two or three realistic call sites in their own code. What they import, what they call, what comes back. The type sketch in [Shape](#shape) is derived from this. The two must agree. When they diverge, reconcile the sketch to the usage, not the reverse. The caller's experience is the spec. The types serve it.*
12
+
13
+ ## Shape
14
+
15
+ *The recommended architecture. Data structures first. Then how data flows through the signatures. Name the load-bearing decisions. State which invariants are encoded in types, where validation lives, and what the system deliberately does not do. Judge interface depth explicitly. State what complexity the public surface hides, what remains exposed to callers, and why the interface is no larger than needed. Cite the principle behind each decision (e.g., `per boundary-discipline`). Don't restate it.*
16
+
17
+ ## Synthesis decision
18
+
19
+ *Filled in by [arena](../../arena/SKILL.md). Records which candidate became the base and why, what was adapted from each of the others, and what was rejected and why.*
20
+
21
+ ## Tradeoffs accepted
22
+
23
+ *One bullet per tradeoff the chosen shape makes. Form: "we accept X in exchange for Y." Name anything a future reader might mistake for an oversight, including things that look like premature optimization or premature simplification.*
24
+
25
+ ## Alternatives considered
26
+
27
+ *Required. Name at least one concrete alternative shape, with one line on why it lost. Judge each alternative on interface depth, not implementation simplicity alone. Name the complexity it exposes to callers and the complexity it hides. Two or three alternatives belong here when the design space had real contenders. One is fine when the constraints forced the answer, with the conclusion phrased as "this was the only viable shape because..." Avoid listing flavors of the same shape. This section covers design alternatives the chosen shape considered and rejected, not other runner candidates.*
28
+
29
+ ## Open questions and risks
30
+
31
+ *Things you noticed during the sketch that the human needs to weigh in on, and risks worth flagging before implementation starts. Phrase as questions, not assertions, so the human's answer is the resolution rather than a comment.*
32
+
33
+ ## Next implementation step
34
+
35
+ *The first thing to build against the sketch. One sentence. What you'd start writing immediately after synthesis (or after Phase D sign-off, if a checkpoint was opted into).*
@@ -0,0 +1,20 @@
1
+ # Architect runner prompt
2
+
3
+ The orchestrator passes this file through to every parallel candidate runner during Phase B and fills in the variable inputs around it: the task, the Phase A grounding artifacts, the isolated working directory, and the path to write outputs. The working directory is a git worktree when available, otherwise a per-runner subdirectory under the sketch dir. What matters is independence between candidates.
4
+
5
+ You are producing one candidate design in architect's parallel exploration. Read the **architect** skill in full first. That's the workflow you're inside. Output a candidate design package: type sketch, function signatures, module map, and prose rationale shaped per [`rationale-template.md`](rationale-template.md).
6
+
7
+ Apply the following discipline. The orchestrator compares candidates on these axes to pick a base.
8
+
9
+ - Caller's usage first. Write the README-style usage and two or three real call sites before the types, then derive the type sketch from them. The usage is the spec. The two must agree, so reconcile the sketch to the usage, not the reverse.
10
+ - Data structures first. Get the core types right and the code becomes obvious. Trace each dominant access pattern through the proposed structure. If the answer is "we'll add a map / index / cache later," the structure is wrong.
11
+ - Interface depth. Compare the capability hidden behind the public surface relative to the size of that surface. Prefer a simple interface that pulls complexity into the callee, even when the implementation becomes less simple. Do not put transport or wire types on the public API. Parse into domain types behind the interface.
12
+ - Shared state: if two actors might both write, ask "what happens?" If the answer isn't "nothing," default to per-actor state with a merge at the read boundary, per the **separate-before-serializing-shared-state** principle skill.
13
+ - Make boundaries visible. `not implemented` errors for bodies, `// TODO` pseudocode for tricky logic, doc comments stating intent and invariants. A reader should trace data from input to output by reading types and signatures alone.
14
+ - Encode invariants in types: hard-to-misuse types > runtime checks > prose comments, per the **encode-lessons-in-structure** principle skill.
15
+ - Validate at boundaries, trust types inside, per the **boundary-discipline** principle skill. Business logic as pure functions. The shell stays thin.
16
+ - Single source of truth per invariant. Derive instead of sync.
17
+ - Idempotent state transitions where applicable, per the **make-operations-idempotent** principle skill. Ask what happens if the operation runs twice or crashes halfway.
18
+ - Short call chains. If tracing the flow needs more than three files, flatten the hierarchy, per the **laziness-protocol** and **minimize-reader-load** principle skills.
19
+
20
+ You are one of the parallel runners, each on a different model. Produce the best design your model can make. Don't hedge against the others. Differences between candidates are the signal used to pick a base and graft. Converging on a safe-looking middle defeats the exploration.
@@ -0,0 +1,48 @@
1
+ ---
2
+ name: arena
3
+ description: "Spawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Arena
8
+
9
+ Open a todolist with one entry per phase (Frame, Fan out, Cross-judge, Pick, Graft, Verify) before launching anything.
10
+
11
+ ## Phase A: Frame
12
+
13
+ Every candidate gets the same prompt, so the prompt is the contract.
14
+
15
+ 1. State the artifact each candidate is producing.
16
+ 2. Derive the rubric, 3-6 concrete gradeable criteria for what success looks like on *this* task. It is the picker's tool in Phase D. Candidates only see the task.
17
+ 3. Pick the runners. Use the `arena runners` line in `~/.cursor/rules/pstack-models.mdc`. If the rule or that line is missing, default to one each on `claude-opus-5-5-xhigh` and `grok-4.7-xhigh-fast`. An `auto` or `inherit-parent` entry in this line means the parent model, so omit `model` for it. If the Task tool rejects a configured entry, run that seat on its family's default and say so. Families go by prefix: `claude-*`, and `grok-*` with `cursor-grok-*` and `composer-*`. A refused `composer-*` entry runs on `grok-4.7-xhigh-fast`. If the family has no default, or the Task tool rejects that default, use the closest valid slug of the same family from its error message, or drop the seat and say so when there is none. If dropped seats leave fewer than two runners, add runners until there are two, or one when the line has one entry. Run each added runner on a remaining runner's model, or omit `model` so it runs on the parent model when none remain, and say so. Spawn more runners when the arena covers multiple design directions. Use the same model N times when the work is generation-bound rather than judgment-sensitive. Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the **poteto-mode** skill.
18
+ 4. Give each candidate its own output location (a git worktree where possible, otherwise `/tmp/arena-<slug>/candidate-<n>/`), per the **separate-before-serializing-shared-state** principle skill.
19
+
20
+ ## Phase B: Fan out
21
+
22
+ Spawn all N subagents in one message with `run_in_background: true`, each with the task, the path to the shared grounding, its own output path, and instructions to produce the artifact and a short rationale naming the alternatives it considered and what it rejected.
23
+
24
+ If a candidate produces no output, proceed with N-1 and note the dropout.
25
+
26
+ ## Phase C: Cross-judge
27
+
28
+ After all Phase B candidates complete, choose one model from the `arena cross-judge pool` line in `~/.cursor/rules/pstack-models.mdc`. If the rule or that line is missing, choose from `claude-opus-5-5-xhigh` and `grok-4.7-xhigh-fast`. Spawn one readonly judge subagent. The judge is never from the parent's family, as Phase A step 3 defines families. Try only the entries from another family, in pool order. An `auto` or `inherit-parent` entry is the parent model, so it never judges. With the default pool, a Claude parent gets `grok-4.7-xhigh-fast`. A parent from any other family gets `claude-opus-5-5-xhigh` first. If the Task tool rejects an entry, use a valid slug of the same model at the closest level or speed from the error message, or move to the next entry when there is none. If no entry from another family runs, try the default pool's entries from another family the same way. If none of those runs, skip the judge, pick the base alone in Phase D, and say so. If you do not know the parent's model, try the pool's real slugs in pool order and say that the family check did not run. The judge sees the rubric and the candidates by path label, scores each criterion, and recommends a base with rationale. It runs in parallel with your reading in Phase D. Don't spawn it while candidates are still writing.
29
+
30
+ ## Phase D: Pick a base
31
+
32
+ Read every candidate end to end before picking. Score each against the rubric criterion by criterion, not on holistic feel, and compare with the cross-judge when Phase C ran one. Agreement on the base confirms the pick. Disagreement means one of you is biased or the rubric was ambiguous. Read both rationales before deciding.
33
+
34
+ Pick the base a future maintainer can extend most easily without breaking invariants. When two feel tied, prefer the cleaner boundary or smaller API, per the Laziness Protocol.
35
+
36
+ ## Phase E: Graft
37
+
38
+ Walk each losing candidate once more for what is worth porting into the base, usually one or two things per candidate, not most of it. Fold each graft in by hand, per the **redesign-from-first-principles** principle skill, so the result stays coherent under one mental model. Don't paste mechanically.
39
+
40
+ If the candidates converge on one shape, that is strong agreement. Note it and ship the consensus shape. No graft is needed. If they wildly diverge, Phase A was under-specified. Reframe and re-run rather than averaging the divergence.
41
+
42
+ ## Phase F: Verify
43
+
44
+ Verify the synthesized artifact like any other output, per the **prove-it-works** principle skill. If verification finds a problem the arena missed, either Phase A was wrong (re-frame and re-run) or a candidate caught it and you missed the graft (go back to Phase E). Don't paper over it.
45
+
46
+ ## Outputs
47
+
48
+ One synthesized artifact, with a short synthesis note alongside naming the base and why, the cross-judge's verdict or that Phase C skipped the judge, each graft with its source candidate, what was rejected and why, any convergence or dropouts, and the verification result.
@@ -0,0 +1,104 @@
1
+ ---
2
+ name: automate-me
3
+ description: "Use for \"automate me\", \"create/update/refresh my -mode skill\", \"turn/capture my preferences or working style into a skill\", or wanting agents to follow how the user works. Drafts or revises a personal -mode skill via create-skill + unslop, optionally pulling fresh evidence from recent transcripts."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Automate me
8
+
9
+ A guided flow for turning the user's working conventions into a skill agents will follow. The output is one `-mode` skill tailored to them (e.g. `jay-mode`, `priya-mode`).
10
+
11
+ This skill orchestrates three others: an inline mining pass (see step 1), Cursor's built-in `create-skill` (authoring), and the **unslop** skill (prose discipline). It sequences them. It doesn't replace them.
12
+
13
+ ## Flow
14
+
15
+ ### 0. Check for an existing skill
16
+
17
+ Look recursively for `.cursor/skills/**/*-mode/SKILL.md` and `~/.cursor/skills/*-mode/SKILL.md` matching the user's handle. Mode skills can live in a personal category directory (`.cursor/skills/<handle>/`), not only at the top level. If one exists, confirm intent with `AskQuestion` (unless they already said "update my skill" or similar):
18
+
19
+ - Update the existing skill (default for repeat runs)
20
+ - Start fresh (rare, ask why before doing it)
21
+
22
+ Update mode changes the rest of the flow:
23
+ - Step 1 mines only history since the skill was last edited (`git log -1 --format=%cI <path>`).
24
+ - Step 2 asks what's changed or missing, not what to capture from zero.
25
+ - Step 4 edits the existing file in place. Preserve sections the user hasn't contradicted. Revise ones with new evidence. Add new sections only for genuinely new rules.
26
+
27
+ ### 1. Mine their history
28
+
29
+ Locate the active workspace's transcripts before fanning out. The system prompt names the workspace's `agent-transcripts/` directory. Use only that path. Don't glob across `~/.cursor/projects/*/`. That crosses workspace boundaries and reads private chats from unrelated projects.
30
+
31
+ Survey recent agent conversations within that scope for recurring patterns. Run multiple parallel subagents across slices of history (e.g. last 2-4 weeks, split into 3 slices so each has enough material). Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the **poteto-mode** skill. Each slice mining subagent reads transcripts from the workspace-scoped path the parent provides, looks for the signals below, and returns a short structured list of patterns it saw with evidence pointers. Default signals worth hunting:
32
+
33
+ - Response preferences (length, tone, format, "dumb it down" corrections)
34
+ - Delegation habits (subagents, models, specialized workflows, parallelism)
35
+ - Verification posture (what "done" means, unit tests vs live repro, reviewers)
36
+ - Code and prose discipline (style, principles cited, lint/format tools)
37
+ - Process conventions (worktrees, commits, PRs, review/merge tooling)
38
+ - Meta preferences (fixing skills mid-task, proposing new ones)
39
+
40
+ Cross-check across slices before elevating a signal. Patterns seen in 2+ slices are high-confidence. Lone signals are weak and usually get dropped.
41
+
42
+ ### 2. Ask the user directly
43
+
44
+ Mining misses intent that hasn't come up yet. Use the `AskQuestion` tool (structured multi-choice) rather than asking the user to type from scratch.
45
+
46
+ Shape: one or two questions with 4-6 options each, `allow_multiple: true` for category questions. Start broad ("Which areas matter most?"), then follow up on selected areas with specific options. After the structured rounds, one free-form chat question catches anything the options missed.
47
+
48
+ Don't dump 20 questions.
49
+
50
+ ### 3. Cluster findings
51
+
52
+ Group the combined signals into sections. Common ones (use only what applies):
53
+
54
+ - **Response style**: length, tone, format.
55
+ - **Autonomy**: how much to do without asking, MCP tool use.
56
+ - **Understand first**: which skills to reach for when scoping or investigating a change.
57
+ - **Subagents**: default, parallelism, model-to-task, specialized workflows.
58
+ - **Prose / code discipline**: principles, lint tools, style guides.
59
+ - **Review and verify**: repro posture, verification skills, live-testing tools.
60
+ - **Process**: git worktrees, commits, PRs, review/merge tooling.
61
+ - **Skills**: skill-authoring habits, fix-the-skill-first, proposing new skills.
62
+
63
+ The **poteto-mode** skill shows the shape. Read it for granularity. Don't copy its content. The user's rules are not the same as poteto-mode's.
64
+
65
+ ### 4. Draft the skill
66
+
67
+ Use Cursor's built-in `create-skill` skill to author the skill. Placement:
68
+
69
+ - Path: preserve an existing mode skill's category. For a new mode, use `.cursor/skills/<handle>/<handle>-mode/SKILL.md` when the repo has an established personal category for that handle. Otherwise default to `.cursor/skills/<handle>-mode/SKILL.md` in the project (or `~/.cursor/skills/<handle>-mode/` if the user prefers a personal skill).
70
+ - Handle: the user's first name or chosen identifier.
71
+ - Frontmatter `description`: trigger on their name + `/<handle>-mode` + "work in their style", not on generic keywords like "write code" or "review PR".
72
+ - Frontmatter formatting: follow `create-skill`'s YAML rules. Keep `description` as one YAML scalar. Quote it or use `description: >-` with indented continuation lines when punctuation or wrapping requires it.
73
+ - Frontmatter `disable-model-invocation: true` by default. Opt out only if the user explicitly wants their mode to apply on every turn.
74
+
75
+ ### 5. Iterate on prose
76
+
77
+ Apply the **unslop** skill and `create-skill`'s writing guidelines to every line.
78
+
79
+ Show the draft to the user and take feedback. Expect multiple iterations. Cut ruthlessly. A mode skill is not a manual.
80
+
81
+ ### 6. Land it
82
+
83
+ Work in a worktree off main. Commit and open a PR. Don't push to main directly.
84
+
85
+ ## Guardrails
86
+
87
+ - **Don't overfit to one conversation.** A preference stated once and contradicted another time is noise. Require multiple instances before codifying it.
88
+ - **Don't be clever.** Restating other skills' contents, inventing metaphors, or writing "poetic" prose for an agent reader is cost without benefit. Keep it operational.
89
+ - **Reference, don't inline.** Other skills the user relies on should appear as path references, not pasted excerpts. Same for any principle docs they maintain elsewhere.
90
+ - **Keep sections minimal.** Only add a section if the user has a specific, non-default rule there. "Communicate clearly" is not a section. "Short paragraphs. Tables when comparing options. Bullets only when items are genuinely parallel." is.
91
+ - **Name conventions generic.** Use "the user" or "the human" in imperatives, not the author's first name.
92
+ - **Don't force symmetry.** If a user has no process rules worth writing down, skip the Process section entirely.
93
+
94
+ ## Evaluation
95
+
96
+ A `-mode` skill is subjective output. A `create-skill`-style test/iterate benchmark loop isn't useful here. Vibe-check with the user: does it read like them? Did it miss anything? Then ship.
97
+
98
+ Run a description-optimization loop only if the skill's trigger accuracy turns out to be a problem in practice.
99
+
100
+ ## When not to use
101
+
102
+ - User wants a task-specific skill (not working conventions): `create-skill` alone, no mining required.
103
+ - User wants to capture one narrow workflow (e.g. "how I write commit messages"). That's a regular skill, not a mode skill.
104
+