openmatrix 0.2.20 → 0.2.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmatrix",
3
- "version": "0.2.20",
3
+ "version": "0.2.21",
4
4
  "description": "AI Agent task orchestration system with Claude Code Skills integration",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/skills/approve.md CHANGED
@@ -1,8 +1,39 @@
1
1
  ---
2
2
  name: om:approve
3
- description: "Use when handling pending approvals including plan review, merge confirmation, deploy approval, and blocked task decisions during OpenMatrix execution. Triggers on: 审批, approve, 批准, plan review, merge conflict resolution, deploy confirmation, 阻塞处理, technical decision, pending approval, waiting for approval, 待确认."
3
+ description: "Use when handling pending approvals including plan review, merge confirmation, deploy approval, and blocked task decisions during OpenMatrix execution. Triggers on APPROVAL intent: user wants to review and approve pending items, handle merge conflicts, or confirm deploy. DO NOT trigger on: starting tasks, debugging, or status checks. Intent signals: user mentions 'approve', 'review plan', 'confirm merge', 'approve deploy', or refers to pending approval actions."
4
4
  ---
5
5
 
6
+ <INTENT-JUDGMENT>
7
+ ## 意图判断指南
8
+
9
+ **AI 应根据用户语义判断意图:**
10
+
11
+ ### 触发信号(审批意图)
12
+
13
+ - 用户要审批计划
14
+ - 处理合并冲突
15
+ - 确认部署
16
+ - 处理待审批项
17
+
18
+ ### 不触发信号
19
+
20
+ | 用户意图 | 应调用 |
21
+ |---------|--------|
22
+ | 开始任务 | /om:start |
23
+ | 调查问题 | /om:debug |
24
+ | 查看状态 | /om:status |
25
+
26
+ ### 示例判断
27
+
28
+ | 用户消息 | 判断 | 结果 |
29
+ |---------|------|------|
30
+ | "审批这个计划" | 审批意图 | 触发 ✓ |
31
+ | "确认合并" | 确认意图 | 触发 ✓ |
32
+ | "批准部署" | 部署审批意图 | 触发 ✓ |
33
+ | "为什么没通过审批" | 调查意图 | /om:debug |
34
+ | "开始实现" | 开发意图 | /om:start |
35
+ </INTENT-JUDGMENT>
36
+
6
37
  <NO-OTHER-SKILLS>
7
38
  执行此技能时,不得调用 superpowers、gsd 或其他任务编排相关的技能。OpenMatrix 独立运行,不依赖外部任务编排系统。
8
39
  </NO-OTHER-SKILLS>
package/skills/auto.md CHANGED
@@ -1,8 +1,39 @@
1
1
  ---
2
2
  name: om:auto
3
- description: "Use when the user wants fully automated task execution with zero manual approvals. Triggers on: 全自动, 无人值守, hands-free, non-stop, don't ask me, 直接执行, skip all confirmations, batch refactor, large migration, bulk changes. Use for multi-task execution where the user doesn't want to be interrupted at any approval point (plan/merge/deploy)."
3
+ description: "Use when the user wants fully automated task execution with zero manual approvals. Triggers on AUTOMATION intent: user explicitly requests hands-free execution, wants to skip all confirmations, or needs batch processing without interruptions. DO NOT trigger on: interactive requests, debugging, or status checks. Intent signals: user says 'fully auto', 'hands-free', 'no interruptions', 'skip approvals', or describes large batch operations."
4
4
  ---
5
5
 
6
+ <INTENT-JUDGMENT>
7
+ ## 意图判断指南
8
+
9
+ **AI 应根据用户语义判断意图:**
10
+
11
+ ### 触发信号(全自动意图)
12
+
13
+ - 用户明确要"全自动执行"
14
+ - 需要跳过所有审批确认
15
+ - 批量操作,不希望中断
16
+ - 用户表达"直接执行"、"不要问我"
17
+
18
+ ### 不触发信号
19
+
20
+ | 用户意图 | 应调用 |
21
+ |---------|--------|
22
+ | 需要交互确认 | /om:start |
23
+ | 调查问题 | /om:debug |
24
+ | 查看状态 | /om:status |
25
+
26
+ ### 示例判断
27
+
28
+ | 用户消息 | 判断 | 结果 |
29
+ |---------|------|------|
30
+ | "全自动执行" | 全自动意图 | 触发 ✓ |
31
+ | "不要问我直接做" | 无中断意图 | 触发 ✓ |
32
+ | "批量重构跳过确认" | 批量自动化 | 触发 ✓ |
33
+ | "交互式执行" | 需要确认 | /om:start |
34
+ | "查看执行状态" | 状态检查 | /om:status |
35
+ </INTENT-JUDGMENT>
36
+
6
37
  <NOTE>
7
38
  ## 注意:区分 `/om:auto` 指令与「全自动执行」模式
8
39
 
@@ -1,8 +1,40 @@
1
1
  ---
2
2
  name: om:brainstorm
3
- description: "Use when the user wants to explore requirements, design alternatives, or validate ideas before implementation. Triggers on: 头脑风暴, 设计方案, 需求分析, 技术选型, architecture design, 'how should I build', multi-module features, new projects from scratch, unclear requirements, complex system design. Use even if the user just says 'implement X' and the task involves multiple modules or unclear requirements brainstorm first, don't jump straight to coding."
3
+ description: "Use when the user wants to explore requirements, design alternatives, or validate ideas before implementation. Triggers on CLARIFICATION/DESIGN intent: user needs to clarify unclear requirements, explore multiple approaches, or design architecture before coding. DO NOT trigger on: simple implementation requests (clear path), status checks, or pure information queries. Intent signals: user says 'how should I', mentions multiple options/uncertainties, describes complex system from scratch, or task scope is ambiguous."
4
4
  ---
