minimal-vibe-coding-kit 0.4.1 → 0.5.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 (207) hide show
  1. package/.agents/skills/agentshield-security-review/scripts/agentshield_repo_probe.py +28 -3
  2. package/.agents/skills/claim/SKILL.md +82 -0
  3. package/.agents/skills/prompt-sharpener/SKILL.md +54 -0
  4. package/.agents/skills/tutien/SKILL.md +74 -0
  5. package/.agents/skills/tutien/references/classification.md +64 -0
  6. package/.agents/skills/tutien/references/lore-sources.md +15 -0
  7. package/.agents/skills/tutien/references/privacy.md +33 -0
  8. package/.agents/skills/tutien/references/schema.md +75 -0
  9. package/.agents/skills/tutien/references/scoring-and-realms.md +37 -0
  10. package/.agents/skills/tutien/references/voice-and-mode.md +44 -0
  11. package/.agents/skills/tutien/scripts/adapters/generic-jsonl.mjs +82 -0
  12. package/.agents/skills/tutien/scripts/adapters/git.mjs +48 -0
  13. package/.agents/skills/tutien/scripts/adapters/plain-transcript.mjs +37 -0
  14. package/.agents/skills/tutien/scripts/analyze-history.mjs +84 -0
  15. package/.agents/skills/tutien/scripts/catalog.mjs +130 -0
  16. package/.agents/skills/tutien/scripts/classify.mjs +311 -0
  17. package/.agents/skills/tutien/scripts/command.mjs +107 -0
  18. package/.agents/skills/tutien/scripts/compare.mjs +41 -0
  19. package/.agents/skills/tutien/scripts/metrics.mjs +306 -0
  20. package/.agents/skills/tutien/scripts/normalize-events.mjs +68 -0
  21. package/.agents/skills/tutien/scripts/redact.mjs +30 -0
  22. package/.agents/skills/tutien/scripts/render-report.mjs +423 -0
  23. package/.agents/skills/tutien/scripts/run-tutien.mjs +272 -0
  24. package/.agents/skills/tutien/scripts/score.mjs +97 -0
  25. package/.agents/skills/tutien/scripts/snapshot.mjs +76 -0
  26. package/.agents/skills/tutien/scripts/villains.mjs +196 -0
  27. package/.agents/skills/vibekit-init/SKILL.md +2 -2
  28. package/.claude/settings.json +10 -3
  29. package/.claude/skills/agentshield-security-review/scripts/agentshield_repo_probe.py +28 -3
  30. package/.claude/skills/claim/SKILL.md +82 -0
  31. package/.claude/skills/prompt-sharpener/SKILL.md +54 -0
  32. package/.claude/skills/tutien/SKILL.md +74 -0
  33. package/.claude/skills/tutien/references/classification.md +64 -0
  34. package/.claude/skills/tutien/references/lore-sources.md +15 -0
  35. package/.claude/skills/tutien/references/privacy.md +33 -0
  36. package/.claude/skills/tutien/references/schema.md +75 -0
  37. package/.claude/skills/tutien/references/scoring-and-realms.md +37 -0
  38. package/.claude/skills/tutien/references/voice-and-mode.md +44 -0
  39. package/.claude/skills/tutien/scripts/adapters/generic-jsonl.mjs +82 -0
  40. package/.claude/skills/tutien/scripts/adapters/git.mjs +48 -0
  41. package/.claude/skills/tutien/scripts/adapters/plain-transcript.mjs +37 -0
  42. package/.claude/skills/tutien/scripts/analyze-history.mjs +84 -0
  43. package/.claude/skills/tutien/scripts/catalog.mjs +130 -0
  44. package/.claude/skills/tutien/scripts/classify.mjs +311 -0
  45. package/.claude/skills/tutien/scripts/command.mjs +107 -0
  46. package/.claude/skills/tutien/scripts/compare.mjs +41 -0
  47. package/.claude/skills/tutien/scripts/metrics.mjs +306 -0
  48. package/.claude/skills/tutien/scripts/normalize-events.mjs +68 -0
  49. package/.claude/skills/tutien/scripts/redact.mjs +30 -0
  50. package/.claude/skills/tutien/scripts/render-report.mjs +423 -0
  51. package/.claude/skills/tutien/scripts/run-tutien.mjs +272 -0
  52. package/.claude/skills/tutien/scripts/score.mjs +97 -0
  53. package/.claude/skills/tutien/scripts/snapshot.mjs +76 -0
  54. package/.claude/skills/tutien/scripts/villains.mjs +196 -0
  55. package/.claude/skills/vibekit-init/SKILL.md +2 -2
  56. package/.codex/rules/vibekit.rules +77 -0
  57. package/.codex-plugin/plugin.json +1 -1
  58. package/.cursor/cli.json +18 -0
  59. package/.cursor/settings.json +15 -8
  60. package/.cursor/skills/claim/SKILL.md +82 -0
  61. package/.cursor/skills/prompt-sharpener/SKILL.md +54 -0
  62. package/.cursor/skills/tutien/SKILL.md +74 -0
  63. package/.cursor/skills/tutien/references/classification.md +64 -0
  64. package/.cursor/skills/tutien/references/lore-sources.md +15 -0
  65. package/.cursor/skills/tutien/references/privacy.md +33 -0
  66. package/.cursor/skills/tutien/references/schema.md +75 -0
  67. package/.cursor/skills/tutien/references/scoring-and-realms.md +37 -0
  68. package/.cursor/skills/tutien/references/voice-and-mode.md +44 -0
  69. package/.cursor/skills/tutien/scripts/adapters/generic-jsonl.mjs +82 -0
  70. package/.cursor/skills/tutien/scripts/adapters/git.mjs +48 -0
  71. package/.cursor/skills/tutien/scripts/adapters/plain-transcript.mjs +37 -0
  72. package/.cursor/skills/tutien/scripts/analyze-history.mjs +84 -0
  73. package/.cursor/skills/tutien/scripts/catalog.mjs +130 -0
  74. package/.cursor/skills/tutien/scripts/classify.mjs +311 -0
  75. package/.cursor/skills/tutien/scripts/command.mjs +107 -0
  76. package/.cursor/skills/tutien/scripts/compare.mjs +41 -0
  77. package/.cursor/skills/tutien/scripts/metrics.mjs +306 -0
  78. package/.cursor/skills/tutien/scripts/normalize-events.mjs +68 -0
  79. package/.cursor/skills/tutien/scripts/redact.mjs +30 -0
  80. package/.cursor/skills/tutien/scripts/render-report.mjs +423 -0
  81. package/.cursor/skills/tutien/scripts/run-tutien.mjs +272 -0
  82. package/.cursor/skills/tutien/scripts/score.mjs +97 -0
  83. package/.cursor/skills/tutien/scripts/snapshot.mjs +76 -0
  84. package/.cursor/skills/tutien/scripts/villains.mjs +196 -0
  85. package/.grok/README.md +13 -0
  86. package/.grok/config.example.toml +13 -0
  87. package/.grok/config.toml +29 -0
  88. package/.grok/rules/safe-delete.md +11 -0
  89. package/.grok/rules/security.md +5 -0
  90. package/.grok/rules/vibe-core.md +8 -0
  91. package/.grok/skills/agentshield-security-review/SKILL.md +75 -0
  92. package/.grok/skills/agentshield-security-review/agents/openai.yaml +5 -0
  93. package/.grok/skills/agentshield-security-review/references/native-install.md +97 -0
  94. package/.grok/skills/agentshield-security-review/references/report-template.md +54 -0
  95. package/.grok/skills/agentshield-security-review/references/review-checklist.md +45 -0
  96. package/.grok/skills/agentshield-security-review/scripts/agentshield_repo_probe.py +135 -0
  97. package/.grok/skills/autoresearch-coding/README.md +15 -0
  98. package/.grok/skills/autoresearch-coding/SKILL.md +101 -0
  99. package/.grok/skills/autoresearch-coding/references/experiment-contract.md +13 -0
  100. package/.grok/skills/autoresearch-coding/references/metric-extraction.md +8 -0
  101. package/.grok/skills/autoresearch-coding/references/result-ledger.md +15 -0
  102. package/.grok/skills/autoresearch-coding/scripts/log_result.py +24 -0
  103. package/.grok/skills/autoresearch-coding/scripts/run_logged.py +30 -0
  104. package/.grok/skills/claim/SKILL.md +82 -0
  105. package/.grok/skills/clearthought/SKILL.md +100 -0
  106. package/.grok/skills/clearthought/examples/decision-framework.md +441 -0
  107. package/.grok/skills/clearthought/examples/metagame-examples.md +536 -0
  108. package/.grok/skills/clearthought/examples/sequential-thinking.md +380 -0
  109. package/.grok/skills/clearthought/references/output-schemas.md +494 -0
  110. package/.grok/skills/clearthought/references/parameter-reference.md +482 -0
  111. package/.grok/skills/coding-level/SKILL.md +34 -0
  112. package/.grok/skills/coding-level/references/level-0.md +131 -0
  113. package/.grok/skills/coding-level/references/level-1.md +118 -0
  114. package/.grok/skills/coding-level/references/level-2.md +140 -0
  115. package/.grok/skills/coding-level/references/level-3.md +142 -0
  116. package/.grok/skills/coding-level/references/level-4.md +152 -0
  117. package/.grok/skills/coding-level/references/level-5.md +84 -0
  118. package/.grok/skills/daily-workflow-curator/SKILL.md +52 -0
  119. package/.grok/skills/memento/SKILL.md +36 -0
  120. package/.grok/skills/parallel-analysis/SKILL.md +160 -0
  121. package/.grok/skills/path-sensitive-shell-safety/SKILL.md +69 -0
  122. package/.grok/skills/path-sensitive-shell-safety/references/workflow.md +127 -0
  123. package/.grok/skills/prompt-sharpener/SKILL.md +54 -0
  124. package/.grok/skills/reviewing-4p-priorities/SKILL.md +72 -0
  125. package/.grok/skills/reviewing-4p-priorities/examples.md +298 -0
  126. package/.grok/skills/sequential-thinking/SKILL.md +106 -0
  127. package/.grok/skills/sequential-thinking/examples/adaptive-depth.md +542 -0
  128. package/.grok/skills/sequential-thinking/examples/branching-exploration.md +474 -0
  129. package/.grok/skills/sequential-thinking/examples/linear-reasoning.md +210 -0
  130. package/.grok/skills/sequential-thinking/examples/revision-pattern.md +304 -0
  131. package/.grok/skills/sequential-thinking/references/output-schema.md +483 -0
  132. package/.grok/skills/sequential-thinking/references/parameters.md +463 -0
  133. package/.grok/skills/sequential-thinking/references/patterns.md +666 -0
  134. package/.grok/skills/tutien/SKILL.md +74 -0
  135. package/.grok/skills/tutien/references/classification.md +64 -0
  136. package/.grok/skills/tutien/references/lore-sources.md +15 -0
  137. package/.grok/skills/tutien/references/privacy.md +33 -0
  138. package/.grok/skills/tutien/references/schema.md +75 -0
  139. package/.grok/skills/tutien/references/scoring-and-realms.md +37 -0
  140. package/.grok/skills/tutien/references/voice-and-mode.md +44 -0
  141. package/.grok/skills/tutien/scripts/adapters/generic-jsonl.mjs +82 -0
  142. package/.grok/skills/tutien/scripts/adapters/git.mjs +48 -0
  143. package/.grok/skills/tutien/scripts/adapters/plain-transcript.mjs +37 -0
  144. package/.grok/skills/tutien/scripts/analyze-history.mjs +84 -0
  145. package/.grok/skills/tutien/scripts/catalog.mjs +130 -0
  146. package/.grok/skills/tutien/scripts/classify.mjs +311 -0
  147. package/.grok/skills/tutien/scripts/command.mjs +107 -0
  148. package/.grok/skills/tutien/scripts/compare.mjs +41 -0
  149. package/.grok/skills/tutien/scripts/metrics.mjs +306 -0
  150. package/.grok/skills/tutien/scripts/normalize-events.mjs +68 -0
  151. package/.grok/skills/tutien/scripts/redact.mjs +30 -0
  152. package/.grok/skills/tutien/scripts/render-report.mjs +423 -0
  153. package/.grok/skills/tutien/scripts/run-tutien.mjs +272 -0
  154. package/.grok/skills/tutien/scripts/score.mjs +97 -0
  155. package/.grok/skills/tutien/scripts/snapshot.mjs +76 -0
  156. package/.grok/skills/tutien/scripts/villains.mjs +196 -0
  157. package/.grok/skills/vibekit-init/SKILL.md +52 -0
  158. package/.grok/skills/visual-design-loop/SKILL.md +103 -0
  159. package/.grok/skills/visual-design-loop/agents/openai.yaml +4 -0
  160. package/.vibekit/docs/BACKBONE_REFERENCE.md +3 -1
  161. package/.vibekit/docs/INSTALL.md +11 -7
  162. package/.vibekit/docs/SECURITY_MODEL.md +1 -1
  163. package/.vibekit/docs/TOOLING_GUIDE.md +5 -0
  164. package/.vibekit/docs/templates/CONTEXT_TEMPLATE.md +1 -1
  165. package/.vibekit/init/CLAUDE-template.md +3 -0
  166. package/.vibekit/init/FIRST_PROMPT.md +1 -1
  167. package/.vibekit/init/FIRST_TIME_INIT.md +2 -2
  168. package/.vibekit/scripts/doctor.mjs +11 -4
  169. package/.vibekit/scripts/mvck.mjs +27 -12
  170. package/.vibekit/scripts/pack-dry-run.mjs +38 -3
  171. package/.vibekit/scripts/test-install.mjs +8 -0
  172. package/.vibekit/scripts/validate-kit.mjs +116 -41
  173. package/.vibekit/skills/agentshield-security-review/scripts/agentshield_repo_probe.py +28 -3
  174. package/.vibekit/skills/claim/SKILL.md +82 -0
  175. package/.vibekit/skills/prompt-sharpener/SKILL.md +54 -0
  176. package/.vibekit/skills/skills-manifest.json +27 -0
  177. package/.vibekit/skills/tutien/SKILL.md +74 -0
  178. package/.vibekit/skills/tutien/references/classification.md +64 -0
  179. package/.vibekit/skills/tutien/references/lore-sources.md +15 -0
  180. package/.vibekit/skills/tutien/references/privacy.md +33 -0
  181. package/.vibekit/skills/tutien/references/schema.md +75 -0
  182. package/.vibekit/skills/tutien/references/scoring-and-realms.md +37 -0
  183. package/.vibekit/skills/tutien/references/voice-and-mode.md +44 -0
  184. package/.vibekit/skills/tutien/scripts/adapters/generic-jsonl.mjs +82 -0
  185. package/.vibekit/skills/tutien/scripts/adapters/git.mjs +48 -0
  186. package/.vibekit/skills/tutien/scripts/adapters/plain-transcript.mjs +37 -0
  187. package/.vibekit/skills/tutien/scripts/analyze-history.mjs +84 -0
  188. package/.vibekit/skills/tutien/scripts/catalog.mjs +130 -0
  189. package/.vibekit/skills/tutien/scripts/classify.mjs +311 -0
  190. package/.vibekit/skills/tutien/scripts/command.mjs +107 -0
  191. package/.vibekit/skills/tutien/scripts/compare.mjs +41 -0
  192. package/.vibekit/skills/tutien/scripts/metrics.mjs +306 -0
  193. package/.vibekit/skills/tutien/scripts/normalize-events.mjs +68 -0
  194. package/.vibekit/skills/tutien/scripts/redact.mjs +30 -0
  195. package/.vibekit/skills/tutien/scripts/render-report.mjs +423 -0
  196. package/.vibekit/skills/tutien/scripts/run-tutien.mjs +272 -0
  197. package/.vibekit/skills/tutien/scripts/score.mjs +97 -0
  198. package/.vibekit/skills/tutien/scripts/snapshot.mjs +76 -0
  199. package/.vibekit/skills/tutien/scripts/villains.mjs +196 -0
  200. package/.vibekit/skills/vibekit-init/SKILL.md +2 -2
  201. package/AGENTS.md +2 -2
  202. package/CHANGELOG.md +40 -0
  203. package/README.md +60 -51
  204. package/backbone.yml +2 -1
  205. package/docs/README.vi.md +61 -52
  206. package/docs/README.zh-CN.md +277 -0
  207. package/package.json +15 -4
