ai-engineering-init 1.4.1 → 1.4.3
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.
- package/.claude/skills/bug-detective/SKILL.md +19 -19
- package/.claude/skills/leniu-java-export/SKILL.md +389 -95
- package/.claude/skills/project-navigator/SKILL.md +164 -258
- package/.codex/skills/bug-detective/SKILL.md +19 -19
- package/.codex/skills/leniu-java-export/SKILL.md +389 -95
- package/.codex/skills/project-navigator/SKILL.md +164 -258
- package/.cursor/skills/leniu-java-export/SKILL.md +389 -95
- package/.cursor/skills/project-navigator/SKILL.md +20 -20
- package/CLAUDE.md +58 -0
- package/package.json +1 -1
|
@@ -10,6 +10,8 @@ description: |
|
|
|
10
10
|
- 日志文件分析(./logs/sys-console.log)
|
|
11
11
|
- 前端页面不显示、API 调用异常
|
|
12
12
|
|
|
13
|
+
联动技能:数据问题自动联动 mysql-debug 查库验证
|
|
14
|
+
|
|
13
15
|
触发词:Bug、报错、异常、不工作、500错误、NullPointerException、SQLException、数据查不到、日志分析、排查、调试、debug、错误排查、精度丢失
|
|
14
16
|
---
|
|
15
17
|
|
|
@@ -204,31 +206,28 @@ XxxVO vo = BeanUtil.copyProperties(entity, XxxVO.class); // 源对象为 null
|
|
|
204
206
|
|
|
205
207
|
---
|
|
206
208
|
|
|
207
|
-
##
|
|
209
|
+
## 数据库排查(委托 mysql-debug)
|
|
208
210
|
|
|
209
|
-
|
|
211
|
+
当诊断结果指向数据问题时,**必须联动 `mysql-debug` 技能**进行数据库查询验证:
|
|
210
212
|
|
|
211
213
|
```
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
214
|
+
诊断决策树判定"数据相关问题"
|
|
215
|
+
↓
|
|
216
|
+
自动激活 mysql-debug 技能
|
|
217
|
+
↓
|
|
218
|
+
mysql-debug 执行:配置检查 → 日志提取数据库名 → 执行只读 SQL → 返回结果
|
|
219
|
+
↓
|
|
220
|
+
bug-detective 结合查询结果给出修复方案
|
|
215
221
|
```
|
|
216
222
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
-- 最近数据
|
|
224
|
-
SELECT * FROM 表名 ORDER BY crtime DESC LIMIT 10;
|
|
223
|
+
**触发 mysql-debug 的信号**:
|
|
224
|
+
- 查询返回空/数据不存在
|
|
225
|
+
- 数据数量、金额、状态不对
|
|
226
|
+
- SQL 异常(DataIntegrityViolation、DuplicateKey)
|
|
227
|
+
- 关联数据不一致
|
|
228
|
+
- 特定租户才出现的问题
|
|
225
229
|
|
|
226
|
-
|
|
227
|
-
DESC 表名;
|
|
228
|
-
|
|
229
|
-
-- 执行计划
|
|
230
|
-
EXPLAIN SELECT ...;
|
|
231
|
-
```
|
|
230
|
+
> 如果 mysql-debug 配置未就绪(密码未设置/mysql CLI 未安装),仍可继续纯代码分析路径。
|
|
232
231
|
|
|
233
232
|
---
|
|
234
233
|
|
|
@@ -250,6 +249,7 @@ EXPLAIN SELECT ...;
|
|
|
250
249
|
|
|
251
250
|
| 排查发现 | 推荐 Skill |
|
|
252
251
|
|---------|-----------|
|
|
252
|
+
| 数据问题(查不到/不一致/状态异常) | `mysql-debug`(自动联动) |
|
|
253
253
|
| SQL 性能慢 | `performance-doctor` |
|
|
254
254
|
| 权限配置问题 | `security-guard` |
|
|
255
255
|
| BO/VO 映射错误 | `leniu-crud-development` |
|