openmatrix 0.1.5 → 0.1.7

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.5",
3
+ "version": "0.1.7",
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",
@@ -1,64 +1,199 @@
1
1
  ---
2
2
  name: openmatrix-auto
3
- description: Auto-detect task descriptions and invoke OpenMatrix skills
3
+ description: "Use this for ANY development task - especially complex multi-step tasks, implementing features, adding functionality, fixing bugs, building components, creating systems, modifying code, writing tests, reviewing code, or planning work. Auto-invokes /om:start to orchestrate the work."
4
4
  ---
5
5
 
6
6
  <objective>
7
- Automatically detect when user input is a development task and invoke /om:start without requiring explicit command.
7
+ Automatically detect when user wants to accomplish a development task and invoke /om:start without requiring explicit command.
8
8
  </objective>
9
9
 
10
- <rules>
10
+ <trigger-conditions>
11
11
  ## When to Auto-Invoke /om:start
12
12
 
13
- If the user's message matches ANY of these patterns, automatically invoke `/om:start` with the user's input:
13
+ Invoke `/om:start` when the user's input indicates **intent to build, create, add, fix, test, review, or plan** something, OR when the task is **complex with multiple steps/requirements**.
14
14
 
15
- ### Chinese Task Patterns
16
- - `实现...功能` / `实现...` (implement)
17
- - `添加...` / `新增...` (add/create)
18
- - `修复...` / `修复...bug` (fix)
19
- - `优化...` / `重构...` (optimize/refactor)
20
- - `创建...` / `编写...` / `开发...` (create/write/develop)
21
- - `构建...` / `部署...` (build/deploy)
22
- - `更新...功能` / `改进...` (update/improve)
23
- - Any sentence that clearly describes a development task
15
+ ### Complexity Triggers (Multi-task Scenarios)
24
16
 
25
- ### English Task Patterns
26
- - `implement...` / `add...` / `create...`
27
- - `fix...` / `bug...` / `issue...`
28
- - `build...` / `develop...`
29
- - `refactor...` / `optimize...`
30
- - `update...` / `improve...`
17
+ **Invoke when user describes:**
31
18
 
32
- ### File Path Patterns
33
- - Input is a path to a `.md` file (e.g., `docs/task.md`)
19
+ | User Says | Why Trigger | Action |
20
+ |-----------|-------------|--------|
21
+ | "做个完整的用户系统" | Multi-component task | `/om:start 做个完整的用户系统` |
22
+ | "重构整个项目结构" | Complex refactoring | `/om:start 重构整个项目结构` |
23
+ | "从零搭建一个后台" | Multi-step project | `/om:start 从零搭建一个后台` |
24
+ | "实现完整的 CRUD" | Multiple features | `/om:start 实现完整的 CRUD` |
25
+ | "支持多种登录方式" | Multiple integrations | `/om:start 支持多种登录方式` |
26
+ | "前端+后端+数据库" | Full-stack work | `/om:start 前端+后端+数据库` |
27
+ | "A/B/C/D 都要实现" | Multiple requirements | `/om:start A/B/C/D 都要实现` |
28
+ | "先把 A 做了,再做 B" | Sequential tasks | `/om:start 先把 A 做了,再做 B` |
34
29
 
