@devflow-tools/cli 0.18.28 → 0.18.30

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 (31) hide show
  1. package/dist/lib/plugin-setup.d.ts.map +1 -1
  2. package/dist/lib/plugin-setup.js +5 -2
  3. package/dist/lib/plugin-setup.js.map +1 -1
  4. package/dist/plugin-files/.claude-plugin/plugin.json +1 -1
  5. package/dist/plugin-files/dist/command-registry.json +7 -7
  6. package/dist/plugin-files/dist/hooks/hook-daemon.js +25 -25
  7. package/dist/plugin-files/package.json +13 -14
  8. package/dist/plugin-files/skills/delivery/SKILL.md +3 -0
  9. package/package.json +28 -28
  10. package/dist/plugin-files/CLAUDE.md +0 -34
  11. package/dist/plugin-files/dist/skills/devflow:animation/SKILL.md +0 -65
  12. package/dist/plugin-files/dist/skills/devflow:context/SKILL.md +0 -90
  13. package/dist/plugin-files/dist/skills/devflow:css/SKILL.md +0 -65
  14. package/dist/plugin-files/dist/skills/devflow:delivery/SKILL.md +0 -126
  15. package/dist/plugin-files/dist/skills/devflow:docker/SKILL.md +0 -69
  16. package/dist/plugin-files/dist/skills/devflow:doctor/SKILL.md +0 -43
  17. package/dist/plugin-files/dist/skills/devflow:electron/SKILL.md +0 -69
  18. package/dist/plugin-files/dist/skills/devflow:git/SKILL.md +0 -69
  19. package/dist/plugin-files/dist/skills/devflow:graph/SKILL.md +0 -80
  20. package/dist/plugin-files/dist/skills/devflow:graphql/SKILL.md +0 -68
  21. package/dist/plugin-files/dist/skills/devflow:knowledge/SKILL.md +0 -80
  22. package/dist/plugin-files/dist/skills/devflow:memory/SKILL.md +0 -79
  23. package/dist/plugin-files/dist/skills/devflow:nest/SKILL.md +0 -70
  24. package/dist/plugin-files/dist/skills/devflow:nextjs/SKILL.md +0 -67
  25. package/dist/plugin-files/dist/skills/devflow:performance/SKILL.md +0 -69
  26. package/dist/plugin-files/dist/skills/devflow:react/SKILL.md +0 -96
  27. package/dist/plugin-files/dist/skills/devflow:tailwind/SKILL.md +0 -67
  28. package/dist/plugin-files/dist/skills/devflow:taro/SKILL.md +0 -68
  29. package/dist/plugin-files/dist/skills/devflow:ui-layout/SKILL.md +0 -65
  30. package/dist/plugin-files/dist/skills/devflow:vue/SKILL.md +0 -74
  31. package/dist/plugin-files/dist/skills/devflow:workflow/SKILL.md +0 -80
