@massa-ai/cursor-plugin 1.6.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 (172) hide show
  1. package/.cursor-plugin/plugin.json +5 -0
  2. package/README.md +87 -0
  3. package/agents/massa-ai-architecture-specialist.md +65 -0
  4. package/agents/massa-ai-audit-specialist.md +81 -0
  5. package/agents/massa-ai-builder.md +67 -0
  6. package/agents/massa-ai-context-curator.md +67 -0
  7. package/agents/massa-ai-documentation-agent.md +65 -0
  8. package/agents/massa-ai-furps-analyst.md +71 -0
  9. package/agents/massa-ai-investigator.md +68 -0
  10. package/agents/massa-ai-mobile-specialist.md +82 -0
  11. package/agents/massa-ai-navigator.md +75 -0
  12. package/agents/massa-ai-plan-critic.md +90 -0
  13. package/agents/massa-ai-planner.md +65 -0
  14. package/agents/massa-ai-requirements-analyst.md +64 -0
  15. package/agents/massa-ai-reviewer.md +66 -0
  16. package/agents/massa-ai-test-engineer.md +66 -0
  17. package/agents/massa-ai-verification-agent.md +65 -0
  18. package/hooks/hooks.json +26 -0
  19. package/hooks/massa-ai-hook +298 -0
  20. package/install.sh +413 -0
  21. package/package.json +30 -0
  22. package/skills/agents/architecture-specialist/SKILL.md +69 -0
  23. package/skills/agents/audit-specialist/SKILL.md +85 -0
  24. package/skills/agents/builder/SKILL.md +71 -0
  25. package/skills/agents/context-curator/SKILL.md +71 -0
  26. package/skills/agents/documentation-agent/SKILL.md +69 -0
  27. package/skills/agents/furps-analyst/SKILL.md +74 -0
  28. package/skills/agents/investigator/SKILL.md +72 -0
  29. package/skills/agents/mobile-specialist/SKILL.md +86 -0
  30. package/skills/agents/navigator/SKILL.md +79 -0
  31. package/skills/agents/plan-critic/SKILL.md +93 -0
  32. package/skills/agents/planner/SKILL.md +69 -0
  33. package/skills/agents/requirements-analyst/SKILL.md +68 -0
  34. package/skills/agents/reviewer/SKILL.md +70 -0
  35. package/skills/agents/test-engineer/SKILL.md +70 -0
  36. package/skills/agents/verification-agent/SKILL.md +69 -0
  37. package/skills/def/SKILL.md +17 -0
  38. package/skills/find/SKILL.md +19 -0
  39. package/skills/graph/SKILL.md +16 -0
  40. package/skills/index/SKILL.md +19 -0
  41. package/skills/map/SKILL.md +24 -0
  42. package/skills/massa-ai/SKILL.md +315 -0
  43. package/skills/massa-ai/personas/README.md +35 -0
  44. package/skills/massa-ai/personas/ai-native-nodejs-cli-architect.md +76 -0
  45. package/skills/massa-ai/personas/catalog.json +157 -0
  46. package/skills/massa-ai/personas/context-skill-harness-engineer-architect.md +74 -0
  47. package/skills/massa-ai/personas/product-manager.md +67 -0
  48. package/skills/massa-ai/personas/senior-mobile-engineer.md +74 -0
  49. package/skills/massa-ai/personas/senior-mobile-qa-automation-engineer.md +75 -0
  50. package/skills/massa-ai/references/adr-authoring.md +189 -0
  51. package/skills/massa-ai/references/agent-orchestration.md +221 -0
  52. package/skills/massa-ai/references/architecture-coupling-lens.md +239 -0
  53. package/skills/massa-ai/references/architecture-deepening-lens.md +136 -0
  54. package/skills/massa-ai/references/architecture-domain-lens.md +186 -0
  55. package/skills/massa-ai/references/architecture-lenses.md +108 -0
  56. package/skills/massa-ai/references/audit-report-io.md +459 -0
  57. package/skills/massa-ai/references/audit-scope.md +103 -0
  58. package/skills/massa-ai/references/code-annotation.md +111 -0
  59. package/skills/massa-ai/references/codebase-investigation.md +96 -0
  60. package/skills/massa-ai/references/context-firewall.md +62 -0
  61. package/skills/massa-ai/references/conversation-feedback.md +104 -0
  62. package/skills/massa-ai/references/debug-diagnosis-loop.md +140 -0
  63. package/skills/massa-ai/references/decision-engine.md +73 -0
  64. package/skills/massa-ai/references/evidence-gate.md +53 -0
  65. package/skills/massa-ai/references/furps/analyst-role.md +49 -0
  66. package/skills/massa-ai/references/furps/checklist.md +92 -0
  67. package/skills/massa-ai/references/furps/intake.md +104 -0
  68. package/skills/massa-ai/references/furps/report-contract.md +140 -0
  69. package/skills/massa-ai/references/hook-enforcement.md +137 -0
  70. package/skills/massa-ai/references/implementation-delivery.md +101 -0
  71. package/skills/massa-ai/references/installation.md +110 -0
  72. package/skills/massa-ai/references/lessons.md +119 -0
  73. package/skills/massa-ai/references/maestro/artifacts-reports.md +69 -0
  74. package/skills/massa-ai/references/maestro/cli-device.md +65 -0
  75. package/skills/massa-ai/references/maestro/cloud.md +67 -0
  76. package/skills/massa-ai/references/maestro/config-env-output.md +76 -0
  77. package/skills/massa-ai/references/maestro/fact-ledger.md +71 -0
  78. package/skills/massa-ai/references/maestro/js-scripting.md +70 -0
  79. package/skills/massa-ai/references/maestro/mcp.md +59 -0
  80. package/skills/massa-ai/references/maestro/patterns.md +96 -0
  81. package/skills/massa-ai/references/maestro/selectors.md +91 -0
  82. package/skills/massa-ai/references/maestro/workspace-execution.md +81 -0
  83. package/skills/massa-ai/references/maestro/yaml-commands.md +203 -0
  84. package/skills/massa-ai/references/maestro.md +47 -0
  85. package/skills/massa-ai/references/mcp-tools.md +296 -0
  86. package/skills/massa-ai/references/memory-policy.md +103 -0
  87. package/skills/massa-ai/references/mobile-context.md +113 -0
  88. package/skills/massa-ai/references/mobile-diagnosis.md +106 -0
  89. package/skills/massa-ai/references/mobile-figma-matcher/ATTRIBUTION.md +5 -0
  90. package/skills/massa-ai/references/mobile-figma-matcher/android-compose.md +13 -0
  91. package/skills/massa-ai/references/mobile-figma-matcher/android-views.md +13 -0
  92. package/skills/massa-ai/references/mobile-figma-matcher/core.md +117 -0
  93. package/skills/massa-ai/references/mobile-figma-matcher/ios-swiftui.md +12 -0
  94. package/skills/massa-ai/references/mobile-figma-matcher/ios-uikit.md +12 -0
  95. package/skills/massa-ai/references/mobile-figma-matcher/kmp-compose-multiplatform.md +14 -0
  96. package/skills/massa-ai/references/mobile-figma-matcher/repository-detection.md +77 -0
  97. package/skills/massa-ai/references/naming-standards.md +47 -0
  98. package/skills/massa-ai/references/pr-task-fix.md +80 -0
  99. package/skills/massa-ai/references/project-context.md +76 -0
  100. package/skills/massa-ai/references/rfc/ATTRIBUTION.md +5 -0
  101. package/skills/massa-ai/references/rfc/discovery-and-sizing.md +120 -0
  102. package/skills/massa-ai/references/rfc/document-contract.md +85 -0
  103. package/skills/massa-ai/references/rfc/quality-and-lifecycle.md +101 -0
  104. package/skills/massa-ai/references/root-cause-scripts.md +97 -0
  105. package/skills/massa-ai/references/spec-driven/artifact-store.md +98 -0
  106. package/skills/massa-ai/references/spec-driven/code-analysis.md +119 -0
  107. package/skills/massa-ai/references/spec-driven/coding-principles.md +80 -0
  108. package/skills/massa-ai/references/spec-driven/context-limits.md +64 -0
  109. package/skills/massa-ai/references/spec-driven/design.md +257 -0
  110. package/skills/massa-ai/references/spec-driven/discuss.md +182 -0
  111. package/skills/massa-ai/references/spec-driven/execute.md +471 -0
  112. package/skills/massa-ai/references/spec-driven/lessons.md +5 -0
  113. package/skills/massa-ai/references/spec-driven/memory.md +214 -0
  114. package/skills/massa-ai/references/spec-driven/specify.md +283 -0
  115. package/skills/massa-ai/references/spec-driven/sub-agents.md +151 -0
  116. package/skills/massa-ai/references/spec-driven/tasks.md +494 -0
  117. package/skills/massa-ai/references/spec-driven/validate.md +397 -0
  118. package/skills/massa-ai/references/subagent-design.md +132 -0
  119. package/skills/massa-ai/references/synapse-policy.md +160 -0
  120. package/skills/massa-ai/references/tdd/calibrated-examples.md +54 -0
  121. package/skills/massa-ai/references/tdd/discovery-and-sizing.md +83 -0
  122. package/skills/massa-ai/references/tdd/document-contract.md +136 -0
  123. package/skills/massa-ai/references/tdd/quality-and-lifecycle.md +83 -0
  124. package/skills/massa-ai/references/the-fool/cognitive-bias-inventory.md +103 -0
  125. package/skills/massa-ai/references/the-fool/dialectic-synthesis.md +170 -0
  126. package/skills/massa-ai/references/the-fool/evidence-audit.md +202 -0
  127. package/skills/massa-ai/references/the-fool/mode-selection-guide.md +113 -0
  128. package/skills/massa-ai/references/the-fool/pre-mortem-analysis.md +200 -0
  129. package/skills/massa-ai/references/the-fool/red-team-adversarial.md +206 -0
  130. package/skills/massa-ai/references/the-fool/socratic-questioning.md +153 -0
  131. package/skills/massa-ai/references/ticket/atlassian-fix.md +130 -0
  132. package/skills/massa-ai/references/ticket/intake-and-sources.md +65 -0
  133. package/skills/massa-ai/references/ticket/templates-and-quality.md +129 -0
  134. package/skills/massa-ai/references/verification-ladder.md +62 -0
  135. package/skills/massa-ai/scripts/lessons.py +590 -0
  136. package/skills/massa-ai/workflows/adr.md +33 -0
  137. package/skills/massa-ai/workflows/architecture/architecture-audit.md +125 -0
  138. package/skills/massa-ai/workflows/architecture/architecture-fix.md +110 -0
  139. package/skills/massa-ai/workflows/bugs/bugs-audit.md +113 -0
  140. package/skills/massa-ai/workflows/bugs/bugs-fix.md +97 -0
  141. package/skills/massa-ai/workflows/code-quality/code-quality-audit.md +154 -0
  142. package/skills/massa-ai/workflows/code-quality/code-quality-fix.md +99 -0
  143. package/skills/massa-ai/workflows/commit.md +61 -0
  144. package/skills/massa-ai/workflows/debug.md +86 -0
  145. package/skills/massa-ai/workflows/design.md +54 -0
  146. package/skills/massa-ai/workflows/exploration.md +119 -0
  147. package/skills/massa-ai/workflows/feature.md +52 -0
  148. package/skills/massa-ai/workflows/general.md +46 -0
  149. package/skills/massa-ai/workflows/implementation/implementation-audit.md +87 -0
  150. package/skills/massa-ai/workflows/implementation/implementation-fix.md +90 -0
  151. package/skills/massa-ai/workflows/long-session.md +44 -0
  152. package/skills/massa-ai/workflows/maestro/maestro-audit.md +56 -0
  153. package/skills/massa-ai/workflows/maestro/maestro-fix.md +74 -0
  154. package/skills/massa-ai/workflows/maestro/maestro.md +68 -0
  155. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-audit.md +68 -0
  156. package/skills/massa-ai/workflows/mobile-figma/mobile-figma-fix.md +74 -0
  157. package/skills/massa-ai/workflows/onboarding.md +23 -0
  158. package/skills/massa-ai/workflows/refactor.md +47 -0
  159. package/skills/massa-ai/workflows/refinement/furps-refinement.md +81 -0
  160. package/skills/massa-ai/workflows/requirements/requirements-audit.md +114 -0
  161. package/skills/massa-ai/workflows/requirements/requirements-fix.md +93 -0
  162. package/skills/massa-ai/workflows/rfc.md +55 -0
  163. package/skills/massa-ai/workflows/security/security-audit.md +113 -0
  164. package/skills/massa-ai/workflows/security/security-fix.md +97 -0
  165. package/skills/massa-ai/workflows/spec-driven.md +217 -0
  166. package/skills/massa-ai/workflows/tdd.md +71 -0
  167. package/skills/massa-ai/workflows/tests/tests-audit.md +114 -0
  168. package/skills/massa-ai/workflows/tests/tests-fix.md +96 -0
  169. package/skills/massa-ai/workflows/the-fool.md +82 -0
  170. package/skills/massa-ai/workflows/ticket.md +42 -0
  171. package/skills/persona-router/SKILL.md +158 -0
  172. package/skills/status/SKILL.md +15 -0
