pi-pstack-workflow-kit 0.0.0-stage → 0.1.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 (138) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +122 -2
  3. package/agents/ci-watcher.md +1 -0
  4. package/agents/comment-sicko.md +1 -0
  5. package/agents/poteto-agent.md +1 -0
  6. package/agents/quality-agent.md +1 -0
  7. package/agents/worker.md +3 -0
  8. package/extensions/catalog-ui.ts +86 -0
  9. package/extensions/delegate.ts +357 -0
  10. package/extensions/forge.ts +245 -0
  11. package/extensions/git.ts +23 -0
  12. package/extensions/index.ts +25 -0
  13. package/extensions/models.ts +115 -0
  14. package/extensions/parent-diff.ts +63 -0
  15. package/extensions/plan.ts +181 -0
  16. package/extensions/records.ts +81 -0
  17. package/extensions/session.ts +124 -0
  18. package/extensions/support.ts +46 -0
  19. package/extensions/worktrees.ts +188 -0
  20. package/lib/catalog-data.json +560 -0
  21. package/lib/catalog.ts +111 -0
  22. package/lib/jobs.ts +5 -0
  23. package/lib/models.ts +124 -0
  24. package/lib/pool.ts +29 -0
  25. package/lib/state.ts +127 -0
  26. package/lib/transcript.ts +44 -0
  27. package/lib/validation.ts +16 -0
  28. package/package.json +68 -4
  29. package/reference/GAPS.md +21 -0
  30. package/reference/PARITY.md +169 -0
  31. package/reference/benny/config.example.json +12 -0
  32. package/reference/benny/repro.md +3 -0
  33. package/reference/benny/setup.md +3 -0
  34. package/reference/benny/triage.md +3 -0
  35. package/reference/parity.json +3095 -0
  36. package/reference/rules/no-inline-imports.md +3 -0
  37. package/reference/rules/typescript-exhaustive-switch.md +3 -0
  38. package/reference/source-map.json +8594 -0
  39. package/scripts/job-input.ts +191 -0
  40. package/scripts/run-job.mjs +119 -0
  41. package/skills/architect/SKILL.md +16 -0
  42. package/skills/arena/SKILL.md +16 -0
  43. package/skills/automate-me/SKILL.md +10 -0
  44. package/skills/benchmark-checklist/SKILL.md +10 -0
  45. package/skills/blast-radius/SKILL.md +10 -0
  46. package/skills/bro/SKILL.md +10 -0
  47. package/skills/check-compiler-errors/SKILL.md +10 -0
  48. package/skills/control-cli/SKILL.md +10 -0
  49. package/skills/control-ui/SKILL.md +10 -0
  50. package/skills/correct/SKILL.md +10 -0
  51. package/skills/create-formal-verification-skill/SKILL.md +16 -0
  52. package/skills/create-verification-skill/SKILL.md +16 -0
  53. package/skills/deslop/SKILL.md +10 -0
  54. package/skills/figure-it-out/SKILL.md +17 -0
  55. package/skills/fix-ci/SKILL.md +10 -0
  56. package/skills/fix-merge-conflicts/SKILL.md +10 -0
  57. package/skills/get-pr-comments/SKILL.md +10 -0
  58. package/skills/how/SKILL.md +10 -0
  59. package/skills/in-your-own-words/SKILL.md +11 -0
  60. package/skills/interrogate/SKILL.md +17 -0
  61. package/skills/ketchup/SKILL.md +10 -0
  62. package/skills/ketchup-video/SKILL.md +10 -0
  63. package/skills/loop-on-ci/SKILL.md +10 -0
  64. package/skills/maintain-formal-verification-skill/SKILL.md +16 -0
  65. package/skills/maintain-verification-skill/SKILL.md +16 -0
  66. package/skills/make-bot-ui/SKILL.md +10 -0
  67. package/skills/make-pr-easy-to-review/SKILL.md +10 -0
  68. package/skills/new-branch-and-pr/SKILL.md +10 -0
  69. package/skills/no-comments/SKILL.md +16 -0
  70. package/skills/poteto-help/SKILL.md +11 -0
  71. package/skills/poteto-mode/SKILL.md +60 -0
  72. package/skills/poteto-mode/playbooks/authoring-a-skill.md +20 -0
  73. package/skills/poteto-mode/playbooks/autonomous-run.md +20 -0
  74. package/skills/poteto-mode/playbooks/autopilot-full.md +25 -0
  75. package/skills/poteto-mode/playbooks/autopilot-stack.md +20 -0
  76. package/skills/poteto-mode/playbooks/babysit.md +21 -0
  77. package/skills/poteto-mode/playbooks/bug-fix.md +26 -0
  78. package/skills/poteto-mode/playbooks/eval.md +20 -0
  79. package/skills/poteto-mode/playbooks/feature.md +26 -0
  80. package/skills/poteto-mode/playbooks/hillclimb.md +24 -0
  81. package/skills/poteto-mode/playbooks/investigation.md +19 -0
  82. package/skills/poteto-mode/playbooks/multi-phase-plan.md +19 -0
  83. package/skills/poteto-mode/playbooks/opening-a-pr.md +20 -0
  84. package/skills/poteto-mode/playbooks/pause-safely.md +18 -0
  85. package/skills/poteto-mode/playbooks/perf-issue.md +24 -0
  86. package/skills/poteto-mode/playbooks/prototype.md +21 -0
  87. package/skills/poteto-mode/playbooks/refactoring.md +23 -0
  88. package/skills/poteto-mode/playbooks/runtime-forensics.md +20 -0
  89. package/skills/poteto-mode/playbooks/session-pickup.md +20 -0
  90. package/skills/poteto-mode/playbooks/shipping.md +24 -0
  91. package/skills/poteto-mode/playbooks/trace-forensics.md +20 -0
  92. package/skills/poteto-mode/playbooks/visual-parity.md +22 -0
  93. package/skills/poteto-mode/playbooks/worktree-cleanup.md +19 -0
  94. package/skills/pr-review-canvas/SKILL.md +10 -0
  95. package/skills/principle-attack-the-premise/SKILL.md +12 -0
  96. package/skills/principle-boundary-discipline/SKILL.md +12 -0
  97. package/skills/principle-build-the-lever/SKILL.md +12 -0
  98. package/skills/principle-encode-lessons-in-structure/SKILL.md +12 -0
  99. package/skills/principle-exhaust-the-design-space/SKILL.md +12 -0
  100. package/skills/principle-experience-first/SKILL.md +12 -0
  101. package/skills/principle-explain-the-number/SKILL.md +12 -0
  102. package/skills/principle-fix-root-causes/SKILL.md +12 -0
  103. package/skills/principle-foundational-thinking/SKILL.md +12 -0
  104. package/skills/principle-guard-the-context-window/SKILL.md +12 -0
  105. package/skills/principle-laziness-protocol/SKILL.md +12 -0
  106. package/skills/principle-make-operations-idempotent/SKILL.md +12 -0
  107. package/skills/principle-migrate-callers-then-delete-legacy-apis/SKILL.md +12 -0
  108. package/skills/principle-minimize-reader-load/SKILL.md +12 -0
  109. package/skills/principle-model-the-domain/SKILL.md +12 -0
  110. package/skills/principle-never-block-on-the-human/SKILL.md +12 -0
  111. package/skills/principle-outcome-oriented-execution/SKILL.md +12 -0
  112. package/skills/principle-prove-it-works/SKILL.md +12 -0
  113. package/skills/principle-redesign-from-first-principles/SKILL.md +12 -0
  114. package/skills/principle-separate-before-serializing-shared-state/SKILL.md +12 -0
  115. package/skills/principle-sequence-verifiable-units/SKILL.md +12 -0
  116. package/skills/principle-subtract-before-you-add/SKILL.md +12 -0
  117. package/skills/principle-test-behavior-not-implementation/SKILL.md +12 -0
  118. package/skills/principle-type-system-discipline/SKILL.md +12 -0
  119. package/skills/recall/SKILL.md +10 -0
  120. package/skills/reflect/SKILL.md +10 -0
  121. package/skills/review-and-ship/SKILL.md +10 -0
  122. package/skills/run-smoke-tests/SKILL.md +10 -0
  123. package/skills/setup-pstack/SKILL.md +17 -0
  124. package/skills/sharpen/SKILL.md +11 -0
  125. package/skills/show-me-your-work/SKILL.md +16 -0
  126. package/skills/statechart/SKILL.md +10 -0
  127. package/skills/swarm/SKILL.md +16 -0
  128. package/skills/tdd/SKILL.md +10 -0
  129. package/skills/teach/SKILL.md +17 -0
  130. package/skills/technical-writing/SKILL.md +10 -0
  131. package/skills/thermo-nuclear-code-quality-review/SKILL.md +10 -0
  132. package/skills/typescript-best-practices/SKILL.md +10 -0
  133. package/skills/unslop/SKILL.md +10 -0
  134. package/skills/verify-this/SKILL.md +17 -0
  135. package/skills/weekly-review/SKILL.md +10 -0
  136. package/skills/what-did-i-get-done/SKILL.md +10 -0
  137. package/skills/why/SKILL.md +10 -0
  138. package/skills/workflow-from-chats/SKILL.md +10 -0
