openmatrix 0.1.29 → 0.1.31

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.1.29",
3
+ "version": "0.1.31",
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",
@@ -5,7 +5,7 @@ priority: high
5
5
  ---
6
6
 
7
7
  <NO-OTHER-SKILLS>
8
- 执行此技能时,不得调用其他任务编排相关的技能,包括 superpowers:brainstorming。
8
+ 执行此技能时,不得调用其他任务编排相关的技能。
9
9
  OpenMatrix 独立运行,使用自己的头脑风暴流程。
10
10
  </NO-OTHER-SKILLS>
11
11
 
@@ -16,9 +16,20 @@ OpenMatrix 独立运行,使用自己的头脑风暴流程。
16
16
  <process>
17
17
  1. **初始化头脑风暴会话**
18
18
 
19
- 调用 CLI 创建头脑风暴会话:
19
+ 如果 `$ARGUMENTS` 为空, 先询问用户任务内容:
20
+ ```typescript
21
+ AskUserQuestion({
22
+ questions: [{
23
+ question: "请描述你想头脑风暴的任务:",
24
+ header: "任务",
25
+ options: [] // 开放输入
26
+ }]
27
+ })
28
+ ```
29
+
30
+ 调用 CLI 创建头脑风暴会话(传入任务描述):
20
31
  ```bash
21
- openmatrix brainstorm --json
32
+ openmatrix brainstorm "$ARGUMENTS" --json
22
33
  ```
23
34
 
24
35
  这会返回:
@@ -1,27 +1,37 @@
1
1
  ---
2
2
  name: openmatrix
3
- description: "TRIGGER for ANY implementation task. User wants to build/create/add/fix/implement/refactor something? This is the DEFAULT. Examples: 'add feature', 'fix bug', 'implement login', 'refactor code', 'create command'. ALWAYS prefer this over direct coding."
3
+ description: "TRIGGER for ANY task. User wants to do something or asking how to do something? This is the DEFAULT. Examples: 'implement login', 'how to fix this bug', 'add feature'. ALWAYS prefer this over direct coding."
4
4
  priority: critical
5
5
  always_load: true
6
6
  ---
7
7
 
8
8
  <EXTREMELY-IMPORTANT>
9
- This skill MUST be invoked when the user describes ANY work to be done.
9
+ ## 必须触发此 Skill 的情况
10
10
 
11
- **If you're unsure whether to invoke → INVOKE IT.**
11
+ **1. 用户要做某事** (包含行动词)
12
+ ```
13
+ 实现/添加/修复/开发/写/改/做/创建/构建/重构/优化/删除/移除/更新
14
+ implement/add/fix/develop/write/change/do/create/build/refactor/optimize/delete/remove/update
15
+ ```
12
16
 
13
- **If user mentions: add/create/implement/fix/build/make/write/develop/refactor/optimize/update/modify/change → INVOKE THIS SKILL.**
17
+ **2. 用户问如何做某事** (疑问 + 行动)
18
+ ```
19
+ 如何实现/怎么修复/怎么做/如何添加/怎么改/如何开发
20
+ how to implement/how to fix/how to do/how to add/how to change
21
+ ```
14
22
 
15
- **Direct coding without OpenMatrix is ONLY allowed for:**
16
- - Simple one-line fixes (typos, variable names)
17
- - Answering questions (no code changes needed)
18
- - Information retrieval (reading files, explaining code)
23
+ **3. 判断口诀**
24
+ ```
25
+ 输入包含 "行动词" 触发
26
+ 输入包含 "疑问词 + 行动词" 触发
27
+ 输入只是 "是什么/显示/列出/查看" → 不触发
28
+ ```
19
29
 
20
- Everything elseanalyze and execute.
30
+ **When in doubt INVOKE.**
21
31
  </EXTREMELY-IMPORTANT>
22
32
 
23
33
  <objective>
24
- 用户想要完成开发任务时,自动分析任务,展示理解,推荐执行方式,确认后开始执行。
34
+ 用户想要完成任务或询问如何完成任务时,自动分析任务,展示理解,推荐执行方式,确认后开始执行。
25
35
  </objective>
26
36
 
27
37
  <process>
@@ -42,7 +52,7 @@ Everything else → analyze and execute.
42
52
  📁 范围: 前端样式
43
53
  ⚡ 复杂度: 简单 (预计 1 个 commit)
44
54
 
45
- 💡 推荐执行方式:
55
+ 💡 建议执行方式:
46
56
  • 直接修复,无需 TDD
47
57
  • 使用 fast 模式
