mcpField
T
think

think

github.com/johnlindquist生产力26258 次安装45 周前更新
代码仓库

关于 think

借助 Gemini CLI 进行结构化推理的技能,提供多框架分析、快速思考、观点质询和选项评估。适用于架构决策、代码设计与调试分析。

主要功能

  1. 01多框架深度分析
  2. 02快速逐步推理
  3. 03质询想法与假设
  4. 04按标准评估选项
  5. 05前瞻分析与机会成本

适用场景

  1. 01比较软件架构方案
  2. 02分析代码设计取舍
  3. 03梳理调试问题的可能原因

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/johnlindquist/claude --skill think

安装后在 Claude Code 中输入/think确认已加载。

详细介绍

Think - 结构化推理

运用结构化思维框架解决复杂问题。

前置条件

已安装 Gemini CLI:

pip install google-generativeai
export GEMINI_API_KEY=your_api_key

CLI 参考

所有命令均使用带结构化提示词的 Gemini:

gemini -m pro -o text -e "" "Your prompt"

思考操作

深度分析

对复杂问题进行多框架推理:

gemini -m pro -o text -e "" "Analyze this problem using multiple thinking frameworks:

PROBLEM: [Your problem]

Apply these frameworks:
1. First Principles - Break down to fundamental truths
2. Systems Thinking - Map components and interactions
3. Inversion - What would make this fail?
4. Second-Order Effects - What happens after the obvious?

For each framework:
- Key insights
- Blind spots it reveals
- Actionable implications

Synthesize into a coherent recommendation."
快速思考

对较简单的问题进行快速推理:

gemini -m pro -o text -e "" "Think through this question step by step:

[Your question]

Provide:
1. Initial reaction
2. Key considerations
3. Potential pitfalls
4. Recommended approach"
挑战一个想法

对提案进行压力测试:

gemini -m pro -o text -e "" "Challenge this idea rigorously:

IDEA: [The idea to challenge]
CONTEXT: [Relevant context]

Apply these challenges:
1. Steel man the counterargument
2. Identify hidden assumptions
3. Find edge cases that break it
4. Consider who might disagree and why
5. What evidence would change your mind?

Conclude with: Should we proceed, modify, or abandon?"
评估选项

比较多个选项:

gemini -m pro -o text -e "" "Evaluate these options for: [Decision question]

OPTIONS:
1. [Option A]
2. [Option B]
3. [Option C]

CRITERIA:
- [Criterion 1]
- [Criterion 2]
- [Criterion 3]

For each option:
- Score against each criterion (1-5)
- Key advantages
- Key risks
- Hidden costs

Provide a clear recommendation with reasoning."

思维框架

第一性原理
gemini -m pro -o text -e "" "Apply first principles thinking to: [problem]

1. What do we know for certain? (facts, not assumptions)
2. What are we assuming? (challenge each)
3. What's the simplest explanation?
4. Build up from fundamentals"
事前验尸
gemini -m pro -o text -e "" "Conduct a pre-mortem for: [project/decision]

Imagine this has completely failed. Working backward:
1. What went wrong?
2. What warning signs did we ignore?
3. What assumptions proved false?
4. What can we do NOW to prevent this?"
机会成本
gemini -m pro -o text -e "" "Analyze opportunity costs for: [decision]

If we choose this:
1. What are we NOT doing?
2. What resources are locked up?
3. What options are foreclosed?
4. What's the cost of reversing?"
二阶效应
gemini -m pro -o text -e "" "Explore second-order effects of: [action/decision]

First-order effect: [The obvious outcome]

Now trace the chain:
- What does that cause?
- Who responds and how?
- What unintended consequences emerge?
- What feedback loops are created?"

使用场景

架构决策
gemini -m pro -o text -e "" "Evaluate architecture options:

CONTEXT: Building a real-time collaborative editor

OPTIONS:
1. Operational Transform (OT)
2. CRDTs
3. Custom sync engine

CRITERIA:
- Correctness guarantees
- Performance at scale
- Implementation complexity
- Offline support

Provide detailed analysis and recommendation."
代码设计
gemini -m pro -o text -e "" "Think through this design decision:

PROBLEM: Where to put validation logic - in the controller, service, or model?

Consider:
- Separation of concerns
- Testability
- Maintainability
- Real-world examples
- What experienced developers prefer and why"
调试策略
gemini -m pro -o text -e "" "Help me think through debugging this issue:

SYMPTOM: [What's happening]
CONTEXT: [System description]
TRIED: [What you've already attempted]

1. What does this symptom tell us?
2. What's the most likely root cause?
3. What's the most costly root cause?
4. What's the quickest diagnostic test?
5. In what order should I investigate?"

最佳实践

  1. 明确具体 - 模糊的问题只会得到模糊的分析
  2. 提供背景信息 - 包括限制条件和要求
  3. 要求结构化回答 - 询问所用框架、评估标准和评分
  4. 质疑输出 - 使用后续问题进一步探讨
  5. 记录推理过程 - 保存有价值的分析以供日后参考

评论

支持 Markdown