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.
- package/.agents/skills/agentshield-security-review/SKILL.md +75 -0
- package/.agents/skills/agentshield-security-review/agents/openai.yaml +5 -0
- package/.agents/skills/agentshield-security-review/references/native-install.md +97 -0
- package/.agents/skills/agentshield-security-review/references/report-template.md +54 -0
- package/.agents/skills/agentshield-security-review/references/review-checklist.md +45 -0
- package/.agents/skills/agentshield-security-review/scripts/agentshield_repo_probe.py +110 -0
- package/.agents/skills/autoresearch-coding/README.md +15 -0
- package/.agents/skills/autoresearch-coding/SKILL.md +101 -0
- package/.agents/skills/autoresearch-coding/references/experiment-contract.md +13 -0
- package/.agents/skills/autoresearch-coding/references/metric-extraction.md +8 -0
- package/.agents/skills/autoresearch-coding/references/result-ledger.md +15 -0
- package/.agents/skills/autoresearch-coding/scripts/log_result.py +24 -0
- package/.agents/skills/autoresearch-coding/scripts/run_logged.py +30 -0
- package/.agents/skills/clearthought/SKILL.md +100 -0
- package/.agents/skills/clearthought/examples/decision-framework.md +441 -0
- package/.agents/skills/clearthought/examples/metagame-examples.md +536 -0
- package/.agents/skills/clearthought/examples/sequential-thinking.md +380 -0
- package/.agents/skills/clearthought/references/output-schemas.md +494 -0
- package/.agents/skills/clearthought/references/parameter-reference.md +482 -0
- package/.agents/skills/coding-level/SKILL.md +27 -0
- package/.agents/skills/coding-level/references/level-0.md +131 -0
- package/.agents/skills/coding-level/references/level-1.md +118 -0
- package/.agents/skills/coding-level/references/level-2.md +140 -0
- package/.agents/skills/coding-level/references/level-3.md +142 -0
- package/.agents/skills/coding-level/references/level-4.md +152 -0
- package/.agents/skills/coding-level/references/level-5.md +84 -0
- package/.agents/skills/daily-workflow-curator/SKILL.md +52 -0
- package/.agents/skills/memento/SKILL.md +36 -0
- package/.agents/skills/reviewing-4p-priorities/SKILL.md +72 -0
- package/.agents/skills/reviewing-4p-priorities/examples.md +298 -0
- package/.agents/skills/sequential-thinking/SKILL.md +106 -0
- package/.agents/skills/sequential-thinking/examples/adaptive-depth.md +542 -0
- package/.agents/skills/sequential-thinking/examples/branching-exploration.md +474 -0
- package/.agents/skills/sequential-thinking/examples/linear-reasoning.md +210 -0
- package/.agents/skills/sequential-thinking/examples/revision-pattern.md +304 -0
- package/.agents/skills/sequential-thinking/references/output-schema.md +483 -0
- package/.agents/skills/sequential-thinking/references/parameters.md +463 -0
- package/.agents/skills/sequential-thinking/references/patterns.md +666 -0
- package/.agents/skills/vibekit-init/SKILL.md +52 -0
- package/.agents/skills/visual-design-loop/SKILL.md +103 -0
- package/.agents/skills/visual-design-loop/agents/openai.yaml +4 -0
- package/.claude/agents/code-reviewer.md +11 -0
- package/.claude/agents/context-architect.md +11 -0
- package/.claude/agents/debug-fixer.md +11 -0
- package/.claude/agents/hypothesis-planner.md +11 -0
- package/.claude/agents/implementation-hacker.md +11 -0
- package/.claude/agents/research-coordinator.md +11 -0
- package/.claude/agents/results-analyst.md +11 -0
- package/.claude/agents/security-reviewer.md +11 -0
- package/.claude/agents/test-runner.md +11 -0
- package/.claude/agents/workflow-curator.md +11 -0
- package/.claude/commands/autoresearch-coding.md +15 -0
- package/.claude/commands/council.md +7 -0
- package/.claude/commands/daily-enhance.md +7 -0
- package/.claude/commands/init-vibe.md +7 -0
- package/.claude/commands/security-scan.md +7 -0
- package/.claude/commands/vibe-finalize.md +7 -0
- package/.claude/rules/autoresearch.md +3 -0
- package/.claude/rules/security.md +3 -0
- package/.claude/rules/tooling.md +6 -0
- package/.claude/rules/vibe-core.md +8 -0
- package/.claude/settings.json +22 -0
- package/.claude/skills/agentshield-security-review/SKILL.md +75 -0
- package/.claude/skills/agentshield-security-review/agents/openai.yaml +5 -0
- package/.claude/skills/agentshield-security-review/references/native-install.md +97 -0
- package/.claude/skills/agentshield-security-review/references/report-template.md +54 -0
- package/.claude/skills/agentshield-security-review/references/review-checklist.md +45 -0
- package/.claude/skills/agentshield-security-review/scripts/agentshield_repo_probe.py +110 -0
- package/.claude/skills/autoresearch-coding/README.md +15 -0
- package/.claude/skills/autoresearch-coding/SKILL.md +101 -0
- package/.claude/skills/autoresearch-coding/references/experiment-contract.md +13 -0
- package/.claude/skills/autoresearch-coding/references/metric-extraction.md +8 -0
- package/.claude/skills/autoresearch-coding/references/result-ledger.md +15 -0
- package/.claude/skills/autoresearch-coding/scripts/log_result.py +24 -0
- package/.claude/skills/autoresearch-coding/scripts/run_logged.py +30 -0
- package/.claude/skills/clearthought/SKILL.md +100 -0
- package/.claude/skills/clearthought/examples/decision-framework.md +441 -0
- package/.claude/skills/clearthought/examples/metagame-examples.md +536 -0
- package/.claude/skills/clearthought/examples/sequential-thinking.md +380 -0
- package/.claude/skills/clearthought/references/output-schemas.md +494 -0
- package/.claude/skills/clearthought/references/parameter-reference.md +482 -0
- package/.claude/skills/coding-level/SKILL.md +27 -0
- package/.claude/skills/coding-level/references/level-0.md +131 -0
- package/.claude/skills/coding-level/references/level-1.md +118 -0
- package/.claude/skills/coding-level/references/level-2.md +140 -0
- package/.claude/skills/coding-level/references/level-3.md +142 -0
- package/.claude/skills/coding-level/references/level-4.md +152 -0
- package/.claude/skills/coding-level/references/level-5.md +84 -0
- package/.claude/skills/daily-workflow-curator/SKILL.md +52 -0
- package/.claude/skills/memento/SKILL.md +36 -0
- package/.claude/skills/reviewing-4p-priorities/SKILL.md +72 -0
- package/.claude/skills/reviewing-4p-priorities/examples.md +298 -0
- package/.claude/skills/sequential-thinking/SKILL.md +106 -0
- package/.claude/skills/sequential-thinking/examples/adaptive-depth.md +542 -0
- package/.claude/skills/sequential-thinking/examples/branching-exploration.md +474 -0
- package/.claude/skills/sequential-thinking/examples/linear-reasoning.md +210 -0
- package/.claude/skills/sequential-thinking/examples/revision-pattern.md +304 -0
- package/.claude/skills/sequential-thinking/references/output-schema.md +483 -0
- package/.claude/skills/sequential-thinking/references/parameters.md +463 -0
- package/.claude/skills/sequential-thinking/references/patterns.md +666 -0
- package/.claude/skills/vibekit-init/SKILL.md +52 -0
- package/.claude/skills/visual-design-loop/SKILL.md +103 -0
- package/.claude/skills/visual-design-loop/agents/openai.yaml +4 -0
- package/.codex/README.md +11 -0
- package/.codex/config.example.toml +8 -0
- package/.codex-plugin/plugin.json +10 -0
- package/.cursor/commands/autoresearch-coding.md +11 -0
- package/.cursor/commands/council.md +3 -0
- package/.cursor/commands/daily-enhance.md +3 -0
- package/.cursor/commands/init-vibe.md +3 -0
- package/.cursor/commands/security-scan.md +3 -0
- package/.cursor/commands/vibe-finalize.md +3 -0
- package/.cursor/rules/001-vibe-core.mdc +6 -0
- package/.cursor/rules/010-init.mdc +7 -0
- package/.cursor/rules/020-security-agentshield.mdc +7 -0
- package/.cursor/rules/030-autoresearch-loop.mdc +7 -0
- package/.cursor/settings.json +22 -0
- package/.cursor/skills/clearthought/SKILL.md +100 -0
- package/.cursor/skills/clearthought/examples/decision-framework.md +441 -0
- package/.cursor/skills/clearthought/examples/metagame-examples.md +536 -0
- package/.cursor/skills/clearthought/examples/sequential-thinking.md +380 -0
- package/.cursor/skills/clearthought/references/output-schemas.md +494 -0
- package/.cursor/skills/clearthought/references/parameter-reference.md +482 -0
- package/.cursor/skills/coding-level/SKILL.md +27 -0
- package/.cursor/skills/coding-level/references/level-0.md +131 -0
- package/.cursor/skills/coding-level/references/level-1.md +118 -0
- package/.cursor/skills/coding-level/references/level-2.md +140 -0
- package/.cursor/skills/coding-level/references/level-3.md +142 -0
- package/.cursor/skills/coding-level/references/level-4.md +152 -0
- package/.cursor/skills/coding-level/references/level-5.md +84 -0
- package/.cursor/skills/memento/SKILL.md +36 -0
- package/.cursor/skills/reviewing-4p-priorities/SKILL.md +72 -0
- package/.cursor/skills/reviewing-4p-priorities/examples.md +298 -0
- package/.cursor/skills/sequential-thinking/SKILL.md +106 -0
- package/.cursor/skills/sequential-thinking/examples/adaptive-depth.md +542 -0
- package/.cursor/skills/sequential-thinking/examples/branching-exploration.md +474 -0
- package/.cursor/skills/sequential-thinking/examples/linear-reasoning.md +210 -0
- package/.cursor/skills/sequential-thinking/examples/revision-pattern.md +304 -0
- package/.cursor/skills/sequential-thinking/references/output-schema.md +483 -0
- package/.cursor/skills/sequential-thinking/references/parameters.md +463 -0
- package/.cursor/skills/sequential-thinking/references/patterns.md +666 -0
- package/.vbkit-commands/autoresearch-coding.md +11 -0
- package/.vbkit-commands/council.md +3 -0
- package/.vbkit-commands/daily-enhance.md +3 -0
- package/.vbkit-commands/init-vibe.md +3 -0
- package/.vbkit-commands/security-scan.md +3 -0
- package/.vbkit-commands/vibe-finalize.md +3 -0
- package/.vbkit-docs/AUTORESEARCH_LEDGER.md +11 -0
- package/.vbkit-docs/BACKBONE_REFERENCE.md +59 -0
- package/.vbkit-docs/INSTALL.md +120 -0
- package/.vbkit-docs/RESEARCH_NOTES.md +22 -0
- package/.vbkit-docs/SECURITY_MODEL.md +40 -0
- package/.vbkit-docs/TOOLING_GUIDE.md +22 -0
- package/.vbkit-docs/backbone.schema.json +110 -0
- package/.vbkit-docs/templates/CONTEXT_TEMPLATE.md +47 -0
- package/.vbkit-docs/templates/PRD_TEMPLATE.md +48 -0
- package/.vbkit-scripts/agentshield-probe.mjs +22 -0
- package/.vbkit-scripts/daily-enhance.mjs +62 -0
- package/.vbkit-scripts/doctor.mjs +323 -0
- package/.vbkit-scripts/init-backbone.mjs +628 -0
- package/.vbkit-scripts/mvck.mjs +444 -0
- package/.vbkit-scripts/pack-dry-run.mjs +16 -0
- package/.vbkit-scripts/test-install.mjs +118 -0
- package/.vbkit-scripts/validate-kit.mjs +419 -0
- package/.vbkit-scripts/vibekit-finalize.mjs +185 -0
- package/AGENTS.md +60 -0
- package/CHANGELOG.md +34 -0
- package/CLAUDE-template.md +52 -0
- package/CODE_OF_CONDUCT.md +18 -0
- package/CONTRIBUTING.md +28 -0
- package/FIRST_PROMPT.md +54 -0
- package/FIRST_TIME_INIT.md +165 -0
- package/LICENSE +21 -0
- package/README.md +493 -0
- package/README.vi.md +431 -0
- package/SECURITY.md +28 -0
- package/backbone.yml +103 -0
- package/bin/mvck.js +2 -0
- package/bin/vibe-kit.js +2 -0
- package/install.ps1 +14 -0
- package/install.sh +8 -0
- package/package.json +92 -0
- package/skills/agentshield-security-review/SKILL.md +75 -0
- package/skills/agentshield-security-review/agents/openai.yaml +5 -0
- package/skills/agentshield-security-review/references/native-install.md +97 -0
- package/skills/agentshield-security-review/references/report-template.md +54 -0
- package/skills/agentshield-security-review/references/review-checklist.md +45 -0
- package/skills/agentshield-security-review/scripts/agentshield_repo_probe.py +110 -0
- package/skills/autoresearch-coding/README.md +15 -0
- package/skills/autoresearch-coding/SKILL.md +101 -0
- package/skills/autoresearch-coding/references/experiment-contract.md +13 -0
- package/skills/autoresearch-coding/references/metric-extraction.md +8 -0
- package/skills/autoresearch-coding/references/result-ledger.md +15 -0
- package/skills/autoresearch-coding/scripts/log_result.py +24 -0
- package/skills/autoresearch-coding/scripts/run_logged.py +30 -0
- package/skills/clearthought/SKILL.md +100 -0
- package/skills/clearthought/examples/decision-framework.md +441 -0
- package/skills/clearthought/examples/metagame-examples.md +536 -0
- package/skills/clearthought/examples/sequential-thinking.md +380 -0
- package/skills/clearthought/references/output-schemas.md +494 -0
- package/skills/clearthought/references/parameter-reference.md +482 -0
- package/skills/coding-level/SKILL.md +27 -0
- package/skills/coding-level/references/level-0.md +131 -0
- package/skills/coding-level/references/level-1.md +118 -0
- package/skills/coding-level/references/level-2.md +140 -0
- package/skills/coding-level/references/level-3.md +142 -0
- package/skills/coding-level/references/level-4.md +152 -0
- package/skills/coding-level/references/level-5.md +84 -0
- package/skills/daily-workflow-curator/SKILL.md +52 -0
- package/skills/memento/SKILL.md +36 -0
- package/skills/reviewing-4p-priorities/SKILL.md +72 -0
- package/skills/reviewing-4p-priorities/examples.md +298 -0
- package/skills/sequential-thinking/SKILL.md +106 -0
- package/skills/sequential-thinking/examples/adaptive-depth.md +542 -0
- package/skills/sequential-thinking/examples/branching-exploration.md +474 -0
- package/skills/sequential-thinking/examples/linear-reasoning.md +210 -0
- package/skills/sequential-thinking/examples/revision-pattern.md +304 -0
- package/skills/sequential-thinking/references/output-schema.md +483 -0
- package/skills/sequential-thinking/references/parameters.md +463 -0
- package/skills/sequential-thinking/references/patterns.md +666 -0
- package/skills/vibekit-init/SKILL.md +52 -0
- package/skills/visual-design-loop/SKILL.md +103 -0
- package/skills/visual-design-loop/agents/openai.yaml +4 -0
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
# Sequential Thinking - Examples
|
|
2
|
+
|
|
3
|
+
## Example 1: Basic Chain-of-Thought
|
|
4
|
+
|
|
5
|
+
**Input:**
|
|
6
|
+
```
|
|
7
|
+
/clearthought sequential_thinking How to implement user authentication?
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
**Output:**
|
|
11
|
+
```json
|
|
12
|
+
{
|
|
13
|
+
"toolOperation": "sequential_thinking",
|
|
14
|
+
"selectedPattern": "chain",
|
|
15
|
+
"thoughtData": {
|
|
16
|
+
"thoughtNumber": 1,
|
|
17
|
+
"content": "Breaking down authentication implementation:\n\n1. Choose authentication method (JWT tokens recommended for stateless API)\n2. Design user model with hashed passwords (bcrypt with salt rounds)\n3. Create registration endpoint with validation\n4. Implement login endpoint returning access + refresh tokens\n5. Add middleware to verify tokens on protected routes\n6. Handle token refresh flow\n7. Implement logout (token blacklist or expiry)\n8. Add password reset flow with email verification",
|
|
18
|
+
"revision": null,
|
|
19
|
+
"branch": null
|
|
20
|
+
},
|
|
21
|
+
"status": "success",
|
|
22
|
+
"sessionContext": {
|
|
23
|
+
"sessionId": "conversation",
|
|
24
|
+
"totalThoughts": 1,
|
|
25
|
+
"remainingThoughts": 99,
|
|
26
|
+
"recentThoughts": [
|
|
27
|
+
{"number": 1, "preview": "Breaking down authentication implementation: 1. Ch"}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Example 2: Tree Pattern with Branching
|
|
36
|
+
|
|
37
|
+
**Input:**
|
|
38
|
+
```
|
|
39
|
+
/clearthought sequential_thinking pattern=tree depth=3 breadth=2 Choose state management approach
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**Output:**
|
|
43
|
+
```json
|
|
44
|
+
{
|
|
45
|
+
"toolOperation": "sequential_thinking",
|
|
46
|
+
"selectedPattern": "tree",
|
|
47
|
+
"thoughtData": {
|
|
48
|
+
"thoughtNumber": 1,
|
|
49
|
+
"content": "Root decision: State management approach",
|
|
50
|
+
"revision": null,
|
|
51
|
+
"branch": null
|
|
52
|
+
},
|
|
53
|
+
"patternResult": {
|
|
54
|
+
"pattern": "tree",
|
|
55
|
+
"depth": 3,
|
|
56
|
+
"breadth": 2,
|
|
57
|
+
"branches": [
|
|
58
|
+
{
|
|
59
|
+
"id": "1",
|
|
60
|
+
"content": "Context API: Built-in React, good for small apps",
|
|
61
|
+
"score": 0.7,
|
|
62
|
+
"depth": 1,
|
|
63
|
+
"parent": "root"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"id": "2",
|
|
67
|
+
"content": "Redux: Predictable state, great DevTools, more boilerplate",
|
|
68
|
+
"score": 0.85,
|
|
69
|
+
"depth": 1,
|
|
70
|
+
"parent": "root"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"id": "2.1",
|
|
74
|
+
"content": "Redux Toolkit: Simplifies Redux, recommended approach",
|
|
75
|
+
"score": 0.9,
|
|
76
|
+
"depth": 2,
|
|
77
|
+
"parent": "2"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"id": "2.2",
|
|
81
|
+
"content": "Plain Redux: More control, more setup",
|
|
82
|
+
"score": 0.75,
|
|
83
|
+
"depth": 2,
|
|
84
|
+
"parent": "2"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"evaluations": [
|
|
88
|
+
{"branchId": "2.1", "score": 0.9, "reasoning": "Best balance of power and simplicity"}
|
|
89
|
+
],
|
|
90
|
+
"selectedPath": ["root", "2", "2.1"]
|
|
91
|
+
},
|
|
92
|
+
"status": "success",
|
|
93
|
+
"sessionContext": {
|
|
94
|
+
"sessionId": "conversation",
|
|
95
|
+
"totalThoughts": 1,
|
|
96
|
+
"remainingThoughts": 99
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Example 3: Beam Search Pattern
|
|
104
|
+
|
|
105
|
+
**Input:**
|
|
106
|
+
```
|
|
107
|
+
/clearthought sequential_thinking pattern=beam beamWidth=3 Optimize database schema
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**Output:**
|
|
111
|
+
```json
|
|
112
|
+
{
|
|
113
|
+
"toolOperation": "sequential_thinking",
|
|
114
|
+
"selectedPattern": "beam",
|
|
115
|
+
"thoughtData": {
|
|
116
|
+
"thoughtNumber": 1,
|
|
117
|
+
"content": "Exploring database schema optimization approaches",
|
|
118
|
+
"revision": null,
|
|
119
|
+
"branch": null
|
|
120
|
+
},
|
|
121
|
+
"patternResult": {
|
|
122
|
+
"pattern": "beam",
|
|
123
|
+
"beamWidth": 3,
|
|
124
|
+
"candidates": [
|
|
125
|
+
"Add composite indexes on frequently queried columns",
|
|
126
|
+
"Normalize to 3NF to reduce redundancy",
|
|
127
|
+
"Denormalize for read-heavy workloads"
|
|
128
|
+
],
|
|
129
|
+
"scores": [0.92, 0.78, 0.85],
|
|
130
|
+
"iterations": 3,
|
|
131
|
+
"currentGeneration": 1,
|
|
132
|
+
"prunedCandidates": [
|
|
133
|
+
"Archive old data to separate tables",
|
|
134
|
+
"Use materialized views"
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"status": "success",
|
|
138
|
+
"sessionContext": {
|
|
139
|
+
"sessionId": "conversation",
|
|
140
|
+
"totalThoughts": 1,
|
|
141
|
+
"remainingThoughts": 99
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
---
|
|
147
|
+
|
|
148
|
+
## Example 4: With Revision
|
|
149
|
+
|
|
150
|
+
**Input:**
|
|
151
|
+
```
|
|
152
|
+
/clearthought sequential_thinking isRevision=true revisesThought=1 Actually, use OAuth2 instead of JWT
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
**Output:**
|
|
156
|
+
```json
|
|
157
|
+
{
|
|
158
|
+
"toolOperation": "sequential_thinking",
|
|
159
|
+
"selectedPattern": "chain",
|
|
160
|
+
"thoughtData": {
|
|
161
|
+
"thoughtNumber": 2,
|
|
162
|
+
"content": "Revising authentication approach to use OAuth2:\n\n1. Choose OAuth2 provider (Google, GitHub, Auth0)\n2. Register application with provider\n3. Implement OAuth2 authorization code flow\n4. Store provider tokens securely\n5. Map provider user to local user model\n6. Handle token refresh from provider\n7. Implement logout (revoke provider tokens)\n8. Add social login UI\n\nBenefits over JWT: Provider handles security, built-in MFA support, easier user management",
|
|
163
|
+
"revision": 1,
|
|
164
|
+
"branch": null,
|
|
165
|
+
"revisionReason": "OAuth2 reduces security burden and adds social login"
|
|
166
|
+
},
|
|
167
|
+
"status": "success",
|
|
168
|
+
"sessionContext": {
|
|
169
|
+
"sessionId": "conversation",
|
|
170
|
+
"totalThoughts": 2,
|
|
171
|
+
"remainingThoughts": 98,
|
|
172
|
+
"recentThoughts": [
|
|
173
|
+
{"number": 2, "preview": "Revising authentication approach to use OAuth2:"},
|
|
174
|
+
{"number": 1, "preview": "Breaking down authentication implementation: 1. Ch"}
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
## Example 5: Graph Pattern
|
|
183
|
+
|
|
184
|
+
**Input:**
|
|
185
|
+
```
|
|
186
|
+
/clearthought sequential_thinking pattern=graph Analyze system dependencies
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
**Output:**
|
|
190
|
+
```json
|
|
191
|
+
{
|
|
192
|
+
"toolOperation": "sequential_thinking",
|
|
193
|
+
"selectedPattern": "graph",
|
|
194
|
+
"thoughtData": {
|
|
195
|
+
"thoughtNumber": 1,
|
|
196
|
+
"content": "Mapping system as dependency graph",
|
|
197
|
+
"revision": null,
|
|
198
|
+
"branch": null
|
|
199
|
+
},
|
|
200
|
+
"patternResult": {
|
|
201
|
+
"pattern": "graph",
|
|
202
|
+
"nodes": [
|
|
203
|
+
{"id": "api", "content": "API Gateway", "type": "service"},
|
|
204
|
+
{"id": "auth", "content": "Auth Service", "type": "service"},
|
|
205
|
+
{"id": "db", "content": "Database", "type": "storage"},
|
|
206
|
+
{"id": "cache", "content": "Redis Cache", "type": "storage"}
|
|
207
|
+
],
|
|
208
|
+
"edges": [
|
|
209
|
+
{"from": "api", "to": "auth", "type": "depends_on", "weight": 1.0},
|
|
210
|
+
{"from": "api", "to": "cache", "type": "uses", "weight": 0.8},
|
|
211
|
+
{"from": "auth", "to": "db", "type": "reads", "weight": 1.0}
|
|
212
|
+
],
|
|
213
|
+
"paths": [
|
|
214
|
+
["api", "auth", "db"],
|
|
215
|
+
["api", "cache"]
|
|
216
|
+
],
|
|
217
|
+
"optimalPath": ["api", "cache"],
|
|
218
|
+
"analysis": {
|
|
219
|
+
"criticalNodes": ["auth", "db"],
|
|
220
|
+
"bottlenecks": ["db"],
|
|
221
|
+
"redundancy": ["cache as db fallback"]
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"status": "success",
|
|
225
|
+
"sessionContext": {
|
|
226
|
+
"sessionId": "conversation",
|
|
227
|
+
"totalThoughts": 1,
|
|
228
|
+
"remainingThoughts": 99
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## Example 6: MCTS Pattern
|
|
236
|
+
|
|
237
|
+
**Input:**
|
|
238
|
+
```
|
|
239
|
+
/clearthought sequential_thinking pattern=mcts explorationConstant=1.414 Best API architecture for microservices
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
**Output:**
|
|
243
|
+
```json
|
|
244
|
+
{
|
|
245
|
+
"toolOperation": "sequential_thinking",
|
|
246
|
+
"selectedPattern": "mcts",
|
|
247
|
+
"thoughtData": {
|
|
248
|
+
"thoughtNumber": 1,
|
|
249
|
+
"content": "Monte Carlo exploration of architecture options",
|
|
250
|
+
"revision": null,
|
|
251
|
+
"branch": null
|
|
252
|
+
},
|
|
253
|
+
"patternResult": {
|
|
254
|
+
"pattern": "mcts",
|
|
255
|
+
"tree": {
|
|
256
|
+
"root": {
|
|
257
|
+
"visits": 150,
|
|
258
|
+
"value": 0.82,
|
|
259
|
+
"children": [
|
|
260
|
+
{
|
|
261
|
+
"action": "REST_API",
|
|
262
|
+
"visits": 75,
|
|
263
|
+
"value": 0.78
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"action": "GraphQL",
|
|
267
|
+
"visits": 50,
|
|
268
|
+
"value": 0.85
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"action": "gRPC",
|
|
272
|
+
"visits": 25,
|
|
273
|
+
"value": 0.73
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"bestAction": "GraphQL",
|
|
279
|
+
"explorationConstant": 1.414,
|
|
280
|
+
"simulations": 150,
|
|
281
|
+
"reasoning": "GraphQL provides best balance of flexibility and performance for microservices with varying client needs"
|
|
282
|
+
},
|
|
283
|
+
"status": "success",
|
|
284
|
+
"sessionContext": {
|
|
285
|
+
"sessionId": "conversation",
|
|
286
|
+
"totalThoughts": 1,
|
|
287
|
+
"remainingThoughts": 99
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
---
|
|
293
|
+
|
|
294
|
+
## Pattern Selection (Auto Mode)
|
|
295
|
+
|
|
296
|
+
**Input:**
|
|
297
|
+
```
|
|
298
|
+
/clearthought sequential_thinking pattern=auto Complex multi-criteria decision with many trade-offs
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
**Logic:** Auto-selects pattern based on:
|
|
302
|
+
- Keywords in prompt ("complex", "multiple", "compare") → `beam` or `tree`
|
|
303
|
+
- Presence of `patternParams.depth` → `tree`
|
|
304
|
+
- Presence of `patternParams.beamWidth` → `beam`
|
|
305
|
+
- Keywords ("Monte Carlo", "simulation") → `mcts`
|
|
306
|
+
- Keywords ("dependencies", "relationships") → `graph`
|
|
307
|
+
- Default → `chain`
|
|
308
|
+
|
|
309
|
+
**Output:**
|
|
310
|
+
```json
|
|
311
|
+
{
|
|
312
|
+
"toolOperation": "sequential_thinking",
|
|
313
|
+
"selectedPattern": "tree",
|
|
314
|
+
"thoughtData": {
|
|
315
|
+
"thoughtNumber": 1,
|
|
316
|
+
"content": "Auto-selected tree pattern for complex multi-criteria analysis",
|
|
317
|
+
"revision": null,
|
|
318
|
+
"branch": null
|
|
319
|
+
},
|
|
320
|
+
"patternResult": {
|
|
321
|
+
"pattern": "tree",
|
|
322
|
+
"autoSelected": true,
|
|
323
|
+
"reasoning": "Keywords 'complex' and 'multiple' suggest branching exploration"
|
|
324
|
+
},
|
|
325
|
+
"status": "success",
|
|
326
|
+
"sessionContext": {
|
|
327
|
+
"sessionId": "conversation",
|
|
328
|
+
"totalThoughts": 1,
|
|
329
|
+
"remainingThoughts": 99
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
---
|
|
335
|
+
|
|
336
|
+
## Multi-Step Continuation
|
|
337
|
+
|
|
338
|
+
**Turn 1:**
|
|
339
|
+
```
|
|
340
|
+
/clearthought sequential_thinking Implement payment processing
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
Returns: `thoughtNumber: 1`, `nextThoughtNeeded: true`
|
|
344
|
+
|
|
345
|
+
**Turn 2:**
|
|
346
|
+
```
|
|
347
|
+
/clearthought sequential_thinking thoughtNumber=2 Continue with error handling
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
Returns: `thoughtNumber: 2`, builds on previous thought
|
|
351
|
+
|
|
352
|
+
**Turn 3:**
|
|
353
|
+
```
|
|
354
|
+
/clearthought sequential_thinking thoughtNumber=3 Add fraud detection
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
Returns: `thoughtNumber: 3`, complete chain
|
|
358
|
+
|
|
359
|
+
**Session Context Tracking:**
|
|
360
|
+
```json
|
|
361
|
+
{
|
|
362
|
+
"sessionContext": {
|
|
363
|
+
"sessionId": "conversation",
|
|
364
|
+
"totalThoughts": 3,
|
|
365
|
+
"remainingThoughts": 97,
|
|
366
|
+
"recentThoughts": [
|
|
367
|
+
{"number": 3, "preview": "Add fraud detection: 1. Velocity checks 2. Am"},
|
|
368
|
+
{"number": 2, "preview": "Continue with error handling: 1. Timeout hand"},
|
|
369
|
+
{"number": 1, "preview": "Implement payment processing: 1. Choose gatewa"}
|
|
370
|
+
]
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
---
|
|
376
|
+
|
|
377
|
+
**For more examples, see:**
|
|
378
|
+
- [decision-framework.md](decision-framework.md)
|
|
379
|
+
- [metagame-examples.md](metagame-examples.md)
|
|
380
|
+
- `../references/parameter-reference.md`
|