pi-pstack-workflow-kit 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +146 -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/lib/catalog-data.json +560 -0
  9. package/lib/catalog.ts +160 -0
  10. package/lib/jobs.ts +5 -0
  11. package/lib/models.ts +125 -0
  12. package/lib/pool.ts +27 -0
  13. package/lib/state.ts +127 -0
  14. package/lib/transcript.ts +48 -0
  15. package/lib/validation.ts +16 -0
  16. package/package.json +65 -4
  17. package/reference/GAPS.md +21 -0
  18. package/reference/PARITY.md +169 -0
  19. package/reference/benny/config.example.json +12 -0
  20. package/reference/benny/repro.md +3 -0
  21. package/reference/benny/setup.md +3 -0
  22. package/reference/benny/triage.md +3 -0
  23. package/reference/parity.json +3095 -0
  24. package/reference/rules/no-inline-imports.md +3 -0
  25. package/reference/rules/typescript-exhaustive-switch.md +3 -0
  26. package/reference/source-map.json +8594 -0
  27. package/scripts/job-input.ts +190 -0
  28. package/scripts/run-job.mjs +121 -0
  29. package/skills/architect/SKILL.md +16 -0
  30. package/skills/arena/SKILL.md +16 -0
  31. package/skills/automate-me/SKILL.md +10 -0
  32. package/skills/benchmark-checklist/SKILL.md +10 -0
  33. package/skills/blast-radius/SKILL.md +10 -0
  34. package/skills/bro/SKILL.md +10 -0
  35. package/skills/check-compiler-errors/SKILL.md +10 -0
  36. package/skills/control-cli/SKILL.md +10 -0
  37. package/skills/control-ui/SKILL.md +10 -0
  38. package/skills/correct/SKILL.md +10 -0
  39. package/skills/create-formal-verification-skill/SKILL.md +16 -0
  40. package/skills/create-verification-skill/SKILL.md +16 -0
  41. package/skills/deslop/SKILL.md +10 -0
  42. package/skills/figure-it-out/SKILL.md +17 -0
  43. package/skills/fix-ci/SKILL.md +10 -0
  44. package/skills/fix-merge-conflicts/SKILL.md +10 -0
  45. package/skills/get-pr-comments/SKILL.md +10 -0
  46. package/skills/how/SKILL.md +10 -0
  47. package/skills/in-your-own-words/SKILL.md +11 -0
  48. package/skills/interrogate/SKILL.md +17 -0
  49. package/skills/ketchup/SKILL.md +10 -0
  50. package/skills/ketchup-video/SKILL.md +10 -0
  51. package/skills/loop-on-ci/SKILL.md +10 -0
  52. package/skills/maintain-formal-verification-skill/SKILL.md +16 -0
  53. package/skills/maintain-verification-skill/SKILL.md +16 -0
  54. package/skills/make-bot-ui/SKILL.md +10 -0
  55. package/skills/make-pr-easy-to-review/SKILL.md +10 -0
  56. package/skills/new-branch-and-pr/SKILL.md +10 -0
  57. package/skills/no-comments/SKILL.md +16 -0
  58. package/skills/poteto-help/SKILL.md +11 -0
  59. package/skills/poteto-mode/SKILL.md +60 -0
  60. package/skills/poteto-mode/playbooks/authoring-a-skill.md +20 -0
  61. package/skills/poteto-mode/playbooks/autonomous-run.md +20 -0
  62. package/skills/poteto-mode/playbooks/autopilot-full.md +25 -0
  63. package/skills/poteto-mode/playbooks/autopilot-stack.md +20 -0
  64. package/skills/poteto-mode/playbooks/babysit.md +21 -0
  65. package/skills/poteto-mode/playbooks/bug-fix.md +26 -0
  66. package/skills/poteto-mode/playbooks/eval.md +20 -0
  67. package/skills/poteto-mode/playbooks/feature.md +26 -0
  68. package/skills/poteto-mode/playbooks/hillclimb.md +24 -0
  69. package/skills/poteto-mode/playbooks/investigation.md +19 -0
  70. package/skills/poteto-mode/playbooks/multi-phase-plan.md +19 -0
  71. package/skills/poteto-mode/playbooks/opening-a-pr.md +20 -0
  72. package/skills/poteto-mode/playbooks/pause-safely.md +18 -0
  73. package/skills/poteto-mode/playbooks/perf-issue.md +24 -0
  74. package/skills/poteto-mode/playbooks/prototype.md +21 -0
  75. package/skills/poteto-mode/playbooks/refactoring.md +23 -0
  76. package/skills/poteto-mode/playbooks/runtime-forensics.md +20 -0
  77. package/skills/poteto-mode/playbooks/session-pickup.md +20 -0
  78. package/skills/poteto-mode/playbooks/shipping.md +24 -0
  79. package/skills/poteto-mode/playbooks/trace-forensics.md +20 -0
  80. package/skills/poteto-mode/playbooks/visual-parity.md +22 -0
  81. package/skills/poteto-mode/playbooks/worktree-cleanup.md +19 -0
  82. package/skills/pr-review-canvas/SKILL.md +10 -0
  83. package/skills/principle-attack-the-premise/SKILL.md +12 -0
  84. package/skills/principle-boundary-discipline/SKILL.md +12 -0
  85. package/skills/principle-build-the-lever/SKILL.md +12 -0
  86. package/skills/principle-encode-lessons-in-structure/SKILL.md +12 -0
  87. package/skills/principle-exhaust-the-design-space/SKILL.md +12 -0
  88. package/skills/principle-experience-first/SKILL.md +12 -0
  89. package/skills/principle-explain-the-number/SKILL.md +12 -0
  90. package/skills/principle-fix-root-causes/SKILL.md +12 -0
  91. package/skills/principle-foundational-thinking/SKILL.md +12 -0
  92. package/skills/principle-guard-the-context-window/SKILL.md +12 -0
  93. package/skills/principle-laziness-protocol/SKILL.md +12 -0
  94. package/skills/principle-make-operations-idempotent/SKILL.md +12 -0
  95. package/skills/principle-migrate-callers-then-delete-legacy-apis/SKILL.md +12 -0
  96. package/skills/principle-minimize-reader-load/SKILL.md +12 -0
  97. package/skills/principle-model-the-domain/SKILL.md +12 -0
  98. package/skills/principle-never-block-on-the-human/SKILL.md +12 -0
  99. package/skills/principle-outcome-oriented-execution/SKILL.md +12 -0
  100. package/skills/principle-prove-it-works/SKILL.md +12 -0
  101. package/skills/principle-redesign-from-first-principles/SKILL.md +12 -0
  102. package/skills/principle-separate-before-serializing-shared-state/SKILL.md +12 -0
  103. package/skills/principle-sequence-verifiable-units/SKILL.md +12 -0
  104. package/skills/principle-subtract-before-you-add/SKILL.md +12 -0
  105. package/skills/principle-test-behavior-not-implementation/SKILL.md +12 -0
  106. package/skills/principle-type-system-discipline/SKILL.md +12 -0
  107. package/skills/recall/SKILL.md +10 -0
  108. package/skills/reflect/SKILL.md +10 -0
  109. package/skills/review-and-ship/SKILL.md +10 -0
  110. package/skills/run-smoke-tests/SKILL.md +10 -0
  111. package/skills/setup-pstack/SKILL.md +17 -0
  112. package/skills/sharpen/SKILL.md +11 -0
  113. package/skills/show-me-your-work/SKILL.md +16 -0
  114. package/skills/statechart/SKILL.md +10 -0
  115. package/skills/swarm/SKILL.md +16 -0
  116. package/skills/tdd/SKILL.md +10 -0
  117. package/skills/teach/SKILL.md +17 -0
  118. package/skills/technical-writing/SKILL.md +10 -0
  119. package/skills/thermo-nuclear-code-quality-review/SKILL.md +10 -0
  120. package/skills/typescript-best-practices/SKILL.md +10 -0
  121. package/skills/unslop/SKILL.md +10 -0
  122. package/skills/verify-this/SKILL.md +17 -0
  123. package/skills/weekly-review/SKILL.md +10 -0
  124. package/skills/what-did-i-get-done/SKILL.md +10 -0
  125. package/skills/why/SKILL.md +10 -0
  126. package/skills/workflow-from-chats/SKILL.md +10 -0
  127. package/src/catalog-ui.ts +86 -0
  128. package/src/delegate.ts +367 -0
  129. package/src/forge.ts +246 -0
  130. package/src/git.ts +28 -0
  131. package/src/index.ts +25 -0
  132. package/src/models.ts +189 -0
  133. package/src/parent-diff.ts +64 -0
  134. package/src/plan.ts +181 -0
  135. package/src/records.ts +85 -0
  136. package/src/session.ts +124 -0
  137. package/src/support.ts +47 -0
  138. package/src/worktrees.ts +188 -0
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: pr-review-canvas
3
+ description: "Generate an annotated interactive PR walkthrough. Use when: When a reviewer needs a categorized visual diff."
4
+ ---
5
+
6
+ # pr-review-canvas
7
+
8
+ Generate a self-contained categorized PR walkthrough, with actual changed files, line anchors, evidence and risks. Provide Markdown in Pi and optional local interactive HTML when requested; inspect links and diff correctness.
9
+
10
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-attack-the-premise
3
+ description: "Test the shared premise directly after repeated fixes fail the same gate. Apply when: Repeated failure."
4
+ ---
5
+
6
+ # principle-attack-the-premise
7
+
8
+ After two attempts fail the same gate, name their shared assumption. Run a direct falsification experiment before a third fix.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-boundary-discipline
3
+ description: "Validate at boundaries and keep internal business logic pure. Apply when: Validation, adapters, error handling."
4
+ ---
5
+
6
+ # principle-boundary-discipline
7
+
8
+ Parse and validate input at the trust boundary. Pass validated data to pure business logic and distinguish expected errors from bugs.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-build-the-lever
3
+ description: "Make a reusable tool that performs or proves the work. Apply when: Nontrivial work."
4
+ ---
5
+
6
+ # principle-build-the-lever
7
+
8
+ Turn repeatable manual work into a script, codemod, test or query. Run it on representative inputs and retain it if reusable.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-encode-lessons-in-structure
3
+ description: "Turn repeated instructions into lint, metadata, runtime checks or scripts. Apply when: Recurring mistakes."
4
+ ---
5
+
6
+ # principle-encode-lessons-in-structure
7
+
8
+ Find the recurring failure class. Prefer an invariant, type, linter, test or CI gate over a repeated prompt; verify enforcement.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-exhaust-the-design-space
3
+ description: "Build and compare a small set of competing prototypes. Apply when: Novel design choices."
4
+ ---
5
+
6
+ # principle-exhaust-the-design-space
7
+
8
+ Construct two or three independent alternatives with the same criteria. Run them where possible, compare evidence and choose.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-experience-first
3
+ description: "Favor the user experience over implementation convenience. Apply when: UX and product tradeoffs."
4
+ ---
5
+
6
+ # principle-experience-first
7
+
8
+ Compare the actual user flows and failure states. Let the observed user contract decide the implementation tradeoff.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-explain-the-number
3
+ description: "Find the limiter and rule out irrelevant measurements. Apply when: Before and after measurement."
4
+ ---
5
+
6
+ # principle-explain-the-number
7
+
8
+ Identify the limiting resource and check workload, warmup, noise, failure modes and end-to-end relevance before reporting.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-fix-root-causes
3
+ description: "Find the earliest invalid state and repair the cause. Apply when: Debugging."
4
+ ---
5
+
6
+ # principle-fix-root-causes
7
+
8
+ Find the first invalid state and reproduce how it arises. Fix it there; keep a guard only when the state is valid and expected.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-foundational-thinking
3
+ description: "Settle the data structures, types and shared state before logic. Apply when: Before writing logic."
4
+ ---
5
+
6
+ # principle-foundational-thinking
7
+
8
+ Write the domain types, ownership and shared-state decisions before implementing transitions. State which work depends on them.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-guard-the-context-window
3
+ description: "Move bulk reading and repeated work to subagents; keep summaries. Apply when: Large files and fan-out."
4
+ ---
5
+
6
+ # principle-guard-the-context-window
7
+
8
+ Keep large reads in isolated Pi workers. Store raw artifacts outside the parent context; return bounded summaries with exact pointers.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-laziness-protocol
3
+ description: "Choose deletion and the smallest sufficient change. Apply when: Refactors or new abstractions."
4
+ ---
5
+
6
+ # principle-laziness-protocol
7
+
8
+ Inventory what can be deleted. Compare the minimal edit against a new abstraction. Keep a new layer only if a concrete caller or invariant needs it.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-make-operations-idempotent
3
+ description: "Ensure retries and repeated execution converge on the same result. Apply when: Retries and lifecycle operations."
4
+ ---
5
+
6
+ # principle-make-operations-idempotent
7
+
8
+ Choose a stable identity and desired state. Test retries, duplicate calls and failure midway; avoid duplicate side effects.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-migrate-callers-then-delete-legacy-apis
3
+ description: "Move all callers and remove old APIs in one wave. Apply when: API replacement."
4
+ ---
5
+
6
+ # principle-migrate-callers-then-delete-legacy-apis
7
+
8
+ List every caller, move them to the target API, run checks and delete the old API and migration shims.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-minimize-reader-load
3
+ description: "Reduce layers, hidden state and one-caller wrappers. Apply when: Hard-to-trace code."
4
+ ---
5
+
6
+ # principle-minimize-reader-load
7
+
8
+ Trace a real call. Count indirection, mutable scope and hidden state. Inline one-caller forwarding wrappers unless an invariant requires them.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-model-the-domain
3
+ description: "Represent state and repeated assumptions in explicit structures. Apply when: Branch-heavy or stateful code."
4
+ ---
5
+
6
+ # principle-model-the-domain
7
+
8
+ Enumerate valid states, transitions, invariants and ownership. Encode repeated shape assumptions once in a type or state machine.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-never-block-on-the-human
3
+ description: "Make reversible choices and report them; preserve real approval boundaries. Apply when: Reversible decisions."
4
+ ---
5
+
6
+ # principle-never-block-on-the-human
7
+
8
+ Proceed on reversible decisions and state the choice. Stop at required approval, irreversible effects or unresolved product decisions.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-outcome-oriented-execution
3
+ description: "Converge on the target design instead of retaining temporary compatibility states. Apply when: Phased migrations."
4
+ ---
5
+
6
+ # principle-outcome-oriented-execution
7
+
8
+ Define the final state and exit predicate. Keep intermediate compatibility code only until its verified migration boundary; delete it at completion.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-prove-it-works
3
+ description: "Execute the actual artifact before claiming success. Apply when: Every completion claim."
4
+ ---
5
+
6
+ # principle-prove-it-works
7
+
8
+ Define the observable claim. Execute the real artifact under matching conditions. Record the command, result and limitation.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-redesign-from-first-principles
3
+ description: "Integrate new requirements as if they belonged in the original architecture. Apply when: New requirement changes design."
4
+ ---
5
+
6
+ # principle-redesign-from-first-principles
7
+
8
+ Sketch the design with the new requirement present from the beginning. Compare with an additive patch; migrate callers if the coherent shape wins.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-separate-before-serializing-shared-state
3
+ description: "Remove shared writes before introducing serialization. Apply when: Concurrent actors."
4
+ ---
5
+
6
+ # principle-separate-before-serializing-shared-state
7
+
8
+ List actors and shared writes. Partition ownership before considering locks or queues; test concurrent cases.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-sequence-verifiable-units
3
+ description: "Split work into individually checked slices and ordered commits. Apply when: Multi-step work."
4
+ ---
5
+
6
+ # principle-sequence-verifiable-units
7
+
8
+ Divide work into small dependency-ordered changes. Verify each before proceeding; preserve bisectable commits.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-subtract-before-you-add
3
+ description: "Remove dead weight before adding the new shape. Apply when: Refactors and rewrites."
4
+ ---
5
+
6
+ # principle-subtract-before-you-add
7
+
8
+ Find obsolete paths and tests, remove dead code in a checked slice, then add the required behavior.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-test-behavior-not-implementation
3
+ description: "Test the observable contract, not internal implementation details. Apply when: Writing and changing tests."
4
+ ---
5
+
6
+ # principle-test-behavior-not-implementation
7
+
8
+ Assert the public result and relevant error cases. Change implementation details without changing assertions when behavior is identical.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: principle-type-system-discipline
3
+ description: "Use types to exclude invalid states and parse external data. Apply when: Type or signature design."
4
+ ---
5
+
6
+ # principle-type-system-discipline
7
+
8
+ Use discriminated unions, domain types and exhaustive cases. Parse external data; avoid assertions that erase constraints.
9
+
10
+ Read this leaf before applying it. In the final report, cite this principle only if it changed a specific decision and state that decision.
11
+
12
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: recall
3
+ description: "Reconstruct current context from relevant chat history and shared records. Use when: When starting or resuming work with previous context."
4
+ ---
5
+
6
+ # recall
7
+
8
+ Use `pstack_history` for current branch history, then read relevant Pi session records and shared project artifacts. Verify the current branch and status before summarizing. Do not invent unavailable historical context.
9
+
10
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: reflect
3
+ description: "Capture lessons from a finished task. Use when: When a long task landed and its successful recipe should be reusable."
4
+ ---
5
+
6
+ # reflect
7
+
8
+ Review actual session decisions and results; propose a focused skill change preserving a repeatable success pattern. Validate the changed skill with a representative task before committing.
9
+
10
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: review-and-ship
3
+ description: "Perform a structured review, commit and open a PR. Use when: When choosing Team Kit\u2019s independent delivery flow."
4
+ ---
5
+
6
+ # review-and-ship
7
+
8
+ Review diff and behavior, fix verified issues, deslop, run checks, and commit/open a PR only within the operator’s scope. Do not conflate PR creation with permission to merge.
9
+
10
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: run-smoke-tests
3
+ description: "Run Playwright smoke tests and triage failures. Use when: When the repository uses Playwright smoke coverage."
4
+ ---
5
+
6
+ # run-smoke-tests
7
+
8
+ Find actual repository smoke test commands, use Playwright if configured, execute in an isolated environment, collect traces/screenshots and diagnose failing behavior.
9
+
10
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: setup-pstack
3
+ description: "Configure the model and effort for each pstack role. Use when: First install or whenever you need to change the reasoning budget or role models."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # setup-pstack
8
+
9
+ Use `/setup-pstack` to view the available models and configure the nine named role selections. The native extension saves JSON with defaults version 3 and the selected budget; it does not change the parent model. The Pi aliases auto and inherit-parent resolve to the current parent model for fresh child CLI sessions. Configure an arena judge from a different model vendor than the parent and all candidates. Confirm before saving. Offer to create real or formal verification skills if missing.
10
+
11
+ ## Conditional relationships
12
+
13
+ These are catalog references, not a mandatory call sequence. Read related instructions with `pstack_catalog` action `node` when the condition applies.
14
+
15
+ - `models`: writes. After model and budget confirmation
16
+
17
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,11 @@
1
+ ---
2
+ name: sharpen
3
+ description: "Improve the depth of a prompt before sending it. Use when: When you want stronger methods, material and independent checks rather than a larger scope."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # sharpen
8
+
9
+ Return the rewritten prompt only unless asked to explain changes. Specify the evidence, verification methods and independent checks; settle runnable questions with prototypes during the eventual task, not during this rewrite.
10
+
11
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: show-me-your-work
3
+ description: "Keep an auditable decision trail. Use when: For long tasks or work that will be reviewed after stepping away."
4
+ ---
5
+
6
+ # show-me-your-work
7
+
8
+ Use `pstack_log` for each material decision. Record phase, decision, reason, evidence and result; it appends a timestamped TSV beside session artifacts. Commit a copy only when useful and authorized.
9
+
10
+ ## Conditional relationships
11
+
12
+ These are catalog references, not a mandatory call sequence. Read related instructions with `pstack_catalog` action `node` when the condition applies.
13
+
14
+ - `decision-log`: writes. Store audit trail
15
+
16
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: statechart
3
+ description: "Turn a checked TLA+ model into a user-facing statechart. Use when: When a product or behavior owner needs to see reachable states and rule failures."
4
+ ---
5
+
6
+ # statechart
7
+
8
+ Run the TLA+ checker first. Export reachable states and transitions, derive shortest violating traces with breadth-first search, and draw Mermaid state transitions with explicit violating states. Cite the checked model and output.
9
+
10
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: swarm
3
+ description: "Fan out parallel workers across slices, then aggregate. Use when: When independent coverage, races, mechanical edits or a gauntlet can run concurrently."
4
+ ---
5
+
6
+ # swarm
7
+
8
+ Use `pstack_delegate` mode swarm with independent tasks, finish predicates, and non-overlapping output scopes. Use isolated worktrees for writes. Bound concurrency and collect failures separately. Inspect each output and reconcile results against the original predicate. Local Pi subprocesses replace hosted workers unless an external remote host is explicitly configured by the operator.
9
+
10
+ ## Conditional relationships
11
+
12
+ These are catalog references, not a mandatory call sequence. Read related instructions with `pstack_catalog` action `node` when the condition applies.
13
+
14
+ - `cli-subagents`: parallel workers. parallel workers
15
+
16
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: tdd
3
+ description: "Write the failing test before the fix. Use when: For bugs with an inexpensive local test path."
4
+ ---
5
+
6
+ # tdd
7
+
8
+ Run a new behavioral regression test and record its failure for the intended reason. Implement the smallest fix, rerun the same test and surrounding tests. Explain when a cheap test path does not exist; do not fabricate red.
9
+
10
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: teach
3
+ description: "Combine mechanics and motivation into a coherent explanation. Use when: When you want to understand a change rather than receive a summary."
4
+ ---
5
+
6
+ # teach
7
+
8
+ Load how and why, use separate independent read-only workers if the scope warrants it, then synthesize a clear mechanics plus historical account. Use a Mermaid diagram when useful.
9
+
10
+ ## Conditional relationships
11
+
12
+ These are catalog references, not a mandatory call sequence. Read related instructions with `pstack_catalog` action `node` when the condition applies.
13
+
14
+ - `how`: mechanics. mechanics
15
+ - `why`: motivation. motivation
16
+
17
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: technical-writing
3
+ description: "Apply a layered technical writing standard. Use when: For docs, RFCs, READMEs, PR descriptions and commit messages."
4
+ ---
5
+
6
+ # technical-writing
7
+
8
+ Choose tutorial, how-to, reference or explanation for the actual reader. Use stable terminology, clear prerequisites and tested examples; write PR descriptions with goal, changes and evidence. Apply global English and consistent instructions.
9
+
10
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: thermo-nuclear-code-quality-review
3
+ description: "Perform a stringent maintainability review. Use when: When evaluating whether a diff is unnecessarily complicated."
4
+ ---
5
+
6
+ # thermo-nuclear-code-quality-review
7
+
8
+ Review actual changes for needless layers, coupling, type holes, mutation and reader load; classify only actionable findings with paths and evidence; use a read-only quality worker for independent review.
9
+
10
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: typescript-best-practices
3
+ description: "Apply type discipline in TypeScript. Use when: When reading or editing TypeScript."
4
+ ---
5
+
6
+ # typescript-best-practices
7
+
8
+ Read applicable type-system-discipline and boundary-discipline. Use discriminants, narrow validated input at edges, prefer exhaustive switch cases, use module-level imports, and avoid `any` as an escape hatch. Run repository type checks.
9
+
10
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: unslop
3
+ description: "Remove AI writing tells from prose. Use when: When composing or revising replies, documentation or other prose."
4
+ ---
5
+
6
+ # unslop
7
+
8
+ Preserve facts and intended tone. Remove generic transitions, unsupported attribution, formulaic parallelism, unnecessary qualifiers, filler and repetitive headings. Use direct active sentences and verify the revised text preserves meaning.
9
+
10
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,17 @@
1
+ ---
2
+ name: verify-this
3
+ description: "Prove or disprove a claim with fresh evidence. Use when: When a claim needs baseline/treatment comparison."
4
+ ---
5
+
6
+ # verify-this
7
+
8
+ State one falsifiable claim. Capture baseline and treatment with the matching real controller. Compare using the same conditions, cite artifacts, and return VERIFIED, NOT VERIFIED or INCONCLUSIVE.
9
+
10
+ ## Conditional relationships
11
+
12
+ These are catalog references, not a mandatory call sequence. Read related instructions with `pstack_catalog` action `node` when the condition applies.
13
+
14
+ - `kit-control-ui`: UI evidence. Team Kit verify-this supports UI artifacts
15
+ - `kit-control-cli`: terminal evidence. Team Kit verify-this supports terminal artifacts
16
+
17
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: weekly-review
3
+ description: "Summarize shipped work across the week. Use when: For a weekly engineering recap."
4
+ ---
5
+
6
+ # weekly-review
7
+
8
+ Use git/forge records for the named week and group shipped fixes, debt and features. Distinguish merged versus merely opened PRs.
9
+
10
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: what-did-i-get-done
3
+ description: "Summarize authored commits over a time range. Use when: When writing a status update."
4
+ ---
5
+
6
+ # what-did-i-get-done
7
+
8
+ Query authored commits for the specified date range and branches; report concrete changes with commit/PR links and note coverage limits.
9
+
10
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: why
3
+ description: "Find historical motivation from the record. Use when: When a design choice, constraint or regression needs historical explanation."
4
+ ---
5
+
6
+ # why
7
+
8
+ Inspect git history, blame, commit messages, and accessible PR discussion. Distinguish stated motivations from inference and gaps. Remain read-only.
9
+
10
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: workflow-from-chats
3
+ description: "Extract durable working preferences from chats. Use when: When recurring work patterns merit reusable instructions."
4
+ ---
5
+
6
+ # workflow-from-chats
7
+
8
+ Read relevant authorized Pi sessions and extract repeated decisions and instructions into a durable Pi skill or AGENTS.md change; show evidence and validate.
9
+
10
+ <!-- Generated by scripts/generate.py from scripts/catalog-source.json. Edit the source, then run `python3 scripts/generate.py`. -->