5
5
 
6
+ <INTENT-JUDGMENT>
7
+ ## 意图判断指南
8
+
9
+ **AI 应根据用户语义判断意图:**
10
+
11
+ ### 触发信号(澄清/设计意图)
12
+
13
+ - 用户想探索多种实现方案
14
+ - 需求不明确,需要澄清
15
+ - 涉及多模块协同,需要设计
16
+ - 从零开始搭建,需要架构规划
17
+ - 用户表达"怎么设计"、"什么方案"
18
+
19
+ ### 不触发信号
20
+
21
+ | 用户意图 | 应调用 |
22
+ |---------|--------|
23
+ | 明确的实现任务 | /om:start 或 /om:feature |
24
+ | 状态检查 | /om:status |
25
+ | 简单问题咨询 | 直接回答 |
26
+
27
+ ### 示例判断
28
+
29
+ | 用户消息 | 判断 | 结果 |
30
+ |---------|------|------|
31
+ | "登录功能怎么设计?" | 设计意图 | 触发 ✓ |
32
+ | "从零搭建后台系统" | 架构规划意图 | 触发 ✓ |
33
+ | "OAuth 选哪个方案?" | 方案探索意图 | 触发 ✓ |
34
+ | "给按钮加点击事件" | 明确实现 | /om:feature |
35
+ | "查看当前任务状态" | 状态检查 | /om:status |
36
+ </INTENT-JUDGMENT>
37
+
6
38
  <NO-OTHER-SKILLS>
7
39
  **绝对禁止**调用以下技能(OpenMatrix 完全替代它们):
8
40
  - ❌ superpowers:brainstorming → 你已经在 om:brainstorm 中了
package/skills/debug.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: om:debug
3
- description: "Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes. Use for ANY technical issue: 测试失败, bug, 异常行为, 构建失败, 集成问题, 没触发, 没执行, 不工作, 原因, 为什么. Use ESPECIALLY when: under time pressure, 'just one quick fix' seems obvious, previous fix didn't work, you don't fully understand the issue. Don't skip when: issue seems simple (simple bugs have root causes too), you're in a hurry (systematic is faster than guessing)."
3
+ description: "Use when user encounters ANY technical problem and needs systematic diagnosis. Triggers on PROBLEM-EXPLORATION intent: user wants to understand WHY something failed, investigate root cause, or diagnose unexpected behavior. DO NOT trigger on: simple questions (how to do X), implementation requests (build/fix/add), or status checks. Intent signals: user seems confused about failure, asks '为什么', mentions error/issue without clear solution, wants to investigate before fixing."
4
4
  priority: high
5
5
  ---
6
6
 
@@ -14,6 +14,61 @@ priority: high
14
14
  **诊断和修复阶段只能使用 Agent 工具** — 直接调用 Agent,不通过任何中间层。
15
15
  </NO-OTHER-SKILLS>
16
16
 
17
+ <INTENT-JUDGMENT>
18
+ ## 意图判断指南
19
+
20
+ **AI 应根据用户语义判断意图,而非关键词匹配:**
21
+
22
+ ### 触发信号(问题探索意图)
23
+
24
+ 用户表现出:
25
+ - 需要理解失败原因(不知道为什么出错)
26
+ - 想先调查再行动(排查、诊断、定位)
27
+ - 对问题感到困惑(不清楚根因)
28
+ - 多次尝试未成功(之前修复没生效)
29
+ - 系统行为不符合预期(奇怪、意外)
30
+
31
+ ### 不触发信号(其他意图)
32
+
33
+ | 用户意图 | 应调用的 skill |
34
+ |---------|---------------|
35
+ | 想要实现新功能 | /om 或 /om:start |
36
+ | 想要修复已知问题(明确知道改什么) | /om:start |
37
+ | 询问如何做某事 | 直接回答,不调用 skill |
38
+ | 查看当前状态 | /om:status |
39
+ | 简单问题咨询 | 直接回答 |
40
+
41
+ ### 判断流程
42
+
43
+ ```
44
+ 用户消息
45
+
46
+ ├── 是否描述了技术问题/失败?
47
+ │ ├─ 否 → 不触发
48
+ │ └─ 是 ↓
49
+
50
+ ├── 用户是否理解问题原因?
51
+ │ ├─ 是,明确知道怎么修 → /om:start (直接修复)
52
+ │ └─ 否,想先调查 → 触发 /om:debug ✓
53
+
54
+ ├── 用户是否想先诊断再修复?
55
+ │ ├─ 是 → 触发 /om:debug ✓
56
+ │ └─ 否 → 根据其他意图选择
57
+ ```
58
+
59
+ ### 示例判断
60
+
61
+ | 用户消息 | 判断 | 结果 |
62
+ |---------|------|------|
63
+ | "测试失败了" | 描述问题,未说明原因 | 触发 debug |
64
+ | "查一下为什么没触发" | 明确要调查 | 触发 debug ✓ |
65
+ | "帮我排查这个问题" | 排查意图明确 | 触发 debug ✓ |
66
+ | "不知道为什么出错了" | 困惑,需要诊断 | 触发 debug ✓ |
67
+ | "修复登录页bug" | 明确要修复,知道改哪 | /om:start |
68
+ | "API返回500,帮我改一下" | 要修复而非调查 | /om:start |
69
+ | "怎么调试node进程" | 询问方法,非排查 | 直接回答 |
70
+ </INTENT-JUDGMENT>
71
+
17
72
  <MANDATORY-EXECUTION-ORDER>
