← 返回 Skills 市场
paibwhgs

Agent Sequential Thinking

作者 paibwhgs · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
216
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install agent-sequential-thinking
功能描述
基于 MCP Sequential Thinking Server,分解复杂任务为步骤,支持动态调整、分支探索与假设验证。
使用说明 (SKILL.md)

序列思考 Skill (Sequential Thinking)

基于 MCP Sequential Thinking Server 设计的复杂任务分解工具。

功能

  1. 任务分解 - 将复杂问题分解为可管理的步骤
  2. 动态调整 - 随理解深入修订和调整思考步骤数
  3. 分支探索 - 探索替代推理路径
  4. 假设验证 - 生成和验证解决方案假设

思考流程

问题定义 → 信息收集 → 问题分解 → 多维分析 → 
建立连接 → 生成方案 → 评估选择 → 实施反馈

使用方法

输入参数

参数 说明 示例
thought 当前思考内容 "首先分析问题边界..."
thoughtNumber 当前步骤编号 1
totalThoughts 预估总步骤数 8
nextThoughtNeeded 是否需要下一步 true
isRevision 是否修订之前思考 false
revisesThought 修订的步骤编号 3
branchFromThought 分支起点 5
branchId 分支标识 "方案A"
needsMoreThoughts 需要更多步骤 false

示例输出

{
  "thoughtNumber": 1,
  "totalThoughts": 8,
  "thought": "首先分析问题边界:用户需要一个金融数据看板",
  "nextThoughtNeeded": true,
  "branches": []
}

适用场景

  • ✅ 分解复杂问题
  • ✅ 需要修订的规划和设计
  • ✅ 初始不清楚全貌的问题
  • ✅ 需要多步骤保持上下文的任务
  • ✅ 需要过滤无关信息的情况

System Prompt 集成

在 Agent 的 System Prompt 中添加:

## 思考模式

遇到复杂任务时,使用序列思考:

1. 问题定义
   - 明确任务目标和边界
   - 识别关键约束

2. 信息收集
   - 检索相关记忆
   - 搜索必要信息

3. 问题分解
   - 拆分为子任务
   - 确定优先级

4. 多维分析
   - 技术角度:可行性、复杂度
   - 用户角度:体验、偏好
   - 时间角度:紧急度、工作量

5. 建立连接
   - 关联已有知识
   - 识别依赖关系

6. 生成方案
   - 提出多个候选方案
   - 考虑分支可能性

7. 评估选择
   - 对比方案优劣
   - 选择最优路径

8. 实施反馈
   - 执行并监控结果
   - 根据反馈调整

分支示例

当发现当前路径可能不是最优时,创建分支:

thoughtNumber: 5
thought: "方案A(Streamlit)可行,但方案B(React)可能更适合长期维护"
branchFromThought: 5
branchId: "方案B"
totalThoughts: 10  // 增加步骤数以探索分支

修订示例

当发现之前的思考有误时,修订:

thoughtNumber: 6
thought: "修正:方案A的部署问题可以通过更新依赖解决"
isRevision: true
revisesThought: 4

与 OpenClaw 集成

自动触发条件

  • 任务涉及多个步骤
  • 问题复杂度超过阈值
  • 用户明确要求"思考一下"
  • 需要对比多个方案

思考输出格式

思考过程可以输出为 Markdown,记录在 memory/thinking-YYYY-MM-DD.md

# 思考记录:金融数据看板部署

## 步骤 1:问题定义
任务:部署金融数据看板到公网

## 步骤 2:信息收集
- 已有:本地运行正常
- 需要:公网 URL、免费方案

## 步骤 3:问题分解
1. 选择部署平台
2. 修复依赖问题
3. 上传代码
4. 测试访问

## 步骤 4:多维分析
...

## 步骤 7:评估选择
方案 A(Streamlit Cloud):推荐
理由:免费、自动部署、适合展示

## 步骤 8:实施反馈
结果:部署成功
URL: https://finance-dashboard-xxx.streamlit.app

基于 MCP Sequential Thinking Server 设计

安全使用建议
This skill is an instruction-only template for stepwise reasoning and appears coherent with its purpose. Before installing, decide whether you want the agent to: (1) add these lines to your System Prompt (this can change agent behavior globally), (2) write thinking logs into the agent memory directory (check where memory is stored and access controls), and (3) access any configured search/memory connectors — if any of those are undesired, do not enable automatic integration or restrict where the agent can write/read. No credentials or external installs are requested by the skill itself, but be cautious about including sensitive data in generated 'thought' logs.
功能分析
Type: OpenClaw Skill Name: agent-sequential-thinking Version: 1.0.1 The skill bundle provides a conceptual framework and instructions for 'Sequential Thinking' (task decomposition and reasoning) based on the MCP design. It contains only metadata (_meta.json) and Markdown instructions (SKILL.md) for the agent to follow, with no executable code, network calls, or suspicious data handling logic.
能力评估
Purpose & Capability
Name/description (sequential thinking, task decomposition) match the SKILL.md content. No unrelated binaries, env vars, or config paths are requested. The skill is purely guidance for agent behavior.
Instruction Scope
SKILL.md instructs integrating prompts into the agent System Prompt and recommends writing thought logs to memory/thinking-YYYY-MM-DD.md and 'retrieving related memory' or 'searching necessary information'. This is coherent for a reasoning aid but grants the agent broad discretion to read and write agent memory and to invoke any configured search/memory tools — review where memory is stored and what search connectors the agent has.
Install Mechanism
No install spec and no code files; nothing is downloaded or written to disk by the skill itself. Lowest-risk category (instruction-only).
Credentials
The skill declares no required environment variables, credentials, or config paths. SKILL.md does not reference secrets or external endpoints. Proportional to the described functionality.
Persistence & Privilege
always:false and no special privileges. The instructions recommend writing thought records into the agent's memory directory (memory/thinking-YYYY-MM-DD.md), which is normal but will persist content — avoid logging sensitive data in those files and confirm retention/permissions for the memory store.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-sequential-thinking
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-sequential-thinking 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Version 1.0.1 of agent-sequential-thinking - No file changes detected for this version. - Documentation, usage, and functionality remain unchanged.
v1.0.0
- Major skill redesign: switched to a new Sequential Thinking approach based on MCP Sequential Thinking Server. - All documentation rewritten in Chinese, focusing on practical, multi-step reasoning workflows. - CLI script and previous usage instructions removed; now centered around API/agent integration and structured system prompt guidance. - Adds support for dynamic step revision, multi-path branching, and detailed output format. - Provides agent-ready system prompt templates and explicit integration instructions for OpenClaw. - Includes detailed real-world scenario examples and output formatting for process transparency.
元数据
Slug agent-sequential-thinking
版本 1.0.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 2
常见问题

Agent Sequential Thinking 是什么?

基于 MCP Sequential Thinking Server,分解复杂任务为步骤,支持动态调整、分支探索与假设验证。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 216 次。

如何安装 Agent Sequential Thinking?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-sequential-thinking」即可一键安装,无需额外配置。

Agent Sequential Thinking 是免费的吗?

是的,Agent Sequential Thinking 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Agent Sequential Thinking 支持哪些平台?

Agent Sequential Thinking 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Agent Sequential Thinking?

由 paibwhgs(@paibwhgs)开发并维护,当前版本 v1.0.1。

💬 留言讨论