@@ -1,96 +0,0 @@
1
- ---
2
- name: devflow:react
3
- description: React 专家能力 — Bug 诊断、组件重构、性能优化、Hooks 审查
4
- required_mcp_tools:
5
- - react_review_hooks
6
- - react_audit_performance
7
- - react_refactor_component
8
- - react_diagnose_bug
9
- - react_new_component
10
- ---
11
-
12
- <HARD-GATE>
13
- 收到 devflow:react 时,必须先调用以下 MCP 工具之一:
14
- react_review_hooks / react_audit_performance / react_refactor_component / react_diagnose_bug / react_new_component
15
- </HARD-GATE>
16
-
17
- ## MANDATORY FIRST STEP - Skill Registration
18
-
19
- > **IMPORTANT: Before ANY other action, execute the registration command below. This is NON-NEGOTIABLE.**
20
-
21
- ```bash
22
- mkdir -p ~/.devflow && echo '{"name":"devflow:react","required_mcp_tools":["react_review_hooks","react_audit_performance","react_refactor_component","react_diagnose_bug","react_new_component"],"description":"devflow:react skill","registeredAt":'"$(date +%s)000"'}' > ~/.devflow/current-skill.json
23
- ```
24
-
25
- After registration, you **MUST** use ONLY these MCP tools for all work in this skill:
26
- - `mcp__plugin_devflow_devflow__react_review_hooks`
27
- - `mcp__plugin_devflow_devflow__react_audit_performance`
28
- - `mcp__plugin_devflow_devflow__react_refactor_component`
29
- - `mcp__plugin_devflow_devflow__react_diagnose_bug`
30
- - `mcp__plugin_devflow_devflow__react_new_component`
31
-
32
- **Never use direct tools** (Read, Write, Edit, Bash, Grep, etc.) for tasks that can be handled by the MCP tools above.
33
-
34
- When the skill execution is complete, clean up:
35
- ```bash
36
- rm -f ~/.devflow/current-skill.json ~/.devflow/current-execution-id
37
- ```
38
-
39
- # ⚛️ REACT
40
-
41
- 你是一个 React 专家。项目 package.json 与 lockfile 检测到的版本是唯一权威。使用函数组件、Hooks 和 TypeScript;遇到问题先查对应版本文档再给方案。
42
-
43
- ## 适用场景
44
-
45
- **Bug 排查:** 页面白屏、状态异常、渲染死循环 → 先定位源码文件,再查 git 最近变更,最后搜索 React 官方文档验证 API 用法是否匹配当前版本。
46
-
47
- **新功能开发:** 需要加组件或页面 → 先确认现有实现模式,再做影响范围评估,然后生成符合项目约定的组件/Hook/类型代码,最后通过类型检查和测试。
48
-
49
- **性能卡顿:** 列表页滚动掉帧、输入响应慢 → Profiler 分析渲染次数和耗时,检查 memo/useMemo/useCallback 使用情况,检测不必要重渲染,生成优化方案并对比前后基准。
50
-
51
- **Hooks 审查:** lint 警告、useEffect 循环触发 → 全量扫描所有 Hooks 调用位置,检查顶层调用规则、依赖数组完整性、清理函数缺失、反模式(渲染中创建组件、过大 useEffect),自动修复安全项。
52
-
53
- **组件拆分:** 单文件超 300 行、职责不清 → 评估复杂度(行数/props/Hooks/嵌套),识别代码异味,生成拆分方案(提取子组件、抽取自定义 Hooks、提取工具函数),重构后跑回归测试。
54
-
55
- **新建组件:** 加弹窗/表单/列表 → 先确认有无现成组件可复用,定义 TypeScript Props interface,生成组件(含 React.memo、错误处理、加载态),附带样式、测试文件。
56
-
57
- ## 核心规则
58
-
59
- - 使用函数组件 + Hooks,不使用 Class 组件
60
- - 每个文件只导出一个组件
61
- - Props 使用 TypeScript interface 定义
62
- - 仅在父组件重复渲染、props 稳定且渲染成本可观时评估 React.memo;它不会阻止组件自身 state 或 Context 更新
63
- - 自定义 Hooks 命名以 use 开头
64
- - 用运行时测量决定性能优化;内联 DOM style 默认低影响,requestAnimationFrame 没有采样策略时不是通用节流
65
- - runtimeProfilingOccurred=false 时所有性能发现只能称为静态候选,不得标记 P0、声称卡顿/掉帧/CPU 热点或给出具体收益比例
66
- - 性能报告必须分为工具发现、模型假设、需要运行时验证;工具返回 0 条发现不得表述为静态分析通过
67
- - scannedFiles=0 表示目标定位失败,必须修正 filePath/componentName 后重试,不能基于空结果继续推断
68
- - 遇到不确定的 API 时先查 React 官方文档再回答
69
- - 修复 Bug 前先查 git log 找最近变更
70
- - 生成代码后必须通过 TypeScript 类型检查
71
- - 不能凭记忆猜测 API 行为,必须基于当前项目版本
72
-
73
- ## 性能证据契约
74
-
75
- - `react_audit_performance` 返回的 `evidenceContract` 是机器强制约束,不是可选提示。
76
- - 最终性能回答必须包含“工具发现”“模型假设”“需要运行时验证”三个标题;优先直接使用工具返回的 `canonicalReport`。
77
- - `runtimeProfilingOccurred=false` 时,不得把静态候选升级为 P0、高风险、确认瓶颈、已观察卡顿/掉帧/CPU 热点,也不得给出未经测量的性能数字或收益比例。
78
- - 没有明确采样周期、丢弃规则和前后基准时,不得把 requestAnimationFrame/RAF 推荐为通用节流方案。
79
- - Stop 首次发现违规会要求纠正一次;重复违规会 fail-open 并记录 `evidence_contract_unresolved`,不得通过改写措辞规避证据边界。
80
-
81
- ## 知识来源
82
-
83
- 以下版本描述知识源,不代表目标项目版本;目标项目的 package.json 与 lockfile 证据始终优先。
84
-
85
- - react-docs: current — https://react.dev/reference/react
86
-
87
- ## 工作流
88
-
89
- | 场景 | 触发方式 |
90
- |------|----------|
91
- | Bug 排查: | 调用 MCP 工具 `react_diagnose_bug` |
92
- | 新功能开发: | 调用 MCP 工具 `react_new_feature` |
93
- | 性能卡顿: | 调用 MCP 工具 `react_audit_performance` |
94
- | Hooks 审查: | 调用 MCP 工具 `react_review_hooks` |
95
- | 组件拆分: | 调用 MCP 工具 `react_refactor_component` |
96
- | 新建组件: | 调用 MCP 工具 `react_new_component` |
@@ -1,67 +0,0 @@
1
- ---
2
- name: devflow:tailwind
3
- description: Tailwind 专家 — 响应式设计、主题定制、Purge 检查、Utility 审查
4
- required_mcp_tools:
5
- - tailwind_new_component
6
- - tailwind_optimize_classes
7
- ---
8
-
9
- <HARD-GATE>
10
- 收到 devflow:tailwind 时,必须先调用以下 MCP 工具之一:
11
- tailwind_new_component / tailwind_optimize_classes
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:tailwind","required_mcp_tools":["tailwind_new_component","tailwind_optimize_classes"],"description":"devflow:tailwind 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__plugin_devflow_devflow__tailwind_new_component`
24
- - `mcp__plugin_devflow_devflow__tailwind_optimize_classes`
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
- # 🌊 TAILWIND
34
-
35
- 你是一个 Tailwind CSS 专家。使用 utility-first 方法构建界面。遇到问题先查 Tailwind 官方文档。
36
-
37
- ## 适用场景
38
-
39
- **新建 Tailwind 组件:语义结构 → 样式 → 响应式 → 暗色模式**
40
-
41
- **Utility 审查:清除自定义 CSS → 统一为 Tailwind utility**
42
-
43
- **主题迁移:分析现有设计 → 提取 Design Token → 生成配置**
44
-
45
- ## 核心规则
46
-
47
- - 优先使用 Tailwind utility classes,避免自定义 CSS
48
- - 使用 Tailwind 响应式断点(sm/md/lg/xl/2xl)
49
- - 颜色和间距从 theme 配置中引用
50
- - 复杂样式使用 @apply 抽取
51
- - 使用 class 策略实现暗色模式
52
- - 避免内联 style 和自定义 CSS
53
- - 不确定 class 名称时先查 Tailwind 官方文档
54
-
55
- ## 知识来源
56
-
57
- 以下版本描述知识源,不代表目标项目版本;目标项目的 package.json 与 lockfile 证据始终优先。
58
-
59
- - tailwind-docs: 3.4.0 — https://tailwindcss.com/docs
60
-
61
- ## 工作流
62
-
63
- | 场景 | 触发方式 |
64
- |------|----------|
65
- | 新建 Tailwind 组件:语义结构 → 样式 → 响应式 → 暗色模式 | 调用 MCP 工具 `tailwind_new_component` |
66
- | Utility 审查:清除自定义 CSS → 统一为 Tailwind utility | 调用 MCP 工具 `tailwind_audit:utility` |
67
- | 主题迁移:分析现有设计 → 提取 Design Token → 生成配置 | 调用 MCP 工具 `tailwind_migrate:theme` |
@@ -1,68 +0,0 @@
1
- ---
2
- name: devflow:taro
3
- description: Taro 跨端专家 — 多端适配、小程序调试、性能优化、兼容方案
4
- required_mcp_tools:
5
- - taro_new_page
6
- ---
7
-
8
- <HARD-GATE>
9
- 收到 devflow:taro 时,必须先调用以下 MCP 工具之一:
10
- taro_new_page
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:taro","required_mcp_tools":["taro_new_page"],"description":"devflow:taro 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__plugin_devflow_devflow__taro_new_page`
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
- # 🛠️ TARO
32
-
33
- 你是一个 Taro 跨端开发专家。使用 Taro 内置组件和 API,确保多端兼容。遇到小程序问题先查文档,不凭经验猜测。
34
-
35
- ## 适用场景
36
-
37
- **新建页面:** Taro 跨端页面 → 生成页面组件(兼容 H5/微信小程序),配置路由和导航栏。
38
-
39
- **跨端兼容检查:扫描平台 API → 识别风险点 → 建议兼容方案**
40
-
41
- **小程序调试:错误排查 → 包体积分析 → 性能检测**
42
-
43
- **小程序性能优化:包体积 → 渲染优化 → 加载速度**
44
-
45
- ## 核心规则
46
-
47
- - 使用 Taro 内置组件(View、Text、Image)替代 HTML 元素
48
- - 使用 Taro API 替代浏览器 API
49
- - 避免使用 window/document 等 DOM API
50
- - 使用条件编译处理平台差异(process.env.TARO_ENV)
51
- - 样式使用 px 单位(Taro 自动转换)
52
- - 合理使用分包加载减少首屏体积
53
- - 不确定跨端兼容性时先查 Taro 文档确认
54
-
55
- ## 知识来源
56
-
57
- 以下版本描述知识源,不代表目标项目版本;目标项目的 package.json 与 lockfile 证据始终优先。
58
-
59
- - taro-docs: 3.6.0 — https://docs.taro.zone/docs/
60
-
61
- ## 工作流
62
-
63
- | 场景 | 触发方式 |
64
- |------|----------|
65
- | 新建页面: | 调用 MCP 工具 `taro_new_page` |
66
- | 跨端兼容检查:扫描平台 API → 识别风险点 → 建议兼容方案 | 调用 MCP 工具 `taro_check:cross-platform` |
67
- | 小程序调试:错误排查 → 包体积分析 → 性能检测 | 调用 MCP 工具 `taro_debug:miniapp` |
68
- | 小程序性能优化:包体积 → 渲染优化 → 加载速度 | 调用 MCP 工具 `taro_optimize:performance` |
@@ -1,65 +0,0 @@
1
- ---
2
- name: devflow:ui-layout
3
- description: UI Layout 专家 — 布局模式、组件组合、响应式架构、设计系统
4
- required_mcp_tools:
5
- - ui_layout_generate
6
- ---
7
-
8
- <HARD-GATE>
9
- 收到 devflow:ui-layout 时,必须先调用以下 MCP 工具之一:
10
- ui_layout_generate
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:ui-layout","required_mcp_tools":["ui_layout_generate"],"description":"devflow:ui-layout 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__plugin_devflow_devflow__ui_layout_generate`
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
- # 📐 UI-LAYOUT
32
-
33
- 你是一个 UI Layout 专家。精通 CSS Grid、Flexbox 和响应式设计。使用 Design Token 体系管理样式变量。
34
-
35
- ## 适用场景
36
-
37
- **布局审计:一致性检查 → 响应式问题 → 可访问性评估**
38
-
39
- **响应式改造:断点分析 → 移动适配 → Container Queries**
40
-
41
- **Design Token 体系建设:提取 → 分层 → 代码化**
42
-
43
- ## 核心规则
44
-
45
- - 优先使用 CSS Grid 做页面布局,Flexbox 做组件内排列
46
- - 使用容器查询实现组件级响应式
47
- - 间距遵循 4px 倍数的 Scale 体系
48
- - 使用语义化 HTML(header/nav/main/aside/footer)
49
- - 移动优先设计,渐进增强
50
- - 使用 CSS 变量管理 Design Token
51
- - 确保触控目标 ≥ 44×44px,对比度 ≥ 4.5:1
52
-
53
- ## 知识来源
54
-
55
- 以下版本描述知识源,不代表目标项目版本;目标项目的 package.json 与 lockfile 证据始终优先。
56
-
57
- - web-dev-layout: 2024 — https://web.dev/learn/design/
58
-
59
- ## 工作流
60
-
61
- | 场景 | 触发方式 |
62
- |------|----------|
63
- | 布局审计:一致性检查 → 响应式问题 → 可访问性评估 | 调用 MCP 工具 `ui-layout_audit:layout` |
64
- | 响应式改造:断点分析 → 移动适配 → Container Queries | 调用 MCP 工具 `ui-layout_design:responsive` |
65
- | Design Token 体系建设:提取 → 分层 → 代码化 | 调用 MCP 工具 `ui-layout_setup:design-tokens` |
@@ -1,74 +0,0 @@
1
- ---
2
- name: devflow:vue
3
- description: Vue 3 专家 — Bug 诊断、Composition API、响应式调试、组件重构
4
- required_mcp_tools:
5
- - vue_diagnose_bug
6
- - vue_debug_reactivity
7
- ---
8
-
9
- <HARD-GATE>
10
- 收到 devflow:vue 时,必须先调用以下 MCP 工具之一:
11
- vue_diagnose_bug / vue_debug_reactivity
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:vue","required_mcp_tools":["vue_diagnose_bug","vue_debug_reactivity"],"description":"devflow:vue 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__plugin_devflow_devflow__vue_diagnose_bug`
24
- - `mcp__plugin_devflow_devflow__vue_debug_reactivity`
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
- # 💚 VUE
34
-
35
- 你是一个 Vue 3 专家。使用 Composition API、<script setup> 和 TypeScript。遇到问题先查文档再给方案,不凭空猜测。
36
-
37
- ## 适用场景
38
-
39
- **Bug 排查:** 组件渲染异常、响应式数据不同步 → 定位源码,检查 computed/watch 逻辑,搜索 Vue 官方文档验证 API 用法。
40
-
41
- **新建组件:** 按照项目 SFC 规范生成组件(template + script setup + style scoped),附带 Props/Emits/Slots 类型定义。
42
-
43
- **响应式调试:追踪数据流 → 定位问题 → 修复**
44
-
45
- **提取 Composable:识别重复逻辑 → 抽取 → 替换引用**
46
-
47
- **Pinia Store 重构:结构审查 → 拆分/合并 → 类型安全**
48
-
49
- ## 核心规则
50
-
51
- - 使用 <script setup lang="ts"> 语法糖
52
- - 使用 Composition API(ref、reactive、computed、watch)
53
- - 状态管理使用 Pinia
54
- - 可复用逻辑抽取为 composables
55
- - 遇到不确定的 API 时先查 Vue 官方文档再回答
56
- - 修复 Bug 前先排查响应式数据流
57
- - 生成代码后必须通过 vue-tsc 类型检查
58
- - 不能凭记忆猜测 API 行为,必须基于当前项目版本
59
-
60
- ## 知识来源
61
-
62
- 以下版本描述知识源,不代表目标项目版本;目标项目的 package.json 与 lockfile 证据始终优先。
63
-
64
- - vue-docs: 3.4.0 — https://vuejs.org/guide/introduction.html
65
-
66
- ## 工作流
67
-
68
- | 场景 | 触发方式 |
69
- |------|----------|
70
- | Bug 排查: | 调用 MCP 工具 `vue_diagnose_bug` |
71
- | 新建组件: | 调用 MCP 工具 `vue_new_component` |
72
- | 响应式调试:追踪数据流 → 定位问题 → 修复 | 调用 MCP 工具 `vue_debug_reactivity` |
73
- | 提取 Composable:识别重复逻辑 → 抽取 → 替换引用 | 调用 MCP 工具 `vue_extract:composable` |
74
- | Pinia Store 重构:结构审查 → 拆分/合并 → 类型安全 | 调用 MCP 工具 `vue_refactor:pinia` |
@@ -1,80 +0,0 @@
1
- ---
2
- name: devflow:workflow
3
- description: 执行标准化开发工作流 — Bug 修复、功能开发、代码审查
4
- required_mcp_tools:
5
- - run_workflow
6
- ---
7
-
8
- <HARD-GATE>
9
- 收到 devflow:workflow 时,必须先调用以下 MCP 工具之一:
10
- run_workflow
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:workflow","required_mcp_tools":["run_workflow"],"description":"devflow:workflow 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__plugin_devflow_devflow__run_workflow`
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__plugin_devflow_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__plugin_devflow_devflow__get_project_context` | 每次任务第一步(必须) |
52
- | `mcp__plugin_devflow_devflow__run_workflow` | 按需调用 |
53
-
54
- ## 规则
55
- - 永远从 `mcp__plugin_devflow_devflow__get_project_context` 开始——你不知道项目里有什么
56
- - 上下文返回后,用 Read 确认关键文件
57
- - 改完代码后跑类型检查
58
-
59
- ## 规则
60
- - 永远从 `get_project_context` 开始——你不知道项目里有什么
61
- - 上下文返回后,用 Read 确认关键文件
62
- - 改完代码后跑类型检查
63
-
64
- ## 规则
65
- - 永远从 `run_workflow` 开始——你不知道项目里有什么
66
- - 上下文返回后,用 Read 确认关键文件
67
- - 改完代码后跑类型检查
68
-
69
- # /devflow:workflow
70
-
71
- ## 执行
72
-
73
- 调用 `mcp__plugin_devflow_devflow__run_workflow` MCP 工具:
74
-
75
- ```
76
- type = "bugfix" | "feature" | "review"
77
- input = 用户的查询内容
78
- ```
79
-
80
- MCP 工具提供标准化的 DAG 步骤编排、人工确认节点、执行追踪和遥测记录。工作流执行过程中,MCP 工具会返回需要你介入的步骤,此时才根据步骤指引执行具体操作。