18
73
  ## 执行顺序 - 必须严格按此顺序,不得跳过
19
74
 
package/skills/deploy.md CHANGED
@@ -1,8 +1,40 @@
1
1
  ---
2
2
  name: om:deploy
3
- description: "智能部署助手:分析项目+系统环境 推荐最可行方案 执行部署 生成一键脚本。Triggers on: deploy, 部署, 发布, docker, kubernetes, 环境搭建, 开发环境, make, taskfile, pm2"
3
+ description: "Triggers on DEPLOYMENT intent: user wants to deploy, publish, set up environments, or create deployment scripts. DO NOT trigger on: development tasks, status checks, or debugging."
4
4
  ---
5
5
 
6
+ <INTENT-JUDGMENT>
7
+ ## 意图判断指南
8
+
9
+ **AI 应根据用户语义判断意图:**
10
+
11
+ ### 触发信号(部署意图)
12
+
13
+ - 用户想部署/发布项目
14
+ - 需要配置 Docker/Kubernetes
15
+ - 环境搭建需求
16
+ - 生成部署脚本
17
+ - 发布到生产环境
18
+
19
+ ### 不触发信号
20
+
21
+ | 用户意图 | 应调用 |
22
+ |---------|--------|
23
+ | 实现功能 | /om:start |
24
+ | 修复 bug | /om:debug 或 /om:start |
25
+ | 查看状态 | /om:status |
26
+
27
+ ### 示例判断
28
+
29
+ | 用户消息 | 判断 | 结果 |
30
+ |---------|------|------|
31
+ | "部署到服务器" | 部署意图 | 触发 ✓ |
32
+ | "用 Docker 运行" | 环境配置意图 | 触发 ✓ |
33
+ | "发布 npm 包" | 发布意图 | 触发 ✓ |
34
+ | "实现 API 接口" | 开发意图 | /om:start |
35
+ | "为什么部署失败" | 调查意图 | /om:debug |
36
+ </INTENT-JUDGMENT>
37
+
6
38
  <NO-OTHER-SKILLS>
7
39
  执行此技能时,不得调用 superpowers、gsd 或其他任务编排相关的技能。
8
40
  </NO-OTHER-SKILLS>
@@ -157,13 +189,11 @@ AskUserQuestion:
157
189
  ```bash
158
190
  docker build -t <project-name> .
159
191
  docker run -d -p <port>:<port> --name <project-name> <project-name>
160
- docker ps | grep <project-name>
161
192
  ```
162
193
 
163
194
  **Docker Compose:**
164
195
  ```bash
165
196
  docker-compose up -d --build
166
- docker-compose ps
167
197
  ```
168
198
 
169
199
  **Make:**
@@ -174,17 +204,133 @@ make deploy
174
204
  **npm scripts:**
175
205
  ```bash
176
206
  npm run build
177
- npm run start
207
+ npm run start &
208
+ ```
209
+
210
+ ---
211
+
212
+ ## Step 7.1: 自动验证部署结果
213
+
214
+ 执行部署后,AI 自动执行以下验证(按顺序,全部通过才算成功):
215
+
216
+ **1. 检查容器/进程状态:**
217
+ ```bash
218
+ # Docker
219
+ docker ps --format "{{.Names}}\t{{.Status}}" | grep <project-name>
220
+
221
+ # Docker Compose
222
+ docker-compose ps
223
+
224
+ # PM2
225
+ pm2 list
226
+
227
+ # 进程检查
228
+ ps aux | grep <project-name>
178
229
  ```
179
230
 
