adspecs 0.1.32 → 0.1.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/.adspecs/paths.json +1 -1
  2. package/.claude-plugin/marketplace.json +1 -1
  3. package/.claude-plugin/plugin.json +1 -1
  4. package/.codebuddy-plugin/plugin.json +1 -1
  5. package/.qoder-plugin/plugin.json +1 -1
  6. package/.workbuddy-plugin/plugin.json +1 -1
  7. package/CLAUDE.md +2 -2
  8. package/README.md +137 -108
  9. package/package.json +1 -1
  10. package/references/ant6-front-standard/02-/347/273/204/344/273/266/350/247/204/350/214/203.md +7 -0
  11. package/references/ant6-front-standard/03-/345/210/227/350/241/250/350/247/204/350/214/203.md +222 -147
  12. package/references/ant6-front-standard/04-/350/241/250/345/215/225/350/247/204/350/214/203.md +8 -0
  13. package/references/ant6-front-standard/09-/345/270/270/350/247/201/351/227/256/351/242/230/350/247/204/350/214/203.md +1 -1
  14. package/references/ant6-front-standard/index.md +100 -99
  15. package/references/yudaocloud-end-standard/01-Java/345/220/216/347/253/257/347/274/226/347/240/201/350/247/204/350/214/203.md +1166 -0
  16. package/references/yudaocloud-end-standard/02-/346/225/260/346/215/256/345/272/223/350/256/276/350/256/241/344/270/216/344/275/277/347/224/250/350/247/204/350/214/203.md +1023 -0
  17. package/references/yudaocloud-end-standard/03-/346/225/260/346/215/256/345/255/227/345/205/270/344/270/216/350/217/234/345/215/225/350/247/204/350/214/203.md +336 -0
  18. package/references/yudaocloud-end-standard/index.md +14 -3
  19. package/references/yudaocloud-end-standard/system_dict_type.sql +186 -0
  20. package/skills/adspecs-plan/SKILL.md +1 -1
  21. package/skills/adspecs-utest/SKILL.md +62 -40
  22. package/skills/project-init/SKILL.md +4 -4
  23. package/src/lib/paths-defaults.js +1 -1
  24. package/src/lib/readme-gen.js +1 -1
  25. package/references/ant6-front-standard/05-/345/211/215/347/253/257/347/274/226/347/240/201/350/247/204/350/214/203.md +0 -1443
@@ -8,7 +8,7 @@
8
8
  "sow_dir": "docs/05-sow",
9
9
  "prd_dir": "docs/20-prd",
10
10
  "design_dir": "docs/30-system-design",
11
- "test_report_dir": "docs/80-development",
11
+ "test_report_dir": "docs/80-development/802-test",
12
12
  "export_dir": "docs/90-export",
13
13
  "front_demo_dir": "front-demo",
14
14
  "front_prototype_dir": "web-ui",
