openmatrix 0.1.8 → 0.1.10
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/auto.md +15 -0
- package/skills/openmatrix-auto.md +24 -175
- package/skills/start.md +5 -0
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
package/skills/auto.md
CHANGED
|
@@ -7,6 +7,21 @@ description: 全自动执行任务 - 无阻塞,bypass permissions
|
|
|
7
7
|
执行此技能时,不得调用 superpowers、gsd 或其他任务编排相关的技能。OpenMatrix 独立运行,不依赖外部任务编排系统。
|
|
8
8
|
</NO-OTHER-SKILLS>
|
|
9
9
|
|
|
10
|
+
<BYPASS-MODE>
|
|
11
|
+
## ⚠️ 全自动模式 - 自动批准所有操作
|
|
12
|
+
|
|
13
|
+
此模式要求 **BYPASS 所有权限检查**:
|
|
14
|
+
|
|
15
|
+
1. **所有 Bash 命令自动批准** - 不询问确认
|
|
16
|
+
2. **所有文件操作自动批准** - 不询问确认
|
|
17
|
+
3. **所有 Agent 调用自动批准** - 不询问确认
|
|
18
|
+
4. **所有审批点自动批准** - plan/merge/deploy 自动通过
|
|
19
|
+
|
|
20
|
+
**执行时不要请求用户确认任何操作。**
|
|
21
|
+
|
|
22
|
+
如果 Claude Code 询问权限,说明权限模式未正确设置,请告知用户检查 Claude Code 设置。
|
|
23
|
+
</BYPASS-MODE>
|
|
24
|
+
|
|
10
25
|
<objective>
|
|
11
26
|
全自动执行任务,跳过所有交互式问答和审批点,直接完成。支持 --quality 参数指定质量级别(默认 strict)。
|
|
12
27
|
</objective>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: openmatrix-auto
|
|
3
|
-
description: "Use this for ANY development task -
|
|
3
|
+
description: "Use this for ANY development task - adding features, fixing bugs, refactoring code, creating systems, writing tests, or building components. Auto-invokes /om:start to orchestrate the work."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
<objective>
|
|
@@ -10,190 +10,39 @@ Automatically detect when user wants to accomplish a development task and invoke
|
|
|
10
10
|
<trigger-conditions>
|
|
11
11
|
## When to Auto-Invoke /om:start
|
|
12
12
|
|
|
13
|
-
Invoke `/om:start` when
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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` |
|
|
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")
|
|
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" / "前端+后端+数据库"
|
|
128
25
|
</trigger-conditions>
|
|
129
26
|
|
|
130
27
|
<exclusions>
|
|
131
28
|
## When NOT to Auto-Invoke
|
|
132
29
|
|
|
133
|
-
Do NOT invoke when
|
|
134
|
-
|
|
135
|
-
-
|
|
136
|
-
-
|
|
137
|
-
-
|
|
138
|
-
- **Chatting**: "你好" / "谢谢" / "好的" / "明白了"
|
|
139
|
-
- **Using explicit commands**: `/om:*`, `/gsd:*`, `/superpowers:*`
|
|
140
|
-
- **Simple file operations**: "读取文件 X", "打开文件夹"
|
|
141
|
-
|
|
142
|
-
**Key distinction:**
|
|
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: "你好" / "谢谢"
|
|
143
35
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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 |
|
|
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
|
|
152
39
|
</exclusions>
|
|
153
40
|
|
|
154
41
|
<examples>
|
|
155
|
-
## Examples
|
|
156
|
-
|
|
157
|
-
**Simple Tasks (Invoke):**
|
|
158
|
-
|
|
159
42
|
| User Input | Action |
|
|
160
43
|
|------------|--------|
|
|
44
|
+
| `增加一个 om:upgrade 命令` | → `/om:start 增加一个 om:upgrade 命令` |
|
|
161
45
|
| `实现用户登录功能` | → `/om:start 实现用户登录功能` |
|
|
162
|
-
| `需要加个导出功能` | → `/om:start 需要加个导出功能` |
|
|
163
46
|
| `登录页面报错了` | → `/om:start 登录页面报错了` |
|
|
164
|
-
|
|
|
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>
|
|
47
|
+
| `怎么实现登录?` | → No invoke (question) |
|
|
48
|
+
</examples>
|
package/skills/start.md
CHANGED
|
@@ -190,6 +190,11 @@ AskUserQuestion({
|
|
|
190
190
|
})
|
|
191
191
|
```
|
|
192
192
|
|
|
193
|
+
**⚠️ 如果用户选择"全自动执行":**
|
|
194
|
+
- 进入 **BYPASS 模式**,所有操作自动批准
|
|
195
|
+
- 不要请求用户确认任何 Bash 命令或文件操作
|
|
196
|
+
- 自动批准所有审批点 (plan/merge/deploy)
|
|
197
|
+
|
|
193
198
|
8. **开始执行** (⚠️ 严格模式)
|
|
194
199
|
|
|
195
200
|
**重要**: 从此步骤开始,除非遇到 meeting 审批或失败,否则**不得暂停询问用户**。
|