180
- 执行后验证:
231
+ **2. 检查端口是否在监听:**
181
232
  ```bash
182
- # 检查服务是否正常运行
183
- docker ps 2>/dev/null | grep <name>
184
- curl -s http://localhost:<port>/health 2>/dev/null || echo "服务已启动"
233
+ # Linux/Mac
234
+ lsof -i :<port> 2>/dev/null || netstat -tlnp 2>/dev/null | grep <port>
235
+
236
+ # Windows
237
+ netstat -ano | findstr :<port>
238
+ ```
239
+
240
+ **3. HTTP 连通性验证(核心验证):**
241
+ ```bash
242
+ # 等待服务启动(最多重试 5 次,每次间隔 2 秒)
243
+ for i in 1 2 3 4 5; do
244
+ STATUS=$(curl -s -o /dev/null -w "%{http_code}" http://localhost:<port>/ 2>/dev/null)
245
+ if [ "$STATUS" -ge 200 ] && [ "$STATUS" -lt 400 ]; then
246
+ echo "HTTP $STATUS OK"
247
+ break
248
+ fi
249
+ sleep 2
250
+ done
251
+
252
+ # 获取响应内容摘要
253
+ curl -s http://localhost:<port>/ 2>/dev/null | head -20
254
+ ```
255
+
256
+ **4. 健康检查端点(如果存在):**
257
+ ```bash
258
+ curl -s http://localhost:<port>/health 2>/dev/null
259
+ curl -s http://localhost:<port>/api/health 2>/dev/null
260
+ curl -s http://localhost:<port>/healthz 2>/dev/null
261
+ ```
262
+
263
+ **5. 浏览器可访问性验证(Web 项目):**
264
+
265
+ 如果是 Web 项目,使用 Playwright 工具打开浏览器验证页面是否正常加载:
266
+ ```
267
+ browser_navigate: http://localhost:<port>/
268
+ browser_snapshot: 检查页面是否正常渲染
269
+ browser_take_screenshot: 截图保存验证结果
270
+ browser_close
271
+ ```
272
+
273
+ 如果无法使用浏览器工具,输出可访问的 URL 供用户手动验证:
274
+ ```
275
+ 🌐 请在浏览器中访问: http://localhost:<port>/
276
+ ```
277
+
278
+ **6. 日志检查(任何验证失败时):**
279
+ ```bash
280
+ # Docker 日志
281
+ docker logs <project-name> --tail 50
282
+
283
+ # PM2 日志
284
+ pm2 logs <project-name> --lines 50
285
+ ```
286
+
287
+ ---
288
+
289
+ ## Step 7.2: 输出验证报告
290
+
291
+ AI 根据验证结果输出状态报告:
292
+
293
+ **验证成功:**
294
+ ```markdown
295
+ ## ✅ 部署验证报告
296
+
297
+ **服务状态**: 运行中 (Up 2 minutes)
298
+ **端口**: 3000 已监听
299
+ **HTTP 连通**: http://localhost:3000/ → 200 OK
300
+ **健康检查**: /health → 200 OK
301
+
302
+ ### 验证清单
303
+ - ✅ 容器/进程正常运行
304
+ - ✅ 端口 3000 已监听
305
+ - ✅ HTTP 请求返回 200
306
+ - ✅ 页面可正常访问
307
+
308
+ ### 访问地址
309
+ 🌐 http://localhost:3000/
310
+
311
+ ### 快捷命令
312
+ - 查看日志: docker logs -f <project-name>
313
+ - 停止服务: docker stop <project-name>
314
+ - 重启服务: docker restart <project-name>
315
+ ```
316
+
317
+ **验证失败:**
318
+ ```markdown
319
+ ## ❌ 部署验证失败
320
+
321
+ **问题**: 容器启动后立即退出
322
+ **状态**: Exited (1)
323
+
324
+ ### 错误日志(最近 20 行)
325
+ <显示 docker logs 输出>
326
+
327
+ ### 建议修复
328
+ 1. 检查 Dockerfile 配置
329
+ 2. 检查启动命令是否正确
330
+ 3. 查看完整日志: docker logs <project-name>
185
331
  ```
186
332
 
187
- 输出执行结果,告知用户服务状态。
333
+ 验证失败时,询问用户是否要查看完整日志或尝试修复。
188
334
 
189
335
  ---
190
336
 
package/skills/feature.md CHANGED
@@ -1,9 +1,40 @@
1
1
  ---
2
2
  name: om:feature
3
- description: "Use for small feature requests needing quick iteration without full task file management. Triggers on: 小需求, 小功能, 小改动, minor, quick, 快速, 简单, 添加按钮, 加个字段, 轻量. AI evaluates complexity and routes automatically from /om entry point."
3
+ description: "Use for small feature requests needing quick iteration without full task file management. Triggers on MINOR-CHANGE intent: user wants small, quick changes with clear scope - single component, few files, straightforward implementation. DO NOT trigger on: complex multi-module tasks, unclear requirements, or investigation tasks. Intent signals: user explicitly says 'small/quick/simple', describes a focused change, or task is clearly localized."
4
4
  priority: high
5
5
  ---
6
6
 
7
+ <INTENT-JUDGMENT>
8
+ ## 意图判断指南
9
+
10
+ **AI 应根据用户语义判断意图:**
11
+
12
+ ### 触发信号(小需求意图)
13
+
14
+ - 用户表达"小改动"、"快速"、"简单"
15
+ - 任务范围明确且单一
16
+ - 改动点集中在少数文件
17
+ - 实现路径显而易见
18
+
19
+ ### 不触发信号
20
+
21
+ | 用户意图 | 应调用 |
22
+ |---------|--------|
23
+ | 多模块复杂任务 | /om:start 或 /om:brainstorm |
24
+ | 需求不明确 | /om:brainstorm |
25
+ | 状态检查 | /om:status |
26
+
27
+ ### 示例判断
28
+
29
+ | 用户消息 | 判断 | 结果 |
30
+ |---------|------|------|
31
+ | "给列表加搜索按钮" | 小改动意图 | 触发 ✓ |
32
+ | "调整按钮颜色" | 简单修改意图 | 触发 ✓ |
33
+ | "加个字段到表单" | 小需求意图 | 触发 ✓ |
34
+ | "重构认证模块" | 复杂任务 | /om:start |
35
+ | "从零搭建系统" | 需要设计 | /om:brainstorm |
36
+ </INTENT-JUDGMENT>
37
+
7
38
  <NO-OTHER-SKILLS>
8
39
  **绝对禁止**调用以下技能:
9
40
  - ❌ superpowers:brainstorming → 用 /om:brainstorm 代替
package/skills/meeting.md CHANGED
@@ -1,8 +1,39 @@
1
1
  ---
