flowmind 1.4.7 → 1.4.8
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/CHANGELOG.md +7 -0
- package/README.md +34 -880
- package/README_CN.md +33 -1130
- package/docs/guide.md +151 -0
- package/docs/guide.zh-CN.md +151 -0
- package/package.json +3 -1
package/docs/guide.md
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# FlowMind Detailed Guide
|
|
2
|
+
|
|
3
|
+
This guide is the long-form companion to the npm homepage.
|
|
4
|
+
Use it when you want the fuller product explanation, usage modes, and system model.
|
|
5
|
+
|
|
6
|
+
## Core Idea
|
|
7
|
+
|
|
8
|
+
FlowMind is designed for repeatable developer operations.
|
|
9
|
+
Instead of rewriting the same instructions, you route work through a skill, run it through configured adapters or MCP-compatible providers, and keep explicit feedback as reusable local state.
|
|
10
|
+
|
|
11
|
+
The shortest model is:
|
|
12
|
+
|
|
13
|
+
1. Receive a request
|
|
14
|
+
2. Select a skill
|
|
15
|
+
3. Execute through adapters or integrations
|
|
16
|
+
4. Capture explicit feedback
|
|
17
|
+
5. Reuse that feedback on similar requests later
|
|
18
|
+
|
|
19
|
+
## Usage Modes
|
|
20
|
+
|
|
21
|
+
### CLI
|
|
22
|
+
|
|
23
|
+
The default mode is direct CLI usage:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
flowmind "查询 traceId abc123 的日志"
|
|
27
|
+
flowmind "审查代码质量"
|
|
28
|
+
flowmind process --skill log-audit "查询最近1小时的错误日志"
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Use this mode when you want the fastest path with minimal setup.
|
|
32
|
+
|
|
33
|
+
### Codex-Friendly JSON
|
|
34
|
+
|
|
35
|
+
If another tool needs machine-readable output:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
flowmind-codex "查询最近1小时的错误日志"
|
|
39
|
+
flowmind-codex --skill log-audit "查询 traceId abc123 的完整链路"
|
|
40
|
+
flowmind process --json "查询日志"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Use this mode for automation, scripts, or CI.
|
|
44
|
+
|
|
45
|
+
### MCP Client Integration
|
|
46
|
+
|
|
47
|
+
FlowMind can be exposed as an MCP server for tools such as Claude Code, Cursor, Windsurf, or Cline.
|
|
48
|
+
Setup details live in [integration-guide.md](integration-guide.md).
|
|
49
|
+
|
|
50
|
+
### AI-Enhanced Routing
|
|
51
|
+
|
|
52
|
+
FlowMind can sit in front of model providers and use them for intent understanding, parameter extraction, skill selection, and result summarization.
|
|
53
|
+
That improves handling for more natural or multi-step requests, while still keeping a skill-based execution path.
|
|
54
|
+
|
|
55
|
+
## How It Works
|
|
56
|
+
|
|
57
|
+
### 1. Skill Routing
|
|
58
|
+
|
|
59
|
+
Each request is matched to a reusable skill.
|
|
60
|
+
That gives FlowMind a stable execution path instead of relying on a fresh prompt every time.
|
|
61
|
+
|
|
62
|
+
### 2. Adapter Execution
|
|
63
|
+
|
|
64
|
+
Skills call adapters or providers for the actual work, such as logs, databases, API docs, knowledge bases, or workflow systems.
|
|
65
|
+
|
|
66
|
+
### 3. Learning From Explicit Feedback
|
|
67
|
+
|
|
68
|
+
FlowMind focuses on explicit learning.
|
|
69
|
+
For example:
|
|
70
|
+
|
|
71
|
+
```text
|
|
72
|
+
User: "Use a table next time"
|
|
73
|
+
FlowMind: records the preference
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
On later similar requests, that preference can be reapplied from local learning data.
|
|
77
|
+
|
|
78
|
+
### 4. Local Reuse
|
|
79
|
+
|
|
80
|
+
The learning layer is meant to reduce repetition, not hide work.
|
|
81
|
+
You can inspect the available skills, control execution explicitly, and keep the system scriptable.
|
|
82
|
+
|
|
83
|
+
## Architecture Summary
|
|
84
|
+
|
|
85
|
+
FlowMind is organized around four layers:
|
|
86
|
+
|
|
87
|
+
1. CLI and MCP entrypoints
|
|
88
|
+
2. Skill routing and execution
|
|
89
|
+
3. Provider and adapter integrations
|
|
90
|
+
4. Learning and preference reuse
|
|
91
|
+
|
|
92
|
+
Common component families include:
|
|
93
|
+
|
|
94
|
+
- `logService`
|
|
95
|
+
- `databaseManager`
|
|
96
|
+
- `databaseQuery`
|
|
97
|
+
- `redisMonitor`
|
|
98
|
+
- `apiDoc`
|
|
99
|
+
- `knowledgeBase`
|
|
100
|
+
- `workflow`
|
|
101
|
+
- `report`
|
|
102
|
+
|
|
103
|
+
The practical goal is configuration-based switching instead of rewriting skill logic for each backend.
|
|
104
|
+
|
|
105
|
+
## Best-Fit Use Cases
|
|
106
|
+
|
|
107
|
+
### Log and Trace Investigation
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
flowmind "排查线上问题 traceId abc123"
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Best when the same investigation pattern happens repeatedly.
|
|
114
|
+
|
|
115
|
+
### Code Review
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
flowmind "代码审查先检查安全漏洞,再检查代码质量"
|
|
119
|
+
flowmind "审查这个 PR"
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
Best when the team has a stable review sequence or standards.
|
|
123
|
+
|
|
124
|
+
### Data Validation
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
flowmind "验证订单数据"
|
|
128
|
+
flowmind "检查金额计算逻辑"
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Best when validation repeatedly crosses logs, database state, and business logic.
|
|
132
|
+
|
|
133
|
+
## When FlowMind Is a Good Fit
|
|
134
|
+
|
|
135
|
+
FlowMind is a strong fit when:
|
|
136
|
+
|
|
137
|
+
- You already have internal tools and want a consistent execution surface
|
|
138
|
+
- You repeat the same categories of investigation or review
|
|
139
|
+
- You want feedback to persist outside chat history
|
|
140
|
+
|
|
141
|
+
FlowMind is a weaker fit when:
|
|
142
|
+
|
|
143
|
+
- You only need a generic chat assistant
|
|
144
|
+
- Every task is one-off and never repeated
|
|
145
|
+
- You expect full autonomous engineering without configured tools or skills
|
|
146
|
+
|
|
147
|
+
## Where To Go Next
|
|
148
|
+
|
|
149
|
+
- Demo walkthrough: [../demo/DEMO.md](../demo/DEMO.md)
|
|
150
|
+
- Integration setup: [integration-guide.md](integration-guide.md)
|
|
151
|
+
- Release history: [../CHANGELOG.md](../CHANGELOG.md)
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# FlowMind 详细指南
|
|
2
|
+
|
|
3
|
+
这份文档是 npm 首页的长说明版本。
|
|
4
|
+
如果你想看更完整的产品阐述、使用方式和系统模型,就从这里继续。
|
|
5
|
+
|
|
6
|
+
## 核心思路
|
|
7
|
+
|
|
8
|
+
FlowMind 面向的是可重复出现的开发操作。
|
|
9
|
+
它不是让你每次都重写一遍指令,而是把工作交给 skill,再通过已配置的 adapter 或 MCP 兼容提供者执行,并把显式反馈沉淀为可复用的本地状态。
|
|
10
|
+
|
|
11
|
+
最短链路可以概括为:
|
|
12
|
+
|
|
13
|
+
1. 接收请求
|
|
14
|
+
2. 选择 skill
|
|
15
|
+
3. 通过 adapter / integration 执行
|
|
16
|
+
4. 记录显式反馈
|
|
17
|
+
5. 在相似请求里复用这些反馈
|
|
18
|
+
|
|
19
|
+
## 使用方式
|
|
20
|
+
|
|
21
|
+
### CLI
|
|
22
|
+
|
|
23
|
+
默认方式就是直接通过命令行使用:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
flowmind "查询 traceId abc123 的日志"
|
|
27
|
+
flowmind "审查代码质量"
|
|
28
|
+
flowmind process --skill log-audit "查询最近1小时的错误日志"
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
如果你想先最快跑通,这是最直接的入口。
|
|
32
|
+
|
|
33
|
+
### 面向 Codex 的 JSON 输出
|
|
34
|
+
|
|
35
|
+
如果你的上层工具需要结构化输出:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
flowmind-codex "查询最近1小时的错误日志"
|
|
39
|
+
flowmind-codex --skill log-audit "查询 traceId abc123 的完整链路"
|
|
40
|
+
flowmind process --json "查询日志"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
这更适合自动化脚本、CI 或工具编排。
|
|
44
|
+
|
|
45
|
+
### MCP 客户端接入
|
|
46
|
+
|
|
47
|
+
FlowMind 可以作为 MCP Server 暴露给 Claude Code、Cursor、Windsurf、Cline 等工具使用。
|
|
48
|
+
具体接入步骤见 [integration-guide.md](integration-guide.md)。
|
|
49
|
+
|
|
50
|
+
### AI 增强路由
|
|
51
|
+
|
|
52
|
+
FlowMind 也可以接在模型前面,利用模型能力做意图理解、参数提取、skill 选择和结果摘要。
|
|
53
|
+
这样复杂自然语言请求会更顺,但执行路径仍然以 skill 为核心。
|
|
54
|
+
|
|
55
|
+
## 它是怎么工作的
|
|
56
|
+
|
|
57
|
+
### 1. Skill 路由
|
|
58
|
+
|
|
59
|
+
每个请求先匹配到一个可复用 skill。
|
|
60
|
+
这样执行路径是稳定的,而不是每次都重新组织 prompt。
|
|
61
|
+
|
|
62
|
+
### 2. Adapter 执行
|
|
63
|
+
|
|
64
|
+
skill 再去调用真正干活的 adapter 或 provider,比如日志、数据库、API 文档、知识库和工作流系统。
|
|
65
|
+
|
|
66
|
+
### 3. 从显式反馈学习
|
|
67
|
+
|
|
68
|
+
FlowMind 重点学习的是显式反馈。
|
|
69
|
+
例如:
|
|
70
|
+
|
|
71
|
+
```text
|
|
72
|
+
用户:"下次用表格格式"
|
|
73
|
+
FlowMind:记录这条偏好
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
之后遇到相似请求时,就可以从本地学习数据里复用。
|
|
77
|
+
|
|
78
|
+
### 4. 本地复用
|
|
79
|
+
|
|
80
|
+
这层学习机制的目标是减少重复,而不是隐藏执行过程。
|
|
81
|
+
你依然可以查看 skill、显式控制执行,并保持流程可脚本化。
|
|
82
|
+
|
|
83
|
+
## 架构概览
|
|
84
|
+
|
|
85
|
+
FlowMind 可以粗分为四层:
|
|
86
|
+
|
|
87
|
+
1. CLI / MCP 入口层
|
|
88
|
+
2. skill 路由与执行层
|
|
89
|
+
3. provider / adapter 集成层
|
|
90
|
+
4. 学习与偏好复用层
|
|
91
|
+
|
|
92
|
+
常见组件族包括:
|
|
93
|
+
|
|
94
|
+
- `logService`
|
|
95
|
+
- `databaseManager`
|
|
96
|
+
- `databaseQuery`
|
|
97
|
+
- `redisMonitor`
|
|
98
|
+
- `apiDoc`
|
|
99
|
+
- `knowledgeBase`
|
|
100
|
+
- `workflow`
|
|
101
|
+
- `report`
|
|
102
|
+
|
|
103
|
+
它的实际目标是通过配置切换后端,而不是为了换一个后端就重写 skill 逻辑。
|
|
104
|
+
|
|
105
|
+
## 最适合的场景
|
|
106
|
+
|
|
107
|
+
### 日志与链路排查
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
flowmind "排查线上问题 traceId abc123"
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
适合那类经常重复出现、步骤相对稳定的问题排查。
|
|
114
|
+
|
|
115
|
+
### 代码审查
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
flowmind "代码审查先检查安全漏洞,再检查代码质量"
|
|
119
|
+
flowmind "审查这个 PR"
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
适合团队已经有固定审查顺序或标准的情况。
|
|
123
|
+
|
|
124
|
+
### 数据校验
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
flowmind "验证订单数据"
|
|
128
|
+
flowmind "检查金额计算逻辑"
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
适合日志、数据库状态和业务逻辑需要反复联合验证的场景。
|
|
132
|
+
|
|
133
|
+
## 什么情况下值得用
|
|
134
|
+
|
|
135
|
+
如果满足下面几条,FlowMind 通常比较合适:
|
|
136
|
+
|
|
137
|
+
- 你已经有内部工具,只是缺一个稳定的执行入口
|
|
138
|
+
- 某几类排查、审查、校验任务会反复出现
|
|
139
|
+
- 你希望反馈能脱离聊天记录,变成可复用状态
|
|
140
|
+
|
|
141
|
+
如果是下面这些情况,FlowMind 反而不是最优解:
|
|
142
|
+
|
|
143
|
+
- 你只需要一个通用聊天助手
|
|
144
|
+
- 每个任务都是一次性的,从不重复
|
|
145
|
+
- 你期待在没有任何配置和技能的前提下完全自治式开发
|
|
146
|
+
|
|
147
|
+
## 下一步看哪里
|
|
148
|
+
|
|
149
|
+
- 终端演示: [../demo/DEMO_CN.md](../demo/DEMO_CN.md)
|
|
150
|
+
- 集成接入: [integration-guide.md](integration-guide.md)
|
|
151
|
+
- 版本更新: [../CHANGELOG.md](../CHANGELOG.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flowmind",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.8",
|
|
4
4
|
"description": "Memory and workflow automation for MCP, Codex, and Claude Code. Reuse repeatable developer operations through skills and explicit feedback.",
|
|
5
5
|
"main": "core/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -57,6 +57,8 @@
|
|
|
57
57
|
"learning/",
|
|
58
58
|
"demo/",
|
|
59
59
|
"docs/integration-guide.md",
|
|
60
|
+
"docs/guide.md",
|
|
61
|
+
"docs/guide.zh-CN.md",
|
|
60
62
|
"README.md",
|
|
61
63
|
"README_CN.md",
|
|
62
64
|
"CONTRIBUTING.md",
|