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,666 @@
|
|
|
1
|
+
# Sequential Thinking - Usage Patterns
|
|
2
|
+
|
|
3
|
+
Comprehensive guide to reasoning patterns with Sequential Thinking.
|
|
4
|
+
|
|
5
|
+
## Core Patterns
|
|
6
|
+
|
|
7
|
+
### Pattern 1: Linear Sequence
|
|
8
|
+
|
|
9
|
+
**Use for:** Straightforward problems with clear progression
|
|
10
|
+
|
|
11
|
+
**Structure:**
|
|
12
|
+
```
|
|
13
|
+
Thought 1 → Thought 2 → Thought 3 → ... → Conclusion
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
**Example:**
|
|
17
|
+
```bash
|
|
18
|
+
/sequential-thinking "Problem: Slow API performance" 1 5 true
|
|
19
|
+
/sequential-thinking "Measure: P95 latency is 800ms" 2 5 true
|
|
20
|
+
/sequential-thinking "Analyze: Database queries are bottleneck" 3 5 true
|
|
21
|
+
/sequential-thinking "Solution: Add database indexes" 4 5 true
|
|
22
|
+
/sequential-thinking "Validation: Latency reduced to 120ms" 5 5 false
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**When to use:**
|
|
26
|
+
- Clear problem statement
|
|
27
|
+
- Predictable analysis steps
|
|
28
|
+
- Sequential dependencies
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
### Pattern 2: Revision Chain
|
|
33
|
+
|
|
34
|
+
**Use for:** Problems where initial assumptions may be wrong
|
|
35
|
+
|
|
36
|
+
**Structure:**
|
|
37
|
+
```
|
|
38
|
+
Thought 1 → Thought 2 → [Revision of 1] → Thought 3 (corrected path)
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
**Example:**
|
|
42
|
+
```bash
|
|
43
|
+
/sequential-thinking "Hypothesis: Caching will solve it" 1 5 true
|
|
44
|
+
/sequential-thinking "Implementing Redis cache..." 2 5 true
|
|
45
|
+
/sequential-thinking "Testing shows no improvement - cache wasn't the issue" 3 5 true isRevision=true revisesThought=1
|
|
46
|
+
/sequential-thinking "Real cause: N+1 query problem" 4 5 true
|
|
47
|
+
/sequential-thinking "Solution: Eager loading relationships" 5 5 false
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**When to use:**
|
|
51
|
+
- Hypothesis-driven analysis
|
|
52
|
+
- Uncertain root cause
|
|
53
|
+
- Trial-and-error exploration
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
### Pattern 3: Branching Exploration
|
|
58
|
+
|
|
59
|
+
**Use for:** Comparing multiple approaches
|
|
60
|
+
|
|
61
|
+
**Structure:**
|
|
62
|
+
```
|
|
63
|
+
├→ Branch A (approach 1)
|
|
64
|
+
Thought 1 → Thought 2 ├→ Branch B (approach 2) → Synthesis
|
|
65
|
+
└→ Branch C (approach 3)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**Example:**
|
|
69
|
+
```bash
|
|
70
|
+
/sequential-thinking "Need to choose state management" 1 8 true
|
|
71
|
+
/sequential-thinking "Options: Redux, MobX, Context API" 2 8 true
|
|
72
|
+
|
|
73
|
+
# Branch A: Redux
|
|
74
|
+
/sequential-thinking "Redux: Predictable, great DevTools" 3 8 true branchFromThought=2 branchId="redux"
|
|
75
|
+
/sequential-thinking "Redux: More boilerplate needed" 4 8 true branchFromThought=2 branchId="redux"
|
|
76
|
+
|
|
77
|
+
# Branch B: MobX
|
|
78
|
+
/sequential-thinking "MobX: Simple, reactive" 5 8 true branchFromThought=2 branchId="mobx"
|
|
79
|
+
/sequential-thinking "MobX: Magic can be confusing" 6 8 true branchFromThought=2 branchId="mobx"
|
|
80
|
+
|
|
81
|
+
# Branch C: Context
|
|
82
|
+
/sequential-thinking "Context: Built-in, no deps" 7 8 true branchFromThought=2 branchId="context"
|
|
83
|
+
|
|
84
|
+
# Synthesis
|
|
85
|
+
/sequential-thinking "Decision: Redux for large apps, Context for small" 8 8 false
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**When to use:**
|
|
89
|
+
- Multiple valid approaches
|
|
90
|
+
- Need to compare pros/cons
|
|
91
|
+
- Uncertain best path
|
|
92
|
+
|
|
93
|
+
---
|
|
94
|
+
|
|
95
|
+
### Pattern 4: Adaptive Depth
|
|
96
|
+
|
|
97
|
+
**Use for:** Problems where scope isn't initially clear
|
|
98
|
+
|
|
99
|
+
**Structure:**
|
|
100
|
+
```
|
|
101
|
+
Initial estimate → Discovery → Adjustment → Extended analysis
|
|
102
|
+
(totalThoughts=3) (needsMore) (totalThoughts=6)
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
**Example:**
|
|
106
|
+
```bash
|
|
107
|
+
/sequential-thinking "Analyzing microservices migration" 1 3 true
|
|
108
|
+
/sequential-thinking "Identifying services..." 2 3 true
|
|
109
|
+
/sequential-thinking "This is more complex than expected - many dependencies" 3 3 true needsMoreThoughts=true
|
|
110
|
+
# Auto-adjusts: totalThoughts=6
|
|
111
|
+
/sequential-thinking "Mapping service boundaries" 4 6 true
|
|
112
|
+
/sequential-thinking "Planning data migration strategy" 5 6 true
|
|
113
|
+
/sequential-thinking "Conclusion with migration plan" 6 6 false
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
**When to use:**
|
|
117
|
+
- Uncertain problem complexity
|
|
118
|
+
- Exploratory analysis
|
|
119
|
+
- Open-ended questions
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
### Pattern 5: Hybrid (Revision + Branching)
|
|
124
|
+
|
|
125
|
+
**Use for:** Complex problems requiring both correction and exploration
|
|
126
|
+
|
|
127
|
+
**Structure:**
|
|
128
|
+
```
|
|
129
|
+
Thought 1 → Thought 2 (revise 1) → Thought 3 (branch point)
|
|
130
|
+
├→ Branch A
|
|
131
|
+
└→ Branch B → Synthesis
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**Example:**
|
|
135
|
+
```bash
|
|
136
|
+
/sequential-thinking "Approach: Optimize with caching" 1 8 true
|
|
137
|
+
/sequential-thinking "Actually, profiling shows DB is fast" 2 8 true isRevision=true revisesThought=1
|
|
138
|
+
/sequential-thinking "Real bottleneck: API serialization" 3 8 true
|
|
139
|
+
|
|
140
|
+
# Explore solutions
|
|
141
|
+
/sequential-thinking "Option: Use MessagePack" 4 8 true branchFromThought=3 branchId="messagepack"
|
|
142
|
+
/sequential-thinking "Option: Stream responses" 5 8 true branchFromThought=3 branchId="streaming"
|
|
143
|
+
/sequential-thinking "Option: Optimize JSON" 6 8 true branchFromThought=3 branchId="json-opt"
|
|
144
|
+
|
|
145
|
+
# Decide
|
|
146
|
+
/sequential-thinking "Comparison: Streaming has best ROI" 7 8 true
|
|
147
|
+
/sequential-thinking "Implementation plan: Use HTTP streaming" 8 8 false
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
**When to use:**
|
|
151
|
+
- Complex problems
|
|
152
|
+
- Multiple uncertainties
|
|
153
|
+
- Need both correction and comparison
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## Advanced Patterns
|
|
158
|
+
|
|
159
|
+
### Pattern 6: Depth-First Branch Exploration
|
|
160
|
+
|
|
161
|
+
**Structure:**
|
|
162
|
+
```
|
|
163
|
+
Main → Branch A → Branch A.1 → Branch A.2
|
|
164
|
+
└→ Branch A.1.x
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
**Example:**
|
|
168
|
+
```bash
|
|
169
|
+
/sequential-thinking "Root problem" 1 10 true
|
|
170
|
+
/sequential-thinking "Exploring authentication" 2 10 true branchFromThought=1 branchId="auth"
|
|
171
|
+
/sequential-thinking "JWT sub-option" 3 10 true branchFromThought=2 branchId="auth.jwt"
|
|
172
|
+
/sequential-thinking "OAuth sub-option" 4 10 true branchFromThought=2 branchId="auth.oauth"
|
|
173
|
+
/sequential-thinking "Back to main: Decision made" 5 10 false
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**When to use:**
|
|
177
|
+
- Hierarchical problem breakdown
|
|
178
|
+
- Nested decision trees
|
|
179
|
+
- Deep exploration of one path
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
### Pattern 7: Breadth-First Branch Exploration
|
|
184
|
+
|
|
185
|
+
**Structure:**
|
|
186
|
+
```
|
|
187
|
+
Main → Branch A (shallow)
|
|
188
|
+
→ Branch B (shallow)
|
|
189
|
+
→ Branch C (shallow)
|
|
190
|
+
→ Synthesis
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
**Example:**
|
|
194
|
+
```bash
|
|
195
|
+
/sequential-thinking "Identify options" 1 7 true
|
|
196
|
+
/sequential-thinking "Quick check: Option A" 2 7 true branchFromThought=1 branchId="a"
|
|
197
|
+
/sequential-thinking "Quick check: Option B" 3 7 true branchFromThought=1 branchId="b"
|
|
198
|
+
/sequential-thinking "Quick check: Option C" 4 7 true branchFromThought=1 branchId="c"
|
|
199
|
+
/sequential-thinking "All explored, comparing..." 5 7 true
|
|
200
|
+
/sequential-thinking "Option B best fits requirements" 6 7 true
|
|
201
|
+
/sequential-thinking "Recommendation: Proceed with B" 7 7 false
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
**When to use:**
|
|
205
|
+
- Survey multiple options
|
|
206
|
+
- Rapid comparison
|
|
207
|
+
- Time-constrained analysis
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
### Pattern 8: Iterative Refinement
|
|
212
|
+
|
|
213
|
+
**Structure:**
|
|
214
|
+
```
|
|
215
|
+
Hypothesis → Test → Revise → Test → Revise → Validate
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
**Example:**
|
|
219
|
+
```bash
|
|
220
|
+
/sequential-thinking "Hypothesis: Algorithm is O(n²)" 1 8 true
|
|
221
|
+
/sequential-thinking "Test: Small input works fine" 2 8 true
|
|
222
|
+
/sequential-thinking "Test: Large input times out" 3 8 true
|
|
223
|
+
/sequential-thinking "Revision: Actually O(n³) nested loops" 4 8 true isRevision=true revisesThought=1
|
|
224
|
+
/sequential-thinking "Fix: Remove inner loop" 5 8 true
|
|
225
|
+
/sequential-thinking "Test: Performance improved 10x" 6 8 true
|
|
226
|
+
/sequential-thinking "Validation: Complexity now O(n)" 7 8 true
|
|
227
|
+
/sequential-thinking "Confirmed: Problem solved" 8 8 false
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
**When to use:**
|
|
231
|
+
- Hypothesis testing
|
|
232
|
+
- Performance optimization
|
|
233
|
+
- Iterative debugging
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
## Integration Patterns
|
|
238
|
+
|
|
239
|
+
### Pattern 9: Sequential → ClearThought → Sequential
|
|
240
|
+
|
|
241
|
+
**Hybrid workflow for comprehensive analysis:**
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
# Phase 1: Explore with Sequential Thinking
|
|
245
|
+
/sequential-thinking "Problem: Choose database" 1 3 true
|
|
246
|
+
/sequential-thinking "Options: PostgreSQL vs MongoDB" 2 3 true
|
|
247
|
+
/sequential-thinking "Need structured decision framework" 3 3 false
|
|
248
|
+
|
|
249
|
+
# Phase 2: Analyze with ClearThought
|
|
250
|
+
/clearthought decision_framework framework=decision_matrix PostgreSQL vs MongoDB
|
|
251
|
+
|
|
252
|
+
# Phase 3: Synthesize with Sequential Thinking
|
|
253
|
+
/sequential-thinking "Based on decision analysis: PostgreSQL wins" 4 5 true
|
|
254
|
+
/sequential-thinking "Implementation plan: Setup PostgreSQL cluster" 5 5 false
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
**When to use:**
|
|
258
|
+
- Complex decisions
|
|
259
|
+
- Need both exploration and structured analysis
|
|
260
|
+
- Combining qualitative and quantitative reasoning
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
|
+
### Pattern 10: ClearThought → Sequential → ClearThought
|
|
265
|
+
|
|
266
|
+
**Specialized → Exploration → Specialized:**
|
|
267
|
+
|
|
268
|
+
```bash
|
|
269
|
+
# Phase 1: Initial analysis with ClearThought
|
|
270
|
+
/clearthought statistical_reasoning mode=descriptive Analyze API response times: [120, 145, 203, ...]
|
|
271
|
+
|
|
272
|
+
# Phase 2: Deep dive with Sequential Thinking
|
|
273
|
+
/sequential-thinking "Stats show high variance - investigating..." 1 5 true
|
|
274
|
+
/sequential-thinking "Hypothesis: Database connection pool issues" 2 5 true
|
|
275
|
+
/sequential-thinking "Verified: Pool size is 5, need 20" 3 5 false
|
|
276
|
+
|
|
277
|
+
# Phase 3: Optimization with ClearThought
|
|
278
|
+
/clearthought optimization type=gradient_descent Optimize pool size vs latency
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
**When to use:**
|
|
282
|
+
- Data-driven problems
|
|
283
|
+
- Need exploration after initial analysis
|
|
284
|
+
- Optimization scenarios
|
|
285
|
+
|
|
286
|
+
---
|
|
287
|
+
|
|
288
|
+
## Anti-Patterns (Don't Do This)
|
|
289
|
+
|
|
290
|
+
### ❌ Anti-Pattern 1: Skipping Thought Numbers
|
|
291
|
+
|
|
292
|
+
```bash
|
|
293
|
+
/sequential-thinking "Thought 1" 1 5
|
|
294
|
+
/sequential-thinking "Thought 5" 5 5 # Skip 2,3,4
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
**Why bad:** Breaks sequence integrity, confuses history tracking
|
|
298
|
+
|
|
299
|
+
**Fix:** Use sequential numbers (1, 2, 3, 4, 5)
|
|
300
|
+
|
|
301
|
+
---
|
|
302
|
+
|
|
303
|
+
### ❌ Anti-Pattern 2: Premature Conclusion
|
|
304
|
+
|
|
305
|
+
```bash
|
|
306
|
+
/sequential-thinking "Problem identified" 1 10 true
|
|
307
|
+
/sequential-thinking "Conclusion: Fix it" 2 10 false # Too early!
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
**Why bad:** Incomplete analysis, missing insights
|
|
311
|
+
|
|
312
|
+
**Fix:** Use realistic `totalThoughts`, explore thoroughly
|
|
313
|
+
|
|
314
|
+
---
|
|
315
|
+
|
|
316
|
+
### ❌ Anti-Pattern 3: Orphan Branches
|
|
317
|
+
|
|
318
|
+
```bash
|
|
319
|
+
/sequential-thinking "Main thought" 1 5
|
|
320
|
+
/sequential-thinking "Branch A" branchFromThought=1 branchId="a"
|
|
321
|
+
/sequential-thinking "Branch B" branchFromThought=1 branchId="b"
|
|
322
|
+
/sequential-thinking "Conclusion" 4 5 nextThoughtNeeded=false
|
|
323
|
+
# Never synthesized branches!
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
**Why bad:** Wasted exploration, no synthesis
|
|
327
|
+
|
|
328
|
+
**Fix:** Always synthesize/compare branches before concluding
|
|
329
|
+
|
|
330
|
+
---
|
|
331
|
+
|
|
332
|
+
### ❌ Anti-Pattern 4: Meaningless Revisions
|
|
333
|
+
|
|
334
|
+
```bash
|
|
335
|
+
/sequential-thinking "Thought 1" 1 5
|
|
336
|
+
/sequential-thinking "Revising for no reason" 2 5 isRevision=true revisesThought=1
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
**Why bad:** Revision without new insight
|
|
340
|
+
|
|
341
|
+
**Fix:** Only revise when new information contradicts previous thought
|
|
342
|
+
|
|
343
|
+
---
|
|
344
|
+
|
|
345
|
+
## Best Practices
|
|
346
|
+
|
|
347
|
+
### ✅ Do:
|
|
348
|
+
1. Start with realistic estimate (3-5 thoughts)
|
|
349
|
+
2. Revise when new insights contradict assumptions
|
|
350
|
+
3. Branch when multiple approaches merit exploration
|
|
351
|
+
4. Extend dynamically when complexity emerges
|
|
352
|
+
5. Synthesize branches before concluding
|
|
353
|
+
6. Set `nextThoughtNeeded=false` only when truly done
|
|
354
|
+
|
|
355
|
+
### ❌ Don't:
|
|
356
|
+
1. Skip thought numbers
|
|
357
|
+
2. Set unrealistic high totals initially
|
|
358
|
+
3. Create orphan branches (explore but don't synthesize)
|
|
359
|
+
4. Revise without clear reason
|
|
360
|
+
5. End prematurely
|
|
361
|
+
6. Exceed 100 thoughts (summarize instead)
|
|
362
|
+
|
|
363
|
+
---
|
|
364
|
+
|
|
365
|
+
## Pattern Selection Guide
|
|
366
|
+
|
|
367
|
+
```
|
|
368
|
+
Start here: What's your problem?
|
|
369
|
+
│
|
|
370
|
+
├─ Clear steps known? → Pattern 1: Linear Sequence
|
|
371
|
+
│
|
|
372
|
+
├─ Assumptions might be wrong? → Pattern 2: Revision Chain
|
|
373
|
+
│
|
|
374
|
+
├─ Multiple approaches to compare? → Pattern 3: Branching
|
|
375
|
+
│
|
|
376
|
+
├─ Scope unclear? → Pattern 4: Adaptive Depth
|
|
377
|
+
│
|
|
378
|
+
└─ Complex with unknowns? → Pattern 5: Hybrid
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
---
|
|
382
|
+
|
|
383
|
+
## Real-World Examples
|
|
384
|
+
|
|
385
|
+
### Example 1: System Architecture Decision
|
|
386
|
+
|
|
387
|
+
**Problem:** "Should we use microservices or monolith?"
|
|
388
|
+
|
|
389
|
+
**Pattern:** Branching Exploration (Pattern 3)
|
|
390
|
+
|
|
391
|
+
**Flow:**
|
|
392
|
+
1. Problem statement
|
|
393
|
+
2. List criteria (scalability, complexity, team size)
|
|
394
|
+
3. Branch A: Analyze microservices
|
|
395
|
+
4. Branch B: Analyze monolith
|
|
396
|
+
5. Branch C: Analyze modular monolith
|
|
397
|
+
6. Compare branches
|
|
398
|
+
7. Decide based on criteria
|
|
399
|
+
8. Conclusion with recommendation
|
|
400
|
+
|
|
401
|
+
---
|
|
402
|
+
|
|
403
|
+
### Example 2: Bug Investigation
|
|
404
|
+
|
|
405
|
+
**Problem:** "API randomly returns 500 errors"
|
|
406
|
+
|
|
407
|
+
**Pattern:** Revision Chain (Pattern 2)
|
|
408
|
+
|
|
409
|
+
**Flow:**
|
|
410
|
+
1. Hypothesis: Load balancer issue
|
|
411
|
+
2. Test: Check load balancer logs
|
|
412
|
+
3. Revision: Not load balancer - database connection timeouts
|
|
413
|
+
4. Hypothesis 2: Connection pool too small
|
|
414
|
+
5. Test: Increase pool size
|
|
415
|
+
6. Validation: Errors eliminated
|
|
416
|
+
7. Conclusion: Pool size was 5, needed 20
|
|
417
|
+
|
|
418
|
+
---
|
|
419
|
+
|
|
420
|
+
### Example 3: Feature Planning
|
|
421
|
+
|
|
422
|
+
**Problem:** "Plan authentication feature implementation"
|
|
423
|
+
|
|
424
|
+
**Pattern:** Linear Sequence (Pattern 1)
|
|
425
|
+
|
|
426
|
+
**Flow:**
|
|
427
|
+
1. Requirements gathering
|
|
428
|
+
2. Technology selection (JWT vs OAuth)
|
|
429
|
+
3. Database schema design
|
|
430
|
+
4. API endpoint design
|
|
431
|
+
5. Security considerations
|
|
432
|
+
6. Testing strategy
|
|
433
|
+
7. Rollout plan
|
|
434
|
+
8. Documentation needs
|
|
435
|
+
|
|
436
|
+
---
|
|
437
|
+
|
|
438
|
+
### Example 4: Research Paper Analysis
|
|
439
|
+
|
|
440
|
+
**Problem:** "Understand and critique research paper"
|
|
441
|
+
|
|
442
|
+
**Pattern:** Adaptive Depth (Pattern 4)
|
|
443
|
+
|
|
444
|
+
**Flow:**
|
|
445
|
+
1. Read abstract (estimate 5 thoughts)
|
|
446
|
+
2. Read methodology
|
|
447
|
+
3. Realize complexity → needsMoreThoughts (now 8)
|
|
448
|
+
4. Analyze results section
|
|
449
|
+
5. Statistical validation deep dive
|
|
450
|
+
6. Related work comparison
|
|
451
|
+
7. Critical evaluation
|
|
452
|
+
8. Summary and implications
|
|
453
|
+
|
|
454
|
+
---
|
|
455
|
+
|
|
456
|
+
## Workflow Integration
|
|
457
|
+
|
|
458
|
+
### With ClearThought Operations
|
|
459
|
+
|
|
460
|
+
**Exploration → Analysis → Decision:**
|
|
461
|
+
|
|
462
|
+
```bash
|
|
463
|
+
# 1. Sequential Thinking: Break down problem
|
|
464
|
+
/sequential-thinking "What factors matter for database choice?" 1 3
|
|
465
|
+
|
|
466
|
+
# 2. ClearThought: Structured decision
|
|
467
|
+
/clearthought decision_framework framework=decision_matrix Options: PostgreSQL, MongoDB, DynamoDB
|
|
468
|
+
|
|
469
|
+
# 3. Sequential Thinking: Synthesize
|
|
470
|
+
/sequential-thinking "Based on analysis, PostgreSQL best for ACID requirements" 4 5 false
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
---
|
|
474
|
+
|
|
475
|
+
### With Multiple Tools
|
|
476
|
+
|
|
477
|
+
**Complex workflow:**
|
|
478
|
+
|
|
479
|
+
```bash
|
|
480
|
+
# 1. Sequential: Initial exploration
|
|
481
|
+
/sequential-thinking "Performance issue analysis" 1 5
|
|
482
|
+
|
|
483
|
+
# 2. ClearThought: Statistical analysis
|
|
484
|
+
/clearthought statistical_reasoning mode=descriptive data=[response_times]
|
|
485
|
+
|
|
486
|
+
# 3. Sequential: Interpret statistics
|
|
487
|
+
/sequential-thinking "Stats show bimodal distribution..." 6 10
|
|
488
|
+
|
|
489
|
+
# 4. ClearThought: Debug approach
|
|
490
|
+
/clearthought debugging_approach binary_search Isolate slow requests
|
|
491
|
+
|
|
492
|
+
# 5. Sequential: Conclusion
|
|
493
|
+
/sequential-thinking "Root cause identified: Uncached queries" 10 10 false
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
---
|
|
497
|
+
|
|
498
|
+
## Pattern Templates
|
|
499
|
+
|
|
500
|
+
### Template 1: Problem Breakdown
|
|
501
|
+
|
|
502
|
+
```
|
|
503
|
+
1. Problem statement (what, why, who affected)
|
|
504
|
+
2. Context and constraints
|
|
505
|
+
3. Requirements gathering
|
|
506
|
+
4. Options identification
|
|
507
|
+
5. Analysis of each option
|
|
508
|
+
6. Comparison and ranking
|
|
509
|
+
7. Decision with rationale
|
|
510
|
+
8. Implementation plan
|
|
511
|
+
```
|
|
512
|
+
|
|
513
|
+
---
|
|
514
|
+
|
|
515
|
+
### Template 2: Root Cause Analysis
|
|
516
|
+
|
|
517
|
+
```
|
|
518
|
+
1. Symptom description
|
|
519
|
+
2. Data gathering
|
|
520
|
+
3. Hypothesis generation
|
|
521
|
+
4. Test hypothesis
|
|
522
|
+
5. [Revision if wrong] New hypothesis
|
|
523
|
+
6. [Repeat 4-5 until found]
|
|
524
|
+
7. Root cause identified
|
|
525
|
+
8. Solution proposed and validated
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
---
|
|
529
|
+
|
|
530
|
+
### Template 3: Design Exploration
|
|
531
|
+
|
|
532
|
+
```
|
|
533
|
+
1. Design goals and constraints
|
|
534
|
+
2. Brainstorm approaches
|
|
535
|
+
3. Branch A: First approach detailed
|
|
536
|
+
4. Branch B: Second approach detailed
|
|
537
|
+
5. Branch C: Third approach detailed
|
|
538
|
+
6. Evaluation criteria
|
|
539
|
+
7. Comparison across branches
|
|
540
|
+
8. Recommended design with justification
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
---
|
|
544
|
+
|
|
545
|
+
### Template 4: Research Synthesis
|
|
546
|
+
|
|
547
|
+
```
|
|
548
|
+
1. Topic and research question
|
|
549
|
+
2. Key papers/sources identified
|
|
550
|
+
3. Summary of source 1
|
|
551
|
+
4. Summary of source 2
|
|
552
|
+
5. Summary of source 3
|
|
553
|
+
6. Common themes across sources
|
|
554
|
+
7. Contradictions and debates
|
|
555
|
+
8. Synthesis and conclusions
|
|
556
|
+
```
|
|
557
|
+
|
|
558
|
+
---
|
|
559
|
+
|
|
560
|
+
## Thought Progression Strategies
|
|
561
|
+
|
|
562
|
+
### Strategy A: Start Small, Grow Organically
|
|
563
|
+
|
|
564
|
+
```
|
|
565
|
+
Initial: totalThoughts=3
|
|
566
|
+
Reality: Grows to 5, then 8, then 12 as complexity emerges
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
**Benefits:** Flexible, responsive to problem complexity
|
|
570
|
+
|
|
571
|
+
---
|
|
572
|
+
|
|
573
|
+
### Strategy B: Conservative Estimate
|
|
574
|
+
|
|
575
|
+
```
|
|
576
|
+
Initial: totalThoughts=10
|
|
577
|
+
Reality: Finish at thought 7, extrathoughts unused
|
|
578
|
+
```
|
|
579
|
+
|
|
580
|
+
**Benefits:** Room for exploration, no premature conclusions
|
|
581
|
+
|
|
582
|
+
---
|
|
583
|
+
|
|
584
|
+
### Strategy C: Fixed Depth
|
|
585
|
+
|
|
586
|
+
```
|
|
587
|
+
Initial: totalThoughts=8 (fixed)
|
|
588
|
+
Reality: Exactly 8 thoughts, no more, no less
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
**Benefits:** Structured, time-boxed, disciplined
|
|
592
|
+
|
|
593
|
+
---
|
|
594
|
+
|
|
595
|
+
## Debugging Patterns
|
|
596
|
+
|
|
597
|
+
### Pattern: Binary Search with Revisions
|
|
598
|
+
|
|
599
|
+
```bash
|
|
600
|
+
/sequential-thinking "Bug: API fails on large requests" 1 10 true
|
|
601
|
+
/sequential-thinking "Hypothesis: Request size limit" 2 10 true
|
|
602
|
+
/sequential-thinking "Test: Small request (100 items) works" 3 10 true
|
|
603
|
+
/sequential-thinking "Test: Large request (10k items) fails" 4 10 true
|
|
604
|
+
/sequential-thinking "Test: Medium (1k items) fails" 5 10 true
|
|
605
|
+
/sequential-thinking "Revision: Not size, but timeout" 6 10 true isRevision=true revisesThought=2
|
|
606
|
+
/sequential-thinking "Test: Increase timeout" 7 10 true
|
|
607
|
+
/sequential-thinking "Validation: Works with 60s timeout" 8 10 true
|
|
608
|
+
/sequential-thinking "Root cause: Default 30s too short" 9 10 true
|
|
609
|
+
/sequential-thinking "Solution: Set timeout to 60s" 10 10 false
|
|
610
|
+
```
|
|
611
|
+
|
|
612
|
+
---
|
|
613
|
+
|
|
614
|
+
## Optimization Patterns
|
|
615
|
+
|
|
616
|
+
### Pattern: Explore → Measure → Optimize
|
|
617
|
+
|
|
618
|
+
```bash
|
|
619
|
+
/sequential-thinking "Performance bottleneck identification" 1 8 true
|
|
620
|
+
/sequential-thinking "Profiling shows database queries take 80% time" 2 8 true
|
|
621
|
+
|
|
622
|
+
# Branch: Different optimization approaches
|
|
623
|
+
/sequential-thinking "Approach: Add indexes" 3 8 true branchFromThought=2 branchId="indexes"
|
|
624
|
+
/sequential-thinking "Approach: Query optimization" 4 8 true branchFromThought=2 branchId="queries"
|
|
625
|
+
/sequential-thinking "Approach: Caching layer" 5 8 true branchFromThought=2 branchId="cache"
|
|
626
|
+
|
|
627
|
+
/sequential-thinking "Measuring each: Indexes give 10x improvement" 6 8 true
|
|
628
|
+
/sequential-thinking "Decision: Indexes first, cache later" 7 8 true
|
|
629
|
+
/sequential-thinking "Implementation plan for indexes" 8 8 false
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
---
|
|
633
|
+
|
|
634
|
+
## When to Stop
|
|
635
|
+
|
|
636
|
+
### Stop When:
|
|
637
|
+
✅ Problem fully analyzed
|
|
638
|
+
✅ All branches explored and synthesized
|
|
639
|
+
✅ Solution identified and validated
|
|
640
|
+
✅ No more insights to gain
|
|
641
|
+
✅ Diminishing returns on additional thoughts
|
|
642
|
+
|
|
643
|
+
### Don't Stop When:
|
|
644
|
+
❌ Approaching thought estimate (keep going if needed)
|
|
645
|
+
❌ Branches not synthesized
|
|
646
|
+
❌ Solution untested
|
|
647
|
+
❌ Uncertainty remains
|
|
648
|
+
❌ Stakeholder concerns unaddressed
|
|
649
|
+
|
|
650
|
+
---
|
|
651
|
+
|
|
652
|
+
## Pattern Metrics
|
|
653
|
+
|
|
654
|
+
| Pattern | Avg Thoughts | Time Estimate | Complexity |
|
|
655
|
+
|---------|-------------|---------------|------------|
|
|
656
|
+
| Linear Sequence | 5-8 | 5-10 min | Low |
|
|
657
|
+
| Revision Chain | 8-12 | 10-15 min | Medium |
|
|
658
|
+
| Branching | 10-15 | 15-25 min | High |
|
|
659
|
+
| Adaptive Depth | 5-20 | Variable | Medium |
|
|
660
|
+
| Hybrid | 12-20 | 20-30 min | High |
|
|
661
|
+
|
|
662
|
+
---
|
|
663
|
+
|
|
664
|
+
**For complete examples, see:** [../examples/](../examples/)
|
|
665
|
+
**For parameters, see:** [parameters.md](parameters.md)
|
|
666
|
+
**For output format, see:** [output-schema.md](output-schema.md)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: vibekit-init
|
|
3
|
+
description: Initialize or repair Minimal Vibe Coding Kit in an existing project. Use for first prompt, backbone.yml setup, CLAUDE.md merge, AGENTS.md merge, Cursor rules setup, or Codex skill setup. Always show requirements and a diff before writing.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
argument-hint: target path; profiles claude,cursor,codex; write yes/no
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Vibe Kit Init
|
|
9
|
+
|
|
10
|
+
Initialize the kit safely.
|
|
11
|
+
|
|
12
|
+
## Required behavior
|
|
13
|
+
|
|
14
|
+
1. Print the requirements checklist from `FIRST_TIME_INIT.md`.
|
|
15
|
+
2. Run or emulate detection, including repo-specific conventions, project mode, and PRD presence:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
node .vbkit-scripts/init-backbone.mjs . --propose
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
3. Run the project-understanding step below.
|
|
22
|
+
4. Propose a unified diff for `backbone.yml`, its `conventions` rules, managed blocks, and any new `.vbkit-docs/PRD.md`.
|
|
23
|
+
5. Ask: `Apply this proposed backbone and convention rules? Reply yes, edit, or abort.`
|
|
24
|
+
6. Write only after explicit `yes`.
|
|
25
|
+
7. Validate after writing.
|
|
26
|
+
|
|
27
|
+
## Project understanding (PRD)
|
|
28
|
+
|
|
29
|
+
Detection reports `project.mode` (`greenfield` = no source yet, `brownfield` = existing code) and whether a PRD exists.
|
|
30
|
+
|
|
31
|
+
- Always offer a short interview, regardless of whether docs already exist: what the project is and who it is for, the core problem and primary focus now, what success looks like, key constraints/non-goals, and (brownfield) which area to improve first.
|
|
32
|
+
- If no PRD is found, propose creating `.vbkit-docs/PRD.md` from `.vbkit-docs/templates/PRD_TEMPLATE.md` using the answers, and set `project.prd` to that path.
|
|
33
|
+
- If a PRD exists, read it, link it in `project.prd`, and offer to refresh it without overwriting unapproved content.
|
|
34
|
+
- Keep the PRD short; it captures intent, not a full spec. Record domain terms in `.vbkit-docs/CONTEXT.md` (scaffold from `.vbkit-docs/templates/CONTEXT_TEMPLATE.md`) and link it in `project.context`.
|
|
35
|
+
|
|
36
|
+
## Convention detection
|
|
37
|
+
|
|
38
|
+
- Infer naming, directory layout, architecture, shared resource access, localization/message access, generated definitions, and per-app/package differences from existing files.
|
|
39
|
+
- Prefer existing constants, registries, generated APIs, and helper modules over hardcoded literals when the repo already has them.
|
|
40
|
+
- If no convention is clear, mark it as not detected and ask before introducing a broad new pattern.
|
|
41
|
+
- Store confirmed project rules in `backbone.yml` under `conventions`; later work must follow those rules unless the user edits them.
|
|
42
|
+
|
|
43
|
+
## Merge policy
|
|
44
|
+
|
|
45
|
+
- Never overwrite existing `CLAUDE.md` or `AGENTS.md`.
|
|
46
|
+
- Replace only content between Minimal Vibe managed markers.
|
|
47
|
+
- Preserve user content outside managed markers.
|
|
48
|
+
- Keep `CLAUDE.md` and `AGENTS.md` concise.
|
|
49
|
+
|
|
50
|
+
## Completion
|
|
51
|
+
|
|
52
|
+
Report initialized status, validation command, validation result, PRD path, and next recommended skill. Once the user confirms setup is complete, offer graduation (`node .vbkit-scripts/vibekit-finalize.mjs . --propose`) to move one-time bootstrap files into the cleanup folder.
|