2
2
  name: om:meeting
3
- description: "Use when handling blocked tasks, technical decisions, or workflow interruptions during OpenMatrix execution. Triggers on: 阻塞, blocked, 决策, decision needed, 技术选型, database connection failed, API key missing, merge conflict, dependency issue, task cannot proceed. Use when the user reports something is stuck, waiting for info, or needs to make a choice that blocks execution."
3
+ description: "Use when handling blocked tasks, technical decisions, or workflow interruptions during OpenMatrix execution. Triggers on BLOCKED/DECISION intent: user reports task is stuck, needs to make a blocking choice, or something prevents progress. DO NOT trigger on: starting tasks, debugging root causes, or status checks. Intent signals: user says 'blocked', 'stuck', 'waiting', 'cannot proceed', or describes a blocker/dependency issue."
4
4
  ---
5
5
 
6
+ <INTENT-JUDGMENT>
7
+ ## 意图判断指南
8
+
9
+ **AI 应根据用户语义判断意图:**
10
+
11
+ ### 触发信号(阻塞处理意图)
12
+
13
+ - 任务被阻塞无法继续
14
+ - 需要做技术决策
15
+ - 等待外部信息
16
+ - 执行中断
17
+
18
+ ### 不触发信号
19
+
20
+ | 用户意图 | 应调用 |
21
+ |---------|--------|
22
+ | 开始新任务 | /om:start |
23
+ | 调查失败原因 | /om:debug |
24
+ | 查看进度 | /om:status |
25
+
26
+ ### 示例判断
27
+
28
+ | 用户消息 | 判断 | 结果 |
29
+ |---------|------|------|
30
+ | "任务卡住了" | 阻塞意图 | 触发 ✓ |
31
+ | "缺少 API key" | 阻塞问题 | 触发 ✓ |
32
+ | "需要做技术决策" | 决策意图 | 触发 ✓ |
33
+ | "为什么卡住" | 调查意图 | /om:debug |
34
+ | "开始新功能" | 开发意图 | /om:start |
35
+ </INTENT-JUDGMENT>
36
+
6
37
  <NO-OTHER-SKILLS>
7
38
  执行此技能时,不得调用 superpowers、gsd 或其他任务编排相关的技能。OpenMatrix 独立运行,不依赖外部任务编排系统。
8
39
 
package/skills/om.md CHANGED
@@ -1,20 +1,50 @@
1
1
  ---
2
2
  name: om
3
- description: "Default entry point for all development tasks. Routes to /om:feature (small), /om:start (standard), or /om:brainstorm (clarify/design) automatically. Triggers on: implement, build, fix, create, refactor, 修复, 实现, 开发, 添加功能, new feature, 小需求, 小功能, 小改动, minor, quick, 快速, 简单, 添加按钮, 加个字段, 轻量. Use for ANY task that produces code changes don't answer directly, route to OpenMatrix workflow."
3
+ description: "Default entry point for ALL development tasks. Triggers on DEVELOPMENT intent: user wants to implement, build, fix, refactor, or create something that produces code changes. DO NOT trigger on: questions (how to?), information requests, status checks, or pure discussion. Intent signals: user describes an action that requires code modification, has a clear goal to add/change/remove functionality, or wants to execute a development task."
4
4
  priority: critical
5
5
  always_load: true
6
6
  ---
7
7
 
8
+ <INTENT-JUDGMENT>
9
+ ## 意图判断指南
10
+
11
+ **AI 应根据用户语义判断意图:**
12
+
13
+ ### 触发信号(开发意图)
14
+
15
+ - 用户想实现/创建功能(产生代码变更)
16
+ - 用户想修复已知问题(有明确的修复目标)
17
+ - 用户想重构现有代码
18
+ - 用户描述了具体的开发任务
19
+ - 用户有明确的目标(添加/修改/删除功能)
20
+
21
+ ### 不触发信号(其他意图)
22
+
23
+ | 用户意图 | 应调用 |
24
+ |---------|--------|
25
+ | 询问如何实现 | 直接回答或 /om:brainstorm |
26
+ | 查看状态 | /om:status |
27
+ | 调查问题原因 | /om:debug |
28
+ | 纯讨论想法 | 直接交流或 /om:brainstorm |
29
+
30
+ ### 示例判断
31
+
32
+ | 用户消息 | 判断 | 结果 |
33
+ |---------|------|------|
34
+ | "实现登录功能" | 开发意图明确 | 触发 ✓ |
35
+ | "修复按钮样式问题" | 有明确修复目标 | 触发 ✓ |
36
+ | "给列表加搜索" | 功能添加意图 | 触发 ✓ |
37
+ | "怎么实现登录?" | 询问方法 | 直接回答 |
38
+ | "API 返回 500 为什么" | 调查意图 | /om:debug |
39
+ | "查看任务状态" | 状态检查 | /om:status |
40
+ </INTENT-JUDGMENT>
41
+
8
42
  <EXTREMELY-IMPORTANT>
9
43
  ## This is the DEFAULT entry for ALL development tasks.
10
44
 
11
45
  **STOP. Do NOT invoke any other task orchestration skill.**
12
46
  **Invoke this skill IMMEDIATELY when the user wants code changes.**
