做产品 PMaker
空格的键盘
目标 要达成什么状态 不是要写什么代码 约束 必须遵守什么 以及明确不做什么 验收标准 怎样算做完了 能逐条对照的那种 缺了它 做出来的东西方向不对 缺了它 它顺手补了一堆你不要的 缺了它 你不知道该不该收货 三段都写,通常也就多花两分钟

大多数提示词只写了第一段。第二段决定它不做什么,第三段决定你怎么验收。

Three-Part Prompt

Goal, constraints, acceptance criteria. Write all three and your rework drops noticeably.

What you'll run into
  • 做出来的东西能跑,但不是你想要的方向
  • 它顺手加了一堆你没要的功能
  • 收到结果之后不知道该说「好了」还是「再改改」

What to write in each part

段写法常见错误
目标 用户能达成什么状态,为什么需要 写成技术任务:「加一个 useEffect」
约束 技术栈、已有组件、必须遵守的规范、明确不做的 只写要做的,不写不做的
验收标准 可以逐条勾的清单,最好包含边界情况 写成「做得好一点」这类没法验的话
Writing the goal as a technical task is the most common mistake. Say "add a useEffect" and you give up the chance for a better solution; say "auto-load the most recent records when entering the page" and it may hand you a more suitable approach.
三段各自管一件事,缺一段就得多返工一轮 ① 目标 决定方向 ② 约束 决定边界 ③ 验收标准 决定什么时候算完 最常见的失误在第一段:把目标写成了技术任务 「加一个 useEffect」 「进入页面时自动加载最近的记录」 你已经替它选好了做法 它可能给你一个更合适的做法 第三段最值钱也最容易被跳过:它同时是它的自检清单,和你的收货依据。 写成能逐条判断的句子——「点击提交后按钮变为不可点」可以验,「体验流畅」不能。
Writing the goal as a technical task is the most common mistake. Say "add a useEffect" and you give up the chance for a better solution; say "auto-load the most recent records when entering the page" and it may hand you a more suitable approach.

How to write acceptance criteria

This part is the most valuable and the easiest to skip. It does two things: gives the AI a self-check list, and gives you a basis for acceptance.

A template you can edit directly

PROMPT · three-part
## 目标
[用户能达成什么状态]。这一步要解决的问题是 [具体的卡点]。

## 约束
- 技术:[框架、语言、已有的库]
- 复用:优先使用 src/components/ui 下的已有组件和设计令牌,
  不要新造同类组件、不要硬编码颜色和间距
- 规范:[项目里必须遵守的几条]
- 明确不做:[列出来,包括看起来顺理成章的那些]

## 验收标准
- [ ] [可以逐条判断的行为]
- [ ] 零条数据时显示空态并有引导按钮
- [ ] 请求失败时显示原因和重试按钮
- [ ] 超长内容不会撑破布局
- [ ] 控制台无报错,无新增未使用的依赖

先说你的实现方案,我确认后再写代码。
写完之后逐条对照验收标准自检,报告结果。

This template works best alongside the project's constraints file: the general rules live in the file, and here you only write what's specific to this round (see Spec, Prompt, Constraints: Who Does What).