@agile-team/wl-skills-kit 2.1.2 → 2.1.4

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 (80) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +73 -5
  3. package/bin/wl-skills.js +35 -1
  4. package/files/.github/guides/README.md +13 -13
  5. package/files/.github/guides/architecture.md +555 -555
  6. package/files/.github/guides/usage.md +166 -166
  7. package/files/.github/reports/README.md +65 -65
  8. package/files/.github/reports/SYS_DICT_INFO.md +19 -19
  9. package/files/.github/reports/SYS_MENU_INFO.md +247 -247
  10. package/files/.github/reports/SYS_PERMISSION_INFO.md +20 -20
  11. package/files/.github/reports//347/273/204/344/273/266/346/217/220/345/217/226/345/273/272/350/256/256.md +33 -33
  12. package/files/.github/reports//350/247/204/350/214/203/345/256/241/346/237/245/346/212/245/345/221/212.md +44 -44
  13. package/files/.github/skills/_compat/README.md +108 -108
  14. package/files/.github/skills/_compat/headers/agents.txt +8 -8
  15. package/files/.github/skills/_compat/headers/claude-code.txt +7 -7
  16. package/files/.github/skills/_compat/headers/cline.txt +7 -7
  17. package/files/.github/skills/_compat/headers/cursor-mdc.txt +16 -16
  18. package/files/.github/skills/_compat/headers/cursor-rules.txt +7 -7
  19. package/files/.github/skills/_compat/headers/github-copilot.txt +1 -1
  20. package/files/.github/skills/_compat/headers/kiro.txt +10 -10
  21. package/files/.github/skills/_compat/headers/trae.txt +11 -11
  22. package/files/.github/skills/_compat/headers/windsurf.txt +7 -7
  23. package/files/.github/skills/_registry.md +81 -81
  24. package/files/.github/skills/core/api-contract/SKILL.md +344 -344
  25. package/files/.github/skills/core/api-contract/USAGE.md +110 -110
  26. package/files/.github/skills/core/convention-audit/SKILL.md +189 -189
  27. package/files/.github/skills/core/convention-audit/USAGE.md +99 -99
  28. package/files/.github/skills/core/page-codegen/SKILL.md +973 -973
  29. package/files/.github/skills/core/page-codegen/USAGE.md +102 -102
  30. package/files/.github/skills/core/page-codegen/templates/_index.md +46 -46
  31. package/files/.github/skills/core/page-codegen/templates/domains/_CONTRIBUTING.md +107 -107
  32. package/files/.github/skills/core/page-codegen/templates/domains/produce/TPL-OPERATION-STATION.md +442 -442
  33. package/files/.github/skills/core/page-codegen/templates/domains/sale/README.md +26 -26
  34. package/files/.github/skills/core/page-codegen/templates/universal/TPL-CHANGE-HISTORY.md +276 -276
  35. package/files/.github/skills/core/page-codegen/templates/universal/TPL-DETAIL-TABS.md +1145 -1145
  36. package/files/.github/skills/core/page-codegen/templates/universal/TPL-DRIVEN.md +124 -124
  37. package/files/.github/skills/core/page-codegen/templates/universal/TPL-FORM-ROUTE.md +436 -436
  38. package/files/.github/skills/core/page-codegen/templates/universal/TPL-LIST.md +191 -191
  39. package/files/.github/skills/core/page-codegen/templates/universal/TPL-MASTER-DETAIL.md +148 -148
  40. package/files/.github/skills/core/page-codegen/templates/universal/TPL-RECORD-FORM.md +371 -371
  41. package/files/.github/skills/core/page-codegen/templates/universal/TPL-TREE-LIST.md +186 -186
  42. package/files/.github/skills/core/prototype-scan/SKILL.md +498 -498
  43. package/files/.github/skills/core/prototype-scan/USAGE.md +95 -95
  44. package/files/.github/skills/core/template-extract/SKILL.md +139 -139
  45. package/files/.github/skills/core/template-extract/USAGE.md +93 -93
  46. package/files/.github/skills/domain/README.md +51 -51
  47. package/files/.github/skills/ops/code-fix/SKILL.draft.md +108 -108
  48. package/files/.github/skills/sync/dict-sync/SKILL.draft.md +100 -100
  49. package/files/.github/skills/sync/menu-sync/SKILL.md +258 -258
  50. package/files/.github/skills/sync/menu-sync/USAGE.md +104 -104
  51. package/files/.github/skills/sync/menu-sync/env/env.local.json +6 -6
  52. package/files/.github/skills/sync/menu-sync/env/guide.md +83 -83
  53. package/files/.github/skills/sync/permission-sync/SKILL.draft.md +91 -91
  54. package/files/.github/standards/01-toolchain.md +57 -57
  55. package/files/.github/standards/02-code-structure.md +111 -111
  56. package/files/.github/standards/03-comments.md +53 -53
  57. package/files/.github/standards/04-coding-basics.md +33 -33
  58. package/files/.github/standards/05-logging.md +38 -38
  59. package/files/.github/standards/06-security.md +44 -44
  60. package/files/.github/standards/07-config.md +52 -52
  61. package/files/.github/standards/08-git.md +60 -60
  62. package/files/.github/standards/09-typescript.md +71 -71
  63. package/files/.github/standards/10-pinia.md +57 -57
  64. package/files/.github/standards/11-form-validation.md +81 -81
  65. package/files/.github/standards/12-base-table.md +116 -116
  66. package/files/.github/standards/13-platform-components.md +123 -123
  67. package/files/.github/standards/index.md +89 -89
  68. package/files/demo/produce/aiflow/mmwr-customer-apply-change-history/data.ts +196 -196
  69. package/files/demo/produce/aiflow/mmwr-customer-apply-change-history/index.scss +150 -150
  70. package/files/demo/produce/aiflow/mmwr-customer-apply-change-history/index.vue +79 -79
  71. package/files/docs/jh-date-range.md +257 -257
  72. package/files/docs/jh-date.md +222 -222
  73. package/files/docs/jh-dept-picker.md +190 -190
  74. package/files/docs/jh-drag-row.md +590 -590
  75. package/files/docs/jh-file-upload.md +216 -216
  76. package/files/docs/jh-picker.md +218 -218
  77. package/files/docs/jh-select.md +148 -148
  78. package/files/docs/jh-text.md +248 -248
  79. package/files/docs/jh-user-picker.md +197 -197
  80. package/package.json +2 -4
