ai-engineering-init 1.6.0 → 1.8.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 (187) hide show
  1. package/.claude/agents/code-reviewer.md +3 -130
  2. package/.claude/hooks/skill-forced-eval.js +46 -60
  3. package/.claude/hooks/stop.js +24 -1
  4. package/.claude/settings.json +10 -1
  5. package/.claude/skills/api-development/SKILL.md +179 -130
  6. package/.claude/skills/architecture-design/SKILL.md +102 -212
  7. package/.claude/skills/backend-annotations/SKILL.md +166 -220
  8. package/.claude/skills/bug-detective/SKILL.md +225 -186
  9. package/.claude/skills/code-patterns/SKILL.md +127 -244
  10. package/.claude/skills/codex-code-review/SKILL.md +327 -0
  11. package/.claude/skills/collaborating-with-codex/SKILL.md +96 -113
  12. package/.claude/skills/crud-development/SKILL.md +226 -307
  13. package/.claude/skills/data-permission/SKILL.md +131 -202
  14. package/.claude/skills/database-ops/SKILL.md +158 -355
  15. package/.claude/skills/error-handler/SKILL.md +224 -285
  16. package/.claude/skills/file-oss-management/SKILL.md +174 -169
  17. package/.claude/skills/git-workflow/SKILL.md +123 -341
  18. package/.claude/skills/json-serialization/SKILL.md +121 -137
  19. package/.claude/skills/leniu-report-customization/SKILL.md +82 -2
  20. package/.claude/skills/leniu-report-standard-customization/SKILL.md +65 -2
  21. package/.claude/skills/loki-log-query/SKILL.md +400 -0
  22. package/.claude/skills/mysql-debug/SKILL.md +58 -22
  23. package/.claude/skills/performance-doctor/SKILL.md +83 -89
  24. package/.claude/skills/redis-cache/SKILL.md +134 -185
  25. package/.claude/skills/scheduled-jobs/SKILL.md +187 -224
  26. package/.claude/skills/security-guard/SKILL.md +168 -276
  27. package/.claude/skills/sms-mail/SKILL.md +266 -228
  28. package/.claude/skills/social-login/SKILL.md +257 -195
  29. package/.claude/skills/sync-back-merge/SKILL.md +66 -0
  30. package/.claude/skills/tenant-management/SKILL.md +172 -188
  31. package/.claude/skills/utils-toolkit/SKILL.md +214 -222
  32. package/.claude/skills/websocket-sse/SKILL.md +251 -172
  33. package/.claude/skills/workflow-engine/SKILL.md +178 -250
  34. package/.claude/skills/yunxiao-task-management/SKILL.md +489 -0
  35. package/.codex/skills/api-development/SKILL.md +179 -130
  36. package/.codex/skills/architecture-design/SKILL.md +102 -212
  37. package/.codex/skills/backend-annotations/SKILL.md +166 -220
  38. package/.codex/skills/bug-detective/SKILL.md +225 -186
  39. package/.codex/skills/code-patterns/SKILL.md +127 -244
  40. package/.codex/skills/collaborating-with-codex/SKILL.md +96 -113
  41. package/.codex/skills/crud-development/SKILL.md +226 -307
  42. package/.codex/skills/data-permission/SKILL.md +131 -202
  43. package/.codex/skills/database-ops/SKILL.md +158 -355
  44. package/.codex/skills/error-handler/SKILL.md +224 -285
  45. package/.codex/skills/file-oss-management/SKILL.md +174 -169
  46. package/.codex/skills/git-workflow/SKILL.md +123 -341
  47. package/.codex/skills/json-serialization/SKILL.md +121 -137
  48. package/.codex/skills/leniu-report-customization/SKILL.md +82 -2
  49. package/.codex/skills/leniu-report-standard-customization/SKILL.md +65 -2
  50. package/.codex/skills/loki-log-query/SKILL.md +400 -0
  51. package/.codex/skills/loki-log-query/environments.json +45 -0
  52. package/.codex/skills/mysql-debug/SKILL.md +58 -22
  53. package/.codex/skills/performance-doctor/SKILL.md +83 -89
  54. package/.codex/skills/redis-cache/SKILL.md +134 -185
  55. package/.codex/skills/scheduled-jobs/SKILL.md +187 -224
  56. package/.codex/skills/security-guard/SKILL.md +168 -276
  57. package/.codex/skills/skill-creator/LICENSE.txt +202 -0
  58. package/.codex/skills/skill-creator/SKILL.md +479 -0
  59. package/.codex/skills/skill-creator/agents/analyzer.md +274 -0
  60. package/.codex/skills/skill-creator/agents/comparator.md +202 -0
  61. package/.codex/skills/skill-creator/agents/grader.md +223 -0
  62. package/.codex/skills/skill-creator/assets/eval_review.html +146 -0
  63. package/.codex/skills/skill-creator/eval-viewer/generate_review.py +471 -0
  64. package/.codex/skills/skill-creator/eval-viewer/viewer.html +1325 -0
  65. package/.codex/skills/skill-creator/references/schemas.md +430 -0
  66. package/.codex/skills/skill-creator/scripts/__init__.py +0 -0
  67. package/.codex/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
  68. package/.codex/skills/skill-creator/scripts/generate_report.py +326 -0
  69. package/.codex/skills/skill-creator/scripts/improve_description.py +248 -0
  70. package/.codex/skills/skill-creator/scripts/package_skill.py +136 -0
  71. package/.codex/skills/skill-creator/scripts/quick_validate.py +103 -0
  72. package/.codex/skills/skill-creator/scripts/run_eval.py +310 -0
  73. package/.codex/skills/skill-creator/scripts/run_loop.py +332 -0
  74. package/.codex/skills/skill-creator/scripts/utils.py +47 -0
  75. package/.codex/skills/sms-mail/SKILL.md +266 -228
  76. package/.codex/skills/social-login/SKILL.md +257 -195
  77. package/.codex/skills/sync-back-merge/SKILL.md +66 -0
  78. package/.codex/skills/tenant-management/SKILL.md +172 -188
  79. package/.codex/skills/utils-toolkit/SKILL.md +214 -222
  80. package/.codex/skills/websocket-sse/SKILL.md +251 -172
  81. package/.codex/skills/workflow-engine/SKILL.md +178 -250
  82. package/.codex/skills/yunxiao-task-management/SKILL.md +489 -0
  83. package/.cursor/hooks/cursor-skill-eval.js +66 -6
  84. package/.cursor/hooks/stop.js +23 -1
  85. package/.cursor/skills/api-development/SKILL.md +179 -130
  86. package/.cursor/skills/architecture-design/SKILL.md +102 -212
  87. package/.cursor/skills/backend-annotations/SKILL.md +166 -220
  88. package/.cursor/skills/bug-detective/SKILL.md +225 -186
  89. package/.cursor/skills/code-patterns/SKILL.md +127 -244
  90. package/.cursor/skills/collaborating-with-codex/SKILL.md +96 -113
  91. package/.cursor/skills/crud-development/SKILL.md +226 -307
  92. package/.cursor/skills/data-permission/SKILL.md +131 -202
  93. package/.cursor/skills/database-ops/SKILL.md +158 -355
  94. package/.cursor/skills/error-handler/SKILL.md +224 -285
  95. package/.cursor/skills/file-oss-management/SKILL.md +174 -169
  96. package/.cursor/skills/git-workflow/SKILL.md +123 -341
  97. package/.cursor/skills/json-serialization/SKILL.md +121 -137
  98. package/.cursor/skills/leniu-report-customization/SKILL.md +82 -2
  99. package/.cursor/skills/leniu-report-standard-customization/SKILL.md +65 -2
  100. package/.cursor/skills/loki-log-query/SKILL.md +400 -0
  101. package/.cursor/skills/loki-log-query/environments.json +45 -0
  102. package/.cursor/skills/mysql-debug/SKILL.md +58 -22
  103. package/.cursor/skills/performance-doctor/SKILL.md +83 -89
  104. package/.cursor/skills/redis-cache/SKILL.md +134 -185
  105. package/.cursor/skills/scheduled-jobs/SKILL.md +187 -224
  106. package/.cursor/skills/security-guard/SKILL.md +168 -276
  107. package/.cursor/skills/skill-creator/LICENSE.txt +202 -0
  108. package/.cursor/skills/skill-creator/SKILL.md +479 -0
  109. package/.cursor/skills/skill-creator/agents/analyzer.md +274 -0
  110. package/.cursor/skills/skill-creator/agents/comparator.md +202 -0
  111. package/.cursor/skills/skill-creator/agents/grader.md +223 -0
  112. package/.cursor/skills/skill-creator/assets/eval_review.html +146 -0
  113. package/.cursor/skills/skill-creator/eval-viewer/generate_review.py +471 -0
  114. package/.cursor/skills/skill-creator/eval-viewer/viewer.html +1325 -0
  115. package/.cursor/skills/skill-creator/references/schemas.md +430 -0
  116. package/.cursor/skills/skill-creator/scripts/__init__.py +0 -0
  117. package/.cursor/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
  118. package/.cursor/skills/skill-creator/scripts/generate_report.py +326 -0
  119. package/.cursor/skills/skill-creator/scripts/improve_description.py +248 -0
  120. package/.cursor/skills/skill-creator/scripts/package_skill.py +136 -0
  121. package/.cursor/skills/skill-creator/scripts/quick_validate.py +103 -0
  122. package/.cursor/skills/skill-creator/scripts/run_eval.py +310 -0
  123. package/.cursor/skills/skill-creator/scripts/run_loop.py +332 -0
  124. package/.cursor/skills/skill-creator/scripts/utils.py +47 -0
  125. package/.cursor/skills/sms-mail/SKILL.md +266 -228
  126. package/.cursor/skills/social-login/SKILL.md +257 -195
  127. package/.cursor/skills/sync-back-merge/SKILL.md +66 -0
  128. package/.cursor/skills/tenant-management/SKILL.md +172 -188
  129. package/.cursor/skills/utils-toolkit/SKILL.md +214 -222
  130. package/.cursor/skills/websocket-sse/SKILL.md +251 -172
  131. package/.cursor/skills/workflow-engine/SKILL.md +178 -250
  132. package/.cursor/skills/yunxiao-task-management/SKILL.md +489 -0
  133. package/AGENTS.md +49 -540
  134. package/CLAUDE.md +73 -119
  135. package/README.md +37 -6
  136. package/bin/index.js +611 -25
  137. package/package.json +1 -1
  138. package/src/platform-map.json +4 -0
  139. package/src/skills/api-development/SKILL.md +179 -130
  140. package/src/skills/architecture-design/SKILL.md +102 -212
  141. package/src/skills/backend-annotations/SKILL.md +166 -220
  142. package/src/skills/bug-detective/SKILL.md +225 -186
  143. package/src/skills/code-patterns/SKILL.md +127 -244
  144. package/src/skills/codex-code-review/SKILL.md +261 -69
  145. package/src/skills/collaborating-with-codex/SKILL.md +96 -113
  146. package/src/skills/crud-development/SKILL.md +226 -307
  147. package/src/skills/data-permission/SKILL.md +131 -202
  148. package/src/skills/database-ops/SKILL.md +158 -355
  149. package/src/skills/error-handler/SKILL.md +224 -285
  150. package/src/skills/file-oss-management/SKILL.md +174 -169
  151. package/src/skills/git-workflow/SKILL.md +123 -341
  152. package/src/skills/json-serialization/SKILL.md +121 -137
  153. package/src/skills/leniu-report-customization/SKILL.md +82 -2
  154. package/src/skills/leniu-report-standard-customization/SKILL.md +65 -2
  155. package/src/skills/loki-log-query/SKILL.md +400 -0
  156. package/src/skills/loki-log-query/environments.json +45 -0
  157. package/src/skills/mysql-debug/SKILL.md +58 -22
  158. package/src/skills/performance-doctor/SKILL.md +83 -89
  159. package/src/skills/redis-cache/SKILL.md +134 -185
  160. package/src/skills/scheduled-jobs/SKILL.md +187 -224
  161. package/src/skills/security-guard/SKILL.md +168 -276
  162. package/src/skills/skill-creator/LICENSE.txt +202 -0
  163. package/src/skills/skill-creator/SKILL.md +479 -0
  164. package/src/skills/skill-creator/agents/analyzer.md +274 -0
  165. package/src/skills/skill-creator/agents/comparator.md +202 -0
  166. package/src/skills/skill-creator/agents/grader.md +223 -0
  167. package/src/skills/skill-creator/assets/eval_review.html +146 -0
  168. package/src/skills/skill-creator/eval-viewer/generate_review.py +471 -0
  169. package/src/skills/skill-creator/eval-viewer/viewer.html +1325 -0
  170. package/src/skills/skill-creator/references/schemas.md +430 -0
  171. package/src/skills/skill-creator/scripts/__init__.py +0 -0
  172. package/src/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
  173. package/src/skills/skill-creator/scripts/generate_report.py +326 -0
  174. package/src/skills/skill-creator/scripts/improve_description.py +248 -0
  175. package/src/skills/skill-creator/scripts/package_skill.py +136 -0
  176. package/src/skills/skill-creator/scripts/quick_validate.py +103 -0
  177. package/src/skills/skill-creator/scripts/run_eval.py +310 -0
  178. package/src/skills/skill-creator/scripts/run_loop.py +332 -0
  179. package/src/skills/skill-creator/scripts/utils.py +47 -0
  180. package/src/skills/sms-mail/SKILL.md +266 -228
  181. package/src/skills/social-login/SKILL.md +257 -195
  182. package/src/skills/sync-back-merge/SKILL.md +66 -0
  183. package/src/skills/tenant-management/SKILL.md +172 -188
  184. package/src/skills/utils-toolkit/SKILL.md +214 -222
  185. package/src/skills/websocket-sse/SKILL.md +251 -172
  186. package/src/skills/workflow-engine/SKILL.md +178 -250
  187. package/src/skills/yunxiao-task-management/SKILL.md +489 -0
