落地 synastry/star/ask API 与 H5 页面,补齐 cece-frontend-re complete-design 证据文档,并加入 Android 模拟器截图抓取脚本。 Co-authored-by: Cursor <cursoragent@cursor.com>
1.8 KiB
1.8 KiB
AI Contract
Highest operational contract for every agent session.
Before coding
MUST read:
.ai/constitution.md.ai/architecture.md.ai/domain.md(+domain/domain-map.mdwhen touching models/API).ai/definition-of-done.md(完成标准;开始前知道何谓 Done).ai/coding.md- Task-relevant:
api.md/database.md/ui.md/security.md/testing.md/product/lexicon.md+product/feature-map.md+product/feature-design.md+product/feature-spec/<id>.md(该功能 Spec;§4 User Flow、§7 Rules、§9 API、§12 Acceptance 必须非空) - Run/dev tasks:
environment.md+development.md(部署/镜像任务才读deployment.md/docker.md) - UI tasks:
design/design-system.md+design/component-catalog.md+design/platform/* - Competitor / reverse-engineering tasks:
design/reverse-engineering-spec.md(STEP 1–18 · Evidence First;禁止 Demo 式省略) - Relevant ADR under
.ai/adr/if changing stack or style
After coding
MUST:
- Verify
.ai/definition-of-done.md— Done ≠ Code Complete - Run / follow
.ai/review.mdand print Review Report(DoD §7) - Use matching checklist under
.ai/checklists/ - Prefer verifying with
.ai/commands.md(build/test/health) - If P1 scope: update or respect labels in
product/p1-status.md(当前为 P1 Complete;扩行为须新 Spec)
Never
- Guess API shape
- Guess DB schema
- Guess product requirement
- Code new/changed feature behavior without Feature Spec(
product/feature-design.md) - Invent endpoints, tables, or domain words not in
.ai/domain.md/ OpenAPI / task - Silently reverse an Accepted ADR
- Default local workflow to full-stack Docker / rebuild app images on every code change
If unclear
ASK FIRST. Do not invent. Do not “assume and continue”.