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/skills/om.md CHANGED
@@ -1,21 +1,19 @@
1
1
  ---
2
2
  name: om
3
- description: "DEFAULT entry for OpenMatrix. Use for ANY task user wants done. Triggers on: 实现/添加/修复/重构/优化/写/做/开发. Example: '实现登录' /om:start 实现登录. When in doubt, use this."
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
- This is the DEFAULT action for ANY development task.
9
+ ## How to Use This Skill
10
10
 
11
- **Trigger immediately when user wants to:**
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
- **If you're unsure → USE `/om` anyway. It gracefully handles all task types.**
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
- 用户输入 `$ARGUMENTS` 可能是:
42
- - 任务描述 (如 "实现用户登录功能")
43
- - 文件路径 (如 "docs/task.md")
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
- 直接调用 `/om:start` 并传递参数
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. **自动启动 /om:start**
55
-
56
- 无论用户输入什么,都自动转换为 `/om:start` 调用:
43
+ 3. **Auto-route to /om:start**
57
44
 
58
45
  ```
59
- 用户输入: "实现用户登录"
60
- 系统执行: /om:start 实现用户登录
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
- 📦 OpenMatrix - AI 任务编排系统
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
- 🚀 strict - TDD + 80%覆盖率 (生产代码)
89
- ⚖️ balanced - 60%覆盖率 (日常开发)
90
- fast - 无质量门禁 (快速原型)
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>
@@ -1,190 +1,97 @@
1
- ---
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."
4
- priority: critical
5
- always_load: true
6
- ---
7
-
8
- <EXTREMELY-IMPORTANT>
9
- This skill MUST be invoked when the user describes ANY work to be done.
10
-
11
- **If you're unsure whether to invoke INVOKE IT.**
12
-
13
- **If user mentions: add/create/implement/fix/build/make/write/develop/refactor/optimize/update/modify/change → INVOKE THIS SKILL.**
14
-
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)
19
-
20
- Everything else smart selection between `/om:brainstorm` and `/om:start`.
21
- </EXTREMELY-IMPORTANT>
22
-
23
- <objective>
24
- Automatically detect when user wants to accomplish a development task and intelligently choose between brainstorm (for complex tasks) or start (for simple tasks).
25
- </objective>
26
-
27
- <process>
28
- 1. **询问是否启用智能选择**
29
-
30
- 使用 AskUserQuestion 询问用户:
31
- ```
32
- 问题: 是否启用智能模式?
33
- 选项:
34
- - 🧠 智能选择 (推荐) - 自动判断任务复杂度,选择 brainstorm 或 start
35
- - 🚀 直接执行 - 跳过头脑风暴,直接开始任务
36
- - 🧐 先探索需求 - 强制使用头脑风暴模式
37
- ```
38
-
39
- 2. **根据选择执行不同流程**
40
-
41
- **选择"智能选择"**:
42
- - 分析任务复杂度
43
- - 展示推断结果,让用户确认或修改
44
- - 执行选择的命令
45
-
46
- **选择"直接执行"**:
47
- - 直接调用 /om:start
48
-
49
- **选择"先探索需求"**:
50
- - 直接调用 /om:brainstorm
51
-
52
- 3. **智能分析(如果启用)**
53
-
54
- **复杂任务** (满足任一条件):
55
- - 新功能开发: "实现用户登录" / "添加支付功能"
56
- - 多模块改动: "重构用户系统" / "优化整体性能"
57
- - 架构相关: "搭建框架" / "从零开始"
58
- - 关键词: "系统" / "架构" / "模块" / "集成" / "完整"
59
-
60
- **简单任务** (满足任一条件):
61
- - Bug 修复: "修复登录bug" / "解决样式问题"
62
- - 小改动: "修改文案" / "改变量名"
63
- - 单一功能: "添加一个按钮" / "写个工具函数"
64
- - 关键词: "修复" / "解决" / "改" / "调整" / "简单"
65
-
66
- 4. **展示推断结果并确认**
67
-
68
- 使用 AskUserQuestion 展示推断结果:
69
- ```
70
- 问题: 检测到这是一个【复杂/简单】任务,将使用【brainstorm/start】模式
71
- 选项:
72
- - 确认执行 - 使用推荐的模式
73
- - 🧠 改用头脑风暴 - 先探索需求再执行
74
- - 🚀 改用直接执行 - 跳过探索直接开始
75
- - ✏️ 自定义输入 - 输入其他指令
76
- ```
77
-
78
- 5. **执行选择的命令**
79
- </process>
80
-
81
- <trigger-conditions>
82
- ## AUTO-INVOKE RULES (Mandatory)
83
-
84
- **Invoke IMMEDIATELY when user input contains ANY of these patterns:**
85
-
86
- ### Action Verbs (触发词)
87
- | Chinese | English | Action |
88
- |---------|---------|--------|
89
- | 实现/开发/做/写 | implement/build/create/make/write | → Smart Select |
90
- | 添加/增加/加 | add/append | → Smart Select |
91
- | 修复/解决/改 | fix/resolve/repair | → Smart Select |
92
- | 重构/优化/改进 | refactor/optimize/improve | → Smart Select |
93
- | 更新/修改/改 | update/modify/change | → Smart Select |
94
-
95
- ### Context Patterns (触发场景)
96
- - **Feature requests**: "用户登录" / "支付功能" / "API接口"
97
- - **Bug reports**: "报错" / "不工作" / "有问题" / "崩溃"
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 |