package/CLAUDE.md CHANGED
@@ -1,4 +1,7 @@
1
- # CLAUDE.md - leniu-tengyun-core 云食堂项目
1
+ # CLAUDE.md - [你的项目名称]
2
+
3
+ > **这是示例模板**。安装后请将 `[你的xxx]` 占位符替换为你的项目实际信息。
4
+ > 如果项目有专属技能(如 `leniu-*`),它们会覆盖同名通用技能的规范。
2
5
 
3
6
  ## Workflow Orchestration
4
7
 
@@ -63,30 +66,26 @@
63
66
 
64
67
  ## 术语约定
65
68
 
69
+ > 根据你的项目实际情况填写术语表。
70
+
66
71
  | 术语 | 含义 | 路径 |
67
72
  |------|------|------|
68
- | **后端** | Java 服务 | `leniu-tengyun-core/` |
69
- | **前端** | PC 管理端 | `/Users/xujiajun/Developer/frontProj/web`(Vue 2) |
70
- | **食堂模块** | 食堂业务 | `sys-canteen/` |
71
- | **后场模块** | 后场厨房 | `sys-kitchen/` |
72
- | **供应链模块** | 供应链 | `sys-drp/` |
73
- | **公共模块** | 基础公共 | `core-base/`、`sys-common/` |
73
+ | **后端** | Java 服务 | `[你的后端根目录]/` |
74
+ | **前端** | 管理端 | `[你的前端目录]/` |
75
+ | **模块A** | 核心业务 | `[你的模块A路径]/` |
76
+ | **模块B** | 辅助业务 | `[你的模块B路径]/` |
77
+ | **公共模块** | 基础公共 | `[你的公共模块路径]/` |
74
78
 
