/openmatrix:checkfrom openmatrix
Scans a project for code quality, security, and capability improvements, presents a markdown report, and executes fixes on user confirmation.
Ships in openmatrix. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
当用户想要:
用户输入示例:
/check - 自动扫描当前项目/check 性能优化 - 聚焦性能相关改进/check 安全 - 聚焦安全问题
调用 CLI 获取检测结果:
openmatrix check --json
如果用户提供了提示,传入参数:
openmatrix check "用户提示" --json
解析检测结果
结果格式:
{
"projectType": "openmatrix|ai-project|nodejs|typescript|python|go|rust|java|csharp|cpp|php|dart",
"projectName": "项目名称",
"suggestions": [
{
"id": "UPG-001",
"category": "bug|quality|capability|ux|style|security|common|prompt|skill|agent",
"priority": "critical|high|medium|low",
"title": "建议标题",
"description": "详细描述",
"location": { "file": "src/example.ts", "line": 42 },
"suggestion": "改进建议"
}
],
"summary": { "total": 10, "byCategory": {...}, "autoFixable": 3 }
}
以文档形式展示检测结果
不要使用 AskUserQuestion,直接输出 markdown 格式的检测报告:
# 📋 项目检查报告
**项目**: [projectName]
**类型**: [projectType]
**检测时间**: [timestamp]
---
## 📊 检测摘要
| 类别 | 数量 |
|------|------|
| 🔴 Critical | X |
| 🟠 High | X |
| 🟡 Medium | X |
| 🟢 Low | X |
| **总计** | **X** |
---
## 🔍 详细问题列表
### 🔴 Critical (critical级别问题)
1. **[title]**
- 📁 位置: `file:line`
- 📝 描述: [description]
- 💡 建议: [suggestion]
### 🟠 High (high级别问题)
...
### 🟡 Medium (medium级别问题)
...
---
**是否继续?**
如果没有发现问题:
✅ 未发现问题,项目状态良好!
等待用户确认
展示报告后,等待用户回复。用户回复确认词语(如"是"、"继续"、"好"、"可以"等)即执行下一步。
调用 /om:start 执行改进
用户确认后,将建议转换为任务描述,调用 /om:start:
// 生成任务描述
const taskDescription = `
## 项目改进任务
根据检测结果,需要修复以下问题:
${suggestions.map((s, i) => `
### ${i + 1}. ${s.title}
- 类别: ${s.category}
- 优先级: ${s.priority}
- 位置: ${s.location.file}${s.location.line ? `:${s.location.line}` : ''}
- 建议: ${s.suggestion}
`).join('\n')}
请逐一修复这些问题。
`;
// 调用 /om:start
Skill({ skill: "om:start", args: taskDescription });
/check
│
├── 1. 检测项目 ──→ 生成建议列表
│
├── 2. 展示报告 ──→ 输出 Markdown 格式的检测报告
│ (不使用交互式对话框,让用户能看到完整文档)
│
├── 3. 等待确认 ──→ 用户回复 "是" 或 "继续"
│
└── 4. 自动执行 ──→ 调用 /om:start
│
├── 任务规划
├── 代码修改
├── 质量验证
└── 完成 ✅
| 类别 | 说明 | 示例 |
|---|---|---|
| 🐛 bug | 代码缺陷 | TODO, FIXME, 潜在bug |
| 🔧 quality | 代码质量 | 过长函数, 复杂度 |
| 📦 capability | 缺失能力 | 缺少测试, 文档 |
| 🔒 security | 安全问题 | 硬编码密钥, SQL注入 |
| 🤖 prompt | Prompt 问题 | 注入风险, 缺少格式 |
| ⚡ skill | Skill 问题 | 缺少 frontmatter |
| 🧠 agent | Agent 配置 | CLAUDE.md 缺少构建命令 |
交互式对话框(AskUserQuestion)会遮挡检测报告,用户无法完整查看问题详情。
改为直接输出 Markdown 报告,用户可以:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (bigfish1913/openmatrix) — no native marketplace selected
npx claudepluginhub p/bigfish1913-openmatrix20 skills in this plugin
/om:approveUse when handling pending approvals including plan review, merge confirmation, deploy approval, and blocked task decisions during OpenMatrix execution. Triggers on APPROVAL intent: user wants to review and approve pending items, handle merge conflicts, or confirm deploy. DO NOT trigger on: starting tasks, debugging, or status checks. Intent signals: user mentions 'approve', 'review plan', 'confirm merge', 'approve deploy', or refers to pending approval actions./om:autoUse when the user wants fully automated task execution with zero manual approvals. Triggers on AUTOMATION intent: user explicitly requests hands-free execution, wants to skip all confirmations, or needs batch processing without interruptions. Expects plan.md + tasks-input.json to already exist (generated by /om:plan). DO NOT trigger on: interactive requests, debugging, or status checks. Intent signals: user says 'fully auto', 'hands-free', 'no interruptions', 'skip approvals', or describes large batch operations./om:brainstormUse when the user wants to explore requirements, design alternatives, or validate ideas before implementation. Triggers on CLARIFICATION/DESIGN intent: user needs to clarify unclear requirements, explore multiple approaches, or design architecture before coding. DO NOT trigger on: simple implementation requests (clear path), status checks, or pure information queries. Intent signals: user says 'how should I', mentions multiple options/uncertainties, describes complex system from scratch, or task scope is ambiguous./om:debugUse when user encounters ANY technical problem and needs systematic diagnosis. Triggers on PROBLEM-EXPLORATION intent: user wants to understand WHY something failed, investigate root cause, or diagnose unexpected behavior. DO NOT trigger on: simple questions (how to do X), implementation requests (build/fix/add), or status checks. Intent signals: user seems confused about failure, asks '为什么', mentions error/issue without clear solution, wants to investigate before fixing./om:deployUse for deployment, publishing, environment setup, or creating deployment scripts. Triggers on DEPLOYMENT intent: deploy to server, Docker/K8s config, publish npm package, or generate deployment scripts. DO NOT trigger on: development tasks, debugging, or status checks./om:featureUse for small feature requests needing quick iteration. Triggers on MINOR-CHANGE intent: small/quick/simple changes, single component, few files, straightforward implementation. 2-5 task chunks, lightweight tracking, no task files. DO NOT trigger on: complex multi-module tasks or unclear requirements.