@@ -0,0 +1,536 @@
1
+ # Metagame Operations - Examples
2
+
3
+ Advanced frameworks for high-stakes problem-solving and rapid iteration.
4
+
5
+ ---
6
+
7
+ ## OODA Loop Examples
8
+
9
+ ### Example 1: Product Feature Development
10
+
11
+ **Turn 1: Start**
12
+ ```
13
+ /clearthought ooda_loop action=start We need to improve checkout conversion rate
14
+ ```
15
+
16
+ **Output:**
17
+ ```json
18
+ {
19
+ "toolOperation": "ooda_loop",
20
+ "action": "start",
21
+ "currentPhase": "observe",
22
+ "loopNumber": 1,
23
+ "nodes": [],
24
+ "hypotheses": {},
25
+ "metrics": {
26
+ "completedLoops": 0,
27
+ "avgLoopTimeMs": 0,
28
+ "evidenceQuality": 0,
29
+ "learningRate": 0
30
+ },
31
+ "phaseChecklist": {
32
+ "observe": ["data_collected", "anomalies_noted", "baseline_established"],
33
+ "orient": ["patterns_identified", "context_analyzed", "assumptions_listed"],
34
+ "decide": ["options_generated", "criteria_defined", "decision_made"],
35
+ "act": ["action_planned", "execution_started", "feedback_mechanism"]
36
+ },
37
+ "config": {
38
+ "maxLoopTimeMs": 300000,
39
+ "autoAdvance": true,
40
+ "minEvidence": 3,
41
+ "carryForwardHypotheses": true
42
+ },
43
+ "sessionContext": {
44
+ "sessionId": "conversation"
45
+ }
46
+ }
47
+ ```
48
+
49
+ **Turn 2: Observe**
50
+ ```
51
+ /clearthought ooda_loop action=continue evidence=["data_collected: 67% cart abandonment", "anomalies_noted: spike at payment step", "baseline_established: 15% conversion"]
52
+ ```
53
+
54
+ **Output:**
55
+ ```json
56
+ {
57
+ "toolOperation": "ooda_loop",
58
+ "action": "continue",
59
+ "currentPhase": "observe",
60
+ "loopNumber": 1,
61
+ "nodes": [
62
+ {
63
+ "phase": "observe",
64
+ "content": "Collected: 67% cart abandonment at payment step, current 15% conversion",
65
+ "timestamp": "2026-04-05T10:30:00Z",
66
+ "evidence": ["data_collected", "anomalies_noted", "baseline_established"]
67
+ }
68
+ ],
69
+ "metrics": {
70
+ "completedLoops": 0,
71
+ "avgLoopTimeMs": 0,
72
+ "evidenceQuality": 0.8,
73
+ "learningRate": 0
74
+ },
75
+ "autoAdvancing": true,
76
+ "nextPhase": "orient",
77
+ "sessionContext": {
78
+ "sessionId": "conversation"
79
+ }
80
+ }
81
+ ```
82
+
83
+ **Turn 3: Orient (Auto-Advanced)**
84
+ ```
85
+ /clearthought ooda_loop action=continue evidence=["patterns_identified: users confused by payment form", "context_analyzed: mobile checkout broken", "assumptions_listed: form too long"]
86
+ ```
87
+
88
+ **Turn 4: Decide**
89
+ ```
90
+ /clearthought ooda_loop action=continue decision={"options": ["Simplify form", "Fix mobile", "Add express checkout"], "selected": "Fix mobile", "rationale": "Highest impact, affects 70% of users"}
91
+ ```
92
+
93
+ **Turn 5: Act**
94
+ ```
95
+ /clearthought ooda_loop action=continue action={"action": "Fix mobile checkout", "outcome": "Deployed fix, monitoring conversion", "metrics": {"conversion": "21%", "improvement": "+6%"}}
96
+ ```
97
+
98
+ **Turn 6: Complete Loop & Advance**
99
+ ```
100
+ /clearthought ooda_loop action=advance
101
+ ```
102
+
103
+ **Output (Loop Completed):**
104
+ ```json
105
+ {
106
+ "toolOperation": "ooda_loop",
107
+ "action": "advance",
108
+ "currentPhase": "observe",
109
+ "loopNumber": 2,
110
+ "nodes": [
111
+ {"phase": "observe", "content": "...", "timestamp": "..."},
112
+ {"phase": "orient", "content": "...", "timestamp": "..."},
113
+ {"phase": "decide", "content": "...", "timestamp": "..."},
114
+ {"phase": "act", "content": "...", "timestamp": "..."}
115
+ ],
116
+ "hypotheses": {
117
+ "mobile_checkout_broken": {
118
+ "text": "Mobile checkout bug causing 67% abandonment",
119
+ "status": "validated",
120
+ "validatedAt": "2026-04-05T10:45:00Z"
121
+ }
122
+ },
123
+ "metrics": {
124
+ "completedLoops": 1,
125
+ "avgLoopTimeMs": 900000,
126
+ "evidenceQuality": 0.85,
127
+ "learningRate": 1.0
128
+ },
129
+ "loopSummary": {
130
+ "observed": "67% abandonment at payment",
131
+ "oriented": "Mobile checkout broken",
132
+ "decided": "Fix mobile",
133
+ "acted": "Deployed fix, +6% conversion"
134
+ },
135
+ "sessionContext": {
136
+ "sessionId": "conversation"
137
+ }
138
+ }
139
+ ```
140
+
141
+ ---
142
+
143
+ ## Ulysses Protocol Examples
144
+
145
+ ### Example 1: Critical Bug Fix
146
+
147
+ **Turn 1: Start High-Stakes Session**
148
+ ```
149
+ /clearthought ulysses_protocol action=start Critical: Payment gateway returning 500 errors, affecting 40% of transactions
150
+ ```
151
+
152
+ **Output:**
153
+ ```json
154
+ {
155
+ "toolOperation": "ulysses_protocol",
156
+ "action": "start",
157
+ "currentPhase": "reconnaissance",
158
+ "gates": [
159
+ {
160
+ "phase": "reconnaissance",
161
+ "status": "open",
162
+ "entryCriteria": ["scope_defined", "stakeholders_identified", "impact_assessed"],
163
+ "exitCriteria": ["risks_catalogued", "resources_allocated", "timeline_established"],
164
+ "entryMet": [],
165
+ "exitMet": []
166
+ },
167
+ {
168
+ "phase": "planning",
169
+ "status": "locked",
170
+ "entryCriteria": ["approach_selected", "tasks_defined", "dependencies_mapped"],
171
+ "exitCriteria": ["plan_validated", "risks_mitigated", "team_aligned"],
172
+ "entryMet": [],
173
+ "exitMet": []
174
+ },
175
+ {
176
+ "phase": "implementation",
177
+ "status": "locked",
178
+ "entryCriteria": ["environment_ready", "tests_prepared", "rollback_planned"],
179
+ "exitCriteria": ["solution_implemented", "tests_passed", "code_reviewed"],
180
+ "entryMet": [],
181
+ "exitMet": []
182
+ },
183
+ {
184
+ "phase": "validation",
185
+ "status": "locked",
186
+ "entryCriteria": ["solution_deployed", "monitoring_active", "success_criteria_defined"],
187
+ "exitCriteria": ["success_validated", "side_effects_checked", "documentation_complete"],
188
+ "entryMet": [],
189
+ "exitMet": []
190
+ },
191
+ {
192
+ "phase": "ship_or_abort",
193
+ "status": "locked",
194
+ "entryCriteria": ["decision_ready"],
195
+ "exitCriteria": ["decision_executed"],
196
+ "entryMet": [],
197
+ "exitMet": []
198
+ }
199
+ ],
200
+ "nodes": [],
201
+ "metrics": {
202
+ "gatesPassed": 0,
203
+ "iteration": 0,
204
+ "confidence": 0,
205
+ "scopeDrift": 0,
206
+ "timeSpentMs": 0
207
+ },
208
+ "constraints": {
209
+ "timeboxMs": 14400000,
210
+ "maxIterations": 3,
211
+ "minConfidence": 0.9,
212
+ "maxScopeDrift": 0.3
213
+ },
214
+ "policy": {
215
+ "autoEscalate": true,
216
+ "notifyWhen": ["gate_failed", "constraint_exceeded", "iteration_limit"],
217
+ "allowOverride": false
218
+ },
219
+ "sessionContext": {
220
+ "sessionId": "conversation"
221
+ }
222
+ }
223
+ ```
224
+
225
+ **Turn 2: Reconnaissance**
226
+ ```
227
+ /clearthought ulysses_protocol action=continue evidence=["scope_defined: payment 500 errors", "stakeholders_identified: eng team, customers, finance", "impact_assessed: $50k/hour revenue loss"]
228
+ ```
229
+
230
+ **Turn 3: Pass Reconnaissance Gate**
231
+ ```
232
+ /clearthought ulysses_protocol action=advance evidence=["risks_catalogued: data corruption, downtime", "resources_allocated: 2 senior engineers", "timeline_established: 4 hour deadline"]
233
+ ```
234
+
235
+ **Output (Gate Passed):**
236
+ ```json
237
+ {
238
+ "toolOperation": "ulysses_protocol",
239
+ "action": "advance",
240
+ "currentPhase": "planning",
241
+ "gates": [
242
+ {
243
+ "phase": "reconnaissance",
244
+ "status": "passed",
245
+ "entryCriteria": ["scope_defined", "stakeholders_identified", "impact_assessed"],
246
+ "exitCriteria": ["risks_catalogued", "resources_allocated", "timeline_established"],
247
+ "entryMet": ["scope_defined", "stakeholders_identified", "impact_assessed"],
248
+ "exitMet": ["risks_catalogued", "resources_allocated", "timeline_established"]
249
+ },
250
+ {
251
+ "phase": "planning",
252
+ "status": "open",
253
+ "entryCriteria": ["approach_selected", "tasks_defined", "dependencies_mapped"],
254
+ "exitCriteria": ["plan_validated", "risks_mitigated", "team_aligned"],
255
+ "entryMet": [],
256
+ "exitMet": []
257
+ },
258
+ "... other gates ..."
259
+ ],
260
+ "nodes": [
261
+ {
262
+ "phase": "reconnaissance",
263
+ "content": "Identified: Payment 500 errors affecting 40% transactions, $50k/hour loss",
264
+ "timestamp": "2026-04-05T10:30:00Z"
265
+ },
266
+ {
267
+ "phase": "reconnaissance",
268
+ "content": "Resources: 2 senior engineers, 4 hour deadline",
269
+ "timestamp": "2026-04-05T10:32:00Z"
270
+ }
271
+ ],
272
+ "metrics": {
273
+ "gatesPassed": 1,
274
+ "iteration": 2,
275
+ "confidence": 0.7,
276
+ "scopeDrift": 0,
277
+ "timeSpentMs": 120000
278
+ },
279
+ "gateTransition": {
280
+ "from": "reconnaissance",
281
+ "to": "planning",
282
+ "success": true
283
+ },
284
+ "sessionContext": {
285
+ "sessionId": "conversation"
286
+ }
287
+ }
288
+ ```
289
+
290
+ **Turn 4-N: Continue through Planning → Implementation → Validation**
291
+
292
+ **Final Turn: Ship Decision**
293
+ ```
294
+ /clearthought ulysses_protocol action=decide rationale="All tests passed, error rate reduced to 0.1%, monitoring shows stable performance"
295
+ ```
296
+
297
+ **Output:**
298
+ ```json
299
+ {
300
+ "toolOperation": "ulysses_protocol",
301
+ "action": "decide",
302
+ "currentPhase": "ship_or_abort",
303
+ "finalDecision": {
304
+ "decision": "ship",
305
+ "rationale": "All tests passed, error rate reduced to 0.1%, monitoring shows stable performance",
306
+ "timestamp": "2026-04-05T14:30:00Z",
307
+ "confidence": 0.95
308
+ },
309
+ "gates": [
310
+ {"phase": "reconnaissance", "status": "passed"},
311
+ {"phase": "planning", "status": "passed"},
312
+ {"phase": "implementation", "status": "passed"},
313
+ {"phase": "validation", "status": "passed"},
314
+ {"phase": "ship_or_abort", "status": "passed"}
315
+ ],
316
+ "metrics": {
317
+ "gatesPassed": 5,
318
+ "iteration": 12,
319
+ "confidence": 0.95,
320
+ "scopeDrift": 0.05,
321
+ "timeSpentMs": 12600000
322
+ },
323
+ "summary": "Successfully resolved payment gateway errors in 3.5 hours, under budget and constraints",
324
+ "sessionContext": {
325
+ "sessionId": "conversation"
326
+ }
327
+ }
328
+ ```
329
+
330
+ ---
331
+
332
+ ### Example 2: Ulysses Export (Markdown Report)
333
+
334
+ **Input:**
335
+ ```
336
+ /clearthought ulysses_protocol action=export
337
+ ```
338
+
339
+ **Output:**
340
+ ```json
341
+ {
342
+ "toolOperation": "ulysses_protocol",
343
+ "action": "export",
344
+ "format": "markdown",
345
+ "export": "# Ulysses Protocol Session Report\n\n**Session:** conversation\n**Stakes:** Critical\n**Status:** Complete\n\n## Gates Status\n\n### ✅ Reconnaissance (PASSED)\n- Status: passed\n- Entry criteria: [x] scope_defined [x] stakeholders_identified [x] impact_assessed\n- Exit criteria: [x] risks_catalogued [x] resources_allocated [x] timeline_established\n\n### ✅ Planning (PASSED)\n...\n\n## Metrics\n- Gates Passed: 5/5\n- Total Iterations: 12\n- Confidence: 0.95\n- Time Spent: 3.5 hours\n\n## Final Decision\n✅ **SHIP**\n\n**Rationale:** All tests passed, error rate reduced to 0.1%\n**Confidence:** 0.95\n\n## Phase History\n\n### Reconnaissance\n- Identified payment errors affecting 40% transactions\n- Assessed $50k/hour revenue impact\n\n### Planning\n- Debugged gateway timeout issue\n- Planned database connection pool fix\n\n### Implementation\n- Increased connection pool size\n- Added retry logic with exponential backoff\n- Deployed canary release\n\n### Validation\n- Monitored error rates: 500 errors → 0.1%\n- Performance: p95 latency 120ms → 45ms\n- All regression tests passed\n\n## Constraints\n- Timebox: 4 hours (used 3.5h) ✅\n- Max Iterations: 3 (used 2) ✅\n- Min Confidence: 0.9 (achieved 0.95) ✅\n- Max Scope Drift: 0.3 (actual 0.05) ✅\n\n## Lessons Learned\n1. Connection pool was undersized for peak load\n2. Retry logic critical for transient errors\n3. Canary deployment allowed safe validation\n",
346
+ "sessionContext": {
347
+ "sessionId": "conversation"
348
+ }
349
+ }
350
+ ```
351
+
352
+ ---
353
+
354
+ ## PDR Reasoning Examples
355
+
356
+ ### Example: Multi-Pass Analysis
357
+
358
+ **Turn 1: Start Session**
359
+ ```
360
+ /clearthought pdr_reasoning action=start Analyze performance bottlenecks in API
361
+ ```
362
+
363
+ **Output:**
364
+ ```json
365
+ {
366
+ "toolOperation": "pdr_reasoning",
367
+ "action": "start",
368
+ "sessionId": "pdr-session-123",
369
+ "passes": [
370
+ {"name": "scan", "defaultApproach": "sequential", "budget": {"subjectsLimit": 10}},
371
+ {"name": "cluster", "defaultApproach": "tree", "budget": {"subjectsLimit": 5}},
372
+ {"name": "select", "defaultApproach": "beam", "budget": {"subjectsLimit": 3}},
373
+ {"name": "deepen", "defaultApproach": "graph", "budget": {"subjectsLimit": 3}},
374
+ {"name": "synthesize", "defaultApproach": "mcts", "budget": {"subjectsLimit": 1}}
375
+ ],
376
+ "maxPasses": 5,
377
+ "stopConditions": {
378
+ "maxTimeMs": 1800000,
379
+ "minImprovement": 0.05,
380
+ "confidenceThreshold": 0.9
381
+ },
382
+ "suggestions": ["Add subjects with 'add_subject' action"],
383
+ "sessionContext": {
384
+ "sessionId": "conversation"
385
+ }
386
+ }
387
+ ```
388
+
389
+ **Turn 2: Add Subjects**
390
+ ```
391
+ /clearthought pdr_reasoning action=add_subject title="Database query optimization" description="Slow N+1 queries" tags=["performance", "database"]
392
+ ```
393
+
394
+ **Turn 3: Run Scan Pass**
395
+ ```
396
+ /clearthought pdr_reasoning action=run_pass passName=scan
397
+ ```
398
+
399
+ **Output:**
400
+ ```json
401
+ {
402
+ "toolOperation": "pdr_reasoning",
403
+ "action": "run_pass",
404
+ "sessionId": "pdr-session-123",
405
+ "passName": "scan",
406
+ "approach": "sequential",
407
+ "subjects": [
408
+ {
409
+ "id": "subject-1",
410
+ "title": "Database query optimization",
411
+ "description": "Slow N+1 queries",
412
+ "tags": ["performance", "database"],
413
+ "score": 0.85,
414
+ "confidence": 0.75
415
+ }
416
+ ],
417
+ "traces": [
418
+ "Analyzed subject-1 using sequential approach",
419
+ "Generated artifact: analysis-subject-1.md",
420
+ "Confidence: 0.75, Score: 0.85"
421
+ ],
422
+ "metrics": {
423
+ "subjectsAnalyzed": 1,
424
+ "passCompleted": true,
425
+ "avgScore": 0.85
426
+ },
427
+ "suggestions": ["Run cluster pass to group related subjects"],
428
+ "nextStepNeeded": true,
429
+ "sessionContext": {
430
+ "sessionId": "conversation"
431
+ }
432
+ }
433
+ ```
434
+
435
+ **Turn 4: Select Best**
436
+ ```
437
+ /clearthought pdr_reasoning action=select criteria={"minScore": 0.8, "topK": 1}
438
+ ```
439
+
440
+ **Output:**
441
+ ```json
442
+ {
443
+ "toolOperation": "pdr_reasoning",
444
+ "action": "select",
445
+ "sessionId": "pdr-session-123",
446
+ "selected": ["subject-1"],
447
+ "criteria": {
448
+ "minScore": 0.8,
449
+ "topK": 1
450
+ },
451
+ "summary": {
452
+ "totalSubjects": 1,
453
+ "selectedCount": 1,
454
+ "avgScore": 0.85,
455
+ "topSubjects": [
456
+ {"id": "subject-1", "title": "Database query optimization", "score": 0.85}
457
+ ]
458
+ },
459
+ "suggestions": ["Export results with 'export' action"],
460
+ "sessionContext": {
461
+ "sessionId": "conversation"
462
+ }
463
+ }
464
+ ```
465
+
466
+ ---
467
+
468
+ ## Comparison: OODA vs Ulysses
469
+
470
+ ### When to Use OODA
471
+
472
+ **Characteristics:**
473
+ - Rapid iteration
474
+ - Hypothesis-driven
475
+ - Auto-advancing phases
476
+ - Learning through cycles
477
+ - Good for: product development, experiments, iterative debugging
478
+
479
+ **Example Scenario:** "Test different UI variations to improve conversion"
480
+
481
+ ---
482
+
483
+ ### When to Use Ulysses
484
+
485
+ **Characteristics:**
486
+ - Phased governance
487
+ - Strict gate validation
488
+ - High-stakes decisions
489
+ - Constraint enforcement
490
+ - Good for: production incidents, critical releases, major migrations
491
+
492
+ **Example Scenario:** "Fix payment system bug affecting revenue"
493
+
494
+ ---
495
+
496
+ ## Advanced: Constraint Escalation
497
+
498
+ **Ulysses with Constraint Violation:**
499
+
500
+ ```json
501
+ {
502
+ "toolOperation": "ulysses_protocol",
503
+ "action": "continue",
504
+ "currentPhase": "implementation",
505
+ "constraintViolations": [
506
+ "⚠️ Time constraint: 3.8h / 4h used (95%)",
507
+ "⚠️ Iteration limit: 3/3 iterations in implementation"
508
+ ],
509
+ "escalation": {
510
+ "triggered": true,
511
+ "reason": "Iteration limit reached",
512
+ "action": "abort",
513
+ "escalationNode": {
514
+ "phase": "implementation",
515
+ "content": "🚨 ESCALATION: Iteration limit reached, forcing decision",
516
+ "escalated": true
517
+ }
518
+ },
519
+ "finalDecision": {
520
+ "decision": "abort",
521
+ "rationale": "Cannot achieve confidence within constraints",
522
+ "timestamp": "2026-04-05T14:28:00Z",
523
+ "confidence": 0.65
524
+ },
525
+ "sessionContext": {
526
+ "sessionId": "conversation"
527
+ }
528
+ }
529
+ ```
530
+
531
+ ---
532
+
533
+ **For more examples:**
534
+ - [sequential-thinking.md](sequential-thinking.md)
535
+ - [decision-framework.md](decision-framework.md)
536
+ - `../references/output-schemas.md`