openmatrix 0.1.9 → 0.1.11
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 +18 -2
- package/package.json +1 -1
- package/skills/openmatrix-auto.md +48 -212
package/README.md
CHANGED
|
@@ -358,6 +358,23 @@ Accept 阶段由 Reviewer Agent 执行:
|
|
|
358
358
|
|
|
359
359
|
---
|
|
360
360
|
|
|
361
|
+
## 多语言支持
|
|
362
|
+
|
|
363
|
+
OpenMatrix 通过 Claude Code Agent 工具**原生支持所有主流编程语言**:
|
|
364
|
+
|
|
365
|
+
| 语言 | 测试命令 | 构建命令 |
|
|
366
|
+
|------|---------|---------|
|
|
367
|
+
| TypeScript/JavaScript | `npm test` / `vitest` | `npm run build` |
|
|
368
|
+
| Python | `pytest` | `python -m build` |
|
|
369
|
+
| Go | `go test ./...` | `go build` |
|
|
370
|
+
| Java | `mvn test` | `mvn compile` |
|
|
371
|
+
| Rust | `cargo test` | `cargo build` |
|
|
372
|
+
| 其他 | 任意 CLI 命令 | 任意 CLI 命令 |
|
|
373
|
+
|
|
374
|
+
**无需额外配置** — Agent 可执行任意 shell 命令,Claude 理解所有主流语言。
|
|
375
|
+
|
|
376
|
+
---
|
|
377
|
+
|
|
361
378
|
## 常见问题
|
|
362
379
|
|
|
363
380
|
### Q: 哪种质量级别适合我?
|
|
@@ -414,9 +431,8 @@ cd openmatrix && npm install && npm run build && npm test
|
|
|
414
431
|
- [x] 质量报告
|
|
415
432
|
- [x] AI 验收
|
|
416
433
|
- [x] `/om:auto` 全自动模式
|
|
417
|
-
- [x]
|
|
434
|
+
- [x] 多语言支持 (Python/Go/Java/TypeScript 等)
|
|
418
435
|
- [ ] VSCode 扩展
|
|
419
|
-
- [ ] Python/Go 支持
|
|
420
436
|
- [ ] CI/CD 集成
|
|
421
437
|
|
|
422
438
|
---
|
package/package.json
CHANGED
|
@@ -1,212 +1,48 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: openmatrix-auto
|
|
3
|
-
description: "
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
<objective>
|
|
7
|
-
Automatically detect when user wants to accomplish a development task and invoke /om:start without requiring explicit command.
|
|
8
|
-
</objective>
|
|
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
|
-
### Semantic Triggers (Intent-based)
|
|
51
|
-
|
|
52
|
-
**Feature Development:**
|
|
53
|
-
|
|
54
|
-
| User Says | Intent | Action |
|
|
55
|
-
|-----------|--------|--------|
|
|
56
|
-
| "项目支持 Python/Go/Java" | Add language support | `/om:start 项目支持 Python/Go/Java` |
|
|
57
|
-
| "需要登录功能" | Need a feature | `/om:start 需要登录功能` |
|
|
58
|
-
| "想做一个后台管理" | Want to build something | `/om:start 想做一个后台管理` |
|
|
59
|
-
| "加个导出功能" | Add functionality | `/om:start 加个导出功能` |
|
|
60
|
-
| "用户能上传文件" | Enable capability | `/om:start 用户能上传文件` |
|
|
61
|
-
| "集成第三方支付" | Integrate something | `/om:start 集成第三方支付` |
|
|
62
|
-
| "支持多语言" | Add support | `/om:start 支持多语言` |
|
|
63
|
-
| "要有 API 文档" | Need documentation | `/om:start 要有 API 文档` |
|
|
64
|
-
|
|
65
|
-
**Bug Fixes:**
|
|
66
|
-
|
|
67
|
-
| User Says | Intent | Action |
|
|
68
|
-
|-----------|--------|--------|
|
|
69
|
-
| "有个 bug 需要修" | Fix bug | `/om:start 有个 bug 需要修` |
|
|
70
|
-
| "登录报错了" | Fix error | `/om:start 登录报错了` |
|
|
71
|
-
| "数据保存失败" | Fix issue | `/om:start 数据保存失败` |
|
|
72
|
-
| "修复 XX 问题" | Fix problem | `/om:start 修复 XX 问题` |
|
|
73
|
-
|
|
74
|
-
**Improvements:**
|
|
75
|
-
|
|
76
|
-
| User Says | Intent | Action |
|
|
77
|
-
|-----------|--------|--------|
|
|
78
|
-
| "性能太慢了" | Improve performance | `/om:start 性能太慢了` |
|
|
79
|
-
| "代码结构不好" | Refactor code | `/om:start 代码结构不好` |
|
|
80
|
-
| "优化查询速度" | Optimize | `/om:start 优化查询速度` |
|
|
81
|
-
| "重构 XX 模块" | Refactor | `/om:start 重构 XX 模块` |
|
|
82
|
-
|
|
83
|
-
**Testing:**
|
|
84
|
-
|
|
85
|
-
| User Says | Intent | Action |
|
|
86
|
-
|-----------|--------|--------|
|
|
87
|
-
| "写个测试用例" | Write tests | `/om:start 写个测试用例` |
|
|
88
|
-
| "测试覆盖率不够" | Add tests | `/om:start 测试覆盖率不够` |
|
|
89
|
-
| "需要单元测试" | Add unit tests | `/om:start 需要单元测试` |
|
|
90
|
-
|
|
91
|
-
**Code Review:**
|
|
92
|
-
|
|
93
|
-
| User Says | Intent | Action |
|
|
94
|
-
|-----------|--------|--------|
|
|
95
|
-
| "帮我 review 代码" | Review code | `/om:start 帮我 review 代码` |
|
|
96
|
-
| "检查下代码质量" | Quality check | `/om:start 检查下代码质量` |
|
|
97
|
-
| "代码规范检查" | Lint check | `/om:start 代码规范检查` |
|
|
98
|
-
|
|
99
|
-
**Planning:**
|
|
100
|
-
|
|
101
|
-
| User Says | Intent | Action |
|
|
102
|
-
|-----------|--------|--------|
|
|
103
|
-
| "设计一个系统架构" | Design architecture | `/om:start 设计一个系统架构` |
|
|
104
|
-
| "规划下开发计划" | Plan development | `/om:start 规划下开发计划` |
|
|
105
|
-
| "分析下技术方案" | Analyze solution | `/om:start 分析下技术方案` |
|
|
106
|
-
|
|
107
|
-
### Keyword Triggers (Pattern-based)
|
|
108
|
-
|
|
109
|
-
**Chinese - Development:**
|
|
110
|
-
- `实现...` / `添加...` / `新增...` / `创建...`
|
|
111
|
-
- `开发...` / `构建...` / `编写...` / `设计...`
|
|
112
|
-
- `集成...` / `部署...` / `发布...`
|
|
113
|
-
|
|
114
|
-
**Chinese - Fixes:**
|
|
115
|
-
- `修复...` / `解决...` / `处理...bug`
|
|
116
|
-
- `报错...` / `出错...` / `失败...`
|
|
117
|
-
|
|
118
|
-
**Chinese - Improvements:**
|
|
119
|
-
- `优化...` / `重构...` / `改进...` / `提升...`
|
|
120
|
-
- `加速...` / `简化...` / `清理...`
|
|
121
|
-
|
|
122
|
-
**Chinese - Testing:**
|
|
123
|
-
- `测试...` / `写测试...` / `单元测试...`
|
|
124
|
-
- `覆盖率...` / `集成测试...`
|
|
125
|
-
|
|
126
|
-
**Chinese - Intent Markers:**
|
|
127
|
-
- `支持...` / `需要...` / `想要...` / `要做...`
|
|
128
|
-
- `有...` / `缺少...` / `没有...`
|
|
129
|
-
|
|
130
|
-
**English:**
|
|
131
|
-
- `implement...` / `add...` / `create...` / `build...`
|
|
132
|
-
- `fix...` / `bug...` / `issue...` / `error...`
|
|
133
|
-
- `refactor...` / `optimize...` / `improve...`
|
|
134
|
-
- `develop...` / `integrate...` / `support...` / `need...`
|
|
135
|
-
- `test...` / `write test...` / `coverage...`
|
|
136
|
-
- `want to...` / `would like...` / `should have...`
|
|
137
|
-
|
|
138
|
-
### File Path Triggers
|
|
139
|
-
- Input ends with `.md` (treated as task document)
|
|
140
|
-
- Input is a path to a code file with context (e.g., "review src/auth.ts")
|
|
141
|
-
</trigger-conditions>
|
|
142
|
-
|
|
143
|
-
<exclusions>
|
|
144
|
-
## When NOT to Auto-Invoke
|
|
145
|
-
|
|
146
|
-
Do NOT invoke when the user is:
|
|
147
|
-
|
|
148
|
-
- **Asking questions**: "如何..." / "怎么..." / "什么是..." / "为什么..."
|
|
149
|
-
- **Requesting info**: "显示..." / "列出..." / "查看..." / "读取..."
|
|
150
|
-
- **Navigating**: "打开..." / "进入..." / "跳转..."
|
|
151
|
-
- **Chatting**: "你好" / "谢谢" / "好的" / "明白了"
|
|
152
|
-
- **Using explicit commands**: `/om:*`, `/gsd:*`, `/superpowers:*`
|
|
153
|
-
- **Simple file operations**: "读取文件 X", "打开文件夹"
|
|
154
|
-
|
|
155
|
-
**Key distinction:**
|
|
156
|
-
|
|
157
|
-
| Input | Type | Action |
|
|
158
|
-
|-------|------|--------|
|
|
159
|
-
| "项目支持 Python" | Intent to ADD | ✅ Invoke |
|
|
160
|
-
| "这个项目支持 Python 吗?" | Question | ❌ Don't invoke |
|
|
161
|
-
| "写个测试" | Intent to CREATE | ✅ Invoke |
|
|
162
|
-
| "测试怎么写?" | Question | ❌ Don't invoke |
|
|
163
|
-
| "优化这个函数" | Intent to IMPROVE | ✅ Invoke |
|
|
164
|
-
| "这个函数是做什么的?" | Question | ❌ Don't invoke |
|
|
165
|
-
</exclusions>
|
|
166
|
-
|
|
167
|
-
<examples>
|
|
168
|
-
## Examples
|
|
169
|
-
|
|
170
|
-
**Simple Tasks (Invoke):**
|
|
171
|
-
|
|
172
|
-
| User Input | Action |
|
|
173
|
-
|------------|--------|
|
|
174
|
-
| `实现用户登录功能` | → `/om:start 实现用户登录功能` |
|
|
175
|
-
| `需要加个导出功能` | → `/om:start 需要加个导出功能` |
|
|
176
|
-
| `登录页面报错了` | → `/om:start 登录页面报错了` |
|
|
177
|
-
| `写个单元测试` | → `/om:start 写个单元测试` |
|
|
178
|
-
|
|
179
|
-
**Complex Tasks (Invoke - High Priority):**
|
|
180
|
-
|
|
181
|
-
| User Input | Why |
|
|
182
|
-
|------------|-----|
|
|
183
|
-
| `做个完整的用户系统,包含注册登录权限管理` | Multi-component |
|
|
184
|
-
| `从零搭建一个管理后台` | Multi-step project |
|
|
185
|
-
| `重构整个项目结构` | Complex refactoring |
|
|
186
|
-
| `前端用 React,后端用 Node,数据库用 MongoDB` | Full-stack work |
|
|
187
|
-
| `先做登录,再做权限,最后做日志` | Sequential tasks |
|
|
188
|
-
| `支持微信、支付宝、银行卡三种支付` | Multiple integrations |
|
|
189
|
-
|
|
190
|
-
**Questions (Don't Invoke):**
|
|
191
|
-
|
|
192
|
-
| User Input | Why |
|
|
193
|
-
|------------|-----|
|
|
194
|
-
| `这个项目支持 Python 吗?` | Question |
|
|
195
|
-
| `怎么实现登录?` | Question |
|
|
196
|
-
| `show me the config` | Info request |
|
|
197
|
-
| `如何配置数据库?` | Question |
|
|
198
|
-
|
|
199
|
-
**Simple Operations (Don't Invoke):**
|
|
200
|
-
|
|
201
|
-
| User Input | Why |
|
|
202
|
-
|------------|-----|
|
|
203
|
-
| `读取 package.json` | Simple file read |
|
|
204
|
-
| `列出所有文件` | Simple operation |
|
|
205
|
-
| `打开 src 目录` | Navigation |
|
|
206
|
-
</examples>
|
|
207
|
-
|
|
208
|
-
<process>
|
|
209
|
-
1. Detect user intent from input
|
|
210
|
-
2. If intent matches trigger conditions → invoke `/om:start` with full user input
|
|
211
|
-
3. If unclear or is a question → do NOT invoke, respond normally
|
|
212
|
-
</process>
|
|
1
|
+
---
|
|
2
|
+
name: openmatrix-auto
|
|
3
|
+
description: "Invoke /om:start for any implementation task - adding features, fixing bugs, refactoring, creating commands, writing code, building systems. Use this when user describes work to be done, not for questions or information requests."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
<objective>
|
|
7
|
+
Automatically detect when user wants to accomplish a development task and invoke /om:start without requiring explicit command.
|
|
8
|
+
</objective>
|
|
9
|
+
|
|
10
|
+
<trigger-conditions>
|
|
11
|
+
## When to Auto-Invoke /om:start
|
|
12
|
+
|
|
13
|
+
**Invoke `/om:start` when user wants to:**
|
|
14
|
+
- Add/create/implement new features or functionality
|
|
15
|
+
- Fix bugs or resolve issues
|
|
16
|
+
- Refactor or optimize existing code
|
|
17
|
+
- Write tests
|
|
18
|
+
- Build components or systems
|
|
19
|
+
- Integrate third-party services
|
|
20
|
+
|
|
21
|
+
**This includes:**
|
|
22
|
+
- Direct requests: "实现登录功能" / "增加一个命令" / "修复bug"
|
|
23
|
+
- Complex tasks: "做个完整的用户系统" / "从零搭建后台"
|
|
24
|
+
- Multi-step work: "先做A再做B" / "前端+后端+数据库"
|
|
25
|
+
</trigger-conditions>
|
|
26
|
+
|
|
27
|
+
<exclusions>
|
|
28
|
+
## When NOT to Auto-Invoke
|
|
29
|
+
|
|
30
|
+
**Do NOT invoke when:**
|
|
31
|
+
- User is asking a question: "怎么实现?" / "如何配置?" / "what is..."
|
|
32
|
+
- User is requesting information: "显示配置" / "列出文件" / "show me..."
|
|
33
|
+
- User is navigating: "打开目录" / "进入文件夹"
|
|
34
|
+
- User is just chatting: "你好" / "谢谢"
|
|
35
|
+
|
|
36
|
+
**Key test: Is the user asking you to BUILD/CREATE/FIX something?**
|
|
37
|
+
- Yes → Invoke `/om:start`
|
|
38
|
+
- No (asking for info) → Do NOT invoke
|
|
39
|
+
</exclusions>
|
|
40
|
+
|
|
41
|
+
<examples>
|
|
42
|
+
| User Input | Action |
|
|
43
|
+
|------------|--------|
|
|
44
|
+
| `增加一个 om:upgrade 命令` | → `/om:start 增加一个 om:upgrade 命令` |
|
|
45
|
+
| `实现用户登录功能` | → `/om:start 实现用户登录功能` |
|
|
46
|
+
| `登录页面报错了` | → `/om:start 登录页面报错了` |
|
|
47
|
+
| `怎么实现登录?` | → No invoke (question) |
|
|
48
|
+
</examples>
|