ai-engineering-init 1.1.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.
- package/.claude/agents/code-reviewer.md +139 -0
- package/.claude/agents/project-manager.md +159 -0
- package/.claude/audio/completed.wav +0 -0
- package/.claude/commands/add-todo.md +255 -0
- package/.claude/commands/check.md +210 -0
- package/.claude/commands/crud.md +454 -0
- package/.claude/commands/dev.md +503 -0
- package/.claude/commands/init-docs.md +681 -0
- package/.claude/commands/next.md +251 -0
- package/.claude/commands/progress.md +242 -0
- package/.claude/commands/start.md +199 -0
- package/.claude/commands/sync.md +307 -0
- package/.claude/commands/update-status.md +428 -0
- package/.claude/docs/Mixin/344/275/277/347/224/250/346/214/207/345/215/227.md +299 -0
- package/.claude/docs/README.md +167 -0
- package/.claude/docs//345/211/215/347/253/257/345/274/200/345/217/221/346/214/207/345/215/227.md +599 -0
- package/.claude/docs//345/220/216/347/253/257/345/274/200/345/217/221/346/214/207/345/215/227.md +726 -0
- package/.claude/docs//345/267/245/344/275/234/346/265/201/345/274/200/345/217/221/346/214/207/345/215/227.md +714 -0
- package/.claude/docs//345/267/245/345/205/267/347/261/273/344/275/277/347/224/250/346/214/207/345/215/227.md +463 -0
- package/.claude/docs//346/225/260/346/215/256/345/272/223/350/256/276/350/256/241/350/247/204/350/214/203.md +390 -0
- package/.claude/docs//346/226/260/345/212/237/350/203/275/345/274/200/345/217/221/346/265/201/347/250/213/350/247/204/350/214/203.md +688 -0
- package/.claude/docs//346/226/260/351/241/271/347/233/256/345/274/200/345/217/221/346/265/201/347/250/213.md +365 -0
- package/.claude/docs//346/241/206/346/236/266/350/257/264/346/230/216.md +393 -0
- package/.claude/docs//350/267/257/347/224/261/351/205/215/347/275/256/346/214/207/345/215/227.md +246 -0
- package/.claude/framework-config.json +73 -0
- package/.claude/hooks/pre-tool-use.js +117 -0
- package/.claude/hooks/skill-forced-eval.js +167 -0
- package/.claude/hooks/stop.js +58 -0
- package/.claude/settings.json +41 -0
- package/.claude/skills/add-skill/SKILL.md +352 -0
- package/.claude/skills/api-development/SKILL.md +560 -0
- package/.claude/skills/architecture-design/SKILL.md +756 -0
- package/.claude/skills/backend-annotations/SKILL.md +674 -0
- package/.claude/skills/banana-image/CHANGELOG.md +37 -0
- package/.claude/skills/banana-image/README.md +146 -0
- package/.claude/skills/banana-image/SKILL.md +164 -0
- package/.claude/skills/banana-image/assets/logo.png +0 -0
- package/.claude/skills/banana-image/references/advanced-usage.md +189 -0
- package/.claude/skills/banana-image/scripts/apply_template.py +125 -0
- package/.claude/skills/banana-image/scripts/banana_image_exec.ts +412 -0
- package/.claude/skills/banana-image/scripts/batch_prep.py +82 -0
- package/.claude/skills/banana-image/scripts/package-lock.json +1437 -0
- package/.claude/skills/banana-image/scripts/package.json +18 -0
- package/.claude/skills/banana-image/scripts/requirements.txt +10 -0
- package/.claude/skills/banana-image/templates/poster.json +22 -0
- package/.claude/skills/banana-image/templates/product.json +17 -0
- package/.claude/skills/banana-image/templates/social.json +22 -0
- package/.claude/skills/banana-image/templates/thumbnail.json +17 -0
- package/.claude/skills/brainstorm/SKILL.md +648 -0
- package/.claude/skills/bug-detective/SKILL.md +1206 -0
- package/.claude/skills/code-patterns/SKILL.md +590 -0
- package/.claude/skills/collaborating-with-codex/SKILL.md +174 -0
- package/.claude/skills/collaborating-with-codex/scripts/codex_bridge.py +275 -0
- package/.claude/skills/collaborating-with-gemini/SKILL.md +194 -0
- package/.claude/skills/collaborating-with-gemini/scripts/gemini_bridge.py +275 -0
- package/.claude/skills/crud-development/SKILL.md +649 -0
- package/.claude/skills/data-permission/SKILL.md +599 -0
- package/.claude/skills/database-ops/SKILL.md +407 -0
- package/.claude/skills/error-handler/SKILL.md +371 -0
- package/.claude/skills/file-oss-management/SKILL.md +863 -0
- package/.claude/skills/git-workflow/SKILL.md +375 -0
- package/.claude/skills/json-serialization/SKILL.md +357 -0
- package/.claude/skills/leniu-api-development/SKILL.md +803 -0
- package/.claude/skills/leniu-architecture-design/SKILL.md +598 -0
- package/.claude/skills/leniu-backend-annotations/SKILL.md +664 -0
- package/.claude/skills/leniu-code-patterns/SKILL.md +365 -0
- package/.claude/skills/leniu-crud-development/SKILL.md +1110 -0
- package/.claude/skills/leniu-data-permission/SKILL.md +256 -0
- package/.claude/skills/leniu-database-ops/SKILL.md +426 -0
- package/.claude/skills/leniu-error-handler/SKILL.md +462 -0
- package/.claude/skills/leniu-java-amount-handling/SKILL.md +461 -0
- package/.claude/skills/leniu-java-code-style/SKILL.md +510 -0
- package/.claude/skills/leniu-java-concurrent/SKILL.md +400 -0
- package/.claude/skills/leniu-java-entity/SKILL.md +751 -0
- package/.claude/skills/leniu-java-export/SKILL.md +560 -0
- package/.claude/skills/leniu-java-logging/SKILL.md +832 -0
- package/.claude/skills/leniu-java-mq/SKILL.md +338 -0
- package/.claude/skills/leniu-java-mybatis/SKILL.md +640 -0
- package/.claude/skills/leniu-java-report-query-param/SKILL.md +291 -0
- package/.claude/skills/leniu-java-task/SKILL.md +367 -0
- package/.claude/skills/leniu-java-total-line/SKILL.md +195 -0
- package/.claude/skills/leniu-marketing-price-rule-customizer/SKILL.md +301 -0
- package/.claude/skills/leniu-marketing-recharge-rule-customizer/SKILL.md +285 -0
- package/.claude/skills/leniu-mealtime/SKILL.md +215 -0
- package/.claude/skills/leniu-redis-cache/SKILL.md +316 -0
- package/.claude/skills/leniu-security-guard/SKILL.md +520 -0
- package/.claude/skills/leniu-utils-toolkit/SKILL.md +380 -0
- package/.claude/skills/openspec-apply-change/SKILL.md +156 -0
- package/.claude/skills/openspec-archive-change/SKILL.md +114 -0
- package/.claude/skills/openspec-bulk-archive-change/SKILL.md +246 -0
- package/.claude/skills/openspec-continue-change/SKILL.md +118 -0
- package/.claude/skills/openspec-explore/SKILL.md +290 -0
- package/.claude/skills/openspec-ff-change/SKILL.md +101 -0
- package/.claude/skills/openspec-new-change/SKILL.md +74 -0
- package/.claude/skills/openspec-onboard/SKILL.md +529 -0
- package/.claude/skills/openspec-sync-specs/SKILL.md +138 -0
- package/.claude/skills/openspec-verify-change/SKILL.md +168 -0
- package/.claude/skills/performance-doctor/SKILL.md +627 -0
- package/.claude/skills/project-navigator/SKILL.md +305 -0
- package/.claude/skills/redis-cache/SKILL.md +839 -0
- package/.claude/skills/scheduled-jobs/SKILL.md +633 -0
- package/.claude/skills/security-guard/SKILL.md +748 -0
- package/.claude/skills/sms-mail/SKILL.md +766 -0
- package/.claude/skills/social-login/SKILL.md +668 -0
- package/.claude/skills/store-pc/SKILL.md +366 -0
- package/.claude/skills/task-tracker/SKILL.md +307 -0
- package/.claude/skills/tech-decision/SKILL.md +393 -0
- package/.claude/skills/tenant-management/SKILL.md +603 -0
- package/.claude/skills/test-development/SKILL.md +755 -0
- package/.claude/skills/ui-pc/SKILL.md +438 -0
- package/.claude/skills/utils-toolkit/SKILL.md +615 -0
- package/.claude/skills/websocket-sse/SKILL.md +716 -0
- package/.claude/skills/workflow-engine/SKILL.md +676 -0
- package/.claude/templates//345/276/205/345/212/236/346/270/205/345/215/225/346/250/241/346/235/277.md +56 -0
- package/.claude/templates//351/234/200/346/261/202/346/226/207/346/241/243/346/250/241/346/235/277.md +85 -0
- package/.claude/templates//351/241/271/347/233/256/347/212/266/346/200/201/346/250/241/346/235/277.md +43 -0
- package/.codex/skills/add-skill/SKILL.md +352 -0
- package/.codex/skills/add-todo/SKILL.md +269 -0
- package/.codex/skills/api-development/SKILL.md +693 -0
- package/.codex/skills/architecture-design/SKILL.md +628 -0
- package/.codex/skills/backend-annotations/SKILL.md +664 -0
- package/.codex/skills/banana-image/CHANGELOG.md +37 -0
- package/.codex/skills/banana-image/README.md +146 -0
- package/.codex/skills/banana-image/SKILL.md +164 -0
- package/.codex/skills/banana-image/assets/logo.png +0 -0
- package/.codex/skills/banana-image/references/advanced-usage.md +189 -0
- package/.codex/skills/banana-image/scripts/apply_template.py +125 -0
- package/.codex/skills/banana-image/scripts/banana_image_exec.ts +412 -0
- package/.codex/skills/banana-image/scripts/batch_prep.py +82 -0
- package/.codex/skills/banana-image/scripts/package-lock.json +1437 -0
- package/.codex/skills/banana-image/scripts/package.json +18 -0
- package/.codex/skills/banana-image/scripts/requirements.txt +10 -0
- package/.codex/skills/banana-image/templates/poster.json +22 -0
- package/.codex/skills/banana-image/templates/product.json +17 -0
- package/.codex/skills/banana-image/templates/social.json +22 -0
- package/.codex/skills/banana-image/templates/thumbnail.json +17 -0
- package/.codex/skills/brainstorm/SKILL.md +648 -0
- package/.codex/skills/bug-detective/SKILL.md +1206 -0
- package/.codex/skills/check/SKILL.md +367 -0
- package/.codex/skills/code-patterns/SKILL.md +442 -0
- package/.codex/skills/collaborating-with-codex/SKILL.md +174 -0
- package/.codex/skills/collaborating-with-codex/scripts/codex_bridge.py +275 -0
- package/.codex/skills/collaborating-with-gemini/SKILL.md +194 -0
- package/.codex/skills/collaborating-with-gemini/scripts/gemini_bridge.py +275 -0
- package/.codex/skills/crud/SKILL.md +265 -0
- package/.codex/skills/crud-development/SKILL.md +637 -0
- package/.codex/skills/data-permission/SKILL.md +591 -0
- package/.codex/skills/database-ops/SKILL.md +553 -0
- package/.codex/skills/dev/SKILL.md +187 -0
- package/.codex/skills/error-handler/SKILL.md +361 -0
- package/.codex/skills/file-oss-management/SKILL.md +863 -0
- package/.codex/skills/git-workflow/SKILL.md +375 -0
- package/.codex/skills/init-docs/SKILL.md +194 -0
- package/.codex/skills/json-serialization/SKILL.md +357 -0
- package/.codex/skills/leniu-api-development/SKILL.md +803 -0
- package/.codex/skills/leniu-architecture-design/SKILL.md +594 -0
- package/.codex/skills/leniu-backend-annotations/SKILL.md +662 -0
- package/.codex/skills/leniu-code-patterns/SKILL.md +365 -0
- package/.codex/skills/leniu-crud-development/SKILL.md +1110 -0
- package/.codex/skills/leniu-data-permission/SKILL.md +256 -0
- package/.codex/skills/leniu-database-ops/SKILL.md +426 -0
- package/.codex/skills/leniu-error-handler/SKILL.md +462 -0
- package/.codex/skills/leniu-java-amount-handling/SKILL.md +461 -0
- package/.codex/skills/leniu-java-code-style/SKILL.md +510 -0
- package/.codex/skills/leniu-java-concurrent/SKILL.md +400 -0
- package/.codex/skills/leniu-java-entity/SKILL.md +751 -0
- package/.codex/skills/leniu-java-export/SKILL.md +560 -0
- package/.codex/skills/leniu-java-logging/SKILL.md +832 -0
- package/.codex/skills/leniu-java-mq/SKILL.md +338 -0
- package/.codex/skills/leniu-java-mybatis/SKILL.md +640 -0
- package/.codex/skills/leniu-java-report-query-param/SKILL.md +291 -0
- package/.codex/skills/leniu-java-task/SKILL.md +367 -0
- package/.codex/skills/leniu-java-total-line/SKILL.md +195 -0
- package/.codex/skills/leniu-marketing-price-rule-customizer/SKILL.md +301 -0
- package/.codex/skills/leniu-marketing-recharge-rule-customizer/SKILL.md +285 -0
- package/.codex/skills/leniu-mealtime/SKILL.md +215 -0
- package/.codex/skills/leniu-redis-cache/SKILL.md +316 -0
- package/.codex/skills/leniu-security-guard/SKILL.md +520 -0
- package/.codex/skills/leniu-utils-toolkit/SKILL.md +378 -0
- package/.codex/skills/next/SKILL.md +137 -0
- package/.codex/skills/openspec-apply-change/SKILL.md +156 -0
- package/.codex/skills/openspec-archive-change/SKILL.md +114 -0
- package/.codex/skills/openspec-bulk-archive-change/SKILL.md +246 -0
- package/.codex/skills/openspec-continue-change/SKILL.md +118 -0
- package/.codex/skills/openspec-explore/SKILL.md +290 -0
- package/.codex/skills/openspec-ff-change/SKILL.md +101 -0
- package/.codex/skills/openspec-new-change/SKILL.md +74 -0
- package/.codex/skills/openspec-onboard/SKILL.md +529 -0
- package/.codex/skills/openspec-sync-specs/SKILL.md +138 -0
- package/.codex/skills/openspec-verify-change/SKILL.md +168 -0
- package/.codex/skills/performance-doctor/SKILL.md +627 -0
- package/.codex/skills/progress/SKILL.md +193 -0
- package/.codex/skills/project-navigator/SKILL.md +286 -0
- package/.codex/skills/redis-cache/SKILL.md +829 -0
- package/.codex/skills/scheduled-jobs/SKILL.md +633 -0
- package/.codex/skills/security-guard/SKILL.md +739 -0
- package/.codex/skills/sms-mail/SKILL.md +766 -0
- package/.codex/skills/social-login/SKILL.md +668 -0
- package/.codex/skills/start/SKILL.md +154 -0
- package/.codex/skills/store-pc/SKILL.md +491 -0
- package/.codex/skills/sync/SKILL.md +149 -0
- package/.codex/skills/task-tracker/SKILL.md +307 -0
- package/.codex/skills/tech-decision/SKILL.md +393 -0
- package/.codex/skills/tenant-management/SKILL.md +603 -0
- package/.codex/skills/test-development/SKILL.md +755 -0
- package/.codex/skills/ui-pc/SKILL.md +475 -0
- package/.codex/skills/update-status/SKILL.md +159 -0
- package/.codex/skills/utils-toolkit/SKILL.md +593 -0
- package/.codex/skills/websocket-sse/SKILL.md +716 -0
- package/.codex/skills/workflow-engine/SKILL.md +676 -0
- package/.cursor/agents/code-reviewer.md +139 -0
- package/.cursor/agents/project-manager.md +159 -0
- package/.cursor/commands/opsx-apply.md +152 -0
- package/.cursor/commands/opsx-archive.md +157 -0
- package/.cursor/commands/opsx-bulk-archive.md +242 -0
- package/.cursor/commands/opsx-continue.md +114 -0
- package/.cursor/commands/opsx-explore.md +174 -0
- package/.cursor/commands/opsx-ff.md +94 -0
- package/.cursor/commands/opsx-new.md +69 -0
- package/.cursor/commands/opsx-onboard.md +525 -0
- package/.cursor/commands/opsx-sync.md +134 -0
- package/.cursor/commands/opsx-verify.md +164 -0
- package/.cursor/mcp.json +22 -0
- package/.cursor/skills/add-skill/SKILL.md +352 -0
- package/.cursor/skills/api-development/SKILL.md +560 -0
- package/.cursor/skills/architecture-design/SKILL.md +756 -0
- package/.cursor/skills/backend-annotations/SKILL.md +674 -0
- package/.cursor/skills/banana-image/CHANGELOG.md +37 -0
- package/.cursor/skills/banana-image/README.md +146 -0
- package/.cursor/skills/banana-image/SKILL.md +164 -0
- package/.cursor/skills/banana-image/assets/logo.png +0 -0
- package/.cursor/skills/banana-image/references/advanced-usage.md +189 -0
- package/.cursor/skills/banana-image/scripts/apply_template.py +125 -0
- package/.cursor/skills/banana-image/scripts/banana_image_exec.ts +412 -0
- package/.cursor/skills/banana-image/scripts/batch_prep.py +82 -0
- package/.cursor/skills/banana-image/scripts/package-lock.json +1437 -0
- package/.cursor/skills/banana-image/scripts/package.json +18 -0
- package/.cursor/skills/banana-image/scripts/requirements.txt +10 -0
- package/.cursor/skills/banana-image/templates/poster.json +22 -0
- package/.cursor/skills/banana-image/templates/product.json +17 -0
- package/.cursor/skills/banana-image/templates/social.json +22 -0
- package/.cursor/skills/banana-image/templates/thumbnail.json +17 -0
- package/.cursor/skills/brainstorm/SKILL.md +648 -0
- package/.cursor/skills/bug-detective/SKILL.md +1206 -0
- package/.cursor/skills/code-patterns/SKILL.md +590 -0
- package/.cursor/skills/collaborating-with-codex/SKILL.md +174 -0
- package/.cursor/skills/collaborating-with-codex/scripts/codex_bridge.py +275 -0
- package/.cursor/skills/collaborating-with-gemini/SKILL.md +194 -0
- package/.cursor/skills/collaborating-with-gemini/scripts/gemini_bridge.py +275 -0
- package/.cursor/skills/crud-development/SKILL.md +649 -0
- package/.cursor/skills/data-permission/SKILL.md +599 -0
- package/.cursor/skills/database-ops/SKILL.md +407 -0
- package/.cursor/skills/error-handler/SKILL.md +371 -0
- package/.cursor/skills/file-oss-management/SKILL.md +863 -0
- package/.cursor/skills/git-workflow/SKILL.md +375 -0
- package/.cursor/skills/json-serialization/SKILL.md +357 -0
- package/.cursor/skills/leniu-api-development/SKILL.md +803 -0
- package/.cursor/skills/leniu-architecture-design/SKILL.md +598 -0
- package/.cursor/skills/leniu-backend-annotations/SKILL.md +664 -0
- package/.cursor/skills/leniu-code-patterns/SKILL.md +365 -0
- package/.cursor/skills/leniu-crud-development/SKILL.md +1110 -0
- package/.cursor/skills/leniu-data-permission/SKILL.md +256 -0
- package/.cursor/skills/leniu-database-ops/SKILL.md +426 -0
- package/.cursor/skills/leniu-error-handler/SKILL.md +462 -0
- package/.cursor/skills/leniu-java-amount-handling/SKILL.md +461 -0
- package/.cursor/skills/leniu-java-code-style/SKILL.md +510 -0
- package/.cursor/skills/leniu-java-concurrent/SKILL.md +400 -0
- package/.cursor/skills/leniu-java-entity/SKILL.md +751 -0
- package/.cursor/skills/leniu-java-export/SKILL.md +560 -0
- package/.cursor/skills/leniu-java-logging/SKILL.md +832 -0
- package/.cursor/skills/leniu-java-mq/SKILL.md +338 -0
- package/.cursor/skills/leniu-java-mybatis/SKILL.md +640 -0
- package/.cursor/skills/leniu-java-report-query-param/SKILL.md +291 -0
- package/.cursor/skills/leniu-java-task/SKILL.md +367 -0
- package/.cursor/skills/leniu-java-total-line/SKILL.md +195 -0
- package/.cursor/skills/leniu-marketing-price-rule-customizer/SKILL.md +301 -0
- package/.cursor/skills/leniu-marketing-recharge-rule-customizer/SKILL.md +285 -0
- package/.cursor/skills/leniu-mealtime/SKILL.md +215 -0
- package/.cursor/skills/leniu-redis-cache/SKILL.md +316 -0
- package/.cursor/skills/leniu-security-guard/SKILL.md +520 -0
- package/.cursor/skills/leniu-utils-toolkit/SKILL.md +380 -0
- package/.cursor/skills/openspec-apply-change/SKILL.md +156 -0
- package/.cursor/skills/openspec-archive-change/SKILL.md +114 -0
- package/.cursor/skills/openspec-bulk-archive-change/SKILL.md +246 -0
- package/.cursor/skills/openspec-continue-change/SKILL.md +118 -0
- package/.cursor/skills/openspec-explore/SKILL.md +290 -0
- package/.cursor/skills/openspec-ff-change/SKILL.md +101 -0
- package/.cursor/skills/openspec-new-change/SKILL.md +74 -0
- package/.cursor/skills/openspec-onboard/SKILL.md +529 -0
- package/.cursor/skills/openspec-sync-specs/SKILL.md +138 -0
- package/.cursor/skills/openspec-verify-change/SKILL.md +168 -0
- package/.cursor/skills/performance-doctor/SKILL.md +627 -0
- package/.cursor/skills/project-navigator/SKILL.md +305 -0
- package/.cursor/skills/redis-cache/SKILL.md +839 -0
- package/.cursor/skills/scheduled-jobs/SKILL.md +633 -0
- package/.cursor/skills/security-guard/SKILL.md +748 -0
- package/.cursor/skills/sms-mail/SKILL.md +766 -0
- package/.cursor/skills/social-login/SKILL.md +668 -0
- package/.cursor/skills/store-pc/SKILL.md +366 -0
- package/.cursor/skills/task-tracker/SKILL.md +307 -0
- package/.cursor/skills/tech-decision/SKILL.md +393 -0
- package/.cursor/skills/tenant-management/SKILL.md +603 -0
- package/.cursor/skills/test-development/SKILL.md +755 -0
- package/.cursor/skills/ui-pc/SKILL.md +438 -0
- package/.cursor/skills/utils-toolkit/SKILL.md +615 -0
- package/.cursor/skills/websocket-sse/SKILL.md +716 -0
- package/.cursor/skills/workflow-engine/SKILL.md +676 -0
- package/AGENTS.md +669 -0
- package/CLAUDE.md +205 -0
- package/README.md +205 -0
- package/bin/index.js +179 -0
- package/init.sh +178 -0
- package/package.json +27 -0
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
# /sync - 项目代码状态同步
|
|
2
|
+
|
|
3
|
+
一键同步后端代码状态、生成项目文档、确保代码与文档数据一致。适合定期整理或发现数据不一致时使用。
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 适用场景
|
|
8
|
+
|
|
9
|
+
| 场景 | 说明 |
|
|
10
|
+
|------|------|
|
|
11
|
+
| **定期整理** | 每周末整理项目代码状态和文档 |
|
|
12
|
+
| **数据不一致** | 手动修改过代码或文档后需要重新同步 |
|
|
13
|
+
| **项目交接** | 新成员加入或项目交接时全量检查 |
|
|
14
|
+
| **构建报告** | 生成完整的项目状态报告供管理者查看 |
|
|
15
|
+
| **代码审查** | 代码审查前同步确保信息完整准确 |
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 执行流程
|
|
20
|
+
|
|
21
|
+
### 第一步:扫描后端代码状态(强制执行)
|
|
22
|
+
|
|
23
|
+
#### 1.1 扫描业务模块和功能完整性
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# 查找核心业务模块的 Controller
|
|
27
|
+
Glob pattern: "sys-canteen/src/main/java/**/controller/*Controller.java"
|
|
28
|
+
Glob pattern: "sys-kitchen/src/main/java/**/controller/*Controller.java"
|
|
29
|
+
Glob pattern: "sys-drp/src/main/java/**/controller/*Controller.java"
|
|
30
|
+
Glob pattern: "sys-common/src/main/java/**/controller/*Controller.java"
|
|
31
|
+
|
|
32
|
+
# 基础设施模块(不统计):core-base、core-aggregator、sys-open、sys-logistics
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
对每个功能检查 **8 个必需的文件**(leniu 四层架构):
|
|
36
|
+
|
|
37
|
+
| 类型 | 文件 | 完整路径 | 必须 |
|
|
38
|
+
|------|------|---------|------|
|
|
39
|
+
| Entity | `XxxInfo.java` | `common/model/XxxInfo.java` | ✅ |
|
|
40
|
+
| DTO | `XxxInfoDTO.java` | `web/dto/XxxInfoDTO.java` | ✅ |
|
|
41
|
+
| VO | `XxxInfoVO.java` | `web/vo/XxxInfoVO.java` | ✅ |
|
|
42
|
+
| Mapper | `XxxInfoMapper.java` | `common/mapper/XxxInfoMapper.java` | ✅ |
|
|
43
|
+
| MapperXML | `XxxInfoMapper.xml` | `common/mapper/XxxInfoMapper.xml` | ✅ |
|
|
44
|
+
| Service | `XxxInfoService.java` | `common/service/impl/XxxInfoService.java` | ✅ |
|
|
45
|
+
| Business | `XxxWebBusiness.java` | `web/business/impl/XxxWebBusiness.java` | ✅ |
|
|
46
|
+
| Controller | `XxxWebController.java` | `web/controller/XxxWebController.java` | ✅ |
|
|
47
|
+
|
|
48
|
+
#### 1.2 扫描代码规范问题
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# 检查包名问题
|
|
52
|
+
Grep pattern: "package org\.dromara\.|package com\.ruoyi\." path: sys-canteen/,sys-kitchen/,sys-drp/ output_mode: files_with_matches
|
|
53
|
+
|
|
54
|
+
# 检查禁止使用的工具类
|
|
55
|
+
Grep pattern: "MapstructUtils|ServiceException" path: sys-canteen/,sys-kitchen/,sys-drp/ glob: "*.java" output_mode: files_with_matches
|
|
56
|
+
|
|
57
|
+
# 检查审计字段命名
|
|
58
|
+
Grep pattern: "private.*createBy|private.*updateBy|private.*createTime|private.*updateTime" path: sys-canteen/,sys-kitchen/,sys-drp/ glob: "*.java" output_mode: files_with_matches
|
|
59
|
+
|
|
60
|
+
# 检查 del_flag 错误值
|
|
61
|
+
Grep pattern: "delFlag.*=.*0\b|del_flag.*=.*0\b" path: sys-canteen/,sys-kitchen/,sys-drp/ glob: "*.java" output_mode: files_with_matches
|
|
62
|
+
|
|
63
|
+
# 检查权限注解
|
|
64
|
+
Grep pattern: "@RequiresAuthentication|@RequiresGuest" path: sys-canteen/,sys-kitchen/,sys-drp/ glob: "*Controller.java" output_mode: files_with_matches
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
#### 1.3 扫描 Git 提交记录
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
# 获取最近 30 条提交
|
|
71
|
+
git log -30 --oneline --format="%h %s %ad" --date=short
|
|
72
|
+
|
|
73
|
+
# 统计业务相关提交(feat/fix/update/add/refactor)
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
#### 1.4 扫描 TODO/FIXME 标记
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
# 扫描所有业务代码中的待办标记
|
|
80
|
+
Grep pattern: "TODO:|FIXME:|XXX:" path: sys-canteen/,sys-kitchen/,sys-drp/,sys-common/ glob: "*.java" output_mode: content -B 1
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
#### 1.5 生成代码扫描结果
|
|
84
|
+
|
|
85
|
+
**输出格式**:
|
|
86
|
+
```markdown
|
|
87
|
+
## 代码扫描结果
|
|
88
|
+
|
|
89
|
+
### 模块完整性分析
|
|
90
|
+
| 模块 | 功能数 | 完成数 | 完成率 | 状态 |
|
|
91
|
+
|------|--------|--------|--------|------|
|
|
92
|
+
| sys-canteen | X | X | XX% | [状态] |
|
|
93
|
+
| sys-kitchen | X | X | XX% | [状态] |
|
|
94
|
+
| sys-drp | X | X | XX% | [状态] |
|
|
95
|
+
| sys-common | X | X | XX% | [状态] |
|
|
96
|
+
|
|
97
|
+
### 代码规范检查
|
|
98
|
+
| 检查项 | 通过 | 警告 | 错误 |
|
|
99
|
+
|--------|------|------|------|
|
|
100
|
+
| 包名规范 (net.xnzn.core.*) | ✅ | 0 | 0 |
|
|
101
|
+
| 权限注解完整度 | ⚠️ | 2 | 0 |
|
|
102
|
+
| 审计字段规范 | ✅ | 0 | 0 |
|
|
103
|
+
| del_flag 值语义 | ✅ | 0 | 0 |
|
|
104
|
+
|
|
105
|
+
### 待办统计
|
|
106
|
+
- 🔥 FIXME (高): X 项
|
|
107
|
+
- 📌 TODO (中): X 项
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
### 第二步:分析 Git 提交历史
|
|
113
|
+
|
|
114
|
+
#### 2.1 最近提交分析
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
# 获取最近提交的功能信息
|
|
118
|
+
git log -5 --oneline
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
**分析内容**:
|
|
122
|
+
- 最近在做什么功能
|
|
123
|
+
- 是否有 FIXME/BUG 相关的提交
|
|
124
|
+
- 代码活跃度
|
|
125
|
+
|
|
126
|
+
#### 2.2 功能交付记录
|
|
127
|
+
|
|
128
|
+
根据 Git 提交历史:
|
|
129
|
+
- 标记代码中完成的功能
|
|
130
|
+
- 识别正在进行的功能
|
|
131
|
+
- 统计本周/本月完成功能数
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
### 第三步:整合检查结果
|
|
136
|
+
|
|
137
|
+
#### 3.1 与 `/check` 命令同步
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
# 如果最近没有运行过 /check,则执行全量检查
|
|
141
|
+
/check
|
|
142
|
+
|
|
143
|
+
# 提取检查结果中的:
|
|
144
|
+
# - 严重问题数量
|
|
145
|
+
# - 警告问题数量
|
|
146
|
+
# - 需要修复的问题清单
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
#### 3.2 与 `/progress` 命令同步
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
# 获取项目进度信息
|
|
153
|
+
/progress
|
|
154
|
+
|
|
155
|
+
# 提取数据:
|
|
156
|
+
# - 各模块完成率
|
|
157
|
+
# - 待完成功能列表
|
|
158
|
+
# - 代码质量评分
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
#### 3.3 生成综合分析
|
|
162
|
+
|
|
163
|
+
**输出信息**:
|
|
164
|
+
- 与上次同步相比的变化(新增/完成/修复)
|
|
165
|
+
- 阻塞项(高优先级 FIXME 未修复)
|
|
166
|
+
- 建议(基于 /next 的分析)
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
### 第四步:生成项目同步报告
|
|
171
|
+
|
|
172
|
+
```markdown
|
|
173
|
+
# 项目代码状态同步报告
|
|
174
|
+
|
|
175
|
+
**同步时间**:YYYY-MM-DD HH:mm
|
|
176
|
+
**上次同步**:YYYY-MM-DD(距今 X 天)
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## 最新进展
|
|
181
|
+
|
|
182
|
+
### Git 提交摘要
|
|
183
|
+
- **最新提交**:[commit message] ([hash])
|
|
184
|
+
- **最近 7 天**:X 次提交,涉及 X 个功能模块
|
|
185
|
+
- **提交活跃度**:[活跃/正常/低活跃]
|
|
186
|
+
|
|
187
|
+
### 代码完成度
|
|
188
|
+
| 模块 | 功能数 | 完成 | 进行中 | 待开发 | 完成率 |
|
|
189
|
+
|------|--------|------|--------|--------|---------|
|
|
190
|
+
| sys-canteen | X | X | X | X | XX% |
|
|
191
|
+
| sys-kitchen | X | X | X | X | XX% |
|
|
192
|
+
| sys-drp | X | X | X | X | XX% |
|
|
193
|
+
| sys-common | X | X | X | X | XX% |
|
|
194
|
+
| **合计** | **X** | **X** | **X** | **X** | **XX%** |
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## 紧急问题(必须立即处理)
|
|
199
|
+
|
|
200
|
+
### 高优先级 FIXME
|
|
201
|
+
| 文件 | 行号 | 问题 | 影响 |
|
|
202
|
+
|------|------|------|------|
|
|
203
|
+
| [文件名].java | [行号] | [问题描述] | [影响范围] |
|
|
204
|
+
|
|
205
|
+
**处理建议**:
|
|
206
|
+
/check [模块名] # 查看详细问题
|
|
207
|
+
/next # 获取修复建议
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## 代码规范检查结果
|
|
212
|
+
|
|
213
|
+
### 总体评分
|
|
214
|
+
| 维度 | 评分 | 说明 |
|
|
215
|
+
|------|------|------|
|
|
216
|
+
| 包名规范 | ✅ | 所有包名符合 net.xnzn.core.* 规范 |
|
|
217
|
+
| 权限注解 | ⚠️ | 3 个接口缺少 @RequiresAuthentication |
|
|
218
|
+
| 审计字段 | ✅ | 正确使用 crby/crtime/upby/uptime |
|
|
219
|
+
| del_flag 语义 | ✅ | 正确使用 2=正常,1=删除 |
|
|
220
|
+
| 对象转换 | ✅ | 正确使用 BeanUtil.copyProperties() |
|
|
221
|
+
| 请求封装 | ⚠️ | 2 处 POST 接口未使用 LeRequest<T> |
|
|
222
|
+
|
|
223
|
+
### 需要修复的问题
|
|
224
|
+
1. **权限注解缺失**(X 项)
|
|
225
|
+
- [Controller文件名].java
|
|
226
|
+
|
|
227
|
+
2. **LeRequest<T> 封装缺失**(X 项)
|
|
228
|
+
- [Controller文件名].java
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## 待办事项更新
|
|
233
|
+
|
|
234
|
+
### 新增待办(本次扫描发现)
|
|
235
|
+
- [ ] [FIXME 描述](高优先级)
|
|
236
|
+
- [ ] [TODO 描述](中优先级)
|
|
237
|
+
|
|
238
|
+
### 本周完成的待办
|
|
239
|
+
- [x] [已完成功能描述]
|
|
240
|
+
|
|
241
|
+
### 当前进行中
|
|
242
|
+
| 任务 | 优先级 | 进度 | 预计完成 |
|
|
243
|
+
|------|--------|------|---------|
|
|
244
|
+
| [任务描述] | [优先级] | XX% | [时间] |
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
248
|
+
## 与其他命令的协作
|
|
249
|
+
|
|
250
|
+
### 工作流建议
|
|
251
|
+
1. **日常开发** → `/update-status` 增量更新
|
|
252
|
+
2. **每周末** → `/sync` 全量同步,生成报告
|
|
253
|
+
3. **遇到问题** → `/check` 检查代码规范
|
|
254
|
+
4. **规划工作** → `/progress` 查看进度,`/next` 获取建议
|
|
255
|
+
5. **交接新人** → `/start` 快速了解,`/sync` 查看最新状态
|
|
256
|
+
|
|
257
|
+
### 命令关系图
|
|
258
|
+
```
|
|
259
|
+
/start (快速了解)
|
|
260
|
+
↓
|
|
261
|
+
/crud or /dev (开发新功能)
|
|
262
|
+
↓
|
|
263
|
+
/check (检查规范)
|
|
264
|
+
↓
|
|
265
|
+
/sync (同步并生成报告) ← 您在这里
|
|
266
|
+
↓
|
|
267
|
+
/progress (查看进度)
|
|
268
|
+
↓
|
|
269
|
+
/next (获取建议)
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
## 检查通过项
|
|
275
|
+
|
|
276
|
+
- [x] 包名规范(net.xnzn.core.*)
|
|
277
|
+
- [x] 对象转换(BeanUtil.copyProperties())
|
|
278
|
+
- [x] 审计字段正确(crby/crtime/upby/uptime)
|
|
279
|
+
- [x] del_flag 语义正确(2=正常,1=删除)
|
|
280
|
+
- [x] Mapper 继承正确(BaseMapper<Entity>)
|
|
281
|
+
- [x] 无 tenant_id 字段(双库物理隔离)
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
## 同步说明
|
|
286
|
+
|
|
287
|
+
- 本报告基于当前代码扫描、Git 提交和规范检查综合生成
|
|
288
|
+
- 与 `/progress` 的区别:/progress 只读查看,/sync 生成综合报告
|
|
289
|
+
- 与 `/check` 的关系:/check 检查代码规范,/sync 整合检查结果
|
|
290
|
+
- 建议每周运行一次 `/sync` 命令进行定期整理
|
|
291
|
+
- 发现数据不一致时立即运行 `/sync` 进行全量同步
|
|
292
|
+
- 同步报告默认保存到 `docs/sync-report-YYYY-MM-DD.md`
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
## 相关命令
|
|
297
|
+
|
|
298
|
+
| 命令 | 说明 | 何时使用 |
|
|
299
|
+
|------|------|---------|
|
|
300
|
+
| `/start` | 快速了解项目 | 初次接触项目 |
|
|
301
|
+
| `/check` | 代码规范检查 | 开发完成后 |
|
|
302
|
+
| `/progress` | 查看项目进度 | 了解完成情况 |
|
|
303
|
+
| `/next` | 获取下一步建议 | 不知道做什么 |
|
|
304
|
+
| `/sync` | 全量同步报告 | 每周整理、发现不一致 |
|
|
305
|
+
| `/update-status` | 增量更新状态 | 日常使用 |
|
|
306
|
+
| `/dev` | 开发新功能 | 从零开始 |
|
|
307
|
+
| `/crud` | 快速生成代码 | 表已存在时 |
|