75
79
  ## 前端技术栈
76
80
 
81
+ > 根据你的项目前端技术栈填写。
82
+
77
83
  | 技术 | 版本 | 说明 |
78
84
  |------|------|------|
79
- | Vue | 2.7.16 | Options API |
80
- | Element UI | 2.15.9 | `el-` 前缀组件 |
81
- | Vuex | 3.4.0 | namespaced:true |
82
- | Vue Router | 3.2.0 | Hash 路由 |
83
- | vue-i18n | 7.3.2 | `$t('key')` |
84
-
85
- **前端关键机制**:Token=`Admin-Token`(localStorage)、租户=`MERCHANT-ID`(请求头)、成功码=`10000`、金额=分(`money()` 转元)、权限=`v-hasPerm`、加密=SM4
86
-
87
- **前端 src 结构**:`api/`(65个接口) | `leniuview/`(35个业务模块) | `leniu-components/`(业务组件) | `components/`(~87) | `store/`(30个模块)
88
-
89
- > **前端技能**:`ui-pc`(组件/API/权限)、`store-pc`(Vuex)
85
+ | [框架] | [版本] | [API 风格] |
86
+ | [UI 库] | [版本] | [组件前缀] |
87
+ | [状态管理] | [版本] | [配置说明] |
88
+ | [路由] | [版本] | [路由模式] |
90
89
 
