@devflow-tools/cli 0.12.6 → 0.13.1

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.
Files changed (154) hide show
  1. package/dist/commands/benchmark-cmd.d.ts +5 -0
  2. package/dist/commands/benchmark-cmd.d.ts.map +1 -0
  3. package/dist/commands/benchmark-cmd.js +18 -0
  4. package/dist/commands/benchmark-cmd.js.map +1 -0
  5. package/dist/commands/connect.d.ts +8 -0
  6. package/dist/commands/connect.d.ts.map +1 -0
  7. package/dist/commands/connect.js +26 -0
  8. package/dist/commands/connect.js.map +1 -0
  9. package/dist/commands/context.d.ts +15 -0
  10. package/dist/commands/context.d.ts.map +1 -0
  11. package/dist/commands/context.js +24 -0
  12. package/dist/commands/context.js.map +1 -0
  13. package/dist/commands/dashboard.d.ts +3 -0
  14. package/dist/commands/dashboard.d.ts.map +1 -0
  15. package/dist/commands/dashboard.js +10 -0
  16. package/dist/commands/dashboard.js.map +1 -0
  17. package/dist/commands/doctor.d.ts +56 -0
  18. package/dist/commands/doctor.d.ts.map +1 -0
  19. package/dist/commands/doctor.js +156 -0
  20. package/dist/commands/doctor.js.map +1 -0
  21. package/dist/commands/graph.d.ts +11 -0
  22. package/dist/commands/graph.d.ts.map +1 -0
  23. package/dist/commands/graph.js +14 -0
  24. package/dist/commands/graph.js.map +1 -0
  25. package/dist/commands/index-cmd.d.ts +4 -0
  26. package/dist/commands/index-cmd.d.ts.map +1 -0
  27. package/dist/commands/index-cmd.js +15 -0
  28. package/dist/commands/index-cmd.js.map +1 -0
  29. package/dist/commands/init.d.ts +20 -0
  30. package/dist/commands/init.d.ts.map +1 -0
  31. package/dist/commands/init.js +145 -0
  32. package/dist/commands/init.js.map +1 -0
  33. package/dist/commands/knowledge.d.ts +5 -0
  34. package/dist/commands/knowledge.d.ts.map +1 -0
  35. package/dist/commands/knowledge.js +23 -0
  36. package/dist/commands/knowledge.js.map +1 -0
  37. package/dist/commands/memory.d.ts +5 -0
  38. package/dist/commands/memory.d.ts.map +1 -0
  39. package/dist/commands/memory.js +72 -0
  40. package/dist/commands/memory.js.map +1 -0
  41. package/dist/commands/plugin/install.d.ts +3 -0
  42. package/dist/commands/plugin/install.d.ts.map +1 -0
  43. package/dist/commands/plugin/install.js +22 -0
  44. package/dist/commands/plugin/install.js.map +1 -0
  45. package/dist/commands/plugin/list.d.ts +3 -0
  46. package/dist/commands/plugin/list.d.ts.map +1 -0
  47. package/dist/commands/plugin/list.js +47 -0
  48. package/dist/commands/plugin/list.js.map +1 -0
  49. package/dist/commands/plugin/search.d.ts +3 -0
  50. package/dist/commands/plugin/search.d.ts.map +1 -0
  51. package/dist/commands/plugin/search.js +29 -0
  52. package/dist/commands/plugin/search.js.map +1 -0
  53. package/dist/commands/plugin/uninstall.d.ts +3 -0
  54. package/dist/commands/plugin/uninstall.d.ts.map +1 -0
  55. package/dist/commands/plugin/uninstall.js +21 -0
  56. package/dist/commands/plugin/uninstall.js.map +1 -0
  57. package/dist/commands/plugin-guide.d.ts +19 -0
  58. package/dist/commands/plugin-guide.d.ts.map +1 -0
  59. package/dist/commands/plugin-guide.js +131 -0
  60. package/dist/commands/plugin-guide.js.map +1 -0
  61. package/dist/commands/plugin-loader.d.ts +2 -0
  62. package/dist/commands/plugin-loader.d.ts.map +1 -0
  63. package/dist/commands/plugin-loader.js +2 -0
  64. package/dist/commands/plugin-loader.js.map +1 -0
  65. package/dist/commands/review.d.ts +6 -0
  66. package/dist/commands/review.d.ts.map +1 -0
  67. package/dist/commands/review.js +75 -0
  68. package/dist/commands/review.js.map +1 -0
  69. package/dist/commands/server.d.ts +16 -0
  70. package/dist/commands/server.d.ts.map +1 -0
  71. package/dist/commands/server.js +88 -0
  72. package/dist/commands/server.js.map +1 -0
  73. package/dist/commands/session.d.ts +7 -0
  74. package/dist/commands/session.d.ts.map +1 -0
  75. package/dist/commands/session.js +20 -0
  76. package/dist/commands/session.js.map +1 -0
  77. package/dist/commands/setup.d.ts +6 -0
  78. package/dist/commands/setup.d.ts.map +1 -0
  79. package/dist/commands/setup.js +78 -0
  80. package/dist/commands/setup.js.map +1 -0
  81. package/dist/commands/skill.d.ts +18 -0
  82. package/dist/commands/skill.d.ts.map +1 -0
  83. package/dist/commands/skill.js +105 -0
  84. package/dist/commands/skill.js.map +1 -0
  85. package/dist/commands/start.d.ts +5 -0
  86. package/dist/commands/start.d.ts.map +1 -0
  87. package/dist/commands/start.js +58 -0
  88. package/dist/commands/start.js.map +1 -0
  89. package/dist/commands/status.d.ts +2 -0
  90. package/dist/commands/status.d.ts.map +1 -0
  91. package/dist/commands/status.js +33 -0
  92. package/dist/commands/status.js.map +1 -0
  93. package/dist/commands/stop.d.ts +2 -0
  94. package/dist/commands/stop.d.ts.map +1 -0
  95. package/dist/commands/stop.js +12 -0
  96. package/dist/commands/stop.js.map +1 -0
  97. package/dist/commands/workflow.d.ts +6 -0
  98. package/dist/commands/workflow.d.ts.map +1 -0
  99. package/dist/commands/workflow.js +24 -0
  100. package/dist/commands/workflow.js.map +1 -0
  101. package/dist/index.d.ts +3 -0
  102. package/dist/index.d.ts.map +1 -0
  103. package/dist/index.js +606 -0
  104. package/dist/index.js.map +1 -0
  105. package/dist/lib/paths.d.ts +1 -0
  106. package/dist/lib/paths.d.ts.map +1 -0
  107. package/dist/lib/paths.js +4 -0
  108. package/dist/lib/paths.js.map +1 -0
  109. package/dist/lib/plugin-registry.d.ts +18 -0
  110. package/dist/lib/plugin-registry.d.ts.map +1 -0
  111. package/dist/lib/plugin-registry.js +39 -0
  112. package/dist/lib/plugin-registry.js.map +1 -0
  113. package/dist/lib/plugin-setup.d.ts +23 -0
  114. package/dist/lib/plugin-setup.d.ts.map +1 -0
  115. package/dist/lib/plugin-setup.js +141 -0
  116. package/dist/lib/plugin-setup.js.map +1 -0
  117. package/dist/lib/with-server.d.ts +7 -0
  118. package/dist/lib/with-server.d.ts.map +1 -0
  119. package/dist/lib/with-server.js +28 -0
  120. package/dist/lib/with-server.js.map +1 -0
  121. package/dist/mode.d.ts +10 -0
  122. package/dist/mode.d.ts.map +1 -0
  123. package/dist/mode.js +40 -0
  124. package/dist/mode.js.map +1 -0
  125. package/dist/plugin-files/.claude-plugin/plugin.json +20 -0
  126. package/dist/plugin-files/CLAUDE.md +34 -0
  127. package/dist/plugin-files/dist/command-registry.json +299 -0
  128. package/dist/plugin-files/dist/skills/devflow:animation/SKILL.md +94 -0
  129. package/dist/plugin-files/dist/skills/devflow:context/SKILL.md +90 -0
  130. package/dist/plugin-files/dist/skills/devflow:css/SKILL.md +94 -0
  131. package/dist/plugin-files/dist/skills/devflow:docker/SKILL.md +97 -0
  132. package/dist/plugin-files/dist/skills/devflow:electron/SKILL.md +97 -0
  133. package/dist/plugin-files/dist/skills/devflow:git/SKILL.md +97 -0
  134. package/dist/plugin-files/dist/skills/devflow:graph/SKILL.md +80 -0
  135. package/dist/plugin-files/dist/skills/devflow:graphql/SKILL.md +99 -0
  136. package/dist/plugin-files/dist/skills/devflow:knowledge/SKILL.md +80 -0
  137. package/dist/plugin-files/dist/skills/devflow:memory/SKILL.md +79 -0
  138. package/dist/plugin-files/dist/skills/devflow:nest/SKILL.md +99 -0
  139. package/dist/plugin-files/dist/skills/devflow:nextjs/SKILL.md +97 -0
  140. package/dist/plugin-files/dist/skills/devflow:performance/SKILL.md +97 -0
  141. package/dist/plugin-files/dist/skills/devflow:react/SKILL.md +89 -0
  142. package/dist/plugin-files/dist/skills/devflow:tailwind/SKILL.md +94 -0
  143. package/dist/plugin-files/dist/skills/devflow:taro/SKILL.md +96 -0
  144. package/dist/plugin-files/dist/skills/devflow:ui-layout/SKILL.md +94 -0
  145. package/dist/plugin-files/dist/skills/devflow:vue/SKILL.md +105 -0
  146. package/dist/plugin-files/dist/skills/devflow:workflow/SKILL.md +80 -0
  147. package/dist/plugin-files/hooks/constitution.md +20 -0
  148. package/dist/plugin-files/hooks/post-tool-use +20 -0
  149. package/dist/plugin-files/hooks/pre-tool-use +23 -0
  150. package/dist/plugin-files/hooks/session-start +176 -0
  151. package/dist/plugin-files/hooks/stop +32 -0
  152. package/dist/plugin-files/hooks.json +52 -0
  153. package/dist/plugin-files/package.json +31 -0
  154. package/package.json +27 -27
