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,463 @@
|
|
|
1
|
+
# Sequential Thinking - Parameter Reference
|
|
2
|
+
|
|
3
|
+
Complete documentation for all 9 parameters.
|
|
4
|
+
|
|
5
|
+
## Required Parameters (4)
|
|
6
|
+
|
|
7
|
+
### `thought` (string)
|
|
8
|
+
**Description:** Your current thinking step
|
|
9
|
+
|
|
10
|
+
**Format:** Natural language text describing your reasoning
|
|
11
|
+
|
|
12
|
+
**Usage:**
|
|
13
|
+
```bash
|
|
14
|
+
/sequential-thinking "Step 1: Identify the core problem - slow API responses"
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
**Guidelines:**
|
|
18
|
+
- Be specific and detailed
|
|
19
|
+
- Include reasoning, not just conclusions
|
|
20
|
+
- Can span multiple sentences
|
|
21
|
+
- No length limit (but keep under 1000 chars for readability)
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
### `thoughtNumber` (number)
|
|
26
|
+
**Description:** Current thought number in sequence (1-100)
|
|
27
|
+
|
|
28
|
+
**Type:** Integer, minimum 1, maximum 100
|
|
29
|
+
|
|
30
|
+
**Default:** 1 (first thought)
|
|
31
|
+
|
|
32
|
+
**Usage:**
|
|
33
|
+
```bash
|
|
34
|
+
/sequential-thinking "Second thought..." thoughtNumber=2
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**Validation:**
|
|
38
|
+
- Must be positive integer
|
|
39
|
+
- Must be sequential (1, 2, 3, ...)
|
|
40
|
+
- Auto-adjusts `totalThoughts` if exceeded
|
|
41
|
+
|
|
42
|
+
**Common patterns:**
|
|
43
|
+
```bash
|
|
44
|
+
# First thought
|
|
45
|
+
thoughtNumber=1
|
|
46
|
+
|
|
47
|
+
# Sequential continuation
|
|
48
|
+
thoughtNumber=2, thoughtNumber=3, ...
|
|
49
|
+
|
|
50
|
+
# Dynamic extension (beyond initial estimate)
|
|
51
|
+
thoughtNumber=6 totalThoughts=5 # Auto-adjusts to totalThoughts=6
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
### `totalThoughts` (number)
|
|
57
|
+
**Description:** Estimated total thoughts needed
|
|
58
|
+
|
|
59
|
+
**Type:** Integer, minimum 1
|
|
60
|
+
|
|
61
|
+
**Default:** 3
|
|
62
|
+
|
|
63
|
+
**Usage:**
|
|
64
|
+
```bash
|
|
65
|
+
/sequential-thinking "Starting..." thoughtNumber=1 totalThoughts=5
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Behavior:**
|
|
69
|
+
- Initial estimate (can be adjusted)
|
|
70
|
+
- Auto-increases if `thoughtNumber` exceeds it
|
|
71
|
+
- Used to calculate `remainingThoughts = 100 - totalThoughts`
|
|
72
|
+
|
|
73
|
+
**Patterns:**
|
|
74
|
+
```bash
|
|
75
|
+
# Short analysis (3-5 thoughts)
|
|
76
|
+
totalThoughts=3
|
|
77
|
+
|
|
78
|
+
# Medium analysis (5-10 thoughts)
|
|
79
|
+
totalThoughts=8
|
|
80
|
+
|
|
81
|
+
# Deep exploration (10-20 thoughts)
|
|
82
|
+
totalThoughts=15
|
|
83
|
+
|
|
84
|
+
# Let it grow dynamically
|
|
85
|
+
totalThoughts=3 → auto-adjusts to 6, 9, 12...
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
### `nextThoughtNeeded` (boolean)
|
|
91
|
+
**Description:** Whether another thought step is needed
|
|
92
|
+
|
|
93
|
+
**Type:** Boolean (true/false)
|
|
94
|
+
|
|
95
|
+
**Default:** true (continue thinking)
|
|
96
|
+
|
|
97
|
+
**Usage:**
|
|
98
|
+
```bash
|
|
99
|
+
# Continue thinking
|
|
100
|
+
/sequential-thinking "Analyzing..." nextThoughtNeeded=true
|
|
101
|
+
|
|
102
|
+
# Final thought
|
|
103
|
+
/sequential-thinking "Conclusion..." nextThoughtNeeded=false
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**Flow control:**
|
|
107
|
+
- `true` → LLM should generate another thought
|
|
108
|
+
- `false` → Analysis complete, no more thoughts
|
|
109
|
+
|
|
110
|
+
**When to set false:**
|
|
111
|
+
- Reached satisfactory conclusion
|
|
112
|
+
- All branches explored
|
|
113
|
+
- Problem fully analyzed
|
|
114
|
+
- Solution identified and validated
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Optional Parameters (5)
|
|
119
|
+
|
|
120
|
+
### `isRevision` (boolean, optional)
|
|
121
|
+
**Description:** Whether this thought revises previous thinking
|
|
122
|
+
|
|
123
|
+
**Type:** Boolean
|
|
124
|
+
|
|
125
|
+
**Default:** false (regular thought)
|
|
126
|
+
|
|
127
|
+
**Usage:**
|
|
128
|
+
```bash
|
|
129
|
+
/sequential-thinking "Correcting my earlier assumption..." isRevision=true revisesThought=2
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
**When to use:**
|
|
133
|
+
- Realized earlier assumption was wrong
|
|
134
|
+
- New information contradicts previous thought
|
|
135
|
+
- Need to backtrack and correct course
|
|
136
|
+
- Found error in previous reasoning
|
|
137
|
+
|
|
138
|
+
**Visual indicator:**
|
|
139
|
+
- Regular: 💭 (blue)
|
|
140
|
+
- Revision: 🔄 (yellow)
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
### `revisesThought` (number, optional)
|
|
145
|
+
**Description:** Which thought number is being reconsidered
|
|
146
|
+
|
|
147
|
+
**Type:** Integer ≥ 1
|
|
148
|
+
|
|
149
|
+
**Required if:** `isRevision = true`
|
|
150
|
+
|
|
151
|
+
**Usage:**
|
|
152
|
+
```bash
|
|
153
|
+
/sequential-thinking "My thought #2 was incorrect..." isRevision=true revisesThought=2 thoughtNumber=5
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**Validation:**
|
|
157
|
+
- Should reference existing thought
|
|
158
|
+
- Must be less than current `thoughtNumber`
|
|
159
|
+
- Can be chained (revising a revision)
|
|
160
|
+
|
|
161
|
+
**Example chain:**
|
|
162
|
+
```
|
|
163
|
+
Thought 1: "Use approach A"
|
|
164
|
+
Thought 2: "Implementing A..."
|
|
165
|
+
Thought 3: "A won't work, revise thought 1" (isRevision=true, revisesThought=1)
|
|
166
|
+
Thought 4: "Implementing revised approach..."
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
### `branchFromThought` (number, optional)
|
|
172
|
+
**Description:** Branching point thought number
|
|
173
|
+
|
|
174
|
+
**Type:** Integer ≥ 1
|
|
175
|
+
|
|
176
|
+
**Required if:** Using branching
|
|
177
|
+
|
|
178
|
+
**Usage:**
|
|
179
|
+
```bash
|
|
180
|
+
/sequential-thinking "Alternative approach..." branchFromThought=3 branchId="alternative"
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
**Branching patterns:**
|
|
184
|
+
```bash
|
|
185
|
+
# Single branch point
|
|
186
|
+
Thought 1 → Thought 2 → Thought 3 (branch point)
|
|
187
|
+
├→ Branch A
|
|
188
|
+
├→ Branch B
|
|
189
|
+
└→ Branch C
|
|
190
|
+
|
|
191
|
+
# Multiple branch points
|
|
192
|
+
Thought 1 → Thought 2 (branch) → Thought 3
|
|
193
|
+
├→ Branch X → Branch X.1 (sub-branch)
|
|
194
|
+
└→ Branch Y
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
**Must be paired with:** `branchId`
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
### `branchId` (string, optional)
|
|
202
|
+
**Description:** Branch identifier
|
|
203
|
+
|
|
204
|
+
**Type:** String (any format, recommended: kebab-case)
|
|
205
|
+
|
|
206
|
+
**Required if:** Using branching
|
|
207
|
+
|
|
208
|
+
**Usage:**
|
|
209
|
+
```bash
|
|
210
|
+
/sequential-thinking "Exploring async..." branchFromThought=2 branchId="async-approach"
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
**Naming conventions:**
|
|
214
|
+
```bash
|
|
215
|
+
# Descriptive approach names
|
|
216
|
+
branchId="caching-layer"
|
|
217
|
+
branchId="microservices"
|
|
218
|
+
branchId="optimization-path"
|
|
219
|
+
|
|
220
|
+
# Alternative labels
|
|
221
|
+
branchId="option-a"
|
|
222
|
+
branchId="hypothesis-2"
|
|
223
|
+
branchId="fallback-plan"
|
|
224
|
+
|
|
225
|
+
# Hierarchical (if nesting)
|
|
226
|
+
branchId="main.sub-branch"
|
|
227
|
+
branchId="approach-a.variant-1"
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
**Tracking:**
|
|
231
|
+
- All branch IDs returned in `branches[]` array
|
|
232
|
+
- Deduplicated automatically
|
|
233
|
+
- Persists for session lifetime
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
### `needsMoreThoughts` (boolean, optional)
|
|
238
|
+
**Description:** If more thoughts are needed beyond current estimate
|
|
239
|
+
|
|
240
|
+
**Type:** Boolean
|
|
241
|
+
|
|
242
|
+
**Default:** false
|
|
243
|
+
|
|
244
|
+
**Usage:**
|
|
245
|
+
```bash
|
|
246
|
+
/sequential-thinking "This is more complex than expected..." thoughtNumber=5 totalThoughts=5 needsMoreThoughts=true
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
**Effect:**
|
|
250
|
+
- Signals that `totalThoughts` should increase
|
|
251
|
+
- Typically triggers +3 adjustment
|
|
252
|
+
- Used when hitting original estimate but not done
|
|
253
|
+
|
|
254
|
+
**Pattern:**
|
|
255
|
+
```
|
|
256
|
+
Initial: totalThoughts=5
|
|
257
|
+
Thought 5: needsMoreThoughts=true
|
|
258
|
+
Result: totalThoughts → 8
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
## Parameter Combinations
|
|
264
|
+
|
|
265
|
+
### Pattern 1: Simple Linear Sequence
|
|
266
|
+
```bash
|
|
267
|
+
/sequential-thinking "Thought 1" 1 3 true
|
|
268
|
+
/sequential-thinking "Thought 2" 2 3 true
|
|
269
|
+
/sequential-thinking "Thought 3" 3 3 false
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
### Pattern 2: With Revision
|
|
275
|
+
```bash
|
|
276
|
+
/sequential-thinking "Original idea" 1 3 true
|
|
277
|
+
/sequential-thinking "Building on idea..." 2 3 true
|
|
278
|
+
/sequential-thinking "Wait, revising original" 3 3 true isRevision=true revisesThought=1
|
|
279
|
+
/sequential-thinking "Corrected approach" 4 4 false
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
---
|
|
283
|
+
|
|
284
|
+
### Pattern 3: With Branching
|
|
285
|
+
```bash
|
|
286
|
+
/sequential-thinking "Main approach" 1 5 true
|
|
287
|
+
/sequential-thinking "Continuing main" 2 5 true
|
|
288
|
+
/sequential-thinking "Branch A: Alternative" 3 5 true branchFromThought=2 branchId="alt-a"
|
|
289
|
+
/sequential-thinking "Branch B: Another option" 4 5 true branchFromThought=2 branchId="alt-b"
|
|
290
|
+
/sequential-thinking "Synthesis of branches" 5 5 false
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
---
|
|
294
|
+
|
|
295
|
+
### Pattern 4: Dynamic Extension
|
|
296
|
+
```bash
|
|
297
|
+
/sequential-thinking "Starting..." 1 3 true
|
|
298
|
+
/sequential-thinking "Deeper than expected..." 3 3 true needsMoreThoughts=true
|
|
299
|
+
# System adjusts totalThoughts=6
|
|
300
|
+
/sequential-thinking "Continuing..." 4 6 true
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
---
|
|
304
|
+
|
|
305
|
+
## Validation Rules
|
|
306
|
+
|
|
307
|
+
### Type Validation (Zod Layer)
|
|
308
|
+
```typescript
|
|
309
|
+
thought: z.string() // Any string
|
|
310
|
+
thoughtNumber: z.number().int().min(1) // Integer ≥ 1
|
|
311
|
+
totalThoughts: z.number().int().min(1) // Integer ≥ 1
|
|
312
|
+
nextThoughtNeeded: z.boolean() // true/false
|
|
313
|
+
isRevision: z.boolean().optional() // Optional boolean
|
|
314
|
+
revisesThought: z.number().int().min(1).optional()
|
|
315
|
+
branchFromThought: z.number().int().min(1).optional()
|
|
316
|
+
branchId: z.string().optional()
|
|
317
|
+
needsMoreThoughts: z.boolean().optional()
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
### Runtime Validation (Processing Layer)
|
|
321
|
+
```typescript
|
|
322
|
+
// Auto-adjust if exceeded
|
|
323
|
+
if (thoughtNumber > totalThoughts) {
|
|
324
|
+
totalThoughts = thoughtNumber;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
// Require both for branching
|
|
328
|
+
if (branchFromThought && !branchId) {
|
|
329
|
+
// Branch ignored (silently)
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// Extension request
|
|
333
|
+
if (needsMoreThoughts) {
|
|
334
|
+
totalThoughts += 3;
|
|
335
|
+
}
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
---
|
|
339
|
+
|
|
340
|
+
## Boolean String Coercion
|
|
341
|
+
|
|
342
|
+
**Why needed:** Standard `Boolean("false")` returns `true` (bug!)
|
|
343
|
+
|
|
344
|
+
**Custom handling:**
|
|
345
|
+
```typescript
|
|
346
|
+
// Correctly handles:
|
|
347
|
+
"true" / "True" / "TRUE" → true
|
|
348
|
+
"false" / "False" / "FALSE" → false
|
|
349
|
+
true / false → passthrough
|
|
350
|
+
|
|
351
|
+
// Rejects (throws error):
|
|
352
|
+
"yes", "no", "1", "0", 1, 0, null, undefined
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
---
|
|
356
|
+
|
|
357
|
+
## Default Values
|
|
358
|
+
|
|
359
|
+
| Parameter | Default | Used When |
|
|
360
|
+
|-----------|---------|-----------|
|
|
361
|
+
| `thoughtNumber` | 1 | First thought |
|
|
362
|
+
| `totalThoughts` | 3 | Initial estimate |
|
|
363
|
+
| `nextThoughtNeeded` | true | Continue by default |
|
|
364
|
+
| `isRevision` | false | Regular thought |
|
|
365
|
+
| `revisesThought` | undefined | Not a revision |
|
|
366
|
+
| `branchFromThought` | undefined | Not a branch |
|
|
367
|
+
| `branchId` | undefined | Not a branch |
|
|
368
|
+
| `needsMoreThoughts` | false | No extension |
|
|
369
|
+
|
|
370
|
+
---
|
|
371
|
+
|
|
372
|
+
## Common Mistakes
|
|
373
|
+
|
|
374
|
+
### ❌ Mistake 1: Missing branchId
|
|
375
|
+
```bash
|
|
376
|
+
# Won't track branch!
|
|
377
|
+
/sequential-thinking "Branch" branchFromThought=2
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
**Fix:**
|
|
381
|
+
```bash
|
|
382
|
+
/sequential-thinking "Branch" branchFromThought=2 branchId="my-branch"
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
---
|
|
386
|
+
|
|
387
|
+
### ❌ Mistake 2: Revision without target
|
|
388
|
+
```bash
|
|
389
|
+
# Which thought is being revised?
|
|
390
|
+
/sequential-thinking "Revising..." isRevision=true
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
**Fix:**
|
|
394
|
+
```bash
|
|
395
|
+
/sequential-thinking "Revising..." isRevision=true revisesThought=2
|
|
396
|
+
```
|
|
397
|
+
|
|
398
|
+
---
|
|
399
|
+
|
|
400
|
+
### ❌ Mistake 3: Thought number gaps
|
|
401
|
+
```bash
|
|
402
|
+
/sequential-thinking "Thought 1" 1 5
|
|
403
|
+
/sequential-thinking "Thought 5" 5 5 # Skip 2, 3, 4
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
**Fix:**
|
|
407
|
+
```bash
|
|
408
|
+
/sequential-thinking "Thought 1" 1 5
|
|
409
|
+
/sequential-thinking "Thought 2" 2 5
|
|
410
|
+
/sequential-thinking "Thought 3" 3 5
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
---
|
|
414
|
+
|
|
415
|
+
### ❌ Mistake 4: Not adjusting after needsMoreThoughts
|
|
416
|
+
```bash
|
|
417
|
+
/sequential-thinking "Need more..." 5 5 needsMoreThoughts=true
|
|
418
|
+
/sequential-thinking "Continuing..." 6 5 # Should be totalThoughts=8
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
**Fix:**
|
|
422
|
+
```bash
|
|
423
|
+
/sequential-thinking "Need more..." 5 5 needsMoreThoughts=true
|
|
424
|
+
# System auto-adjusts totalThoughts=8
|
|
425
|
+
/sequential-thinking "Continuing..." 6 8
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
---
|
|
429
|
+
|
|
430
|
+
## Quick Reference
|
|
431
|
+
|
|
432
|
+
### Minimal Invocation
|
|
433
|
+
```bash
|
|
434
|
+
/sequential-thinking "Your thought here"
|
|
435
|
+
# Uses defaults: thoughtNumber=1, totalThoughts=3, nextThoughtNeeded=true
|
|
436
|
+
```
|
|
437
|
+
|
|
438
|
+
### Full Explicit Invocation
|
|
439
|
+
```bash
|
|
440
|
+
/sequential-thinking thought="Full analysis" thoughtNumber=5 totalThoughts=10 nextThoughtNeeded=true isRevision=false
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
### Revision
|
|
444
|
+
```bash
|
|
445
|
+
/sequential-thinking "Correcting earlier" isRevision=true revisesThought=2
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
### Branch
|
|
449
|
+
```bash
|
|
450
|
+
/sequential-thinking "Alternative path" branchFromThought=3 branchId="alt-approach"
|
|
451
|
+
```
|
|
452
|
+
|
|
453
|
+
### Final Thought
|
|
454
|
+
```bash
|
|
455
|
+
/sequential-thinking "Conclusion reached" nextThoughtNeeded=false
|
|
456
|
+
```
|
|
457
|
+
|
|
458
|
+
---
|
|
459
|
+
|
|
460
|
+
**For more details:**
|
|
461
|
+
- [output-schema.md](output-schema.md) - Response structure
|
|
462
|
+
- [patterns.md](patterns.md) - Usage patterns
|
|
463
|
+
- [../examples/](../examples/) - Real examples
|