91
90
  ## MCP 工具触发
92
91
 
@@ -110,150 +109,105 @@
110
109
 
111
110
  ## 核心规范速查
112
111
 
112
+ > 根据你的项目规范填写。
113
+
113
114
  | 项目 | 规范 |
114
115
  |------|------|
115
- | **包名** | `net.xnzn.core.*` |
116
- | **JDK** | 21 |
117
- | **框架** | pigx-framework 3.4.7 + Spring Boot 3.x |
118
- | **架构** | Controller → Business → Service → Mapper |
119
- | **请求封装** | `LeRequest<T>` |
120
- | **分页** | `PageDTO` + `PageVO` + PageHelper |
121
- | **异常** | `LeException` |
122
- | **国际化** | `I18n.getMessage()` |
123
- | **对象转换** | `BeanUtil.copyProperties()`(Hutool) |
124
- | **权限** | `@RequiresAuthentication` |
125
- | **ID** | `Id.next()`(雪花ID) |
126
- | **验证** | `jakarta.validation.*`(JDK 21) |
127
-
128
- ## 双库架构
129
-
130
- 物理分离双库,**无 tenant_id 字段**:
131
-
132
- | 库 | 说明 | 切换方式 |
133
- |----|------|---------|
134
- | 系统库 | 全局数据(商户配置、字典) | `Executors.doInSystem()` |
135
- | 商户库 | 租户业务数据(订单、菜品) | 默认(请求头 `MERCHANT-ID`) |
116
+ | **包名** | `[你的包名]` |
117
+ | **JDK** | [版本] |
118
+ | **框架** | [框架名称 + 版本] |
119
+ | **架构** | [你的分层架构] |
120
+ | **异常** | `[你的业务异常类]` |
121
+ | **对象转换** | `[你的对象转换工具]` |
122
+ | **权限** | `[你的权限注解]` |
123
+ | **ID 生成** | `[你的ID生成策略]` |
124
+ | **验证** | `jakarta.validation.*` |
136
125
 