@@ -0,0 +1,299 @@
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_new_feature",
68
+ "react_audit_performance",
69
+ "react_review_hooks",
70
+ "react_refactor_component",
71
+ "react_new_component"
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_new_component",
89
+ "vue_debug_reactivity"
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_new_module",
106
+ "nest_diagnose_bug"
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_new_page",
123
+ "nextjs_diagnose_bug"
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_new_graphql_type",
140
+ "graphql_diagnose_bug"
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
+ ],
254
+ "blockedNative": [
255
+ "grep",
256
+ "find",
257
+ "rg",
258
+ "ag",
259
+ "Grep",
260
+ "Glob",
261
+ "Explore",
262
+ "WebSearch",
263
+ "WebFetch"
264
+ ]
265
+ },
266
+ "devflow:taro": {
267
+ "mcpTools": [
268
+ "taro_new_page"
269
+ ],
270
+ "blockedNative": [
271
+ "grep",
272
+ "find",
273
+ "rg",
274
+ "ag",
275
+ "Grep",
276
+ "Glob",
277
+ "Explore",
278
+ "WebSearch",
279
+ "WebFetch"
280
+ ]
281
+ },
282
+ "devflow:ui-layout": {
283
+ "mcpTools": [
284
+ "ui_layout_generate"
285
+ ],
286
+ "blockedNative": [
287
+ "grep",
288
+ "find",
289
+ "rg",
290
+ "ag",
291
+ "Grep",
292
+ "Glob",
293
+ "Explore",
294
+ "WebSearch",
295
+ "WebFetch"
296
+ ]
297
+ }
298
+ }
299
+ }
@@ -0,0 +1,94 @@
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
+ ## 工作流(必须按顺序执行)
32
+
33
+ ### Step 1: 获取精确上下文
34
+ 调用 `mcp__devflow__get_project_context` 获取与用户问题相关的代码、记忆和知识库信息。
35
+ 这一步确保你拿到的是项目真实状态,而非凭空猜测。
36
+
37
+ ### Step 2: 分析
38
+ 基于 Step 1 返回的上下文,分析问题根因或设计方案。
39
+ 此时可以自由使用 Read 查看具体文件。
40
+
41
+ ### Step 3: 执行
42
+ 根据分析结果修改代码,逐文件编辑。
43
+
44
+ ### Step 4: 验证
45
+ 运行类型检查和测试,确保改动正确。
46
+
47
+ ## 可用工具
48
+
49
+ | 工具 | 何时调用 |
50
+ |------|----------|
51
+ | `mcp__devflow__get_project_context` | 每次任务第一步(必须) |
52
+ | `mcp__devflow__animation_suggest` | 按需调用 |
53
+
54
+ ## 规则
55
+ - 永远从 `mcp__devflow__get_project_context` 开始——你不知道项目里有什么
56
+ - 上下文返回后,用 Read 确认关键文件
57
+ - 改完代码后跑类型检查
58
+
59
+ ## 规则
60
+ - 永远从 `get_project_context` 开始——你不知道项目里有什么
61
+ - 上下文返回后,用 Read 确认关键文件
62
+ - 改完代码后跑类型检查
63
+
64
+ ## 规则
65
+ - 永远从 `animation_suggest` 开始——你不知道项目里有什么
66
+ - 上下文返回后,用 Read 确认关键文件
67
+ - 改完代码后跑类型检查
68
+
69
+ # ✨ ANIMATION
70
+
71
+ 你是一个动画专家。精通 CSS Animation、Framer Motion、GSAP。动画必须 60fps 且支持 prefers-reduced-motion。
72
+
73
+ ## 适用场景
74
+
75
+ **动画审计:性能检查 → 可访问性 → 实现质量**
76
+
77
+ **新建动画:需求分析 → 选型建议 → 实现 → 性能验证**
78
+
79
+ **动画 GPU 迁移:扫描 → 替换为 GPU 属性 → 验证**
80
+
81
+ ## 核心规则
82
+
83
+ - 动画属性只使用 transform 和 opacity(GPU 加速)
84
+ - 过渡动画 200-300ms,入场 300-500ms
85
+ - 使用 ease-out 入场、ease-in 退场
86
+ - 尊重 prefers-reduced-motion,提供减弱方案
87
+ - 避免同时动画过多元素(批量编排使用 staggerChildren)
88
+ - 使用 AnimatePresence 处理 React 组件退出动画
89
+ - Lottie 动画控制文件大小 < 50KB
90
+
91
+ ## 当前版本
92
+
93
+ - animation-docs: 2024 — https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_animations
94
+
@@ -0,0 +1,90 @@
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
+ ## 工作流(必须按顺序执行)
34
+
35
+ ### Step 1: 获取精确上下文
36
+ 调用 `mcp__devflow__get_project_context` 获取与用户问题相关的代码、记忆和知识库信息。
37
+ 这一步确保你拿到的是项目真实状态,而非凭空猜测。
38
+
39
+ ### Step 2: 分析
40
+ 基于 Step 1 返回的上下文,分析问题根因或设计方案。
41
+ 此时可以自由使用 Read 查看具体文件。
42
+
43
+ ### Step 3: 执行
44
+ 根据分析结果修改代码,逐文件编辑。
45
+
46
+ ### Step 4: 验证
47
+ 运行类型检查和测试,确保改动正确。
48
+
49
+ ## 可用工具
50
+
51
+ | 工具 | 何时调用 |
52
+ |------|----------|
53
+ | `mcp__devflow__get_project_context` | 每次任务第一步(必须) |
54
+ | `mcp__devflow__get_project_context` | 按需调用 |
55
+ | `mcp__devflow__search_symbol` | 按需调用 |
56
+
57
+ ## 规则
58
+ - 永远从 `mcp__devflow__get_project_context` 开始——你不知道项目里有什么
59
+ - 上下文返回后,用 Read 确认关键文件
60
+ - 改完代码后跑类型检查
61
+
62
+ ## 规则
63
+ - 永远从 `get_project_context` 开始——你不知道项目里有什么
64
+ - 上下文返回后,用 Read 确认关键文件
65
+ - 改完代码后跑类型检查
66
+
67
+ ## 规则
68
+ - 永远从 `get_project_context` 开始——你不知道项目里有什么
69
+ - 上下文返回后,用 Read 确认关键文件
70
+ - 改完代码后跑类型检查
71
+
72
+ # /devflow:context
73
+
74
+ ## 执行
75
+
76
+ 1. 如果用户的查询包含中文,先将其中的中文关键词翻译为英文代码术语(空格分隔)
77
+ 2. 调用 `mcp__devflow__get_project_context` MCP 工具:
78
+
79
+ ```
80
+ query = 用户的原始查询内容(包含中文)
81
+ expandedTerms = 你翻译的英文关键词(如 "code review audit module")
82
+ mode = "fast" (首次调用;如需更深入结果,再改用 "deep")
83
+ ```
84
+
85
+ 也可以使用 `mcp__devflow__search_symbol` 按符号名搜索代码。
86
+
87
+ 示例:
88
+ - 用户查询 "代码审核模块的流程" → expandedTerms = "code review audit module workflow pipeline process"
89
+ - 用户查询 "用户登录认证逻辑" → expandedTerms = "user login authentication auth logic service handler"
90
+ - 用户查询 "数据库缓存策略" → expandedTerms = "database db cache memo redis storage strategy"
@@ -0,0 +1,94 @@
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
+ ## 工作流(必须按顺序执行)
32
+
33
+ ### Step 1: 获取精确上下文
34
+ 调用 `mcp__devflow__get_project_context` 获取与用户问题相关的代码、记忆和知识库信息。
35
+ 这一步确保你拿到的是项目真实状态,而非凭空猜测。
36
+
37
+ ### Step 2: 分析
38
+ 基于 Step 1 返回的上下文,分析问题根因或设计方案。
39
+ 此时可以自由使用 Read 查看具体文件。
40
+
41
+ ### Step 3: 执行
42
+ 根据分析结果修改代码,逐文件编辑。
43
+
44
+ ### Step 4: 验证
45
+ 运行类型检查和测试,确保改动正确。
46
+
47
+ ## 可用工具
48
+
49
+ | 工具 | 何时调用 |
50
+ |------|----------|
51
+ | `mcp__devflow__get_project_context` | 每次任务第一步(必须) |
52
+ | `mcp__devflow__css_audit_selectors` | 按需调用 |
53
+
54
+ ## 规则
55
+ - 永远从 `mcp__devflow__get_project_context` 开始——你不知道项目里有什么
56
+ - 上下文返回后,用 Read 确认关键文件
57
+ - 改完代码后跑类型检查
58
+
59
+ ## 规则
60
+ - 永远从 `get_project_context` 开始——你不知道项目里有什么
61
+ - 上下文返回后,用 Read 确认关键文件
62
+ - 改完代码后跑类型检查
63
+
64
+ ## 规则
65
+ - 永远从 `css_audit_selectors` 开始——你不知道项目里有什么
66
+ - 上下文返回后,用 Read 确认关键文件
67
+ - 改完代码后跑类型检查
68
+
69
+ # 🎨 CSS
70
+
71
+ 你是一个 CSS 专家。使用现代布局方案(Flexbox/Grid),遵循 BEM 命名,移动优先响应式设计。遇到问题先查 MDN 文档。
72
+
73
+ ## 适用场景
74
+
75
+ **布局调试:检查元素定位 → 弹性/网格属性 → 修复**
76
+
77
+ **响应式审查:断点检查 → 媒体查询 → 流体方案**
78
+
79
+ **BEM 命名审查:扫描类名 → 规范检查 → 修复建议**
80
+
81
+ ## 核心规则
82
+
83
+ - 使用 BEM 命名规范
84
+ - 优先使用 Flexbox 和 Grid 布局
85
+ - 移动优先响应式设计
86
+ - 使用 CSS 变量管理主题
87
+ - 避免 !important 和深层嵌套
88
+ - 使用 rem/em 做相对单位
89
+ - 不确定属性行为时先查 MDN 文档确认
90
+
91
+ ## 当前版本
92
+
93
+ - mdn-css: 2024 — https://developer.mozilla.org/en-US/docs/Web/CSS
94
+
@@ -0,0 +1,97 @@
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
+ ## 工作流(必须按顺序执行)
32
+
33
+ ### Step 1: 获取精确上下文
34
+ 调用 `mcp__devflow__get_project_context` 获取与用户问题相关的代码、记忆和知识库信息。
35
+ 这一步确保你拿到的是项目真实状态,而非凭空猜测。
36
+
37
+ ### Step 2: 分析
38
+ 基于 Step 1 返回的上下文,分析问题根因或设计方案。
39
+ 此时可以自由使用 Read 查看具体文件。
40
+
41
+ ### Step 3: 执行
42
+ 根据分析结果修改代码,逐文件编辑。
43
+
44
+ ### Step 4: 验证
45
+ 运行类型检查和测试,确保改动正确。
46
+
47
+ ## 可用工具
48
+
49
+ | 工具 | 何时调用 |
50
+ |------|----------|
51
+ | `mcp__devflow__get_project_context` | 每次任务第一步(必须) |
52
+ | `mcp__devflow__docker_dockerize_project` | 按需调用 |
53
+
54
+ ## 规则
55
+ - 永远从 `mcp__devflow__get_project_context` 开始——你不知道项目里有什么
56
+ - 上下文返回后,用 Read 确认关键文件
57
+ - 改完代码后跑类型检查
58
+
59
+ ## 规则
60
+ - 永远从 `get_project_context` 开始——你不知道项目里有什么
61
+ - 上下文返回后,用 Read 确认关键文件
62
+ - 改完代码后跑类型检查
63
+
64
+ ## 规则
65
+ - 永远从 `docker_dockerize_project` 开始——你不知道项目里有什么
66
+ - 上下文返回后,用 Read 确认关键文件
67
+ - 改完代码后跑类型检查
68
+
69
+ # 🐳 DOCKER
70
+
71
+ 你是一个 Docker 专家。使用多阶段构建优化镜像,遵循安全和性能最佳实践。遇到问题先查官方文档。
72
+
73
+ ## 适用场景
74
+
75
+ **项目 Docker 化:分析项目 → 多阶段 Dockerfile → Compose → 构建验证**
76
+
77
+ **镜像优化:体积分析 → 层优化 → 多阶段重构**
78
+
79
+ **安全扫描:漏洞检测 → 配置审查 → 修复建议**
80
+
81
+ **多服务 Compose 编排:依赖分析 → 网络设计 → 环境管理**
82
+
83
+ ## 核心规则
84
+
85
+ - 使用多阶段构建减小镜像体积
86
+ - 基础镜像固定版本标签(不使用 latest)
87
+ - 利用层缓存优化构建顺序
88
+ - 使用非 root 用户运行应用
89
+ - 使用 .dockerignore 排除无用文件
90
+ - 添加 HEALTHCHECK 监控容器健康状态
91
+ - 不在镜像层中写入敏感信息
92
+ - 修复安全问题时先查 Docker 官方文档确认方案
93
+
94
+ ## 当前版本
95
+
96
+ - docker-docs: 26.0.0 — https://docs.docker.com/reference/
97
+