-
关注根本原因:
"Fix the root cause, not the symptom."
(修复根本原因,而不是表面症状。)
用途:在调试时,引导 AI 深入分析问题,而不是仅仅处理眼前的错误。 -
分离关注点:
"Don't try to ask more than 1 or 2 main questions in a prompt, especially if you're trying to debug a problem."
(在一个 Prompt 中不要试图问超过 1 到 2 个主要问题,尤其是在调试问题时。)
用途:保持 Prompt 的焦点,避免 AI 因信息过载而产生混淆或不相关的回答。 -
先规划后编码:
"Break down how to implement a __ before coding."
(在编码之前,请先分解如何实现 __。)
用途:在开始复杂功能开发前,让 AI 先提供一个步骤化的计划。 -
要求 AI 提问:
"Ask me questions, especially in areas that are gray or uncertain (or confusing). It helps reveal assumptions that the tool is making."
(请向我提问,尤其是在那些模糊、不确定或令人困惑的领域。这有助于揭示工具正在做出的假设。)
用途:当需求不够明确或担心 AI 可能有误解时,鼓励 AI 主动澄清。 -
使用示例:
"Given [1,2,3], return [1,4,9] using a map function."
(给定 [1,2,3],请使用 map 函数返回 [1,4,9]。)
用途:通过提供输入和期望输出的示例,清晰地表达你的需求和期望的实现方式。 -
链式推理:
"Solve this by first identifying odd numbers, then summing them."
(解决这个问题:首先识别奇数,然后将它们相加。)
用途:对于复杂任务,引导 AI 按步骤进行思考和解决。