/openmatrix:om:approvefrom openmatrix
Handles pending approvals during OpenMatrix execution: plan review, merge confirmation, deploy approval, and blocked task decisions. Presents approval items with options to approve, modify, or reject.
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.
AI 应根据用户语义判断意图:
| 用户意图 | 应调用 |
|---|---|
| 开始任务 | /om:start |
| 调查问题 | /om:debug |
| 查看状态 | /om:status |
| 用户消息 | 判断 | 结果 |
|---|---|---|
| "审批这个计划" | 审批意图 | 触发 ✓ |
| "确认合并" | 确认意图 | 触发 ✓ |
| "批准部署" | 部署审批意图 | 触发 ✓ |
| "为什么没通过审批" | 调查意图 | /om:debug |
| "开始实现" | 开发意图 | /om:start |
如果没有待审批项
✅ 没有待审批项
当前执行状态:
- 运行中任务: X
- 已完成: Y
- 总计: Z
使用 /om:status 查看详情
如果有多个,让用户选择要处理的审批
展示审批内容 (根据类型区分)
Plan 审批:
🔔 待审批: APPR-001
📋 类型: 📝 Plan 审批
🎯 任务: TASK-XXX
## 执行计划
### Phase 1: 设计阶段
└─ TASK-001: 架构设计 (15min)
### Phase 2: 开发阶段
├─ TASK-002: 数据模型 (20min)
└─ TASK-003: API 接口 (30min)
📊 统计
- 总任务: 3
- 预计耗时: ~1小时
## 选项
[A] ✅ 批准 - 按此计划执行
[B] ✏️ 修改 - 需要调整计划
[C] ❌ 拒绝 - 重新规划
请选择: _
Meeting 审批 (阻塞问题):
🔔 待审批: APPR-002
📋 类型: 🔴 Meeting (阻塞)
🎯 任务: TASK-XXX
## 阻塞问题描述
**原因**: [阻塞原因]
**时间**: [发生时间]
## 影响范围
- TASK-XXX: 下游任务1
- TASK-YYY: 下游任务2
## 可选操作
[A] 💡 提供信息 - 提供解决阻塞所需的信息
[B] ⏭️ 跳过任务 - 标记为可选,继续执行
[C] 🔄 修改方案 - 调整任务方案
[D] ❌ 取消执行 - 停止整个流程
请选择: _
Meeting 审批 (技术决策):
🔔 待审批: APPR-003
📋 类型: 🤔 Meeting (决策)
🎯 任务: TASK-XXX
## 决策点
**问题**: [需要决策的技术问题]
## 可选方案
1. 方案A - [描述] (推荐)
- 优点: ...
- 缺点: ...
2. 方案B - [描述]
- 优点: ...
- 缺点: ...
## 选项
[A] 选择方案1 (推荐)
[B] 选择方案2
[C] 自定义方案 - 输入您自己的方案
[D] 需要更多信息 - 暂不决策,先获取更多信息
请选择: _
处理用户选择
使用 AskUserQuestion 工具进行交互:
AskUserQuestion({
questions: [{
question: "请选择审批操作:",
header: "审批",
options: [
{ label: "批准", description: "批准并继续执行" },
{ label: "修改", description: "需要修改后重新提交" },
{ label: "拒绝", description: "拒绝此请求" }
],
multiSelect: false
}]
})
如果选择"提供信息"或"自定义方案",追加问题:
AskUserQuestion({
questions: [{
question: "请输入详细信息:",
header: "详情",
options: [] // 允许自由输入
}]
})
执行审批
openmatrix approve <approvalId> -d <approve|reject|modify> [-c "备注"] --json
注意: approvalId 是位置参数,不要使用 --id。正确格式: openmatrix approve APPR-001 -d approve --json
更新状态
approvals/{id}.json后续处理
如果批准:
如果拒绝/修改:
如果提供审批ID,直接处理指定审批。 如果无参数,列出所有待审批项供选择。
/om:approve # 列出所有待审批 /om:approve APPR-001 # 直接处理指定审批 ## 审批类型说明| 类型 | 图标 | 触发条件 | 处理方式 |
|---|---|---|---|
| plan | 📝 | 任务拆解完成 | 批准/修改/拒绝 |
| merge | 🔀 | 开发完成 | 批准/拒绝 |
| deploy | 🚀 | 部署前确认 | 批准/拒绝 |
| meeting | 🔴/🤔 | 阻塞/决策 | 交互式解决 |
Meeting 审批需要更细致的交互:
阻塞问题
技术决策
# 列出待审批 (不传 ID)
openmatrix approve --json
# 处理审批 (ID 是位置参数,不要用 --id)
openmatrix approve APPR-001 -d approve -c "同意此方案" --json
openmatrix approve APPR-001 -d reject -c "需要重新设计" --json
openmatrix approve APPR-001 -d modify -c "增加测试覆盖率要求" --json
执行循环检测到 pending approval
│
▼
调用 /om:approve
│
▼
用户审批决策
│
▼
更新审批状态
│
▼
如果是 Meeting:
├─ 解决 Meeting
└─ 恢复任务状态
│
▼
继续执行循环
What SKILL.md sets; muted values are Claude Code's defaults
20 skills in this plugin
/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./check自动检测项目可改进点并提供升级建议,用户确认后自动执行Generated from the plugin's indexed repository (bigfish1913/openmatrix) — no native marketplace selected
npx claudepluginhub p/bigfish1913-openmatrix