137
- ```java
138
- Executors.doInTenant(tenantId, () -> { /* 商户库 */ });
139
- Executors.doInSystem(() -> { /* 系统库 */ });
140
- Executors.doInAllTenant(tenantId -> { /* 遍历所有租户 */ });
141
- ```
126
+ ## 分层架构说明
142
127
 
143
- ## 四层架构说明
128
+ > 根据你的项目选择三层或四层架构。
144
129
 
145
130
  | 层 | 职责 | 命名示例 |
146
131
  |----|------|---------|
147
- | Controller | 接收请求、参数校验、路由 | `OrderInfoWebController` |
148
- | **Business** | 业务编排、跨 Service 协调 | `OrderWebBusiness` |
149
- | Service | 单表 CRUD、事务 | `OrderInfoService` |
150
- | Mapper | ORM 映射(含 XML 同目录) | `OrderInfoMapper` |
151
-
152
- > Business 层是本项目核心特色,复杂逻辑在此处编排。
132
+ | Controller | 接收请求、参数校验、路由 | `OrderController` |
133
+ | Service | 业务逻辑、事务管理 | `OrderService` |
134
+ | Mapper | ORM 映射 | `OrderMapper` |
153
135
 
154
136
  ## 标准包结构
155
137
 
156
138
  ```
157
- net.xnzn.core.[module]/
158
- ├── controller/ # 按端分:web/mobile/android
159
- ├── business/impl/ # 业务编排
139
+ [你的包名].[module]/
140
+ ├── controller/ # 接口层
160
141
  ├── service/impl/ # 服务层
161
- ├── mapper/ # Mapper + XML(同目录!)
142
+ ├── mapper/ # 数据访问层
162
143
  ├── model/ # Entity
163
144
  ├── vo/ # 响应对象
164
145
  ├── dto/ # 请求参数
165
146
  ├── constants/ # 枚举和常量
166
- ├── mq/ # 消息队列
167
- └── task/ # 定时任务
147
+ └── config/ # 配置类
168
148
  ```
