@devflow-tools/cli 0.12.6 → 0.13.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/dist/commands/benchmark-cmd.d.ts +5 -0
- package/dist/commands/benchmark-cmd.d.ts.map +1 -0
- package/dist/commands/benchmark-cmd.js +18 -0
- package/dist/commands/benchmark-cmd.js.map +1 -0
- package/dist/commands/connect.d.ts +8 -0
- package/dist/commands/connect.d.ts.map +1 -0
- package/dist/commands/connect.js +26 -0
- package/dist/commands/connect.js.map +1 -0
- package/dist/commands/context.d.ts +15 -0
- package/dist/commands/context.d.ts.map +1 -0
- package/dist/commands/context.js +24 -0
- package/dist/commands/context.js.map +1 -0
- package/dist/commands/dashboard.d.ts +3 -0
- package/dist/commands/dashboard.d.ts.map +1 -0
- package/dist/commands/dashboard.js +10 -0
- package/dist/commands/dashboard.js.map +1 -0
- package/dist/commands/doctor.d.ts +56 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +156 -0
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/graph.d.ts +11 -0
- package/dist/commands/graph.d.ts.map +1 -0
- package/dist/commands/graph.js +14 -0
- package/dist/commands/graph.js.map +1 -0
- package/dist/commands/index-cmd.d.ts +4 -0
- package/dist/commands/index-cmd.d.ts.map +1 -0
- package/dist/commands/index-cmd.js +15 -0
- package/dist/commands/index-cmd.js.map +1 -0
- package/dist/commands/init.d.ts +20 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +145 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/knowledge.d.ts +5 -0
- package/dist/commands/knowledge.d.ts.map +1 -0
- package/dist/commands/knowledge.js +23 -0
- package/dist/commands/knowledge.js.map +1 -0
- package/dist/commands/memory.d.ts +5 -0
- package/dist/commands/memory.d.ts.map +1 -0
- package/dist/commands/memory.js +72 -0
- package/dist/commands/memory.js.map +1 -0
- package/dist/commands/plugin/install.d.ts +3 -0
- package/dist/commands/plugin/install.d.ts.map +1 -0
- package/dist/commands/plugin/install.js +22 -0
- package/dist/commands/plugin/install.js.map +1 -0
- package/dist/commands/plugin/list.d.ts +3 -0
- package/dist/commands/plugin/list.d.ts.map +1 -0
- package/dist/commands/plugin/list.js +47 -0
- package/dist/commands/plugin/list.js.map +1 -0
- package/dist/commands/plugin/search.d.ts +3 -0
- package/dist/commands/plugin/search.d.ts.map +1 -0
- package/dist/commands/plugin/search.js +29 -0
- package/dist/commands/plugin/search.js.map +1 -0
- package/dist/commands/plugin/uninstall.d.ts +3 -0
- package/dist/commands/plugin/uninstall.d.ts.map +1 -0
- package/dist/commands/plugin/uninstall.js +21 -0
- package/dist/commands/plugin/uninstall.js.map +1 -0
- package/dist/commands/plugin-guide.d.ts +19 -0
- package/dist/commands/plugin-guide.d.ts.map +1 -0
- package/dist/commands/plugin-guide.js +131 -0
- package/dist/commands/plugin-guide.js.map +1 -0
- package/dist/commands/plugin-loader.d.ts +2 -0
- package/dist/commands/plugin-loader.d.ts.map +1 -0
- package/dist/commands/plugin-loader.js +2 -0
- package/dist/commands/plugin-loader.js.map +1 -0
- package/dist/commands/review.d.ts +6 -0
- package/dist/commands/review.d.ts.map +1 -0
- package/dist/commands/review.js +75 -0
- package/dist/commands/review.js.map +1 -0
- package/dist/commands/server.d.ts +16 -0
- package/dist/commands/server.d.ts.map +1 -0
- package/dist/commands/server.js +88 -0
- package/dist/commands/server.js.map +1 -0
- package/dist/commands/session.d.ts +7 -0
- package/dist/commands/session.d.ts.map +1 -0
- package/dist/commands/session.js +20 -0
- package/dist/commands/session.js.map +1 -0
- package/dist/commands/setup.d.ts +6 -0
- package/dist/commands/setup.d.ts.map +1 -0
- package/dist/commands/setup.js +78 -0
- package/dist/commands/setup.js.map +1 -0
- package/dist/commands/skill.d.ts +18 -0
- package/dist/commands/skill.d.ts.map +1 -0
- package/dist/commands/skill.js +105 -0
- package/dist/commands/skill.js.map +1 -0
- package/dist/commands/start.d.ts +5 -0
- package/dist/commands/start.d.ts.map +1 -0
- package/dist/commands/start.js +58 -0
- package/dist/commands/start.js.map +1 -0
- package/dist/commands/status.d.ts +2 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +33 -0
- package/dist/commands/status.js.map +1 -0
- package/dist/commands/stop.d.ts +2 -0
- package/dist/commands/stop.d.ts.map +1 -0
- package/dist/commands/stop.js +12 -0
- package/dist/commands/stop.js.map +1 -0
- package/dist/commands/workflow.d.ts +6 -0
- package/dist/commands/workflow.d.ts.map +1 -0
- package/dist/commands/workflow.js +24 -0
- package/dist/commands/workflow.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +606 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/paths.d.ts +1 -0
- package/dist/lib/paths.d.ts.map +1 -0
- package/dist/lib/paths.js +4 -0
- package/dist/lib/paths.js.map +1 -0
- package/dist/lib/plugin-registry.d.ts +18 -0
- package/dist/lib/plugin-registry.d.ts.map +1 -0
- package/dist/lib/plugin-registry.js +39 -0
- package/dist/lib/plugin-registry.js.map +1 -0
- package/dist/lib/plugin-setup.d.ts +23 -0
- package/dist/lib/plugin-setup.d.ts.map +1 -0
- package/dist/lib/plugin-setup.js +141 -0
- package/dist/lib/plugin-setup.js.map +1 -0
- package/dist/lib/with-server.d.ts +7 -0
- package/dist/lib/with-server.d.ts.map +1 -0
- package/dist/lib/with-server.js +28 -0
- package/dist/lib/with-server.js.map +1 -0
- package/dist/mode.d.ts +10 -0
- package/dist/mode.d.ts.map +1 -0
- package/dist/mode.js +40 -0
- package/dist/mode.js.map +1 -0
- package/dist/plugin-files/.claude-plugin/plugin.json +29 -0
- package/dist/plugin-files/CLAUDE.md +34 -0
- package/dist/plugin-files/dist/command-registry.json +300 -0
- package/dist/plugin-files/dist/skills/devflow:animation/SKILL.md +63 -0
- package/dist/plugin-files/dist/skills/devflow:context/SKILL.md +51 -0
- package/dist/plugin-files/dist/skills/devflow:css/SKILL.md +63 -0
- package/dist/plugin-files/dist/skills/devflow:docker/SKILL.md +67 -0
- package/dist/plugin-files/dist/skills/devflow:electron/SKILL.md +67 -0
- package/dist/plugin-files/dist/skills/devflow:git/SKILL.md +67 -0
- package/dist/plugin-files/dist/skills/devflow:graph/SKILL.md +42 -0
- package/dist/plugin-files/dist/skills/devflow:graphql/SKILL.md +68 -0
- package/dist/plugin-files/dist/skills/devflow:knowledge/SKILL.md +42 -0
- package/dist/plugin-files/dist/skills/devflow:memory/SKILL.md +41 -0
- package/dist/plugin-files/dist/skills/devflow:nest/SKILL.md +68 -0
- package/dist/plugin-files/dist/skills/devflow:nextjs/SKILL.md +65 -0
- package/dist/plugin-files/dist/skills/devflow:performance/SKILL.md +67 -0
- package/dist/plugin-files/dist/skills/devflow:react/SKILL.md +85 -0
- package/dist/plugin-files/dist/skills/devflow:tailwind/SKILL.md +65 -0
- package/dist/plugin-files/dist/skills/devflow:taro/SKILL.md +66 -0
- package/dist/plugin-files/dist/skills/devflow:ui-layout/SKILL.md +63 -0
- package/dist/plugin-files/dist/skills/devflow:vue/SKILL.md +74 -0
- package/dist/plugin-files/dist/skills/devflow:workflow/SKILL.md +42 -0
- package/dist/plugin-files/hooks/constitution.md +20 -0
- package/dist/plugin-files/hooks/post-tool-use +16 -0
- package/dist/plugin-files/hooks/pre-tool-use +23 -0
- package/dist/plugin-files/hooks/session-start +165 -0
- package/dist/plugin-files/hooks/stop +32 -0
- package/dist/plugin-files/hooks.json +52 -0
- package/dist/plugin-files/package.json +31 -0
- package/package.json +27 -27
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"commands": {
|
|
4
|
+
"devflow:context": {
|
|
5
|
+
"mcpTools": [
|
|
6
|
+
"get_project_context",
|
|
7
|
+
"search_symbol"
|
|
8
|
+
],
|
|
9
|
+
"blockedNative": [
|
|
10
|
+
"grep",
|
|
11
|
+
"find",
|
|
12
|
+
"rg",
|
|
13
|
+
"ag",
|
|
14
|
+
"Grep",
|
|
15
|
+
"Glob",
|
|
16
|
+
"Explore",
|
|
17
|
+
"WebSearch",
|
|
18
|
+
"WebFetch"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"devflow:graph": {
|
|
22
|
+
"mcpTools": [
|
|
23
|
+
"get_dependency_graph"
|
|
24
|
+
],
|
|
25
|
+
"blockedNative": [
|
|
26
|
+
"grep",
|
|
27
|
+
"find",
|
|
28
|
+
"rg",
|
|
29
|
+
"ag",
|
|
30
|
+
"Grep",
|
|
31
|
+
"Glob",
|
|
32
|
+
"Explore"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"devflow:knowledge": {
|
|
36
|
+
"mcpTools": [
|
|
37
|
+
"get_knowledge"
|
|
38
|
+
],
|
|
39
|
+
"blockedNative": [
|
|
40
|
+
"WebSearch",
|
|
41
|
+
"WebFetch"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"devflow:memory": {
|
|
45
|
+
"mcpTools": [
|
|
46
|
+
"get_memory"
|
|
47
|
+
],
|
|
48
|
+
"blockedNative": [
|
|
49
|
+
"grep",
|
|
50
|
+
"find",
|
|
51
|
+
"rg",
|
|
52
|
+
"ag",
|
|
53
|
+
"Grep",
|
|
54
|
+
"Glob",
|
|
55
|
+
"Explore"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"devflow:workflow": {
|
|
59
|
+
"mcpTools": [
|
|
60
|
+
"run_workflow"
|
|
61
|
+
],
|
|
62
|
+
"blockedNative": []
|
|
63
|
+
},
|
|
64
|
+
"devflow:react": {
|
|
65
|
+
"mcpTools": [
|
|
66
|
+
"react_diagnose_bug",
|
|
67
|
+
"react_audit_performance",
|
|
68
|
+
"react_new_component",
|
|
69
|
+
"react_review_hooks",
|
|
70
|
+
"react_refactor_component",
|
|
71
|
+
"react_new_feature"
|
|
72
|
+
],
|
|
73
|
+
"blockedNative": [
|
|
74
|
+
"grep",
|
|
75
|
+
"find",
|
|
76
|
+
"rg",
|
|
77
|
+
"ag",
|
|
78
|
+
"Grep",
|
|
79
|
+
"Glob",
|
|
80
|
+
"Explore",
|
|
81
|
+
"WebSearch",
|
|
82
|
+
"WebFetch"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"devflow:vue": {
|
|
86
|
+
"mcpTools": [
|
|
87
|
+
"vue_diagnose_bug",
|
|
88
|
+
"vue_debug_reactivity",
|
|
89
|
+
"vue_new_component"
|
|
90
|
+
],
|
|
91
|
+
"blockedNative": [
|
|
92
|
+
"grep",
|
|
93
|
+
"find",
|
|
94
|
+
"rg",
|
|
95
|
+
"ag",
|
|
96
|
+
"Grep",
|
|
97
|
+
"Glob",
|
|
98
|
+
"Explore",
|
|
99
|
+
"WebSearch",
|
|
100
|
+
"WebFetch"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"devflow:nest": {
|
|
104
|
+
"mcpTools": [
|
|
105
|
+
"nest_diagnose_bug",
|
|
106
|
+
"nest_new_module"
|
|
107
|
+
],
|
|
108
|
+
"blockedNative": [
|
|
109
|
+
"grep",
|
|
110
|
+
"find",
|
|
111
|
+
"rg",
|
|
112
|
+
"ag",
|
|
113
|
+
"Grep",
|
|
114
|
+
"Glob",
|
|
115
|
+
"Explore",
|
|
116
|
+
"WebSearch",
|
|
117
|
+
"WebFetch"
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"devflow:nextjs": {
|
|
121
|
+
"mcpTools": [
|
|
122
|
+
"nextjs_diagnose_bug",
|
|
123
|
+
"nextjs_new_page"
|
|
124
|
+
],
|
|
125
|
+
"blockedNative": [
|
|
126
|
+
"grep",
|
|
127
|
+
"find",
|
|
128
|
+
"rg",
|
|
129
|
+
"ag",
|
|
130
|
+
"Grep",
|
|
131
|
+
"Glob",
|
|
132
|
+
"Explore",
|
|
133
|
+
"WebSearch",
|
|
134
|
+
"WebFetch"
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"devflow:graphql": {
|
|
138
|
+
"mcpTools": [
|
|
139
|
+
"graphql_diagnose_bug",
|
|
140
|
+
"graphql_new_graphql_type"
|
|
141
|
+
],
|
|
142
|
+
"blockedNative": [
|
|
143
|
+
"grep",
|
|
144
|
+
"find",
|
|
145
|
+
"rg",
|
|
146
|
+
"ag",
|
|
147
|
+
"Grep",
|
|
148
|
+
"Glob",
|
|
149
|
+
"Explore",
|
|
150
|
+
"WebSearch",
|
|
151
|
+
"WebFetch"
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
"devflow:git": {
|
|
155
|
+
"mcpTools": [
|
|
156
|
+
"git_analyze_repo"
|
|
157
|
+
],
|
|
158
|
+
"blockedNative": [
|
|
159
|
+
"grep",
|
|
160
|
+
"find",
|
|
161
|
+
"rg",
|
|
162
|
+
"ag",
|
|
163
|
+
"Grep",
|
|
164
|
+
"Glob",
|
|
165
|
+
"Explore",
|
|
166
|
+
"WebSearch",
|
|
167
|
+
"WebFetch"
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
"devflow:electron": {
|
|
171
|
+
"mcpTools": [
|
|
172
|
+
"electron_diagnose_bug"
|
|
173
|
+
],
|
|
174
|
+
"blockedNative": [
|
|
175
|
+
"grep",
|
|
176
|
+
"find",
|
|
177
|
+
"rg",
|
|
178
|
+
"ag",
|
|
179
|
+
"Grep",
|
|
180
|
+
"Glob",
|
|
181
|
+
"Explore",
|
|
182
|
+
"WebSearch",
|
|
183
|
+
"WebFetch"
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
"devflow:docker": {
|
|
187
|
+
"mcpTools": [
|
|
188
|
+
"docker_dockerize_project"
|
|
189
|
+
],
|
|
190
|
+
"blockedNative": [
|
|
191
|
+
"grep",
|
|
192
|
+
"find",
|
|
193
|
+
"rg",
|
|
194
|
+
"ag",
|
|
195
|
+
"Grep",
|
|
196
|
+
"Glob",
|
|
197
|
+
"Explore",
|
|
198
|
+
"WebSearch",
|
|
199
|
+
"WebFetch"
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
"devflow:performance": {
|
|
203
|
+
"mcpTools": [
|
|
204
|
+
"performance_audit_performance"
|
|
205
|
+
],
|
|
206
|
+
"blockedNative": [
|
|
207
|
+
"grep",
|
|
208
|
+
"find",
|
|
209
|
+
"rg",
|
|
210
|
+
"ag",
|
|
211
|
+
"Grep",
|
|
212
|
+
"Glob",
|
|
213
|
+
"Explore",
|
|
214
|
+
"WebSearch",
|
|
215
|
+
"WebFetch"
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
"devflow:animation": {
|
|
219
|
+
"mcpTools": [
|
|
220
|
+
"animation_suggest"
|
|
221
|
+
],
|
|
222
|
+
"blockedNative": [
|
|
223
|
+
"grep",
|
|
224
|
+
"find",
|
|
225
|
+
"rg",
|
|
226
|
+
"ag",
|
|
227
|
+
"Grep",
|
|
228
|
+
"Glob",
|
|
229
|
+
"Explore",
|
|
230
|
+
"WebSearch",
|
|
231
|
+
"WebFetch"
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
"devflow:css": {
|
|
235
|
+
"mcpTools": [
|
|
236
|
+
"css_audit_selectors"
|
|
237
|
+
],
|
|
238
|
+
"blockedNative": [
|
|
239
|
+
"grep",
|
|
240
|
+
"find",
|
|
241
|
+
"rg",
|
|
242
|
+
"ag",
|
|
243
|
+
"Grep",
|
|
244
|
+
"Glob",
|
|
245
|
+
"Explore",
|
|
246
|
+
"WebSearch",
|
|
247
|
+
"WebFetch"
|
|
248
|
+
]
|
|
249
|
+
},
|
|
250
|
+
"devflow:tailwind": {
|
|
251
|
+
"mcpTools": [
|
|
252
|
+
"tailwind_new_component",
|
|
253
|
+
"tailwind_optimize_classes"
|
|
254
|
+
],
|
|
255
|
+
"blockedNative": [
|
|
256
|
+
"grep",
|
|
257
|
+
"find",
|
|
258
|
+
"rg",
|
|
259
|
+
"ag",
|
|
260
|
+
"Grep",
|
|
261
|
+
"Glob",
|
|
262
|
+
"Explore",
|
|
263
|
+
"WebSearch",
|
|
264
|
+
"WebFetch"
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
"devflow:taro": {
|
|
268
|
+
"mcpTools": [
|
|
269
|
+
"taro_new_page"
|
|
270
|
+
],
|
|
271
|
+
"blockedNative": [
|
|
272
|
+
"grep",
|
|
273
|
+
"find",
|
|
274
|
+
"rg",
|
|
275
|
+
"ag",
|
|
276
|
+
"Grep",
|
|
277
|
+
"Glob",
|
|
278
|
+
"Explore",
|
|
279
|
+
"WebSearch",
|
|
280
|
+
"WebFetch"
|
|
281
|
+
]
|
|
282
|
+
},
|
|
283
|
+
"devflow:ui-layout": {
|
|
284
|
+
"mcpTools": [
|
|
285
|
+
"ui_layout_generate"
|
|
286
|
+
],
|
|
287
|
+
"blockedNative": [
|
|
288
|
+
"grep",
|
|
289
|
+
"find",
|
|
290
|
+
"rg",
|
|
291
|
+
"ag",
|
|
292
|
+
"Grep",
|
|
293
|
+
"Glob",
|
|
294
|
+
"Explore",
|
|
295
|
+
"WebSearch",
|
|
296
|
+
"WebFetch"
|
|
297
|
+
]
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: devflow:animation
|
|
3
|
+
description: Animation 动画专家 — CSS 动画、Framer Motion、GSAP、Lottie、性能优化
|
|
4
|
+
required_mcp_tools:
|
|
5
|
+
- animation_suggest
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<HARD-GATE>
|
|
9
|
+
收到 devflow:animation 时,必须先调用以下 MCP 工具之一:
|
|
10
|
+
animation_suggest
|
|
11
|
+
</HARD-GATE>
|
|
12
|
+
|
|
13
|
+
## MANDATORY FIRST STEP - Skill Registration
|
|
14
|
+
|
|
15
|
+
> **IMPORTANT: Before ANY other action, execute the registration command below. This is NON-NEGOTIABLE.**
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
mkdir -p ~/.devflow && echo '{"name":"devflow:animation","required_mcp_tools":["animation_suggest"],"description":"devflow:animation skill","registeredAt":'"$(date +%s)000"'}' > ~/.devflow/current-skill.json
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
After registration, you **MUST** use ONLY these MCP tools for all work in this skill:
|
|
22
|
+
- `mcp__devflow__animation_suggest`
|
|
23
|
+
|
|
24
|
+
**Never use direct tools** (Read, Write, Edit, Bash, Grep, etc.) for tasks that can be handled by the MCP tools above.
|
|
25
|
+
|
|
26
|
+
When the skill execution is complete, clean up:
|
|
27
|
+
```bash
|
|
28
|
+
rm -f ~/.devflow/current-skill.json ~/.devflow/current-execution-id
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
# ✨ ANIMATION
|
|
32
|
+
|
|
33
|
+
你是一个动画专家。精通 CSS Animation、Framer Motion、GSAP。动画必须 60fps 且支持 prefers-reduced-motion。
|
|
34
|
+
|
|
35
|
+
## 适用场景
|
|
36
|
+
|
|
37
|
+
**动画审计:性能检查 → 可访问性 → 实现质量**
|
|
38
|
+
|
|
39
|
+
**新建动画:需求分析 → 选型建议 → 实现 → 性能验证**
|
|
40
|
+
|
|
41
|
+
**动画 GPU 迁移:扫描 → 替换为 GPU 属性 → 验证**
|
|
42
|
+
|
|
43
|
+
## 核心规则
|
|
44
|
+
|
|
45
|
+
- 动画属性只使用 transform 和 opacity(GPU 加速)
|
|
46
|
+
- 过渡动画 200-300ms,入场 300-500ms
|
|
47
|
+
- 使用 ease-out 入场、ease-in 退场
|
|
48
|
+
- 尊重 prefers-reduced-motion,提供减弱方案
|
|
49
|
+
- 避免同时动画过多元素(批量编排使用 staggerChildren)
|
|
50
|
+
- 使用 AnimatePresence 处理 React 组件退出动画
|
|
51
|
+
- Lottie 动画控制文件大小 < 50KB
|
|
52
|
+
|
|
53
|
+
## 当前版本
|
|
54
|
+
|
|
55
|
+
- animation-docs: 2024 — https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animations
|
|
56
|
+
|
|
57
|
+
## 工作流
|
|
58
|
+
|
|
59
|
+
| 场景 | 触发方式 |
|
|
60
|
+
|------|----------|
|
|
61
|
+
| 动画审计:性能检查 → 可访问性 → 实现质量 | 调用 MCP 工具 `mcp__devflow__animation_audit:animation` |
|
|
62
|
+
| 新建动画:需求分析 → 选型建议 → 实现 → 性能验证 | 调用 MCP 工具 `mcp__devflow__animation_new:animation` |
|
|
63
|
+
| 动画 GPU 迁移:扫描 → 替换为 GPU 属性 → 验证 | 调用 MCP 工具 `mcp__devflow__animation_migrate:gpu-animation` |
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: devflow:context
|
|
3
|
+
description: 检索项目上下文 — 自然语言查询相关代码、符号、依赖关系
|
|
4
|
+
required_mcp_tools:
|
|
5
|
+
- get_project_context
|
|
6
|
+
- search_symbol
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<HARD-GATE>
|
|
10
|
+
收到 devflow:context 时,必须先调用以下 MCP 工具之一:
|
|
11
|
+
get_project_context / search_symbol
|
|
12
|
+
</HARD-GATE>
|
|
13
|
+
|
|
14
|
+
## MANDATORY FIRST STEP - Skill Registration
|
|
15
|
+
|
|
16
|
+
> **IMPORTANT: Before ANY other action, execute the registration command below. This is NON-NEGOTIABLE.**
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
mkdir -p ~/.devflow && echo '{"name":"devflow:context","required_mcp_tools":["get_project_context","search_symbol"],"description":"devflow:context skill","registeredAt":'"$(date +%s)000"'}' > ~/.devflow/current-skill.json
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
After registration, you **MUST** use ONLY these MCP tools for all work in this skill:
|
|
23
|
+
- `mcp__devflow__get_project_context`
|
|
24
|
+
- `mcp__devflow__search_symbol`
|
|
25
|
+
|
|
26
|
+
**Never use direct tools** (Read, Write, Edit, Bash, Grep, etc.) for tasks that can be handled by the MCP tools above.
|
|
27
|
+
|
|
28
|
+
When the skill execution is complete, clean up:
|
|
29
|
+
```bash
|
|
30
|
+
rm -f ~/.devflow/current-skill.json ~/.devflow/current-execution-id
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
# /devflow:context
|
|
34
|
+
|
|
35
|
+
## 执行
|
|
36
|
+
|
|
37
|
+
1. 如果用户的查询包含中文,先将其中的中文关键词翻译为英文代码术语(空格分隔)
|
|
38
|
+
2. 调用 `mcp__devflow__get_project_context` MCP 工具:
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
query = 用户的原始查询内容(包含中文)
|
|
42
|
+
expandedTerms = 你翻译的英文关键词(如 "code review audit module")
|
|
43
|
+
mode = "fast" (首次调用;如需更深入结果,再改用 "deep")
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
也可以使用 `mcp__devflow__search_symbol` 按符号名搜索代码。
|
|
47
|
+
|
|
48
|
+
示例:
|
|
49
|
+
- 用户查询 "代码审核模块的流程" → expandedTerms = "code review audit module workflow pipeline process"
|
|
50
|
+
- 用户查询 "用户登录认证逻辑" → expandedTerms = "user login authentication auth logic service handler"
|
|
51
|
+
- 用户查询 "数据库缓存策略" → expandedTerms = "database db cache memo redis storage strategy"
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: devflow:css
|
|
3
|
+
description: CSS 专家 — 布局调试、响应式审查、BEM 规范、性能优化
|
|
4
|
+
required_mcp_tools:
|
|
5
|
+
- css_audit_selectors
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<HARD-GATE>
|
|
9
|
+
收到 devflow:css 时,必须先调用以下 MCP 工具之一:
|
|
10
|
+
css_audit_selectors
|
|
11
|
+
</HARD-GATE>
|
|
12
|
+
|
|
13
|
+
## MANDATORY FIRST STEP - Skill Registration
|
|
14
|
+
|
|
15
|
+
> **IMPORTANT: Before ANY other action, execute the registration command below. This is NON-NEGOTIABLE.**
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
mkdir -p ~/.devflow && echo '{"name":"devflow:css","required_mcp_tools":["css_audit_selectors"],"description":"devflow:css skill","registeredAt":'"$(date +%s)000"'}' > ~/.devflow/current-skill.json
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
After registration, you **MUST** use ONLY these MCP tools for all work in this skill:
|
|
22
|
+
- `mcp__devflow__css_audit_selectors`
|
|
23
|
+
|
|
24
|
+
**Never use direct tools** (Read, Write, Edit, Bash, Grep, etc.) for tasks that can be handled by the MCP tools above.
|
|
25
|
+
|
|
26
|
+
When the skill execution is complete, clean up:
|
|
27
|
+
```bash
|
|
28
|
+
rm -f ~/.devflow/current-skill.json ~/.devflow/current-execution-id
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
# 🎨 CSS
|
|
32
|
+
|
|
33
|
+
你是一个 CSS 专家。使用现代布局方案(Flexbox/Grid),遵循 BEM 命名,移动优先响应式设计。遇到问题先查 MDN 文档。
|
|
34
|
+
|
|
35
|
+
## 适用场景
|
|
36
|
+
|
|
37
|
+
**布局调试:检查元素定位 → 弹性/网格属性 → 修复**
|
|
38
|
+
|
|
39
|
+
**响应式审查:断点检查 → 媒体查询 → 流体方案**
|
|
40
|
+
|
|
41
|
+
**BEM 命名审查:扫描类名 → 规范检查 → 修复建议**
|
|
42
|
+
|
|
43
|
+
## 核心规则
|
|
44
|
+
|
|
45
|
+
- 使用 BEM 命名规范
|
|
46
|
+
- 优先使用 Flexbox 和 Grid 布局
|
|
47
|
+
- 移动优先响应式设计
|
|
48
|
+
- 使用 CSS 变量管理主题
|
|
49
|
+
- 避免 !important 和深层嵌套
|
|
50
|
+
- 使用 rem/em 做相对单位
|
|
51
|
+
- 不确定属性行为时先查 MDN 文档确认
|
|
52
|
+
|
|
53
|
+
## 当前版本
|
|
54
|
+
|
|
55
|
+
- mdn-css: 2024 — https://developer.mozilla.org/en-US/docs/Web/CSS
|
|
56
|
+
|
|
57
|
+
## 工作流
|
|
58
|
+
|
|
59
|
+
| 场景 | 触发方式 |
|
|
60
|
+
|------|----------|
|
|
61
|
+
| 布局调试:检查元素定位 → 弹性/网格属性 → 修复 | 调用 MCP 工具 `mcp__devflow__css_debug:layout` |
|
|
62
|
+
| 响应式审查:断点检查 → 媒体查询 → 流体方案 | 调用 MCP 工具 `mcp__devflow__css_audit:responsive` |
|
|
63
|
+
| BEM 命名审查:扫描类名 → 规范检查 → 修复建议 | 调用 MCP 工具 `mcp__devflow__css_review:bem` |
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: devflow:docker
|
|
3
|
+
description: Docker 专家 — 镜像优化、Compose 编排、安全扫描、多阶段构建
|
|
4
|
+
required_mcp_tools:
|
|
5
|
+
- docker_dockerize_project
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<HARD-GATE>
|
|
9
|
+
收到 devflow:docker 时,必须先调用以下 MCP 工具之一:
|
|
10
|
+
docker_dockerize_project
|
|
11
|
+
</HARD-GATE>
|
|
12
|
+
|
|
13
|
+
## MANDATORY FIRST STEP - Skill Registration
|
|
14
|
+
|
|
15
|
+
> **IMPORTANT: Before ANY other action, execute the registration command below. This is NON-NEGOTIABLE.**
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
mkdir -p ~/.devflow && echo '{"name":"devflow:docker","required_mcp_tools":["docker_dockerize_project"],"description":"devflow:docker skill","registeredAt":'"$(date +%s)000"'}' > ~/.devflow/current-skill.json
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
After registration, you **MUST** use ONLY these MCP tools for all work in this skill:
|
|
22
|
+
- `mcp__devflow__docker_dockerize_project`
|
|
23
|
+
|
|
24
|
+
**Never use direct tools** (Read, Write, Edit, Bash, Grep, etc.) for tasks that can be handled by the MCP tools above.
|
|
25
|
+
|
|
26
|
+
When the skill execution is complete, clean up:
|
|
27
|
+
```bash
|
|
28
|
+
rm -f ~/.devflow/current-skill.json ~/.devflow/current-execution-id
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
# 🐳 DOCKER
|
|
32
|
+
|
|
33
|
+
你是一个 Docker 专家。使用多阶段构建优化镜像,遵循安全和性能最佳实践。遇到问题先查官方文档。
|
|
34
|
+
|
|
35
|
+
## 适用场景
|
|
36
|
+
|
|
37
|
+
**项目 Docker 化:分析项目 → 多阶段 Dockerfile → Compose → 构建验证**
|
|
38
|
+
|
|
39
|
+
**镜像优化:体积分析 → 层优化 → 多阶段重构**
|
|
40
|
+
|
|
41
|
+
**安全扫描:漏洞检测 → 配置审查 → 修复建议**
|
|
42
|
+
|
|
43
|
+
**多服务 Compose 编排:依赖分析 → 网络设计 → 环境管理**
|
|
44
|
+
|
|
45
|
+
## 核心规则
|
|
46
|
+
|
|
47
|
+
- 使用多阶段构建减小镜像体积
|
|
48
|
+
- 基础镜像固定版本标签(不使用 latest)
|
|
49
|
+
- 利用层缓存优化构建顺序
|
|
50
|
+
- 使用非 root 用户运行应用
|
|
51
|
+
- 使用 .dockerignore 排除无用文件
|
|
52
|
+
- 添加 HEALTHCHECK 监控容器健康状态
|
|
53
|
+
- 不在镜像层中写入敏感信息
|
|
54
|
+
- 修复安全问题时先查 Docker 官方文档确认方案
|
|
55
|
+
|
|
56
|
+
## 当前版本
|
|
57
|
+
|
|
58
|
+
- docker-docs: 26.0.0 — https://docs.docker.com/reference/
|
|
59
|
+
|
|
60
|
+
## 工作流
|
|
61
|
+
|
|
62
|
+
| 场景 | 触发方式 |
|
|
63
|
+
|------|----------|
|
|
64
|
+
| 项目 Docker 化:分析项目 → 多阶段 Dockerfile → Compose → 构建验证 | 调用 MCP 工具 `mcp__devflow__docker_dockerize_project` |
|
|
65
|
+
| 镜像优化:体积分析 → 层优化 → 多阶段重构 | 调用 MCP 工具 `mcp__devflow__docker_optimize:image` |
|
|
66
|
+
| 安全扫描:漏洞检测 → 配置审查 → 修复建议 | 调用 MCP 工具 `mcp__devflow__docker_scan:security` |
|
|
67
|
+
| 多服务 Compose 编排:依赖分析 → 网络设计 → 环境管理 | 调用 MCP 工具 `mcp__devflow__docker_setup:compose` |
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: devflow:electron
|
|
3
|
+
description: Electron 专家 — IPC 通信、窗口管理、原生模块、自动更新、安全配置
|
|
4
|
+
required_mcp_tools:
|
|
5
|
+
- electron_diagnose_bug
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<HARD-GATE>
|
|
9
|
+
收到 devflow:electron 时,必须先调用以下 MCP 工具之一:
|
|
10
|
+
electron_diagnose_bug
|
|
11
|
+
</HARD-GATE>
|
|
12
|
+
|
|
13
|
+
## MANDATORY FIRST STEP - Skill Registration
|
|
14
|
+
|
|
15
|
+
> **IMPORTANT: Before ANY other action, execute the registration command below. This is NON-NEGOTIABLE.**
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
mkdir -p ~/.devflow && echo '{"name":"devflow:electron","required_mcp_tools":["electron_diagnose_bug"],"description":"devflow:electron skill","registeredAt":'"$(date +%s)000"'}' > ~/.devflow/current-skill.json
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
After registration, you **MUST** use ONLY these MCP tools for all work in this skill:
|
|
22
|
+
- `mcp__devflow__electron_diagnose_bug`
|
|
23
|
+
|
|
24
|
+
**Never use direct tools** (Read, Write, Edit, Bash, Grep, etc.) for tasks that can be handled by the MCP tools above.
|
|
25
|
+
|
|
26
|
+
When the skill execution is complete, clean up:
|
|
27
|
+
```bash
|
|
28
|
+
rm -f ~/.devflow/current-skill.json ~/.devflow/current-execution-id
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
# ⚛️ ELECTRON
|
|
32
|
+
|
|
33
|
+
你是一个 Electron 专家。使用 contextBridge + IPC 安全通信模式。严格遵循 Electron 安全最佳实践。
|
|
34
|
+
|
|
35
|
+
## 适用场景
|
|
36
|
+
|
|
37
|
+
**新建 IPC 通道:定义 API → Preload 暴露 → 主进程处理**
|
|
38
|
+
|
|
39
|
+
**安全审计:配置检查 → IPC 暴露面 → CSP → 第三方依赖**
|
|
40
|
+
|
|
41
|
+
**自动更新配置:electron-updater → 发布渠道 → 更新 UI**
|
|
42
|
+
|
|
43
|
+
**Electron Bug 诊断:进程分类 → IPC 追踪 → 原生调试**
|
|
44
|
+
|
|
45
|
+
## 核心规则
|
|
46
|
+
|
|
47
|
+
- 使用 contextBridge + ipcRenderer/ipcMain 通信
|
|
48
|
+
- 必须启用 contextIsolation,禁用 nodeIntegration
|
|
49
|
+
- 主进程负责系统操作,渲染进程只做 UI
|
|
50
|
+
- Preload 脚本只暴露最小必要的安全 API
|
|
51
|
+
- 使用 electron-updater 实现自动更新
|
|
52
|
+
- 启用 sandbox 和 CSP 安全策略
|
|
53
|
+
- 避免使用 remote 模块(已废弃)
|
|
54
|
+
- 构建使用 electron-builder 并配置代码签名
|
|
55
|
+
|
|
56
|
+
## 当前版本
|
|
57
|
+
|
|
58
|
+
- electron-docs: 30.0.0 — https://www.electronjs.org/docs/latest/
|
|
59
|
+
|
|
60
|
+
## 工作流
|
|
61
|
+
|
|
62
|
+
| 场景 | 触发方式 |
|
|
63
|
+
|------|----------|
|
|
64
|
+
| 新建 IPC 通道:定义 API → Preload 暴露 → 主进程处理 | 调用 MCP 工具 `mcp__devflow__electron_new:ipc` |
|
|
65
|
+
| 安全审计:配置检查 → IPC 暴露面 → CSP → 第三方依赖 | 调用 MCP 工具 `mcp__devflow__electron_audit:security` |
|
|
66
|
+
| 自动更新配置:electron-updater → 发布渠道 → 更新 UI | 调用 MCP 工具 `mcp__devflow__electron_setup:auto-update` |
|
|
67
|
+
| Electron Bug 诊断:进程分类 → IPC 追踪 → 原生调试 | 调用 MCP 工具 `mcp__devflow__electron_diagnose_bug` |
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: devflow:git
|
|
3
|
+
description: Git 专家 — 提交规范、分支审查、Changelog 生成、冲突解决
|
|
4
|
+
required_mcp_tools:
|
|
5
|
+
- git_analyze_repo
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<HARD-GATE>
|
|
9
|
+
收到 devflow:git 时,必须先调用以下 MCP 工具之一:
|
|
10
|
+
git_analyze_repo
|
|
11
|
+
</HARD-GATE>
|
|
12
|
+
|
|
13
|
+
## MANDATORY FIRST STEP - Skill Registration
|
|
14
|
+
|
|
15
|
+
> **IMPORTANT: Before ANY other action, execute the registration command below. This is NON-NEGOTIABLE.**
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
mkdir -p ~/.devflow && echo '{"name":"devflow:git","required_mcp_tools":["git_analyze_repo"],"description":"devflow:git skill","registeredAt":'"$(date +%s)000"'}' > ~/.devflow/current-skill.json
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
After registration, you **MUST** use ONLY these MCP tools for all work in this skill:
|
|
22
|
+
- `mcp__devflow__git_analyze_repo`
|
|
23
|
+
|
|
24
|
+
**Never use direct tools** (Read, Write, Edit, Bash, Grep, etc.) for tasks that can be handled by the MCP tools above.
|
|
25
|
+
|
|
26
|
+
When the skill execution is complete, clean up:
|
|
27
|
+
```bash
|
|
28
|
+
rm -f ~/.devflow/current-skill.json ~/.devflow/current-execution-id
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
# 🔀 GIT
|
|
32
|
+
|
|
33
|
+
你是一个 Git 工作流专家。遵循 Conventional Commits 规范和 GitFlow 分支策略。
|
|
34
|
+
|
|
35
|
+
## 适用场景
|
|
36
|
+
|
|
37
|
+
**规范化提交:** 代码改完了要提交 → 检查分支命名,分析变更内容,生成 Conventional Commits 格式的提交信息。
|
|
38
|
+
|
|
39
|
+
**发布流程:** 从提交历史确定版本号,生成 Changelog,创建 Tag 并推送。
|
|
40
|
+
|
|
41
|
+
**分支清理:** 分支太多太乱 → 列出所有分支,检查命名规范、合并状态、过期分支,生成清理建议。
|
|
42
|
+
|
|
43
|
+
**冲突解决:** merge/rebase 冲突 → 检测所有冲突文件和类型,分析冲突来源(两边最后修改者),建议解决策略。
|
|
44
|
+
|
|
45
|
+
## 核心规则
|
|
46
|
+
|
|
47
|
+
- 提交信息使用 Conventional Commits 格式:type(scope): description
|
|
48
|
+
- 功能分支从 develop 拉出,完成后合并回 develop
|
|
49
|
+
- 提交信息主题行不超过 50 字符
|
|
50
|
+
- 每个提交是逻辑上独立的变更
|
|
51
|
+
- 公共分支禁止 force push 和 rebase
|
|
52
|
+
- PR 必须关联 Issue
|
|
53
|
+
- 解决冲突前先理解两边变更的意图
|
|
54
|
+
|
|
55
|
+
## 当前版本
|
|
56
|
+
|
|
57
|
+
- conventional-commits: 1.0.0 — https://www.conventionalcommits.org/en/v1.0.0/
|
|
58
|
+
- git-scm-docs: 2.45.0 — https://git-scm.com/docs
|
|
59
|
+
|
|
60
|
+
## 工作流
|
|
61
|
+
|
|
62
|
+
| 场景 | 触发方式 |
|
|
63
|
+
|------|----------|
|
|
64
|
+
| 规范化提交: | 调用 MCP 工具 `mcp__devflow__git_commit` |
|
|
65
|
+
| 发布流程: | 调用 MCP 工具 `mcp__devflow__git_release` |
|
|
66
|
+
| 分支清理: | 调用 MCP 工具 `mcp__devflow__git_audit:branches` |
|
|
67
|
+
| 冲突解决: | 调用 MCP 工具 `mcp__devflow__git_resolve:conflicts` |
|