13
-
14
- **Analyze user INTENT (decide in < 3 seconds):**
15
- - "实现X" / "implement X" / "build X" → Development task → This skill
16
- - "修复X" / "fix X" → Development task → This skill
17
- - "怎么实现?" / "how to?" → Question → NOT this skill (just answer)
47
+ **意图判断参见上方 INTENT-JUDGMENT 区块。**
18
48
  </EXTREMELY-IMPORTANT>
19
49
 
20
50
  <NO-OTHER-SKILLS>
package/skills/report.md CHANGED
@@ -1,8 +1,39 @@
1
1
  ---
2
2
  name: om:report
3
- description: "Use when generating a task execution report with statistics, task details, approval history, and agent performance. Triggers on: 报告, report, summary, 总结, execution stats, 统计, sprint report, weekly summary, 产出物, deliverables overview."
3
+ description: "Use when generating a task execution report with statistics, task details, approval history, and agent performance. Triggers on REPORT intent: user wants a summary of execution, statistics overview, or deliverables documentation. DO NOT trigger on: starting tasks, debugging, or status checks. Intent signals: user asks for 'report', 'summary', 'statistics', 'what was done', or wants comprehensive output of execution results."
4
4
  ---
5
5
 
6
+ <INTENT-JUDGMENT>
7
+ ## 意图判断指南
8
+
9
+ **AI 应根据用户语义判断意图:**
10
+
11
+ ### 触发信号(报告意图)
12
+
13
+ - 用户想要执行总结
14
+ - 需要统计数据报告
15
+ - 查看任务完成详情
16
+ - 生成交付物概述
17
+
18
+ ### 不触发信号
19
+
20
+ | 用户意图 | 应调用 |
21
+ |---------|--------|
22
+ | 查看实时进度 | /om:status |
23
+ | 开始任务 | /om:start |
24
+ | 调查问题 | /om:debug |
25
+
26
+ ### 示例判断
27
+
28
+ | 用户消息 | 判断 | 结果 |
29
+ |---------|------|------|
30
+ | "生成报告" | 报告意图 | 触发 ✓ |
31
+ | "执行总结" | 总结意图 | 触发 ✓ |
32
+ | "查看统计" | 统计意图 | 触发 ✓ |
33
+ | "当前进度" | 实时状态 | /om:status |
34
+ | "为什么失败" | 调查意图 | /om:debug |
35
+ </INTENT-JUDGMENT>
36
+
6
37
  <NO-OTHER-SKILLS>
7
38
  执行此技能时,不得调用 superpowers、gsd 或其他任务编排相关的技能。OpenMatrix 独立运行,不依赖外部任务编排系统。
8
39
  </NO-OTHER-SKILLS>
@@ -1,8 +1,39 @@
1
1
  ---
2
2
  name: om:research
3
- description: "Use when conducting domain research before implementing vertical-domain tasks. Triggers on: 领域调研, research, game development, payment system, blockchain, AI application, 行业标准, tech stack exploration, domain analysis, unfamiliar vertical, need to understand the domain before building."
3
+ description: "Use when conducting domain research before implementing vertical-domain tasks. Triggers on RESEARCH intent: user needs to understand an unfamiliar domain, explore tech stack, analyze industry standards, or gather knowledge before building. DO NOT trigger on: direct implementation, debugging, or status checks. Intent signals: user mentions 'research', 'understand domain', 'explore tech', or needs knowledge gathering before coding."
4
4
  ---
5
5
 
6
+ <INTENT-JUDGMENT>
7
+ ## 意图判断指南
8
+
9
+ **AI 应根据用户语义判断意图:**
10
+
11
+ ### 触发信号(调研意图)
12
+
13
+ - 用户需要领域调研
14
+ - 探索不熟悉的技术栈
15
+ - 了解行业标准
16
+ - 在实现前收集知识
17
+
18
+ ### 不触发信号
19
+
20
+ | 用户意图 | 应调用 |
21
+ |---------|--------|
22
+ | 直接实现 | /om:start |
23
+ | 需求澄清 | /om:brainstorm |
24
+ | 查看状态 | /om:status |
25
+
26
+ ### 示例判断
27
+
28
+ | 用户消息 | 判断 | 结果 |
29
+ |---------|------|------|
30
+ | "调研支付领域" | 调研意图 | 触发 ✓ |
31
+ | "了解游戏开发" | 领域探索意图 | 触发 ✓ |
32
+ | "研究区块链" | 技术调研意图 | 触发 ✓ |
33
+ | "实现支付功能" | 实现意图 | /om:start |
34
+ | "支付方案怎么设计" | 设计意图 | /om:brainstorm |
35
+ </INTENT-JUDGMENT>
36
+
6
37
  <NO-OTHER-SKILLS>
7
38
  执行此技能时,不得调用其他任务编排相关的技能。OpenMatrix 独立运行,不依赖外部任务编排系统。
8
39
 
package/skills/resume.md CHANGED
@@ -1,9 +1,39 @@
1
1
  ---
2
2
  name: om:resume
3
- description: "恢复中断的任务执行。智能检测数据源:轻量流程 (feature-session.json) 或完整流程 (state.json)。Triggers on: 恢复, resume, continue task, 继续执行, interrupted, 中断, paused, 暂停."
3
+ description: "恢复中断的任务执行。智能检测数据源:轻量流程 (feature-session.json) 或完整流程 (state.json)。Triggers on RESUME intent: user wants to continue interrupted task execution, resume paused tasks, or recover from session interruption. DO NOT trigger on: starting new tasks, debugging, or status checks. Intent signals: user mentions 'resume', 'continue', '中断了', '暂停', or refers to interrupted execution."
4
4
  priority: high
