@microi.net/cli 5.7.8 → 5.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.
- package/.codebuddy-plugin/marketplace.json +2 -2
- package/.codebuddy-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.workbuddy-plugin/marketplace.json +2 -2
- package/.workbuddy-plugin/plugin.json +1 -1
- package/LICENSE +21 -21
- package/README.md +71 -71
- package/assets/build-meta.json +6 -6
- package/assets/feature-matrix.json +138 -138
- package/assets/logo.svg +4 -4
- package/cordis.patch.yml +1 -1
- package/package.json +1 -1
- package/scripts/mcp-codex-stdio-adapter.js +0 -0
- package/scripts/mcp-server.js +113 -112
- package/scripts/microi-cli.js +57 -57
- package/scripts/microi-codex-broker.js +450 -450
- package/scripts/microi-codex-router.js +0 -0
- package/scripts/microi-skills.meta.json +364 -364
- package/skills/.microi-skills-version.json +2 -2
- package/skills/README.md +286 -286
- package/skills/ai-engine/SKILL.md +265 -265
- package/skills/ai-engine/agents/openai.yaml +4 -4
- package/skills/ai-platform-governance/SKILL.md +177 -177
- package/skills/ai-platform-governance/references/progressive-01-/345/212/237/350/203/275/345/274/200/345/205/263.md +190 -190
- package/skills/app-store/SKILL.md +396 -396
- package/skills/app-store/agents/openai.yaml +4 -4
- package/skills/business-blueprint/SKILL.md +193 -193
- package/skills/datasource-engine/SKILL.md +90 -90
- package/skills/datasource-engine/agents/openai.yaml +4 -4
- package/skills/dos-orm/references/api-reference.md +229 -229
- package/skills/email-engine/SKILL.md +78 -78
- package/skills/email-engine/references/v8-email.md +34 -34
- package/skills/job-engine/SKILL.md +172 -172
- package/skills/job-engine/agents/openai.yaml +4 -4
- package/skills/message-notification/SKILL.md +156 -156
- package/skills/message-notification/agents/openai.yaml +5 -5
- package/skills/message-notification/references/contracts.md +102 -102
- package/skills/microi-ai-app-auth.js +652 -652
- package/skills/microi-ai-application/SKILL.md +106 -106
- package/skills/microi-ai-application/agents/openai.yaml +4 -4
- package/skills/microi-ai-application/references/frontend-baseline.md +164 -164
- package/skills/microi-client-frontend/SKILL.md +237 -237
- package/skills/microi-client-frontend/references/progressive-01-3-/345/212/250/346/200/201/346/214/211/351/222/256/347/263/273/347/273/237.md +144 -144
- package/skills/microi-client-frontend/references/progressive-02-8-/350/277/220/350/241/214/346/227/266/351/253/230/351/242/221/345/235/221/345/244/215/347/233/230.md +196 -196
- package/skills/microi-client-frontend/references/progressive-03-vue3-/345/211/215/347/253/257/345/276/256/346/234/215/345/212/241/345/256/277/344/270/273/350/247/204/345/210/231.md +167 -167
- package/skills/microi-codex/SKILL.md +72 -70
- package/skills/microi-codex-installer/SKILL.md +225 -223
- package/skills/microi-codex-installer/agents/openai.yaml +7 -7
- package/skills/microi-datasource-mapping/SKILL.md +108 -108
- package/skills/microi-db-schema/SKILL.md +175 -175
- package/skills/microi-db-schema/agents/openai.yaml +4 -4
- package/skills/microi-db-schema/references/core-tables.md +695 -695
- package/skills/microi-db-schema/references/form-component-options.md +256 -256
- package/skills/microi-db-schema/references/schema-overview.md +202 -202
- package/skills/microi-db-schema/references/schema.md +646 -646
- package/skills/microi-db-schema/references/table-catalog.md +1599 -1599
- package/skills/microi-deployment/references/deployment-matrix.md +101 -101
- package/skills/microi-docs-coverage/scripts/audit-doc-skill-coverage.mjs +894 -894
- package/skills/microi-form-engine/SKILL.md +226 -226
- package/skills/microi-form-engine/references/component-catalog.md +216 -216
- package/skills/microi-form-engine/references/data-source-events.md +124 -124
- package/skills/microi-form-layout/SKILL.md +205 -205
- package/skills/microi-form-layout/references/progressive-01-3-/344/270/211/347/247/215/345/210/206/347/273/204/347/232/204/345/255/230/345/202/250/344/270/216/351/205/215/347/275/256.md +235 -235
- package/skills/microi-frontend-sdk/SKILL.md +188 -188
- package/skills/microi-frontend-sdk/references/progressive-01-token-/345/275/223/345/211/215/347/231/273/345/275/225/347/224/250/346/210/267/344/270/216/345/275/223/345/211/215/347/273/210/347/253/257/347/231/273/345/275/225/345/215/217/350/256/256.md +176 -176
- package/skills/microi-left-right-layout/SKILL.md +141 -141
- package/skills/microi-microservice/SKILL.md +323 -323
- package/skills/microi-microservice/references/runtime-delivery.md +278 -278
- package/skills/microi-mobile-app-quality/SKILL.md +181 -181
- package/skills/microi-mobile-app-quality/references/progressive-01-4-/351/207/215/350/246/201/346/214/211/351/222/256/345/277/205/351/241/273/345/270/246/345/233/276/346/240/207.md +213 -213
- package/skills/microi-mobile-app-quality/references/progressive-02-9-/344/270/273/351/242/230/345/210/207/346/215/242/345/277/205/351/241/273/347/234/237/345/256/236/344/270/224/345/205/250/345/261/200/347/224/237/346/225/210.md +128 -128
- package/skills/microi-solution-quotation/SKILL.md +78 -78
- package/skills/microi-solution-quotation/agents/openai.yaml +4 -4
- package/skills/microi-solution-quotation/scripts/build_solution_quote.py +296 -296
- package/skills/microi-sso/references/acceptance.md +49 -49
- package/skills/microi-sso/references/configuration-and-security.md +53 -53
- package/skills/microi-sso/references/inbound.md +53 -53
- package/skills/microi-sso/references/outbound.md +39 -39
- package/skills/microi-system-delivery/SKILL.md +134 -134
- package/skills/microi-system-delivery/references/progressive-01-/346/240/207/345/207/206/345/267/245/344/275/234/346/265/201.md +193 -193
- package/skills/microi-system-delivery/references/progressive-02-/350/207/252/345/212/250/345/214/226/346/265/213/350/257/225/345/277/205/351/241/273/350/246/206/347/233/226/347/232/204/345/235/221.md +189 -189
- package/skills/microi-ui/SKILL.md +174 -174
- package/skills/microi-ui/references/progressive-01-/347/247/273/345/212/250/347/253/257/345/234/272/346/231/257/350/223/235/345/233/276.md +183 -183
- package/skills/microi-uniapp-frontend/SKILL.md +193 -193
- package/skills/microi-uniapp-frontend/references/progressive-01-/347/247/273/345/212/250/347/253/257/345/210/206/347/261/273-/345/217/214/346/240/217/345/210/227/350/241/250/347/213/254/347/253/213/346/273/232/345/212/250.md +225 -225
- package/skills/microi-uniapp-frontend/references/progressive-02-/345/205/263/351/224/256/344/270/232/345/212/241/350/265/204/344/272/247/344/270/215/345/276/227/351/273/230/350/256/244/351/200/211/344/270/255.md +154 -154
- package/skills/microi.v8.js +1921 -1921
- package/skills/module-engine/SKILL.md +250 -250
- package/skills/module-engine/references/module-config.md +204 -204
- package/skills/ocr-engine/SKILL.md +113 -113
- package/skills/ocr-engine/agents/openai.yaml +4 -4
- package/skills/page-engine/SKILL.md +182 -182
- package/skills/page-engine/references/progressive-01-/346/211/200/346/234/211/347/273/204/344/273/266/347/261/273/345/236/213.md +234 -234
- package/skills/page-engine/references/progressive-02-/347/211/210/346/234/254/345/216/206/345/217/262-/345/271/266/345/217/221/344/277/235/345/255/230/344/270/216/345/233/236/346/273/232.md +60 -60
- package/skills/performance-testing/SKILL.md +221 -221
- package/skills/playwright-e2e/SKILL.md +197 -197
- package/skills/playwright-e2e/references/progressive-01-/345/205/250/350/207/252/345/212/250/347/231/273/345/275/225-/345/205/215/351/252/214/350/257/201/347/240/201-/344/275/206/344/270/215/345/205/215/345/257/206/347/240/201-/345/277/205/350/257/273.md +173 -173
- package/skills/playwright-e2e/references/progressive-02-/346/226/207/345/255/227/345/257/271/346/257/224/345/272/246/344/270/216/345/217/257/350/257/273/346/200/247/350/207/252/345/212/250/345/214/226/346/243/200/346/237/245-/345/277/205/345/201/232.md +183 -183
- package/skills/playwright-e2e/references/progressive-03-microi-helper-/346/250/241/346/235/277.md +221 -221
- package/skills/playwright-e2e/references/progressive-04-ci-/345/273/272/350/256/256.md +115 -115
- package/skills/print-engine/SKILL.md +259 -259
- package/skills/production-readonly-audit/SKILL.md +41 -41
- package/skills/report-engine/SKILL.md +71 -71
- package/skills/report-engine/agents/openai.yaml +4 -4
- package/skills/scripts/optimize-progressive-disclosure.mjs +204 -204
- package/skills/scripts/refresh-progressive-disclosure.mjs +64 -64
- package/skills/search-engine/SKILL.md +75 -75
- package/skills/search-engine/agents/openai.yaml +4 -4
- package/skills/spider-engine/SKILL.md +190 -190
- package/skills/system-observability/SKILL.md +238 -238
- package/skills/system-observability/references/memory-incident-triage.md +70 -70
- package/skills/translate-engine/SKILL.md +140 -140
- package/skills/translate-engine/agents/openai.yaml +4 -4
- package/skills/ui-design/SKILL.md +191 -191
- package/skills/ui-design/assets/templates/MCI-DESIGN.md +198 -198
- package/skills/ui-design/references/design-pattern-library.md +184 -184
- package/skills/ui-design/references/mci-design-contract.md +163 -163
- package/skills/ui-design/references/progressive-01-/351/242/234/350/211/262/344/275/223/347/263/273-css-variables-/346/224/257/346/214/201/344/270/273/351/242/230/345/210/207/346/215/242.md +218 -218
- package/skills/ui-design/references/progressive-02-/345/255/227/344/275/223.md +137 -137
- package/skills/ui-design/references/progressive-03-/345/212/250/346/225/210/350/247/204/350/214/203-/344/270/260/345/257/214/344/275/206/344/270/215/345/215/241.md +235 -235
- package/skills/ui-design/references/progressive-04-/347/273/204/344/273/266/351/243/216/346/240/274/351/200/237/346/237/245.md +152 -152
- package/skills/ui-design/references/progressive-05-/347/247/273/345/212/250/347/253/257/344/270/223/347/224/250/350/247/204/350/214/203.md +238 -238
- package/skills/ui-design/references/progressive-06-/344/270/273/351/242/230/345/210/207/346/215/242/345/256/236/347/216/260.md +194 -194
- package/skills/ui-design/references/progressive-07-/351/200/237/346/237/245-/344/273/216/345/244/264/346/220/255/345/273/272/344/270/200/344/270/252/347/247/273/345/212/250/347/253/257/351/241/265/351/235/242.md +207 -207
- package/skills/ui-design/references/progressive-08-/350/241/250/345/215/225/345/210/206/347/273/204/350/247/204/350/214/203-tabs-vs-collapsegroup-/345/274/272/345/210/266.md +117 -117
- package/skills/uniapp-mall-assets/SKILL.md +176 -176
- package/skills/unity-integration/SKILL.md +155 -155
- package/skills/unity-integration/agents/openai.yaml +4 -4
- package/skills/unity-integration/references/ai-app-delivery.md +103 -103
- package/skills/unity-integration/references/sdk-api.md +82 -82
- package/skills/unity-integration/references/toolbox-migration.md +66 -66
- package/skills/unity-integration/references/webgl-hosting.md +57 -57
- package/skills/v8-cache-pattern/SKILL.md +306 -306
- package/skills/v8-crud-api/SKILL.md +175 -175
- package/skills/v8-crud-api/references/progressive-01-/346/237/245/350/257/242/345/210/227/350/241/250-/345/210/206/351/241/265.md +226 -226
- package/skills/v8-crud-api/references/progressive-02-where-/346/235/241/344/273/266/350/257/255/346/263/225/351/200/237/346/237/245.md +49 -49
- package/skills/v8-debugging/SKILL.md +284 -284
- package/skills/v8-explorer-tree/SKILL.md +228 -228
- package/skills/v8-export-import/SKILL.md +209 -209
- package/skills/v8-export-import/references/progressive-01-excellayout-/351/253/230/347/272/247/350/207/252/347/224/261/345/270/203/345/261/200.md +211 -211
- package/skills/v8-export-import/references/progressive-02-powerpoint-/345/257/274/345/207/272.md +202 -202
- package/skills/v8-export-import/references/progressive-03-/345/256/211/345/205/250-/346/200/247/350/203/275/346/263/250/346/204/217.md +42 -42
- package/skills/v8-file-upload/SKILL.md +263 -263
- package/skills/v8-file-upload/references/progressive-01-/345/205/254/346/234/211/346/241/266-vs-/347/247/201/346/234/211/346/241/266.md +101 -101
- package/skills/v8-file-upload/references/progressive-02-office-/346/226/207/344/273/266/345/234/250/347/272/277/347/274/226/350/276/221/347/211/210/346/234/254/345/217/267/350/247/204/345/210/231.md +150 -150
- package/skills/v8-formengine-http/SKILL.md +219 -219
- package/skills/v8-frontend-events/SKILL.md +178 -178
- package/skills/v8-frontend-events/references/bluetooth-print-api.md +135 -135
- package/skills/v8-frontend-events/references/bluetooth-print.md +246 -246
- package/skills/v8-frontend-events/references/progressive-01-/345/210/227/350/241/250/344/272/213/344/273/266.md +219 -219
- package/skills/v8-http-integration/SKILL.md +182 -182
- package/skills/v8-http-integration/references/progressive-01-get-/350/257/267/346/261/202.md +220 -220
- package/skills/v8-http-integration/references/progressive-02-/351/224/231/350/257/257/345/244/204/347/220/206/346/250/241/345/274/217.md +44 -44
- package/skills/v8-image-processing/SKILL.md +190 -190
- package/skills/v8-image-processing/agents/openai.yaml +4 -4
- package/skills/v8-image-processing/references/api-reference.md +623 -623
- package/skills/v8-menu-buttons/SKILL.md +180 -180
- package/skills/v8-menu-buttons/references/progressive-01-2-/346/214/211/351/222/256/345/257/271/350/261/241-schema.md +222 -222
- package/skills/v8-menu-buttons/references/progressive-02-8-/346/250/241/345/274/217-f-/345/220/216/345/217/260/344/273/273/345/212/241/346/214/211/351/222/256-/351/225/277/344/273/273/345/212/241.md +228 -228
- package/skills/v8-menu-buttons/references/progressive-03-10-/345/217/215/346/250/241/345/274/217-/351/201/277/345/205/215.md +104 -104
- package/skills/v8-mongodb/SKILL.md +192 -192
- package/skills/v8-mq-mqtt/SKILL.md +176 -176
- package/skills/v8-mq-mqtt/references/mqtt-production.md +342 -342
- package/skills/v8-mq-mqtt/references/progressive-01-v8-mqtt-iot-/347/211/251/350/201/224/347/275/221.md +181 -181
- package/skills/v8-mq-mqtt/scripts/check-mqtt-skill-coverage.mjs +203 -203
- package/skills/v8-saas-multi-tenant/SKILL.md +219 -219
- package/skills/v8-security/SKILL.md +168 -168
- package/skills/v8-security/references/progressive-01-2-/346/235/203/351/231/220/346/240/241/351/252/214.md +198 -198
- package/skills/v8-security/references/progressive-02-7-/346/227/245/345/277/227/350/256/260/345/275/225.md +158 -158
- package/skills/v8-sql-query/SKILL.md +302 -302
- package/skills/v8-table-event/SKILL.md +144 -144
- package/skills/v8-table-event/references/progressive-01-informv8-js-/350/241/250/345/215/225/346/211/223/345/274/200/344/272/213/344/273/266.md +197 -197
- package/skills/v8-table-event/references/progressive-02-/345/211/215/347/253/257/344/272/213/344/273/266/345/220/215-v8-eventname-/345/217/257/350/203/275/347/232/204/345/200/274.md +46 -46
- package/skills/v8-tcp-integration/SKILL.md +147 -147
- package/skills/v8-tcp-integration/agents/openai.yaml +4 -4
- package/skills/v8-template-engine/SKILL.md +167 -167
- package/skills/v8-utilities/SKILL.md +90 -90
- package/skills/v8-utilities/references/client-api-index.md +143 -143
- package/skills/v8-utilities/references/platform-http-routes.md +83 -83
- package/skills/v8-utilities/references/server-api-index.md +188 -188
- package/skills/v8-workflow/SKILL.md +243 -243
- package/skills/v8-workflow/references/progressive-01-/350/212/202/347/202/271/345/274/200/345/247/213-v8-/344/272/213/344/273/266.md +180 -180
- package/skills/vision-engine/SKILL.md +159 -159
- package/skills/vision-engine/agents/openai.yaml +4 -4
- package/skills/vision-engine/references/architecture-and-acceptance.md +194 -194
- package/skills/workspace-conventions/SKILL.md +261 -261
- package/skills/workspace-conventions/references/progressive-01-/347/211/210/346/234/254/346/233/264/346/226/260/346/227/245/345/277/227/344/277/235/346/212/244/350/247/204/345/210/231-/345/274/272/345/210/266.md +208 -208
- package/skills/workspace-conventions/references/progressive-02-microi-net-api-/346/234/254/345/234/260/345/220/257/345/212/250/347/272/246/345/256/232.md +216 -216
- package/skills/workspace-conventions/references/progressive-03-cli-/344/270/216-ide-/346/217/222/344/273/266/351/224/231/347/211/210/345/205/261/345/255/230/347/272/246/345/256/232.md +27 -27
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.
|
|
2
|
+
"version": "5.8.0",
|
|
3
3
|
"versionRule": "Microi version uses three numeric parts. Each publish increments the last part; when a part exceeds 9 it carries to the previous part: 1.0.9 -> 1.1.0, 1.9.9 -> 2.0.0.",
|
|
4
4
|
"managedBy": "Microi.Agent/bump-version.js",
|
|
5
|
-
"updatedAt": "2026-
|
|
5
|
+
"updatedAt": "2026-10-01T06:04:32.006Z"
|
|
6
6
|
}
|
package/skills/README.md
CHANGED
|
@@ -1,286 +1,286 @@
|
|
|
1
|
-
# Microi Skills
|
|
2
|
-
|
|
3
|
-
**Microi 吾码项目级 AI 编程技能集合** — 让 AI 在低代码建模、V8 接口引擎、表单事件、PC 前端、UniApp/H5/小程序、Microi.UI、自动化测试和系统交付中自动遵循最佳实践。
|
|
4
|
-
|
|
5
|
-
> Skills 是一系列结构化指令文件(SKILL.md),告诉 AI 工具在特定场景下**应该如何写代码、如何建模、如何设计界面、如何测试验收**。每个 Skill 覆盖一个明确场景,包含 API 用法、代码模板、设计约束、质量门禁和安全规范。
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## 包含的 Skills
|
|
10
|
-
|
|
11
|
-
当前仓库包含 67 个 `SKILL.md`。以下清单按任务类型组织;AI 必须先完整读取与当前任务匹配的 Skill,再执行源码、MCP、文档或交付操作。
|
|
12
|
-
|
|
13
|
-
### V8 引擎核心(后端)
|
|
14
|
-
|
|
15
|
-
| Skill | 场景 | 文件 |
|
|
16
|
-
|-------|------|------|
|
|
17
|
-
| **v8-crud-api** | 接口引擎增删改查 | `v8-crud-api/SKILL.md` |
|
|
18
|
-
| **v8-sql-query** | 安全的 SQL 查询(参数化、_Where 语法、事务) | `v8-sql-query/SKILL.md` |
|
|
19
|
-
| **v8-table-event** | 表单 V8 事件(提交前/后、DataFilter) | `v8-table-event/SKILL.md` |
|
|
20
|
-
| **v8-cache-pattern** | Redis 缓存模式(L1+L2、Key 命名、防穿透) | `v8-cache-pattern/SKILL.md` |
|
|
21
|
-
| **v8-http-integration** | 调用外部 HTTP API(含下载/上传) | `v8-http-integration/SKILL.md` |
|
|
22
|
-
| **v8-tcp-integration** | 后端 TCP 原始字节、小票机与设备收发 | `v8-tcp-integration/SKILL.md` |
|
|
23
|
-
| **v8-mongodb** | MongoDB 增删改查(IoT、审计日志) | `v8-mongodb/SKILL.md` |
|
|
24
|
-
| **v8-mq-mqtt** | RabbitMQ 消息队列与 MQTT 物联网 | `v8-mq-mqtt/SKILL.md` |
|
|
25
|
-
| **v8-workflow** | 工作流(审批流程)V8 事件 | `v8-workflow/SKILL.md` |
|
|
26
|
-
| **v8-api-config** | 接口引擎配置(匿名/锁/StopHttp/响应文件) | `v8-api-config/SKILL.md` |
|
|
27
|
-
| **v8-saas-multi-tenant** | SaaS 多租户(OsClient/OsClientModel) | `v8-saas-multi-tenant/SKILL.md` |
|
|
28
|
-
| **v8-image-processing** | 服务端图片生成、合并、覆盖、水印、缩放、裁剪、绘制与二维码 | `v8-image-processing/SKILL.md` |
|
|
29
|
-
| **v8-file-upload** | 文件上传/下载/响应(HDFS、私有桶 URL) | `v8-file-upload/SKILL.md` |
|
|
30
|
-
| **v8-export-import** | Excel 自定义导入导出(含进度跟踪) | `v8-export-import/SKILL.md` |
|
|
31
|
-
| **v8-debugging** | 调试模式、异常捕获、系统日志 | `v8-debugging/SKILL.md` |
|
|
32
|
-
| **v8-security** | 安全最佳实践(权限/输入验证/防注入) | `v8-security/SKILL.md` |
|
|
33
|
-
| **v8-utilities** | 前后端 V8 上下文、通用函数、扫码、消息、Base64、加密和专项 API 索引 | `v8-utilities/SKILL.md` |
|
|
34
|
-
| **ocr-engine** | 通用 OCR 网关、SaaS 配置、PaddleX 服务与多节点验收 | `ocr-engine/SKILL.md` |
|
|
35
|
-
| **vision-engine** | 通用物体/商品/人员视觉识别、租户样本匹配、异步 AI 回退与生物特征治理 | `vision-engine/SKILL.md` |
|
|
36
|
-
| **spider-engine** | 爬虫/浏览器采集 Worker、会话、目标地址、配额与交付边界 | `spider-engine/SKILL.md` |
|
|
37
|
-
|
|
38
|
-
### V8 引擎核心(前端)
|
|
39
|
-
|
|
40
|
-
| Skill | 场景 | 文件 |
|
|
41
|
-
|-------|------|------|
|
|
42
|
-
| **v8-frontend-events** | 前端字段/按钮/列表事件(FieldValueChange 等) | `v8-frontend-events/SKILL.md` |
|
|
43
|
-
| **v8-template-engine** | 表格/表单 V8 模板(HTML 渲染、徽章、图片列) | `v8-template-engine/SKILL.md` |
|
|
44
|
-
| **v8-menu-buttons** | 菜单按钮 / Tab / 批量操作 JSON | `v8-menu-buttons/SKILL.md` |
|
|
45
|
-
| **microi-client-frontend** | `Microi.Client` 前台源码架构、表单引擎、动态按钮和工作流修改指南 | `microi-client-frontend/SKILL.md` |
|
|
46
|
-
|
|
47
|
-
### 引擎模块
|
|
48
|
-
|
|
49
|
-
| Skill | 场景 | 文件 |
|
|
50
|
-
|-------|------|------|
|
|
51
|
-
| **page-engine** | 界面引擎页面 JSON 生成 | `page-engine/SKILL.md` |
|
|
52
|
-
| **print-engine** | 打印引擎模板 JSON 生成 | `print-engine/SKILL.md` |
|
|
53
|
-
| **ui-design** | Microi吾码设计规范(阴影/动效/主题/性能) | `ui-design/SKILL.md` |
|
|
54
|
-
| **microi-ui** | 吾码UI(Microi.UI / MCI-UI)组件库、主题 palette、圆角/扁平、Web/UniApp 用法 | `microi-ui/SKILL.md` |
|
|
55
|
-
| **microi-form-engine** | 表单设计器、字段组件、数据源、事件和物理类型 | `microi-form-engine/SKILL.md` |
|
|
56
|
-
| **microi-form-layout** | 表单布局分组规范:Tabs vs CollapseGroup 决策、字段数阈值、回读验收 | `microi-form-layout/SKILL.md` |
|
|
57
|
-
| **microi-db-schema** | 数据库字典、核心表关系、字段归属与 V8 配置存储位置 | `microi-db-schema/SKILL.md` |
|
|
58
|
-
| **module-engine** | sys_menu 菜单模块、查询列、打开方式、ViewSchema 和多表查询 | `module-engine/SKILL.md` |
|
|
59
|
-
| **dos-orm** | Dos.ORM 实体、查询、事务、Provider、批量写入与 CodeFirst | `dos-orm/SKILL.md` |
|
|
60
|
-
| **microi-left-right-layout** | 模块引擎“树形+表格/表单”左右布局与主外键过滤 | `microi-left-right-layout/SKILL.md` |
|
|
61
|
-
| **datasource-engine** | SQL/V8/JSON 数据源设计、租户与权限、字段供数和验收 | `datasource-engine/SKILL.md` |
|
|
62
|
-
| **job-engine** | 定时/后台任务、多节点租约、幂等、恢复和进度 | `job-engine/SKILL.md` |
|
|
63
|
-
| **email-engine** | 多账号邮箱、IMAP/SMTP、自动同步、草稿、附件、发送防重和邮箱 MCP | `email-engine/SKILL.md` |
|
|
64
|
-
| **message-notification** | 统一消息通知中心、系统公告、邮件短信/微信/平台内部通知、MCP 配置、重启提醒与商城交付 | `message-notification/SKILL.md` |
|
|
65
|
-
| **search-engine** | Elasticsearch 索引、同步、查询、租户/数据范围和重建 | `search-engine/SKILL.md` |
|
|
66
|
-
| **report-engine** | Rpt_Report 虚拟报表、数据源、聚合、写接口和导出 | `report-engine/SKILL.md` |
|
|
67
|
-
| **translate-engine** | 多语言词条、翻译供应商、租户隔离、缓存和批量翻译 | `translate-engine/SKILL.md` |
|
|
68
|
-
| **ai-engine** | 模型代理、NL2SQL/NL2V8、Schema/Skill 关键词检索与可选向量融合 | `ai-engine/SKILL.md` |
|
|
69
|
-
| **ai-platform-governance** | 门户/身份/配置/发布、服务韧性、Trace/日志、资产协作与可恢复导入 | `ai-platform-governance/SKILL.md` |
|
|
70
|
-
| **system-observability** | 系统日志、Trace、热点接口、资源监控、网络流量归因、安全事件与 AI 查询/治理 | `system-observability/SKILL.md` |
|
|
71
|
-
| **app-store** | 应用包、Manifest、后台安装、差异升级、回滚和验收 | `app-store/SKILL.md` |
|
|
72
|
-
| **microi-sso** | 双向 OIDC/SAML2/CAS、账号映射、Secret/证书、官方商城发布与伙伴联调 | `microi-sso/SKILL.md` |
|
|
73
|
-
|
|
74
|
-
### 项目交付、前端与移动端
|
|
75
|
-
|
|
76
|
-
| Skill | 场景 | 文件 |
|
|
77
|
-
|-------|------|------|
|
|
78
|
-
| **business-blueprint** | 从需求生成业务蓝图、模块边界、数据模型与接口清单 | `business-blueprint/SKILL.md` |
|
|
79
|
-
| **microi-system-delivery** | 自然语言到完整系统交付的总控、MCP 编排、验收和复盘 | `microi-system-delivery/SKILL.md` |
|
|
80
|
-
| **microi-deployment** | Docker/Windows/源码部署、配置、升级和多节点运行验收 | `microi-deployment/SKILL.md` |
|
|
81
|
-
| **microi-microservice** | 前端微服务/微应用源码、路由、发布、宿主上下文和运行时交付 | `microi-microservice/SKILL.md` |
|
|
82
|
-
| **microi-ai-application** | Web、MicroService、UniApp、H5 与游戏类 AI 应用的 Vue 3 + Vite + TypeScript 默认架构、迁移和质量门 | `microi-ai-application/SKILL.md` |
|
|
83
|
-
| **unity-integration** | Unity UPM SDK、WebGL/Windows、多人租约、公屏、DiyToken、V8 与 3D AI 应用交付 | `unity-integration/SKILL.md` |
|
|
84
|
-
| **microi-docs-coverage** | 中文官网文档到 Skills 的能力映射、V8 API 漏项审计和同步流程 | `microi-docs-coverage/SKILL.md` |
|
|
85
|
-
| **microi-solution-quotation** | 生成紧凑的一页式 Microi吾码解决方案、市场预估价、优惠报价与开发周期 Word | `microi-solution-quotation/SKILL.md` |
|
|
86
|
-
| **microi-frontend-sdk** | Vue3/UniApp/H5/PC 前端统一 SDK、Token终端会话/续签、上传、资源 URL、ApiEngine/FormEngine | `microi-frontend-sdk/SKILL.md` |
|
|
87
|
-
| **microi-uniapp-frontend** | Microi UniApp/H5 通用前端规范、安全区、资源解析、骨架屏、主题与页面质量 | `microi-uniapp-frontend/SKILL.md` |
|
|
88
|
-
| **microi-mobile-app-quality** | 移动端质量门禁:登录、验证码、图标、菜单层级、主题、动效、截图验收 | `microi-mobile-app-quality/SKILL.md` |
|
|
89
|
-
| **microi-datasource-mapping** | 数据源 Key/Value 映射、下拉枚举与前后端显示值一致性 | `microi-datasource-mapping/SKILL.md` |
|
|
90
|
-
| **v8-formengine-http** | 移动端/外部系统直接调用 FormEngine HTTP 路由的约定 | `v8-formengine-http/SKILL.md` |
|
|
91
|
-
| **v8-explorer-tree** | VS Code 插件 V8 资源管理器目录规范和本地文件归档 | `v8-explorer-tree/SKILL.md` |
|
|
92
|
-
| **workspace-conventions** | 工作区文件放置、临时产物、项目专属目录和根目录污染防护 | `workspace-conventions/SKILL.md` |
|
|
93
|
-
| **microi-codex-installer** | Codex 插件立即检测、授权安装、旧 marketplace 迁移与验收 | `microi-codex-installer/SKILL.md` |
|
|
94
|
-
| **microi-codex** | Codex 中连接租户、读取实时上下文并完成 Microi 等价工作流 | `microi-codex/SKILL.md` |
|
|
95
|
-
| **production-readonly-audit** | 正式环境只读巡检,不改动线上数据的业务核对流程 | `production-readonly-audit/SKILL.md` |
|
|
96
|
-
| **uniapp-mall-assets** | UniApp/H5/商城上传资源、FileServer、私有临时 URL 与富文本安全 | `uniapp-mall-assets/SKILL.md` |
|
|
97
|
-
|
|
98
|
-
### 自动化测试
|
|
99
|
-
|
|
100
|
-
| Skill | 场景 | 文件 |
|
|
101
|
-
|-------|------|------|
|
|
102
|
-
| **playwright-e2e** | Playwright 端到端自动化测试、接口引擎断言、冒烟验收与 CI | `playwright-e2e/SKILL.md` |
|
|
103
|
-
| **performance-testing** | 接口引擎、V8事件、FormEngine CRUD 高并发性能压力测试与报告 | `performance-testing/SKILL.md` |
|
|
104
|
-
|
|
105
|
-
---
|
|
106
|
-
|
|
107
|
-
## 快速开始:如何使用 Skills
|
|
108
|
-
|
|
109
|
-
### 推荐:VS Code 插件零配置安装
|
|
110
|
-
|
|
111
|
-
安装 Microi 吾码 VS Code 插件后,在工作区执行初始化/拉取。插件会安装当前版本的完整 `microi.skills`,并为 Codex、GitHub Copilot、Claude Code、Cursor 等生成 `AGENTS.md`、`.github/copilot-instructions.md`、`CLAUDE.md` 和 Cursor rules;不需要手工维护 59 条 Skill 引用。
|
|
112
|
-
|
|
113
|
-
插件升级采用清单和内容哈希做差异更新:未被用户修改的官方 Skill 自动升级,用户已经修改的文件不被整文件覆盖,新增 Skill 自动补齐。发布插件时必须比对源 Skills、插件 `dist`、VSIX 和空工作区初始化产物的相对路径与 SHA-256,不能只检查文件数量。
|
|
114
|
-
|
|
115
|
-
随后按需连接 Microi MCP:MCP 提供实时表结构、接口引擎、菜单和应用源码上下文;Skills 提供设计、安全、编码与验收规则;VS Code 插件提供类型、资源树和上下文生成。三者组合才是推荐的 AI 零代码开发路径。
|
|
116
|
-
|
|
117
|
-
### 备用:手工获取 Skills
|
|
118
|
-
|
|
119
|
-
```bash
|
|
120
|
-
git clone https://gitee.com/ITdos/microi.net.git
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
将源码中的 `microi.skills` 文件夹放到工作区根目录。也可使用 Git sparse-checkout 只获取该目录。
|
|
124
|
-
|
|
125
|
-
### 手工配置 AI 工具加载 Skills
|
|
126
|
-
|
|
127
|
-
根据你使用的 AI 工具,选择对应的配置方式:
|
|
128
|
-
|
|
129
|
-
> 手工配置仅是插件不可用时的备用方案。不要把全部 Skill 内容拼接到单个规则文件;保留独立文件并按任务路由读取,可避免超长上下文、重复规则和版本漂移。
|
|
130
|
-
|
|
131
|
-
---
|
|
132
|
-
|
|
133
|
-
### GitHub Copilot(VS Code)
|
|
134
|
-
|
|
135
|
-
**方式 A:通过 `.github/copilot-instructions.md` 全局引用(推荐)**
|
|
136
|
-
|
|
137
|
-
在项目根目录的 `.github/copilot-instructions.md` 文件末尾追加:
|
|
138
|
-
|
|
139
|
-
```markdown
|
|
140
|
-
## Microi 项目技能规范
|
|
141
|
-
|
|
142
|
-
处理 Microi 低代码系统、V8 引擎、PC 前端、UniApp/H5/小程序、Microi.UI、MCP 建模、自动化测试或交付时,参考以下技能文件:
|
|
143
|
-
- microi.skills/v8-crud-api/SKILL.md — 增删改查
|
|
144
|
-
- microi.skills/v8-table-event/SKILL.md — 表单事件
|
|
145
|
-
- microi.skills/v8-sql-query/SKILL.md — SQL 查询
|
|
146
|
-
- microi.skills/v8-http-integration/SKILL.md — HTTP 集成
|
|
147
|
-
- microi.skills/v8-cache-pattern/SKILL.md — Redis 缓存
|
|
148
|
-
- microi.skills/v8-security/SKILL.md — 安全规范
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
> Copilot 会自动将这些 Skill 作为上下文注入到每次对话中。
|
|
152
|
-
|
|
153
|
-
**方式 B:在对话中按需引用**
|
|
154
|
-
|
|
155
|
-
```
|
|
156
|
-
@workspace 参考 microi.skills/v8-crud-api/SKILL.md 帮我写一个用户管理的接口引擎
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
---
|
|
160
|
-
|
|
161
|
-
### Cursor
|
|
162
|
-
|
|
163
|
-
**方式 A:在 `.cursor/rules/` 目录中添加规则文件(推荐)**
|
|
164
|
-
|
|
165
|
-
在项目根目录创建 `.cursor/rules/microi-skills.mdc`:
|
|
166
|
-
|
|
167
|
-
```
|
|
168
|
-
---
|
|
169
|
-
description: Microi 项目技能规范
|
|
170
|
-
globs: ["microi-v8-engine/**/*.js", "Microi.Client/**/*.{vue,js,ts,css,scss}", "microi.uniapp/**/*.{vue,js,ts,css,scss,json}", "AI-Project/**/*.{vue,js,ts,css,scss,json,md}", "Microi.UI/**/*.{vue,js,ts,css,scss,md}", "microi.skills/**/*.md"]
|
|
171
|
-
---
|
|
172
|
-
|
|
173
|
-
处理 Microi 项目时,按任务类型参考以下技能文件获取 API 用法、界面规范和验收门禁:
|
|
174
|
-
- @microi.skills/v8-crud-api/SKILL.md
|
|
175
|
-
- @microi.skills/v8-table-event/SKILL.md
|
|
176
|
-
- @microi.skills/v8-sql-query/SKILL.md
|
|
177
|
-
- @microi.skills/v8-http-integration/SKILL.md
|
|
178
|
-
- @microi.skills/v8-cache-pattern/SKILL.md
|
|
179
|
-
- @microi.skills/v8-security/SKILL.md
|
|
180
|
-
- @microi.skills/microi-ui/SKILL.md
|
|
181
|
-
- @microi.skills/microi-uniapp-frontend/SKILL.md
|
|
182
|
-
- @microi.skills/microi-mobile-app-quality/SKILL.md
|
|
183
|
-
- @microi.skills/microi-system-delivery/SKILL.md
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
> Cursor 会在匹配 `microi-v8-engine/**/*.js` 的文件中自动加载这些规则。
|
|
187
|
-
|
|
188
|
-
**方式 B:合并到 `.cursorrules`**
|
|
189
|
-
|
|
190
|
-
```bash
|
|
191
|
-
for f in microi.skills/*/SKILL.md; do
|
|
192
|
-
echo -e "\n---\n" >> .cursorrules
|
|
193
|
-
cat "$f" >> .cursorrules
|
|
194
|
-
done
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
---
|
|
198
|
-
|
|
199
|
-
### Claude Code
|
|
200
|
-
|
|
201
|
-
**方式 A:添加到 `CLAUDE.md`(推荐)**
|
|
202
|
-
|
|
203
|
-
在项目根目录的 `CLAUDE.md` 中追加:
|
|
204
|
-
|
|
205
|
-
```markdown
|
|
206
|
-
## Microi 项目 Skills
|
|
207
|
-
|
|
208
|
-
处理 Microi 项目时,按任务类型参阅以下文件:
|
|
209
|
-
- microi.skills/v8-crud-api/SKILL.md
|
|
210
|
-
- microi.skills/v8-table-event/SKILL.md
|
|
211
|
-
- microi.skills/v8-sql-query/SKILL.md
|
|
212
|
-
- microi.skills/v8-http-integration/SKILL.md
|
|
213
|
-
- microi.skills/v8-cache-pattern/SKILL.md
|
|
214
|
-
- microi.skills/v8-security/SKILL.md
|
|
215
|
-
- microi.skills/microi-ui/SKILL.md
|
|
216
|
-
- microi.skills/microi-uniapp-frontend/SKILL.md
|
|
217
|
-
- microi.skills/microi-mobile-app-quality/SKILL.md
|
|
218
|
-
- microi.skills/microi-system-delivery/SKILL.md
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
**方式 B:批量追加内容到 `CLAUDE.md`**
|
|
222
|
-
|
|
223
|
-
```bash
|
|
224
|
-
for f in microi.skills/*/SKILL.md; do
|
|
225
|
-
echo -e "\n---\n" >> CLAUDE.md
|
|
226
|
-
cat "$f" >> CLAUDE.md
|
|
227
|
-
done
|
|
228
|
-
```
|
|
229
|
-
|
|
230
|
-
---
|
|
231
|
-
|
|
232
|
-
## 安全与兼容底线
|
|
233
|
-
|
|
234
|
-
- 浏览器 FormEngine 请求优先携带真实 `_SysMenuId`;历史无菜单调用由后端从用户真实菜单缓存安全推断,后端可信 V8 不要求 `_SysMenuId`。
|
|
235
|
-
- `_InvokeType: 'Client'` 会触发表单 V8 事件,不是授权标记,也不能用来“避免递归”。
|
|
236
|
-
- 平台表按管理员专用、只读委托、按角色管理分级;控制面 API 与管理员专用表只允许主库复核后的 `Level >= 9999`,普通角色权限不能绕过,全部平台表拒绝匿名。
|
|
237
|
-
- 多租户、文件、Redis、MQ、对象存储和搜索能力必须由服务端绑定当前 `OsClient`。
|
|
238
|
-
- `setTimeout`、`Task.Run` 和进程内静态状态不能承担可靠后台任务或集群锁。
|
|
239
|
-
- 上传上限由平台默认值和 `sys_osclients` 租户配置共同约束;私有文件的浏览器访问必须绑定菜单、记录、字段和附件。
|
|
240
|
-
- CORS 未配置时为兼容历史默认允许 `*`,配置后才按租户域名收紧;SSRF 严格模式默认关闭,启用后按精确主机白名单放行。
|
|
241
|
-
- MCP 写入前先读取实时 schema/manifest,写后回读;超时先回读确认,不得立即重复创建。
|
|
242
|
-
|
|
243
|
-
---
|
|
244
|
-
|
|
245
|
-
## 使用效果示例
|
|
246
|
-
|
|
247
|
-
配置 Skills 后,AI 对话中的代码生成质量会显著提升:
|
|
248
|
-
|
|
249
|
-
**没有 Skills 时:**
|
|
250
|
-
```
|
|
251
|
-
你:帮我写一个分页查询用户列表的接口引擎
|
|
252
|
-
AI:(可能写出不用 _Where 参数化、没有 try-catch、没有权限校验的代码)
|
|
253
|
-
```
|
|
254
|
-
|
|
255
|
-
**有 Skills 时:**
|
|
256
|
-
```
|
|
257
|
-
你:帮我写一个分页查询用户列表的接口引擎
|
|
258
|
-
AI:参考 v8-crud-api Skill,生成完整代码:
|
|
259
|
-
✅ 使用 V8.FormEngine.GetTableData + _Where 参数化查询
|
|
260
|
-
✅ 包含分页参数校验
|
|
261
|
-
✅ 使用 V8.CurrentUser 做权限校验
|
|
262
|
-
✅ 规范的 V8.Result 返回格式
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
---
|
|
266
|
-
|
|
267
|
-
## 与 VS Code 插件 / MCP 的关系
|
|
268
|
-
|
|
269
|
-
| 方案 | 覆盖内容 | 适用场景 |
|
|
270
|
-
|------|---------|---------|
|
|
271
|
-
| **VS Code 插件** | V8 全部 API 知识 + 数据库表结构 + 代码补全 | 日常开发,自动化 |
|
|
272
|
-
| **MCP Server** | 实时查询数据、远程执行引擎 | AI 实时操作平台 |
|
|
273
|
-
| **Skills**(本项目) | 具体场景的编码最佳实践和代码模板 | 进阶模式,深度指导 |
|
|
274
|
-
|
|
275
|
-
> 💡 推荐三者搭配使用:插件提供 API 知识和表结构 → MCP 提供实时数据查询 → Skills 提供编码最佳实践。
|
|
276
|
-
|
|
277
|
-
## License
|
|
278
|
-
|
|
279
|
-
MIT
|
|
280
|
-
|
|
281
|
-
## 关键路由提示
|
|
282
|
-
|
|
283
|
-
- 独立 PC/H5/UniApp 前端:先读 `microi-frontend-sdk`,再读对应端的 UI/质量 Skill。
|
|
284
|
-
- 表单字段较多时:先读 `microi-form-layout`。默认优先使用 `diy_table.Tabs + diy_field.Tab` 做业务域分组,局部复杂区域再用 `CollapseGroup` 或字段级 `Tabs`。
|
|
285
|
-
- 树形+表格/表单:使用 `microi-left-right-layout`。
|
|
286
|
-
- 跨模块完整交付:从 `business-blueprint` 进入,由 `microi-system-delivery` 总控,并把 `v8-security`、`microi-db-schema` 和自动化验收作为强制门禁。
|
|
1
|
+
# Microi Skills
|
|
2
|
+
|
|
3
|
+
**Microi 吾码项目级 AI 编程技能集合** — 让 AI 在低代码建模、V8 接口引擎、表单事件、PC 前端、UniApp/H5/小程序、Microi.UI、自动化测试和系统交付中自动遵循最佳实践。
|
|
4
|
+
|
|
5
|
+
> Skills 是一系列结构化指令文件(SKILL.md),告诉 AI 工具在特定场景下**应该如何写代码、如何建模、如何设计界面、如何测试验收**。每个 Skill 覆盖一个明确场景,包含 API 用法、代码模板、设计约束、质量门禁和安全规范。
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 包含的 Skills
|
|
10
|
+
|
|
11
|
+
当前仓库包含 67 个 `SKILL.md`。以下清单按任务类型组织;AI 必须先完整读取与当前任务匹配的 Skill,再执行源码、MCP、文档或交付操作。
|
|
12
|
+
|
|
13
|
+
### V8 引擎核心(后端)
|
|
14
|
+
|
|
15
|
+
| Skill | 场景 | 文件 |
|
|
16
|
+
|-------|------|------|
|
|
17
|
+
| **v8-crud-api** | 接口引擎增删改查 | `v8-crud-api/SKILL.md` |
|
|
18
|
+
| **v8-sql-query** | 安全的 SQL 查询(参数化、_Where 语法、事务) | `v8-sql-query/SKILL.md` |
|
|
19
|
+
| **v8-table-event** | 表单 V8 事件(提交前/后、DataFilter) | `v8-table-event/SKILL.md` |
|
|
20
|
+
| **v8-cache-pattern** | Redis 缓存模式(L1+L2、Key 命名、防穿透) | `v8-cache-pattern/SKILL.md` |
|
|
21
|
+
| **v8-http-integration** | 调用外部 HTTP API(含下载/上传) | `v8-http-integration/SKILL.md` |
|
|
22
|
+
| **v8-tcp-integration** | 后端 TCP 原始字节、小票机与设备收发 | `v8-tcp-integration/SKILL.md` |
|
|
23
|
+
| **v8-mongodb** | MongoDB 增删改查(IoT、审计日志) | `v8-mongodb/SKILL.md` |
|
|
24
|
+
| **v8-mq-mqtt** | RabbitMQ 消息队列与 MQTT 物联网 | `v8-mq-mqtt/SKILL.md` |
|
|
25
|
+
| **v8-workflow** | 工作流(审批流程)V8 事件 | `v8-workflow/SKILL.md` |
|
|
26
|
+
| **v8-api-config** | 接口引擎配置(匿名/锁/StopHttp/响应文件) | `v8-api-config/SKILL.md` |
|
|
27
|
+
| **v8-saas-multi-tenant** | SaaS 多租户(OsClient/OsClientModel) | `v8-saas-multi-tenant/SKILL.md` |
|
|
28
|
+
| **v8-image-processing** | 服务端图片生成、合并、覆盖、水印、缩放、裁剪、绘制与二维码 | `v8-image-processing/SKILL.md` |
|
|
29
|
+
| **v8-file-upload** | 文件上传/下载/响应(HDFS、私有桶 URL) | `v8-file-upload/SKILL.md` |
|
|
30
|
+
| **v8-export-import** | Excel 自定义导入导出(含进度跟踪) | `v8-export-import/SKILL.md` |
|
|
31
|
+
| **v8-debugging** | 调试模式、异常捕获、系统日志 | `v8-debugging/SKILL.md` |
|
|
32
|
+
| **v8-security** | 安全最佳实践(权限/输入验证/防注入) | `v8-security/SKILL.md` |
|
|
33
|
+
| **v8-utilities** | 前后端 V8 上下文、通用函数、扫码、消息、Base64、加密和专项 API 索引 | `v8-utilities/SKILL.md` |
|
|
34
|
+
| **ocr-engine** | 通用 OCR 网关、SaaS 配置、PaddleX 服务与多节点验收 | `ocr-engine/SKILL.md` |
|
|
35
|
+
| **vision-engine** | 通用物体/商品/人员视觉识别、租户样本匹配、异步 AI 回退与生物特征治理 | `vision-engine/SKILL.md` |
|
|
36
|
+
| **spider-engine** | 爬虫/浏览器采集 Worker、会话、目标地址、配额与交付边界 | `spider-engine/SKILL.md` |
|
|
37
|
+
|
|
38
|
+
### V8 引擎核心(前端)
|
|
39
|
+
|
|
40
|
+
| Skill | 场景 | 文件 |
|
|
41
|
+
|-------|------|------|
|
|
42
|
+
| **v8-frontend-events** | 前端字段/按钮/列表事件(FieldValueChange 等) | `v8-frontend-events/SKILL.md` |
|
|
43
|
+
| **v8-template-engine** | 表格/表单 V8 模板(HTML 渲染、徽章、图片列) | `v8-template-engine/SKILL.md` |
|
|
44
|
+
| **v8-menu-buttons** | 菜单按钮 / Tab / 批量操作 JSON | `v8-menu-buttons/SKILL.md` |
|
|
45
|
+
| **microi-client-frontend** | `Microi.Client` 前台源码架构、表单引擎、动态按钮和工作流修改指南 | `microi-client-frontend/SKILL.md` |
|
|
46
|
+
|
|
47
|
+
### 引擎模块
|
|
48
|
+
|
|
49
|
+
| Skill | 场景 | 文件 |
|
|
50
|
+
|-------|------|------|
|
|
51
|
+
| **page-engine** | 界面引擎页面 JSON 生成 | `page-engine/SKILL.md` |
|
|
52
|
+
| **print-engine** | 打印引擎模板 JSON 生成 | `print-engine/SKILL.md` |
|
|
53
|
+
| **ui-design** | Microi吾码设计规范(阴影/动效/主题/性能) | `ui-design/SKILL.md` |
|
|
54
|
+
| **microi-ui** | 吾码UI(Microi.UI / MCI-UI)组件库、主题 palette、圆角/扁平、Web/UniApp 用法 | `microi-ui/SKILL.md` |
|
|
55
|
+
| **microi-form-engine** | 表单设计器、字段组件、数据源、事件和物理类型 | `microi-form-engine/SKILL.md` |
|
|
56
|
+
| **microi-form-layout** | 表单布局分组规范:Tabs vs CollapseGroup 决策、字段数阈值、回读验收 | `microi-form-layout/SKILL.md` |
|
|
57
|
+
| **microi-db-schema** | 数据库字典、核心表关系、字段归属与 V8 配置存储位置 | `microi-db-schema/SKILL.md` |
|
|
58
|
+
| **module-engine** | sys_menu 菜单模块、查询列、打开方式、ViewSchema 和多表查询 | `module-engine/SKILL.md` |
|
|
59
|
+
| **dos-orm** | Dos.ORM 实体、查询、事务、Provider、批量写入与 CodeFirst | `dos-orm/SKILL.md` |
|
|
60
|
+
| **microi-left-right-layout** | 模块引擎“树形+表格/表单”左右布局与主外键过滤 | `microi-left-right-layout/SKILL.md` |
|
|
61
|
+
| **datasource-engine** | SQL/V8/JSON 数据源设计、租户与权限、字段供数和验收 | `datasource-engine/SKILL.md` |
|
|
62
|
+
| **job-engine** | 定时/后台任务、多节点租约、幂等、恢复和进度 | `job-engine/SKILL.md` |
|
|
63
|
+
| **email-engine** | 多账号邮箱、IMAP/SMTP、自动同步、草稿、附件、发送防重和邮箱 MCP | `email-engine/SKILL.md` |
|
|
64
|
+
| **message-notification** | 统一消息通知中心、系统公告、邮件短信/微信/平台内部通知、MCP 配置、重启提醒与商城交付 | `message-notification/SKILL.md` |
|
|
65
|
+
| **search-engine** | Elasticsearch 索引、同步、查询、租户/数据范围和重建 | `search-engine/SKILL.md` |
|
|
66
|
+
| **report-engine** | Rpt_Report 虚拟报表、数据源、聚合、写接口和导出 | `report-engine/SKILL.md` |
|
|
67
|
+
| **translate-engine** | 多语言词条、翻译供应商、租户隔离、缓存和批量翻译 | `translate-engine/SKILL.md` |
|
|
68
|
+
| **ai-engine** | 模型代理、NL2SQL/NL2V8、Schema/Skill 关键词检索与可选向量融合 | `ai-engine/SKILL.md` |
|
|
69
|
+
| **ai-platform-governance** | 门户/身份/配置/发布、服务韧性、Trace/日志、资产协作与可恢复导入 | `ai-platform-governance/SKILL.md` |
|
|
70
|
+
| **system-observability** | 系统日志、Trace、热点接口、资源监控、网络流量归因、安全事件与 AI 查询/治理 | `system-observability/SKILL.md` |
|
|
71
|
+
| **app-store** | 应用包、Manifest、后台安装、差异升级、回滚和验收 | `app-store/SKILL.md` |
|
|
72
|
+
| **microi-sso** | 双向 OIDC/SAML2/CAS、账号映射、Secret/证书、官方商城发布与伙伴联调 | `microi-sso/SKILL.md` |
|
|
73
|
+
|
|
74
|
+
### 项目交付、前端与移动端
|
|
75
|
+
|
|
76
|
+
| Skill | 场景 | 文件 |
|
|
77
|
+
|-------|------|------|
|
|
78
|
+
| **business-blueprint** | 从需求生成业务蓝图、模块边界、数据模型与接口清单 | `business-blueprint/SKILL.md` |
|
|
79
|
+
| **microi-system-delivery** | 自然语言到完整系统交付的总控、MCP 编排、验收和复盘 | `microi-system-delivery/SKILL.md` |
|
|
80
|
+
| **microi-deployment** | Docker/Windows/源码部署、配置、升级和多节点运行验收 | `microi-deployment/SKILL.md` |
|
|
81
|
+
| **microi-microservice** | 前端微服务/微应用源码、路由、发布、宿主上下文和运行时交付 | `microi-microservice/SKILL.md` |
|
|
82
|
+
| **microi-ai-application** | Web、MicroService、UniApp、H5 与游戏类 AI 应用的 Vue 3 + Vite + TypeScript 默认架构、迁移和质量门 | `microi-ai-application/SKILL.md` |
|
|
83
|
+
| **unity-integration** | Unity UPM SDK、WebGL/Windows、多人租约、公屏、DiyToken、V8 与 3D AI 应用交付 | `unity-integration/SKILL.md` |
|
|
84
|
+
| **microi-docs-coverage** | 中文官网文档到 Skills 的能力映射、V8 API 漏项审计和同步流程 | `microi-docs-coverage/SKILL.md` |
|
|
85
|
+
| **microi-solution-quotation** | 生成紧凑的一页式 Microi吾码解决方案、市场预估价、优惠报价与开发周期 Word | `microi-solution-quotation/SKILL.md` |
|
|
86
|
+
| **microi-frontend-sdk** | Vue3/UniApp/H5/PC 前端统一 SDK、Token终端会话/续签、上传、资源 URL、ApiEngine/FormEngine | `microi-frontend-sdk/SKILL.md` |
|
|
87
|
+
| **microi-uniapp-frontend** | Microi UniApp/H5 通用前端规范、安全区、资源解析、骨架屏、主题与页面质量 | `microi-uniapp-frontend/SKILL.md` |
|
|
88
|
+
| **microi-mobile-app-quality** | 移动端质量门禁:登录、验证码、图标、菜单层级、主题、动效、截图验收 | `microi-mobile-app-quality/SKILL.md` |
|
|
89
|
+
| **microi-datasource-mapping** | 数据源 Key/Value 映射、下拉枚举与前后端显示值一致性 | `microi-datasource-mapping/SKILL.md` |
|
|
90
|
+
| **v8-formengine-http** | 移动端/外部系统直接调用 FormEngine HTTP 路由的约定 | `v8-formengine-http/SKILL.md` |
|
|
91
|
+
| **v8-explorer-tree** | VS Code 插件 V8 资源管理器目录规范和本地文件归档 | `v8-explorer-tree/SKILL.md` |
|
|
92
|
+
| **workspace-conventions** | 工作区文件放置、临时产物、项目专属目录和根目录污染防护 | `workspace-conventions/SKILL.md` |
|
|
93
|
+
| **microi-codex-installer** | Codex 插件立即检测、授权安装、旧 marketplace 迁移与验收 | `microi-codex-installer/SKILL.md` |
|
|
94
|
+
| **microi-codex** | Codex 中连接租户、读取实时上下文并完成 Microi 等价工作流 | `microi-codex/SKILL.md` |
|
|
95
|
+
| **production-readonly-audit** | 正式环境只读巡检,不改动线上数据的业务核对流程 | `production-readonly-audit/SKILL.md` |
|
|
96
|
+
| **uniapp-mall-assets** | UniApp/H5/商城上传资源、FileServer、私有临时 URL 与富文本安全 | `uniapp-mall-assets/SKILL.md` |
|
|
97
|
+
|
|
98
|
+
### 自动化测试
|
|
99
|
+
|
|
100
|
+
| Skill | 场景 | 文件 |
|
|
101
|
+
|-------|------|------|
|
|
102
|
+
| **playwright-e2e** | Playwright 端到端自动化测试、接口引擎断言、冒烟验收与 CI | `playwright-e2e/SKILL.md` |
|
|
103
|
+
| **performance-testing** | 接口引擎、V8事件、FormEngine CRUD 高并发性能压力测试与报告 | `performance-testing/SKILL.md` |
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
|
|
107
|
+
## 快速开始:如何使用 Skills
|
|
108
|
+
|
|
109
|
+
### 推荐:VS Code 插件零配置安装
|
|
110
|
+
|
|
111
|
+
安装 Microi 吾码 VS Code 插件后,在工作区执行初始化/拉取。插件会安装当前版本的完整 `microi.skills`,并为 Codex、GitHub Copilot、Claude Code、Cursor 等生成 `AGENTS.md`、`.github/copilot-instructions.md`、`CLAUDE.md` 和 Cursor rules;不需要手工维护 59 条 Skill 引用。
|
|
112
|
+
|
|
113
|
+
插件升级采用清单和内容哈希做差异更新:未被用户修改的官方 Skill 自动升级,用户已经修改的文件不被整文件覆盖,新增 Skill 自动补齐。发布插件时必须比对源 Skills、插件 `dist`、VSIX 和空工作区初始化产物的相对路径与 SHA-256,不能只检查文件数量。
|
|
114
|
+
|
|
115
|
+
随后按需连接 Microi MCP:MCP 提供实时表结构、接口引擎、菜单和应用源码上下文;Skills 提供设计、安全、编码与验收规则;VS Code 插件提供类型、资源树和上下文生成。三者组合才是推荐的 AI 零代码开发路径。
|
|
116
|
+
|
|
117
|
+
### 备用:手工获取 Skills
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
git clone https://gitee.com/ITdos/microi.net.git
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
将源码中的 `microi.skills` 文件夹放到工作区根目录。也可使用 Git sparse-checkout 只获取该目录。
|
|
124
|
+
|
|
125
|
+
### 手工配置 AI 工具加载 Skills
|
|
126
|
+
|
|
127
|
+
根据你使用的 AI 工具,选择对应的配置方式:
|
|
128
|
+
|
|
129
|
+
> 手工配置仅是插件不可用时的备用方案。不要把全部 Skill 内容拼接到单个规则文件;保留独立文件并按任务路由读取,可避免超长上下文、重复规则和版本漂移。
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
### GitHub Copilot(VS Code)
|
|
134
|
+
|
|
135
|
+
**方式 A:通过 `.github/copilot-instructions.md` 全局引用(推荐)**
|
|
136
|
+
|
|
137
|
+
在项目根目录的 `.github/copilot-instructions.md` 文件末尾追加:
|
|
138
|
+
|
|
139
|
+
```markdown
|
|
140
|
+
## Microi 项目技能规范
|
|
141
|
+
|
|
142
|
+
处理 Microi 低代码系统、V8 引擎、PC 前端、UniApp/H5/小程序、Microi.UI、MCP 建模、自动化测试或交付时,参考以下技能文件:
|
|
143
|
+
- microi.skills/v8-crud-api/SKILL.md — 增删改查
|
|
144
|
+
- microi.skills/v8-table-event/SKILL.md — 表单事件
|
|
145
|
+
- microi.skills/v8-sql-query/SKILL.md — SQL 查询
|
|
146
|
+
- microi.skills/v8-http-integration/SKILL.md — HTTP 集成
|
|
147
|
+
- microi.skills/v8-cache-pattern/SKILL.md — Redis 缓存
|
|
148
|
+
- microi.skills/v8-security/SKILL.md — 安全规范
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
> Copilot 会自动将这些 Skill 作为上下文注入到每次对话中。
|
|
152
|
+
|
|
153
|
+
**方式 B:在对话中按需引用**
|
|
154
|
+
|
|
155
|
+
```
|
|
156
|
+
@workspace 参考 microi.skills/v8-crud-api/SKILL.md 帮我写一个用户管理的接口引擎
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
### Cursor
|
|
162
|
+
|
|
163
|
+
**方式 A:在 `.cursor/rules/` 目录中添加规则文件(推荐)**
|
|
164
|
+
|
|
165
|
+
在项目根目录创建 `.cursor/rules/microi-skills.mdc`:
|
|
166
|
+
|
|
167
|
+
```
|
|
168
|
+
---
|
|
169
|
+
description: Microi 项目技能规范
|
|
170
|
+
globs: ["microi-v8-engine/**/*.js", "Microi.Client/**/*.{vue,js,ts,css,scss}", "microi.uniapp/**/*.{vue,js,ts,css,scss,json}", "AI-Project/**/*.{vue,js,ts,css,scss,json,md}", "Microi.UI/**/*.{vue,js,ts,css,scss,md}", "microi.skills/**/*.md"]
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
处理 Microi 项目时,按任务类型参考以下技能文件获取 API 用法、界面规范和验收门禁:
|
|
174
|
+
- @microi.skills/v8-crud-api/SKILL.md
|
|
175
|
+
- @microi.skills/v8-table-event/SKILL.md
|
|
176
|
+
- @microi.skills/v8-sql-query/SKILL.md
|
|
177
|
+
- @microi.skills/v8-http-integration/SKILL.md
|
|
178
|
+
- @microi.skills/v8-cache-pattern/SKILL.md
|
|
179
|
+
- @microi.skills/v8-security/SKILL.md
|
|
180
|
+
- @microi.skills/microi-ui/SKILL.md
|
|
181
|
+
- @microi.skills/microi-uniapp-frontend/SKILL.md
|
|
182
|
+
- @microi.skills/microi-mobile-app-quality/SKILL.md
|
|
183
|
+
- @microi.skills/microi-system-delivery/SKILL.md
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
> Cursor 会在匹配 `microi-v8-engine/**/*.js` 的文件中自动加载这些规则。
|
|
187
|
+
|
|
188
|
+
**方式 B:合并到 `.cursorrules`**
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
for f in microi.skills/*/SKILL.md; do
|
|
192
|
+
echo -e "\n---\n" >> .cursorrules
|
|
193
|
+
cat "$f" >> .cursorrules
|
|
194
|
+
done
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
### Claude Code
|
|
200
|
+
|
|
201
|
+
**方式 A:添加到 `CLAUDE.md`(推荐)**
|
|
202
|
+
|
|
203
|
+
在项目根目录的 `CLAUDE.md` 中追加:
|
|
204
|
+
|
|
205
|
+
```markdown
|
|
206
|
+
## Microi 项目 Skills
|
|
207
|
+
|
|
208
|
+
处理 Microi 项目时,按任务类型参阅以下文件:
|
|
209
|
+
- microi.skills/v8-crud-api/SKILL.md
|
|
210
|
+
- microi.skills/v8-table-event/SKILL.md
|
|
211
|
+
- microi.skills/v8-sql-query/SKILL.md
|
|
212
|
+
- microi.skills/v8-http-integration/SKILL.md
|
|
213
|
+
- microi.skills/v8-cache-pattern/SKILL.md
|
|
214
|
+
- microi.skills/v8-security/SKILL.md
|
|
215
|
+
- microi.skills/microi-ui/SKILL.md
|
|
216
|
+
- microi.skills/microi-uniapp-frontend/SKILL.md
|
|
217
|
+
- microi.skills/microi-mobile-app-quality/SKILL.md
|
|
218
|
+
- microi.skills/microi-system-delivery/SKILL.md
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
**方式 B:批量追加内容到 `CLAUDE.md`**
|
|
222
|
+
|
|
223
|
+
```bash
|
|
224
|
+
for f in microi.skills/*/SKILL.md; do
|
|
225
|
+
echo -e "\n---\n" >> CLAUDE.md
|
|
226
|
+
cat "$f" >> CLAUDE.md
|
|
227
|
+
done
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## 安全与兼容底线
|
|
233
|
+
|
|
234
|
+
- 浏览器 FormEngine 请求优先携带真实 `_SysMenuId`;历史无菜单调用由后端从用户真实菜单缓存安全推断,后端可信 V8 不要求 `_SysMenuId`。
|
|
235
|
+
- `_InvokeType: 'Client'` 会触发表单 V8 事件,不是授权标记,也不能用来“避免递归”。
|
|
236
|
+
- 平台表按管理员专用、只读委托、按角色管理分级;控制面 API 与管理员专用表只允许主库复核后的 `Level >= 9999`,普通角色权限不能绕过,全部平台表拒绝匿名。
|
|
237
|
+
- 多租户、文件、Redis、MQ、对象存储和搜索能力必须由服务端绑定当前 `OsClient`。
|
|
238
|
+
- `setTimeout`、`Task.Run` 和进程内静态状态不能承担可靠后台任务或集群锁。
|
|
239
|
+
- 上传上限由平台默认值和 `sys_osclients` 租户配置共同约束;私有文件的浏览器访问必须绑定菜单、记录、字段和附件。
|
|
240
|
+
- CORS 未配置时为兼容历史默认允许 `*`,配置后才按租户域名收紧;SSRF 严格模式默认关闭,启用后按精确主机白名单放行。
|
|
241
|
+
- MCP 写入前先读取实时 schema/manifest,写后回读;超时先回读确认,不得立即重复创建。
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
## 使用效果示例
|
|
246
|
+
|
|
247
|
+
配置 Skills 后,AI 对话中的代码生成质量会显著提升:
|
|
248
|
+
|
|
249
|
+
**没有 Skills 时:**
|
|
250
|
+
```
|
|
251
|
+
你:帮我写一个分页查询用户列表的接口引擎
|
|
252
|
+
AI:(可能写出不用 _Where 参数化、没有 try-catch、没有权限校验的代码)
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
**有 Skills 时:**
|
|
256
|
+
```
|
|
257
|
+
你:帮我写一个分页查询用户列表的接口引擎
|
|
258
|
+
AI:参考 v8-crud-api Skill,生成完整代码:
|
|
259
|
+
✅ 使用 V8.FormEngine.GetTableData + _Where 参数化查询
|
|
260
|
+
✅ 包含分页参数校验
|
|
261
|
+
✅ 使用 V8.CurrentUser 做权限校验
|
|
262
|
+
✅ 规范的 V8.Result 返回格式
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
## 与 VS Code 插件 / MCP 的关系
|
|
268
|
+
|
|
269
|
+
| 方案 | 覆盖内容 | 适用场景 |
|
|
270
|
+
|------|---------|---------|
|
|
271
|
+
| **VS Code 插件** | V8 全部 API 知识 + 数据库表结构 + 代码补全 | 日常开发,自动化 |
|
|
272
|
+
| **MCP Server** | 实时查询数据、远程执行引擎 | AI 实时操作平台 |
|
|
273
|
+
| **Skills**(本项目) | 具体场景的编码最佳实践和代码模板 | 进阶模式,深度指导 |
|
|
274
|
+
|
|
275
|
+
> 💡 推荐三者搭配使用:插件提供 API 知识和表结构 → MCP 提供实时数据查询 → Skills 提供编码最佳实践。
|
|
276
|
+
|
|
277
|
+
## License
|
|
278
|
+
|
|
279
|
+
MIT
|
|
280
|
+
|
|
281
|
+
## 关键路由提示
|
|
282
|
+
|
|
283
|
+
- 独立 PC/H5/UniApp 前端:先读 `microi-frontend-sdk`,再读对应端的 UI/质量 Skill。
|
|
284
|
+
- 表单字段较多时:先读 `microi-form-layout`。默认优先使用 `diy_table.Tabs + diy_field.Tab` 做业务域分组,局部复杂区域再用 `CollapseGroup` 或字段级 `Tabs`。
|
|
285
|
+
- 树形+表格/表单:使用 `microi-left-right-layout`。
|
|
286
|
+
- 跨模块完整交付:从 `business-blueprint` 进入,由 `microi-system-delivery` 总控,并把 `v8-security`、`microi-db-schema` 和自动化验收作为强制门禁。
|