Breaks down complex tasks into numbered, ordered steps before implementation. Use when facing multi-step problems, complex features, refactoring tasks, or when the user requests step-by-step thinking or sequential planning.
Before implementing any complex task, break it down into clear, numbered steps. Think through the entire process sequentially, identify dependencies, and plan the execution order before writing code.
Apply sequential thinking when:
Understand what needs to be accomplished:
Create a numbered list of steps in execution order:
1. [First step that must happen]
2. [Second step that depends on step 1]
3. [Third step that depends on step 2]
...
Guidelines:
For each step, note:
Show the numbered plan to the user before implementation:
## Implementation Plan
1. [Step description]
- Dependencies: [if any]
- Outcome: [what this achieves]
2. [Step description]
- Dependencies: [if any]
- Outcome: [what this achieves]
...
Execute steps in order:
Always present sequential thinking as a numbered list:
## Sequential Plan
1. First action to take
2. Second action (depends on step 1)
3. Third action (depends on step 2)
4. Final verification step
Task: Add user profile editing functionality
Sequential Plan:
Create profile edit API endpoint
Create profile edit form component
Add form validation
Connect form to API endpoint
Add error handling and success feedback
Task: Migrate component to use design tokens
Sequential Plan:
Identify all hardcoded values in component
Map hardcoded values to design tokens
Replace spacing values with tokens
Replace color values with tokens
Replace typography values with tokens
Test in light and dark modes
❌ Don't: Jump into implementation without planning ❌ Don't: Combine multiple unrelated actions in one step ❌ Don't: Skip dependency analysis ❌ Don't: Proceed to next step if current step failed
✅ Do: Always create a numbered plan first ✅ Do: One clear action per step ✅ Do: Identify and respect dependencies ✅ Do: Verify each step before continuing