refactor: feature 改为 JIRA 编码文件夹并同放 plan

规格改为 <CODE>-<slug>/spec.md,方案放 plan.md/_chores;同步 skill、安装器与工作流指南。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ning-inspire
2026-11-17 10:53:28 +08:00
parent 02fbafe580
commit d243b53fe1
54 changed files with 286 additions and 124 deletions

View File

@@ -13,19 +13,29 @@
## 2. 特性索引
| Spec | 覆盖源 REQ / 章节 | 角色 | 状态 |
|---|---|---|---|
| [account.md](./account.md) | §6.1 + REQ-006 | 三端 | v0.1 |
| [consultant-discovery.md](./consultant-discovery.md) | REQ-001、002 | 用户 | v0.1 |
| [booking.md](./booking.md) | REQ-003、004、005 | 用户 | v0.1 |
| [consultant-onboarding.md](./consultant-onboarding.md) | REQ-007、008 | 咨询师 | v0.1 |
| [consultant-schedule.md](./consultant-schedule.md) | REQ-009 | 咨询师 | v0.1 |
| [consultant-fulfillment.md](./consultant-fulfillment.md) | REQ-010、012 | 咨询师 | v0.1 |
| [settlement.md](./settlement.md) | REQ-011 | 咨询师 | v0.1 |
| [admin-ops.md](./admin-ops.md) | REQ-013~017 | 管理员 | v0.1 |
| [platform-capability.md](./platform-capability.md) | §6.2~6.6 | 横切 | v0.1 |
| Code | Spec | 覆盖源 REQ / 章节 | 角色 | 状态 |
|---|---|---|---|---|
| ACC | [ACC-account/spec.md](./ACC-account/spec.md) | §6.1 + REQ-006 | 三端 | v0.1 |
| CDC | [CDC-consultant-discovery/spec.md](./CDC-consultant-discovery/spec.md) | REQ-001、002 | 用户 | v0.1 |
| BKG | [BKG-booking/spec.md](./BKG-booking/spec.md) | REQ-003、004、005 | 用户 | v0.1 |
| COB | [COB-consultant-onboarding/spec.md](./COB-consultant-onboarding/spec.md) | REQ-007、008 | 咨询师 | v0.1 |
| CSC | [CSC-consultant-schedule/spec.md](./CSC-consultant-schedule/spec.md) | REQ-009 | 咨询师 | v0.1 |
| CFL | [CFL-consultant-fulfillment/spec.md](./CFL-consultant-fulfillment/spec.md) | REQ-010、012 | 咨询师 | v0.1 |
| SET | [SET-settlement/spec.md](./SET-settlement/spec.md) | REQ-011 | 咨询师 | v0.1 |
| ADM | [ADM-admin-ops/spec.md](./ADM-admin-ops/spec.md) | REQ-013~017 | 管理员 | v0.1 |
| PLT | [PLT-platform-capability/spec.md](./PLT-platform-capability/spec.md) | §6.2~6.6 | 横切 | v0.1 |
## 3. 里程碑(源 PRD)
## 3. 迭代级 Plan
| Plan | 说明 |
|---|---|
| [plan-20261116-iteration1-feature-skeletons.md](./plan-20261116-iteration1-feature-skeletons.md) | 特性骨架 |
| [plan-20261116-iteration1-prototypes-and-specs.md](./plan-20261116-iteration1-prototypes-and-specs.md) | 原型与规格 |
| [plan-20261116-iteration1-prototypes-vite.md](./plan-20261116-iteration1-prototypes-vite.md) | Vite 原型 |
横切 / 无 feature 归属的方案见 [`../_chores/`](../_chores/)。
## 4. 里程碑(源 PRD)
| 阶段 | 范围 |
|---|---|
@@ -34,19 +44,17 @@
| M3 | 管理端审核、分类与治理 |
| M4 | 结算、通知与上线准备 |
## 4. 原型约定
## 5. 原型约定
- 独立 Vite 工程:[`prototypes/`](./prototypes/)(`npm run dev` → http://127.0.0.1:5174/)
- 技术:Vue 3 + Vue Router + Element Plus(**不**并入业务 `apps/frontend/`)
- 路由:`/` 入口;`/user/*`、`/consultant/*`、`/admin/*`
- 规格与原型冲突时,以规格中的业务规则与验收标准为准
## 5. v0.1 完成清单
## 6. v0.1 完成清单
9 份 spec 已完成:
- [x] §5 完整字段表
- [x] §7 可测试业务规则(含规则 ID,覆盖 CREATE / QUERY / UPDATE / DELETE / COMMON)
- [x] §9 状态流转(若有)
- [x] §12 Given-When-Then 验收标准
- [x] §14 挂接独立 Vite 原型路由

View File

@@ -0,0 +1,58 @@
# iteration1 需求样例骨架
>日期: 2026-11-16
>
>关联需求:docs/features/iteration1/
>
>设计 design:本轮仅需求骨架,不改 designs/
>
>**plan一旦定稿就不修改。** 同一资源的二次改造新建 `YYYY-MM-DD-{slug}.md`,不修改原计划文件
## 1. 文档说明
### 1.1 背景
- 将 `ai4se-sow-estimate-skill/examples` 中的「咨询师预约平台」PRD 样例迁入 example-project,作为 harness 管理下的标准需求样例。
- 旧 `docs/features/{auth,appointment,admin}.md` 为简化版,与新样例重叠,本轮删除。
- 原型将使用 Element Plus 与前端工程同构;本轮只落需求骨架,原型下一轮。
### 1.2 目标
- 在 `docs/features/iteration1/` 建立 9 份特性 spec 骨架 + 迭代 README。
- 每份 spec 覆盖:背景/目标/范围、功能概述、角色、主流程要点、关键业务对象、REQ 追溯、待补章节标记。
- 同步 `AGENTS.md` 文档树引用。
### 1.3 技术边界
- 不改 backend / frontend 代码。
- 不写完整字段表、业务规则细项、验收 Given-When-Then(标 TODO)。
- 不生成 Element Plus 原型 HTML(目录预留)。
## 2. 特性拆分
| Spec | 源 REQ / 章节 | 说明 |
|---|---|---|
| account.md | §6.1 + REQ-006 | 账号体系与个人中心 |
| consultant-discovery.md | REQ-001、002 | 检索与咨询师主页 |
| booking.md | REQ-003、004、005 | 下单支付、订单、评价 |
| consultant-onboarding.md | REQ-007、008 | 入驻与档案 |
| consultant-schedule.md | REQ-009 | 档期管理 |
| consultant-fulfillment.md | REQ-010、012 | 履约与工作台 |
| settlement.md | REQ-011 | 收入结算 |
| admin-ops.md | REQ-013~017 | 管理端运营治理 |
| platform-capability.md | §6.2~6.6 | 通知/支付/性能/安全/审计 |
## 3. 任务拆分
1. 删除旧 features 三文件。
2. 创建 `iteration1/README.md`(索引 + 里程碑 + 原型约定)。
3. 创建 9 份骨架 spec。
4. 预留 `iteration1/prototypes/` 说明。
5. 同步 `AGENTS.md` 与相关 skill 示例路径。
## 4. 验收
- [x] `docs/features/` 下仅保留 `_template.md` 与 `iteration1/`
- [x] 9 份 spec 均可从 README 索引跳到
- [x] 每份 spec 标注骨架状态与待补章节
- [x] `AGENTS.md` §13 文档树已更新

View File

@@ -0,0 +1,36 @@
# iteration1 原型与特性补全
>日期: 2026-11-16
>
>关联需求:docs/features/iteration1/
>
>设计 design:本轮不改 designs/ 业务事实;原型仅 UI 表达
>
>**plan一旦定稿就不修改。**
## 1. 背景与目标
- 上一轮已落 9 份骨架 spec;本轮补全字段表、业务规则、GWT 验收,并落地 Element Plus 静态原型。
- 原型与前端工程同构:Element Plus + Vue 3(CDN 静态页,便于评审;后续 `apps/frontend/` 可装同库)。
## 2. 交付物
1. `docs/features/iteration1/prototypes/` 全套页面(入口 + user + consultant + admin)
2. 9 份 spec:状态由骨架 → v0.1,补齐 §5/§7/§12 并挂接 §14
3. 更新 iteration1 README 待办勾选
## 3. 原型页面清单
| 角色 | 页面 |
|---|---|
| 入口 | index.html |
| 用户 | login, index, search, consultant-detail, booking, my-orders, order-detail, profile |
| 咨询师 | index, application, profile, schedule, orders, settlements |
| 管理 | index, applications, categories, users, orders, reports |
## 4. 验收
- [x] 浏览器直接打开入口可跳转三端各页
- [x] 页面使用 Element Plus 组件(按钮/表单/表格/标签/步骤条等)
- [x] 每份 spec §14 路径可对应到真实 HTML
- [x] 每份 spec 不再标「骨架」,含完整字段表与 GWT 验收

View File

@@ -0,0 +1,24 @@
# iteration1 原型改为独立 Vite 工程
>日期: 2026-11-16
>
>关联需求:docs/features/iteration1/
>
>**plan一旦定稿就不修改。**
## 1. 背景与目标
- 将 CDN 静态多页原型改为独立 Vite + Vue 3 + Element Plus demo。
- 不并入 `example-project/apps/frontend/`。
## 2. 交付
- `docs/features/iteration1/prototypes/` 成为可 `npm run dev` 的工程(端口 5174)。
- 删除 CDN HTML、`_gen.py`、旧 `assets/`。
- Spec §14 改为路由路径。
## 3. 验收
- [x] `npm install && npm run build` 通过
- [x] 无 `unpkg.com` / `_gen.py` 残留
- [x] README / AGENTS / §14 已同步