openmatrix 0.2.29 → 0.2.30
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/dist/cli/commands/install-skills.js +19 -0
- package/package.json +1 -1
- package/scripts/install-skills.js +28 -0
- package/skills/SKILL.md +54 -0
|
@@ -146,6 +146,25 @@ exports.installSkillsCommand = new commander_1.Command('install-skills')
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
+
// Install SKILL.md for MatrixCode (skill package manifest)
|
|
150
|
+
if (target.name === 'MatrixCode') {
|
|
151
|
+
const skillManifestSrc = path.join(skillsDir, 'SKILL.md');
|
|
152
|
+
const skillManifestDest = path.join(target.dir, 'SKILL.md');
|
|
153
|
+
if (fs.existsSync(skillManifestSrc)) {
|
|
154
|
+
try {
|
|
155
|
+
if (fs.existsSync(skillManifestDest) && !options.force) {
|
|
156
|
+
skipped++;
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
fs.copyFileSync(skillManifestSrc, skillManifestDest);
|
|
160
|
+
installed++;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
catch (err) {
|
|
164
|
+
failed++;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
149
168
|
console.log(` ✅ Installed: ${installed}`);
|
|
150
169
|
console.log(` ⏭️ Skipped: ${skipped}`);
|
|
151
170
|
if (failed > 0) {
|
package/package.json
CHANGED
|
@@ -16,10 +16,12 @@ const targets = [
|
|
|
16
16
|
{
|
|
17
17
|
name: 'Claude Code',
|
|
18
18
|
dir: path.join(os.homedir(), '.claude', 'commands', 'om'),
|
|
19
|
+
isClaudeCode: true,
|
|
19
20
|
},
|
|
20
21
|
{
|
|
21
22
|
name: 'OpenCode',
|
|
22
23
|
dir: path.join(os.homedir(), '.config', 'opencode', 'commands', 'om'),
|
|
24
|
+
isClaudeCode: false,
|
|
23
25
|
},
|
|
24
26
|
];
|
|
25
27
|
|
|
@@ -33,6 +35,7 @@ if (fs.existsSync(matrixDir)) {
|
|
|
33
35
|
targets.push({
|
|
34
36
|
name: 'MatrixCode',
|
|
35
37
|
dir: matrixSkillsDir,
|
|
38
|
+
isMatrixCode: true,
|
|
36
39
|
});
|
|
37
40
|
}
|
|
38
41
|
|
|
@@ -62,6 +65,31 @@ for (const target of targets) {
|
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
67
|
|
|
68
|
+
// For Claude Code: install om.md and openmatrix.md to parent directory
|
|
69
|
+
if (target.isClaudeCode) {
|
|
70
|
+
const claudeCommandsDir = path.join(os.homedir(), '.claude', 'commands');
|
|
71
|
+
const omSrc = path.join(skillsDir, 'om.md');
|
|
72
|
+
const omDest = path.join(claudeCommandsDir, 'om.md');
|
|
73
|
+
if (fs.existsSync(omSrc)) {
|
|
74
|
+
try {
|
|
75
|
+
fs.copyFileSync(omSrc, omDest);
|
|
76
|
+
installed++;
|
|
77
|
+
} catch (copyErr) {
|
|
78
|
+
console.log(` ⚠️ Skipped: om.md (${copyErr.message})`);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
const autoSrc = path.join(skillsDir, 'openmatrix.md');
|
|
82
|
+
const autoDest = path.join(claudeCommandsDir, 'openmatrix.md');
|
|
83
|
+
if (fs.existsSync(autoSrc)) {
|
|
84
|
+
try {
|
|
85
|
+
fs.copyFileSync(autoSrc, autoDest);
|
|
86
|
+
installed++;
|
|
87
|
+
} catch (copyErr) {
|
|
88
|
+
console.log(` ⚠️ Skipped: openmatrix.md (${copyErr.message})`);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
65
93
|
console.log(`✅ ${target.name}: ${installed} skills installed to ${target.dir}`);
|
|
66
94
|
} catch (err) {
|
|
67
95
|
console.log(`⚠️ ${target.name}: skipped (${err.message})`);
|
package/skills/SKILL.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: om
|
|
3
|
+
description: "OpenMatrix - AI Agent 任务编排系统,自动化测试生成,覆盖率 >80%。提供 /om 命令族:/om:start、/om:feature、/om:brainstorm、/om:auto、/om:debug 等。"
|
|
4
|
+
priority: critical
|
|
5
|
+
always_load: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# OpenMatrix Skills Package
|
|
9
|
+
|
|
10
|
+
你的代码没测试?OpenMatrix 自动帮你补,覆盖率 >80%
|
|
11
|
+
|
|
12
|
+
## 可用 Skills
|
|
13
|
+
|
|
14
|
+
| Skill | 描述 | 用途 |
|
|
15
|
+
|-------|------|------|
|
|
16
|
+
| `/om` | 默认入口 | AI 推荐路由,用户确认后执行 |
|
|
17
|
+
| `/om:start` | 标准流程 | 完整追踪,质量门禁,任务明确可直接执行 |
|
|
18
|
+
| `/om:feature` | 小需求流程 | 2-5 个任务块,轻量追踪,适合单一改动点 |
|
|
19
|
+
| `/om:brainstorm` | 澄清/设计 | 先澄清不明确点或设计方案,再执行 |
|
|
20
|
+
| `/om:auto` | 全自动执行 | 零交互,无审批,适合批量任务 |
|
|
21
|
+
| `/om:debug` | 系统化调试 | 问题诊断,根因分析 |
|
|
22
|
+
| `/om:status` | 查看状态 | 任务执行进度 |
|
|
23
|
+
| `/om:meeting` | 处理阻塞 | 处理 blocked 任务 |
|
|
24
|
+
| `/om:report` | 生成报告 | 执行报告生成 |
|
|
25
|
+
| `/om:resume` | 恢复任务 | 恢复中断的任务 |
|
|
26
|
+
| `/om:research` | 领域调研 | 技术方案调研 |
|
|
27
|
+
|
|
28
|
+
## 快速开始
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
/om 实现用户登录功能
|
|
32
|
+
|
|
33
|
+
# AI 分析任务 → 推荐路由 → 用户确认 → 执行
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## 质量门禁
|
|
37
|
+
|
|
38
|
+
| 模式 | TDD | 覆盖率 | Lint | 安全扫描 |
|
|
39
|
+
|------|:---:|:------:|:----:|:--------:|
|
|
40
|
+
| 严格模式 | Y | >80% | Y | Y |
|
|
41
|
+
| 平衡模式 | N | >60% | Y | Y |
|
|
42
|
+
| 快速模式 | N | 无 | N | N |
|
|
43
|
+
|
|
44
|
+
## 安装
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm install -g openmatrix
|
|
48
|
+
openmatrix install-skills
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## 文档
|
|
52
|
+
|
|
53
|
+
- GitHub: https://github.com/bigfish1913/openmatrix
|
|
54
|
+
- NPM: https://www.npmjs.com/package/openmatrix
|