Install this skill
npx skills add mrgoonie/claudekit-skillsWorks across Claude Code, Cursor, Codex, Copilot & Antigravity
What this skill does
- β’Incremental step-by-step reasoning sequences
- β’Dynamic adjustment of total workload estimates
- β’Explicit revision tracking for previous thought errors
- β’Branching logic to test multiple architectural approaches
- β’Persistent state of the current reasoning chain
When to use it
- βRefactoring legacy code with unclear dependency impacts
- βDebugging complex race conditions across distributed services
- βPlanning multi-stage feature implementations
- βEvaluating multiple technical strategies before commit
When not to use it
- βSimple one-line command executions
- βRetrieving static information or direct factual lookups
- βTasks that are easily resolved in a single atomic action
How to invoke it
Example prompts that trigger this skill:
- βAnalyze this bug report using sequential thinking to trace the root cause.β
- βHelp me plan the database migration using the sequential thinking skill.β
- βUse sequential thinking to evaluate these three refactoring paths for my API.β
- βLet's break down this complex feature request into manageable reasoning steps.β
- βTrace the logic errors in this function using a step-by-step reasoning approach.β
Example workflow
- Initialize the first thought step to define the primary problem objective.
- Formulate the initial reasoning and estimate the total steps required for completion.
- Execute subsequent reasoning steps while dynamically updating the total count as new info arises.
- Identify a flaw in logic and use the revision flag to correct a previous thought number.
- Signal the completion of the task by setting nextThoughtNeeded to false once the final conclusion is reached.
Prerequisites
- βClaude Code or compatible MCP-enabled environment
- βmcp__reasoning__sequentialthinking tool installed
Pitfalls & limitations
- !Over-estimating the total steps can lead to unnecessary verbosity.
- !Failing to update totalThoughts after a branch can cause confusion in the reasoning chain.
- !Treating every minor interaction as a complex reasoning task adds excessive latency.
FAQ
How it compares
While manual prompting relies on the agent's memory, Sequential Thinking provides a persistent, trackable record that allows for precise mid-task course correction and auditability.
Source & trust
From the source: β# Sequential Thinking Enables structured problem-solving through iterative reasoning with revision and branching capabilities. ## Core Capabilities - **Iterative reasoning**: Break complex problems into sequential thought steps - **Dynamic scope**: Adjust total thought count as understanding evolvesβ¦β
View the full SKILL.md source
# Sequential Thinking
Enables structured problem-solving through iterative reasoning with revision and branching capabilities.
## Core Capabilities
- **Iterative reasoning**: Break complex problems into sequential thought steps
- **Dynamic scope**: Adjust total thought count as understanding evolves
- **Revision tracking**: Reconsider and modify previous conclusions
- **Branch exploration**: Explore alternative reasoning paths from any point
- **Maintained context**: Keep track of reasoning chain throughout analysis
## When to Use
Use `mcp__reasoning__sequentialthinking` when:
- Problem requires multiple interconnected reasoning steps
- Initial scope or approach is uncertain
- Need to filter through complexity to find core issues
- May need to backtrack or revise earlier conclusions
- Want to explore alternative solution paths
**Don't use for**: Simple queries, direct facts, or single-step tasks.
## Basic Usage
The MCP tool `mcp__reasoning__sequentialthinking` accepts these parameters:
### Required Parameters
- `thought` (string): Current reasoning step
- `nextThoughtNeeded` (boolean): Whether more reasoning is needed
- `thoughtNumber` (integer): Current step number (starts at 1)
- `totalThoughts` (integer): Estimated total steps needed
### Optional Parameters
- `isRevision` (boolean): Indicates this revises previous thinking
- `revisesThought` (integer): Which thought number is being reconsidered
- `branchFromThought` (integer): Thought number to branch from
- `branchId` (string): Identifier for this reasoning branch
## Workflow Pattern
```
1. 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`
```
## Simple Example
```typescript
// 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
```
## Advanced Features
For revision patterns, branching strategies, and complex workflows, see:
- [Advanced Usage](references/advanced.md) - Revision and branching patterns
- [Examples](references/examples.md) - Real-world use cases
## Tips
- Start with rough estimate for `totalThoughts`, refine as you progress
- Use revision when assumptions prove incorrect
- Branch when multiple approaches seem viable
- Express uncertainty explicitly in thoughts
- Adjust scope freely - accuracy matters less than progress visibility
Quoted from mrgoonie/claudekit-skills for reference β see the original for the authoritative, latest version.
How to Use This Skill Unit
Option A: Project-Specific (Recommended)
- Click "Download" above
- In your project, create the directory:
.agent/skills/sequential-thinking/ - Save the file as
SKILL.md - The agent will automatically discover the skill based on its description.
Option B: Global Installation (All Agents)
Save the file to these locations to make it available across all projects:
- Claude Code:
~/.claude/skills/mrgoonie/claudekit-skills/sequential-thinking/SKILL.md - Cursor:
~/.cursor/skills/mrgoonie/claudekit-skills/sequential-thinking/SKILL.md - Antigravity:
~/.gemini/antigravity/skills/mrgoonie/claudekit-skills/sequential-thinking/SKILL.md
π Install with CLI:npx skills add mrgoonie/claudekit-skills