└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # sequentialthinking 工具使用教程 2 | 3 | > 标签: #顺序思维 #sequentialthinking #mcp 4 | 5 | ## 什么是 sequentialthinking? 6 | 7 | sequentialthinking 是一种强大的思考工具,它允许人工智能通过动态和反思性的步骤来解决复杂问题。与简单的问答不同,这个工具通过一系列有序但灵活的思考步骤,逐步深入分析问题,并可以在过程中调整、修正或扩展思路。 8 | 9 | ## 适用场景 10 | 11 | - 需要分步骤解决的复杂问题 12 | - 需要灵活调整的规划和设计 13 | - 可能需要修正方向的分析 14 | - 初始阶段范围不明确的问题 15 | - 需要多步骤解决的问题 16 | - 需要在多个步骤中保持上下文的任务 17 | - 需要过滤无关信息的情况 18 | 19 | ## 使用方法详解 20 | 21 | ### 基本参数说明 22 | 23 | - **thought**:当前的思考步骤内容 24 | - **next_thought_needed**:是否需要继续思考 25 | - **thought_number**:当前思考的序号 26 | - **total_thoughts**:预计需要的思考总数 27 | - **is_revision**:是否修改先前的思考 28 | - **revises_thought**:如是修改,指出修改哪个思考 29 | - **branch_from_thought**:从哪个思考点分支 30 | - **branch_id**:分支标识符 31 | - **needs_more_thoughts**:是否需要更多思考 32 | 33 | ## 提示词模板与使用流程 34 | 35 | ### 第一步:提出问题并启动思考工具 36 | 37 | ``` 38 | 请使用sequentialthinking工具帮我解决以下问题:[具体问题]。请从基本分析开始,逐步深入思考。 39 | ``` 40 | 41 | ### 第二步:指导工具进行下一步思考(如需要) 42 | 43 | ``` 44 | 请继续思考。我认为你可能需要考虑[某个具体方面]。 45 | ``` 46 | 47 | ### 第三步:要求调整思考方向(如需要) 48 | 49 | ``` 50 | 我认为第[X]个思考可能需要修正,因为[原因]。请重新考虑这一点。 51 | ``` 52 | 53 | ### 第四步:提出分支思考(如需要) 54 | 55 | ``` 56 | 请从第[X]个思考点创建一个新的思考分支,探索[另一种可能性]。 57 | ``` 58 | 59 | ### 第五步:要求总结并给出结论 60 | 61 | ``` 62 | 现在请验证你的思考过程,并给出最终答案。 63 | ``` 64 | 65 | ## 实际使用示例 66 | 67 | ### 示例问题:设计一个高效的远程团队会议系统 68 | 69 | **用户**:请使用sequentialthinking工具帮我设计一个高效的远程团队会议系统。请从基本需求分析开始,逐步深入思考。 70 | 71 | **Claude 第一次思考**: 72 | ``` 73 | { 74 | "thought": "首先需要分析远程团队会议的基本需求。远程会议系统需要解决的核心问题是让分散在不同地点的团队成员能够有效沟通和协作。基本需求包括:视频和音频通话功能、屏幕共享、文件共享、会议记录等。", 75 | "thought_number": 1, 76 | "total_thoughts": 5, 77 | "next_thought_needed": true 78 | } 79 | ``` 80 | 81 | **用户**:请继续思考。 82 | 83 | **Claude 第二次思考**: 84 | ``` 85 | { 86 | "thought": "接下来需要考虑用户体验设计。系统界面应简洁直观,操作流程应尽可能简化。关键功能如加入会议、打开/关闭麦克风和摄像头、共享屏幕等应该一目了然。还需要考虑不同设备(电脑、手机、平板)的适配,确保跨平台体验一致。", 87 | "thought_number": 2, 88 | "total_thoughts": 5, 89 | "next_thought_needed": true 90 | } 91 | ``` 92 | 93 | **用户**:请继续思考,但我认为我们需要更关注安全性问题。 94 | 95 | **Claude 第三次思考**: 96 | ``` 97 | { 98 | "thought": "安全性确实是远程会议系统的关键考量。需要实现端到端加密保护会议内容,设置会议密码和等候室功能防止未授权访问,提供会议主持人控制权限如移除参与者、控制屏幕共享权限等。还需考虑数据存储安全和合规性(如GDPR),防范潜在的"会议轰炸"等安全威胁。", 99 | "thought_number": 3, 100 | "total_thoughts": 6, 101 | "next_thought_needed": true, 102 | "is_revision": false 103 | } 104 | ``` 105 | 106 | **用户**:我认为第1个思考不够全面,需要更多考虑协作功能。请修正。 107 | 108 | **Claude 第四次思考**: 109 | ``` 110 | { 111 | "thought": "重新考虑远程会议系统的基本需求,确实需要更强调协作功能。除了之前提到的视频/音频通话、屏幕共享等基础功能外,还应包括:实时协作白板、投票和反馈收集工具、分组讨论室功能、实时文档协作编辑、任务分配和跟踪、会议内即时消息和表情反应等互动功能。这些协作工具能够更好地模拟面对面会议的互动性和高效性。", 112 | "thought_number": 4, 113 | "total_thoughts": 6, 114 | "next_thought_needed": true, 115 | "is_revision": true, 116 | "revises_thought": 1 117 | } 118 | ``` 119 | 120 | **用户**:请从第3个思考创建一个分支,考虑如何确保系统的可扩展性。 121 | 122 | **Claude 第五次思考**: 123 | ``` 124 | { 125 | "thought": "从安全性考虑分支到系统可扩展性。远程会议系统需要能够应对不同规模的会议需求。这包括:采用微服务架构使系统各部分能独立扩展;使用云基础设施实现弹性资源分配,自动根据用户数量调整计算资源;实现负载均衡确保系统在高峰期稳定;考虑全球分布式部署减少延迟;设计API和插件系统允许第三方集成和功能扩展;建立高效的媒体处理和传输机制优化大规模视频会议的性能。", 126 | "thought_number": 5, 127 | "total_thoughts": 7, 128 | "next_thought_needed": true, 129 | "branch_from_thought": 3, 130 | "branch_id": "可扩展性分支" 131 | } 132 | ``` 133 | 134 | **用户**:现在请验证你的思考过程,并给出最终答案。 135 | 136 | **Claude 最终总结**: 137 | ``` 138 | { 139 | "thought": "验证我们的思考过程:(1)修正后的基本需求分析涵盖了核心通讯功能和丰富的协作工具;(2)用户体验设计考虑了简洁性和跨平台适配;(3)安全性分析包含了数据加密、访问控制和合规性;(4)可扩展性分支探讨了系统架构和性能优化。这些思考覆盖了远程会议系统的关键方面。我认为设计方案已经相当完整,可以提出最终建议。", 140 | "thought_number": 6, 141 | "total_thoughts": 7, 142 | "next_thought_needed": false 143 | } 144 | ``` 145 | 146 | **Claude 最终答案**: 147 | 148 | 基于前面的分析,高效远程团队会议系统的设计应包括四个核心方面: 149 | 150 | 1. **功能全面性**:不仅提供基础的视频/音频通话和屏幕共享,还应包括实时协作白板、分组讨论室、文档协作编辑、投票工具等协作功能,全方位支持团队互动。 151 | 152 | 2. **用户体验优先**:界面简洁直观,关键功能易于找到,支持跨平台使用且体验一致,操作流程简化以减少学习成本。 153 | 154 | 3. **安全与隐私保障**:实现端到端加密,提供会议密码和等候室功能,赋予主持人全面控制权,确保数据存储符合隐私法规。 155 | 156 | 4. **可扩展性架构**:采用微服务和云基础设施设计,支持从小型会议到大规模会议的弹性扩展,全球分布式部署减少延迟,提供API和插件系统支持功能扩展。 157 | 158 | 这样的系统设计兼顾了功能性、易用性、安全性和技术可持续性,能够真正提升远程团队的协作效率。 159 | 160 | ## 使用提示词总结 161 | 162 | 1. **开始提问**: 163 | ``` 164 | 请使用sequentialthinking工具帮我解决[问题描述]。请从基础分析开始,逐步深入思考。 165 | ``` 166 | 167 | 2. **继续思考**: 168 | ``` 169 | 请继续思考下一步。 170 | ``` 171 | 172 | 3. **引导关注特定方面**: 173 | ``` 174 | 请继续思考,并特别关注[特定方面]。 175 | ``` 176 | 177 | 4. **修正先前思考**: 178 | ``` 179 | 我认为第[X]个思考需要修正,因为[原因]。请重新考虑这个思考点。 180 | ``` 181 | 182 | 5. **创建思考分支**: 183 | ``` 184 | 请从第[X]个思考创建一个分支,探讨[另一种可能性或方向]。 185 | ``` 186 | 187 | 6. **增加思考总数**: 188 | ``` 189 | 我认为这个问题可能需要更多思考步骤,请增加total_thoughts并继续分析。 190 | ``` 191 | 192 | 7. **要求验证和总结**: 193 | ``` 194 | 请验证你的思考过程,并给出最终答案。 195 | ``` 196 | 197 | 通过这套提示词,您可以引导AI使用sequentialthinking工具,逐步深入分析复杂问题,并在需要时调整思考方向,最终得到全面而有深度的答案。 198 | 199 | --- 200 | 201 | ## 原始功能说明(英文) 202 | 203 | ``` 204 | A detailed tool for dynamic and reflective problem-solving through thoughts. 205 | This tool helps analyze problems through a flexible thinking process that can adapt and evolve. 206 | Each thought can build on, question, or revise previous insights as understanding deepens. 207 | 208 | When to use this tool: 209 | - Breaking down complex problems into steps 210 | - Planning and design with room for revision 211 | - Analysis that might need course correction 212 | - Problems where the full scope might not be clear initially 213 | - Problems that require a multi-step solution 214 | - Tasks that need to maintain context over multiple steps 215 | - Situations where irrelevant information needs to be filtered out 216 | 217 | Key features: 218 | - You can adjust total_thoughts up or down as you progress 219 | - You can question or revise previous thoughts 220 | - You can add more thoughts even after reaching what seemed like the end 221 | - You can express uncertainty and explore alternative approaches 222 | - Not every thought needs to build linearly - you can branch or backtrack 223 | - Generates a solution hypothesis 224 | - Verifies the hypothesis based on the Chain of Thought steps 225 | - Repeats the process until satisfied 226 | - Provides a correct answer 227 | 228 | Parameters explained: 229 | - thought: Your current thinking step, which can include: 230 | * Regular analytical steps 231 | * Revisions of previous thoughts 232 | * Questions about previous decisions 233 | * Realizations about needing more analysis 234 | * Changes in approach 235 | * Hypothesis generation 236 | * Hypothesis verification 237 | - next_thought_needed: True if you need more thinking, even if at what seemed like the end 238 | - thought_number: Current number in sequence (can go beyond initial total if needed) 239 | - total_thoughts: Current estimate of thoughts needed (can be adjusted up/down) 240 | - is_revision: A boolean indicating if this thought revises previous thinking 241 | - revises_thought: If is_revision is true, which thought number is being reconsidered 242 | - branch_from_thought: If branching, which thought number is the branching point 243 | - branch_id: Identifier for the current branch (if any) 244 | - needs_more_thoughts: If reaching end but realizing more thoughts needed 245 | ``` --------------------------------------------------------------------------------