@devflow-tools/cli 0.18.28 → 0.18.29
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/lib/plugin-setup.d.ts.map +1 -1
- package/dist/lib/plugin-setup.js +5 -2
- package/dist/lib/plugin-setup.js.map +1 -1
- package/dist/plugin-files/.claude-plugin/plugin.json +1 -1
- package/dist/plugin-files/dist/command-registry.json +7 -7
- package/dist/plugin-files/dist/hooks/hook-daemon.js +2 -2
- package/dist/plugin-files/package.json +13 -14
- package/package.json +28 -28
- package/dist/plugin-files/CLAUDE.md +0 -34
- package/dist/plugin-files/dist/skills/devflow:animation/SKILL.md +0 -65
- package/dist/plugin-files/dist/skills/devflow:context/SKILL.md +0 -90
- package/dist/plugin-files/dist/skills/devflow:css/SKILL.md +0 -65
- package/dist/plugin-files/dist/skills/devflow:delivery/SKILL.md +0 -126
- package/dist/plugin-files/dist/skills/devflow:docker/SKILL.md +0 -69
- package/dist/plugin-files/dist/skills/devflow:doctor/SKILL.md +0 -43
- package/dist/plugin-files/dist/skills/devflow:electron/SKILL.md +0 -69
- package/dist/plugin-files/dist/skills/devflow:git/SKILL.md +0 -69
- package/dist/plugin-files/dist/skills/devflow:graph/SKILL.md +0 -80
- package/dist/plugin-files/dist/skills/devflow:graphql/SKILL.md +0 -68
- package/dist/plugin-files/dist/skills/devflow:knowledge/SKILL.md +0 -80
- package/dist/plugin-files/dist/skills/devflow:memory/SKILL.md +0 -79
- package/dist/plugin-files/dist/skills/devflow:nest/SKILL.md +0 -70
- package/dist/plugin-files/dist/skills/devflow:nextjs/SKILL.md +0 -67
- package/dist/plugin-files/dist/skills/devflow:performance/SKILL.md +0 -69
- package/dist/plugin-files/dist/skills/devflow:react/SKILL.md +0 -96
- package/dist/plugin-files/dist/skills/devflow:tailwind/SKILL.md +0 -67
- package/dist/plugin-files/dist/skills/devflow:taro/SKILL.md +0 -68
- package/dist/plugin-files/dist/skills/devflow:ui-layout/SKILL.md +0 -65
- package/dist/plugin-files/dist/skills/devflow:vue/SKILL.md +0 -74
- package/dist/plugin-files/dist/skills/devflow:workflow/SKILL.md +0 -80
|
@@ -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 工具会返回需要你介入的步骤,此时才根据步骤指引执行具体操作。
|