30
+ **Complexity indicators:**
31
+ - Contains multiple features/components (`登录+注册+权限`)
32
+ - Contains sequential steps (`先...再...然后...`)
33
+ - Contains multiple requirements (`需要 A 和 B 和 C`)
34
+ - Contains comprehensive scope (`完整...` / `整个...` / `全套...`)
35
+ - Contains multiple technologies (`前端+后端` / `React+Node+Mongo`)
36
+
37
+ ### Semantic Triggers (Intent-based)
38
+
39
+ **Feature Development:**
40
+
41
+ | User Says | Intent | Action |
42
+ |-----------|--------|--------|
43
+ | "项目支持 Python/Go/Java" | Add language support | `/om:start 项目支持 Python/Go/Java` |
44
+ | "需要登录功能" | Need a feature | `/om:start 需要登录功能` |
45
+ | "想做一个后台管理" | Want to build something | `/om:start 想做一个后台管理` |
46
+ | "加个导出功能" | Add functionality | `/om:start 加个导出功能` |
47
+ | "用户能上传文件" | Enable capability | `/om:start 用户能上传文件` |
48
+ | "集成第三方支付" | Integrate something | `/om:start 集成第三方支付` |
49
+ | "支持多语言" | Add support | `/om:start 支持多语言` |
50
+ | "要有 API 文档" | Need documentation | `/om:start 要有 API 文档` |
51
+
52
+ **Bug Fixes:**
53
+
54
+ | User Says | Intent | Action |
55
+ |-----------|--------|--------|
56
+ | "有个 bug 需要修" | Fix bug | `/om:start 有个 bug 需要修` |
57
+ | "登录报错了" | Fix error | `/om:start 登录报错了` |
58
+ | "数据保存失败" | Fix issue | `/om:start 数据保存失败` |
59
+ | "修复 XX 问题" | Fix problem | `/om:start 修复 XX 问题` |
60
+
61
+ **Improvements:**
62
+
63
+ | User Says | Intent | Action |
64
+ |-----------|--------|--------|
65
+ | "性能太慢了" | Improve performance | `/om:start 性能太慢了` |
66
+ | "代码结构不好" | Refactor code | `/om:start 代码结构不好` |
67
+ | "优化查询速度" | Optimize | `/om:start 优化查询速度` |
68
+ | "重构 XX 模块" | Refactor | `/om:start 重构 XX 模块` |
69
+
70
+ **Testing:**
71
+
72
+ | User Says | Intent | Action |
73
+ |-----------|--------|--------|
74
+ | "写个测试用例" | Write tests | `/om:start 写个测试用例` |
75
+ | "测试覆盖率不够" | Add tests | `/om:start 测试覆盖率不够` |
76
+ | "需要单元测试" | Add unit tests | `/om:start 需要单元测试` |
77
+
78
+ **Code Review:**
79
+
80
+ | User Says | Intent | Action |
81
+ |-----------|--------|--------|
82
+ | "帮我 review 代码" | Review code | `/om:start 帮我 review 代码` |
83
+ | "检查下代码质量" | Quality check | `/om:start 检查下代码质量` |
84
+ | "代码规范检查" | Lint check | `/om:start 代码规范检查` |
85
+
86
+ **Planning:**
87
+
88
+ | User Says | Intent | Action |
89
+ |-----------|--------|--------|
90
+ | "设计一个系统架构" | Design architecture | `/om:start 设计一个系统架构` |
91
+ | "规划下开发计划" | Plan development | `/om:start 规划下开发计划` |
92
+ | "分析下技术方案" | Analyze solution | `/om:start 分析下技术方案` |
93
+
94
+ ### Keyword Triggers (Pattern-based)
95
+
96
+ **Chinese - Development:**
97
+ - `实现...` / `添加...` / `新增...` / `创建...`
98
+ - `开发...` / `构建...` / `编写...` / `设计...`
99
+ - `集成...` / `部署...` / `发布...`
100
+
101
+ **Chinese - Fixes:**
102
+ - `修复...` / `解决...` / `处理...bug`
103
+ - `报错...` / `出错...` / `失败...`
104
+
105
+ **Chinese - Improvements:**
106
+ - `优化...` / `重构...` / `改进...` / `提升...`
107
+ - `加速...` / `简化...` / `清理...`
108
+
109
+ **Chinese - Testing:**
110
+ - `测试...` / `写测试...` / `单元测试...`
111
+ - `覆盖率...` / `集成测试...`
112
+
113
+ **Chinese - Intent Markers:**
114
+ - `支持...` / `需要...` / `想要...` / `要做...`
115
+ - `有...` / `缺少...` / `没有...`
116
+
117
+ **English:**
118
+ - `implement...` / `add...` / `create...` / `build...`
119
+ - `fix...` / `bug...` / `issue...` / `error...`
120
+ - `refactor...` / `optimize...` / `improve...`
121
+ - `develop...` / `integrate...` / `support...` / `need...`
122
+ - `test...` / `write test...` / `coverage...`
123
+ - `want to...` / `would like...` / `should have...`
124
+
125
+ ### File Path Triggers
126
+ - Input ends with `.md` (treated as task document)
127
+ - Input is a path to a code file with context (e.g., "review src/auth.ts")
128
+ </trigger-conditions>
129
+
130
+ <exclusions>
35
131
  ## When NOT to Auto-Invoke