@@ -0,0 +1,560 @@
1
+ {
2
+ "generatedBy": "scripts/generate.py",
3
+ "paths": {
4
+ "agent-poteto": "agents/poteto-agent.md",
5
+ "agent-comment": "agents/comment-sicko.md",
6
+ "kit-ci-watcher": "agents/ci-watcher.md",
7
+ "kit-quality-agent": "agents/quality-agent.md",
8
+ "kit-exhaustive-switch": "reference/rules/typescript-exhaustive-switch.md",
9
+ "kit-no-inline-imports": "reference/rules/no-inline-imports.md",
10
+ "worker": "agents/worker.md",
11
+ "benny-setup": "reference/benny/setup.md",
12
+ "benny-triage": "reference/benny/triage.md",
13
+ "benny-repro": "reference/benny/repro.md",
14
+ "setup-pstack": "skills/setup-pstack/SKILL.md",
15
+ "poteto-mode": "skills/poteto-mode/SKILL.md",
16
+ "poteto-help": "skills/poteto-help/SKILL.md",
17
+ "in-your-own-words": "skills/in-your-own-words/SKILL.md",
18
+ "sharpen": "skills/sharpen/SKILL.md",
19
+ "how": "skills/how/SKILL.md",
20
+ "why": "skills/why/SKILL.md",
21
+ "teach": "skills/teach/SKILL.md",
22
+ "recall": "skills/recall/SKILL.md",
23
+ "ketchup": "skills/ketchup/SKILL.md",
24
+ "ketchup-video": "skills/ketchup-video/SKILL.md",
25
+ "architect": "skills/architect/SKILL.md",
26
+ "arena": "skills/arena/SKILL.md",
27
+ "swarm": "skills/swarm/SKILL.md",
28
+ "interrogate": "skills/interrogate/SKILL.md",
29
+ "blast-radius": "skills/blast-radius/SKILL.md",
30
+ "tdd": "skills/tdd/SKILL.md",
31
+ "benchmark-checklist": "skills/benchmark-checklist/SKILL.md",
32
+ "no-comments": "skills/no-comments/SKILL.md",
33
+ "typescript-best-practices": "skills/typescript-best-practices/SKILL.md",
34
+ "figure-it-out": "skills/figure-it-out/SKILL.md",
35
+ "show-me-your-work": "skills/show-me-your-work/SKILL.md",
36
+ "create-verification-skill": "skills/create-verification-skill/SKILL.md",
37
+ "maintain-verification-skill": "skills/maintain-verification-skill/SKILL.md",
38
+ "create-formal-verification-skill": "skills/create-formal-verification-skill/SKILL.md",
39
+ "maintain-formal-verification-skill": "skills/maintain-formal-verification-skill/SKILL.md",
40
+ "statechart": "skills/statechart/SKILL.md",
41
+ "reflect": "skills/reflect/SKILL.md",
42
+ "correct": "skills/correct/SKILL.md",
43
+ "automate-me": "skills/automate-me/SKILL.md",
44
+ "make-bot-ui": "skills/make-bot-ui/SKILL.md",
45
+ "unslop": "skills/unslop/SKILL.md",
46
+ "bro": "skills/bro/SKILL.md",
47
+ "technical-writing": "skills/technical-writing/SKILL.md",
48
+ "principle-laziness-protocol": "skills/principle-laziness-protocol/SKILL.md",
49
+ "principle-foundational-thinking": "skills/principle-foundational-thinking/SKILL.md",
50
+ "principle-redesign-from-first-principles": "skills/principle-redesign-from-first-principles/SKILL.md",
51
+ "principle-attack-the-premise": "skills/principle-attack-the-premise/SKILL.md",
52
+ "principle-subtract-before-you-add": "skills/principle-subtract-before-you-add/SKILL.md",
53
+ "principle-minimize-reader-load": "skills/principle-minimize-reader-load/SKILL.md",
54
+ "principle-outcome-oriented-execution": "skills/principle-outcome-oriented-execution/SKILL.md",
55
+ "principle-experience-first": "skills/principle-experience-first/SKILL.md",
56
+ "principle-exhaust-the-design-space": "skills/principle-exhaust-the-design-space/SKILL.md",
57
+ "principle-build-the-lever": "skills/principle-build-the-lever/SKILL.md",
58
+ "principle-model-the-domain": "skills/principle-model-the-domain/SKILL.md",
59
+ "principle-boundary-discipline": "skills/principle-boundary-discipline/SKILL.md",
60
+ "principle-type-system-discipline": "skills/principle-type-system-discipline/SKILL.md",
61
+ "principle-make-operations-idempotent": "skills/principle-make-operations-idempotent/SKILL.md",
62
+ "principle-migrate-callers-then-delete-legacy-apis": "skills/principle-migrate-callers-then-delete-legacy-apis/SKILL.md",
63
+ "principle-separate-before-serializing-shared-state": "skills/principle-separate-before-serializing-shared-state/SKILL.md",
64
+ "principle-prove-it-works": "skills/principle-prove-it-works/SKILL.md",
65
+ "principle-fix-root-causes": "skills/principle-fix-root-causes/SKILL.md",
66
+ "principle-sequence-verifiable-units": "skills/principle-sequence-verifiable-units/SKILL.md",
67
+ "principle-test-behavior-not-implementation": "skills/principle-test-behavior-not-implementation/SKILL.md",
68
+ "principle-explain-the-number": "skills/principle-explain-the-number/SKILL.md",
69
+ "principle-guard-the-context-window": "skills/principle-guard-the-context-window/SKILL.md",
70
+ "principle-never-block-on-the-human": "skills/principle-never-block-on-the-human/SKILL.md",
71
+ "principle-encode-lessons-in-structure": "skills/principle-encode-lessons-in-structure/SKILL.md",
72
+ "kit-control-ui": "skills/control-ui/SKILL.md",
73
+ "kit-control-cli": "skills/control-cli/SKILL.md",
74
+ "kit-deslop": "skills/deslop/SKILL.md",
75
+ "kit-verify-this": "skills/verify-this/SKILL.md",
76
+ "kit-loop-on-ci": "skills/loop-on-ci/SKILL.md",
77
+ "kit-fix-ci": "skills/fix-ci/SKILL.md",
78
+ "kit-review-and-ship": "skills/review-and-ship/SKILL.md",
79
+ "kit-pr-review-canvas": "skills/pr-review-canvas/SKILL.md",
80
+ "kit-make-pr-easy-to-review": "skills/make-pr-easy-to-review/SKILL.md",
81
+ "kit-run-smoke-tests": "skills/run-smoke-tests/SKILL.md",
82
+ "kit-new-branch-and-pr": "skills/new-branch-and-pr/SKILL.md",
83
+ "kit-get-pr-comments": "skills/get-pr-comments/SKILL.md",
84
+ "kit-check-compiler-errors": "skills/check-compiler-errors/SKILL.md",
85
+ "kit-what-did-i-get-done": "skills/what-did-i-get-done/SKILL.md",
86
+ "kit-weekly-review": "skills/weekly-review/SKILL.md",
87
+ "kit-fix-merge-conflicts": "skills/fix-merge-conflicts/SKILL.md",
88
+ "kit-workflow-from-chats": "skills/workflow-from-chats/SKILL.md",
89
+ "kit-thermo-nuclear-code-quality-review": "skills/thermo-nuclear-code-quality-review/SKILL.md",
90
+ "pb-investigation": "skills/poteto-mode/playbooks/investigation.md",
91
+ "pb-bug-fix": "skills/poteto-mode/playbooks/bug-fix.md",
92
+ "pb-perf-issue": "skills/poteto-mode/playbooks/perf-issue.md",
93
+ "pb-hillclimb": "skills/poteto-mode/playbooks/hillclimb.md",
94
+ "pb-runtime-forensics": "skills/poteto-mode/playbooks/runtime-forensics.md",
95
+ "pb-trace-forensics": "skills/poteto-mode/playbooks/trace-forensics.md",
96
+ "pb-feature": "skills/poteto-mode/playbooks/feature.md",
97
+ "pb-refactoring": "skills/poteto-mode/playbooks/refactoring.md",
98
+ "pb-prototype": "skills/poteto-mode/playbooks/prototype.md",
99
+ "pb-visual-parity": "skills/poteto-mode/playbooks/visual-parity.md",
100
+ "pb-authoring-a-skill": "skills/poteto-mode/playbooks/authoring-a-skill.md",
101
+ "pb-eval": "skills/poteto-mode/playbooks/eval.md",
102
+ "pb-babysit": "skills/poteto-mode/playbooks/babysit.md",
103
+ "pb-shipping": "skills/poteto-mode/playbooks/shipping.md",
104
+ "pb-autonomous-run": "skills/poteto-mode/playbooks/autonomous-run.md",
105
+ "pb-autopilot-full": "skills/poteto-mode/playbooks/autopilot-full.md",
106
+ "pb-autopilot-stack": "skills/poteto-mode/playbooks/autopilot-stack.md",
107
+ "pb-session-pickup": "skills/poteto-mode/playbooks/session-pickup.md",
108
+ "pb-pause-safely": "skills/poteto-mode/playbooks/pause-safely.md",
109
+ "pb-multi-phase-plan": "skills/poteto-mode/playbooks/multi-phase-plan.md",
110
+ "pb-worktree-cleanup": "skills/poteto-mode/playbooks/worktree-cleanup.md",
111
+ "pb-opening-a-pr": "skills/poteto-mode/playbooks/opening-a-pr.md"
112
+ },
113
+ "steps": {
114
+ "investigation": [
115
+ "Restate the question and set a read-only scope.",
116
+ "Trace actual callers, state, and control flow.",
117
+ "Use why for historical motivation when relevant.",
118
+ "Report facts, uncertainty, and evidence; apply unslop."
119
+ ],
120
+ "bug-fix": [
121
+ "Restate expected and actual behavior; reproduce the original failure on the real UI, CLI, or other matching surface.",
122
+ "Trace to the earliest invalid state; use why to establish constraints.",
123
+ "Read architect if the boundary changes; select the smallest root-cause fix.",
124
+ "Use tdd if a cheap behavioral red test exists; delegate scoped implementation with the reproduction.",
125
+ "Run the original reproduction and relevant regression checks; inspect worker diff.",
126
+ "Use no-comments and deslop before the applicable ready PR flow."
127
+ ],
128
+ "perf-issue": [
129
+ "Define the workload, metric, and threshold; capture a representative baseline on the matching surface.",
130
+ "Use benchmark-checklist; locate the actual limiter and record the baseline.",
131
+ "Trace the source; use architect if changing boundaries; delegate a focused fix.",
132
+ "Capture treatment using identical conditions; repeat runs and check behavior.",
133
+ "Compare results, explain the number, and prepare a ready PR when authorized."
134
+ ],
135
+ "hillclimb": [
136
+ "Fix the workload, metric, target, and behavior constraints.",
137
+ "Build and freeze a sensitive benchmark; validate using benchmark-checklist.",
138
+ "Start a decision TSV; record one hypothesis at a time.",
139
+ "Implement and measure each isolated experiment; discard regressions and noisy wins.",
140
+ "Repeat accepted measurements and run end-to-end checks; stop at target or evidence-backed dead end.",
141
+ "Prepare a ready PR when authorized."
142
+ ],
143
+ "runtime-forensics": [
144
+ "Set read-only scope; select the real UI or CLI control method.",
145
+ "Capture profile, heap snapshot, or trace with a repeatable scenario.",
146
+ "Reduce large captures using read-only delegates and identify the first causal mechanism.",
147
+ "Prove the mechanism and link the source; report evidence without changing code."
148
+ ],
149
+ "trace-forensics": [
150
+ "Identify artifact format, time range, workload and question.",
151
+ "Parse the artifact into a queryable structure; delegate bulk reads if needed.",
152
+ "Narrow and attribute findings to actual source; compare paired captures if available.",
153
+ "Report evidence and uncertainty; only route to bug-fix or perf-issue if the user requests a fix."
154
+ ],
155
+ "feature": [
156
+ "Restate new behavior and acceptance predicate; trace the existing subsystem.",
157
+ "Use architect for caller-facing shape; model domain state before writing logic.",
158
+ "Record implementation and verification checkpoints; delegate a scoped change.",
159
+ "Verify on the real UI, CLI, or other matching surface.",
160
+ "Inspect diff and order verified commits; interrogate a contested design.",
161
+ "Apply no-comments and deslop, then prepare a ready PR when authorized."
162
+ ],
163
+ "refactoring": [
164
+ "Pin the observable behavior and test it before editing.",
165
+ "Name the target structure with architect where needed; model domain and subtract dead weight.",
166
+ "Move callers in individually verified slices, without unnecessary compatibility wrappers.",
167
+ "Prove behavioral equivalence, lower reader load, and inspect the final diff.",
168
+ "Prepare a ready PR when authorized."
169
+ ],
170
+ "prototype": [
171
+ "Name the decision, competing hypotheses, and evaluation criteria.",
172
+ "Build isolated lightweight alternatives; avoid production commitments.",
173
+ "Exercise each on the matching real surface and capture comparable evidence.",
174
+ "Report tradeoffs and select or recommend a direction; hand the chosen design to feature only with applicable scope."
175
+ ],
176
+ "visual-parity": [
177
+ "Capture baseline under fixed conditions and preserve the verification setup.",
178
+ "Partition independent components into isolated worker scopes.",
179
+ "Capture treatment and compare pixels on the real surface; retain diff images and settings.",
180
+ "Repeat with bounded loop until exact match or evidence-backed blocker; avoid overwriting baseline.",
181
+ "Prepare a ready PR when authorized."
182
+ ],
183
+ "authoring-a-skill": [
184
+ "Inspect existing Pi SKILL.md and its callers; decide whether a skill is appropriate.",
185
+ "Write or edit valid Agent Skills frontmatter and relative supporting references.",
186
+ "Check name, description, paths, cross-skill references, and structural cases.",
187
+ "Load the skill in fresh Pi and test representative positive and negative prompts.",
188
+ "Prepare a ready PR when authorized."
189
+ ],
190
+ "eval": [
191
+ "Write a judge-only rubric and outcome definition.",
192
+ "Sanitize candidate environments and remove identifying labels.",
193
+ "Run each candidate with the same organic prompt and independent Pi sessions.",
194
+ "Give the blinded judge actual outputs/transcripts, not summaries; verify transcript reads.",
195
+ "Inspect every output and report method, scores and failure cases."
196
+ ],
197
+ "babysit": [
198
+ "Identify forge, PR number, current head and merge base.",
199
+ "Read current PR checks, conflicts and review comments.",
200
+ "Investigate failures; reproduce each bot finding before fixing or dismissing.",
201
+ "Run checks again after each patch; never equate old-head green with current green.",
202
+ "Report merge readiness and blockers; do not merge."
203
+ ],
204
+ "shipping": [
205
+ "Require explicit authorization for the ordered PR stack; identify forge and target heads.",
206
+ "Independently verify each patch on its actual behavior; record head identity and evidence.",
207
+ "Compute contiguous verified prefix; stop at first missing, stale or failed proof.",
208
+ "Check fresh CI and current head before each authorized merge; land bottom-up.",
209
+ "Stop at ceiling or any changed head, failed check, conflict or missing permission; report actual merge results."
210
+ ],
211
+ "autonomous-run": [
212
+ "Write a checkable completion predicate, constraints, and stop conditions.",
213
+ "Record baseline and choose bounded wake cadence.",
214
+ "Make small evidence-backed changes, one hypothesis at a time.",
215
+ "Verify each iteration and record decisions; recheck actual predicate.",
216
+ "Stop the loop at verified completion or a real dead end; report evidence and resume state."
217
+ ],
218
+ "autopilot-full": [
219
+ "Require explicit queue scope and merge authorization; identify independent PRs and dependencies.",
220
+ "Assign one isolated owner per PR off trunk; keep verified checkpoints.",
221
+ "Run deslop and no-comments before code-ready; obtain independent verification.",
222
+ "Audit current-head CI and exact patch identity; use shipping policy for authorized merges only.",
223
+ "Use bounded loop to reconcile state, stop at blockers and report actual merges."
224
+ ],
225
+ "autopilot-stack": [
226
+ "Identify operator-owned landing and explicitly prohibit merges.",
227
+ "Use autopilot-full ownership and independent verification policy; stack only true dependencies.",
228
+ "Rebase or update dependent patches and repeat affected checks after each head change.",
229
+ "Stop when all requested PRs have fresh verification and green current-head CI; hand back without merging."
230
+ ],
231
+ "session-pickup": [
232
+ "Read native Pi branch/session history, worktree state, and decision log.",
233
+ "Reconstruct goal, branch, completed and pending tasks with evidence.",
234
+ "Re-run critical inherited claims on the real artifact.",
235
+ "Route remaining work through poteto-mode; do not repeat verified work needlessly."
236
+ ],
237
+ "pause-safely": [
238
+ "Stop scheduled wakes; let or cancel nested work at a safe boundary.",
239
+ "Inspect worktree state; avoid irreversible actions and do not discard changes.",
240
+ "If appropriate and authorized, preserve a local WIP commit; otherwise preserve files.",
241
+ "Write a resume note with goal, branch, tasks, evidence, blockers and next action."
242
+ ],
243
+ "multi-phase-plan": [
244
+ "Define outcome, constraints, and measurable acceptance.",
245
+ "Prototype unresolved empirical forks; settle caller-facing design.",
246
+ "Write dependency graph and each PR scope, tests, live/perf predicates and sequencing.",
247
+ "Stop for explicit operator authorization before execution."
248
+ ],
249
+ "worktree-cleanup": [
250
+ "List worktrees, branches, dirty status, and merge/ancestry evidence.",
251
+ "Cross-check active or pinned sessions and worker records; unknown ownership is not safe.",
252
+ "Require explicit approval of each clean, confirmed inactive and merged worktree.",
253
+ "Remove without force and verify disk usage; preserve dirty or uncertain work."
254
+ ],
255
+ "opening-a-pr": [
256
+ "Inspect git state, target branch and worktree; preserve unrelated edits.",
257
+ "Review diff, verify actual behavior, and apply no-comments plus deslop before committing.",
258
+ "Create ordered commits only within authorized scope; write why, change and evidence.",
259
+ "Use configured forge to create a ready PR when authorized; confirm URL and status."
260
+ ]
261
+ },
262
+ "implementations": {
263
+ "setup-pstack": ["extension", "skills/setup-pstack/SKILL.md; /setup-pstack"],
264
+ "poteto-mode": ["extension", "skills/poteto-mode/SKILL.md; /poteto-mode"],
265
+ "poteto-help": ["instruction", "skills/poteto-help/SKILL.md; /poteto-help"],
266
+ "in-your-own-words": ["instruction", "skills/in-your-own-words/SKILL.md; /in-your-own-words"],
267
+ "sharpen": ["instruction", "skills/sharpen/SKILL.md; /sharpen"],
268
+ "how": ["instruction", "skills/how/SKILL.md; /how"],
269
+ "why": ["instruction", "skills/why/SKILL.md; /why"],
270
+ "teach": ["instruction", "skills/teach/SKILL.md; /teach"],
271
+ "recall": ["instruction", "skills/recall/SKILL.md; /recall"],
272
+ "ketchup": ["instruction", "skills/ketchup/SKILL.md; /ketchup"],
273
+ "ketchup-video": ["conditional", "skills/ketchup-video/SKILL.md; /ketchup-video"],
274
+ "architect": ["instruction", "skills/architect/SKILL.md; /architect"],
275
+ "arena": ["extension", "skills/arena/SKILL.md; /arena"],
276
+ "swarm": ["extension", "skills/swarm/SKILL.md; /swarm"],
277
+ "interrogate": ["extension", "skills/interrogate/SKILL.md; /interrogate"],
278
+ "blast-radius": ["instruction", "skills/blast-radius/SKILL.md; /blast-radius"],
279
+ "tdd": ["instruction", "skills/tdd/SKILL.md; /tdd"],
280
+ "benchmark-checklist": [
281
+ "instruction",
282
+ "skills/benchmark-checklist/SKILL.md; /benchmark-checklist"
283
+ ],
284
+ "no-comments": ["extension", "skills/no-comments/SKILL.md; /no-comments"],
285
+ "typescript-best-practices": [
286
+ "instruction",
287
+ "skills/typescript-best-practices/SKILL.md; /typescript-best-practices"
288
+ ],
289
+ "figure-it-out": ["instruction", "skills/figure-it-out/SKILL.md; /figure-it-out"],
290
+ "show-me-your-work": ["extension", "skills/show-me-your-work/SKILL.md; /show-me-your-work"],
291
+ "create-verification-skill": [
292
+ "conditional",
293
+ "skills/create-verification-skill/SKILL.md; /create-verification-skill"
294
+ ],
295
+ "maintain-verification-skill": [
296
+ "conditional",
297
+ "skills/maintain-verification-skill/SKILL.md; /maintain-verification-skill"
298
+ ],
299
+ "create-formal-verification-skill": [
300
+ "conditional",
301
+ "skills/create-formal-verification-skill/SKILL.md; /create-formal-verification-skill"
302
+ ],
303
+ "maintain-formal-verification-skill": [
304
+ "conditional",
305
+ "skills/maintain-formal-verification-skill/SKILL.md; /maintain-formal-verification-skill"
306
+ ],
307
+ "statechart": ["conditional", "skills/statechart/SKILL.md; /statechart"],
308
+ "reflect": ["instruction", "skills/reflect/SKILL.md; /reflect"],
309
+ "correct": ["instruction", "skills/correct/SKILL.md; /correct"],
310
+ "automate-me": ["instruction", "skills/automate-me/SKILL.md; /automate-me"],
311
+ "make-bot-ui": ["conditional", "skills/make-bot-ui/SKILL.md; /make-bot-ui"],
312
+ "unslop": ["instruction", "skills/unslop/SKILL.md; /unslop"],
313
+ "bro": ["instruction", "skills/bro/SKILL.md; /bro"],
314
+ "technical-writing": ["instruction", "skills/technical-writing/SKILL.md; /technical-writing"],
315
+ "principle-laziness-protocol": ["instruction", "skills/principle-laziness-protocol/SKILL.md"],
316
+ "principle-foundational-thinking": [
317
+ "instruction",
318
+ "skills/principle-foundational-thinking/SKILL.md"
319
+ ],
320
+ "principle-redesign-from-first-principles": [
321
+ "instruction",
322
+ "skills/principle-redesign-from-first-principles/SKILL.md"
323
+ ],
324
+ "principle-attack-the-premise": ["instruction", "skills/principle-attack-the-premise/SKILL.md"],
325
+ "principle-subtract-before-you-add": [
326
+ "instruction",
327
+ "skills/principle-subtract-before-you-add/SKILL.md"
328
+ ],
329
+ "principle-minimize-reader-load": [
330
+ "instruction",
331
+ "skills/principle-minimize-reader-load/SKILL.md"
332
+ ],
333
+ "principle-outcome-oriented-execution": [
334
+ "instruction",
335
+ "skills/principle-outcome-oriented-execution/SKILL.md"
336
+ ],
337
+ "principle-experience-first": ["instruction", "skills/principle-experience-first/SKILL.md"],
338
+ "principle-exhaust-the-design-space": [
339
+ "instruction",
340
+ "skills/principle-exhaust-the-design-space/SKILL.md"
341
+ ],
342
+ "principle-build-the-lever": ["instruction", "skills/principle-build-the-lever/SKILL.md"],
343
+ "principle-model-the-domain": ["instruction", "skills/principle-model-the-domain/SKILL.md"],
344
+ "principle-boundary-discipline": [
345
+ "instruction",
346
+ "skills/principle-boundary-discipline/SKILL.md"
347
+ ],
348
+ "principle-type-system-discipline": [
349
+ "instruction",
350
+ "skills/principle-type-system-discipline/SKILL.md"
351
+ ],
352
+ "principle-make-operations-idempotent": [
353
+ "instruction",
354
+ "skills/principle-make-operations-idempotent/SKILL.md"
355
+ ],
356
+ "principle-migrate-callers-then-delete-legacy-apis": [
357
+ "instruction",
358
+ "skills/principle-migrate-callers-then-delete-legacy-apis/SKILL.md"
359
+ ],
360
+ "principle-separate-before-serializing-shared-state": [
361
+ "instruction",
362
+ "skills/principle-separate-before-serializing-shared-state/SKILL.md"
363
+ ],
364
+ "principle-prove-it-works": ["instruction", "skills/principle-prove-it-works/SKILL.md"],
365
+ "principle-fix-root-causes": ["instruction", "skills/principle-fix-root-causes/SKILL.md"],
366
+ "principle-sequence-verifiable-units": [
367
+ "instruction",
368
+ "skills/principle-sequence-verifiable-units/SKILL.md"
369
+ ],
370
+ "principle-test-behavior-not-implementation": [
371
+ "instruction",
372
+ "skills/principle-test-behavior-not-implementation/SKILL.md"
373
+ ],
374
+ "principle-explain-the-number": ["instruction", "skills/principle-explain-the-number/SKILL.md"],
375
+ "principle-guard-the-context-window": [
376
+ "instruction",
377
+ "skills/principle-guard-the-context-window/SKILL.md"
378
+ ],
379
+ "principle-never-block-on-the-human": [
380
+ "instruction",
381
+ "skills/principle-never-block-on-the-human/SKILL.md"
382
+ ],
383
+ "principle-encode-lessons-in-structure": [
384
+ "instruction",
385
+ "skills/principle-encode-lessons-in-structure/SKILL.md"
386
+ ],
387
+ "kit-control-ui": ["conditional", "skills/control-ui/SKILL.md; /control-ui"],
388
+ "kit-control-cli": ["conditional", "skills/control-cli/SKILL.md; /control-cli"],
389
+ "kit-deslop": ["instruction", "skills/deslop/SKILL.md; /deslop"],
390
+ "kit-verify-this": ["conditional", "skills/verify-this/SKILL.md; /verify-this"],
391
+ "kit-loop-on-ci": ["conditional", "skills/loop-on-ci/SKILL.md; /loop-on-ci"],
392
+ "kit-fix-ci": ["conditional", "skills/fix-ci/SKILL.md; /fix-ci"],
393
+ "kit-review-and-ship": ["conditional", "skills/review-and-ship/SKILL.md; /review-and-ship"],
394
+ "kit-pr-review-canvas": ["conditional", "skills/pr-review-canvas/SKILL.md; /pr-review-canvas"],
395
+ "kit-make-pr-easy-to-review": [
396
+ "conditional",
397
+ "skills/make-pr-easy-to-review/SKILL.md; /make-pr-easy-to-review"
398
+ ],
399
+ "kit-run-smoke-tests": ["conditional", "skills/run-smoke-tests/SKILL.md; /run-smoke-tests"],
400
+ "kit-new-branch-and-pr": [
401
+ "conditional",
402
+ "skills/new-branch-and-pr/SKILL.md; /new-branch-and-pr"
403
+ ],
404
+ "kit-get-pr-comments": ["conditional", "skills/get-pr-comments/SKILL.md; /get-pr-comments"],
405
+ "kit-check-compiler-errors": [
406
+ "instruction",
407
+ "skills/check-compiler-errors/SKILL.md; /check-compiler-errors"
408
+ ],
409
+ "kit-what-did-i-get-done": [
410
+ "instruction",
411
+ "skills/what-did-i-get-done/SKILL.md; /what-did-i-get-done"
412
+ ],
413
+ "kit-weekly-review": ["instruction", "skills/weekly-review/SKILL.md; /weekly-review"],
414
+ "kit-fix-merge-conflicts": [
415
+ "conditional",
416
+ "skills/fix-merge-conflicts/SKILL.md; /fix-merge-conflicts"
417
+ ],
418
+ "kit-workflow-from-chats": [
419
+ "instruction",
420
+ "skills/workflow-from-chats/SKILL.md; /workflow-from-chats"
421
+ ],
422
+ "kit-thermo-nuclear-code-quality-review": [
423
+ "instruction",
424
+ "skills/thermo-nuclear-code-quality-review/SKILL.md; /thermo-nuclear-code-quality-review"
425
+ ],
426
+ "kit-ci-watcher": ["extension", "agents/ci-watcher.md + pstack_delegate"],
427
+ "kit-quality-agent": ["extension", "agents/quality-agent.md + pstack_delegate"],
428
+ "kit-exhaustive-switch": ["instruction", "reference/rules/typescript-exhaustive-switch.md"],
429
+ "kit-no-inline-imports": ["instruction", "reference/rules/no-inline-imports.md"],
430
+ "cli": ["host", "pi interactive / --print / --mode json / --mode rpc"],
431
+ "cli-plugins": ["host", "pi install, pi config, pi list, /reload"],
432
+ "cli-mode": ["extension", "/poteto-mode on|off and before_agent_start"],
433
+ "cli-goal": ["extension", "/pstack-goal and pstack_plan"],
434
+ "cli-loop": ["extension", "/pstack-loop and pstack_wake"],
435
+ "cli-automate": [
436
+ "conditional",
437
+ "/pstack-automation drafts and scripts/run-job.mjs; external scheduler required"
438
+ ],
439
+ "cli-cloud": ["gap", "Local isolated Pi workers; no managed remote worker service"],
440
+ "cli-subagents": ["extension", "pstack_delegate"],
441
+ "cli-worktree": ["extension", "pstack_worktree and git worktree"],
442
+ "cli-headless": ["host", "pi --print or --mode json"],
443
+ "cli-model": ["host", "/model"],
444
+ "cli-mcp": ["host", "Pi built-in MCP and /mcp"],
445
+ "cli-resume": ["host", "/resume, /tree"],
446
+ "cli-summarize": ["host", "/compact"],
447
+ "cli-rules": ["host", "AGENTS.md, .pi/skills, Pi package settings"],
448
+ "cli-create-skill": ["extension", "/pstack-create-skill and Pi skills authoring"],
449
+ "cli-bugbot": [
450
+ "conditional",
451
+ "pstack_pr and evidence-based triage of configured forge bot comments; no hosted Bugbot"
452
+ ],
453
+ "cli-automations": [
454
+ "gap",
455
+ "Local headless event/schedule entrypoint; no managed cloud scheduler"
456
+ ],
457
+ "agent-poteto": ["extension", "agents/poteto-agent.md + pstack_delegate"],
458
+ "agent-comment": ["extension", "agents/comment-sicko.md + read-only Pi tool allowlist"],
459
+ "worker": ["extension", "agents/worker.md"],
460
+ "models": ["extension", "user Pi pstack-models.json"],
461
+ "decision-log": ["extension", "pstack_log / session artifact TSV"],
462
+ "local-verifier": ["conditional", "project .pi/skills/verify-* generated by skill"],
463
+ "formal-verifier": ["conditional", "project .pi/skills formal verification skill + proof tool"],
464
+ "watch-pr": ["conditional", "pstack_pr (GitHub CLI)"],
465
+ "audit-worktree": ["extension", "pstack_worktree audit"],
466
+ "forge": ["conditional", "GitHub CLI; Origin via project instructions only"],
467
+ "pb-investigation": [
468
+ "instruction",
469
+ "skills/poteto-mode/playbooks/investigation.md + pstack_plan"
470
+ ],
471
+ "pb-bug-fix": ["instruction", "skills/poteto-mode/playbooks/bug-fix.md + pstack_plan"],
472
+ "pb-perf-issue": ["instruction", "skills/poteto-mode/playbooks/perf-issue.md + pstack_plan"],
473
+ "pb-hillclimb": ["instruction", "skills/poteto-mode/playbooks/hillclimb.md + pstack_plan"],
474
+ "pb-runtime-forensics": [
475
+ "conditional",
476
+ "skills/poteto-mode/playbooks/runtime-forensics.md + pstack_plan"
477
+ ],
478
+ "pb-trace-forensics": [
479
+ "instruction",
480
+ "skills/poteto-mode/playbooks/trace-forensics.md + pstack_plan"
481
+ ],
482
+ "pb-feature": ["instruction", "skills/poteto-mode/playbooks/feature.md + pstack_plan"],
483
+ "pb-refactoring": ["instruction", "skills/poteto-mode/playbooks/refactoring.md + pstack_plan"],
484
+ "pb-prototype": ["instruction", "skills/poteto-mode/playbooks/prototype.md + pstack_plan"],
485
+ "pb-visual-parity": [
486
+ "conditional",
487
+ "skills/poteto-mode/playbooks/visual-parity.md + pstack_plan"
488
+ ],
489
+ "pb-authoring-a-skill": [
490
+ "instruction",
491
+ "skills/poteto-mode/playbooks/authoring-a-skill.md + pstack_plan"
492
+ ],
493
+ "pb-eval": ["instruction", "skills/poteto-mode/playbooks/eval.md + pstack_plan"],
494
+ "pb-babysit": ["conditional", "skills/poteto-mode/playbooks/babysit.md + pstack_plan"],
495
+ "pb-shipping": ["conditional", "skills/poteto-mode/playbooks/shipping.md + pstack_plan"],
496
+ "pb-autonomous-run": [
497
+ "instruction",
498
+ "skills/poteto-mode/playbooks/autonomous-run.md + pstack_plan"
499
+ ],
500
+ "pb-autopilot-full": [
501
+ "conditional",
502
+ "skills/poteto-mode/playbooks/autopilot-full.md + pstack_plan"
503
+ ],
504
+ "pb-autopilot-stack": [
505
+ "conditional",
506
+ "skills/poteto-mode/playbooks/autopilot-stack.md + pstack_plan"
507
+ ],
508
+ "pb-session-pickup": [
509
+ "instruction",
510
+ "skills/poteto-mode/playbooks/session-pickup.md + pstack_plan"
511
+ ],
512
+ "pb-pause-safely": [
513
+ "instruction",
514
+ "skills/poteto-mode/playbooks/pause-safely.md + pstack_plan"
515
+ ],
516
+ "pb-multi-phase-plan": [
517
+ "instruction",
518
+ "skills/poteto-mode/playbooks/multi-phase-plan.md + pstack_plan"
519
+ ],
520
+ "pb-worktree-cleanup": [
521
+ "instruction",
522
+ "skills/poteto-mode/playbooks/worktree-cleanup.md + pstack_plan"
523
+ ],
524
+ "pb-opening-a-pr": [
525
+ "conditional",
526
+ "skills/poteto-mode/playbooks/opening-a-pr.md + pstack_plan"
527
+ ],
528
+ "benny-setup": ["conditional", "reference/benny/setup.md / pstack-automation"],
529
+ "benny-triage": ["conditional", "reference/benny/triage.md / headless job"],
530
+ "benny-repro": ["conditional", "reference/benny/repro.md / headless job"],
531
+ "benny-config": ["conditional", "reference/benny/config.example.json"],
532
+ "benny-adapter": ["conditional", "project-specific real app adapter"],
533
+ "benny-slack": ["conditional", "configured Slack/tracker MCP; no service supplied"],
534
+ "playbooks": ["navigation", "/pstack-map playbooks"],
535
+ "skill-library": ["navigation", "/pstack-map skill-library"],
536
+ "principles": ["navigation", "/pstack-map principles"],
537
+ "team-kit": ["navigation", "/pstack-map team-kit"],
538
+ "runtime": ["navigation", "/pstack-map runtime"],
539
+ "delegates": ["navigation", "/pstack-map delegates"],
540
+ "benny": ["navigation", "/pstack-map benny"],
541
+ "tk-adjacent": ["navigation", "/pstack-map tk-adjacent"],
542
+ "pb-understand": ["navigation", "/pstack-map pb-understand"],
543
+ "pb-build": ["navigation", "/pstack-map pb-build"],
544
+ "pb-verify": ["navigation", "/pstack-map pb-verify"],
545
+ "pb-delivery": ["navigation", "/pstack-map pb-delivery"],
546
+ "pb-long": ["navigation", "/pstack-map pb-long"],
547
+ "sk-understand": ["navigation", "/pstack-map sk-understand"],
548
+ "sk-design": ["navigation", "/pstack-map sk-design"],
549
+ "sk-verify": ["navigation", "/pstack-map sk-verify"],
550
+ "sk-maintain": ["navigation", "/pstack-map sk-maintain"],
551
+ "pr-core": ["navigation", "/pstack-map pr-core"],
552
+ "pr-architecture": ["navigation", "/pstack-map pr-architecture"],
553
+ "pr-verification": ["navigation", "/pstack-map pr-verification"],
554
+ "pr-delegation": ["navigation", "/pstack-map pr-delegation"],
555
+ "pr-meta": ["navigation", "/pstack-map pr-meta"],
556
+ "cli-exec": ["navigation", "/pstack-map cli-exec"],
557
+ "cli-persist": ["navigation", "/pstack-map cli-persist"],
558
+ "cli-integrate": ["navigation", "/pstack-map cli-integrate"]
559
+ }
560
+ }