refactor: 默认 skills 装到 .agents,并清空 example 旧演示实现

对齐安装目录与 opencode 扫描路径;按 confirmed plan 清掉与 iteration1 不对齐的示例业务代码与 as-built 文档,只留空壳与需求输入。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ning-inspire
2026-11-17 11:46:41 +08:00
parent e5abcd101d
commit 670e0c1fa1
155 changed files with 659 additions and 5620 deletions

View File

@@ -2,7 +2,8 @@
> 状态:**v0.1**(字段、规则、验收与原型已完成)
> 日期:2026-11-16
> 原型:独立 Vite Demo(Element Plus),见 [`prototypes/`](./prototypes/)(端口 5174)
> 原型:独立 Vite Demo(Element Plus),见 [`prototypes/`](./prototypes/)(端口 5174)
> **实现**:业务代码已清空为工程骨架;请按各 feature 的 plan 重新落地(见 `_chores/plan-20261117-purge-demo-impl-for-iteration1.md`)。
## 1. 产品概述

View File

@@ -1,58 +0,0 @@
# 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

@@ -1,36 +0,0 @@
# 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

@@ -1,24 +0,0 @@
# 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 已同步