Dynamic problem-solving through structured sequential thoughts. Use when breaking down complex problems, planning multi-step solutions, analyzing ambiguous requirements, debugging intricate issues, exploring design alternatives, or tackling problems where the full scope is unclear. Enables thought revision, branching, and iterative refinement.
This skill provides structured sequential thinking for complex problem-solving through a dynamic, reflective thought process. Each thought can build on, question, or revise previous insights as understanding deepens.
The script is located at: ~/.config/opencode/skills/sequential-thinking/scripts/sequential-thinking.ts
Use $SKILL_DIR or the full path when invoking from any directory.
Start a thinking sequence by estimating total thoughts needed:
bun ~/.config/opencode/skills/sequential-thinking/scripts/sequential-thinking.ts sequentialthinking \
--thought "Initial analysis of the problem..." \
--thought-number 1 \
--total-thoughts 5 \
--next-thought-needed true
Build on previous thoughts, adjusting estimates as needed:
bun ~/.config/opencode/skills/sequential-thinking/scripts/sequential-thinking.ts sequentialthinking \
--thought "Building on insight from step 1..." \
--thought-number 2 \
--total-thoughts 5 \
--next-thought-needed true
When reconsidering earlier conclusions:
bun ~/.config/opencode/skills/sequential-thinking/scripts/sequential-thinking.ts sequentialthinking \
--thought "Reconsidering step 2, I realize..." \
--thought-number 4 \
--total-thoughts 6 \
--is-revision true \
--revises-thought 2 \
--next-thought-needed true
Explore alternative approaches:
bun ~/.config/opencode/skills/sequential-thinking/scripts/sequential-thinking.ts sequentialthinking \
--thought "Alternative approach from step 3..." \
--thought-number 5 \
--total-thoughts 7 \
--branch-from-thought 3 \
--branch-id "alternative-approach" \
--next-thought-needed true
Conclude when solution is verified:
bun ~/.config/opencode/skills/sequential-thinking/scripts/sequential-thinking.ts sequentialthinking \
--thought "Final verified conclusion..." \
--thought-number 6 \
--total-thoughts 6 \
--next-thought-needed false
totalThoughts up/down as understanding evolves--is-revision and --revises-thought--branch-from-thought and --branch-id| Parameter | Required | Description |
|-----------|----------|-------------|
| --thought | Yes | Current thinking step content |
| --thought-number | Yes | Current position in sequence (1-based) |
| --total-thoughts | Yes | Estimated total thoughts (adjustable) |
| --next-thought-needed | Yes | true to continue, false to conclude |
| --is-revision | No | true if revising previous thinking |
| --revises-thought | No | Which thought number being revised |
| --branch-from-thought | No | Branching point thought number |
| --branch-id | No | Identifier for the branch |
| --needs-more-thoughts | No | Signal more thoughts needed |
Control output with --output flag:
text (default): Human-readable textjson: Structured JSONmarkdown: Markdown formattedraw: Raw response datasequential-thinking.ts - MCP server wrapper for sequential thinking (requires Bun runtime)thinking-patterns.md - Common thinking patterns and examples for various problem typesnpx skills add huynguyen03dev/sequential-thinking下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.
Manage Apple Notes via the `memo` CLI on macOS (create, view, edit, delete, search, move, and export notes). Use when a user asks OpenClaw to add a note, list notes, search notes, or manage note folders.
Work with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli.
Use when you need to control Slack from OpenClaw via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
Manage Apple Reminders via remindctl CLI (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.
Manage Trello boards, lists, and cards via the Trello REST API.
Category:productivity