Skip to content

Commit eaaf807

Browse files
committed
refactor: 规则第4条改为方案B - 只给拆分原则不给具体示例,避免限制AI思维
1 parent e6dd07d commit eaaf807

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

AGENTS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
1. 蓝本文件固定命名 `testpilot.json`,放在项目根目录或 `testpilot/` 子目录下
2323
2. 必须覆盖项目的**所有用户可交互功能**,不允许遗漏
2424
3. 每个功能模块对应一个 `page`,每个用户场景对应一个 `scenario`
25-
4. 如果项目功能较多,按功能模块拆分为多个蓝本文件放在 `testpilot/` 目录下,命名格式 `模块名.testpilot.json`,根据项目实际功能命名,例如
26-
- 电商项目`testpilot/auth.testpilot.json``testpilot/product.testpilot.json``testpilot/order.testpilot.json`
27-
- 游戏项目:`testpilot/lobby.testpilot.json``testpilot/battle.testpilot.json``testpilot/inventory.testpilot.json`
28-
- 工具项目:`testpilot/editor.testpilot.json``testpilot/settings.testpilot.json``testpilot/export.testpilot.json`
25+
4. 如果项目功能较多,按功能模块拆分为多个蓝本文件放在 `testpilot/` 目录下:
26+
- 命名格式`testpilot/功能模块名.testpilot.json`(用英文)
27+
- 拆分原则:每个独立功能模块一个文件(如:登录注册、核心业务、设置管理等)
28+
- 由你根据项目实际代码结构自主决定如何拆分和命名
2929
5. 每个蓝本必须包含 `app_name``description``platform``base_url` 字段
3030

3131
---

docs/ide-rules-template.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
1. 蓝本文件固定命名 `testpilot.json`,放在项目根目录或 `testpilot/` 子目录下
2323
2. 必须覆盖项目的**所有用户可交互功能**,不允许遗漏
2424
3. 每个功能模块对应一个 `page`,每个用户场景对应一个 `scenario`
25-
4. 如果项目功能较多,按功能模块拆分为多个蓝本文件放在 `testpilot/` 目录下,命名格式 `模块名.testpilot.json`,根据项目实际功能命名,例如
26-
- 电商项目`testpilot/auth.testpilot.json``testpilot/product.testpilot.json``testpilot/order.testpilot.json`
27-
- 游戏项目:`testpilot/lobby.testpilot.json``testpilot/battle.testpilot.json``testpilot/inventory.testpilot.json`
28-
- 工具项目:`testpilot/editor.testpilot.json``testpilot/settings.testpilot.json``testpilot/export.testpilot.json`
25+
4. 如果项目功能较多,按功能模块拆分为多个蓝本文件放在 `testpilot/` 目录下:
26+
- 命名格式`testpilot/功能模块名.testpilot.json`(用英文)
27+
- 拆分原则:每个独立功能模块一个文件(如:登录注册、核心业务、设置管理等)
28+
- 由你根据项目实际代码结构自主决定如何拆分和命名
2929
5. 每个蓝本必须包含 `app_name``description``platform``base_url` 字段
3030

3131
---

extension/src/rulesInjector.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ function getTemplateContent(): string {
7373
1. 蓝本文件固定命名 \`testpilot.json\`,放在项目根目录或 \`testpilot/\` 子目录下
7474
2. 必须覆盖项目的**所有用户可交互功能**,不允许遗漏
7575
3. 每个功能模块对应一个 \`page\`,每个用户场景对应一个 \`scenario\`
76-
4. 如果项目功能较多,按功能模块拆分为多个蓝本文件放在 \`testpilot/\` 目录下,命名格式 \`模块名.testpilot.json\`,根据项目实际功能命名,例如
77-
- 电商项目:\`testpilot/auth.testpilot.json\`、\`testpilot/product.testpilot.json\`、\`testpilot/order.testpilot.json\`
78-
- 游戏项目:\`testpilot/lobby.testpilot.json\`、\`testpilot/battle.testpilot.json\`、\`testpilot/inventory.testpilot.json\`
79-
- 工具项目:\`testpilot/editor.testpilot.json\`、\`testpilot/settings.testpilot.json\`、\`testpilot/export.testpilot.json\`
76+
4. 如果项目功能较多,按功能模块拆分为多个蓝本文件放在 \`testpilot/\` 目录下:
77+
- 命名格式:\`testpilot/功能模块名.testpilot.json\`(用英文)
78+
- 拆分原则:每个独立功能模块一个文件(如:登录注册、核心业务、设置管理等)
79+
- 由你根据项目实际代码结构自主决定如何拆分和命名
8080
5. 每个蓝本必须包含 \`app_name\`、\`description\`、\`platform\`、\`base_url\` 字段
8181
8282
---

0 commit comments

Comments
 (0)