@agile-team/wl-skills-kit 2.5.1 → 2.6.0

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 (24) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +26 -6
  3. package/bin/wl-skills.js +1 -1
  4. package/docs/agent-pipeline-runbook.md +200 -0
  5. package/docs/ai/345/205/250/346/231/257/345/210/206/346/236/220.md +31 -14
  6. package/docs/mcp-tool-risk-matrix.md +130 -0
  7. package/docs//345/205/250/347/233/230/345/210/206/346/236/220/344/270/216/346/231/272/350/203/275/344/275/223/346/220/255/345/273/272/346/214/207/345/215/227.md +21 -10
  8. package/files/.github/copilot-instructions.md +2 -0
  9. package/files/.github/guides/architecture.md +1 -1
  10. package/files/.github/guides/usage.md +4 -3
  11. package/files/.github/skills/_compat/headers/cursor-mdc.txt +1 -1
  12. package/files/.github/skills/_compat/headers/kiro.txt +1 -1
  13. package/files/.github/skills/_compat/headers/trae.txt +1 -1
  14. package/files/.github/skills/_pipeline.md +10 -4
  15. package/files/.github/skills/_registry.md +3 -0
  16. package/files/.github/skills/core/business-doc-extract/SKILL.md +234 -0
  17. package/files/.github/skills/core/business-doc-extract/USAGE.md +176 -0
  18. package/files/.github/skills/core/business-doc-extract/templates/business-index.md +66 -0
  19. package/files/.github/skills/core/business-doc-extract/templates/business-open-questions.md +40 -0
  20. package/files/.github/skills/core/business-doc-extract/templates/module-dictionary.md +54 -0
  21. package/files/.github/skills/core/business-doc-extract/templates/module-field.md +63 -0
  22. package/files/.github/skills/core/business-doc-extract/templates/module-index.md +67 -0
  23. package/files/.github/skills/core/business-doc-extract/templates/module-requirement.md +101 -0
  24. package/package.json +2 -2
