落地 synastry/star/ask API 与 H5 页面,补齐 cece-frontend-re complete-design 证据文档,并加入 Android 模拟器截图抓取脚本。 Co-authored-by: Cursor <cursoragent@cursor.com>
1.2 KiB
1.2 KiB
Prompt: New Feature
Load first: .ai/constitution.md, .ai/architecture.md, .ai/coding.md, .ai/api.md, .ai/review.md, .ai/definition-of-done.md, .ai/product/feature-design.md.
Process
- Feature Spec(强制)
- 确认
feature-map节点与分期。 - 若无 Spec:复制
product/feature-spec/_TEMPLATE.md→<id>.md,填满 §1–§13;登记feature-spec/README.md。 - 核对 §4 Flow / §7 Rules / §9 API / §12 Acceptance 非空;文案过 lexicon。
- Playbook:
playbooks/feature-spec.md。
- 确认
- Restate the feature in one sentence and list files you will touch.
- Align OpenAPI / erd with Spec §8/§9;更新 Spec §14。
- Follow feature flow: API → Service → Repository → Migration → SDK/types → UI → Test → Docs.
- Implement the smallest vertical slice that satisfies Spec §12.
- Run builds/tests for touched sides.
- Output
.ai/review.mdReview block;勾选checklists/feature.md. - Confirm Definition of Done(含 Feature Spec 项)。
Forbidden
- Coding from a one-line ask without Feature Spec.
- Inventing APIs not in Spec / OpenAPI.
- Editing legacy root HTML unless migration is the task.
- Shipping UI-only unlock/payment without server checks.