Skip to content
cccskills
FreePublished on GitHub

sequential-thinking

Sequential thinking and structured problem solving. Break down complex problems into steps with revision and branching capabilities. Use for multi-step analysis, planning, and hypothesis verification.

The English summary is being prepared. Showing the original description.

See how to install

Files included (10)

  • SKILL.md8.0 KB
  • commands/sequential-thinking.md119 B
  • hooks/post-execute.cjs886 B
  • hooks/pre-execute.cjs883 B
  • references/research-requirements.md489 B
  • rules/sequential-thinking.md436 B
  • schemas/input.schema.json275 B
  • schemas/output.schema.json636 B
  • scripts/main.cjs1.9 KB
  • templates/implementation-template.md193 B

SKILL.md (original)

Review the instructions the agent will receive before you install.

Sequential Thinking Skill

Installation

Optional standalone executor: The skill can run .claude/tools/optimization/sequential-thinking/executor.py. Requirements:

  • Python 3.10+: python.org or winget install Python.Python.3.12 (Windows), brew install python@3.12 (macOS).
  • MCP Python package: pip install mcp
  • If the executor is not present or MCP is not installed, the skill still provides in-context guidance and exits successfully.

Full functionality: The Python script .claude/tools/optimization/sequential-thinking/executor.py must exist for standalone executor runs. Run node .claude/tools/cli/doctor.mjs to verify; doctor warns if the executor is missing.

Cheat Sheet & Best Practices

Frameworks: Polya: (1) Understand the problem (2) Devise a plan (3) Carry out the plan (4) Look back. IDEAL: Identify → Define context → Explore strategies → Act on best → Look back and learn.

Process: Be systematic: preview outcomes, sustain effort, examine from multiple angles, pace and self-monitor. Use diagrams, tables, patterns; break into subgoals; work backwards when useful.

Hacks: Number thoughts (thoughtNumber, totalThoughts); allow revision and branching. Start with an initial step count and refine. Use the MCP sequential-thinking tool for multi-step analysis and hypothesis verification when the full scope is unclear.

Certifications & Training

No cert. Problem-solving frameworks: Polya (Understand → Plan → Execute → Look back), IDEAL (Identify → Define → Explore → Act → Look back). Skill data: Systematic steps; preview outcomes; sustain effort; revise and branch; use diagrams/tables/patterns.

Hooks & Workflows

Suggested hooks: Optional: pre-plan or pre-complex-task hook to suggest sequential-thinking for multi-step tasks. Use with planner (primary) for planning and master-orchestrator when decomposing work.

Workflows: Use with planner (primary). Flow: complex task → load sequential-thinking → emit thoughts (MCP or executor) → revise → act. See core/router-decision for when router assigns planner.

Overview

This skill provides structured problem-solving through a flexible thinking process that can adapt and evolve. Each thought can build on, question, or revise previous insights.

Context Savings: ~97% reduction

  • MCP Mode: ~15,000 tokens always loaded
  • Skill Mode: ~500 tokens metadata + on-demand loading

When to Use

  • Breaking down complex problems into steps
  • Planning and design with room for revision
  • Analysis that might need course correction
  • Problems where the full scope isn't clear initially
  • Multi-step solutions requiring maintained context
  • Filtering irrelevant information
  • Hypothesis generation and verification

Quick Reference

Use the MCP sequential thinking tool directly:

// Via MCP tool
mcp__sequential -
  thinking__sequentialthinking({
    thought: 'First, let me analyze the problem...',
    thoughtNumber: 1,
    totalThoughts: 5,
    nextThoughtNeeded: true,
  });

Tool: sequentialthinking

A detailed tool for dynamic and reflective problem-solving through thoughts.

Parameters

ParameterTypeDescription
thoughtstringYour current thinking step
thoughtNumberintegerCurrent thought number (1, 2, 3...)
totalThoughtsintegerEstimated total thoughts needed
nextThoughtNeededbooleanWhether another thought step is needed
isRevisionbooleanIf this thought revises previous thinking
revisesThoughtintegerWhich thought number is being reconsidered
branchFromThoughtintegerBranching point thought number
branchIdstringIdentifier for current branch
needsMoreThoughtsbooleanIf more thoughts needed at the "end"

