ramstack 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 (215) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +44 -0
  3. package/agents/comment-sicko.md +32 -0
  4. package/agents/poteto-agent.md +9 -0
  5. package/cli/rstack.mjs +539 -0
  6. package/package.json +29 -0
  7. package/skills/architect/README.md +25 -0
  8. package/skills/architect/SKILL.md +83 -0
  9. package/skills/architect/agents/openai.yaml +5 -0
  10. package/skills/architect/references/design-red-flags.md +33 -0
  11. package/skills/architect/references/rationale-template.md +35 -0
  12. package/skills/architect/references/runner-prompt.md +20 -0
  13. package/skills/arena/README.md +21 -0
  14. package/skills/arena/SKILL.md +71 -0
  15. package/skills/arena/agents/openai.yaml +5 -0
  16. package/skills/automate-me/README.md +21 -0
  17. package/skills/automate-me/SKILL.md +109 -0
  18. package/skills/automate-me/agents/openai.yaml +5 -0
  19. package/skills/blast-radius/README.md +21 -0
  20. package/skills/blast-radius/SKILL.md +50 -0
  21. package/skills/blast-radius/agents/openai.yaml +5 -0
  22. package/skills/bro/README.md +16 -0
  23. package/skills/bro/SKILL.md +7 -0
  24. package/skills/bro/agents/openai.yaml +5 -0
  25. package/skills/create-verification-skill/README.md +22 -0
  26. package/skills/create-verification-skill/SKILL.md +44 -0
  27. package/skills/create-verification-skill/agents/openai.yaml +5 -0
  28. package/skills/create-verification-skill/references/feature-map-example/README.md +47 -0
  29. package/skills/create-verification-skill/references/feature-map-example/create-note.md +39 -0
  30. package/skills/create-verification-skill/references/feature-map-example/search.md +45 -0
  31. package/skills/figure-it-out/README.md +22 -0
  32. package/skills/figure-it-out/SKILL.md +55 -0
  33. package/skills/figure-it-out/agents/openai.yaml +5 -0
  34. package/skills/how/README.md +25 -0
  35. package/skills/how/SKILL.md +134 -0
  36. package/skills/how/agents/openai.yaml +3 -0
  37. package/skills/how/references/critic-prompt.md +59 -0
  38. package/skills/how/references/critique-rubric.md +58 -0
  39. package/skills/how/references/explainer-prompt.md +55 -0
  40. package/skills/how/references/explorer-prompt.md +52 -0
  41. package/skills/interrogate/README.md +21 -0
  42. package/skills/interrogate/SKILL.md +112 -0
  43. package/skills/interrogate/agents/openai.yaml +5 -0
  44. package/skills/interrogate/references/code-quality-review.md +47 -0
  45. package/skills/interrogate/references/lead-judgment.md +58 -0
  46. package/skills/interrogate/references/reviewer-prompt.md +72 -0
  47. package/skills/interrogate/references/rubric.md +77 -0
  48. package/skills/maintain-verification-skill/README.md +21 -0
  49. package/skills/maintain-verification-skill/SKILL.md +39 -0
  50. package/skills/maintain-verification-skill/agents/openai.yaml +5 -0
  51. package/skills/no-comments/README.md +22 -0
  52. package/skills/no-comments/SKILL.md +24 -0
  53. package/skills/no-comments/agents/openai.yaml +5 -0
  54. package/skills/poteto-mode/README.md +26 -0
  55. package/skills/poteto-mode/SKILL.md +140 -0
  56. package/skills/poteto-mode/agents/openai.yaml +5 -0
  57. package/skills/poteto-mode/playbooks/authoring-a-skill.md +13 -0
  58. package/skills/poteto-mode/playbooks/autonomous-run.md +13 -0
  59. package/skills/poteto-mode/playbooks/autopilot-full.md +13 -0
  60. package/skills/poteto-mode/playbooks/autopilot-stack.md +16 -0
  61. package/skills/poteto-mode/playbooks/babysit.md +27 -0
  62. package/skills/poteto-mode/playbooks/bug-fix.md +17 -0
  63. package/skills/poteto-mode/playbooks/eval.md +27 -0
  64. package/skills/poteto-mode/playbooks/feature.md +21 -0
  65. package/skills/poteto-mode/playbooks/hillclimb.md +21 -0
  66. package/skills/poteto-mode/playbooks/investigation.md +14 -0
  67. package/skills/poteto-mode/playbooks/multi-phase-plan.md +3 -0
  68. package/skills/poteto-mode/playbooks/opening-a-pr.md +11 -0
  69. package/skills/poteto-mode/playbooks/orchestrate.md +113 -0
  70. package/skills/poteto-mode/playbooks/pause-safely.md +10 -0
  71. package/skills/poteto-mode/playbooks/perf-issue.md +24 -0
  72. package/skills/poteto-mode/playbooks/prototype.md +14 -0
  73. package/skills/poteto-mode/playbooks/refactoring.md +16 -0
  74. package/skills/poteto-mode/playbooks/runtime-forensics.md +11 -0
  75. package/skills/poteto-mode/playbooks/session-pickup.md +13 -0
  76. package/skills/poteto-mode/playbooks/shipping.md +20 -0
  77. package/skills/poteto-mode/playbooks/trace-forensics.md +14 -0
  78. package/skills/poteto-mode/playbooks/visual-parity.md +11 -0
  79. package/skills/poteto-mode/playbooks/worktree-cleanup.md +14 -0
  80. package/skills/poteto-mode/references/bugbot-triage.md +142 -0
  81. package/skills/poteto-mode/references/plan.md +105 -0
  82. package/skills/poteto-mode/scripts/bootstrap.ts +62 -0
  83. package/skills/poteto-mode/scripts/bun.lock +67 -0
  84. package/skills/poteto-mode/scripts/orch/orch.test.ts +634 -0
  85. package/skills/poteto-mode/scripts/orch/orch.ts +578 -0
  86. package/skills/poteto-mode/scripts/orch/store.ts +1607 -0
  87. package/skills/poteto-mode/scripts/package.json +16 -0
  88. package/skills/poteto-mode/scripts/watch-pr/cli.test.ts +224 -0
  89. package/skills/poteto-mode/scripts/watch-pr/cli.ts +223 -0
  90. package/skills/poteto-mode/scripts/watch-pr/fakes.test-helper.ts +118 -0
  91. package/skills/poteto-mode/scripts/watch-pr/github.test.ts +306 -0
  92. package/skills/poteto-mode/scripts/watch-pr/github.ts +699 -0
  93. package/skills/poteto-mode/scripts/watch-pr/policy.test.ts +420 -0
  94. package/skills/poteto-mode/scripts/watch-pr/policy.ts +832 -0
  95. package/skills/poteto-mode/scripts/watch-pr/render.ts +169 -0
  96. package/skills/poteto-mode/scripts/watch-pr/tsconfig.json +13 -0
  97. package/skills/poteto-mode/scripts/watch-pr/types.compile.ts +93 -0
  98. package/skills/poteto-mode/scripts/watch-pr/types.ts +401 -0
  99. package/skills/poteto-mode/scripts/watch-pr/watch-pr +6 -0
  100. package/skills/poteto-mode/scripts/worktree-audit.sh +86 -0
  101. package/skills/principle-boundary-discipline/README.md +17 -0
  102. package/skills/principle-boundary-discipline/SKILL.md +34 -0
  103. package/skills/principle-boundary-discipline/agents/openai.yaml +5 -0
  104. package/skills/principle-build-the-lever/README.md +17 -0
  105. package/skills/principle-build-the-lever/SKILL.md +23 -0
  106. package/skills/principle-build-the-lever/agents/openai.yaml +5 -0
  107. package/skills/principle-encode-lessons-in-structure/README.md +17 -0
  108. package/skills/principle-encode-lessons-in-structure/SKILL.md +31 -0
  109. package/skills/principle-encode-lessons-in-structure/agents/openai.yaml +5 -0
  110. package/skills/principle-exhaust-the-design-space/README.md +17 -0
  111. package/skills/principle-exhaust-the-design-space/SKILL.md +21 -0
  112. package/skills/principle-exhaust-the-design-space/agents/openai.yaml +5 -0
  113. package/skills/principle-experience-first/README.md +17 -0
  114. package/skills/principle-experience-first/SKILL.md +19 -0
  115. package/skills/principle-experience-first/agents/openai.yaml +5 -0
  116. package/skills/principle-fix-root-causes/README.md +17 -0
  117. package/skills/principle-fix-root-causes/SKILL.md +23 -0
  118. package/skills/principle-fix-root-causes/agents/openai.yaml +5 -0
  119. package/skills/principle-foundational-thinking/README.md +17 -0
  120. package/skills/principle-foundational-thinking/SKILL.md +21 -0
  121. package/skills/principle-foundational-thinking/agents/openai.yaml +5 -0
  122. package/skills/principle-guard-the-context-window/README.md +17 -0
  123. package/skills/principle-guard-the-context-window/SKILL.md +17 -0
  124. package/skills/principle-guard-the-context-window/agents/openai.yaml +5 -0
  125. package/skills/principle-laziness-protocol/README.md +17 -0
  126. package/skills/principle-laziness-protocol/SKILL.md +18 -0
  127. package/skills/principle-laziness-protocol/agents/openai.yaml +5 -0
  128. package/skills/principle-make-operations-idempotent/README.md +17 -0
  129. package/skills/principle-make-operations-idempotent/SKILL.md +24 -0
  130. package/skills/principle-make-operations-idempotent/agents/openai.yaml +5 -0
  131. package/skills/principle-migrate-callers-then-delete-legacy-apis/README.md +17 -0
  132. package/skills/principle-migrate-callers-then-delete-legacy-apis/SKILL.md +22 -0
  133. package/skills/principle-migrate-callers-then-delete-legacy-apis/agents/openai.yaml +5 -0
  134. package/skills/principle-minimize-reader-load/README.md +17 -0
  135. package/skills/principle-minimize-reader-load/SKILL.md +23 -0
  136. package/skills/principle-minimize-reader-load/agents/openai.yaml +5 -0
  137. package/skills/principle-model-the-domain/README.md +17 -0
  138. package/skills/principle-model-the-domain/SKILL.md +26 -0
  139. package/skills/principle-model-the-domain/agents/openai.yaml +5 -0
  140. package/skills/principle-never-block-on-the-human/README.md +16 -0
  141. package/skills/principle-never-block-on-the-human/SKILL.md +23 -0
  142. package/skills/principle-never-block-on-the-human/agents/openai.yaml +5 -0
  143. package/skills/principle-outcome-oriented-execution/README.md +16 -0
  144. package/skills/principle-outcome-oriented-execution/SKILL.md +22 -0
  145. package/skills/principle-outcome-oriented-execution/agents/openai.yaml +5 -0
  146. package/skills/principle-prove-it-works/README.md +18 -0
  147. package/skills/principle-prove-it-works/SKILL.md +33 -0
  148. package/skills/principle-prove-it-works/agents/openai.yaml +5 -0
  149. package/skills/principle-redesign-from-first-principles/README.md +16 -0
  150. package/skills/principle-redesign-from-first-principles/SKILL.md +16 -0
  151. package/skills/principle-redesign-from-first-principles/agents/openai.yaml +5 -0
  152. package/skills/principle-separate-before-serializing-shared-state/README.md +16 -0
  153. package/skills/principle-separate-before-serializing-shared-state/SKILL.md +16 -0
  154. package/skills/principle-separate-before-serializing-shared-state/agents/openai.yaml +5 -0
  155. package/skills/principle-sequence-verifiable-units/README.md +18 -0
  156. package/skills/principle-sequence-verifiable-units/SKILL.md +22 -0
  157. package/skills/principle-sequence-verifiable-units/agents/openai.yaml +5 -0
  158. package/skills/principle-subtract-before-you-add/README.md +17 -0
  159. package/skills/principle-subtract-before-you-add/SKILL.md +22 -0
  160. package/skills/principle-subtract-before-you-add/agents/openai.yaml +5 -0
  161. package/skills/principle-type-system-discipline/README.md +19 -0
  162. package/skills/principle-type-system-discipline/SKILL.md +31 -0
  163. package/skills/principle-type-system-discipline/agents/openai.yaml +5 -0
  164. package/skills/recall/README.md +23 -0
  165. package/skills/recall/SKILL.md +35 -0
  166. package/skills/recall/agents/openai.yaml +5 -0
  167. package/skills/reflect/README.md +24 -0
  168. package/skills/reflect/SKILL.md +77 -0
  169. package/skills/reflect/agents/openai.yaml +5 -0
  170. package/skills/reflect/references/divergent-reviewer.md +43 -0
  171. package/skills/reflect/references/judgment-reviewer.md +42 -0
  172. package/skills/reflect/references/synthesizer.md +56 -0
  173. package/skills/reflect/references/tooling-reviewer.md +57 -0
  174. package/skills/setup-rstack/README.md +25 -0
  175. package/skills/setup-rstack/SKILL.md +81 -0
  176. package/skills/setup-rstack/agents/openai.yaml +3 -0
  177. package/skills/show-me-your-work/README.md +23 -0
  178. package/skills/show-me-your-work/SKILL.md +82 -0
  179. package/skills/show-me-your-work/agents/openai.yaml +5 -0
  180. package/skills/show-me-your-work/references/decision-log-template.tsv +1 -0
  181. package/skills/show-me-your-work/scripts/log.sh +40 -0
  182. package/skills/swarm/README.md +21 -0
  183. package/skills/swarm/SKILL.md +46 -0
  184. package/skills/swarm/agents/openai.yaml +5 -0
  185. package/skills/tdd/README.md +21 -0
  186. package/skills/tdd/SKILL.md +44 -0
  187. package/skills/tdd/agents/openai.yaml +5 -0
  188. package/skills/teach/README.md +22 -0
  189. package/skills/teach/SKILL.md +21 -0
  190. package/skills/teach/agents/openai.yaml +5 -0
  191. package/skills/technical-writing/README.md +23 -0
  192. package/skills/technical-writing/SKILL.md +130 -0
  193. package/skills/technical-writing/agents/openai.yaml +5 -0
  194. package/skills/typescript-best-practices/README.md +22 -0
  195. package/skills/typescript-best-practices/SKILL.md +28 -0
  196. package/skills/typescript-best-practices/agents/openai.yaml +3 -0
  197. package/skills/typescript-best-practices/references/patterns.md +292 -0
  198. package/skills/unslop/README.md +21 -0
  199. package/skills/unslop/SKILL.md +80 -0
  200. package/skills/unslop/agents/openai.yaml +3 -0
  201. package/skills/why/README.md +26 -0
  202. package/skills/why/SKILL.md +229 -0
  203. package/skills/why/agents/openai.yaml +3 -0
  204. package/skills/why/references/epistemics.md +144 -0
  205. package/skills/why/references/investigator-prompt.md +103 -0
  206. package/skills/why/references/source-playbook.md +17 -0
  207. package/skills/why/references/sources/code-archaeology.md +88 -0
  208. package/skills/why/references/sources/databricks.md +70 -0
  209. package/skills/why/references/sources/datadog.md +99 -0
  210. package/skills/why/references/sources/incident-postmortem.md +15 -0
  211. package/skills/why/references/sources/linear.md +48 -0
  212. package/skills/why/references/sources/notion.md +55 -0
  213. package/skills/why/references/sources/sentry.md +100 -0
  214. package/skills/why/references/sources/slack.md +54 -0
  215. package/skills/why/references/synthesizer-prompt.md +135 -0
