@brushes/schema-to-view 1.0.7 → 1.0.8
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/package.json +1 -1
- package/skills/SKILL.md +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brushes/schema-to-view",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "根据 UI 截图/设计稿动态生成低代码平台 JSON schema。当用户提供 UI 图片要求生成页面、将设计稿转为低代码页面、根据截图创建页面 JSON、图片转 Schema 时使用此 skill。触发条件:UI 截图 + 低代码、设计稿转代码、图片生成页面、schema 生成",
|
|
5
5
|
"keywords": ["pi-package"],
|
|
6
6
|
"pi": {
|
package/skills/SKILL.md
CHANGED
|
@@ -22,6 +22,14 @@ scope:
|
|
|
22
22
|
|
|
23
23
|
将 Pc / Web UI 设计稿/截图转换为 web-lowcode 平台可用的 JSON schema 文件。
|
|
24
24
|
|
|
25
|
+
## 使用前准备
|
|
26
|
+
|
|
27
|
+
如果 `zai-mcp-server` 命令不在 MCP服务 中,需先安装:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npx -y @z_ai/mcp-server
|
|
31
|
+
```
|
|
32
|
+
|
|
25
33
|
## 执行流程
|
|
26
34
|
|
|
27
35
|
### 第一步:分析 Pc / Web UI 截图
|
|
@@ -29,7 +37,7 @@ scope:
|
|
|
29
37
|
使用 MCP 视觉工具分析用户提供的 Pc / Web UI 图片:
|
|
30
38
|
|
|
31
39
|
```
|
|
32
|
-
|
|
40
|
+
zai-mcp-server__analyze_image 或 image-vision-mcp__image_understanding
|
|
33
41
|
```
|
|
34
42
|
|
|
35
43
|
分析要点:
|