169
149
 
170
- > **XML 与 Mapper 同目录**(非 `resources/mapper/`),需在 pom.xml 配置资源过滤。
171
-
172
- ## 多端 Controller 路由
173
-
174
- | 端 | 路由前缀 |
175
- |----|---------|
176
- | Web 管理端 | `/api/v2/web/{module}` |
177
- | 移动端 | `/api/v2/mobile/{module}` |
178
- | 设备端 | `/api/v2/android/{module}` |
179
- | 开放接口 | `/api/v2/open/{module}` |
180
-
181
150
  ## Entity 审计字段
182
151
 
183
- | leniu 字段 | 含义 | 填充时机 |
184
- |-----------|------|---------|
185
- | `crby` | 创建人 | INSERT |
186
- | `crtime` | 创建时间 | INSERT |
187
- | `upby` | 更新人 | INSERT_UPDATE |
188
- | `uptime` | 更新时间 | INSERT_UPDATE |
189
- | `delFlag` | **1=删除,2=正常** | 手动 |
152
+ > 根据你的项目审计字段命名填写。
153
+
154
+ | 字段 | 含义 | 填充时机 |
155
+ |------|------|---------|
156
+ | `create_by` | 创建人 | INSERT |
157
+ | `create_time` | 创建时间 | INSERT |
158
+ | `update_by` | 更新人 | INSERT_UPDATE |
159
+ | `update_time` | 更新时间 | INSERT_UPDATE |
160
+ | `deleted` | 逻辑删除(0=正常,1=删除) | 手动 |
190
161
 
191
162
  ## 工具类速查
192
163
 
164
+ > 根据你的项目使用的工具类填写。
165
+
193
166
  | 工具 | 用途 |
194
167
  |------|------|
195
- | `BeanUtil.copyProperties()` | 对象转换 |
196
- | `CollUtil.isEmpty()` | 集合判空 |
197
- | `ObjectUtil.isNull()` | 对象判空 |
198
- | `StrUtil.isBlank()` | 字符串判空 |
199
- | `Id.next()` | 雪花ID |
200
- | `LeException` | 业务异常 |
201
- | `I18n.getMessage()` | 国际化 |
202
- | `TenantContextHolder.getTenantId()` | 租户上下文 |
203
- | `PageMethod.startPage()` | 分页拦截 |
168
+ | `[对象转换工具]` | 对象转换 |
169
+ | `[集合工具]` | 集合判空/操作 |
170
+ | `[字符串工具]` | 字符串处理 |
171
+ | `[业务异常类]` | 抛出业务异常 |
172
+ | `[分页工具]` | 分页查询 |
204
173
 