@@ -0,0 +1,170 @@
1
+ # Dialectic Synthesis
2
+
3
+ Hegelian dialectic with steel manning for constructing the strongest possible counter-argument and driving toward synthesis.
4
+
5
+ ## Core Principle
6
+
7
+ The dialectic is not about winning. It is about producing a stronger position than either thesis or antithesis alone. The Fool's job is to argue the other side so well that the user is forced to either refine their position or acknowledge a genuine trade-off.
8
+
9
+ Key distinction: steel manning is epistemic (genuinely trying to find out if you're wrong), devil's advocacy is role-based (assigned to argue against). Apply both: steel man first, then construct the antithesis.
10
+
11
+ ## Process
12
+
13
+ 1. **Restate the thesis** — Steelman the user's position first
14
+ 2. **Construct the antithesis** — Build the strongest opposing argument
15
+ 3. **Present the clash** — Show where thesis and antithesis genuinely conflict
16
+ 4. **Drive toward synthesis** — Propose a position that incorporates the best of both
17
+ 5. **Assess confidence** — Rate the synthesis and identify remaining risks
18
+
19
+ ## Steel Manning Technique
20
+
21
+ Steel manning is the opposite of straw manning. Restate the user's position in its strongest possible form before arguing against it.
22
+
23
+ ### How to Steelman
24
+
25
+ | Step | Action | Example |
26
+ |------|--------|---------|
27
+ | 1. Identify the core claim | Strip away weak framing | "We should use microservices" → "Independent deployment and scaling of components will accelerate team velocity" |
28
+ | 2. Add the strongest evidence | Supply what the user implied | "...especially given 4 teams working on different release cycles" |
29
+ | 3. Acknowledge real benefits | Name what's genuinely good | "This would eliminate the current deploy queue bottleneck" |
30
+ | 4. Confirm with user | "Is this a fair restatement?" | Ensures you're attacking the real position, not a fabrication |
31
+
32
+ ### Steelman Checklist
33
+
34
+ Before proceeding to the antithesis, verify:
35
+
36
+ - Have I made the position stronger, not weaker?
37
+ - Would the user recognize this as their view (or better)?
38
+ - Have I included the strongest evidence for their side?
39
+ - Am I about to attack this version, not an easier one?
40
+
41
+ ## Antithesis Construction
42
+
43
+ ### Technique: Strongest Counter-Argument
44
+
45
+ Build the antithesis by asking: "If a smart, informed person disagreed, what would their best argument be?"
46
+
47
+ | Source of Counter-Arguments | Example |
48
+ |----------------------------|---------|
49
+ | Opposing trade-off | "Speed now vs. maintainability later" |
50
+ | Hidden cost | "The migration cost exceeds the projected savings for 18 months" |
51
+ | Alternative that solves the same problem | "A modular monolith gets 80% of the benefit at 20% of the cost" |
52
+ | Precedent from similar situations | "Company X tried this and reverted after 2 years" |
53
+ | Stakeholder the thesis doesn't serve | "The junior developers will struggle with the added complexity" |
54
+ | The null hypothesis | "Doing nothing and investing the effort elsewhere yields higher ROI" |
55
+
56
+ ### Reductio ad Absurdum (Supporting Technique)
57
+
58
+ Take the thesis to its logical extreme to reveal hidden limits.
59
+
60
+ | Thesis | Reductio | Reveals |
61
+ |--------|----------|---------|
62
+ | "We should optimize for developer experience" | "Then we should never ship to production, since bugs hurt DX" | DX must be balanced against delivery |
63
+ | "More tests are always better" | "Then we should have 100% coverage including getters/setters" | Test value has diminishing returns |
64
+ | "We should move fast" | "Then skip code review and testing" | Speed has a quality floor |
65
+
66
+ Use sparingly. Reductio highlights the boundary of a principle, not its invalidity.
67
+
68
+ ### Probabilistic Framing (Annie Duke)
69
+
70
+ Force probability estimates to make uncertainty explicit:
71
+
72
+ - "How confident are you in this? 60%? 90%?"
73
+ - "What would move your confidence from 70% to 90%?"
74
+ - "What's the probability the antithesis is right?"
75
+
76
+ This prevents binary thinking and enables calibration.
77
+
78
+ ## Synthesis Patterns
79
+
80
+ After presenting thesis and antithesis, propose a synthesis using one of these patterns.
81
+
82
+ ### 1. Conditional Synthesis
83
+
84
+ "X is true **when** condition A holds; Y is true **when** condition B holds."
85
+
86
+ Example: "Microservices are right for the payment service (independent scaling, compliance boundary) but the admin dashboard should stay in the monolith (low traffic, fast iteration)."
87
+
88
+ ### 2. Scope Partitioning
89
+
90
+ "Apply X to domain A and Y to domain B."
91
+
92
+ Example: "Use event sourcing for the audit trail (append-only, queryable history) but standard CRUD for user profiles (simple reads/writes)."
93
+
94
+ ### 3. Temporal Synthesis
95
+
96
+ "Start with X, migrate to Y when trigger Z occurs."
97
+
98
+ Example: "Start with a monolith, extract services when team size exceeds 3 squads or deploy frequency hits weekly conflicts."
99
+
100
+ ### 4. Risk Mitigation Synthesis
101
+
102
+ "Proceed with X but add safeguards from Y."
103
+
104
+ Example: "Adopt the new framework but keep the abstraction layer so we can swap back within 2 sprints."
105
+
106
+ ### 5. Hybrid Extraction
107
+
108
+ "Take the strongest element from each side."
109
+
110
+ Example: "Use the microservices deployment model (independent containers) but keep a shared database with schema ownership (avoiding distributed data complexity)."
111
+
112
+ ## Confidence Assessment
113
+
114
+ Rate the synthesis outcome honestly.
115
+
116
+ | Level | Meaning | Action |
117
+ |-------|---------|--------|
118
+ | **HIGH** | Synthesis clearly stronger than either side alone | Proceed with synthesis |
119
+ | **MEDIUM** | Synthesis is plausible but untested | Identify the riskiest assumption and suggest an experiment |
120
+ | **LOW** | Both sides have strong, irreconcilable claims | Name the genuine trade-off; let the user decide based on priorities |
121
+ | **PIVOT** | The antithesis is stronger than the thesis | Recommend the user reconsider their original position |
122
+
123
+ ## Anti-Patterns
124
+
125
+ | Anti-Pattern | Problem | Fix |
126
+ |-------------|---------|-----|
127
+ | False synthesis | "Just do both!" without resolving the tension | Name the specific trade-off being resolved |
128
+ | Weak antithesis | Counter-argument is a strawman | Apply steel manning to the counter too |
129
+ | Thesis bias | Synthesis suspiciously close to original position | Check if antithesis was genuinely engaged |
130
+ | Complexity creep | Synthesis is more complex than either original | Simpler synthesis is usually better |
131
+ | Fence-sitting | "It depends" without specifying on what | Name the exact conditions for each path |
132
+ | Resulting bias | Judging decision quality by outcome | Evaluate the process, not the result (Duke) |
133
+
134
+ ## Output Template
135
+
136
+ ```markdown
137
+ ## Thesis (Steelmanned)
138
+
139
+ [User's position restated in strongest form]
140
+
141
+ **Strongest evidence for:** [1-2 supporting points]
142
+ **User's confidence:** [X%]
143
+
144
+ ## Antithesis
145
+
146
+ [Strongest counter-argument]
147
+
148
+ **Strongest evidence for:** [1-2 supporting points]
149
+
150
+ ## Points of Genuine Conflict
151
+
152
+ | Dimension | Thesis Says | Antithesis Says |
153
+ |-----------|------------|-----------------|
154
+ | [e.g., Speed] | [Position] | [Counter-position] |
155
+ | [e.g., Cost] | [Position] | [Counter-position] |
156
+
157
+ ## Proposed Synthesis
158
+
159
+ **Pattern:** [Conditional / Scope / Temporal / Risk Mitigation / Hybrid]
160
+
161
+ [Concrete synthesis proposal]
162
+
163
+ **What this preserves from the thesis:** [specific elements]
164
+ **What this incorporates from the antithesis:** [specific elements]
165
+ **What this gives up:** [explicit trade-offs]
166
+
167
+ **Confidence:** HIGH / MEDIUM / LOW / PIVOT
168
+ **If MEDIUM:** Test [riskiest assumption] by [experiment]
169
+ **If PIVOT:** [Concrete recommendation to reconsider]
170
+ ```
@@ -0,0 +1,202 @@
1
+ # Evidence Audit
2
+
3
+ Falsificationism and evidence quality assessment for auditing whether claims are actually supported by evidence. Adapted from Karl Popper's falsificationism, the GRADE Evidence-to-Decision framework, and Annie Duke's probabilistic reasoning.
4
+
5
+ ## Core Principle
6
+
7
+ Karl Popper's key insight: a claim is only meaningful if you can specify what would disprove it. The Evidence Audit mode extracts claims from proposals, designs falsification criteria, assesses evidence quality, identifies cognitive biases, and surfaces competing explanations. The goal is not to disprove — it is to determine whether the evidence actually supports the conclusion.
8
+
9
+ ## Process
10
+
11
+ 1. **Extract claims** — Identify the specific claims being made (explicit and implicit)
12
+ 2. **Design falsification criteria** — For each claim, specify what would disprove it
13
+ 3. **Assess evidence quality** — Evaluate the evidence using the GRADE-adapted framework
14
+ 4. **Identify cognitive biases** — Check for systematic errors in reasoning (defer to `cognitive-bias-inventory.md` for the full inventory)
15
+ 5. **Surface competing explanations** — Find alternative explanations for the same evidence
16
+ 6. **Render verdict** — Overall evidence strength with specific recommendations
17
+
18
+ ## Claim Extraction
19
+
20
+ Proposals contain claims — often implicit. Extract them before evaluating.
21
+
22
+ ### Types of Claims
23
+
24
+ | Type | Example | Hidden In |
25
+ |------|---------|-----------|
26
+ | **Causal** | "X causes Y" | "Our refactor improved performance" |
27
+ | **Predictive** | "X will happen" | "Users will adopt this feature" |
28
+ | **Comparative** | "X is better than Y" | "React is the better choice for us" |
29
+ | **Existential** | "X exists/doesn't exist" | "There's no alternative that meets our needs" |
30
+ | **Universal** | "X is always true" | "Microservices always improve team velocity" |
31
+ | **Quantitative** | "X is N" | "This will save 200 hours per quarter" |
32
+
33
+ ### Extraction Method
34
+
35
+ For each statement in the proposal:
36
+
37
+ 1. Is this a claim or a definition?
38
+ 2. If a claim, what type?
39
+ 3. What evidence is cited (or implied)?
40
+ 4. What would make this claim false?
41
+
42
+ ### Example Extraction
43
+
44
+ ```
45
+ Statement: "Based on our pilot, migrating to Kubernetes will reduce deployment time by 60%."
46
+
47
+ Claims extracted:
48
+ 1. The pilot results are representative of production (Predictive)
49
+ 2. Kubernetes is the cause of the deployment time reduction (Causal)
50
+ 3. The 60% reduction will persist at scale (Quantitative)
51
+ 4. Deployment time is the right metric to optimize (Implicit — Comparative)
52
+ ```
53
+
54
+ ## Falsification Criteria
55
+
56
+ For each claim, design a test that would disprove it.
57
+
58
+ | Claim | Falsification Criterion | Test |
59
+ |-------|------------------------|------|
60
+ | "Users want feature X" | Fewer than 10% of users engage with X within 30 days | Feature flag, measure adoption |
61
+ | "This will scale to 100K users" | Response time exceeds 500ms at 50K users | Load test at target scale |
62
+ | "Migration will take 3 months" | More than 2 unknown-unknowns discovered in month 1 | Track surprise count during initial phase |
63
+ | "Framework X is faster" | Benchmark shows less than 5% difference | Controlled benchmark on representative workload |
64
+ | "This will reduce costs" | Total cost of ownership exceeds current cost within 12 months | TCO analysis including migration, training, operations |
65
+
66
+ ### Unfalsifiable Claims (Red Flag)
67
+
68
+ Some claims cannot be falsified. These are red flags that require immediate attention.
69
+
70
+ | Pattern | Example | Problem |
71
+ |---------|---------|---------|
72
+ | Vague outcome | "This will improve things" | No measurable criterion |
73
+ | Moving goalposts | "It'll work eventually" | No time boundary |
74
+ | Circular reasoning | "This is the best because it's what experts recommend" | Evidence is the claim restated |
75
+ | Unfalsifiable hedge | "This might help in some cases" | True by definition |
76
+
77
+ When you encounter unfalsifiable claims, ask: "What specific, measurable outcome would tell us this worked or didn't work, and by when?"
78
+
79
+ ## Evidence Quality Assessment (GRADE-Adapted)
80
+
81
+ The GRADE Evidence-to-Decision framework, adapted from medical research to tech/business decisions, provides structured evidence evaluation.
82
+
83
+ ### GRADE Decision Questions
84
+
85
+ Apply these 9 questions to any proposal:
86
+
87
+ 1. **Is the problem a priority?** Is it worth solving at all?
88
+ 2. **How substantial are the desirable anticipated effects?** What's the upside?
89
+ 3. **How substantial are the undesirable anticipated effects?** What's the downside?
90
+ 4. **What is the certainty of the evidence?** How strong is our basis for believing this?
91
+ 5. **Is there important uncertainty about how stakeholders value outcomes?** Do different people want different things?
92
+ 6. **Does the balance of effects favor this option or the alternative?** Net positive or net negative?
93
+ 7. **How large are the resource requirements?** Total cost of ownership?
94
+ 8. **Is the option acceptable to key stakeholders?** Will people actually support this?
95
+ 9. **Is the option feasible to implement?** Can we actually do this?
96
+
97
+ ### Evidence Quality Matrix
98
+
99
+ | Dimension | Strong | Weak |
100
+ |-----------|--------|------|
101
+ | **Sample size** | Large, representative sample | Single case, anecdote |
102
+ | **Recency** | Current data (within 12 months) | Outdated (2+ years) |
103
+ | **Relevance** | Same domain, same scale | Different domain or scale |
104
+ | **Independence** | Multiple independent sources | Single source or vendor-provided |
105
+ | **Methodology** | Controlled, reproducible | Ad hoc, unreproducible |
106
+ | **Specificity** | Precise metrics and conditions | Vague or qualitative |
107
+
108
+ ### Evidence Grading Scale
109
+
110
+ | Grade | Description | Reliability |
111
+ |-------|-------------|------------|
112
+ | **A** | Controlled experiment, large sample, reproducible | High confidence — proceed |
113
+ | **B** | Observational data, reasonable sample, consistent with other evidence | Moderate confidence — proceed with monitoring |
114
+ | **C** | Case study, small sample, or single source | Low confidence — needs corroboration before deciding |
115
+ | **D** | Anecdote, opinion, or vendor marketing material | Insufficient — do not base decisions on this alone |
116
+ | **F** | No evidence cited | Claim is unsupported — flag immediately |
117
+
118
+ ### Common Weak Evidence Patterns
119
+
120
+ | Pattern | Example | Why It's Weak |
121
+ |---------|---------|---------------|
122
+ | Survivorship bias | "Companies using X are successful" | Ignores companies using X that failed |
123
+ | Cherry-picked metrics | "Response time improved 40%" | Other metrics (error rate, throughput) may have worsened |
124
+ | Vendor benchmarks | "Our tool is 3x faster" | Benchmarks optimized for vendor's strengths |
125
+ | Appeal to authority | "Google does it this way" | Google's constraints are not your constraints |
126
+ | Anchoring | "Industry average is X, we're at Y" | The average may not be the right benchmark |
127
+ | N=1 generalization | "It worked at my last company" | Different context, team, scale, constraints |
128
+
129
+ ## Competing Explanations (Abductive Reasoning)
130
+
131
+ For every conclusion, ask: "What else could explain this evidence?"
132
+
133
+ ### Method
134
+
135
+ 1. State the evidence
136
+ 2. State the proposed explanation
137
+ 3. Generate 2-3 alternative explanations
138
+ 4. Compare explanatory power — which explanation accounts for the most evidence with the fewest assumptions?
139
+
140
+ ### Example
141
+
142
+ ```
143
+ Evidence: "Deployment failures dropped 50% after adopting tool X."
144
+
145
+ Proposed explanation: Tool X is better than the old tool.
146
+
147
+ Alternative explanations:
148
+ 1. The team also started doing more code review in the same period
149
+ 2. A particularly error-prone service was retired last month
150
+ 3. The team gained experience that would have improved results with any tool
151
+ 4. Deployment frequency dropped (fewer deploys = fewer failures, not better deploys)
152
+ ```
153
+
154
+ ## Output Template
155
+
156
+ ```markdown
157
+ ## Evidence Audit: [Proposal/Decision]
158
+
159
+ ### Claims Extracted
160
+
161
+ | # | Claim | Type | Evidence Cited | Falsifiable? |
162
+ |---|-------|------|---------------|-------------|
163
+ | 1 | [Specific claim] | Causal/Predictive/etc. | [What evidence supports it] | Yes/No |
164
+ | 2 | [Specific claim] | Causal/Predictive/etc. | [What evidence supports it] | Yes/No |
165
+
166
+ ### Falsification Criteria
167
+
168
+ | Claim | What Would Disprove It | How to Test | Effort |
169
+ |-------|----------------------|-------------|--------|
170
+ | #1 | [Specific criterion] | [Concrete test] | Low/Med/High |
171
+ | #2 | [Specific criterion] | [Concrete test] | Low/Med/High |
172
+
173
+ ### Evidence Quality
174
+
175
+ | Claim | Evidence Grade | Key Weakness | GRADE Assessment |
176
+ |-------|--------------|--------------|-----------------|
177
+ | #1 | A/B/C/D/F | [Primary concern] | [Which of the 9 questions is most concerning] |
178
+ | #2 | A/B/C/D/F | [Primary concern] | [Which of the 9 questions is most concerning] |
179
+
180
+ ### Bias Check
181
+
182
+ | Bias Detected | Where | Impact |
183
+ |--------------|-------|--------|
184
+ | [Bias name] | Claim #X | [How it affects the conclusion] |
185
+
186
+ ### Competing Explanations
187
+
188
+ | Evidence | Proposed Explanation | Alternative Explanations |
189
+ |----------|---------------------|------------------------|
190
+ | [Data point] | [Original claim] | 1. [Alternative] 2. [Alternative] |
191
+
192
+ ### Verdict
193
+
194
+ **Overall evidence strength:** Strong / Moderate / Weak / Insufficient
195
+
196
+ **Confidence level:** [X%] — this forces probabilistic rather than binary thinking
197
+
198
+ **Recommendations:**
199
+ 1. [Specific action to strengthen the weakest claim]
200
+ 2. [Specific action to test the riskiest assumption]
201
+ 3. [What would change this verdict — the Magic Question]
202
+ ```
@@ -0,0 +1,113 @@
1
+ # Mode Selection Guide
2
+
3
+ How to recommend the right reasoning mode when the user selects "You choose" or when auto-recommending.
4
+
5
+ ## Signal-to-Mode Mapping
6
+
7
+ Analyze the user's language and context to identify which mode fits best.
8
+
9
+ | User Signal | Recommended Mode | Rationale |
10
+ |-------------|-----------------|-----------|
11
+ | "Is this the right approach?" | Socratic Questioning | Exploring assumptions, not yet committed |
12
+ | "I'm about to commit to X" | Dialectic Synthesis | Needs strongest counter-argument before committing |
13
+ | "What could go wrong?" | Pre-mortem Analysis | Explicitly asking about failure modes |
14
+ | "Is this secure/safe?" | Red Team | Security and adversarial framing |
15
+ | "The data shows that..." | Evidence Audit | Claims based on evidence need falsification |
16
+ | "Everyone agrees that..." | Socratic Questioning | Consensus signals unexamined assumptions |
17
+ | "We chose X over Y" | Dialectic Synthesis | Trade-off decision benefits from strongest counter |
18
+ | "This will definitely work" | Pre-mortem Analysis | Overconfidence signals need for failure imagination |
19
+ | "No one would ever..." | Red Team | Assumptions about adversary behavior |
20
+ | "Studies show..." | Evidence Audit | Cited evidence needs quality assessment |
21
+ | "I have a gut feeling..." | Evidence Audit | Intuition needs evidence grounding |
22
+ | "We've always done it this way" | Socratic Questioning | Historical pattern assumed optimal |
23
+ | "The vendor says..." | Evidence Audit | Interested party evidence needs scrutiny |
24
+
25
+ ## Decision Type Mapping
26
+
27
+ | Decision Type | Primary Mode | Secondary Mode |
28
+ |---------------|-------------|----------------|
29
+ | Technology choice | Dialectic Synthesis | Pre-mortem Analysis |
30
+ | Architecture decision | Pre-mortem Analysis | Red Team |
31
+ | Business strategy | Dialectic Synthesis | Evidence Audit |
32
+ | Security design | Red Team | Pre-mortem Analysis |
33
+ | Data-driven conclusion | Evidence Audit | Socratic Questioning |
34
+ | Process/workflow design | Pre-mortem Analysis | Socratic Questioning |
35
+ | Hiring/team decision | Socratic Questioning | Dialectic Synthesis |
36
+ | Vendor selection | Evidence Audit | Pre-mortem Analysis |
37
+ | Trade-off resolution | Dialectic Synthesis | Socratic Questioning |
38
+ | Risk assessment | Red Team | Pre-mortem Analysis |
39
+ | Investment/budget decision | Evidence Audit | Dialectic Synthesis |
40
+ | Product direction | Socratic Questioning | Dialectic Synthesis |
41
+
42
+ ## Domain Mapping
43
+
44
+ | Domain | Default Mode | Why |
45
+ |--------|-------------|-----|
46
+ | Security | Red Team | Adversarial thinking is native to the domain |
47
+ | Infrastructure | Pre-mortem Analysis | Failure modes are the primary concern |
48
+ | Data/Analytics | Evidence Audit | Claims require evidence scrutiny |
49
+ | Product/UX | Socratic Questioning | Assumptions about users need surfacing |
50
+ | Business | Dialectic Synthesis | Strategy benefits from strongest counter |
51
+ | Architecture | Pre-mortem Analysis | Systems fail at integration points |
52
+ | Legal/Compliance | Evidence Audit | Claims must withstand scrutiny |
53
+ | AI/ML | Red Team | Adversarial robustness is critical |
54
+ | People/Org | Socratic Questioning | Hidden assumptions about behavior |
55
+
56
+ ## Multi-Mode Sequencing
57
+
58
+ Some situations benefit from running 2 modes in sequence.
59
+
60
+ ### Recommended Sequences
61
+
62
+ | Sequence | When to Use |
63
+ |----------|-------------|
64
+ | Socratic → Dialectic | User has an untested idea. Surface assumptions first, then argue the counter. |
65
+ | Pre-mortem → Red Team | High-stakes system launch. Find internal failures, then external attacks. |
66
+ | Evidence Audit → Socratic | Data-driven proposal. Audit the evidence, then question the interpretation. |
67
+ | Dialectic → Pre-mortem | Strategic decision. Argue the counter, then stress-test the surviving position. |
68
+ | Socratic → Evidence Audit | Proposal with many "obvious" claims. Surface assumptions, then grade the evidence. |
69
+
70
+ ### When to Suggest Multi-Mode
71
+
72
+ Recommend a second pass when:
73
+
74
+ - The first mode reveals a category of risk the user hadn't considered
75
+ - The thesis survives the first challenge largely intact (it may need harder testing)
76
+ - The domain spans two mapping categories (e.g., a security architecture decision)
77
+ - The user's confidence increased after the first pass — a different mode may reveal new angles
78
+
79
+ ### When NOT to Suggest Multi-Mode
80
+
81
+ - The user's question is narrow and specific
82
+ - The first mode already surfaced actionable changes
83
+ - The user signals they want to move on
84
+ - The synthesis already reached HIGH confidence with clear next steps
85
+
86
+ ## Auto-Recommendation Format
87
+
88
+ When presenting the recommendation, use this structure:
89
+
90
+ ```
91
+ Based on [specific context signal], I recommend **[Mode Name]** because [1-sentence rationale].
92
+
93
+ [If a secondary mode is relevant:]
94
+ After that, a follow-up with **[Secondary Mode]** would [1-sentence benefit].
95
+ ```
96
+
97
+ Then confirm with `AskUserQuestion`:
98
+
99
+ - Option 1: Recommended mode (with "(Recommended)" label)
100
+ - Option 2: Secondary mode if applicable
101
+ - Option 3: "Let me pick" — return to the full mode selection
102
+
103
+ ## Edge Cases
104
+
105
+ | Situation | Default Mode | Rationale |
106
+ |-----------|-------------|-----------|
107
+ | Vague context | Socratic Questioning | It surfaces what matters through questions |
108
+ | Multiple concerns | Pre-mortem Analysis | It covers breadth naturally through failure narratives |
109
+ | User is emotional/frustrated | Dialectic Synthesis | Steel manning validates their position before challenging |
110
+ | Technical vs business split | Match the mode to which side the user emphasizes | Follow the energy, address the unspoken second |
111
+ | User wants to challenge code/PR | Socratic Questioning | Read the code first, then probe assumptions behind design choices |
112
+ | User presents a completed decision | Evidence Audit | Auditing evidence is less confrontational for past decisions |
113
+ | Multi-stakeholder decision | Dialectic Synthesis | Different stakeholders embody the thesis and antithesis naturally |