36
132
 
37
- Do NOT auto-invoke when:
38
- - User explicitly uses `/om:*` commands
39
- - User asks questions: "how do I...", "what is...", "why..."
40
- - User requests info: "show me...", "list...", "read..."
41
- - User navigates: "open folder", "go to..."
42
- - User greets or chats: "hello", "thanks"
133
+ Do NOT invoke when the user is:
43
134
 
44
- ## How It Works
135
+ - **Asking questions**: "如何..." / "怎么..." / "什么是..." / "为什么..."
136
+ - **Requesting info**: "显示..." / "列出..." / "查看..." / "读取..."
137
+ - **Navigating**: "打开..." / "进入..." / "跳转..."
138
+ - **Chatting**: "你好" / "谢谢" / "好的" / "明白了"
139
+ - **Using explicit commands**: `/om:*`, `/gsd:*`, `/superpowers:*`
140
+ - **Simple file operations**: "读取文件 X", "打开文件夹"
45
141
 
46
- ```
47
- User: "实现用户登录功能"
48
-
49
- Auto-detect: Task pattern matched
50
-
51
- Action: Invoke /om:start 实现用户登录功能
52
- ```
142
+ **Key distinction:**
53
143
 
144
+ | Input | Type | Action |
145
+ |-------|------|--------|
146
+ | "项目支持 Python" | Intent to ADD | ✅ Invoke |
147
+ | "这个项目支持 Python 吗?" | Question | ❌ Don't invoke |
148
+ | "写个测试" | Intent to CREATE | ✅ Invoke |
149
+ | "测试怎么写?" | Question | ❌ Don't invoke |
150
+ | "优化这个函数" | Intent to IMPROVE | ✅ Invoke |
151
+ | "这个函数是做什么的?" | Question | ❌ Don't invoke |
152
+ </exclusions>
153
+
154
+ <examples>
54
155
  ## Examples
55
156
 
157
+ **Simple Tasks (Invoke):**
158
+
56
159
  | User Input | Action |
57
160
  |------------|--------|
58
161
  | `实现用户登录功能` | → `/om:start 实现用户登录功能` |
59
- | `fix the login bug` | → `/om:start fix the login bug` |
60
- | `添加 API 接口` | → `/om:start 添加 API 接口` |
61
- | `优化首页性能` | → `/om:start 优化首页性能` |
62
- | `docs/task.md` | → `/om:start docs/task.md` |
63
- | `how do I install this?` | → No auto-invoke (question) |
64
- </rules>
162
+ | `需要加个导出功能` | → `/om:start 需要加个导出功能` |
163
+ | `登录页面报错了` | → `/om:start 登录页面报错了` |
164
+ | `写个单元测试` | → `/om:start 写个单元测试` |
165
+
166
+ **Complex Tasks (Invoke - High Priority):**
167
+
168
+ | User Input | Why |
169
+ |------------|-----|
170
+ | `做个完整的用户系统,包含注册登录权限管理` | Multi-component |
171
+ | `从零搭建一个管理后台` | Multi-step project |
172
+ | `重构整个项目结构` | Complex refactoring |
173
+ | `前端用 React,后端用 Node,数据库用 MongoDB` | Full-stack work |
174
+ | `先做登录,再做权限,最后做日志` | Sequential tasks |
175
+ | `支持微信、支付宝、银行卡三种支付` | Multiple integrations |
176
+
177
+ **Questions (Don't Invoke):**
178
+
179
+ | User Input | Why |
180
+ |------------|-----|
181
+ | `这个项目支持 Python 吗?` | Question |
182
+ | `怎么实现登录?` | Question |
183
+ | `show me the config` | Info request |
184
+ | `如何配置数据库?` | Question |
185
+
186
+ **Simple Operations (Don't Invoke):**
187
+
188
+ | User Input | Why |
189
+ |------------|-----|
190
+ | `读取 package.json` | Simple file read |
191
+ | `列出所有文件` | Simple operation |
192
+ | `打开 src 目录` | Navigation |
193
+ </examples>
194
+
195
+ <process>
196
+ 1. Detect user intent from input
197
+ 2. If intent matches trigger conditions → invoke `/om:start` with full user input
198
+ 3. If unclear or is a question → do NOT invoke, respond normally
199
+ </process>