Claude官方Prompt教程

Claude官方Prompt教程

Claude官方Prompt教程 Claude官方Prompt教程 Modified November 26, 2025 原文地址 https://docs.anthropic.com/en/docs/build with claude/prompt engineering/overview 原则 清晰直接 🎨 The golden rule of clear prompting 清晰提示的黄金法则 Show your prompt to a colleague, ideally someone who has minimal context on the task, and ask them to follow the instructions. If they’re confused, Claude will likely be too. 把你的提示词展示给同事,最好是一个不了解任务背景的人,让他们按Prompt指示操作。如果他们会感到困惑,Claude 也很可能会感到困惑。 如何做到清晰、有上下文和描述具体? 给 Claude 提供上下文信息:就像你在了解更多上下文后可能会更好地完成任务一样,Claude 在拥有更多上下文信息时也会表现得更好。一些提供上下文的例子: • 任务结果将用于什么 • 面向的受众是谁 • 任务属于哪个工作流程,和它在流程中的位置。 具体说明你希望 Claude 做什么:例如,如果你希望 Claude 只输出代码而不输出其他内容,请明确说明。 提供有顺序的步骤说明:如有序列表,确保 Claude 以你希望的确切方式执行任务。 You don't have permission to access this synced block. Please log in and try again. Log In 原文地址 https://docs.anthropic.com/en/docs/build with claude/prompt engineering/overview 原则 清晰直接 🎨 The golden rule of clear prompting 清晰提示的黄金法则 Show your prompt to a colleague, ideally someone who has minimal context on the task, and ask them to follow the instructions. If they’re confused, Claude will likely be too. 把你的提示词展示给同事,最好是一个不了解任务背景的人,让他们按Prompt指示操作。如果他们会感到困惑,Claude 也很可能会感到困惑。 The golden rule of clear prompting 清晰提示的黄金法则 Show your prompt to a colleague, ideally someone who has minimal context on the task, and ask them to follow the instructions. If they’re confused, Claude will likely be too. 把你的提示词展示给同事,最好是一个不了解任务背景的人,让他们按Prompt指示操作。如果他们会感到困惑,Claude 也很可能会感到困惑。 如何做到清晰、有上下文和描述具体? 给 Claude 提供上下文信息:就像你在了解更多上下文后可能会更好地完成任务一样,Claude 在拥有更多上下文信息时也会表现得更好。一些提供上下文的例子: • 任务结果将用于什么 • 面向的受众是谁 • 任务属于哪个工作流程,和它在流程中的位置。 具体说明你希望 Claude 做什么:例如,如果你希望 Claude 只输出代码而不输出其他内容,请明确说明。 提供有顺序的步骤说明:如有序列表,确保 Claude 以你希望的确切方式执行任务。 You don't have permission to access this synced block. Please log in and try again. Log In

在 小宇宙note 阅读完整内容