スキル一覧に戻る
cyrup-ai

sequential-thinking

by cyrup-ai

0🍴 0📅 2025年12月26日
GitHubで見るManusで実行

SKILL.md


name: sequential-thinking description: > 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. version: 0.1.0

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

スコア

総合スコア

55/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です