@@ -0,0 +1,52 @@
1
+ # Explorer Prompt Template
2
+
3
+ Build each explorer subagent's prompt from this template. Fill in the placeholders.
4
+
5
+ ---
6
+
7
+ You are exploring a codebase to understand how something works. Gather facts: trace code paths, read implementations, map components. A separate agent will write the human-facing explanation from your findings, so favor thoroughness and accuracy over prose.
8
+
9
+ Other explorers are investigating different slices of the same subsystem in parallel. Don't try to cover everything. Focus on your assigned angle and go deep.
10
+
11
+ ## Question
12
+
13
+ > {QUESTION}
14
+
15
+ ## Your Exploration Angle
16
+
17
+ {EXPLORATION_ANGLE}
18
+
19
+ ## Exploration Instructions
20
+
21
+ Start by finding the relevant code. Use Glob to find directories and files, Grep to find key symbols, Read to understand the actual implementation. Don't guess from names. Read the code.
22
+
23
+ Follow this pattern:
24
+ 1. **Find the entry point.** What triggers this behavior? A user action, an API call, a scheduled job? Find where it starts.
25
+ 2. **Trace the flow.** Follow the call chain from the entry point. Read each function. Understand what data flows through and how it transforms.
26
+ 3. **Map the key abstractions.** What types, interfaces, services, or classes are central? Read their definitions. Understand what they represent and why they exist.
27
+ 4. **Find the boundaries.** Where does this subsystem interface with others? What goes in, what comes out?
28
+ 5. **Look for the non-obvious.** Anything surprising? Anything that looks like a historical artifact? Anything a newcomer would misunderstand?
29
+
30
+ Keep exploring until you can describe the full picture without hand-waving. If you hit a part you can't trace, say so explicitly. "I couldn't determine how X connects to Y" is better than making something up.
31
+
32
+ ## Output
33
+
34
+ Return your findings in this structure. Be factual and specific. Reference exact file paths, function names, type names, and line numbers where relevant.
35
+
36
+ ### Components Found
37
+ The key types, services, classes, and abstractions. For each: name, file path, and a one-sentence description of what it does.
38
+
39
+ ### Flow
40
+ The execution flow step by step. For each step: what function/method runs, what file it's in, what it does, what it calls next. Include the data that flows between steps.
41
+
42
+ ### Files Read
43
+ Every file you read during exploration, so the explainer can reference them.
44
+
45
+ ### Boundaries
46
+ Where this subsystem connects to other parts of the codebase. The inputs and outputs.
47
+
48
+ ### Non-Obvious Things
49
+ Anything surprising, historically motivated, or easy to get wrong. Things that look like they should work one way but actually work another.
50
+
51
+ ### Open Questions
52
+ Anything you couldn't fully trace or understand. Be honest about gaps.
@@ -0,0 +1,21 @@
1
+ # Interrogate
2
+
3
+ Spawn one reviewer per configured model to adversarially review code changes. The adversarial signal comes from model diversity, not assigned personas.
4
+
5
+ ## When to use
6
+
7
+ - `/interrogate`, "adversarial review", "multi-model review"
8
+ - "Challenge this", "stress test this code", "find blind spots", "tear this apart"
9
+
10
+ ## What it produces
11
+
12
+ A synthesized verdict with findings categorized as act on, consider, noted, or dismissed. Includes an agreement map showing where models agreed or diverged. Does not auto-apply changes.
13
+
14
+ ## How it works
15
+
16
+ Determines scope from the user's diff or branch, states the intent of the code, then spawns one reviewer per model in the `interrogate reviewers` config role. All reviewers get the same prompt, rubric, and code-quality lens. The parent deduplicates findings, identifies consensus across models, and applies lead judgment to categorize each finding.
17
+
18
+ ## Related
19
+
20
+ - [SKILL.md](SKILL.md)
21
+ - [references/](references/) (reviewer prompt, rubric, code-quality review, lead judgment framework)
@@ -0,0 +1,112 @@
1
+ ---
2
+ name: interrogate
3
+ description: "Use for \"interrogate\", \"adversarial review\", \"multi-model review\", \"challenge this\", \"stress test this code\", \"find blind spots\", or \"tear this apart\". Multiple LLM reviewers challenge changes from independent angles."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Interrogate
8
+
9
+ Spawn one reviewer per configured model to adversarially review code changes. Each model gets the same prompt and rubric. The adversarial signal comes from model diversity, not assigned personas. Models differ in blind spots, priors, and reasoning patterns. Agreement across models is high-confidence signal; lone-model findings are worth reading but lower confidence.
10
+
11
+ The deliverable is a synthesized verdict. Do NOT auto-apply changes.
12
+
13
+ ## Step 1, Determine Scope
14
+
15
+ Identify what to review from context:
16
+
17
+ - If the user points at specific files or a diff, use that
18
+ - If on a feature branch, run `git diff main...HEAD` (or the appropriate base branch) for the full changeset
19
+ - If the user's message references recent work, gather the relevant files
20
+
21
+ Package the diff (or file contents) plus any surrounding context files the reviewers need to understand the code.
22
+
23
+ ## Step 2, State the Intent
24
+
25
+ Before spawning reviewers, state the intent explicitly. What is this code trying to accomplish? Derive this from:
26
+
27
+ - The user's message
28
+ - Commit messages
29
+ - PR description if one exists
30
+ - The code itself
31
+
32
+ Write one clear paragraph. Reviewers challenge whether the work achieves the intent well, not whether the intent itself is correct. If you're unsure about the intent, ask the user before proceeding.
33
+
34
+ ## Step 3, Spawn Reviewers
35
+
36
+ Launch all reviewers in a single message using the subagent tool. Use the `interrogate reviewers` list from your host's `## <host>` section of `~/.agents/rstack-models.md` when present, one reviewer per entry, extending or shrinking the Reviewer A/B/C labels below to the configured entry count; otherwise use the table defaults.
37
+
38
+ | Subagent | Default model |
39
+ |----------|---------------|
40
+ | Reviewer A | `fable` |
41
+ | Reviewer B | `opus` |
42
+ | Reviewer C | `sonnet` |
43
+
44
+ For each reviewer:
45
+ - `subagent_type`: `general-purpose`
46
+ - `model`: the configured `interrogate reviewers` entry, or the table default with no configured line
47
+ - `readonly`: `true` (on hosts without that param, use a read-only subagent type)
48
+
49
+ If a model slug is rejected as unresolvable when you try to spawn the subagent, check the valid slugs in the subagent tool's error message, pick the closest equivalent (prefer the highest-reasoning tier of the same family), spawn with the valid slug, and open a separate PR to update the configured value or default table. Do not block the review on the slug issue. If the configured value is `inherit-parent` or `auto`, omit `model` instead; never treat those aliases as broken slugs or enter this fallback for them.
50
+
51
+ Read `references/reviewer-prompt.md` and fill in the template with:
52
+ 1. The stated intent
53
+ 2. The diff or file contents
54
+ 3. The review rubric from `references/rubric.md`
55
+ 4. The code-quality lens from `references/code-quality-review.md`
56
+
57
+ The same filled template goes to all reviewers, so every model applies the code-quality lens.
58
+
59
+ Each reviewer produces structured findings as described in the prompt template.
60
+
61
+ ## Step 4, Synthesize
62
+
63
+ As results come back, build a unified picture:
64
+
65
+ 1. **Parse all findings** from the reviewers
66
+ 2. **Identify consensus**. Findings raised by 2+ models independently are highest signal.
67
+ 3. **Identify lone-model findings**. Still worth reading, but weight accordingly.
68
+ 4. **Deduplicate**. Different models may describe the same issue differently. Merge these and note which models raised it.
69
+ 5. **Note disagreements**. If one model flags something and another explicitly says the opposite, that's useful context for the verdict.
70
+
71
+ ## Step 5, Lead Judgment
72
+
73
+ You are the lead reviewer, a pragmatic senior engineer, not a neutral aggregator.
74
+
75
+ Read `references/lead-judgment.md` for the full framework. Reviewers only see a slice of the codebase. You have the full context (the goal, the constraints, the timeline, which tradeoffs were already considered). Use that context aggressively.
76
+
77
+ Categorize every finding using these buckets:
78
+
79
+ - **Act on**. Real issues affecting correctness, security, or maintainability given the actual goals. These would block a real PR.
80
+ - **Consider**. Legitimate points, but you're not sure they outweigh the cost of addressing them right now. Worth the user's attention.
81
+ - **Noted**. Technically valid but not actionable. Context-dependent, premature optimization, or low-impact given the current stage.
82
+ - **Dismissed**. Wrong, nitpicky, or missing context. Brief explanation why.
83
+
84
+ For each finding, include:
85
+ - Which model(s) raised it
86
+ - The category (act on / consider / noted / dismissed)
87
+ - A one-line rationale for the categorization
88
+
89
+ ## Output Format
90
+
91
+ Present the verdict in this structure:
92
+
93
+ ### Intent
94
+ > [The stated intent paragraph from Step 2]
95
+
96
+ ### Reviewers
97
+ - Reviewer [label]: [model name], [N findings] (one bullet per reviewer)
98
+
99
+ ### Act On
100
+ [Findings that should be addressed. For each: description, which models raised it, why it matters.]
101
+
102
+ ### Consider
103
+ [Findings worth thinking about. For each: description, which models raised it, tradeoff involved.]
104
+
105
+ ### Noted
106
+ [Valid but low-priority. Brief list.]
107
+
108
+ ### Dismissed
109
+ [Rejected findings with brief rationale. This shows the user what was filtered out and why, so they can override your judgment if they disagree.]
110
+
111
+ ### Agreement Map
112
+ [Where did models agree, where did they diverge, and what does the pattern of agreement/disagreement tell us?]
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "Interrogate"
3
+ short_description: "Adversarial multi-model review of changes"
4
+ policy:
5
+ allow_implicit_invocation: false
@@ -0,0 +1,47 @@
1
+ # Code Quality Review
2
+
3
+ Each reviewer applies this code-quality lens in addition to the rubric. It is a strict standard focused on implementation quality, maintainability, abstraction quality, and codebase health.
4
+
5
+ Above all, be ambitious about code structure. Do not merely identify local cleanup. Actively search for "code judo" moves, restructurings that preserve behavior while making the implementation dramatically simpler, smaller, more direct, and more elegant.
6
+
7
+ ## Core Prompt
8
+
9
+ Start from this baseline:
10
+
11
+ > Perform a deep code quality audit of the current branch's changes.
12
+ > Rethink how to structure / implement the changes to meaningfully improve code quality without impacting behavior.
13
+ > Work to improve abstractions, modularity, reduce Spaghetti code, improve succinctness and legibility.
14
+ > Be ambitious, if there is a clear path to improving the implementation that involves restructuring some of the codebase, go for it.
15
+ > Be extremely thorough and rigorous. Measure twice, cut once.
16
+
17
+ ## Dimensions
18
+
19
+ Each dimension is stated once. Apply the ones that are relevant.
20
+
21
+ 0. **Be ambitious about structural simplification.** Do not stop at "this could be a bit cleaner." Look for reframings that make whole branches, helpers, modes, conditionals, or layers disappear. Assume a "code judo" move is often available. It uses the existing architecture more effectively and makes the change dramatically simpler. If you can delete complexity rather than rearrange it, push hard for that.
22
+
23
+ 1. **Do not let a PR push a file from under 1k lines to over 1k lines without a very strong reason.** Treat this as a strong smell. Prefer extracting helpers, subcomponents, or modules. If the diff crosses that threshold, ask whether the code should be decomposed first. Waive only for a compelling structural reason where the resulting file stays clearly organized.
24
+
25
+ 2. **Do not allow spaghetti growth in existing code.** Be suspicious of new ad-hoc conditionals, scattered special cases, or one-off branches inserted into unrelated flows. Treat "weird if statements in random places" as a design problem, not a style nit. Prefer pushing the logic into a dedicated helper, state machine, or module instead of tangling an existing path.
26
+
27
+ 3. **Bias toward cleaning the design, not just accepting working code.** If behavior can stay the same while the structure becomes meaningfully cleaner, push for the cleaner version. Prefer simplifications that remove moving pieces over refactors that spread the same complexity around.
28
+
29
+ 4. **Prefer direct, boring, maintainable code over hacky or magical code.** Treat brittle, ad-hoc, or "magic" behavior as a problem. Be skeptical of generic mechanisms that hide simple data-shape assumptions. Flag thin abstractions, identity wrappers, or pass-through helpers that add indirection without buying clarity.
30
+
31
+ 5. **Push on type and boundary cleanliness when it affects maintainability.** Question unnecessary optionality, `unknown`, `any`, or cast-heavy code when a clearer type boundary could exist. Prefer explicit typed models over loosely-shaped ad-hoc objects. If a branch leans on a silent fallback to paper over an unclear invariant, ask whether the boundary should be made explicit.
32
+
33
+ 6. **Keep logic in the canonical layer and reuse existing helpers.** Call out feature logic leaking into shared paths or implementation details leaking through APIs. Prefer existing canonical utilities over bespoke one-offs. Push code toward the right package, service, or module instead of normalizing drift.
34
+
35
+ 7. **Treat unnecessary sequential orchestration and non-atomic updates as design smells when the cleaner structure is obvious.** If independent work is serialized for no reason, ask whether it should run in parallel. If related updates can leave state half-applied, push for a more atomic structure. Do not over-index on micro-optimizations, but do flag avoidable orchestration complexity that makes the code more brittle.
36
+
37
+ ## Output Expectations
38
+
39
+ Prioritize structural code-quality regressions and missed simplifications first, then spaghetti and branching complexity, then boundary, type, and file-size concerns, then smaller modularity and legibility issues. Do not flood the review with low-value nits when larger structural issues exist. Prefer a few high-conviction comments over a long list of cosmetic notes.
40
+
41
+ ## Approval Bar
42
+
43
+ Do not approve merely because behavior seems correct. Treat these as presumptive blockers unless the author can justify them: the PR keeps a lot of incidental complexity when a code-judo move would delete it; pushes a file from below 1000 lines to above 1000 lines; adds ad-hoc branching that tangles an existing flow; scatters feature checks across shared code; adds an unnecessary abstraction, wrapper, or cast-heavy contract; or duplicates an existing helper or puts logic in the wrong layer when there is a clear canonical home. If those conditions are not met, leave explicit, actionable feedback and push for a cleaner decomposition.
44
+
45
+ ## Review Tone
46
+
47
+ Be direct, serious, and demanding about quality. Do not be rude, but do not soften major maintainability issues into mild suggestions. If the code is making the codebase messier, say so. If the implementation missed an obvious dramatic simplification, say that too. Do not be satisfied with "maybe rename this" when the real issue is structural.
@@ -0,0 +1,58 @@
1
+ # Lead Judgment Framework
2
+
3
+ You are the lead reviewer. The configured reviewers have produced their findings. Apply pragmatic engineering judgment. Don't aggregate; filter, contextualize, and decide.
4
+
5
+ ## Why This Step Matters
6
+
7
+ Adversarial reviewers are useful because they're aggressive. But aggression without context produces noise. The reviewers only saw a slice of the codebase and a one-paragraph intent statement. They don't know:
8
+
9
+ - What was already tried and rejected
10
+ - What constraints exist outside the code (timeline, dependencies, migration plans)
11
+ - Which parts of the code are temporary scaffolding vs. permanent architecture
12
+ - What the next PR in the stack will address
13
+
14
+ You have the full conversation context. Use it.
15
+
16
+ ## Filtering Principles
17
+
18
+ ### Nitpick Gravity
19
+
20
+ Reviewers, especially adversarial ones, tend to fill their review. If they don't find critical issues, they'll inflate nits to fill the space. If a reviewer's findings are all nits and style preferences, the code is probably fine. Say so.
21
+
22
+ ### Hypothetical vs. Actual
23
+
24
+ "What if someone passes null here?" is only a finding if the caller can actually pass null. Trace the call site. If the input is validated upstream or the type system prevents it, dismiss the finding. Reviewers working from a diff can't always see the full call chain. You can.
25
+
26
+ ### Premature Abstraction Warnings
27
+
28
+ Reviewers often suggest extracting functions, adding interfaces, or creating abstractions. Does this code need to change in a second way? If not, the abstraction is premature. Simple inline code that works beats a clean abstraction that's overkill for the current scope.
29
+
30
+ ### "I Would Have Done It Differently"
31
+
32
+ This is the most common false positive in code review. A finding that amounts to "I prefer a different approach" is not a bug, not a design flaw, and not actionable unless the reviewer shows a concrete problem with the current approach. Dismiss these, and say why.
33
+
34
+ ### Missing Context Signals
35
+
36
+ Watch for findings that reveal the reviewer didn't understand the context:
37
+ - Suggesting changes to code the author didn't write or modify
38
+ - Flagging patterns that are consistent with the rest of the codebase (the reviewer just doesn't know that)
39
+ - Recommending approaches that conflict with constraints you know about
40
+
41
+ These are honest mistakes from reviewers working with limited information. Dismiss them gracefully.
42
+
43
+ ## When Reviewers Are Right
44
+
45
+ Don't dismiss findings just because they're uncomfortable. The whole point of adversarial review is to catch things you'd miss. Signs a finding deserves attention:
46
+
47
+ - Multiple models flag the same issue independently (consensus signal)
48
+ - The finding identifies a concrete execution path, not a hypothetical
49
+ - The finding reveals a gap in your mental model of the code
50
+ - You read the finding and think "...yeah, actually"
51
+
52
+ Be especially careful about dismissing security findings and correctness bugs. These deserve more scrutiny even when they come from a single model.
53
+
54
+ ## Verdict Calibration
55
+
56
+ A good verdict is useful, not comprehensive. The user should be able to read the "Act On" section, fix those issues, and ship with confidence. If your "Act On" list has more than 5 items, you're probably not filtering hard enough.
57
+
58
+ The "Dismissed" section is not busywork. It's a trust mechanism. Showing the user what you rejected and why lets them override your judgment where they disagree. This is more valuable than hiding the rejected findings.
@@ -0,0 +1,72 @@
1
+ # Reviewer Prompt Template
2
+
3
+ Build each reviewer subagent's prompt from this template, filling in the placeholders.
4
+
5
+ ---
6
+
7
+ You are an adversarial code reviewer. Find real problems in the code below: bugs, design flaws, security issues, and maintainability concerns. You are not here to be helpful or encouraging. You are here to stress-test.
8
+
9
+ ## Intent
10
+
11
+ The author's stated intent for this change:
12
+
13
+ > {INTENT}
14
+
15
+ You are reviewing whether the code achieves this intent well. Do NOT question the intent itself. Assume the goal is correct and challenge the execution.
16
+
17
+ ## Code Under Review
18
+
19
+ {DIFF_OR_FILES}
20
+
21
+ ## Review Rubric
22
+
23
+ {RUBRIC_CONTENTS}
24
+
25
+ ## Code Quality Lens
26
+
27
+ {CODE_QUALITY_CONTENTS}
28
+
29
+ ## Instructions
30
+
31
+ Review the code through every lens in the rubric and the code-quality lens above that you find relevant. Do not force lenses that don't apply. A simple bug fix does not need paragraphs about architectural integrity.
32
+
33
+ For each finding, provide:
34
+
35
+ 1. **Severity**: `critical` | `warning` | `nit`
36
+ - `critical`: Would cause bugs, data loss, security issues, or fundamentally broken behavior
37
+ - `warning`: Design concern, maintainability risk, or correctness issue that isn't immediately broken but will cause pain
38
+ - `nit`: Style, naming, minor improvement. Only include nits if they're genuinely useful, not to pad your review.
39
+ 2. **Finding**: What the problem is, in concrete terms. Reference specific lines/functions.
40
+ 3. **Evidence**: Why you believe this is a problem. Show your reasoning. Don't just assert.
41
+ 4. **Suggestion** (optional): What you'd do instead, if you have a concrete alternative. Skip this if you don't have a clear fix.
42
+
43
+ ## What Makes a Good Finding
44
+
45
+ - It references specific code, not vague concerns ("this could be better")
46
+ - It explains WHY something is a problem, not just THAT it is
47
+ - It distinguishes between "this is broken" and "I would have done this differently"
48
+ - It considers the stated intent. A finding that ignores the context of what's being built is a bad finding
49
+
50
+ ## What to Avoid
51
+
52
+ - Restating what the code does without identifying a problem
53
+ - Suggesting rewrites for working code because you'd prefer a different style
54
+ - Raising hypothetical issues ("what if someone passes null here") without evidence that the code path is reachable
55
+ - Praising the code. You're an adversary, not a cheerleader. If you find nothing wrong, say "no findings" and stop.
56
+
57
+ ## Output
58
+
59
+ Return your findings as a structured list. If you have zero findings, say so. An empty review is a valid outcome.
60
+
61
+ ```
62
+ ## Findings
63
+
64
+ ### 1. [Severity] Short title
65
+ **Location**: file:line or function name
66
+ **Finding**: What's wrong
67
+ **Evidence**: Why this matters
68
+ **Suggestion**: (optional) What to do instead
69
+
70
+ ### 2. [Severity] Short title
71
+ ...
72
+ ```
@@ -0,0 +1,77 @@
1
+ # Review Rubric
2
+
3
+ Review through whichever lenses are relevant. Not every lens applies to every change. Use judgment.
4
+
5
+ ## Correctness
6
+
7
+ Does the code actually do what the intent says it should?
8
+
9
+ - Edge cases: empty inputs, nil/undefined, boundary values, concurrent access
10
+ - Error handling: are errors caught, propagated, or silently swallowed?
11
+ - Off-by-one, type coercion, integer overflow, string encoding
12
+ - State management: race conditions, stale closures, dangling references
13
+ - Does the happy path work? Does the sad path work?
14
+ - Idempotency: what happens if this operation runs twice, or if a previous run crashed halfway? If the answer is "it depends on what state was left behind," there's a missing reconciliation step.
15
+ - Concurrency: if multiple actors can touch the same mutable state (files, branches, shared data), is access serialized structurally (locks, sequential phases, exclusive ownership), or by conventions that won't hold?
16
+
17
+ When you find a potential bug, trace the execution path. Don't just flag "this could be nil". Show the call chain that makes it nil.
18
+
19
+ ## Root Causes vs. Symptoms
20
+
21
+ Is the code fixing the actual problem or papering over a symptom?
22
+
23
+ Answering this often requires looking beyond the changed files. Read the surrounding code (callers, callees, type definitions, sibling modules) and understand the architecture the change lives in. Use the tools available to you (Read, Grep, Glob) to explore. Follow the call chain. Read the types. Understand why the code exists before judging whether the change addresses the right layer.
24
+
25
+ - Guard clauses that mask a deeper invariant violation
26
+ - Retry logic that hides a broken contract
27
+ - Type casts that silence a modeling error
28
+ - If you see a workaround, ask: why is the workaround needed? What would a proper fix look like?
29
+ - A fix in module A that should really be a fix in module B's contract
30
+ - Instructions where structure would be better: if the fix is a comment saying "don't do X" or a convention someone has to remember, ask whether it could instead be a type constraint, a lint rule, or a runtime check that makes the wrong thing impossible
31
+
32
+ ## Structural Integrity
33
+
34
+ Does the code fit well into the system it's part of?
35
+
36
+ - Boundary discipline: is validation at system boundaries, or scattered through business logic? Validate data once where it enters the system, then trust it internally.
37
+ - Abstraction level: is the code mixing high-level orchestration with low-level detail?
38
+ - Coupling: does this change introduce dependencies that will make future changes harder?
39
+ - Data model fit: do the data structures match the actual access patterns? The right structure makes downstream code obvious; the wrong one fights you at every turn.
40
+ - Bolted-on vs. integrated: was the change patched onto the existing design, or does it read as if the design always accounted for it? If the new requirement had been known from the start, would the code look like this?
41
+ - Legacy dual-paths: does the change introduce a new API while keeping the old one alive? If there are no external consumers, migrate callers and delete the old path in the same wave. Don't leave compatibility layers that will become permanent.
42
+
43
+ Don't penalize simple code for lacking abstraction. Premature abstraction is worse than duplication.
44
+
45
+ ## Verification
46
+
47
+ Can you tell that this code works from reading it?
48
+
49
+ - Are there tests? Do they test behavior or implementation details?
50
+ - Are there assertions/invariants that would catch regressions?
51
+ - If this is a bug fix: is there a test for the bug?
52
+ - If this touches an integration boundary: is the full path tested?
53
+ - Check the real thing, not a proxy: if the code checks liveness via file mtime or cached state instead of reading the actual value, that's a verification gap.
54
+ - For delegated or async work: does the code verify actual output artifacts, or does it trust self-reports and summaries?
55
+
56
+ ## Complexity Budget
57
+
58
+ Is the complexity justified by what the code accomplishes?
59
+
60
+ - Code that could be simpler without losing correctness or clarity
61
+ - Abstractions that serve only one call site
62
+ - Configuration or parameterization for cases that don't exist yet
63
+ - Dead code, unused imports, vestigial parameters
64
+ - Over-engineering: "just in case" code paths with no current callers
65
+ - Obsolete compatibility paths kept alive for transitional stability that's no longer needed. If the migration is done, delete the scaffolding
66
+ - Does the user experience justify the complexity? Every feature, control, and option should earn its place. Half-finished features are worse than missing ones.
67
+
68
+ Simpler is better unless simpler is wrong. Three lines of duplication beat a premature abstraction.
69
+
70
+ ## Security
71
+
72
+ Only flag security issues you can actually trace through the code. "This could be an injection vector" without showing the input path is not useful.
73
+
74
+ - User input flowing to dangerous sinks (SQL, shell, eval, innerHTML) without sanitization
75
+ - Authentication/authorization gaps in new endpoints
76
+ - Secrets in code, logs, or error messages
77
+ - TOCTOU (time-of-check-time-of-use) in security-critical paths
@@ -0,0 +1,21 @@
1
+ # Maintain a verification skill
2
+
3
+ Periodic upkeep loop for a project-local verification skill generated by `/create-verification-skill`. Covers every feature from source and exercises every feature live, then ships proven corrections or reports the outcome.
4
+
5
+ ## When to use
6
+
7
+ - `/maintain-verification-skill` or "audit the verify skill"
8
+ - The feature map of an existing verification skill may have drifted from the app
9
+
10
+ ## What it produces
11
+
12
+ One of three outcomes: clean (nothing to ship), changed (one PR of proven doc, harness, or map corrections), or blocked (coverage could not finish or a fix could not ship safely, with an explanation).
13
+
14
+ ## How it works
15
+
16
+ Six steps: locate the target verification skill, check index hygiene, fan out parallel read-only subagents per feature to check source, reconcile findings, drive the app live to exercise every feature, triage drift versus product gaps, and ship or stop. Only edits the verification skill's own directory. Never edits product code.
17
+
18
+ ## Related
19
+
20
+ - [SKILL.md](SKILL.md)
21
+ - [create-verification-skill](../create-verification-skill/)
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: maintain-verification-skill
3
+ description: "Periodic pass that keeps a project's verification skill and feature map honest: parallel source readers per feature, one live session driving every feature, at most one PR of proven corrections. Use for /maintain-verification-skill or \"audit the verify skill\"."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Maintain a verification skill
8
+
9
+ A feature map rots the moment the app changes. This skill is the upkeep loop for a skill generated by `/create-verification-skill` (or any project-local verification skill with a feature map). The unit of rigor is the feature, not every sentence: cover every feature file from source and exercise every feature live, without terminalising every bullet.
10
+
11
+ ## Outcomes
12
+
13
+ Pick one, and say which:
14
+
15
+ - **clean** — every feature got source and live coverage; nothing worth shipping. No branch, no PR.
16
+ - **changed** — one PR ships proven doc, harness, or map corrections.
17
+ - **blocked** — coverage could not finish or a proven fix could not ship safely. Say exactly what blocked it.
18
+
19
+ ## Edit scope
20
+
21
+ Only edit the verification skill's own directory (its SKILL.md, features/, and any harness scripts it owns). Never edit product code during a run: a behavior the map describes that the app no longer does is either doc drift (fix the map) or a product regression (report it, don't paper over it in docs).
22
+
23
+ ## Pass
24
+
25
+ 0. **Locate the target.** Find the verification skill to maintain: the project-local skill whose body has launch/drive sections and a feature map (usually `.claude/skills/verify-*/` or `.agents/skills/verify-*/`). Several candidates → ask which one; none → stop and point at `/create-verification-skill` instead of inventing a target.
26
+
27
+ 1. **Index hygiene.** Read the feature map README and glob its sibling files. Fix missing, extra, duplicate, or dead entries. Lightweight; no generated inventory.
28
+
29
+ 2. **Source wave.** One read-only subagent per feature file, launched concurrently. Each explains "how does this user-facing feature work?" from source, flags likely doc drift with citations, and returns one concise live-verification recipe. Children never drive the app and never edit files. Return shape: feature summary / source entry points / likely drift or none / one recipe.
30
+
31
+ 3. **Reconcile.** Every feature file has a returned summary. Merge overlapping recipes into as few app states as practical. Spot-check cited drift; don't re-prove clean claims. Sweep recent churn for user-facing surfaces missing from the map — require a concrete source path before calling one missing.
32
+
33
+ 4. **Live pass.** Required even when source looks clean. The coordinator owns all driving; follow the verification skill's own launch model — one long-lived instance driven serially for servers and UIs, or a fresh isolated session per drive for short-lived CLIs (the skill's Launch section decides, not this one). Exercise every feature at least once, and hold three invariants the whole pass, whatever the failure: (1) never drive an instance you haven't health-checked since it last did something surprising — doctor before first drive, doctor on each fresh session where sessions are the unit, doctor again after any failed drive, and where doctor can't see the failure (a wedged UI state on a healthy process), reset to a known state or relaunch rather than hoping; (2) evidence captured so far survives every cleanup, checked at its named location, not assumed; (3) nothing a drive started outlives that drive's usefulness — failed-iteration residue is cleaned whether the session is stuck, exited, or shared (for a shared instance, clean the residue, not the instance). A doctor failure caused by skill drift is drift: fix it under edit scope and retry once — restart whatever the fix invalidated, nothing more — before calling the pass `blocked`. A feature that can't be reached is `verified-unreachable` only with the concrete prerequisite (auth, entitlement, OS, external state) and the route attempted; if the map omits that prerequisite, that's drift. Any harness fix from triage gets re-driven live before it ships. Final teardown happens after the last drive of the run — including those re-proofs — so nothing outlives the run (evidence stays, per the skill).
34
+
35
+ 5. **Triage.** Wrong or missing user-POV description → doc drift, fix it. Working behavior the harness can't drive → harness gap, fix it; a harness fix follows the same helpers rule as generation (scripts executable, invocation documented in the skill body). App behavior that's actually broken → product gap; record it for the user, keep it out of this PR.
36
+
37
+ 6. **Ship or stop.** For changed: one PR of proven corrections, re-read every changed file first. For clean or blocked: no PR, report the outcome and the coverage honestly.
38
+
39
+ Keep concise run notes (features covered, unreachable prerequisites, confirmed drift, outcome) in a scratch location; don't commit them.
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "Maintain Verification Skill"
3
+ short_description: "Keep a project's verification skill honest"
4
+ policy:
5
+ allow_implicit_invocation: false
@@ -0,0 +1,22 @@
1
+ # No comments
2
+
3
+ Spawn Comment Sicko to review code for unnecessary comments, then act on accepted findings.
4
+
5
+ ## When to use
6
+
7
+ - `/no-comments`
8
+ - Before review, to strip narration comments and dead workaround text
9
+
10
+ ## What it produces
11
+
12
+ A report listing deletion count, restored comments (with proof), reruns, architect sketches for shape-needing fixes, encoding offers for constraint comments, and remaining open work.
13
+
14
+ ## How it works
15
+
16
+ Spawns a `comment-sicko` subagent on the current diff or named files. Inspects the report, rejects scope escapes and misstated kills, and audits suppressions. Fixes trivial findings directly. For fixes that need a shape, runs `/architect` once. Constraint comments ("do not remove") get an encoding offer: the cheapest type, runtime check, test, or CI lint that replaces the comment. Approved encodings replace the comment. Unapproved constraints are reported open.
17
+
18
+ ## Related
19
+
20
+ - [SKILL.md](SKILL.md)
21
+ - [principle-fix-root-causes](../principle-fix-root-causes/)
22
+ - [principle-redesign-from-first-principles](../principle-redesign-from-first-principles/)
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: no-comments
3
+ description: "Spawn Comment Sicko, fix accepted findings, and offer encodings for claimed constraints."
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # No comments
8
+
9
+ Spawn Comment Sicko. Act on accepted findings.
10
+
11
+ Authoring agents defend comments. Defer to Comment Sicko's fresh perspective.
12
+
13
+ ## Scope
14
+
15
+ Use the caller's files or diff. Otherwise use the current diff against the base branch, default `main`, including the working tree.
16
+
17
+ ## Steps
18
+
19
+ 1. Spawn a subagent with `subagent_type: "comment-sicko"`. Pass the scope. Do not restate its rules.
20
+ 2. Inspect its report and diff. Reject application-code edits, scope escapes, exception-protected deletions, misstated `MUST KILL` reasons, and flags that treat kept intentional code as guilty. Reshape flags on our-code surprises stay actionable. Do not restore those comments. A keep survives only with proof it is about something we cannot change. Audit missed scoped lint and TypeScript suppressions. Correctness or safety suppressions stay actionable `MUST KILL`s. Restore deletions only with exact exceptions and scoped proof. Before accepting thin `IMPORTANT` or `do not remove` kills or keeps, run `/how` or `/why` on their symbol. If a kill is ambiguous, do not restore. If a keep is refuted or still ambiguous, delete it. Revert and rerun one rejected report with the failure named. Reject a second, report it open, and fail `/no-comments`.
21
+ 3. Fix trivial accepted flags directly by deleting a dead path, dropping a parameter, or using the real API. If any fix needs a shape, run `/architect` once for the accepted set and surrounding code. Stop at the sketch. Architect shapes. Step 4 implements.
22
+ 4. Implement the smallest root-cause fix in scope. Remove every named workaround. If the root cause is out of scope, land the smallest in-scope fix and report the rest open. The **principle-fix-root-causes** and **principle-redesign-from-first-principles** skills guide intent only: fix real causes, redesign as if requirements always existed, never bolt on symptom guards. Neither authorizes widening the fence nor fixing instances outside it.
23
+ 5. Constraint comments say `do not remove`, `do not change wording`, or `talk to X before changing`. Leave keeps about things we cannot change. Offer the cheapest in-scope type, runtime, test, or CI lint. Wait for interactive approval. Unattended and eval require caller pre-approval. If approved, encode then delete. Otherwise delete, report the constraint open, and sketch out-of-scope work.
24
+ 6. Report the deletion count, restored comments, reruns, architect sketch, fixes, encoding offers, encodings, unenforced constraints, and other open work.
@@ -0,0 +1,5 @@
1
+ interface:
2
+ display_name: "No Comments"
3
+ short_description: "Delete comments and encode claimed constraints"
4
+ policy:
5
+ allow_implicit_invocation: false
@@ -0,0 +1,26 @@
1
+ # Poteto mode
2
+
3
+ Opt-in rigor wrapper. Matches a task to a playbook, cites engineering principles, routes bulk work to subagents, and keeps the parent agent in the lead.
4
+
5
+ ## When to use
6
+
7
+ - `/poteto-mode` or "poteto"
8
+ - Any task that needs structured rigor: features, bug fixes, investigations, refactoring, shipping
9
+
10
+ ## What it produces
11
+
12
+ A todolist driven by the matched playbook's steps, principle citations tied to real decisions, subagent-delegated code, unslopped prose, and a verified result. Every playbook ends with a PR link.
13
+
14
+ ## How it works
15
+
16
+ The mode matches the task to one of 23 bundled playbooks (feature, bug fix, investigation, refactoring, and others). The playbook's steps become the todolist verbatim. Principles from the index are read as leaf skills and cited only when they change a real choice. Code-writing steps go to `poteto-agent` subagents. Review panels use the configured models. The parent reviews every diff and writes its own summary.
17
+
18
+ The mode is opt-in. `disable-model-invocation: true` prevents the host from applying it to prompts that just look similar.
19
+
20
+ ## Related
21
+
22
+ - [SKILL.md](SKILL.md)
23
+ - [playbooks/](playbooks/) (23 playbook files)
24
+ - [references/](references/) (bugbot triage, plan template)
25
+ - [About poteto-mode](../../docs/explanation/about-poteto-mode.md)
26
+ - [Playbooks reference](../../docs/reference/playbooks.md)