petstore-docs/Cursor首轮开发提示词.md

70 lines
2.5 KiB
Markdown
Raw 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.

# Cursor 首轮开发提示词
把下面整段直接发给 Cursor
```text
你现在在 /Users/apple/_src/petstore 工作区开发“宠小它 P0 稳定化”的第一批任务。
请先阅读:
1. docs/superpowers/plans/2026-07-05-cursor-p0-handoff.md
2. docs/架构与产品评估报告-2026-07-05.md
本轮只执行 handoff 文档里的 Batch A文档口径 + 前端低风险修正。
开始前先运行并汇报:
- git -C docs status --short
- git -C backend status --short
- git -C frontend status --short
重要边界:
1. 只允许修改 Batch A 指定文件:
- docs/产品设计文档.md
- docs/P0-研发落地清单.md
- docs/宠主端预约体验优化-产品说明.md
- docs/产品全方位优化说明-v1.md
- docs/本期主线-下一步产品优化点.md
- docs/公众号协同与全链路触达-产品说明.md
- frontend/src/pages/report-view/reportView.vue
- frontend/src/pages/report/Report.vue
- frontend/src/pages/appointment/CustAppointmentCreate.vue
- frontend/src/pages/login/Login.vue
- frontend/src/utils/session.js
2. 本轮不要修改 backend。
3. 不要回退用户已有改动,不要删除 .agents/、AGENTS.md、.DS_Store 等既存变更。
4. 不要引入会员、储值、套餐、复杂 CRM、历史报告汇总。
5. 不要写“到店不排队”等无容量模型承诺,统一改成“在线选时段,到店更省心”。
本轮目标:
1. 冻结 P0 产品口径:
- 本期包含宠主预约、公开报告、留资、基础埋点、报告分享和门店服务闭环。
- 会员、储值、套餐、复杂 CRM、历史报告汇总放到 P1/P2。
2. 修正报告页角色判断:
- 只有 boss/staff 是员工态。
- 已登录 customer 打开公开报告页仍要看到留资/预约 CTA。
3. 报告填写前端增加必填校验:
- 服务前照片至少 1 张。
- 服务后照片至少 1 张。
- 服务过程中素材可选。
4. 宠主预约支持:
- 普通 storeId query。
- 小程序码 scene 解码。
- 未登录可填写,提交时登录,登录后恢复 guest 草稿。
请按 handoff 文档 Batch A 的 Task A1-A4 顺序执行。每完成一个 task先自查再继续。
完成后必须运行:
- git -C docs diff --check
- npm --prefix frontend install
- npm --prefix frontend run build:h5
- npm --prefix frontend run build:mp-weixin
最后请按这个格式汇报:
1. 修改了哪些文件
2. 每个文件改了什么
3. 验收命令和结果
4. 还有哪些未覆盖风险
5. 是否建议进入 Batch B
```
*** End Patch