5
5
  ---
6
6
 
7
+ <INTENT-JUDGMENT>
8
+ ## 意图判断指南
9
+
10
+ **AI 应根据用户语义判断意图:**
11
+
12
+ ### 触发信号(恢复意图)
13
+
14
+ - 用户想恢复中断的执行
15
+ - 继续之前的任务
16
+ - 从暂停状态恢复
17
+
18
+ ### 不触发信号
19
+
20
+ | 用户意图 | 应调用 |
21
+ |---------|--------|
22
+ | 开始新任务 | /om:start |
23
+ | 调查问题 | /om:debug |
24
+ | 查看状态 | /om:status |
25
+
26
+ ### 示例判断
27
+
28
+ | 用户消息 | 判断 | 结果 |
29
+ |---------|------|------|
30
+ | "恢复执行" | 恢复意图 | 触发 ✓ |
31
+ | "继续刚才的任务" | 继续意图 | 触发 ✓ |
32
+ | "中断了怎么恢复" | 恢复意图 | 触发 ✓ |
33
+ | "开始新功能" | 开发意图 | /om:start |
34
+ | "为什么卡住了" | 调查意图 | /om:debug |
35
+ </INTENT-JUDGMENT>
36
+
7
37
  <NO-OTHER-SKILLS>
8
38
  **绝对禁止**调用以下技能:
9
39
  - ❌ superpowers:brainstorming → 用 /om:brainstorm 代替
package/skills/retry.md CHANGED
@@ -1,8 +1,38 @@
1
1
  ---
2
2
  name: om:retry
3
- description: "Use when retrying failed tasks after execution errors, test failures, or timeouts. Triggers on: 重试, retry, failed task, 失败任务, rerun, 重新执行, test failure, timeout, 超时, error recovery."
3
+ description: "Use when retrying failed tasks after execution errors, test failures, or timeouts. Triggers on RETRY intent: user wants to retry a previously failed task, rerun execution, or recover from error. DO NOT trigger on: starting new tasks, status checks, or debugging root causes. Intent signals: user mentions 'retry', 'rerun', 'try again', or refers to a specific failed task to re-execute."
4
4
  ---
5
5
 
6
+ <INTENT-JUDGMENT>
7
+ ## 意图判断指南
8
+
9
+ **AI 应根据用户语义判断意图:**
10
+
11
+ ### 触发信号(重试意图)
12
+
13
+ - 用户想重试失败的任务
14
+ - 重新执行之前的任务
15
+ - 从错误恢复重新尝试
16
+
17
+ ### 不触发信号
18
+
19
+ | 用户意图 | 应调用 |
20
+ |---------|--------|
21
+ | 开始新任务 | /om:start |
22
+ | 调查失败原因 | /om:debug |
23
+ | 查看状态 | /om:status |
24
+
25
+ ### 示例判断
26
+
27
+ | 用户消息 | 判断 | 结果 |
28
+ |---------|------|------|
29
+ | "重试这个任务" | 重试意图 | 触发 ✓ |
30
+ | "重新执行" | 重试意图 | 触发 ✓ |
31
+ | "再试一次" | 重试意图 | 触发 ✓ |
32
+ | "为什么失败" | 调查意图 | /om:debug |
33
+ | "开始新功能" | 开发意图 | /om:start |
34
+ </INTENT-JUDGMENT>
35
+
6
36
  <NO-OTHER-SKILLS>
7
37
  执行此技能时,不得调用 superpowers、gsd 或其他任务编排相关的技能。OpenMatrix 独立运行,不依赖外部任务编排系统。
8
38
  </NO-OTHER-SKILLS>
package/skills/start.md CHANGED
@@ -1,8 +1,39 @@
1
1
  ---
2
2
  name: om:start
3
- description: "Use when starting a new development task cycle with interactive questions. Triggers on: 实现, implement, build, fix, refactor, 添加功能, add feature, bug fix, 修复, new module, code changes, feature request. Use when the user describes what they want to build or fix, even briefly don't answer the question directly, start the task workflow."
3
+ description: "Use when starting a new development task cycle with interactive questions. Triggers on TASK-EXECUTION intent: user wants to start implementing a clearly-defined task with full workflow support. DO NOT trigger on: vague ideas (use brainstorm), status checks, debugging, or pure questions. Intent signals: user describes a concrete task to build/fix/refactor, has clear goal, or wants to start execution workflow."
4
4
  ---
5
5
 
6
+ <INTENT-JUDGMENT>
7
+ ## 意图判断指南
8
+
9
+ **AI 应根据用户语义判断意图:**
10
+
11
+ ### 触发信号(任务执行意图)
12
+
13
+ - 用户想开始明确的开发任务
14
+ - 任务描述清晰可执行
15
+ - 有具体的功能目标
16
+ - 修复已知 bug(知道要改什么)
17
+
18
+ ### 不触发信号
19
+
20
+ | 用户意图 | 应调用 |
21
+ |---------|--------|
22
+ | 需求不明确 | /om:brainstorm |
23
+ | 调查问题原因 | /om:debug |
24
+ | 查看进度 | /om:status |
25
+
26
+ ### 示例判断
27
+
28
+ | 用户消息 | 判断 | 结果 |
29
+ |---------|------|------|
30
+ | "开始实现登录功能" | 任务执行意图 | 触发 ✓ |
31
+ | "修复这个 bug"(明确位置)| 执行意图明确 | 触发 ✓ |
32
+ | "重构 API 模块" | 任务意图 | 触发 ✓ |
33
+ | "登录怎么设计" | 设计意图 | /om:brainstorm |
34
+ | "为什么出错了" | 调查意图 | /om:debug |
35
+ </INTENT-JUDGMENT>
36
+
6
37
  <NO-OTHER-SKILLS>