Key Features

  • Adjust totalThoughts up or down as you progress
  • Question or revise previous thoughts
  • Add more thoughts even after reaching what seemed like the end
  • Express uncertainty and explore alternatives
  • Branch or backtrack (non-linear thinking)
  • Generate and verify solution hypotheses

Process

  1. Start with initial estimate of needed thoughts
  2. Feel free to question/revise previous thoughts
  3. Add more thoughts if needed, even at the "end"
  4. Mark thoughts that revise or branch
  5. Generate solution hypothesis when appropriate
  6. Verify hypothesis based on Chain of Thought
  7. Repeat until satisfied
  8. Set nextThoughtNeeded: false only when truly done

Tool Execution

The sequential thinking tool is available via MCP. Use it directly in your responses:

// Execute a thinking step
mcp__sequential -
  thinking__sequentialthinking({
    thought: 'Your analysis here...',
    thoughtNumber: 1,
    totalThoughts: 5,
    nextThoughtNeeded: true,
  });

Configuration

MCP server configuration stored in config.json:

  • Command: npx -y @modelcontextprotocol/server-sequential-thinking

Related

  • Original MCP server: @modelcontextprotocol/server-sequential-thinking
  • MCP Converter Skill: .claude/skills/mcp-converter/

Iron Laws

  1. NEVER set nextThoughtNeeded: false before the solution hypothesis has been verified
  2. ALWAYS adjust totalThoughts dynamically as problem complexity becomes clear
  3. NEVER commit to the first approach without exploring at least one alternative via branching
  4. ALWAYS mark corrections explicitly with isRevision: true and revisesThought: N
  5. NEVER stop at the estimated thought count if the hypothesis remains unverified

Anti-Patterns

Anti-PatternWhy It FailsCorrect Approach
Fixed thought countThinking stops at an arbitrary estimate regardless of solution confidenceSet needsMoreThoughts: true and increase totalThoughts when complexity grows
No branchingCommits to the first approach without considering alternativesUse branchFromThought to explore multiple solution paths before choosing
Skipping revisionsIncorrect assumptions propagate uncorrected through downstream thoughtsMark all corrections with isRevision: true and revisesThought: N
Premature terminationUnverified hypothesis leads to incorrect or incomplete solutionsVerify the hypothesis explicitly before setting nextThoughtNeeded: false
No uncertainty markersOverconfident conclusions mislead execution agentsMark tentative thoughts explicitly; distinguish confident vs uncertain reasoning

Memory Protocol (MANDATORY)

Before starting: Read .claude/context/memory/learnings.md

After completing:

  • New pattern -> .claude/context/memory/learnings.md
  • Issue found -> .claude/context/memory/issues.md
  • Decision made -> .claude/context/memory/decisions.md

ASSUME INTERRUPTION: If it's not in memory, it didn't happen.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Ensure accessibility in UI components including semantic HTML, ARIA attributes, keyboard navigation, and WCAG 2.2 AA compliance.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

Use when you want to improve response quality through meta-cognitive reasoning. Applies 15+ reasoning methods to reconsider and refine initial outputs.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

N-round opposing-stance debates for trade-off analysis. Assigns pro/con roles to agents, runs structured debate rounds with quality scoring, and produces a moderator synthesis with confidence-rated recommendation. Generalizable to architecture, technology, security, and design decisions.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

Force adversarial code review stance that eliminates confirmation bias — reviewer must find issues or re-analyze

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

Creates specialized AI agents on-demand when no existing agent matches a request. Use when the Router cannot find a suitable agent for a task. Enables self-evolution by generating persistent agents.

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

LLM-as-judge evaluation framework with 5-dimension rubric (accuracy, groundedness, coherence, completeness, helpfulness) for scoring AI-generated content quality with weighted composite scores and evidence citations

The English summary is being prepared. Showing the original description.

oimiragieo/agent-studio42Updated Jul 14, 2026

See all skills by oimiragieo

Report a problem with this skill