@kvasar/google-stitch 0.1.10 → 0.1.12
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/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
package/skills/SKILL.md
CHANGED
|
@@ -56,7 +56,7 @@ If the user wants to start a new design workspace:
|
|
|
56
56
|
|
|
57
57
|
- `create_project`
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
Example prompts:
|
|
60
60
|
|
|
61
61
|
- create a new project
|
|
62
62
|
- start a new app design
|
|
@@ -65,8 +65,22 @@ Examples:
|
|
|
65
65
|
If the user wants existing project info:
|
|
66
66
|
|
|
67
67
|
- `get_project`
|
|
68
|
+
|
|
69
|
+
Example prompts:
|
|
70
|
+
|
|
71
|
+
- Get the details of project 4044680601076201931
|
|
72
|
+
- Show me the project info
|
|
73
|
+
- What’s in my project?
|
|
74
|
+
|
|
75
|
+
|
|
68
76
|
- `list_projects`
|
|
69
77
|
|
|
78
|
+
Example prompts:
|
|
79
|
+
|
|
80
|
+
- List all my Stitch projects
|
|
81
|
+
- Show me my projects
|
|
82
|
+
- List shared projects
|
|
83
|
+
|
|
70
84
|
---
|
|
71
85
|
|
|
72
86
|
### Screen generation
|
|
@@ -75,7 +89,7 @@ For new screens from prompts:
|
|
|
75
89
|
|
|
76
90
|
- `generate_screen_from_text`
|
|
77
91
|
|
|
78
|
-
|
|
92
|
+
Example prompts:
|
|
79
93
|
|
|
80
94
|
- create login page
|
|
81
95
|
- generate dashboard
|
|
@@ -127,7 +141,7 @@ For modifying existing screens:
|
|
|
127
141
|
|
|
128
142
|
- `edit_screens`
|
|
129
143
|
|
|
130
|
-
|
|
144
|
+
Example prompts:
|
|
131
145
|
|
|
132
146
|
- make button blue
|
|
133
147
|
- add navbar
|
|
@@ -165,7 +179,7 @@ For brand consistency and theming:
|
|
|
165
179
|
|
|
166
180
|
- `create_design_system`
|
|
167
181
|
|
|
168
|
-
|
|
182
|
+
Example prompts:
|
|
169
183
|
|
|
170
184
|
- Create a dark mode design system with Inter font and round corners
|
|
171
185
|
- Set up a design system with blue as the primary color
|
|
@@ -173,7 +187,7 @@ Examples:
|
|
|
173
187
|
|
|
174
188
|
- `update_design_system`
|
|
175
189
|
|
|
176
|
-
|
|
190
|
+
Example prompts:
|
|
177
191
|
|
|
178
192
|
- Update the design system to use dark mode
|
|
179
193
|
- Change the font to Geist in our design system
|
|
@@ -182,7 +196,7 @@ Examples:
|
|
|
182
196
|
|
|
183
197
|
- `list_design_systems`
|
|
184
198
|
|
|
185
|
-
|
|
199
|
+
Example prompts:
|
|
186
200
|
|
|
187
201
|
- List all design systems in project 12345
|
|
188
202
|
- Show me the available design systems
|
|
@@ -193,7 +207,7 @@ Examples:
|
|
|
193
207
|
|
|
194
208
|
Applies a design system to one or more screens, modifying their appearance to match the system’s tokens (colors, fonts, shapes).
|
|
195
209
|
|
|
196
|
-
|
|
210
|
+
Example prompts:
|
|
197
211
|
|
|
198
212
|
- Apply the blue design system to all screens in project 12345
|
|
199
213
|
- Restyle these screens with the brand identity
|
|
@@ -45,12 +45,14 @@ export class StitchMCPClient {
|
|
|
45
45
|
this.connected = true;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
async createProject(
|
|
48
|
+
async createProject(name: string) {
|
|
49
49
|
await this.connect();
|
|
50
50
|
|
|
51
51
|
return this.client.callTool({
|
|
52
52
|
name: "create_project",
|
|
53
|
-
arguments:
|
|
53
|
+
arguments: {
|
|
54
|
+
name: name,
|
|
55
|
+
},
|
|
54
56
|
});
|
|
55
57
|
}
|
|
56
58
|
|
|
@@ -7,7 +7,7 @@ import { Type } from "@sinclair/typebox";
|
|
|
7
7
|
import { StitchMCPClient } from "../services/stitch-mcp-client.js";
|
|
8
8
|
|
|
9
9
|
export interface CreateProjectParams {
|
|
10
|
-
|
|
10
|
+
name: string;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export function createProjectTool(client: StitchMCPClient) {
|
|
@@ -20,7 +20,7 @@ export function createProjectTool(client: StitchMCPClient) {
|
|
|
20
20
|
),
|
|
21
21
|
}),
|
|
22
22
|
async execute(_id: string, params: CreateProjectParams) {
|
|
23
|
-
const result = await client.createProject(params.
|
|
23
|
+
const result = await client.createProject(params.name);
|
|
24
24
|
return {
|
|
25
25
|
content: [{ type: "text" as const, text: JSON.stringify(result, null, 2) }],
|
|
26
26
|
};
|