@@ -10,7 +10,7 @@
10
10
  {
11
11
  "name": "adspecs",
12
12
  "description": "AI Coding研发协同开发插件",
13
- "version": "0.1.32",
13
+ "version": "0.1.34",
14
14
  "source": "./",
15
15
  "author": {
16
16
  "name": "Qingwen Chen",
@@ -2,7 +2,7 @@
2
2
  "name": "adspecs",
3
3
  "displayName": "adspecs AI Plugin",
4
4
  "description": "AI first工程规范驱动开发插件",
5
- "version": "0.1.32",
5
+ "version": "0.1.34",
6
6
  "author": {
7
7
  "name": "Qingwen Chen",
8
8
  "email": "cqinwn@qq.com",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adspecs",
3
3
  "displayName": "adspecs AI 工程规范驱动开发插件",
4
- "version": "0.1.32",
4
+ "version": "0.1.34",
5
5
  "description": "AI-first specification-driven development plugin for ECP platform full-lifecycle development",
6
6
  "descriptionZh": "AI优先的工程规范驱动开发插件,覆盖需求分析、PRD、系统设计、任务拆解、TDD、代码评审、Wiki同步全流程",
7
7
  "author": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adspecs",
3
3
  "displayName": "adspecs AI 工程规范驱动开发插件",
4
- "version": "0.1.32",
4
+ "version": "0.1.34",
5
5
  "description": "AI-first specification-driven development plugin for ECP platform full-lifecycle development",
6
6
  "descriptionZh": "AI优先的工程规范驱动开发插件,覆盖需求分析、PRD、系统设计、任务拆解、TDD、代码评审、Wiki同步全流程",
7
7
  "author": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adspecs",
3
3
  "displayName": "adspecs AI 工程规范驱动开发插件",
4
- "version": "0.1.32",
4
+ "version": "0.1.34",
5
5
  "description": "AI-first specification-driven development plugin for ECP platform full-lifecycle development",
6
6
  "descriptionZh": "AI优先的工程规范驱动开发插件,覆盖需求分析、PRD、系统设计、任务拆解、TDD、代码评审、Wiki同步全流程",
7
7
  "author": {
package/CLAUDE.md CHANGED
@@ -138,7 +138,7 @@ Skills support configurable output directories via `.adspecs/paths.json` in the
138
138
  "sow_dir": "docs/05-sow",
139
139
  "prd_dir": "docs/20-prd",
140
140
  "design_dir": "docs/30-system-design",
141
- "test_report_dir": "docs/80-development",
141
+ "test_report_dir": "docs/80-development/802-test",
142
142
  "session_log_dir": "docs/80-development/800-log",
143
143
  "export_dir": "docs/90-export",
144
144
  "wiki_dir": "wiki"
@@ -156,7 +156,7 @@ Skills support configurable output directories via `.adspecs/paths.json` in the
156
156
  | `sow_dir` | `docs/05-sow` | adspecs-write-sow |
157
157
  | `prd_dir` | `docs/20-prd` | adspecs-prd, adspecs-plan (input), adspecs-front-spec (input), wiki-update (source) |
158
158
  | `design_dir` | `docs/30-system-design` | adspecs-plan (output), adspecs-tasks, adspecs-front-spec (output), adspecs-front-tasks, adspecs-utest (input), wiki-update (source) |
159
- | `test_report_dir` | `docs/80-development` | adspecs-utest (test reports) |
159
+ | `test_report_dir` | `docs/80-development/802-test` | adspecs-utest (unit test reports, saved by module subdirectory) |
160
160
  | `session_log_dir` | `docs/80-development/800-log` | session-logger (AI session logs, triggered by keyword / PreCompact / session end) |
161
161
  | `export_dir` | `docs/90-export` | adspecs-export-word (Word 导出输出) |
162
162
  | `wiki_dir` | `wiki` | wiki-update (output target) |
package/README.md CHANGED
@@ -10,10 +10,10 @@
10
10
 
11
11
  AdSpecs 是一个支持 **Claude Code**、**Qoder** 和 **WorkBuddy** 三平台的 AI 工程研发协同插件,提供:
12
12
 
13
- - **21 个 Skill**(Slash 命令) — 覆盖需求分析、架构规划、系统设计、任务拆解、单元测试、代码审查、文档导出、Wiki 同步
13
+ - **30 个 Skill**(Slash 命令) — 覆盖需求分析、架构规划、系统设计、任务拆解、单元测试、代码审查、原型生成、文档导出、Wiki 同步
14
14
  - **CLI 工具** — `adspecs init` 一键脚手架、`adspecs plugin install` 插件注册、`adspecs doctor` 环境检查
15
15
  - **21 个标准文档模板** — 需求 / 设计 / 任务 / 测试 / 评审 / 架构全覆盖
16
- - **多技术栈参考** — Java 后端、Vue 3 前端、Ant Design React 前端、Python 后端等 11 套参考工程
16
+ - **多技术栈参考** — Java 后端、Vue 3 前端、Ant Design React 前端、Python 后端等 9 套参考工程
17
17
  - **三平台支持** — 原生兼容 Claude Code、Qoder 和 WorkBuddy,自动检测运行环境
18
18
  - **npm 分发** — `npm install -g adspecs` 即装即用
19
19
 
@@ -31,51 +31,92 @@ adspecs/
31
31
  ├── src/ # CLI 核心代码
32
32
  │ ├── commands/ # init / plugin / doctor / update
33
33
  │ └── lib/ # scaffolder / prompts / report 等
34
- ├── skills/ # 21 个 Skill 定义
34
+ ├── skills/ # 30 个 Skill 定义
35
35
  ├── .claude-plugin/ # Claude Code 插件清单
36
36
  ├── .qoder-plugin/ # Qoder 插件清单
37
- ├── .workbuddy-plugin/ # WorkBuddy 插件清单
37
+ ├── .codebuddy-plugin/ # WorkBuddy 插件清单(CodeBuddy 格式)
38
+ ├── .workbuddy-plugin/ # WorkBuddy 插件清单(向后兼容)
38
39
  ├── .adspecs/
39
40
  │ ├── templates/ # 21 个标准文档模板
40
41
  │ ├── extensions/ # 扩展配置(git hooks 等)
41
42
  │ ├── scripts/ # 辅助脚本(bash/powershell/python)
42
- │ ├── feature.json # 功能追踪模板
43
+ │ ├── workflows/ # 工作流定义
44
+ │ ├── feature.json # 功能追踪模板(JSON,主数据源)
45
+ │ ├── feature.yml # 功能追踪人类可读视图(YAML,从 JSON 同步)
46
+ │ ├── session-logger.json # AI 会话日志触发器配置
47
+ │ ├── paths.json # 可自定义的输出路径配置
43
48
  │ └── project.json # 项目元数据模板
44
- ├── hooks/ # Node.js 钩子脚本
45
- ├── references/ # 11 套参考工程与编码规范
46
- ├── scripts/ # 构建脚本(postinstall/sync-version)
49
+ ├── hooks/ # Node.js 钩子脚本 + hooks.json
50
+ ├── references/ # 9 套参考工程与编码规范
51
+ ├── assets/ # README 配图资源
52
+ ├── commands/ # 保留(空)
53
+ ├── scripts/ # npm 生命周期脚本(postinstall/sync-version/prepublish-check)
47
54
  ├── package.json
48
55
  ├── CLAUDE.md
56
+ ├── README.md
49
57
  ├── INSTALL.md
50
- └── README.md
58
+ ├── CHANGELOG.md
59
+ ├── skill-help.md # Skill 详细使用说明
60
+ ├── User-Manual.md # 用户手册
61
+ ├── quickstar.md # 快速入门指南
62
+ ├── help.md # 帮助文档
63
+ └── LICENSE
51
64
  ```
52
65
 
53
66
  ---
54
67
 
55
68
  ## 快速开始
56
69
 
57
- ### 1. 安装
70
+ ## 安装与升级
71
+
72
+ 详细安装说明见 [INSTALL.md](./INSTALL.md)。
73
+
74
+ ### Claude Code
75
+
76
+ ```bash
77
+ npm install -g adspecs
78
+ adspecs plugin install # 用户级(默认)
79
+ adspecs plugin install --scope project # 项目级
80
+ ```
81
+
82
+ ### Qoder
83
+
84
+ ```bash
85
+ npm install -g adspecs
86
+ adspecs plugin install --platform qoder # 用户级
87
+ adspecs plugin install --platform qoder --scope project # 项目级
88
+ ```
89
+
90
+ ### WorkBuddy
58
91
 
59
92
  ```bash
60
- # 全局安装 CLI
61
93
  npm install -g adspecs
94
+ adspecs plugin install --platform workbuddy # 用户级(推荐)
95
+ adspecs plugin install --platform workbuddy --scope project # 项目级
96
+ ```
62
97
 
63
- # Claude Code 中注册插件(用户级,全局生效)
64
- adspecs plugin install
98
+ > **说明**:WorkBuddy 通过 CodeBuddy 插件系统加载 adspecs。若未安装 codebuddy CLI,安装脚本会自动回退为手工配置方式(创建 marketplace 链接 + 写入 enabledPlugins)。
65
99
 
66
- # 或仅注册到当前项目(团队级)
67
- cd your-project
68
- adspecs plugin install --scope project
100
+ ### 通用命令
101
+
102
+ ```bash
103
+ # 升级
104
+ npm install -g adspecs@latest
105
+
106
+ # 卸载
107
+ adspecs plugin uninstall --scope user
108
+ adspecs plugin uninstall --scope project
69
109
  ```
70
110
 
71
- ### 2. 初始化项目
111
+
112
+ ### 初始化项目
72
113
 
73
114
  ```bash
74
115
  # 交互式初始化
75
116
  adspecs init
76
117
  ```
77
118
 
78
- ### 3. 开始使用 Skill
119
+ ### 开始使用 Skill
79
120
 
80
121
  ```
81
122
  /adspecs-new-requirement CRM 销售预测模块
@@ -84,19 +125,22 @@ adspecs init
84
125
  ...
85
126
  ```
86
127
 
128
+
129
+ 详细skill使用说明见 [skill-help.md](./skill-help.md)。
130
+
87
131
  ---
88
132
 
89
133
  ## CLI 工具
90
134
 
91
135
  安装后提供 `adspecs` 命令行工具:
92
136
 
93
- | 命令 | 说明 | 示例 |
94
- | -------------------------- | ----------------------------------------------------- | ---------------------------------------- |
95
- | `adspecs init` | 交互式初始化项目结构(docs/、templates/、前端模板等) | `adspecs init --mode simple` |
96
- | `adspecs plugin install` | 注册为 Claude Code 插件 | `adspecs plugin install --scope project` |
97
- | `adspecs plugin uninstall` | 从 Claude Code 卸载插件 | `adspecs plugin uninstall --scope user` |
98
- | `adspecs doctor` | 检查环境依赖(Node.js、git、Python 等) | `adspecs doctor` |
99
- | `adspecs update` | 升级到最新版本 | `adspecs update --version 0.2.0` |
137
+ | 命令 | 说明 | 示例 |
138
+ | -------------------------- | ----------------------------------------------------- | --------------------------------------------- |
139
+ | `adspecs init` | 交互式初始化项目结构(docs/、templates/、前端模板等) | `adspecs init --mode simple` |
140
+ | `adspecs plugin install` | 注册为 AI 平台插件(自动检测或指定平台) | `adspecs plugin install --platform workbuddy` |
141
+ | `adspecs plugin uninstall` | 从 AI 平台卸载插件 | `adspecs plugin uninstall --platform qoder` |
142
+ | `adspecs doctor` | 检查环境依赖(Node.js、git、Python 等) | `adspecs doctor` |
143
+ | `adspecs update` | 升级到最新版本 | `adspecs update --version 0.2.0` |
100
144
 
101
145
  ### `adspecs init` 参数
102
146
 
@@ -115,26 +159,33 @@ adspecs init
115
159
 
116
160
  ---
117
161
 
118
- ## Skills 总览(21 个)
162
+ ## Skills 总览(30 个)
119
163
 
120
164
  按职责分为六类:
121
165
 
122
- ### 一、项目初始化(CLI 命令)
166
+ ### 一、项目初始化(CLI + Skill)
123
167
 
124
- | 命令 | 说明 |
125
- | -------------- | ------------------------------------------------------------------------------ |
126
- | `adspecs init` | 交互式初始化项目结构:`docs/` 文档树、前端模板、后端模块、编码规范、标准模板等 |
168
+ | 命令 / Skill | 说明 |
169
+ | --------------- | ---------------------------------------------------------------------------------- |
170
+ | `adspecs init` | CLI 交互式初始化项目结构:`docs/` 文档树、前端模板、后端模块、编码规范、标准模板等 |
171
+ | `/project-init` | Skill 版初始化(在 AI 会话中调用,等价于 `adspecs init`) |
127
172
 
128
173
  初始化后生成:
129
174
 
175
+ - `docs/00-planning/` — 产品规划报告与路标
176
+ - `docs/00-customer-requirements/` — 业务需求分析文档
130
177
  - `docs/10-architecture/` — 架构规划
131
178
  - `docs/20-prd/` — 产品需求说明书
132
179
  - `docs/30-system-design/` — 系统设计 + SQL + 前端设计 + 任务清单
133
- - `docs/40-project_conventions/` — 编码规范
180
+ - `docs/40-project_conventions/` — 编码规范(前端 + 后端)
181
+ - `docs/80-development/` — 开发日志、测试报告
182
+ - `docs/100-help/` — 帮助文档
183
+ - `docs/300-specs/` — 规格文档
184
+ - `wiki/` — Wiki 同步目标目录
134
185
  - `.adspecs/templates/` — 21 个标准模板
135
186
  - `.adspecs/paths.json` — 可自定义的输出路径配置
136
187
 
137
- ### 二、需求分析与架构规划(5 个)
188
+ ### 二、需求分析与架构规划(7 个)
138
189
 
139
190
  | Skill | 说明 | 输入 | 输出 |
140
191
  | ------------------------------- | ------------------------------------------------ | ------------------- | -------------------------------- |
@@ -143,34 +194,43 @@ adspecs init
143
194
  | `adspecs-prd` | 从自然语言 / 调研材料生成 PRD | 调研材料 / 原始需求 | `docs/20-prd/` |
144
195
  | `adspecs-clarify` | 识别 PRD 模糊点(≤5 个)并澄清 | 需求规格说明书 | 更新后的规格说明书 |
145
196
  | `adspecs-architecture-planning` | 平台级架构规划(功能架构 → 模块依赖 → 数据建模) | 项目 / 业务描述 | `docs/10-architecture/` |
197
+ | `adspecs-requirement-research` | 需求溯源与调研,记录需求来源与关联 | 需求描述 | `docs/02-prd/` |
198
+ | `adspecs-constitution` | 创建或更新项目章程,同步依赖模板 | 项目原则 / 章程输入 | 项目章程文件 |
146
199
 
147
- ### 三、SOW / 设计 / 任务(5 个)
200
+ ### 三、SOW / 设计 / 任务 / 原型(7 个)
148
201
 
149
- | Skill | 说明 | 输入 | 输出 |
150
- | --------------------- | ------------------------------------- | --------------- | ------------------------------------- |
151
- | `adspecs-write-sow` | 根据项目 / 合同信息生成工作说明书 | 项目 / 合同信息 | `docs/05-sow/` |
152
- | `adspecs-plan` | 后端统一系统设计(OOA+OOD)+ 建表 SQL | PRD | `docs/30-system-design/` design + SQL |
153
- | `adspecs-front-spec` | 前端功能设计(UI/交互规格) | PRD + 系统设计 | `docs/30-system-design/` 前端设计 |
154
- | `adspecs-tasks` | 后端 TDD 任务清单 | 系统设计文档 | `docs/30-system-design/` tasks.md |
155
- | `adspecs-front-tasks` | 前端 TDD 任务清单 | 前端设计文档 | `docs/30-system-design/` tasks.md |
202
+ | Skill | 说明 | 输入 | 输出 |
203
+ | ------------------------- | --------------------------------------------------- | ------------------ | ------------------------------------- |
204
+ | `adspecs-write-sow` | 根据项目 / 合同信息生成工作说明书 | 项目 / 合同信息 | `docs/05-sow/` |
205
+ | `adspecs-plan` | 后端统一系统设计(OOA+OOD)+ 建表 SQL | PRD | `docs/30-system-design/` design + SQL |
206
+ | `adspecs-front-spec` | 前端功能设计(UI/交互规格) | PRD + 系统设计 | `docs/30-system-design/` 前端设计 |
207
+ | `adspecs-front-prototype` | 基于 PRD 生成可在 front-demo 中运行的完整页面原型 | PRD / 前端设计文档 | front-demo 可运行页面 |
208
+ | `adspecs-prd-to-demo` | 基于 PRD 输出可点击 Demo 设计方案(7 段式规划文档) | PRD / 需求分析 | Demo 设计规划文档 |
209
+ | `adspecs-tasks` | 后端 TDD 任务清单 | 系统设计文档 | `docs/30-system-design/` tasks.md |
210
+ | `adspecs-front-tasks` | 前端 TDD 任务清单 | 前端设计文档 | `docs/30-system-design/` tasks.md |
156
211
 
157
- ### 四、质量保障与测试(3 个)
212
+ ### 四、质量保障与测试(4 个)
158
213
 
159
214
  | Skill | 说明 |
160
215
  | ---------------------------- | ------------------------------------------------------------------- |
161
216
  | `adspecs-analyze` | 跨文档(PRD / 系统设计 / tasks)全链路 13 维一致性分析 |
162
217
  | `adspecs-adversarial-review` | 对抗式审查:5 个红队角色挑战文档假设、缺失、矛盾与歧义 |
218
+ | `grill-me` | 深度追问与挑战,针对方案或设计进行尖锐提问 |
163
219
  | `adspecs-utest` | 基于系统设计生成 Service / Controller 层 JUnit 5 单元测试代码及报告 |
164
220
 
165
- ### 五、交付与运维(5 个)
221
+ ### 五、交付与运维(9 个)
166
222
 
167
- | Skill | 说明 |
168
- | ----------------------- | -------------------------------------------------- |
169
- | `adspecs-update-status` | 更新 feature.json 功能状态 + 输出追踪矩阵 |
170
- | `adspecs-export-word` | Markdown 导出为 Word(.docx),自动生成封面 + 目录 |
171
- | `adspecs-git-commit` | 各阶段完成后自动提交变更 |
172
- | `sie-front-code-review` | 前端专项评审(React + TypeScript + Ant Design) |
173
- | `wiki-update` | docs/ 同步到 wiki/(全量 / 增量模式) |
223
+ | Skill | 说明 |
224
+ | ------------------------ | -------------------------------------------------- |
225
+ | `adspecs-update-status` | 更新 feature.json 功能状态 + 输出追踪矩阵 |
226
+ | `adspecs-export-word` | Markdown 导出为 Word(.docx),自动生成封面 + 目录 |
227
+ | `adspecs-git-initialize` | 初始化 Git 仓库并完成首次提交 |
228
+ | `adspecs-git-commit` | 各阶段完成后自动提交变更 |
229
+ | `adspecs-save-session` | 保存当前 AI 会话为结构化 Markdown 日志 |
230
+ | `sie-front-code-review` | 前端专项评审(React + TypeScript + Ant Design) |
231
+ | `playwright-cli` | 浏览器自动化交互、网页测试与 Playwright 测试 |
232
+ | `playwright-trace` | 检查 Playwright trace 文件(操作、请求、截图等) |
233
+ | `wiki-update` | 将 docs/ 同步到 wiki/(全量 / 增量模式) |
174
234
 
175
235
  ### 六、产品规划(2 个)
176
236
 
@@ -185,9 +245,8 @@ adspecs init
185
245
  | -------------------------------- | -------------------------------- |
186
246
  | `subagent-driven-development` | 子代理驱动并行开发 |
187
247
  | `test-driven-development` | RED → GREEN → REFACTOR TDD 循环 |
188
- | `dispatching-parallel-agents` | 并行子代理调度 |
189
- | `finishing-a-development-branch` | 分支收尾(PR / merge / cleanup) |
190
248
  | `verification-before-completion` | 完成前最终验证 |
249
+ | `finishing-a-development-branch` | 分支收尾(PR / merge / cleanup) |
191
250
 
192
251
  ---
193
252
 
@@ -223,23 +282,19 @@ adspecs init
223
282
 
224
283
  ---
225
284
 
226
- ## 参考工程(11 套)
285
+ ## 参考工程(9 套)
227
286
 
228
287
  `references/` 目录包含 `adspecs init` 时按需复制到目标项目的参考代码和规范:
229
288
 
230
- | 目录 | 说明 |
231
- | ------------------------------ | ---------------------------------------------- |
232
- | `docs/40-project_conventions/` | ECP 编码标准(后端 Java + 前端集成) |
233
- | `front-demo/` | Vue 3 前端演示项目(Vite + TS + Element Plus) |
234
- | `antd-front-demo/` | Ant Design React 前端演示项目 |
235
- | `ant6-front-standard/` | Ant Design 6 前端编码规范(9 篇) |
236
- | `ecp-end-standard/` | ECP 后端编码规范 |
237
- | `ecp-front-standard/` | ECP 前端编码规范 |
238
- | `iidp-end-standard/` | IIDP 后端编码规范 |
239
- | `iidp-front-standard/` | IIDP 前端编码规范 |
240
- | `web-ui/` | ECP 管理控制台外壳工程 |
241
- | `python/` | Python 后端参考 |
242
- | `yudaocloud-end-standard/` | 芋道 Cloud 后端集成参考 |
289
+ | 目录 | 说明 |
290
+ | -------------------------- | ---------------------------------------------- |
291
+ | `front-demo/` | Vue 3 前端演示项目(Vite + TS + Element Plus) |
292
+ | `antd-front-demo/` | Ant Design React 前端演示项目 |
293
+ | `ant6-front-standard/` | Ant Design 6 前端编码规范(12 篇) |
294
+ | `vue3-front-stantard/` | Vue 3 前端编码规范 |
295
+ | `python-end-standard/` | Python 后端参考 |
296
+ | `yudaocloud-end-standard/` | 芋道 Cloud 后端集成参考 |
297
+ | `tools/` | 辅助工具集 |
243
298
 
244
299
  ---
245
300
 
@@ -332,10 +387,14 @@ Skill 支持通过 `.adspecs/paths.json` 自定义输出目录:
332
387
  "paths": {
333
388
  "biz_analysis_dir": "docs/00-customer-requirements",
334
389
  "architecture_dir": "docs/10-architecture",
390
+ "research_output_dir": "docs/02-prd",
391
+ "sow_dir": "docs/05-sow",
335
392
  "prd_dir": "docs/20-prd",
336
393
  "design_dir": "docs/30-system-design",
337
- "test_report_dir": "docs/80-development",
394
+ "test_report_dir": "docs/80-development/802-test",
338
395
  "export_dir": "docs/90-export",
396
+ "front_demo_dir": "front-demo",
397
+ "front_prototype_dir": "web-ui",
339
398
  "wiki_dir": "wiki"
340
399
  }
341
400
  }
@@ -345,67 +404,37 @@ Skill 支持通过 `.adspecs/paths.json` 自定义输出目录:
345
404
 
346
405
  ---
347
406
 
348
- ## 安装与升级
349
-
350
- 详细安装说明见 [INSTALL.md](./INSTALL.md)。
351
-
352
- ### Claude Code
353
-
354
- ```bash
355
- npm install -g adspecs
356
- adspecs plugin install # 用户级(默认)
357
- adspecs plugin install --scope project # 项目级
358
- ```
359
-
360
- ### Qoder
361
-
362
- ```bash
363
- npm install -g adspecs
364
- adspecs plugin install --platform qoder # 用户级
365
- adspecs plugin install --platform qoder --scope project # 项目级
366
- ```
367
-
368
- ### 通用命令
369
-
370
- ```bash
371
- # 升级
372
- npm install -g adspecs@latest
373
-
374
- # 卸载
375
- adspecs plugin uninstall --scope user
376
- adspecs plugin uninstall --scope project
377
- ```
378
-
379
- ---
380
407
 
381
408
  ## 常见问题
382
409
 
383
410
  **Q1:adspecs 与 superpowers 的关系?**
384
411
  adspecs 提供领域专属 Skill(需求、设计、模板、规范),superpowers 提供通用 AI 工程 Skill(TDD、子代理、调试)。
385
412
  - **Claude Code**:两者分工协作,编码阶段必须同时安装
386
- - **Qoder**:adspecs 可独立运行,无需 superpowers
413
+ - **Qoder / WorkBuddy**:adspecs 可独立运行,无需 superpowers
387
414
 
388
415
  **Q2:用户级和项目级安装可以共存吗?**
389
416
  可以,项目级优先于用户级(就近原则)。个人开发选用户级,团队协作选项目级。
390
417
 
391
- **Q3:Claude Code 和 Qoder 可以同时使用吗?**
392
- 可以。adspecs 通过 `.claude-plugin/` 和 `.qoder-plugin/` 分别提供两个平台的插件配置,互不干扰。使用 `--platform` 参数指定目标平台即可。
418
+ **Q3:Claude Code、QoderWorkBuddy 可以同时使用吗?**
419
+ 可以。adspecs 通过 `.claude-plugin/`、`.qoder-plugin/`、`.codebuddy-plugin/` 分别提供三个平台的插件配置,互不干扰。使用 `--platform` 参数指定目标平台即可。
393
420
 
394
421
  **Q4:安装后 Skill 未生效?**
395
- 1. 执行 `/plugins` 查看 adspecs 是否在已加载列表
396
- 2. 重启 Claude Code Qoder
397
- 3. 检查安装 scope 对应的目录是否存在(`.claude-plugin/` 或 `.qoder-plugin/`)
422
+ 1. 检查 adspecs 是否在已加载插件列表中
423
+ 2. 重启对应平台(Claude Code / Qoder / WorkBuddy)
424
+ 3. WorkBuddy 用户:确认 `~/.workbuddy/plugins/marketplaces/local/.codebuddy-plugin/marketplace.json` 存在
425
+ 4. 重新执行 `adspecs plugin install --platform <平台名>` 刷新注册
398
426
 
399
- **Q4:如何升级?**
427
+ **Q5:如何升级?**
400
428
  ```bash
401
429
  npm install -g adspecs@latest
402
- # 插件注册无需重新执行,Skill 定义随 npm 包更新
430
+ adspecs plugin install --platform <平台名> # 刷新插件注册(WorkBuddy 建议执行)
431
+ # Skill 定义随 npm 包更新,Claude Code / Qoder 通常无需重新注册
403
432
  ```
404
433
 
405
- **Q5:前端测试框架?**
434
+ **Q6:前端测试框架?**
406
435
  Vue 项目使用 Vitest + @vue/test-utils;React 项目使用 Jest + React Testing Library。
407
436
 
408
- **Q6:init 模式区别?**
437
+ **Q7:init 模式区别?**
409
438
  - `simple`:仅 docs + wiki
410
439
  - `classic`:+ front-demo(默认)
411
440
  - `full`:所有目录 + 参考工程
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adspecs",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "description": "AI first 工程规范驱动开发插件 — 支持 npm 安装和 CLI 初始化",
5
5
  "bin": {
6
6
  "adspecs": "bin/adspecs.js"
@@ -187,3 +187,10 @@ render: (_, record) => dateFormatter(record.createTime) || '-',
187
187
  > **注意**:如果后端 `createTime` 可能是 number/Date,统一用 `new Date(value).getTime()` 包装再比较。
188
188
 
189
189
  ---
190
+
191
+ ## 4、<Alert />组件使用规范
192
+
193
+ - Ant Design 6 中 `Alert` 的 `message` 属性已弃用,控制台报 `[antd: Alert] message is deprecated. Please use title instead.`
194
+ - **严禁**写 `<Alert message="..." />`,**必须**改为 `<Alert title="..." />`
195
+ - 全仓库排查命令:`grep -rn "Alert" web-ui/src --include="*.tsx" | grep "message="`
196
+ - 已清理范围:本体模块(detail 编辑锁提示条、BindingTab、GraphTab、CleanupModal、VersionDiffDrawer、YamlTab 等)——新增代码必须遵守,勿让该警告回潮