@@ -0,0 +1,54 @@
1
+ <!--
2
+ 模板:docs/business/0X-xxx/dictionary.md(模块字典枚举)
3
+ 使用:business-doc-extract Skill 在 module / incremental 模式下生成或更新。
4
+ 约束:仅维护本模块涉及的字典 / 枚举 / 状态;跨模块共享的字典需在备注列说明。
5
+ 字典 code 推断未确认时,必须在 `状态` 列标 `待确认`,确认前不写入业务代码。
6
+ -->
7
+
8
+ # {{ModuleName}}:字典与枚举
9
+
10
+ ---
11
+
12
+ ## 1. 模块字典清单
13
+
14
+ | 字典 code | 字典名称 | 用途 | 来源 | 状态 | 备注 |
15
+ |---|---|---|---|---|---|
16
+ | {{DictCode1}} | {{DictName1}} | {{Usage1}} | 原型 / 详设 / 后端 | 待确认 / 已确认 / 已废弃 | {{Note1}} |
17
+ | {{DictCode2}} | {{DictName2}} | {{Usage2}} | {{Source2}} | {{Status2}} | {{Note2}} |
18
+
19
+ ---
20
+
21
+ ## 2. 字典项明细
22
+
23
+ ### {{DictCode1}}:{{DictName1}}
24
+
25
+ | 值 | 标签 | 说明 | 状态 |
26
+ |---|---|---|---|
27
+ | {{Value1}} | {{Label1}} | {{Desc1}} | 待确认 / 已确认 |
28
+ | {{Value2}} | {{Label2}} | {{Desc2}} | {{Status2}} |
29
+
30
+ ---
31
+
32
+ ## 3. 跨模块共享字典
33
+
34
+ > 如本模块依赖其他模块或平台通用字典,列在此表,避免重复维护。
35
+
36
+ | 字典 code | 维护方 | 使用页面 |
37
+ |---|---|---|
38
+ | {{ShareCode}} | {{Owner}} | {{Pages}} |
39
+
40
+ ---
41
+
42
+ ## 4. 与后端 / mock 的对齐情况
43
+
44
+ | 字典 code | 后端字典模块 | mock 是否覆盖 | 前端 dict 引用位置 | 是否一致 |
45
+ |---|---|---|---|---|
46
+ | {{DictCode}} | {{BackendModule}} | 是 / 否 | `data.ts` / `select.dictCode` | 是 / 否 |
47
+
48
+ ---
49
+
50
+ ## 5. 变更记录
51
+
52
+ | 日期 | 摘要 | 操作人 |
53
+ |---|---|---|
54
+ | {{Date}} | {{Summary}} | {{Operator}} |
@@ -0,0 +1,63 @@
1
+ <!--
2
+ 模板:docs/business/0X-xxx/field.md(模块字段清单)
3
+ 使用:business-doc-extract Skill 在 module / incremental 模式下生成或更新。
4
+ 约束:以业务字段为主,配合后端实体、前端 data.ts、api.md 多端对齐。
5
+ 字段类型未确认时必须标 `待确认`,禁止凭推断写入。
6
+ -->
7
+
8
+ # {{ModuleName}}:业务字段清单
9
+
10
+ ---
11
+
12
+ ## 1. 字段总表
13
+
14
+ | 字段 | 中文名 | 类型 | 必填 | 字典 | 来源 | 使用位置 | 备注 |
15
+ |---|---|---|---|---|---|---|---|
16
+ | {{Field1}} | {{Cn1}} | {{Type1}} | 是 / 否 | {{DictCode1}} | 原型 / 详设 / 后端实体 / api.md | 列表列 / 查询项 / 表单项 / 接口入参 | {{Note1}} |
17
+ | {{Field2}} | {{Cn2}} | {{Type2}} | {{Required2}} | {{DictCode2}} | {{Source2}} | {{Position2}} | {{Note2}} |
18
+
19
+ ---
20
+
21
+ ## 2. 后端实体对照
22
+
23
+ > 仅列出与本模块相关的后端实体,避免文档膨胀。
24
+
25
+ ### {{EntityName1}}
26
+
27
+ | 前端字段 | 数据库字段 | 类型 | 说明 | 字典 / 约束 |
28
+ |---|---|---|---|---|
29
+ | {{Field1}} | {{Column1}} | {{Type1}} | {{Desc1}} | {{Constraint1}} |
30
+
31
+ ---
32
+
33
+ ## 3. 字段一致性检查
34
+
35
+ | 字段 | 后端实体 | mock | api.md | data.ts | 是否一致 |
36
+ |---|---|---|---|---|---|
37
+ | {{Field}} | {{InEntity}} | 是 / 否 | 是 / 否 | 是 / 否 | 是 / 否 |
38
+
39
+ ---
40
+
41
+ ## 4. 业务规则
42
+
43
+ | 字段 | 校验 / 规则 | 说明 |
44
+ |---|---|---|
45
+ | {{Field}} | 必填 / 唯一 / 长度 / 范围 / 正则 | {{Desc}} |
46
+
47
+ ---
48
+
49
+ ## 5. 待确认字段
50
+
51
+ > 推断字段不直接进入字段总表,先放在此处,确认后再合并。
52
+
53
+ | 字段 | 推断来源 | 待确认问题 | 建议确认人 | 状态 |
54
+ |---|---|---|---|---|
55
+ | {{Field}} | 原型 / 截图 | {{Question}} | 后端 / 产品 | 待确认 |
56
+
57
+ ---
58
+
59
+ ## 6. 变更记录
60
+
61
+ | 日期 | 摘要 | 操作人 |
62
+ |---|---|---|
63
+ | {{Date}} | {{Summary}} | {{Operator}} |
@@ -0,0 +1,67 @@
1
+ <!--
2
+ 模板:docs/business/0X-xxx/index.md(模块全景)
3
+ 使用:business-doc-extract Skill 在 module 模式下生成或刷新。
4
+ 约束:仅放“模块定位 + 子功能清单 + 页面/API 索引 + 模块链路摘要”。
5
+ 详细需求 / 字段 / 字典放在 requirement.md / field.md / dictionary.md。
6
+ -->
7
+
8
+ # {{ModuleName}}
9
+
10
+ > **代码目录**:`src/views/{{module-path}}`
11
+ > **文档目录**:`docs/business/0X-{{module-kebab}}/`
12
+ > **最近更新**:{{UpdatedAt}}
13
+
14
+ ---
15
+
16
+ ## 1. 模块定位
17
+
18
+ {{ModulePositioning}}
19
+
20
+ ---
21
+
22
+ ## 2. 子功能清单
23
+
24
+ | 功能 | 说明 | 状态 |
25
+ |---|---|---|
26
+ | {{Feature1}} | {{Desc1}} | {{Status1}} |
27
+ | {{Feature2}} | {{Desc2}} | {{Status2}} |
28
+
29
+ ---
30
+
31
+ ## 3. 页面与 API 索引
32
+
33
+ > 详细接口契约位于页面目录的 `api.md`,本表只做导航。
34
+
35
+ | 页面 | 代码目录 | API 契约 | 实现状态 |
36
+ |---|---|---|---|
37
+ | {{Page1Name}} | `src/views/{{page1-path}}` | [`api.md`](../../../src/views/{{page1-path}}/api.md) | {{Status1}} |
38
+ | {{Page2Name}} | `src/views/{{page2-path}}` | [`api.md`](../../../src/views/{{page2-path}}/api.md) | {{Status2}} |
39
+
40
+ ---
41
+
42
+ ## 4. 模块链路摘要
43
+
44
+ ```mermaid
45
+ flowchart TD
46
+ A[{{Step1}}] --> B[{{Step2}}]
47
+ B --> C[{{Step3}}]
48
+ ```
49
+
50
+ > 完整业务流程详见 [`requirement.md`](./requirement.md)。
51
+
52
+ ---
53
+
54
+ ## 5. 关联模块
55
+
56
+ | 模块 | 关系 |
57
+ |---|---|
58
+ | {{RelatedModule}} | {{Relation}} |
59
+
60
+ ---
61
+
62
+ ## 6. 模块导航
63
+
64
+ - 需求理解:[`requirement.md`](./requirement.md)
65
+ - 字典枚举:[`dictionary.md`](./dictionary.md)
66
+ - 字段清单:[`field.md`](./field.md)
67
+ - 全局待确认:[`../open-questions.md`](../open-questions.md)
@@ -0,0 +1,101 @@
1
+ <!--
2
+ 模板:docs/business/0X-xxx/requirement.md(模块需求理解)
3
+ 使用:business-doc-extract Skill 在 module / incremental 模式下生成或更新。
4
+ 约束:流程图、页面清单、模块待确认事项都放在本文件,不再单独建 flow.md / pages.md / open-questions.md。
5
+ 全局 open-questions.md 由 Skill 汇总,不在本文件维护汇总表。
6
+ -->
7
+
8
+ # {{ModuleName}}:需求理解
9
+
10
+ ---
11
+
12
+ ## 1. 需求来源
13
+
14
+ | 来源类型 | 路径或说明 |
15
+ |---|---|
16
+ | 原型 | {{PrototypePath}} |
17
+ | 详设 | {{SpecPath}} |
18
+ | 现有代码 | `src/views/{{module-path}}` |
19
+ | 后端字段实体 | {{EntityPath}} |
20
+ | 字典资料 | {{DictPath}} |
21
+
22
+ ---
23
+
24
+ ## 2. 业务目标
25
+
26
+ {{BusinessGoal}}
27
+
28
+ ---
29
+
30
+ ## 3. 角色与权限
31
+
32
+ | 角色 | 可操作内容 | 备注 |
33
+ |---|---|---|
34
+ | {{Role1}} | {{Operation1}} | {{Note1}} |
35
+ | {{Role2}} | {{Operation2}} | {{Note2}} |
36
+
37
+ ---
38
+
39
+ ## 4. 功能范围
40
+
41
+ | 功能 | 说明 | 是否本期 | 备注 |
42
+ |---|---|---|---|
43
+ | {{Feature1}} | {{Desc1}} | 是 / 否 | {{Note1}} |
44
+
45
+ ---
46
+
47
+ ## 5. 核心业务流程
48
+
49
+ ```mermaid
50
+ flowchart TD
51
+ A[{{Step1}}] --> B[{{Step2}}]
52
+ B --> C[{{Step3}}]
53
+ ```
54
+
55
+ > 多个流程时按子标题拆分,例如 `5.1 主流程`、`5.2 异常流程`。
56
+
57
+ ---
58
+
59
+ ## 6. 页面清单
60
+
61
+ | 页面 | 原型 / 详设来源 | 代码路径 | 实现状态 | 备注 |
62
+ |---|---|---|---|---|
63
+ | {{Page1}} | {{Source1}} | `src/views/{{page1-path}}` | {{Status1}} | {{Note1}} |
64
+ | {{Page2}} | {{Source2}} | `src/views/{{page2-path}}` | {{Status2}} | {{Note2}} |
65
+
66
+ > 详细接口契约见对应页面目录下的 `api.md`。
67
+
68
+ ---
69
+
70
+ ## 7. 业务规则
71
+
72
+ | 规则 | 说明 |
73
+ |---|---|
74
+ | {{Rule1}} | {{Desc1}} |
75
+ | {{Rule2}} | {{Desc2}} |
76
+
77
+ ---
78
+
79
+ ## 8. 异常规则
80
+
81
+ | 场景 | 处理方式 |
82
+ |---|---|
83
+ | {{Exception1}} | {{Handling1}} |
84
+
85
+ ---
86
+
87
+ ## 9. 模块待确认事项
88
+
89
+ > 仅维护本模块的待确认事项;全局视图见 `docs/business/open-questions.md`。
90
+
91
+ | 编号 | 问题 | 影响 | 建议确认人 | 优先级 | 状态 |
92
+ |---|---|---|---|---|---|
93
+ | Q-{{Module}}-001 | {{Question}} | {{Impact}} | 产品 / 后端 / 前端 | 高 / 中 / 低 | 待确认 |
94
+
95
+ ---
96
+
97
+ ## 10. 变更记录
98
+
99
+ | 日期 | 摘要 | 操作人 |
100
+ |---|---|---|
101
+ | {{Date}} | {{Summary}} | {{Operator}} |
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agile-team/wl-skills-kit",
3
- "version": "2.5.1",
4
- "description": "AI Skill 模板包 v2.5.0 — 13 条编码规范 + 9 个 AI Skill + 17 个 MCP Tool,一条命令导入 Vue 3 项目",
3
+ "version": "2.6.0",
4
+ "description": "AI Skill 模板包 v2.6.0 — 13 条编码规范 + 10 个 AI Skill + 17 个 MCP Tool,一条命令导入 Vue 3 项目",
5
5
  "main": "./bin/wl-skills.js",
6
6
  "bin": {
7
7
  "wl-skills": "bin/wl-skills.js"