minimal-vibe-coding-kit 0.3.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 (223) hide show
  1. package/.agents/skills/agentshield-security-review/SKILL.md +75 -0
  2. package/.agents/skills/agentshield-security-review/agents/openai.yaml +5 -0
  3. package/.agents/skills/agentshield-security-review/references/native-install.md +97 -0
  4. package/.agents/skills/agentshield-security-review/references/report-template.md +54 -0
  5. package/.agents/skills/agentshield-security-review/references/review-checklist.md +45 -0
  6. package/.agents/skills/agentshield-security-review/scripts/agentshield_repo_probe.py +110 -0
  7. package/.agents/skills/autoresearch-coding/README.md +15 -0
  8. package/.agents/skills/autoresearch-coding/SKILL.md +101 -0
  9. package/.agents/skills/autoresearch-coding/references/experiment-contract.md +13 -0
  10. package/.agents/skills/autoresearch-coding/references/metric-extraction.md +8 -0
  11. package/.agents/skills/autoresearch-coding/references/result-ledger.md +15 -0
  12. package/.agents/skills/autoresearch-coding/scripts/log_result.py +24 -0
  13. package/.agents/skills/autoresearch-coding/scripts/run_logged.py +30 -0
  14. package/.agents/skills/clearthought/SKILL.md +100 -0
  15. package/.agents/skills/clearthought/examples/decision-framework.md +441 -0
  16. package/.agents/skills/clearthought/examples/metagame-examples.md +536 -0
  17. package/.agents/skills/clearthought/examples/sequential-thinking.md +380 -0
  18. package/.agents/skills/clearthought/references/output-schemas.md +494 -0
  19. package/.agents/skills/clearthought/references/parameter-reference.md +482 -0
  20. package/.agents/skills/coding-level/SKILL.md +27 -0
  21. package/.agents/skills/coding-level/references/level-0.md +131 -0
  22. package/.agents/skills/coding-level/references/level-1.md +118 -0
  23. package/.agents/skills/coding-level/references/level-2.md +140 -0
  24. package/.agents/skills/coding-level/references/level-3.md +142 -0
  25. package/.agents/skills/coding-level/references/level-4.md +152 -0
  26. package/.agents/skills/coding-level/references/level-5.md +84 -0
  27. package/.agents/skills/daily-workflow-curator/SKILL.md +52 -0
  28. package/.agents/skills/memento/SKILL.md +36 -0
  29. package/.agents/skills/reviewing-4p-priorities/SKILL.md +72 -0
  30. package/.agents/skills/reviewing-4p-priorities/examples.md +298 -0
  31. package/.agents/skills/sequential-thinking/SKILL.md +106 -0
  32. package/.agents/skills/sequential-thinking/examples/adaptive-depth.md +542 -0
  33. package/.agents/skills/sequential-thinking/examples/branching-exploration.md +474 -0
  34. package/.agents/skills/sequential-thinking/examples/linear-reasoning.md +210 -0
  35. package/.agents/skills/sequential-thinking/examples/revision-pattern.md +304 -0
  36. package/.agents/skills/sequential-thinking/references/output-schema.md +483 -0
  37. package/.agents/skills/sequential-thinking/references/parameters.md +463 -0
  38. package/.agents/skills/sequential-thinking/references/patterns.md +666 -0
  39. package/.agents/skills/vibekit-init/SKILL.md +52 -0
  40. package/.agents/skills/visual-design-loop/SKILL.md +103 -0
  41. package/.agents/skills/visual-design-loop/agents/openai.yaml +4 -0
  42. package/.claude/agents/code-reviewer.md +11 -0
  43. package/.claude/agents/context-architect.md +11 -0
  44. package/.claude/agents/debug-fixer.md +11 -0
  45. package/.claude/agents/hypothesis-planner.md +11 -0
  46. package/.claude/agents/implementation-hacker.md +11 -0
  47. package/.claude/agents/research-coordinator.md +11 -0
  48. package/.claude/agents/results-analyst.md +11 -0
  49. package/.claude/agents/security-reviewer.md +11 -0
  50. package/.claude/agents/test-runner.md +11 -0
  51. package/.claude/agents/workflow-curator.md +11 -0
  52. package/.claude/commands/autoresearch-coding.md +15 -0
  53. package/.claude/commands/council.md +7 -0
  54. package/.claude/commands/daily-enhance.md +7 -0
  55. package/.claude/commands/init-vibe.md +7 -0
  56. package/.claude/commands/security-scan.md +7 -0
  57. package/.claude/commands/vibe-finalize.md +7 -0
  58. package/.claude/rules/autoresearch.md +3 -0
  59. package/.claude/rules/security.md +3 -0
  60. package/.claude/rules/tooling.md +6 -0
  61. package/.claude/rules/vibe-core.md +8 -0
  62. package/.claude/settings.json +22 -0
  63. package/.claude/skills/agentshield-security-review/SKILL.md +75 -0
  64. package/.claude/skills/agentshield-security-review/agents/openai.yaml +5 -0
  65. package/.claude/skills/agentshield-security-review/references/native-install.md +97 -0
  66. package/.claude/skills/agentshield-security-review/references/report-template.md +54 -0
  67. package/.claude/skills/agentshield-security-review/references/review-checklist.md +45 -0
  68. package/.claude/skills/agentshield-security-review/scripts/agentshield_repo_probe.py +110 -0
  69. package/.claude/skills/autoresearch-coding/README.md +15 -0
  70. package/.claude/skills/autoresearch-coding/SKILL.md +101 -0
  71. package/.claude/skills/autoresearch-coding/references/experiment-contract.md +13 -0
  72. package/.claude/skills/autoresearch-coding/references/metric-extraction.md +8 -0
  73. package/.claude/skills/autoresearch-coding/references/result-ledger.md +15 -0
  74. package/.claude/skills/autoresearch-coding/scripts/log_result.py +24 -0
  75. package/.claude/skills/autoresearch-coding/scripts/run_logged.py +30 -0
  76. package/.claude/skills/clearthought/SKILL.md +100 -0
  77. package/.claude/skills/clearthought/examples/decision-framework.md +441 -0
  78. package/.claude/skills/clearthought/examples/metagame-examples.md +536 -0
  79. package/.claude/skills/clearthought/examples/sequential-thinking.md +380 -0
  80. package/.claude/skills/clearthought/references/output-schemas.md +494 -0
  81. package/.claude/skills/clearthought/references/parameter-reference.md +482 -0
  82. package/.claude/skills/coding-level/SKILL.md +27 -0
  83. package/.claude/skills/coding-level/references/level-0.md +131 -0
  84. package/.claude/skills/coding-level/references/level-1.md +118 -0
  85. package/.claude/skills/coding-level/references/level-2.md +140 -0
  86. package/.claude/skills/coding-level/references/level-3.md +142 -0
  87. package/.claude/skills/coding-level/references/level-4.md +152 -0
  88. package/.claude/skills/coding-level/references/level-5.md +84 -0
  89. package/.claude/skills/daily-workflow-curator/SKILL.md +52 -0
  90. package/.claude/skills/memento/SKILL.md +36 -0
  91. package/.claude/skills/reviewing-4p-priorities/SKILL.md +72 -0
  92. package/.claude/skills/reviewing-4p-priorities/examples.md +298 -0
  93. package/.claude/skills/sequential-thinking/SKILL.md +106 -0
  94. package/.claude/skills/sequential-thinking/examples/adaptive-depth.md +542 -0
  95. package/.claude/skills/sequential-thinking/examples/branching-exploration.md +474 -0
  96. package/.claude/skills/sequential-thinking/examples/linear-reasoning.md +210 -0
  97. package/.claude/skills/sequential-thinking/examples/revision-pattern.md +304 -0
  98. package/.claude/skills/sequential-thinking/references/output-schema.md +483 -0
  99. package/.claude/skills/sequential-thinking/references/parameters.md +463 -0
  100. package/.claude/skills/sequential-thinking/references/patterns.md +666 -0
  101. package/.claude/skills/vibekit-init/SKILL.md +52 -0
  102. package/.claude/skills/visual-design-loop/SKILL.md +103 -0
  103. package/.claude/skills/visual-design-loop/agents/openai.yaml +4 -0
  104. package/.codex/README.md +11 -0
  105. package/.codex/config.example.toml +8 -0
  106. package/.codex-plugin/plugin.json +10 -0
  107. package/.cursor/commands/autoresearch-coding.md +11 -0
  108. package/.cursor/commands/council.md +3 -0
  109. package/.cursor/commands/daily-enhance.md +3 -0
  110. package/.cursor/commands/init-vibe.md +3 -0
  111. package/.cursor/commands/security-scan.md +3 -0
  112. package/.cursor/commands/vibe-finalize.md +3 -0
  113. package/.cursor/rules/001-vibe-core.mdc +6 -0
  114. package/.cursor/rules/010-init.mdc +7 -0
  115. package/.cursor/rules/020-security-agentshield.mdc +7 -0
  116. package/.cursor/rules/030-autoresearch-loop.mdc +7 -0
  117. package/.cursor/settings.json +22 -0
  118. package/.cursor/skills/clearthought/SKILL.md +100 -0
  119. package/.cursor/skills/clearthought/examples/decision-framework.md +441 -0
  120. package/.cursor/skills/clearthought/examples/metagame-examples.md +536 -0
  121. package/.cursor/skills/clearthought/examples/sequential-thinking.md +380 -0
  122. package/.cursor/skills/clearthought/references/output-schemas.md +494 -0
  123. package/.cursor/skills/clearthought/references/parameter-reference.md +482 -0
  124. package/.cursor/skills/coding-level/SKILL.md +27 -0
  125. package/.cursor/skills/coding-level/references/level-0.md +131 -0
  126. package/.cursor/skills/coding-level/references/level-1.md +118 -0
  127. package/.cursor/skills/coding-level/references/level-2.md +140 -0
  128. package/.cursor/skills/coding-level/references/level-3.md +142 -0
  129. package/.cursor/skills/coding-level/references/level-4.md +152 -0
  130. package/.cursor/skills/coding-level/references/level-5.md +84 -0
  131. package/.cursor/skills/memento/SKILL.md +36 -0
  132. package/.cursor/skills/reviewing-4p-priorities/SKILL.md +72 -0
  133. package/.cursor/skills/reviewing-4p-priorities/examples.md +298 -0
  134. package/.cursor/skills/sequential-thinking/SKILL.md +106 -0
  135. package/.cursor/skills/sequential-thinking/examples/adaptive-depth.md +542 -0
  136. package/.cursor/skills/sequential-thinking/examples/branching-exploration.md +474 -0
  137. package/.cursor/skills/sequential-thinking/examples/linear-reasoning.md +210 -0
  138. package/.cursor/skills/sequential-thinking/examples/revision-pattern.md +304 -0
  139. package/.cursor/skills/sequential-thinking/references/output-schema.md +483 -0
  140. package/.cursor/skills/sequential-thinking/references/parameters.md +463 -0
  141. package/.cursor/skills/sequential-thinking/references/patterns.md +666 -0
  142. package/.vbkit-commands/autoresearch-coding.md +11 -0
  143. package/.vbkit-commands/council.md +3 -0
  144. package/.vbkit-commands/daily-enhance.md +3 -0
  145. package/.vbkit-commands/init-vibe.md +3 -0
  146. package/.vbkit-commands/security-scan.md +3 -0
  147. package/.vbkit-commands/vibe-finalize.md +3 -0
  148. package/.vbkit-docs/AUTORESEARCH_LEDGER.md +11 -0
  149. package/.vbkit-docs/BACKBONE_REFERENCE.md +59 -0
  150. package/.vbkit-docs/INSTALL.md +120 -0
  151. package/.vbkit-docs/RESEARCH_NOTES.md +22 -0
  152. package/.vbkit-docs/SECURITY_MODEL.md +40 -0
  153. package/.vbkit-docs/TOOLING_GUIDE.md +22 -0
  154. package/.vbkit-docs/backbone.schema.json +110 -0
  155. package/.vbkit-docs/templates/CONTEXT_TEMPLATE.md +47 -0
  156. package/.vbkit-docs/templates/PRD_TEMPLATE.md +48 -0
  157. package/.vbkit-scripts/agentshield-probe.mjs +22 -0
  158. package/.vbkit-scripts/daily-enhance.mjs +62 -0
  159. package/.vbkit-scripts/doctor.mjs +323 -0
  160. package/.vbkit-scripts/init-backbone.mjs +628 -0
  161. package/.vbkit-scripts/mvck.mjs +444 -0
  162. package/.vbkit-scripts/pack-dry-run.mjs +16 -0
  163. package/.vbkit-scripts/test-install.mjs +118 -0
  164. package/.vbkit-scripts/validate-kit.mjs +419 -0
  165. package/.vbkit-scripts/vibekit-finalize.mjs +185 -0
  166. package/AGENTS.md +60 -0
  167. package/CHANGELOG.md +34 -0
  168. package/CLAUDE-template.md +52 -0
  169. package/CODE_OF_CONDUCT.md +18 -0
  170. package/CONTRIBUTING.md +28 -0
  171. package/FIRST_PROMPT.md +54 -0
  172. package/FIRST_TIME_INIT.md +165 -0
  173. package/LICENSE +21 -0
  174. package/README.md +493 -0
  175. package/README.vi.md +431 -0
  176. package/SECURITY.md +28 -0
  177. package/backbone.yml +103 -0
  178. package/bin/mvck.js +2 -0
  179. package/bin/vibe-kit.js +2 -0
  180. package/install.ps1 +14 -0
  181. package/install.sh +8 -0
  182. package/package.json +92 -0
  183. package/skills/agentshield-security-review/SKILL.md +75 -0
  184. package/skills/agentshield-security-review/agents/openai.yaml +5 -0
  185. package/skills/agentshield-security-review/references/native-install.md +97 -0
  186. package/skills/agentshield-security-review/references/report-template.md +54 -0
  187. package/skills/agentshield-security-review/references/review-checklist.md +45 -0
  188. package/skills/agentshield-security-review/scripts/agentshield_repo_probe.py +110 -0
  189. package/skills/autoresearch-coding/README.md +15 -0
  190. package/skills/autoresearch-coding/SKILL.md +101 -0
  191. package/skills/autoresearch-coding/references/experiment-contract.md +13 -0
  192. package/skills/autoresearch-coding/references/metric-extraction.md +8 -0
  193. package/skills/autoresearch-coding/references/result-ledger.md +15 -0
  194. package/skills/autoresearch-coding/scripts/log_result.py +24 -0
  195. package/skills/autoresearch-coding/scripts/run_logged.py +30 -0
  196. package/skills/clearthought/SKILL.md +100 -0
  197. package/skills/clearthought/examples/decision-framework.md +441 -0
  198. package/skills/clearthought/examples/metagame-examples.md +536 -0
  199. package/skills/clearthought/examples/sequential-thinking.md +380 -0
  200. package/skills/clearthought/references/output-schemas.md +494 -0
  201. package/skills/clearthought/references/parameter-reference.md +482 -0
  202. package/skills/coding-level/SKILL.md +27 -0
  203. package/skills/coding-level/references/level-0.md +131 -0
  204. package/skills/coding-level/references/level-1.md +118 -0
  205. package/skills/coding-level/references/level-2.md +140 -0
  206. package/skills/coding-level/references/level-3.md +142 -0
  207. package/skills/coding-level/references/level-4.md +152 -0
  208. package/skills/coding-level/references/level-5.md +84 -0
  209. package/skills/daily-workflow-curator/SKILL.md +52 -0
  210. package/skills/memento/SKILL.md +36 -0
  211. package/skills/reviewing-4p-priorities/SKILL.md +72 -0
  212. package/skills/reviewing-4p-priorities/examples.md +298 -0
  213. package/skills/sequential-thinking/SKILL.md +106 -0
  214. package/skills/sequential-thinking/examples/adaptive-depth.md +542 -0
  215. package/skills/sequential-thinking/examples/branching-exploration.md +474 -0
  216. package/skills/sequential-thinking/examples/linear-reasoning.md +210 -0
  217. package/skills/sequential-thinking/examples/revision-pattern.md +304 -0
  218. package/skills/sequential-thinking/references/output-schema.md +483 -0
  219. package/skills/sequential-thinking/references/parameters.md +463 -0
  220. package/skills/sequential-thinking/references/patterns.md +666 -0
  221. package/skills/vibekit-init/SKILL.md +52 -0
  222. package/skills/visual-design-loop/SKILL.md +103 -0
  223. package/skills/visual-design-loop/agents/openai.yaml +4 -0
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env python3
2
+ import argparse
3
+ import subprocess
4
+ import time
5
+ from pathlib import Path
6
+
7
+ parser = argparse.ArgumentParser(description="Run a command with timeout and log output")
8
+ parser.add_argument("command", help="Shell command to run")
9
+ parser.add_argument("--log", required=True, help="Log path")
10
+ parser.add_argument("--timeout", type=int, default=600)
11
+ args = parser.parse_args()
12
+
13
+ log = Path(args.log)
14
+ log.parent.mkdir(parents=True, exist_ok=True)
15
+ start = time.time()
16
+ try:
17
+ result = subprocess.run(args.command, shell=True, text=True, capture_output=True, timeout=args.timeout)
18
+ seconds = time.time() - start
19
+ log.write_text(result.stdout + result.stderr, encoding="utf-8", errors="ignore")
20
+ print(f"exit_code={result.returncode}")
21
+ print(f"seconds={seconds:.3f}")
22
+ print(f"log={log}")
23
+ raise SystemExit(result.returncode)
24
+ except subprocess.TimeoutExpired as exc:
25
+ seconds = time.time() - start
26
+ log.write_text((exc.stdout or "") + (exc.stderr or "") + f"\nTIMEOUT after {args.timeout}s\n", encoding="utf-8", errors="ignore")
27
+ print("exit_code=124")
28
+ print(f"seconds={seconds:.3f}")
29
+ print(f"log={log}")
30
+ raise SystemExit(124)
@@ -0,0 +1,100 @@
1
+ ---
2
+ name: clearthought
3
+ description: Structured reasoning for complex coding work. Use when requirements are ambiguous, a design/debugging decision has multiple valid paths, or a large request needs to be split into safe implementable tasks.
4
+ argument-hint: "[operation] <problem>"
5
+ user-invocable: true
6
+ effort: high
7
+ ---
8
+
9
+ # ClearThought
10
+
11
+ Use ClearThought to turn complex or ambiguous coding work into an evidence-based implementation plan.
12
+
13
+ ## Best Use
14
+
15
+ Use this skill when:
16
+
17
+ - requirements are broad, conflicting, or under-specified;
18
+ - a bug needs root-cause analysis before editing;
19
+ - an architecture or refactor decision has tradeoffs;
20
+ - a task needs to be split into small pull-request sized steps;
21
+ - the user asks for deliberate reasoning, ClearThought, or a structured decision.
22
+
23
+ ## Operations
24
+
25
+ Choose the narrowest operation that fits:
26
+
27
+ - `sequential_thinking`: decompose a complex request into ordered work.
28
+ - `debugging_approach`: isolate a broken behavior with hypotheses and checks.
29
+ - `decision_framework`: compare implementation options and choose one.
30
+ - `systems_thinking`: map components, contracts, and side effects.
31
+ - `scientific_method`: define hypothesis, metric, baseline, experiment, and result.
32
+ - `risk_review`: identify safety, security, data, and rollback risks.
33
+ - `implementation_plan`: produce an edit plan, validation plan, and review checklist.
34
+
35
+ If the operation is omitted, infer it from the request. Default to `sequential_thinking`.
36
+
37
+ ## Workflow
38
+
39
+ 1. Read `AGENTS.md` and `backbone.yml` before repo edits.
40
+ 2. Separate observed facts, assumptions, unknowns, and decisions.
41
+ 3. Pick one operation and keep the reasoning focused on the next useful action.
42
+ 4. Split the work into safe tasks with file or module ownership where possible.
43
+ 5. Define validation commands and risk checks before editing.
44
+ 6. Revisit the plan when new evidence invalidates an assumption.
45
+
46
+ ## Output
47
+
48
+ For normal coding work, return this concise structure:
49
+
50
+ ```markdown
51
+ ## ClearThought Brief
52
+
53
+ Operation: <operation>
54
+ Problem: <one sentence>
55
+ Observed facts:
56
+ - <facts from files, tests, logs, or user request>
57
+ Assumptions:
58
+ - <explicit assumptions>
59
+ Plan:
60
+ 1. <small implementable step>
61
+ 2. <small implementable step>
62
+ Validation:
63
+ - <commands or checks>
64
+ Risks:
65
+ - <risk and mitigation>
66
+ ```
67
+
68
+ For user-invoked JSON mode, return valid JSON:
69
+
70
+ ```json
71
+ {
72
+ "toolOperation": "operation_name",
73
+ "problem": "brief problem statement",
74
+ "observedFacts": [],
75
+ "assumptions": [],
76
+ "plan": [],
77
+ "validation": [],
78
+ "risks": [],
79
+ "sessionContext": {
80
+ "sessionId": "conversation"
81
+ }
82
+ }
83
+ ```
84
+
85
+ ## References And Examples
86
+
87
+ Load these only when the active task needs more detail:
88
+
89
+ - `references/parameter-reference.md`: operation parameters and accepted values.
90
+ - `references/output-schemas.md`: JSON response shapes for supported operations.
91
+ - `examples/sequential-thinking.md`: decomposition and step-by-step planning examples.
92
+ - `examples/decision-framework.md`: option comparison and tradeoff examples.
93
+ - `examples/metagame-examples.md`: OODA, Ulysses, and high-stakes reasoning examples.
94
+
95
+ ## Safety
96
+
97
+ - Do not expose long hidden reasoning. Provide concise rationale and actionable conclusions.
98
+ - Do not invent facts. Mark weak evidence as an assumption or unknown.
99
+ - Do not run package lifecycle scripts, hooks, deploys, migrations, or destructive commands just to think.
100
+ - Prefer reversible changes and small diffs when uncertainty is high.
@@ -0,0 +1,441 @@
1
+ # Decision Framework - Examples
2
+
3
+ ## Example 1: Decision Matrix
4
+
5
+ **Input:**
6
+ ```
7
+ /clearthought decision_framework framework=decision_matrix Choose deployment platform: AWS vs GCP vs Azure
8
+ ```
9
+
10
+ **Output:**
11
+ ```json
12
+ {
13
+ "toolOperation": "decision_framework",
14
+ "framework": "decision_matrix",
15
+ "decision": "Deployment platform selection",
16
+ "options": [
17
+ {"name": "AWS", "description": "Amazon Web Services"},
18
+ {"name": "GCP", "description": "Google Cloud Platform"},
19
+ {"name": "Azure", "description": "Microsoft Azure"}
20
+ ],
21
+ "criteria": [
22
+ {"name": "Cost", "weight": 0.3},
23
+ {"name": "Performance", "weight": 0.25},
24
+ {"name": "Ease of use", "weight": 0.2},
25
+ {"name": "Ecosystem", "weight": 0.15},
26
+ {"name": "Support", "weight": 0.1}
27
+ ],
28
+ "evaluations": [
29
+ {
30
+ "option": "AWS",
31
+ "scores": {
32
+ "Cost": 7,
33
+ "Performance": 9,
34
+ "Ease of use": 7,
35
+ "Ecosystem": 10,
36
+ "Support": 9
37
+ },
38
+ "weightedTotal": 8.15
39
+ },
40
+ {
41
+ "option": "GCP",
42
+ "scores": {
43
+ "Cost": 8,
44
+ "Performance": 9,
45
+ "Ease of use": 9,
46
+ "Ecosystem": 7,
47
+ "Support": 8
48
+ },
49
+ "weightedTotal": 8.25
50
+ },
51
+ {
52
+ "option": "Azure",
53
+ "scores": {
54
+ "Cost": 7,
55
+ "Performance": 8,
56
+ "Ease of use": 8,
57
+ "Ecosystem": 8,
58
+ "Support": 9
59
+ },
60
+ "weightedTotal": 7.85
61
+ }
62
+ ],
63
+ "recommended": "GCP",
64
+ "confidence": 0.87,
65
+ "rationale": "GCP scores highest on weighted criteria with best ease of use and strong performance",
66
+ "tradeOffs": "Smaller ecosystem vs AWS but better developer experience",
67
+ "nextSteps": [
68
+ "Create GCP project and set up billing",
69
+ "Provision Kubernetes cluster",
70
+ "Configure CI/CD pipeline"
71
+ ],
72
+ "sessionContext": {
73
+ "sessionId": "conversation"
74
+ }
75
+ }
76
+ ```
77
+
78
+ ---
79
+
80
+ ## Example 2: Cost-Benefit Analysis
81
+
82
+ **Input:**
83
+ ```
84
+ /clearthought decision_framework framework=cost_benefit Should we migrate to microservices?
85
+ ```
86
+
87
+ **Output:**
88
+ ```json
89
+ {
90
+ "toolOperation": "decision_framework",
91
+ "framework": "cost_benefit",
92
+ "decision": "Microservices migration",
93
+ "options": [
94
+ {"name": "Migrate to microservices", "description": "Break monolith into services"},
95
+ {"name": "Keep monolith", "description": "Improve existing architecture"}
96
+ ],
97
+ "costBenefitAnalysis": {
98
+ "Migrate to microservices": {
99
+ "costs": [
100
+ {"item": "Development time", "value": 6, "unit": "person-months"},
101
+ {"item": "Infrastructure complexity", "value": "High"},
102
+ {"item": "Learning curve", "value": "Medium"},
103
+ {"item": "Initial performance overhead", "value": "Medium"}
104
+ ],
105
+ "benefits": [
106
+ {"item": "Independent scaling", "value": "High"},
107
+ {"item": "Team autonomy", "value": "High"},
108
+ {"item": "Technology flexibility", "value": "High"},
109
+ {"item": "Fault isolation", "value": "Medium"}
110
+ ],
111
+ "netBenefit": 0.65,
112
+ "roi": "Positive after 12 months"
113
+ },
114
+ "Keep monolith": {
115
+ "costs": [
116
+ {"item": "Scaling limitations", "value": "High"},
117
+ {"item": "Deployment coupling", "value": "High"},
118
+ {"item": "Technology lock-in", "value": "Medium"}
119
+ ],
120
+ "benefits": [
121
+ {"item": "Lower complexity", "value": "High"},
122
+ {"item": "Faster development", "value": "Medium"},
123
+ {"item": "Easier debugging", "value": "Medium"}
124
+ ],
125
+ "netBenefit": 0.45,
126
+ "roi": "Immediate"
127
+ }
128
+ },
129
+ "recommended": "Migrate to microservices",
130
+ "confidence": 0.72,
131
+ "rationale": "Long-term benefits outweigh migration costs for growing teams",
132
+ "tradeOffs": "Higher complexity vs better scalability",
133
+ "conditions": [
134
+ "Team size > 10 engineers",
135
+ "Clear service boundaries exist",
136
+ "Have DevOps expertise"
137
+ ],
138
+ "sessionContext": {
139
+ "sessionId": "conversation"
140
+ }
141
+ }
142
+ ```
143
+
144
+ ---
145
+
146
+ ## Example 3: Risk Assessment
147
+
148
+ **Input:**
149
+ ```
150
+ /clearthought decision_framework framework=risk_assessment Launch new feature without full test coverage
151
+ ```
152
+
153
+ **Output:**
154
+ ```json
155
+ {
156
+ "toolOperation": "decision_framework",
157
+ "framework": "risk_assessment",
158
+ "decision": "Launch feature with incomplete tests",
159
+ "options": [
160
+ {"name": "Launch now", "description": "Release with current 60% coverage"},
161
+ {"name": "Delay for tests", "description": "Achieve 90% coverage first"}
162
+ ],
163
+ "riskAnalysis": {
164
+ "Launch now": {
165
+ "risks": [
166
+ {
167
+ "risk": "Production bugs",
168
+ "probability": 4,
169
+ "impact": 4,
170
+ "score": 16,
171
+ "mitigation": "Feature flag + gradual rollout"
172
+ },
173
+ {
174
+ "risk": "User frustration",
175
+ "probability": 3,
176
+ "impact": 3,
177
+ "score": 9,
178
+ "mitigation": "Support team on standby"
179
+ },
180
+ {
181
+ "risk": "Reputation damage",
182
+ "probability": 2,
183
+ "impact": 5,
184
+ "score": 10,
185
+ "mitigation": "Clear beta labeling"
186
+ }
187
+ ],
188
+ "totalRisk": 35,
189
+ "acceptableRisk": false
190
+ },
191
+ "Delay for tests": {
192
+ "risks": [
193
+ {
194
+ "risk": "Market opportunity loss",
195
+ "probability": 4,
196
+ "impact": 3,
197
+ "score": 12,
198
+ "mitigation": "Communicate timeline to stakeholders"
199
+ },
200
+ {
201
+ "risk": "Competitor advantage",
202
+ "probability": 3,
203
+ "impact": 2,
204
+ "score": 6,
205
+ "mitigation": "Monitor competitor launches"
206
+ }
207
+ ],
208
+ "totalRisk": 18,
209
+ "acceptableRisk": true
210
+ }
211
+ },
212
+ "recommended": "Delay for tests",
213
+ "confidence": 0.82,
214
+ "rationale": "Risk of production issues (score 35) outweighs market timing risks (score 18)",
215
+ "mitigationPlan": [
216
+ "Prioritize critical path test coverage",
217
+ "Set up staging environment for testing",
218
+ "Use 2-week sprint for test completion"
219
+ ],
220
+ "sessionContext": {
221
+ "sessionId": "conversation"
222
+ }
223
+ }
224
+ ```
225
+
226
+ ---
227
+
228
+ ## Example 4: Stakeholder Framework
229
+
230
+ **Input:**
231
+ ```
232
+ /clearthought decision_framework framework=stakeholder Pricing model change: subscription vs usage-based
233
+ ```
234
+
235
+ **Output:**
236
+ ```json
237
+ {
238
+ "toolOperation": "decision_framework",
239
+ "framework": "stakeholder",
240
+ "decision": "Pricing model selection",
241
+ "options": [
242
+ {"name": "Subscription", "description": "Fixed monthly fee"},
243
+ {"name": "Usage-based", "description": "Pay per API call"}
244
+ ],
245
+ "stakeholders": ["Users", "Sales", "Engineering", "Finance", "Support"],
246
+ "stakeholderImpact": [
247
+ {
248
+ "stakeholder": "Users",
249
+ "Subscription": {"impact": "Predictable costs", "sentiment": "positive"},
250
+ "Usage-based": {"impact": "Cost varies with usage", "sentiment": "mixed"}
251
+ },
252
+ {
253
+ "stakeholder": "Sales",
254
+ "Subscription": {"impact": "Easier to sell", "sentiment": "positive"},
255
+ "Usage-based": {"impact": "Requires usage forecasting", "sentiment": "negative"}
256
+ },
257
+ {
258
+ "stakeholder": "Engineering",
259
+ "Subscription": {"impact": "Simple billing", "sentiment": "positive"},
260
+ "Usage-based": {"impact": "Complex metering system", "sentiment": "negative"}
261
+ },
262
+ {
263
+ "stakeholder": "Finance",
264
+ "Subscription": {"impact": "Predictable revenue", "sentiment": "positive"},
265
+ "Usage-based": {"impact": "Variable revenue", "sentiment": "mixed"}
266
+ },
267
+ {
268
+ "stakeholder": "Support",
269
+ "Subscription": {"impact": "Fewer billing questions", "sentiment": "positive"},
270
+ "Usage-based": {"impact": "More complex inquiries", "sentiment": "negative"}
271
+ }
272
+ ],
273
+ "recommended": "Subscription",
274
+ "confidence": 0.88,
275
+ "rationale": "4 of 5 stakeholders prefer subscription; usage-based adds engineering complexity",
276
+ "compromises": [
277
+ "Offer usage-based tier for enterprise",
278
+ "Include usage limits in subscription tiers"
279
+ ],
280
+ "sessionContext": {
281
+ "sessionId": "conversation"
282
+ }
283
+ }
284
+ ```
285
+
286
+ ---
287
+
288
+ ## Example 5: Multi-Criteria Decision
289
+
290
+ **Input:**
291
+ ```
292
+ /clearthought decision_framework framework=multi_criteria Select JavaScript framework for new project
293
+ ```
294
+
295
+ **Output:**
296
+ ```json
297
+ {
298
+ "toolOperation": "decision_framework",
299
+ "framework": "multi_criteria",
300
+ "decision": "JavaScript framework selection",
301
+ "options": [
302
+ {"name": "React", "description": "Component-based library"},
303
+ {"name": "Vue", "description": "Progressive framework"},
304
+ {"name": "Svelte", "description": "Compiler-based framework"}
305
+ ],
306
+ "criteria": [
307
+ {"name": "Learning curve", "weight": 0.25, "type": "lower_better"},
308
+ {"name": "Performance", "weight": 0.2, "type": "higher_better"},
309
+ {"name": "Ecosystem", "weight": 0.2, "type": "higher_better"},
310
+ {"name": "Developer experience", "weight": 0.15, "type": "higher_better"},
311
+ {"name": "Community size", "weight": 0.1, "type": "higher_better"},
312
+ {"name": "Job market", "weight": 0.1, "type": "higher_better"}
313
+ ],
314
+ "evaluations": [
315
+ {
316
+ "option": "React",
317
+ "scores": {
318
+ "Learning curve": 6,
319
+ "Performance": 8,
320
+ "Ecosystem": 10,
321
+ "Developer experience": 7,
322
+ "Community size": 10,
323
+ "Job market": 10
324
+ },
325
+ "weightedTotal": 8.15,
326
+ "rank": 1
327
+ },
328
+ {
329
+ "option": "Vue",
330
+ "scores": {
331
+ "Learning curve": 9,
332
+ "Performance": 8,
333
+ "Ecosystem": 7,
334
+ "Developer experience": 9,
335
+ "Community size": 7,
336
+ "Job market": 7
337
+ },
338
+ "weightedTotal": 7.95,
339
+ "rank": 2
340
+ },
341
+ {
342
+ "option": "Svelte",
343
+ "scores": {
344
+ "Learning curve": 8,
345
+ "Performance": 10,
346
+ "Ecosystem": 6,
347
+ "Developer experience": 9,
348
+ "Community size": 5,
349
+ "Job market": 6
350
+ },
351
+ "weightedTotal": 7.55,
352
+ "rank": 3
353
+ }
354
+ ],
355
+ "riskAnalysis": {
356
+ "React": {"risk": "Complexity for large apps", "mitigation": "Use state management"},
357
+ "Vue": {"risk": "Smaller ecosystem", "mitigation": "Growing rapidly"},
358
+ "Svelte": {"risk": "Limited job market", "mitigation": "Great for personal projects"}
359
+ },
360
+ "costBenefit": {
361
+ "React": {"development": "Medium", "maintenance": "Low", "hiring": "Easy"},
362
+ "Vue": {"development": "Fast", "maintenance": "Low", "hiring": "Medium"},
363
+ "Svelte": {"development": "Fast", "maintenance": "Low", "hiring": "Hard"}
364
+ },
365
+ "recommended": "React",
366
+ "confidence": 0.85,
367
+ "rationale": "Highest weighted score, best ecosystem and job market despite steeper learning curve",
368
+ "runner_up": "Vue",
369
+ "sensitivity": "If team experience heavily valued (weight > 0.3), Vue becomes optimal",
370
+ "sessionContext": {
371
+ "sessionId": "conversation"
372
+ }
373
+ }
374
+ ```
375
+
376
+ ---
377
+
378
+ ## Example 6: Pros-Cons (Simple)
379
+
380
+ **Input:**
381
+ ```
382
+ /clearthought decision_framework framework=pros_cons Should we add dark mode?
383
+ ```
384
+
385
+ **Output:**
386
+ ```json
387
+ {
388
+ "toolOperation": "decision_framework",
389
+ "framework": "pros_cons",
390
+ "decision": "Add dark mode feature",
391
+ "options": [
392
+ {"name": "Add dark mode", "description": "Implement dark theme"},
393
+ {"name": "Skip for now", "description": "Keep light theme only"}
394
+ ],
395
+ "analysis": {
396
+ "Add dark mode": {
397
+ "pros": [
398
+ "User request #1 feature (45% of feedback)",
399
+ "Better accessibility for light-sensitive users",
400
+ "Modern UI expectation",
401
+ "Reduces eye strain for night usage"
402
+ ],
403
+ "cons": [
404
+ "2-3 weeks development time",
405
+ "Maintenance of two themes",
406
+ "Color contrast validation needed",
407
+ "Potential new bugs"
408
+ ],
409
+ "score": 4
410
+ },
411
+ "Skip for now": {
412
+ "pros": [
413
+ "Zero development time",
414
+ "Simpler codebase",
415
+ "No new bugs",
416
+ "Focus on core features"
417
+ ],
418
+ "cons": [
419
+ "User dissatisfaction",
420
+ "Competitive disadvantage",
421
+ "Accessibility gaps",
422
+ "Will need to add eventually"
423
+ ],
424
+ "score": 0
425
+ }
426
+ },
427
+ "recommended": "Add dark mode",
428
+ "confidence": 0.9,
429
+ "rationale": "High user demand (45% feedback) and accessibility benefits justify development time",
430
+ "timing": "Implement in next sprint",
431
+ "sessionContext": {
432
+ "sessionId": "conversation"
433
+ }
434
+ }
435
+ ```
436
+
437
+ ---
438
+
439
+ **For more decision examples, see:**
440
+ - `../references/parameter-reference.md`
441
+ - [metagame-examples.md](metagame-examples.md)