205
174
  ## 绝对禁止
206
175
 
207
176
  ```java
208
- // ❌ 错误包名
209
- package org.dromara.xxx; // 必须 net.xnzn.core.xxx
210
-
211
- // ❌ 旧验证包(JDK 21 必须用 jakarta)
177
+ // ❌ 旧验证包(JDK 17+ 必须用 jakarta)
212
178
  import javax.validation.constraints.*;
179
+ // ✅ 使用 jakarta
180
+ import jakarta.validation.constraints.*;
213
181
 
214
- // ❌ RuoYi 工具类
215
- MapstructUtils.convert(); // BeanUtil.copyProperties()
216
- throw new ServiceException("msg"); // throw new LeException("msg")
182
+ // ❌ Map 传递业务数据
183
+ Map<String, Object> result = new HashMap<>();
184
+ // 使用 VO/DTO
185
+ return new OrderVO(order);
217
186
 
218
- // ❌ 错误审计字段名
219
- private String createBy; // 必须 crby
220
- private LocalDateTime createTime; // 必须 crtime
187
+ // ❌ 在 Controller 直接操作数据库
188
+ // 通过 Service
221
189
 
222
- // ❌ Entity 加 tenant_id(双库物理隔离,不需要)
223
-
224
- // del_flag: 0=正常(leniu 是 2=正常)
225
-
226
- // ❌ Map 传递业务数据(必须用 VO/DTO)
190
+ // ❌ 硬编码配置值
191
+ String url = "http://localhost:8080";
192
+ // 使用配置文件
193
+ @Value("${app.url}") String url;
227
194
  ```
228
195
 
229
196
  ## 数据库规范
230
197
 
231
198
  ```sql
232
- CREATE TABLE xxx (
233
- id BIGINT NOT NULL COMMENT '主键(雪花ID)',
199
+ CREATE TABLE [表名] (
200
+ id BIGINT NOT NULL COMMENT '主键',
234
201
  -- 业务字段...
235
- crby VARCHAR(64) COMMENT '创建人',
236
- crtime DATETIME COMMENT '创建时间',
237
- upby VARCHAR(64) COMMENT '更新人',
238
- uptime DATETIME COMMENT '更新时间',
239
- del_flag INT DEFAULT 2 COMMENT '删除标识(1-删除,2-正常)',
202
+ create_by VARCHAR(64) COMMENT '创建人',
203
+ create_time DATETIME COMMENT '创建时间',
204
+ update_by VARCHAR(64) COMMENT '更新人',
205
+ update_time DATETIME COMMENT '更新时间',
206
+ deleted INT DEFAULT 0 COMMENT '逻辑删除(0-正常,1-删除)',
240
207
  PRIMARY KEY (id)
241
208
  );
242
- -- ⚠️ 无需 tenant_id(双库物理隔离)
243
209
  ```
244
210
 
245
- ## 参考代码位置
246
-
247
- | 类型 | 路径 |
248
- |------|------|
249
- | 订单 Controller | `sys-canteen/.../order/web/controller/OrderInfoWebController.java` |
250
- | 订单 Business | `sys-canteen/.../order/web/business/impl/OrderWebBusiness.java` |
251
- | 订单 Service | `sys-canteen/.../order/common/service/impl/OrderInfoService.java` |
252
- | 订单 Entity | `sys-canteen/.../order/common/model/OrderInfo.java` |
253
- | 订单枚举 | `sys-canteen/.../order/common/constants/OrderStateEnum.java` |
254
- | 排班 Controller | `sys-kitchen/.../attendance/scheduling/controller/BackAttendanceWorkShiftController.java` |
255
- | Bootstrap 配置 | `core-base/src/main/resources/bootstrap.yml` |
256
-
257
211
  ## 快速命令
