Loading...
Loading...
Systematic step-by-step reasoning with revision and branching. Use for complex problems, multi-stage analysis, design planning, problem decomposition, or encountering unclear scope, alternative approaches needed, revision requirements.
npx skill4agent add secondsky/claude-skills sequential-thinkingmcp__reasoning__sequentialthinkingmcp__reasoning__sequentialthinkingthoughtnextThoughtNeededthoughtNumbertotalThoughtsisRevisionrevisesThoughtbranchFromThoughtbranchId1. Start with initial thought (thoughtNumber: 1)
2. For each step:
- Express current reasoning in `thought`
- Estimate remaining work via `totalThoughts` (adjust dynamically)
- Set `nextThoughtNeeded: true` to continue
3. When reaching conclusion, set `nextThoughtNeeded: false`// First thought
{
thought: "Problem involves optimizing database queries. Need to identify bottlenecks first.",
thoughtNumber: 1,
totalThoughts: 5,
nextThoughtNeeded: true
}
// Second thought
{
thought: "Analyzing query patterns reveals N+1 problem in user fetches.",
thoughtNumber: 2,
totalThoughts: 6, // Adjusted scope
nextThoughtNeeded: true
}
// ... continue until done{
thought: "Reconsidering thought #2: The N+1 problem isn't the main bottleneck - missing index is.",
thoughtNumber: 5,
totalThoughts: 8,
nextThoughtNeeded: true,
isRevision: true,
revisesThought: 2
}{
thought: "Branch A: What if we solve this with caching instead of query optimization?",
thoughtNumber: 6,
totalThoughts: 10,
nextThoughtNeeded: true,
branchFromThought: 3,
branchId: "caching-approach"
}totalThoughts