openmatrix 0.1.56 → 0.1.58
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/README.md +24 -0
- package/dist/agents/impl/researcher-agent.d.ts +10 -1
- package/dist/agents/impl/researcher-agent.js +163 -41
- package/dist/cli/commands/brainstorm.js +47 -3
- package/dist/cli/commands/complete.js +26 -1
- package/dist/cli/commands/research.d.ts +2 -0
- package/dist/cli/commands/research.js +270 -0
- package/dist/cli/commands/start.js +5 -1
- package/dist/cli/index.js +2 -0
- package/dist/orchestrator/phase-executor.js +14 -0
- package/dist/storage/state-manager.d.ts +16 -0
- package/dist/storage/state-manager.js +58 -6
- package/dist/types/index.d.ts +36 -0
- package/package.json +1 -1
- package/skills/brainstorm.md +86 -20
- package/skills/om.md +47 -101
- package/skills/openmatrix.md +97 -190
- package/skills/research.md +258 -0
- package/skills/start.md +33 -9
package/skills/om.md
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: om
|
|
3
|
-
description: "
|
|
3
|
+
description: "Use when starting any conversation - establishes OpenMatrix as the handler for development tasks. Routes /om:start automatically. Triggers on: implement, build, fix, create, refactor, 修复, 实现, 开发."
|
|
4
4
|
priority: critical
|
|
5
5
|
always_load: true
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
<EXTREMELY-IMPORTANT>
|
|
9
|
-
|
|
9
|
+
## How to Use This Skill
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
- Build/create/implement something
|
|
13
|
-
- Add new features or functionality
|
|
14
|
-
- Fix bugs or resolve issues
|
|
15
|
-
- Refactor or optimize code
|
|
16
|
-
- Make changes to the codebase
|
|
11
|
+
This is the DEFAULT entry when the user wants to produce code changes.
|
|
17
12
|
|
|
18
|
-
**
|
|
13
|
+
**Analyze user INTENT:**
|
|
14
|
+
- "实现X" / "implement X" / "build X" → Development task → This skill
|
|
15
|
+
- "修复X" / "fix X" → Development task → This skill
|
|
16
|
+
- "怎么实现?" / "how to?" → Question → NOT this skill (just answer)
|
|
19
17
|
</EXTREMELY-IMPORTANT>
|
|
20
18
|
|
|
21
19
|
<NO-OTHER-SKILLS>
|
|
@@ -23,79 +21,61 @@ This is the DEFAULT action for ANY development task.
|
|
|
23
21
|
</NO-OTHER-SKILLS>
|
|
24
22
|
|
|
25
23
|
<objective>
|
|
26
|
-
OpenMatrix
|
|
27
|
-
|
|
28
|
-
**核心价值:**
|
|
29
|
-
- 用户无需记忆命令,直接描述任务即可
|
|
30
|
-
- 自动识别任务类型并启动相应流程
|
|
31
|
-
- 支持中英文混合输入
|
|
32
|
-
|
|
33
|
-
**触发优先级:最高**
|
|
34
|
-
- 任何"要做事情"的输入都应触发此技能
|
|
35
|
-
- 系统会自动判断是执行任务还是回答问题
|
|
24
|
+
OpenMatrix 默认入口 - 用户无需记忆命令,直接描述任务即可。
|
|
36
25
|
</objective>
|
|
37
26
|
|
|
38
27
|
<process>
|
|
39
|
-
1.
|
|
28
|
+
1. **Parse user input**
|
|
40
29
|
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
30
|
+
`$ARGUMENTS` can be:
|
|
31
|
+
- Task description: "实现用户登录功能"
|
|
32
|
+
- File path: "docs/task.md"
|
|
33
|
+
- Empty input
|
|
45
34
|
|
|
46
|
-
2.
|
|
35
|
+
2. **Route input**
|
|
47
36
|
|
|
48
|
-
|
|
49
|
-
→
|
|
37
|
+
**Task description or file path**:
|
|
38
|
+
→ Invoke `/om:start` with arguments
|
|
50
39
|
|
|
51
|
-
|
|
52
|
-
→
|
|
40
|
+
**Empty input**:
|
|
41
|
+
→ Show help
|
|
53
42
|
|
|
54
|
-
3.
|
|
55
|
-
|
|
56
|
-
无论用户输入什么,都自动转换为 `/om:start` 调用:
|
|
43
|
+
3. **Auto-route to /om:start**
|
|
57
44
|
|
|
58
45
|
```
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
用户输入: "docs/task.md"
|
|
63
|
-
系统执行: /om:start docs/task.md
|
|
64
|
-
|
|
65
|
-
用户输入: (空)
|
|
66
|
-
系统显示: 帮助信息
|
|
46
|
+
"实现用户登录" → /om:start 实现用户登录
|
|
47
|
+
"docs/task.md" → /om:start docs/task.md
|
|
48
|
+
(empty) → Show help
|
|
67
49
|
```
|
|
68
50
|
|
|
69
|
-
4.
|
|
70
|
-
|
|
71
|
-
如果用户输入为空或输入 `--help`,显示:
|
|
51
|
+
4. **Help**
|
|
72
52
|
|
|
53
|
+
If empty or `--help`:
|
|
73
54
|
```
|
|
74
|
-
|
|
55
|
+
OpenMatrix - AI task orchestration
|
|
75
56
|
|
|
76
|
-
|
|
77
|
-
/om
|
|
78
|
-
/om:brainstorm
|
|
79
|
-
/om:start
|
|
80
|
-
/om:auto
|
|
57
|
+
Usage:
|
|
58
|
+
/om <task> Start task
|
|
59
|
+
/om:brainstorm <task> Brainstorm first
|
|
60
|
+
/om:start <task> Interactive start
|
|
61
|
+
/om:auto <task> Full auto
|
|
81
62
|
|
|
82
|
-
|
|
63
|
+
Examples:
|
|
83
64
|
/om 实现用户登录功能
|
|
84
65
|
/om 修复登录页面的样式问题
|
|
85
66
|
/om 添加 API 接口
|
|
86
67
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
68
|
+
Quality:
|
|
69
|
+
strict - TDD + 80% coverage
|
|
70
|
+
balanced - 60% coverage
|
|
71
|
+
fast - No gates
|
|
91
72
|
|
|
92
|
-
|
|
93
|
-
/om:brainstorm
|
|
94
|
-
/om:status
|
|
95
|
-
/om:meeting
|
|
96
|
-
/om:report
|
|
73
|
+
Commands:
|
|
74
|
+
/om:brainstorm - Brainstorm then execute
|
|
75
|
+
/om:status - View status
|
|
76
|
+
/om:meeting - Handle blockers
|
|
77
|
+
/om:report - Generate report
|
|
97
78
|
```
|
|
98
|
-
|
|
99
79
|
</process>
|
|
100
80
|
|
|
101
81
|
<arguments>
|
|
@@ -103,48 +83,14 @@ $ARGUMENTS
|
|
|
103
83
|
</arguments>
|
|
104
84
|
|
|
105
85
|
<examples>
|
|
106
|
-
/om 实现用户登录功能 #
|
|
107
|
-
/om 修复登录页面的样式问题 #
|
|
108
|
-
/om docs/task.md #
|
|
109
|
-
/om #
|
|
86
|
+
/om 实现用户登录功能 # Auto start
|
|
87
|
+
/om 修复登录页面的样式问题 # Direct description
|
|
88
|
+
/om docs/task.md # From file
|
|
89
|
+
/om # Show help
|
|
110
90
|
</examples>
|
|
111
91
|
|
|
112
92
|
<notes>
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
用户输入: /om 实现登录
|
|
117
|
-
│
|
|
118
|
-
▼
|
|
119
|
-
┌─────────────────┐
|
|
120
|
-
│ 检测到任务描述 │
|
|
121
|
-
└────────┬────────┘
|
|
122
|
-
│
|
|
123
|
-
▼
|
|
124
|
-
┌─────────────────┐
|
|
125
|
-
│ 自动调用 │
|
|
126
|
-
│ /om:start │
|
|
127
|
-
│ 实现登录 │
|
|
128
|
-
└─────────────────┘
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
## 与 /om:start 的关系
|
|
132
|
-
|
|
133
|
-
`/om` 是 `/om:start` 的快捷方式:
|
|
134
|
-
- `/om <任务>` ≡ `/om:start <任务>`
|
|
135
|
-
- 用户体验更简洁
|
|
136
|
-
- 功能完全相同
|
|
137
|
-
|
|
138
|
-
## 推荐用法
|
|
139
|
-
|
|
140
|
-
```bash
|
|
141
|
-
# 快速启动 (推荐)
|
|
142
|
-
/om 实现用户登录
|
|
143
|
-
|
|
144
|
-
# 等价于
|
|
145
|
-
/om:start 实现用户登录
|
|
146
|
-
|
|
147
|
-
# 全自动模式
|
|
148
|
-
/om:auto 实现用户登录
|
|
149
|
-
```
|
|
93
|
+
`/om` is a shortcut for `/om:start`:
|
|
94
|
+
- `/om <task>` ≡ `/om:start <task>`
|
|
95
|
+
- Same functionality, simpler UX
|
|
150
96
|
</notes>
|
package/skills/openmatrix.md
CHANGED
|
@@ -1,190 +1,97 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: openmatrix
|
|
3
|
-
description: "
|
|
4
|
-
priority: critical
|
|
5
|
-
always_load: true
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<EXTREMELY-IMPORTANT>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
|
88
|
-
|
|
89
|
-
|
|
|
90
|
-
|
|
|
91
|
-
|
|
|
92
|
-
|
|
|
93
|
-
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
- **Code changes**: "这段代码" / "这个文件" / "那个模块"
|
|
99
|
-
- **Multi-step tasks**: "先做A" / "然后B" / "最后C"
|
|
100
|
-
- **System building**: "做一个系统" / "搭建框架" / "从零开始"
|
|
101
|
-
|
|
102
|
-
### The 3-Second Test
|
|
103
|
-
```
|
|
104
|
-
用户输入 → 能在3秒内判断是"要做事情"吗?
|
|
105
|
-
↓ Yes ↓ No
|
|
106
|
-
Smart Select 直接回答
|
|
107
|
-
```
|
|
108
|
-
</trigger-conditions>
|
|
109
|
-
|
|
110
|
-
<smart-selection>
|
|
111
|
-
## 智能选择:Brainstorm vs Start
|
|
112
|
-
|
|
113
|
-
**根据任务复杂度自动选择执行路径:**
|
|
114
|
-
|
|
115
|
-
### 🧠 复杂任务 → `/om:brainstorm`
|
|
116
|
-
**触发条件 (满足任一):**
|
|
117
|
-
- 新功能开发: "实现用户登录" / "添加支付功能" / "开发 API"
|
|
118
|
-
- 多模块改动: "重构用户系统" / "优化整体性能"
|
|
119
|
-
- 架构相关: "搭建框架" / "从零开始" / "设计架构"
|
|
120
|
-
- 不确定因素: 需要技术选型、涉及多种方案选择
|
|
121
|
-
- 关键词: "系统" / "架构" / "模块" / "集成" / "完整" / "从零"
|
|
122
|
-
|
|
123
|
-
### 🚀 简单任务 → `/om:start`
|
|
124
|
-
**触发条件 (满足任一):**
|
|
125
|
-
- Bug 修复: "修复登录bug" / "解决样式问题" / "改个报错"
|
|
126
|
-
- 小改动: "修改文案" / "改变量名" / "调整配置"
|
|
127
|
-
- 单一功能: "添加一个按钮" / "写个工具函数"
|
|
128
|
-
- 明确需求: 需求清晰,无需额外探索
|
|
129
|
-
- 关键词: "修复" / "解决" / "改" / "调整" / "小" / "简单"
|
|
130
|
-
|
|
131
|
-
### 选择流程
|
|
132
|
-
```
|
|
133
|
-
用户输入任务描述
|
|
134
|
-
│
|
|
135
|
-
▼
|
|
136
|
-
┌─────────────────────┐
|
|
137
|
-
│ 分析任务复杂度 │
|
|
138
|
-
└──────────┬──────────┘
|
|
139
|
-
│
|
|
140
|
-
┌─────┴─────┐
|
|
141
|
-
│ │
|
|
142
|
-
复杂任务 简单任务
|
|
143
|
-
│ │
|
|
144
|
-
▼ ▼
|
|
145
|
-
/om:brainstorm /om:start
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
### 判断示例
|
|
149
|
-
| 用户输入 | 复杂度 | 执行路径 |
|
|
150
|
-
|---------|--------|---------|
|
|
151
|
-
| "实现用户登录功能" | 复杂 | `/om:brainstorm` |
|
|
152
|
-
| "做一个完整的支付系统" | 复杂 | `/om:brainstorm` |
|
|
153
|
-
| "从零搭建后台管理" | 复杂 | `/om:brainstorm` |
|
|
154
|
-
| "修复登录页面的样式问题" | 简单 | `/om:start` |
|
|
155
|
-
| "改一下这个变量名" | 简单 | `/om:start` |
|
|
156
|
-
| "添加一个测试用例" | 简单 | `/om:start` |
|
|
157
|
-
| "重构这个模块" | 中等 | `/om:brainstorm` (保守选择) |
|
|
158
|
-
| "优化性能" | 中等 | `/om:brainstorm` (保守选择) |
|
|
159
|
-
|
|
160
|
-
**不确定时的默认选择: `/om:brainstorm`** (宁可多问,不可漏问)
|
|
161
|
-
</smart-selection>
|
|
162
|
-
|
|
163
|
-
<exclusions>
|
|
164
|
-
## When NOT to Invoke (Rare Cases)
|
|
165
|
-
|
|
166
|
-
**Do NOT invoke ONLY when:**
|
|
167
|
-
- Pure question: "怎么实现?" / "如何配置?" / "what is..." / "为什么"
|
|
168
|
-
- Information request: "显示配置" / "列出文件" / "show me..." / "看一下"
|
|
169
|
-
- Status check: "状态" / "进度" / "status"
|
|
170
|
-
- Casual chat: "你好" / "谢谢" / "hello"
|
|
171
|
-
|
|
172
|
-
**Key Test:**
|
|
173
|
-
```
|
|
174
|
-
用户要我写代码/改代码/做东西吗?
|
|
175
|
-
↓ Yes → Smart Select (brainstorm/start)
|
|
176
|
-
↓ No → 直接回答
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
**When in doubt → INVOKE. It handles both simple and complex tasks.**
|
|
180
|
-
</exclusions>
|
|
181
|
-
|
|
182
|
-
<examples>
|
|
183
|
-
| User Input | Complexity | Action |
|
|
184
|
-
|------------|------------|--------|
|
|
185
|
-
| `实现用户登录功能` | 复杂 | → `/om:brainstorm` |
|
|
186
|
-
| `做一个完整的订单系统` | 复杂 | → `/om:brainstorm` |
|
|
187
|
-
| `修复登录页面的样式问题` | 简单 | → `/om:start` |
|
|
188
|
-
| `改一下这个变量名` | 简单 | → `/om:start` |
|
|
189
|
-
| `重构用户模块` | 中等 | → `/om:brainstorm` |
|
|
190
|
-
| `怎么实现登录?` | - | ❌ Question, not task |
|
|
1
|
+
---
|
|
2
|
+
name: openmatrix
|
|
3
|
+
description: "Use when starting any conversation where user wants development work done. Establishes how to detect development tasks and route to OpenMatrix workflow. Examples: 'implement X', 'build a game', 'fix bug', 'refactor module', 'add feature'."
|
|
4
|
+
priority: critical
|
|
5
|
+
always_load: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<EXTREMELY-IMPORTANT>
|
|
9
|
+
## How to Detect Development Tasks
|
|
10
|
+
|
|
11
|
+
When the user's message indicates they want code produced or changed, this is a **development task** and OpenMatrix handles it.
|
|
12
|
+
|
|
13
|
+
**The Development Task Detection Flow:**
|
|
14
|
+
```
|
|
15
|
+
User message received
|
|
16
|
+
│
|
|
17
|
+
▼
|
|
18
|
+
Is the user asking me to PRODUCE code changes?
|
|
19
|
+
│
|
|
20
|
+
YES ──→ OpenMatrix handles this
|
|
21
|
+
│ (has its own brainstorm + plan + execute)
|
|
22
|
+
│
|
|
23
|
+
NO ──→ Other skills or direct answer
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
**What counts as "produce code changes":**
|
|
27
|
+
| Signal | Example |
|
|
28
|
+
|--------|---------|
|
|
29
|
+
| User describes a goal to implement | "实现这个游戏", "build a login page" |
|
|
30
|
+
| User references a spec/doc and wants it built | "@docs/require.md 实现这个游戏" |
|
|
31
|
+
| User reports a bug to fix | "修复登录bug", "fix the crash" |
|
|
32
|
+
| User wants code refactored/optimized | "重构用户模块", "optimize performance" |
|
|
33
|
+
| User wants a feature added | "添加API接口", "add dark mode" |
|
|
34
|
+
|
|
35
|
+
**What does NOT count:**
|
|
36
|
+
| Signal | Example | Route |
|
|
37
|
+
|--------|---------|-------|
|
|
38
|
+
| Asking how something works | "怎么实现?" / "how does X work?" | Direct answer |
|
|
39
|
+
| Requesting information | "显示配置" / "show me the code" | Direct answer |
|
|
40
|
+
| Checking status | "进度" / "status" | Direct answer |
|
|
41
|
+
|
|
42
|
+
**IMPORTANT:** OpenMatrix includes its own brainstorm mode (`/om:brainstorm`).
|
|
43
|
+
When a development task is complex (new feature, multi-module, from-scratch), use `/om:brainstorm`.
|
|
44
|
+
When a development task is simple (bug fix, small change, clear requirement), use `/om:start`.
|
|
45
|
+
</EXTREMELY-IMPORTANT>
|
|
46
|
+
|
|
47
|
+
<NO-OTHER-SKILLS>
|
|
48
|
+
执行此技能时,不得调用 superpowers、gsd 或其他任务编排相关的技能。OpenMatrix 独立运行,不依赖外部任务编排系统。
|
|
49
|
+
</NO-OTHER-SKILLS>
|
|
50
|
+
|
|
51
|
+
<objective>
|
|
52
|
+
Detect development task intent and route to OpenMatrix's internal workflow.
|
|
53
|
+
</objective>
|
|
54
|
+
|
|
55
|
+
<process>
|
|
56
|
+
1. **Intent Analysis**
|
|
57
|
+
|
|
58
|
+
Determine if user wants to "do work" or "get information":
|
|
59
|
+
|
|
60
|
+
| User Intent | Behavioral Signal | Route |
|
|
61
|
+
|---------|---------|------|
|
|
62
|
+
| Build something | Describes goal, cites spec to implement | → OpenMatrix |
|
|
63
|
+
| Fix something | Reports problem, describes error | → OpenMatrix |
|
|
64
|
+
| Change something | Points to code to modify, proposes improvement | → OpenMatrix |
|
|
65
|
+
| Ask something | Question form, seeking explanation | → Direct answer |
|
|
66
|
+
| View something | Status check, info retrieval | → Direct answer |
|
|
67
|
+
|
|
68
|
+
2. **Complexity Assessment**
|
|
69
|
+
|
|
70
|
+
**Complex → `/om:brainstorm`** (explore requirements first):
|
|
71
|
+
- New feature (from scratch)
|
|
72
|
+
- Multi-module changes (architecture involved)
|
|
73
|
+
- Unclear requirements (need to explore first)
|
|
74
|
+
|
|
75
|
+
**Simple → `/om:start`** (clear requirements):
|
|
76
|
+
- Bug fix
|
|
77
|
+
- Small change
|
|
78
|
+
- Single feature
|
|
79
|
+
- Clear requirement
|
|
80
|
+
|
|
81
|
+
3. **Execute directly, no extra confirmation**
|
|
82
|
+
|
|
83
|
+
After assessment, invoke the command directly.
|
|
84
|
+
</process>
|
|
85
|
+
|
|
86
|
+
<examples>
|
|
87
|
+
| User Input | Intent | Complexity | Action |
|
|
88
|
+
|------------|--------|------------|--------|
|
|
89
|
+
| `实现这个游戏` (with @file) | Build | Complex | → `/om:brainstorm` |
|
|
90
|
+
| `实现用户登录功能` | Build | Complex | → `/om:brainstorm` |
|
|
91
|
+
| `修复登录页面的样式问题` | Fix | Simple | → `/om:start` |
|
|
92
|
+
| `改一下这个变量名` | Change | Simple | → `/om:start` |
|
|
93
|
+
| `添加一个测试用例` | Build | Simple | → `/om:start` |
|
|
94
|
+
| `重构用户模块` | Change | Medium | → `/om:brainstorm` |
|
|
95
|
+
| `从零搭建后台管理` | Build | Complex | → `/om:brainstorm` |
|
|
96
|
+
| `怎么实现登录?` | Ask | - | ❌ Direct answer |
|
|
97
|
+
| `这个函数有什么问题?` | Ask | - | ❌ Direct answer |
|