48
58
  ```
@@ -82,52 +92,38 @@ Everything else → analyze and execute.
82
92
  - 调用方式: Skill({ skill: "om:brainstorm", args: "$ARGUMENTS" })
83
93
  </process>
84
94
 
85
- <trigger-conditions>
86
- ## AUTO-INVOKE RULES (Mandatory)
87
-
88
- **Invoke IMMEDIATELY when user input contains ANY of these patterns:**
89
-
90
- ### Action Verbs (触发词)
91
- | Chinese | English | Action |
92
- |---------|---------|--------|
93
- | 实现/开发/做/写 | implement/build/create/make/write | Analyze |
94
- | 添加/增加/加 | add/append | Analyze |
95
- | 修复/解决/改 | fix/resolve/repair | Analyze |
96
- | 重构/优化/改进 | refactor/optimize/improve | Analyze |
97
- | 更新/修改/改 | update/modify/change | Analyze |
98
-
99
- ### Context Patterns (触发场景)
100
- - **Feature requests**: "用户登录" / "支付功能" / "API接口"
101
- - **Bug reports**: "报错" / "不工作" / "有问题" / "崩溃"
102
- - **Code changes**: "这段代码" / "这个文件" / "那个模块"
103
- - **Multi-step tasks**: "先做A" / "然后B" / "最后C"
104
- - **System building**: "做一个系统" / "搭建框架" / "从零开始"
105
-
106
- ### The 3-Second Test
107
- ```
108
- 用户输入 → 能在3秒内判断是"要做事情"吗?
109
- ↓ Yes ↓ No
110
- Analyze & Execute 直接回答
111
- ```
112
- </trigger-conditions>
95
+ <trigger-examples>
96
+ ## 触发示例
97
+
98
+ | 用户输入 | 是否触发 | 原因 |
99
+ |---------|:-------:|------|
100
+ | 实现用户登录 | ✅ | 包含"实现" |
101
+ | 修复登录bug | | 包含"修复" |
102
+ | 如何实现登录? | ✅ | 包含"如何+实现" |
103
+ | 怎么修复这个问题? | | 包含"怎么+修复" |
104
+ | 添加支付功能 | | 包含"添加" |
105
+ | 重构代码 | | 包含"重构" |
106
+ | 登录功能是什么? | | 纯疑问,无行动意图 |
107
+ | 显示当前配置 | | 纯信息获取 |
108
+ | 列出所有文件 | ❌ | 纯信息获取 |
109
+ | 你好 | ❌ | 闲聊 |
110
+ | 帮我做个登录 | | 包含"" |
111
+ </trigger-examples>
113
112
 
114
113
  <exclusions>
115
- ## When NOT to Invoke (Rare Cases)
114
+ ## 不触发的情况
116
115
 
117
116
  **Do NOT invoke ONLY when:**
118
- - Pure question: "怎么实现?" / "如何配置?" / "what is..." / "为什么"
119
- - Information request: "显示配置" / "列出文件" / "show me..." / "看一下"
120
- - Status check: "状态" / "进度" / "status"
121
- - Casual chat: "你好" / "谢谢" / "hello"
117
+ - 纯信息获取: "显示配置" / "列出文件" / "查看状态" / "是什么"
118
+ - 纯疑问 (无行动意图): "登录是什么" / "为什么报错"
119
+ - 闲聊: "你好" / "谢谢" / "hello"
122
120
 
123
121
  **Key Test:**
124
122
  ```
125
- 用户要我写代码/改代码/做东西吗?
126
- ↓ Yes → Analyze & Execute
127
- ↓ No → 直接回答
123
+ 用户想改变什么,或问如何改变什么?
124
+ ↓ Yes → 触发
125
+ ↓ No → 不触发
128
126
  ```
129
-
130
- **When in doubt → INVOKE.**
131
127
  </exclusions>
132
128
 
133
129
  <arguments>
@@ -138,6 +134,7 @@ $ARGUMENTS
138
134
  | User Input | Action |
139
135
  |------------|--------|
140
136
  | `实现用户登录功能` | → 分析 → 展示理解 → 确认 → 执行 |
137
+ | `如何修复登录问题?` | → 分析 → 展示理解 → 确认 → 执行 |
141
138
  | `修复登录页面的样式问题` | → 分析 → 展示理解 → 确认 → 执行 |
142
- | `怎么实现登录?` | Question, not task |
143
- </examples>
139
+ | `怎么实现登录?` | 分析 展示理解 → 确认 → 执行 |
140
+ </examples>
package/skills/start.md CHANGED
@@ -131,9 +131,9 @@ AskUserQuestion({
131
131
 
132
132
  ## Step 3: 展示执行计划 + 执行模式
133
133
 
134
- **调用 CLI 拆解任务:**
134
+ **调用 CLI 拆解任务(传入任务描述):**
135
135
  ```bash
136
- openmatrix plan --json
136
+ openmatrix plan "$ARGUMENTS" --json
137
137
  ```
138
138
 
139
139
  **展示执行计划:**