npx skills add https://github.com/oimiragieo/agent-studio --skill thinking-tools本技能提供了三种结构化思维模式,供智能体在执行任务的关键节点使用。这些模式有助于保持工作质量,并防止常见错误,如研究不完整、任务偏离和过早完成。
使用时机:在完成一系列重要的搜索步骤之后,例如:
自我评估问题:
## 信息完整性检查
1. **充分性**:我是否有足够的信息来继续?
- [ ] 我理解了相关的代码结构
- [ ] 我了解了依赖关系和关联
- [ ] 我已识别出所有受影响的组件
2. **相关性**:所有收集到的信息都相关吗?
- [ ] 信息与任务直接相关
- [ ] 没有进行无关的探索
- [ ] 专注于可操作的见解
3. **缺失项**:我遗漏了什么?
- [ ] 是否有我应该阅读但尚未阅读的文件?
- [ ] 是否有我应该搜索的模式?
- [ ] 我是否需要了解相关系统?
4. **信心度**:我对自己的理解有多大把握?
- [ ] 高:准备继续
- [ ] 中:需要少量澄清
- [ ] 低:需要更多研究
**决策**:[继续 / 收集更多信息 / 询问用户]
示例反思:
我已经阅读了身份验证模块 (auth.ts) 和用户模型 (user.ts)。
我理解了登录的工作原理,但我还没有检查:
- 会话令牌是如何管理的
- 注销功能在哪里实现
- 错误处理模式是什么
决策:在继续之前,先阅读 session.ts 和 error-handler.ts。
使用时机:在进行任何代码更改(插入、替换、删除)之前。这对于确保你仍在解决原始问题至关重要。
自我评估问题:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
## 任务一致性检查
1. **原始任务**:我被要求做什么?
- 清晰地重述原始请求
- 确定核心目标
2. **当前行动**:我打算做什么?
- 描述计划的更改
- 解释其与目标的关系
3. **一致性检查**:
- [ ] 此操作直接针对原始任务
- [ ] 我没有添加未请求的功能
- [ ] 我没有“改进”未被问及的代码
- [ ] 范围适合该请求
4. **范围蔓延警告信号**:
- 我是否在重构正常工作的代码?
- 我是否在添加“锦上添花”的功能?
- 我是否在修复我注意到的无关问题?
- 我是否偏离了最初的请求?
**决策**:[继续 / 重新聚焦 / 请求用户澄清]
示例反思:
原始任务:"修复登录超时错误"
我打算:
1. 通过增加限制来修复超时问题(直接针对任务)
2. 同时重构错误消息(未请求)
3. 同时添加重试逻辑(未请求)
决策:仅实现 #1。其他更改属于范围蔓延。
如果用户想要这些改进,他们可以单独提出请求。
使用时机:当你认为自己已完成任务时。这可以防止过早完成并确保质量。
自我评估问题:
## 完成验证检查
1. **需求满足情况**:
- [ ] 所有明确的需求都已解决
- [ ] 所有隐含的需求都已考虑
- [ ] 边缘情况已处理
2. **质量检查**:
- [ ] 代码编译/运行无错误
- [ ] 测试通过(或已编写新测试)
- [ ] 未引入回归问题
- [ ] 遵循项目约定
3. **文档**:
- [ ] 代码是自解释的或在需要的地方有注释
- [ ] 如果需要,已更新 README
- [ ] 已记录破坏性变更
4. **已采取的验证步骤**:
- [ ] 运行了相关测试
- [ ] 如果适用,进行了手动测试
- [ ] 检查了代码规范/类型错误
5. **未了结事项**:
- 是否引入了任何未完成的任务?
- 是否有任何已知的限制?
- 是否需要任何后续工作?
**决策**:[完成 / 需要额外工作 / 部分完成]
示例反思:
任务:"添加用户邮箱验证"
需求检查:
- [x] 已添加邮箱格式验证
- [x] 无效邮箱显示错误消息
- [ ] 未检查:空邮箱如何处理?
质量检查:
- [x] TypeScript 编译通过
- [ ] 测试:尚未编写任何测试!
决策:未完成。需要:
1. 处理空邮箱的情况
2. 为验证功能编写单元测试
[研究阶段]
|
v
思考已收集的信息
|
v
[规划阶段]
|
v
思考任务一致性(每次更改前)
|
v
[实施阶段]
|
v
思考你是否已完成
|
v
[完成或迭代]
对于重要任务,将反思记录到记忆中:
## 任务:[描述]
## 反思日志
### 信息收集
- 已读文件:[列表]
- 已识别的缺失项:[列表]
- 决策:[继续/收集更多]
### 任务一致性检查
- 原始任务:[描述]
- 计划更改:[列表]
- 范围评估:[在范围内/已调整]
### 完成检查
- 需求:[满足/部分/未满足]
- 测试:[通过/失败/未运行]
- 最终状态:[完成/需要工作]
阶段 1 - 研究之后:
思考已收集的信息:
- 阅读了 search.ts, index.ts, searchUtils.ts
- 发现错误:不正确的正则表达式模式
- 已检查:测试文件存在 (search.test.ts)
- 缺失项:尚未检查是否存在相关的搜索文件
决策:快速 grep 搜索 "search" 以确保完整性...
发现 search-config.ts 是相关的。现在阅读。
阶段 2 - 编码之前:
思考任务一致性:
- 原始任务:"修复损坏的搜索功能"
- 计划:修复 searchUtils.ts 第 45 行的正则表达式模式
- 范围检查:这直接修复了错误。没有添加新的搜索功能。
决策:进行有针对性的修复。
阶段 3 - 实施之后:
思考你是否已完成:
- [x] 错误已修复(正则表达式已更正)
- [x] 现有测试仍然通过
- [ ] 没有为此特定情况编写新测试
决策:添加回归测试,然后完成。
</usage_example>
| 反模式 | 失败原因 | 正确方法 |
|---|---|---|
| 在接近完成时跳过检查点 | 大多数错误在后期才显现;跳过会隐藏它们 | 无论进度如何,都应用所有三个检查点 |
| 匆忙完成检查点问题 | 肤浅的答案会产生虚假的信心 | 每个检查点花 30 秒,诚实地回答 |
| 合理化掉危险信号 | 借口掩盖了真正的问题 | 停止并修复检查点揭示的任何问题 |
| 将检查点用作形式主义 | 不假思索地勾选复选框毫无价值 | 真正评估每个问题并根据发现采取行动 |
| 仅运行最终检查点 | 早期的检查点可以防止昂贵的返工 | 在指定的触发点使用所有三个检查点 |
开始前: 阅读 .claude/context/memory/learnings.md
完成后:
.claude/context/memory/learnings.md.claude/context/memory/issues.md.claude/context/memory/decisions.md假设中断:如果不在记忆中,就等于没发生。
每周安装数
83
代码仓库
GitHub 星标数
23
首次出现
2026年1月27日
安全审计
安装于
github-copilot80
gemini-cli79
codex78
cursor77
opencode77
kimi-cli76
This skill provides three structured thinking patterns that agents should use at key points during task execution. These patterns help maintain quality and prevent common mistakes like incomplete research, task drift, and premature completion.
When to Use : After completing a non-trivial sequence of searching steps like:
Self-Assessment Questions :
## Information Completeness Check
1. **Sufficiency**: Do I have enough information to proceed?
- [ ] I understand the relevant code structure
- [ ] I know the dependencies and relationships
- [ ] I have identified all affected components
2. **Relevance**: Is all collected information relevant?
- [ ] Information directly relates to the task
- [ ] No tangential exploration
- [ ] Focused on actionable insights
3. **Gaps**: What am I missing?
- [ ] Are there files I should read but haven't?
- [ ] Are there patterns I should search for?
- [ ] Do I need to understand related systems?
4. **Confidence**: How confident am I in my understanding?
- [ ] High: Ready to proceed
- [ ] Medium: Minor clarification needed
- [ ] Low: More research required
**Decision**: [Proceed / Gather More Information / Ask User]
Example Reflection :
I've read the authentication module (auth.ts) and the user model (user.ts).
I understand how login works but I haven't checked:
- How session tokens are managed
- Where logout is implemented
- What the error handling pattern is
Decision: Read session.ts and error-handler.ts before proceeding.
When to Use : BEFORE making any code changes (insert, replace, delete). This is critical to ensure you're still solving the original problem.
Self-Assessment Questions :
## Task Adherence Check
1. **Original Task**: What was I asked to do?
- Restate the original request clearly
- Identify the core goal
2. **Current Action**: What am I about to do?
- Describe the planned change
- Explain how it relates to the goal
3. **Alignment Check**:
- [ ] This action directly addresses the original task
- [ ] I am not adding unrequested features
- [ ] I am not "improving" code that wasn't asked about
- [ ] The scope is appropriate for the request
4. **Scope Creep Warning Signs**:
- Am I refactoring code that works?
- Am I adding "nice to have" features?
- Am I fixing unrelated issues I noticed?
- Have I drifted from the original ask?
**Decision**: [Proceed / Refocus / Ask User for Clarification]
Example Reflection :
Original Task: "Fix the login timeout error"
I'm about to:
1. Fix the timeout by increasing the limit (directly addresses task)
2. Also refactor the error messages (NOT requested)
3. Also add retry logic (NOT requested)
Decision: Only implement #1. The other changes are scope creep.
If user wants those improvements, they can request them separately.
When to Use : When you believe you have completed the task. This prevents premature completion and ensures quality.
Self-Assessment Questions :
## Completion Validation Check
1. **Requirements Met**:
- [ ] All explicit requirements addressed
- [ ] All implicit requirements considered
- [ ] Edge cases handled
2. **Quality Checks**:
- [ ] Code compiles/runs without errors
- [ ] Tests pass (or new tests written)
- [ ] No regressions introduced
- [ ] Follows project conventions
3. **Documentation**:
- [ ] Code is self-documenting or commented where needed
- [ ] README updated if needed
- [ ] Breaking changes documented
4. **Verification Steps Taken**:
- [ ] Ran relevant tests
- [ ] Tested manually if applicable
- [ ] Checked for lint/type errors
5. **Loose Ends**:
- Any open tasks introduced?
- Any known limitations?
- Any follow-up work needed?
**Decision**: [Complete / Additional Work Needed / Partial Completion]
Example Reflection :
Task: "Add user email validation"
Requirements Check:
- [x] Email format validation added
- [x] Error message shows for invalid email
- [ ] Did NOT check: what about empty email?
Quality Check:
- [x] TypeScript compiles
- [ ] Tests: No tests written yet!
Decision: NOT complete. Need to:
1. Handle empty email case
2. Write unit tests for validation
[Research Phase]
|
v
Think About Collected Information
|
v
[Planning Phase]
|
v
Think About Task Adherence (before each change)
|
v
[Implementation Phase]
|
v
Think About Whether You Are Done
|
v
[Completion or Iterate]
For important tasks, log reflections to memory:
## Task: [description]
## Reflection Log
### Information Gathering
- Files read: [list]
- Gaps identified: [list]
- Decision: [proceed/gather more]
### Task Adherence Check
- Original task: [description]
- Planned changes: [list]
- Scope assessment: [in-scope/adjusted]
### Completion Check
- Requirements: [met/partial/not met]
- Tests: [passed/failed/not run]
- Final status: [complete/needs work]
Phase 1 - After Research :
Think About Collected Information:
- Read search.ts, index.ts, searchUtils.ts
- Found the bug: incorrect regex pattern
- Checked: test file exists (search.test.ts)
- Gap: Haven't checked if there are related search files
Decision: Quick grep for "search" to ensure completeness...
Found search-config.ts which is relevant. Reading now.
Phase 2 - Before Coding :
Think About Task Adherence:
- Original: "fix the broken search feature"
- Planned: Fix regex pattern in searchUtils.ts line 45
- Scope check: This directly fixes the bug. NOT adding new search features.
Decision: Proceed with targeted fix.
Phase 3 - After Implementation :
Think About Whether You Are Done:
- [x] Bug fixed (regex corrected)
- [x] Existing tests still pass
- [ ] No new test for this specific case
Decision: Add regression test, then complete.
</usage_example>
| Anti-Pattern | Why It Fails | Correct Approach |
|---|---|---|
| Skipping checkpoints when nearly done | Most errors surface late; skipping hides them | Apply all three checkpoints regardless of progress |
| Rushing through checkpoint questions | Superficial answers produce false confidence | Take 30 seconds per checkpoint, answer honestly |
| Rationalizing away red flags | Excuses mask genuine problems | Stop and fix any issue the checkpoint reveals |
| Using checkpoints as ceremony | Checkbox ticking without reflection adds no value | Genuinely assess each question and act on findings |
| Running only a final checkpoint | Earlier checkpoints prevent expensive rework | Use all three at their designated trigger points |
Before starting: Read .claude/context/memory/learnings.md
After completing:
.claude/context/memory/learnings.md.claude/context/memory/issues.md.claude/context/memory/decisions.mdASSUME INTERRUPTION: If it's not in memory, it didn't happen.
Weekly Installs
83
Repository
GitHub Stars
23
First Seen
Jan 27, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
github-copilot80
gemini-cli79
codex78
cursor77
opencode77
kimi-cli76
AI 代码实施计划编写技能 | 自动化开发任务分解与 TDD 流程规划工具
49,800 周安装
Google Workspace CLI 团队负责人技能:自动化站会、任务协调与团队沟通工具
7,900 周安装
Google Workspace 事件订阅命令 gws-events-subscribe:实时流式监控与自动化处理
8,000 周安装
Google Calendar 会议重新安排技能 - 自动更新会议时间并通知参与者
7,900 周安装
冲刺回顾模板:敏捷团队回顾会议指南与模板(开始-停止-继续/愤怒-悲伤-高兴/4Ls)
10,400 周安装
任务估算指南:敏捷开发故事点、计划扑克、T恤尺码法详解
10,500 周安装
站立会议模板:敏捷开发每日站会指南与工具(含远程团队异步模板)
10,500 周安装