‹ 首页

chain-of-thought-design

@owl-listener · 收录于 5 天前 · 上游提交 1 个月前

Designing reasoning chains that produce better outputs.

适合你,如果你需要让AI模型生成更准确、更合理的回答。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add owl-listener/ai-design-skills/chain-of-thought-design
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- owl-listener/ai-design-skills/chain-of-thought-design
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify owl-listener/ai-design-skills/chain-of-thought-design
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
144GitHub stars
~555上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 f41b650 · 表述以原文为准
它做什么

装上后,Claude在处理复杂问题时,会按照指定的逻辑步骤(如分解问题、收集证据、分析、综合、得出结论)逐步推理,生成更准确、可信的输出。

什么时候触发

当你要求Claude进行多步骤推理、分析模糊输入或需要验证推理过程时,技能会引导其按结构化步骤输出。

装好后可以这样说
Claude会按分解、分析、综合步骤输出。
确保推理清晰可追溯。
技能原文 SKILL.md作者撰写 · MIT · f41b650

Chain-of-Thought Design

Chain-of-thought prompting asks the AI to show its reasoning step by step before arriving at an answer. When designed well, this produces more accurate, more nuanced, and more trustworthy outputs. When designed poorly, it produces verbose justification of bad answers.

When Chain-of-Thought Helps
  • Complex reasoning: Multi-step problems where the answer depends on intermediate conclusions
  • Ambiguous inputs: When the AI needs to consider multiple interpretations
  • High-stakes outputs: When you need to verify the reasoning, not just the answer
  • Creative exploration: When generating ideas benefits from building on each step
  • Analytical tasks: Comparisons, evaluations, and trade-off analyses
When Chain-of-Thought Hurts
  • Simple lookups: "What's the capital of France?" doesn't need step-by-step reasoning
  • Speed-critical responses: Reasoning adds latency and token cost
  • Pattern-matching tasks: Some tasks are better served by direct response
  • When reasoning is wrong: The AI can reason convincingly toward an incorrect conclusion
Designing Reasoning Chains

A reasoning chain has structure. Design it deliberately: 1. Problem decomposition "First, break this problem into its component parts." 2. Evidence gathering "For each part, identify what you know and what you're uncertain about." 3. Analysis "Analyse each component, noting assumptions and limitations." 4. Synthesis "Combine your analysis into an overall assessment." 5. Conclusion "State your conclusion and your confidence level."

Chain Variants
  • Linear chain: Step 1 → Step 2 → Step 3 → Answer. Simple and predictable.
  • Branching chain: Consider multiple paths, evaluate each, then choose. Better for decisions.
  • Iterative chain: Draft an answer, critique it, revise it. Better for quality refinement.
  • Debate chain: Argue for and against a position, then synthesise. Better for balanced analysis.
Controlling Chain Quality
  • Specify the steps: Don't just say "think step by step." Define what the steps are.
  • Limit reasoning depth: Set a maximum number of steps or reasoning length to prevent runaway chains.
  • Separate thinking from output: Let the AI reason internally, then produce a clean final output.
  • Validate intermediate steps: Check that each step is sound, not just the final answer.
Design Artefacts
  • Chain-of-thought templates per task type
  • Reasoning step specifications
  • Chain variant selection guidelines
  • Quality checkpoints for intermediate steps
  • Examples of well-structured and poorly-structured chains
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。