Loading...
Loading...
Structured multi-step reasoning via Sequential Thinking MCP. Use for complex debugging, architectural trade-offs, or root cause analysis.
npx skill4agent add darraghh1/my-claude-setup sequential-thinking-mcpReadGrepBashTool: mcp__sequential-thinking__sequentialthinking
Parameters: {
"thought": "First, let me identify the possible causes of the RLS policy failure...",
"thoughtNumber": 1,
"totalThoughts": 5,
"nextThoughtNeeded": true
}Bash: claude mcp call sequential-thinking sequentialthinking ... # This does not workmcp__sequential-thinking__sequentialthinking| Use Sequential Thinking | Do NOT Use |
|---|---|
| Bug with 3+ possible causes needing elimination | Simple typo or obvious error |
| Architectural decision with competing trade-offs | Straightforward implementation |
| Multi-factor analysis where factors interact | Single-factor decision |
| Root cause analysis requiring hypothesis testing | Error with clear stack trace |
| Problems where early assumptions might be wrong | Problems with known solutions |
| Parameter | Type | Required | Purpose |
|---|---|---|---|
| string | Yes | The content of this reasoning step |
| number | Yes | Current step number (1-indexed) |
| number | Yes | Estimated total steps (can adjust) |
| boolean | Yes | |
| boolean | No | |
| number | No | Which thought number is being revised |
| number | No | Start an alternative path from this thought |
| string | No | Label for the branch (e.g., "alternative-approach") |
| boolean | No | |
sequentialthinking({
thought: "The timesheet approval is failing silently. Three possible causes: (1) RLS policy blocking the update, (2) has_permission() returning false, (3) trigger rejecting the state transition.",
thoughtNumber: 1,
totalThoughts: 5,
nextThoughtNeeded: true
})sequentialthinking({
thought: "Testing hypothesis 1: The RLS policy for timesheets requires has_role_on_account(account_id) AND the user must be manager_or_above. Let me check if the user has the right role...",
thoughtNumber: 2,
totalThoughts: 5,
nextThoughtNeeded: true
})sequentialthinking({
thought: "Revising thought 2: Actually, the new permission system uses has_permission() not has_role_on_account(). The RLS policy might be using the old function.",
thoughtNumber: 4,
totalThoughts: 6,
nextThoughtNeeded: true,
isRevision: true,
revisesThought: 2,
needsMoreThoughts: true
})sequentialthinking({
thought: "Root cause identified: The RLS policy uses has_role_on_account() which checks system roles, but the user only has a custom role assigned. Need to update the policy to use has_permission() instead.",
thoughtNumber: 6,
totalThoughts: 6,
nextThoughtNeeded: false
})sequentialthinking({
thought: "What if we combine the service pattern from option A with the caching strategy from option B?",
thoughtNumber: 4,
totalThoughts: 6,
nextThoughtNeeded: true,
branchFromThought: 3,
branchId: "hybrid-approach"
})totalThoughtsneedsMoreThoughts: trueisRevision: truebranchFromThoughtnextThoughtNeeded: falsenextThoughtNeeded: falseisRevisionrevisesThought