7
38
  **绝对禁止**调用以下任何技能或工具:
8
39
  - ❌ gsd-executor、gsd:* 等 GSD 相关技能
package/skills/status.md CHANGED
@@ -1,8 +1,39 @@
1
1
  ---
2
2
  name: om:status
3
- description: "Use when checking task execution progress, run status, completion statistics, or pending approvals. Triggers on: 进度, progress, status, 状态, 完成情况, statistics, how many tasks, run status, 还剩多少, task overview."
3
+ description: "Use when checking task execution progress, run status, completion statistics, or pending approvals. Triggers on STATUS-CHECK intent: user wants to see current execution state, task progress, statistics, or pending items. DO NOT trigger on: development tasks, debugging, or starting new tasks. Intent signals: user asks 'how's progress', 'check status', 'what's left', or wants overview of execution."
4
4
  ---
5
5
 
6
+ <INTENT-JUDGMENT>
7
+ ## 意图判断指南
8
+
9
+ **AI 应根据用户语义判断意图:**
10
+
11
+ ### 触发信号(状态检查意图)
12
+
13
+ - 用户想查看执行进度
14
+ - 询问任务完成情况
15
+ - 检查运行状态
16
+ - 查看统计数据
17
+
18
+ ### 不触发信号
19
+
20
+ | 用户意图 | 应调用 |
21
+ |---------|--------|
22
+ | 开始任务 | /om:start |
23
+ | 调查问题 | /om:debug |
24
+ | 查看报告 | /om:report |
25
+
26
+ ### 示例判断
27
+
28
+ | 用户消息 | 判断 | 结果 |
29
+ |---------|------|------|
30
+ | "查看进度" | 状态意图 | 触发 ✓ |
31
+ | "任务完成多少了" | 进度检查意图 | 触发 ✓ |
32
+ | "当前执行状态" | 状态查看意图 | 触发 ✓ |
33
+ | "实现功能" | 开发意图 | /om:start |
34
+ | "为什么卡住了" | 调查意图 | /om:debug |
35
+ </INTENT-JUDGMENT>
36
+
6
37
  <NO-OTHER-SKILLS>
7
38
  执行此技能时,不得调用 superpowers、gsd 或其他任务编排相关的技能。OpenMatrix 独立运行,不依赖外部任务编排系统。
8
39
  </NO-OTHER-SKILLS>
package/skills/test.md CHANGED
@@ -1,9 +1,40 @@
1
1
  ---
2
2
  name: om:test
3
- description: "Use when generating tests for untested code, discovering test coverage gaps, or setting up test infrastructure. Use for ANY test generation task: 生成测试, 测试覆盖, 补测试, 写单元测试, E2E测试, UI测试, 测试缺失. Use ESPECIALLY when: new code without tests, low test coverage detected, need to verify functionality before commit, starting a new project without test setup. Don't skip when: code looks simple (simple code needs tests too), rushing to deploy (tests prevent regression), existing tests exist (may need updates for new features)."
3
+ description: "Use when user wants to GENERATE or IMPROVE tests. Triggers on TEST-CREATION intent: user wants new test files, better coverage, or test infrastructure setup. DO NOT trigger on: test execution (running tests), test debugging (why test fails), or test questions (how to write tests). Intent signals: user asks to generate/add/write tests, mentions coverage gaps, wants test setup."
4
4
  priority: high
5
5
  ---
6
6
 
7
+ <INTENT-JUDGMENT>
8
+ ## 意图判断指南
9
+
10
+ **AI 应根据用户语义判断意图:**
11
+
12
+ ### 触发信号(测试创建意图)
13
+
14
+ - 用户想生成测试文件
15
+ - 用户想改进测试覆盖
16
+ - 用户想设置测试框架
17
+ - 用户提到"没测试"、"需要测试"
18
+
19
+ ### 不触发信号
20
+
21
+ | 用户意图 | 应调用 |
22
+ |---------|--------|
23
+ | 运行测试 | 直接执行 npm test |
24
+ | 测试失败想修复 | /om:debug |
25
+ | 询问测试写法 | 直接回答 |
26
+
27
+ ### 示例判断
28
+
29
+ | 用户消息 | 判断 | 结果 |
30
+ |---------|------|------|
31
+ | "给这个文件补测试" | 创建测试意图 | 触发 ✓ |
32
+ | "生成单元测试" | 创建意图明确 | 触发 ✓ |
33
+ | "测试覆盖率太低" | 改进覆盖意图 | 触发 ✓ |
34
+ | "运行测试看看" | 执行意图 | 直接运行 |
35
+ | "测试失败了为什么" | 排查意图 | /om:debug |
36
+ </INTENT-JUDGMENT>
37
+
7
38
  <NO-OTHER-SKILLS>
8
39
  **绝对禁止**调用以下技能:
9
40
  - ❌ superpowers:test-driven-development → 你已经在 om:test 中了