askill
sequential-thinking

sequential-thinkingSafety 100Repository

Step-by-step reasoning tool with revision and branching support. WHEN: Complex problem-solving requiring structured thinking, multi-step analysis, planning with room for revision, exploring alternatives. WHEN NOT: Trivial problems, single calculations, when solution is already known.

0 stars
1.2k downloads
Updated 12/26/2025

Package Files

Loading files...
SKILL.md

Sequential Thinking - Structured Reasoning

Core Concept

mcp__plugin_kg_kodegen__sequential_thinking tracks your reasoning process through numbered thoughts. It supports revising earlier conclusions, branching to explore alternatives, and dynamically adjusting your plan as understanding deepens.

Key Parameters

Required:

ParameterTypeDescription
thoughtstringYour current thinking step
thought_numbernumberCurrent thought (1-based)
total_thoughtsnumberEstimated total needed
next_thought_neededbooleanWhether more steps needed

Optional:

ParameterTypeDescription
is_revisionbooleanMarks thought as revising earlier thinking
revises_thoughtnumberWhich thought being reconsidered
branch_from_thoughtnumberCreate branch from this thought
branch_idstringIdentifier for the branch
needs_more_thoughtsbooleanExtend beyond total_thoughts

Usage Examples

Simple Linear Reasoning

// Step 1
{
  "thought": "First, I need to understand the database schema",
  "thought_number": 1,
  "total_thoughts": 4,
  "next_thought_needed": true
}

// Step 2
{
  "thought": "The schema has 3 tables: users, orders, products",
  "thought_number": 2,
  "total_thoughts": 4,
  "next_thought_needed": true
}

// Step 3
{
  "thought": "The query should join users and orders on user_id",
  "thought_number": 3,
  "total_thoughts": 4,
  "next_thought_needed": true
}

// Final step
{
  "thought": "Final solution: SELECT * FROM users JOIN orders ON users.id = orders.user_id",
  "thought_number": 4,
  "total_thoughts": 4,
  "next_thought_needed": false
}

Revision Pattern

// Initial approach
{
  "thought": "I'll use a recursive algorithm",
  "thought_number": 1,
  "total_thoughts": 3,
  "next_thought_needed": true
}

// Realize issue
{
  "thought": "Wait, recursion will cause stack overflow for large inputs",
  "thought_number": 2,
  "total_thoughts": 4,
  "next_thought_needed": true
}

// Revise approach
{
  "thought": "Revising: use iterative approach with explicit stack instead",
  "thought_number": 3,
  "total_thoughts": 4,
  "is_revision": true,
  "revises_thought": 1,
  "next_thought_needed": true
}

Branching for Alternatives

// Identify options
{
  "thought": "Two approaches possible: microservices vs monolith",
  "thought_number": 1,
  "total_thoughts": 5,
  "next_thought_needed": true
}

// Branch A
{
  "thought": "Microservices: better scaling, more complexity",
  "thought_number": 2,
  "total_thoughts": 5,
  "branch_from_thought": 1,
  "branch_id": "microservices",
  "next_thought_needed": true
}

// Branch B
{
  "thought": "Monolith: simpler deployment, harder to scale",
  "thought_number": 3,
  "total_thoughts": 5,
  "branch_from_thought": 1,
  "branch_id": "monolith",
  "next_thought_needed": true
}

Dynamic Adjustment

// Start with estimate
{
  "thought": "Initial analysis suggests 3 steps",
  "thought_number": 1,
  "total_thoughts": 3,
  "next_thought_needed": true
}

// Realize more depth needed
{
  "thought": "This is more complex, need 6 steps total",
  "thought_number": 2,
  "total_thoughts": 6,
  "next_thought_needed": true
}

When to Use What

Problem TypeUse Sequential Thinking?Why
Complex algorithm designYesMulti-step with revision
Simple file readNoNo reasoning needed
Architecture decisionsYesBranch to explore options
Bug investigationYesIterative hypothesis testing
Direct code generationNoJust write the code

Output Format

Each call returns:

  • thought_number: Current position
  • total_thoughts: Estimated total
  • next_thought_needed: Boolean
  • branches: List of branch IDs
  • thought_history_length: Total recorded

Remember

  • Start with reasonable estimate - can adjust total_thoughts
  • Mark revisions explicitly - use is_revision and revises_thought
  • Branch for alternatives - explore multiple paths
  • Be specific - each thought should represent clear progress
  • Conclude properly - set next_thought_needed: false when done
  • State persists automatically - just keep calling, it remembers

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

95/100Analyzed 2/12/2026

Excellent documentation for a structured reasoning tool. Includes comprehensive parameter definitions, clear JSON examples for various usage patterns (linear, revision, branching), and explicit guidelines on when to apply the skill.

100
95
85
95
95

Metadata

Licenseunknown
Version0.1.0
Updated12/26/2025
Publishercyrup-ai

Tags

database