@@ -1,99 +1,99 @@
1
- # 使用指南:convention-audit(规范审计)
2
-
3
- > **谁读这个文档**:团队成员(主要前端、code reviewer)
4
- > **AI 触发文件**:同目录 `SKILL.md`
5
-
6
- ---
7
-
8
- ## 这个 Skill 解决什么问题
9
-
10
- 对**指定文件/目录**或**全量项目**跑一遍 13 条 standards 检查,输出:
11
-
12
- 1. **AI 自查报告**(reports/AUDIT*AI*\*.md)— 给 AI 看的,含修复建议
13
- 2. **人读摘要报告**(reports/AUDIT*HUMAN*\*.md)— 给团队 review 用的,含通过率/Top 偏差
14
-
15
- ---
16
-
17
- ## 何时使用
18
-
19
- - code review 前自检
20
- - 接手老页面,想知道偏差有多大
21
- - 重构大模块前,先量化欠债
22
- - PR 卡住找原因(哪条规范没过)
23
-
24
- ---
25
-
26
- ## 触发关键词
27
-
28
- `规范审计` / `代码审计` / `规范检查` / `对齐规范` / `规范偏差`
29
-
30
- ---
31
-
32
- ## 标准对话示例
33
-
34
- ```
35
- 你:审计 src/views/produce/aiflow/mmwr-customer-archive/ 这个页面
36
- AI:[Pre-flight]
37
- 审计目标:1 个页面(4 个文件)
38
- 应用规范:13 条 standards
39
- 输出:
40
- - reports/AUDIT_AI_mmwr-customer-archive_20260426.md
41
- - reports/AUDIT_HUMAN_mmwr-customer-archive_20260426.md
42
- [扫描中...]
43
- 完成。13 条标准通过 11 条,2 条需关注:
44
- ⚠ standards/data-ts.md - EColumn.cid 缺失 1 处
45
- ⚠ standards/scss.md - 全局样式污染(缺 :scoped)
46
- 详见 reports/。
47
- ```
48
-
49
- ---
50
-
51
- ## 输出物结构
52
-
53
- ### AI 自查报告(详细)
54
-
55
- 按规范逐条列:
56
-
57
- - ✅ 通过:simple count
58
- - ⚠ 偏差:文件路径 + 行号 + 偏差描述 + 修复建议(含代码片段)
59
- - ❌ 严重:阻断性问题
60
-
61
- ### 人读摘要
62
-
63
- - 总体通过率
64
- - Top 5 偏差类型
65
- - 最严重的 3 个文件
66
- - 修复优先级建议(高/中/低)
67
-
68
- ---
69
-
70
- ## 团队使用流程
71
-
72
- 1. **PR 自检**:作者先跑一遍审计,修掉高优先级再提 PR
73
- 2. **CR 辅助**:reviewer 看人读摘要快速定位
74
- 3. **季度健康度**:每季度跑一次全量审计,跟踪趋势
75
- 4. **新人培训**:让新人审计自己写的页面,对照标准学
76
-
77
- ---
78
-
79
- ## 常见踩坑
80
-
81
- | 现象 | 原因 | 解法 |
82
- | ------------------------------------ | -------------------------------------- | --------------------------------------- |
83
- | 审计跑很久(> 10 分钟) | 一次性审了上千文件 | 缩小范围到模块或页面级 |
84
- | 偏差数据"漂移"(同代码两次结果不同) | AI 模型版本不同 | 锁定 IDE 模型版本,或以 AI 自查报告为准 |
85
- | 误报字典字段未定义 | 字典在 reports/SYS_DICT_INFO.md 但跨域 | 在 standards/data-ts.md 里允许跨域字典 |
86
- | Pre-flight 没声明 | AI 跳过了门控 | 显式说"按 SKILL.md 执行 Pre-flight" |
87
-
88
- ---
89
-
90
- ## FAQ
91
-
92
- **Q:审计结果可以自动修复吗?**
93
- A:单个偏差可以让 AI 修,但**不要让它批量自动改**。建议:人工挑 review 通过的,逐个让 AI 改。code-fix Skill(PLANNED)将提供受控自动修复。
94
-
95
- **Q:两份报告为什么要分开?**
96
- A:AI 报告冗长(含每行修复建议),人读摘要简洁(只看趋势/优先级)。两者读者不同。
97
-
98
- **Q:自定义规范怎么加?**
99
- A:往 `.github/standards/` 加一份 `*.md`,更新 `standards/index.md`,convention-audit 自动 pickup。
1
+ # 使用指南:convention-audit(规范审计)
2
+
3
+ > **谁读这个文档**:团队成员(主要前端、code reviewer)
4
+ > **AI 触发文件**:同目录 `SKILL.md`
5
+
6
+ ---
7
+
8
+ ## 这个 Skill 解决什么问题
9
+
10
+ 对**指定文件/目录**或**全量项目**跑一遍 13 条 standards 检查,输出:
11
+
12
+ 1. **AI 自查报告**(reports/AUDIT*AI*\*.md)— 给 AI 看的,含修复建议
13
+ 2. **人读摘要报告**(reports/AUDIT*HUMAN*\*.md)— 给团队 review 用的,含通过率/Top 偏差
14
+
15
+ ---
16
+
17
+ ## 何时使用
18
+
19
+ - code review 前自检
20
+ - 接手老页面,想知道偏差有多大
21
+ - 重构大模块前,先量化欠债
22
+ - PR 卡住找原因(哪条规范没过)
23
+
24
+ ---
25
+
26
+ ## 触发关键词
27
+
28
+ `规范审计` / `代码审计` / `规范检查` / `对齐规范` / `规范偏差`
29
+
30
+ ---
31
+
32
+ ## 标准对话示例
33
+
34
+ ```
35
+ 你:审计 src/views/produce/aiflow/mmwr-customer-archive/ 这个页面
36
+ AI:[Pre-flight]
37
+ 审计目标:1 个页面(4 个文件)
38
+ 应用规范:13 条 standards
39
+ 输出:
40
+ - reports/AUDIT_AI_mmwr-customer-archive_20260426.md
41
+ - reports/AUDIT_HUMAN_mmwr-customer-archive_20260426.md
42
+ [扫描中...]
43
+ 完成。13 条标准通过 11 条,2 条需关注:
44
+ ⚠ standards/data-ts.md - EColumn.cid 缺失 1 处
45
+ ⚠ standards/scss.md - 全局样式污染(缺 :scoped)
46
+ 详见 reports/。
47
+ ```
48
+
49
+ ---
50
+
51
+ ## 输出物结构
52
+
53
+ ### AI 自查报告(详细)
54
+
55
+ 按规范逐条列:
56
+
57
+ - ✅ 通过:simple count
58
+ - ⚠ 偏差:文件路径 + 行号 + 偏差描述 + 修复建议(含代码片段)
59
+ - ❌ 严重:阻断性问题
60
+
61
+ ### 人读摘要
62
+
63
+ - 总体通过率
64
+ - Top 5 偏差类型
65
+ - 最严重的 3 个文件
66
+ - 修复优先级建议(高/中/低)
67
+
68
+ ---
69
+
70
+ ## 团队使用流程
71
+
72
+ 1. **PR 自检**:作者先跑一遍审计,修掉高优先级再提 PR
73
+ 2. **CR 辅助**:reviewer 看人读摘要快速定位
74
+ 3. **季度健康度**:每季度跑一次全量审计,跟踪趋势
75
+ 4. **新人培训**:让新人审计自己写的页面,对照标准学
76
+
77
+ ---
78
+
79
+ ## 常见踩坑
80
+
81
+ | 现象 | 原因 | 解法 |
82
+ | ------------------------------------ | -------------------------------------- | --------------------------------------- |
83
+ | 审计跑很久(> 10 分钟) | 一次性审了上千文件 | 缩小范围到模块或页面级 |
84
+ | 偏差数据"漂移"(同代码两次结果不同) | AI 模型版本不同 | 锁定 IDE 模型版本,或以 AI 自查报告为准 |
85
+ | 误报字典字段未定义 | 字典在 reports/SYS_DICT_INFO.md 但跨域 | 在 standards/data-ts.md 里允许跨域字典 |
86
+ | Pre-flight 没声明 | AI 跳过了门控 | 显式说"按 SKILL.md 执行 Pre-flight" |
87
+
88
+ ---
89
+
90
+ ## FAQ
91
+
92
+ **Q:审计结果可以自动修复吗?**
93
+ A:单个偏差可以让 AI 修,但**不要让它批量自动改**。建议:人工挑 review 通过的,逐个让 AI 改。code-fix Skill(PLANNED)将提供受控自动修复。
94
+
95
+ **Q:两份报告为什么要分开?**
96
+ A:AI 报告冗长(含每行修复建议),人读摘要简洁(只看趋势/优先级)。两者读者不同。
97
+
98
+ **Q:自定义规范怎么加?**
99
+ A:往 `.github/standards/` 加一份 `*.md`,更新 `standards/index.md`,convention-audit 自动 pickup。