258
212
 
259
213
  | 命令 | 用途 |
package/README.md CHANGED
@@ -31,28 +31,59 @@ npx ai-engineering-init --tool all # 全部
31
31
 
32
32
  > 所有命令均支持 `--tool <claude|cursor|codex|all>` 指定工具。运行 `--help` 查看全部选项。
33
33
 
34
+ ## 3 分钟上手
35
+
36
+ ```bash
37
+ # 第一步:安装
38
+ npx ai-engineering-init --tool claude
39
+
40
+ # 第二步:修改配置(⚠️ 必做!)
41
+ # CLAUDE.md 和 AGENTS.md 是示例模板,包含 [你的xxx] 占位符
42
+ # 把它们替换为你的项目实际信息(包名、技术栈、架构规范等)
43
+
44
+ # 第三步:验证
45
+ # 在 Claude Code 中输入 /start,AI 会扫描并介绍你的项目
46
+ ```
47
+
48
+ **核心命令**(第一天用这 3 个就够了):
49
+
50
+ | 命令 | 作用 |
51
+ |------|------|
52
+ | `/start` | AI 扫描项目,给出概览 |
53
+ | `/dev` | 从需求到代码的完整开发流程 |
54
+ | `/check` | 检查代码是否符合规范 |
55
+
56
+ **更多命令**:`/crud`(生成增删改查)、`/progress`(项目进度)、`/sync`(代码状态同步)
57
+
58
+ > **包含内容**:88 个 Skills 技能 + 10 个快捷命令 + 自动化 Hooks。详见 [参考文档](./docs/reference.md)。
59
+
34
60
  ## 初始化后使用
35
61
 
36
62
  ### Claude Code
37
63
 
38
- 1. 按需修改 `CLAUDE.md` 中的项目信息
39
- 2. 输入 `/start` 快速了解项目,`/dev` 开发新功能,`/crud` 生成 CRUD,`/check` 检查规范
64
+ 1. **必做**:修改 `CLAUDE.md` — 将 `[你的xxx]` 占位符替换为项目实际信息
65
+ 2. 输入 `/start` 验证 AI 是否正确理解你的项目
66
+ 3. MCP 工具已自动配置(`sequential-thinking`、`context7`),无需额外设置
40
67
 
41
68
  ### Cursor
42
69
 
43
- 1. Chat 中输入 `/` 查看可用 Skills,或 `@技能名` 手动调用
44
- 2. 在 Settings MCP 中确认 MCP 服务器已连接
70
+ 1. **必做**:检查 `.cursor/mcp.json` 中的 MCP 服务器配置
71
+ 2. 在 Chat 中输入 `/` 查看可用 Skills,或 `@技能名` 手动调用
72
+ 3. 在 Settings → MCP 中确认 MCP 服务器已连接
45
73
 
46
74
  ### OpenAI Codex
47
75
 
48
- 1. 按需修改 `AGENTS.md`,使用 `.codex/skills/` 下的技能辅助开发
76
+ 1. **必做**:修改 `AGENTS.md` 将模板内容替换为你的项目规范
77
+ 2. 使用 `.codex/skills/` 下的技能辅助开发
49
78
 
50
79
  ## 更多信息
51
80
 
52
- [参考文档](./docs/reference.md) — Skills 列表(69个)、包含内容、命令详情、其他安装方式、全部选项
81
+ [参考文档](./docs/reference.md) — Skills 列表、包含内容、命令详情、其他安装方式、全部选项
53
82
 
54
83
  [更新日志](./CHANGELOG.md) — 完整版本变更记录
55
84
 
85
+ [贡献指南](./CONTRIBUTING.md) — 如何维护和更新 Skills,团队协作工作流
86
+
56
87
  ## License
57
88
 
58
89
  MIT