Files
2026-05-27 00:07:07 +08:00

32 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# prompt_templates/design-confirmation.md
# 设计确认检查模板 — 先理解再改(批次1卡片8,6次 + 批次1卡片7)
name: design-confirmation
trigger: "发现当前实现与预期不符,准备修改时"
template: |
## 设计确认检查清单
在修改任何现有代码/设计之前,按此清单自检:
- [ ] 已理解当前的设计逻辑(不是凭直觉判断对错)
- [ ] 已查阅已有的设计文档,对已确定决策保持尊重
- [ ] 已确认设计意图(不确定时问用户确认)
- [ ] 已评估修改的影响范围(关联模块、状态、数据)
- [ ] 已向用户/评审者汇报发现,等待确认后再改
⚠️ "先不要改" / "先不要着急改" 是明确的暂停信号
⚠️ 当前设计可能有自己的理由,不要凭直觉改
⚠️ "这是之前设计过的" = 不要重新发明轮子
⚠️ 实现 ≠ 重新设计,应该忠实于已有的设计决策
evidence:
- "批次1卡片8:先确认当前设计再改,6 次被纠正"
- "批次1卡片7:尊重已确定的设计决策(resume/resumed_from"
- "批次1卡片1:用户多次说"先不要改"Agent 必须立即停下"
- "批次2卡片4:设计文档-代码一致性审查不可省(4次)"
- "批次2卡片5:一键三连闭环标准:文档→代码→最终确认"
anti-patterns:
- "看到实现与直觉不符就直接改代码"
- "实现时简化或遗忘之前讨论确定的关键细节"
- "改完后发现原设计是对的,又要改回来"