落地 synastry/star/ask API 与 H5 页面,补齐 cece-frontend-re complete-design 证据文档,并加入 Android 模拟器截图抓取脚本。 Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
1.2 KiB
Markdown
26 lines
1.2 KiB
Markdown
# 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
|
|
|
|
0. **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`。
|
|
1. Restate the feature in one sentence and list files you will touch.
|
|
2. Align OpenAPI / erd with Spec §8/§9;更新 Spec §14。
|
|
3. Follow feature flow: API → Service → Repository → Migration → SDK/types → UI → Test → Docs.
|
|
4. Implement the smallest vertical slice that satisfies Spec §12.
|
|
5. Run builds/tests for touched sides.
|
|
6. Output `.ai/review.md` Review block;勾选 `checklists/feature.md`.
|
|
7. 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.
|