
Security News
PHP Patches Critical RCE Vulnerabilities, Organizations Urged to Take Unpatched Sites Offline
PHP releases emergency patches for two critical RCE vulnerabilities as agencies urge organizations to take unpatched sites offline.
sequential-thinking-cli
Advanced tools
AI-first sequential thinking CLI with guided step progression, convergence control, replay, and export.
让 AI 在复杂问题里持续推进、允许修正,并最终收敛成结论。
A reusable skill for controlled multi-step reasoning, revision, comparison, and convergence.
| 组件 | 干什么 | 什么时候用 |
|---|---|---|
| sequential-thinking | 定义什么时候该进入顺序思考、如何推进、何时修正、如何收敛 | 复杂问题需要多步分析、设计规划、问题分解、候选方案比较时 |
| sequential-thinking-cli | 提供 start / step / replay 执行协议、自动落盘、回放和导出能力 | 需要把 sequential-thinking 变成一个可执行、可复核、可导出的运行时过程时 |
这个仓库的重点是 skill 本身。CLI 不是主角,它只是让这个 skill 真正落地的执行层。
sequential-thinking 不是“多写几段 thought”的技巧,而是一种面向复杂问题的受控推理方式:持续推进、允许修正、保留边界,并最终收敛成结论。
它解决的不是“不会想”,而是:
这个 skill 的目标,是把复杂问题处理成一个有边界、可修正、可复核的推理过程,而不是让模型一开始就假装自己已经知道答案。
不适用场景:
它的核心能力包括:
npx skills add haaaiawd/sequential-thinking-skills
适配所有支持 SKILL.md 协议的 AI 客户端。
当问题符合以下特征时,让 AI 进入 sequential-thinking:
推荐工作流:
1. 先判断问题是否真的需要 sequential-thinking,而不是默认套用。
2. 如需要,进入 sequential-thinking skill。
3. 用 start 定义问题边界、目标、模式和步数。
4. 用 step 逐步推进,每一步只表达当前推进内容。
5. 当出现新证据时,允许修正,而不是硬撑旧判断。
6. 到收敛阶段时,必须输出结论、风险与下一步建议。
7. 完成后按需使用 replay 生成与导出回放文档。
sthink start --name "query-diagnosis" --goal "定位查询性能下降的主因" --mode explore --totalSteps 5
sthink step --sessionPath "<session-path>" --content "先不要急着选优化手段。需要先把问题拆成几层:是单条 SQL 退化、接口级 N+1,还是更上层的调用放大。若根因没分清,后面的缓存、索引、重写都可能只是补丁。"
sthink step --sessionPath "<session-path>" --content "从查询日志看,用户详情接口在一次请求里触发了大量重复读取,已经出现明显的 N+1 信号。但还不能直接下结论,因为重复查询也可能只是症状;需要继续确认慢点究竟来自“查询次数过多”,还是“某条关键查询本身很慢”。因此总步数上调一档。"
sthink step --sessionPath "<session-path>" --content "结论可以收敛了:主因是列表页批量加载时触发的 N+1,次因是关联字段缺少索引放大了单次查询成本。优化顺序应该先消除 N+1,再补索引验证尾延迟;这样既先打掉主矛盾,也避免一上来引入缓存复杂度。"
sthink step --sessionPath "<session-path>" --content "回看 profiling 结果后,前面的判断需要修正:真正拖垮接口的不是 N+1 本身,而是关联列缺少索引,导致每次关联查询都在放大全表扫描成本。也就是说,N+1 仍然存在,但它不是第一性瓶颈,优先级应该后移。"
sthink start --name "performance-tradeoff" --goal "比较缓存止血与查询优化的优先级" --mode branch --totalSteps 5
sthink step --sessionPath "<session-path>" --content "方案 A:先引入缓存削峰。好处是见效快、对接口层侵入小,适合先止血;坏处是会把问题从“数据库慢”转成“缓存一致性与失效策略复杂”,如果根因其实是查询设计不合理,这条路容易把偶然复杂度永久留在系统里。与此同时,方案 B:直接做索引优化和查询重写。好处是从根上消除瓶颈,长期结构更干净;代价是需要更仔细验证写入放大、锁竞争和回归风险。这条路更慢,但如果业务模型稳定,通常比提前上缓存更符合简单优先的原则。"
sequential-thinking-cli 是这个 skill 的执行层运行时,通过 npm 分发,对外命令名为 sthink。
它提供:
| 要求 | 说明 |
|---|---|
| Node.js 20+ | node --version |
| npm / pnpm | 用于安装 CLI |
npm install -g sequential-thinking-cli
# 或
pnpm add -g sequential-thinking-cli
安装后使用:
sthink
执行层通过三个主路径动作完成:
startstepreplaystart只接受四个输入:
namegoalmodetotalSteps约束:
mode 仅允许 explore、branch、audittotalSteps 仅允许 5 或 8step只接受:
content其余上下文由 runtime 自动恢复并注入。
replay用于读取已完成会话并生成 replay 文档;如需要,可额外导出到当前目录。
runtime 提供最小必要的 step policy surface:
modetotalStepsshouldConvergemustConclude这保证了协议足够窄,同时仍然能为受控收敛提供结构支撑。
replay 支持导出到当前目录,便于审阅与复用Sequential-thinking-skills/
├── README.md
├── LICENSE
├── package.json
├── cli/
├── src/
├── tests/
└── skills/
└── sequential-thinking-skill/
└── SKILL.md
pnpm install
pnpm verify
pnpm build
MIT
FAQs
AI-first sequential thinking CLI with guided step progression, convergence control, replay, and export.
The npm package sequential-thinking-cli receives a total of 0 weekly downloads. As such, sequential-thinking-cli popularity was classified as not popular.
We found that sequential-thinking-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
PHP releases emergency patches for two critical RCE vulnerabilities as agencies urge organizations to take unpatched sites offline.

Threat Research
/Security News
A supply chain attack compromised LiteLLM 1.107.0 on PyPI and Docker, spreading malware that steals cloud credentials, developer secrets, and AI provider keys.

Security News
vlt 1.5.0 links skills from JavaScript dependencies to coding agents, with lockfile versioning and Socket data to filter out known malicious packages.