[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C16YGQYP0WYXGWHXWDX8ZY":3,"skill-same:01M7C16YGQYP0WYXGWHXWDX8ZY":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7C16YGQYP0WYXGWHXWDX8ZY","opskeeper-coordination",null,"Manager 派活决策树。基于 incident severity \u002F blast_radius \u002F confidence 硬编码派活规则，不依赖 LLM 推断派给谁。","vincent-wuhan\u002Fopskeeper","vincent-wuhan","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F17893870?v=4","01M7C152SAG8FH2Z2FQ919H129","BeachDreamOfSaltfish","01M7C152T3H7FPS629BGAXEBG5",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvincent-wuhan\u002Fopskeeper\u002Fblob\u002Fmain\u002Fplugins\u002Fopskeeper-teamharness\u002Fskills\u002Fteam\u002Fopskeeper-coordination\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: opskeeper-coordination\ndescription: \"Manager 派活决策树。基于 incident severity \u002F blast_radius \u002F confidence 硬编码派活规则，不依赖 LLM 推断派给谁。\"\n---\n\n# opskeeper Coordination — 派活决策树\n\nManager 在收到 opskeeper 告警或 investigator 输出时，按以下决策树硬编码派发到 6 个已部署 Worker。不依赖 LLM 推断（避免幻觉派活）。\n\n## 决策表\n\n| 触发条件 | 派活目标 | Safety Level | 备注 |\n|---|---|---|---|\n| `incident.severity ∈ {warning, critical}` AND `phase=detected` | `opskeeper-alerter` | L0 | 先聚合 dedup，再写 incident |\n| `alerter.completed` AND `rca 未启动` | `opskeeper-investigator` | L0 | 调 `loop.investigate` |\n| `investigator.completed` | `opskeeper-reviewer` | L0 | 先做证据链审计；置信度低于 0.6 或证据冲突时回派 investigator |\n| `reviewer.audit.completed` AND `needs_correction=true` | `opskeeper-investigator`（重派，携 reviewer issues） | L0 | 重派计数 +1，超 2 次升级 HITL |\n| `reviewer.audit.completed` AND `needs_correction=false` AND (`blast_radius ∈ {cluster, tenant_wide}` OR `destructive=true`) | **HITL** → `POST opskeeper \u002Fv1\u002Fhitl\u002Fdecide`（含 `safety_level=L2`） | L2 | 等 Matrix Room @admin 双签 |\n| `hitl.approved` OR `blast_radius ∈ {host}` | `opskeeper-repairer` | L1 \u002F L2 | 调 mutating 工具 |\n| `repairer.completed` | `opskeeper-verifier` | L0 | 调 `recovery.verify` |\n| `verifier.pass=true` | `opskeeper-reporter`（执行 postmortem skill） | L0 | Manager 写 state.json 推进 phase=postmortem |\n\n> Level 解析统一调用 `safety\u002Flevels.py::resolve_safety_level(blast_radius, confidence, destructive)`。\n> L3（blast_radius ∈ {region, account} 或 confidence \u003C 0.6）→ Manager 直接派 reporter 执行 postmortem skill，不走修复链。\n\n## 状态推进\n\n派发消息和 Worker 回报必须携带同一个任务标记：\n\n```text\nOPSKEEPER TASK incident-123-investigator\n@manager:matrix.example.com OPSKEEPER_RESULT incident-123-investigator {...}\n```\n\n`OPSKEEPER_RESULT` 到达前，Manager 不轮询、不重复派发、不响应空续跑。Worker\n必须在结果行同一行 @ Manager，否则群聊消息只进入历史缓存；管理员人工指令和\n新 `OPSKEEPER TASK` 可以优先唤醒。\nWorker 房间的结果唤醒 Manager 后，Manager 必须向原始请求房间回发\n`@admin:\u003Cserver> OPSKEEPER_COMPLETE \u003Ctask_id>`；完成通知不触发新派发。\n\nOpsKeeper Worker 任务协议优先于 AgentTeams 通用 task lifecycle。Manager 派发文案\n禁止要求 Worker 创建 plan.md \u002F result.md \u002F spec.md，也禁止要求调用 `write_file`\u002F`edit_file`；\nWorker 直接在当前项目房间回报结果。需要留痕时，Manager 指定 `incident.record`；\n不得要求 `state.put`，也不得把文件系统任务产物作为完成条件。\n\n每次派活决策后，Manager 在派发消息中携带阶段事实；Worker 在最终 JSON 中回显阶段：\n\n```json\n{\n  \"task_id\": \"incident-123\",\n  \"phase\": \"rca\",\n  \"status\": \"in_progress\",\n  \"assigned_to\": \"opskeeper-investigator\",\n  \"retry_count\": 0,\n  \"blast_radius\": \"cluster\",\n  \"audit\": [{\"event\": \"dispatch\", \"from\": \"alerter\", \"to\": \"investigator\", \"at\": \"...\"}]\n}\n```\n\n## PostgreSQL 连接池耗尽分支\n\n当 `fault_family=capacity\u002Fconnection_pool`、`resource_type=pg`，或初始证据包含\n`probe failed`、`waiters>0`、`active_connections>=capacity` 时，按以下闭环推进：\n\n1. **alerter**：只聚合同一 `incident_id`、`pool_manifest_id` 和时间窗口内的超时、\n   probe 失败与连接池饱和证据；不得把共享 PostgreSQL 的其他告警合并进该事故。\n2. **investigator**：必查 `postgres.analyze_status`、`metric.query`、`incident.get`\n   与 `loop.investigate`。RootCauseJSON 必须区分应用连接池耗尽与共享 PostgreSQL\n   容量不足，并给出 `pool_manifest_id`、active\u002Fcapacity、waiters、probe 延迟、\n   `pg_stat_activity` 证据。禁止直接修改 incident 状态。\n3. **reviewer**：先审查证据链是否覆盖容量、等待者、probe 失败与数据库侧\n   反证；使用 `incident.timeline` 校验业务事故阶段事实，置信度低于 0.6 时回派 investigator。修复提案只允许\n   `command=resize_pool`、`target=pg:pool-fixture`、`resource_type=pg`，且\n   `pool_manifest_id` 必须属于该 incident。\n4. **HITL**：向用户展示动作、目标 pool、容量变化、blast radius、回滚方式和证据。\n   未获批准前禁止执行。AgentTeams caller 不能设置 `skip_audit`。\n5. **repairer**：在默认 `OPSKEEPER_PERMISSION_MODE=read_only` 边界内，只有完整绑定已批准 `proposal_id`、\n   incident、manifest、target 与 command 的 `recovery.execute` 才会放行。参数只能是\n   `incident_id`、`pool_manifest_id`、`reason`；禁止重启共享 PostgreSQL、kill\n   无关连接、执行 shell\u002Fbrowser 或写业务文件。\n6. **verifier**：以修复后 probe 成功、active\u002Fcapacity 恢复、waiters 下降、请求\n   延迟回落为通过条件；命令执行成功本身不等于恢复成功。\n7. **postmortem**：只有在 verifier 通过后输出复盘并写入 knowledge vault，记录\n   根因、审批、恢复动作、VerifiedDelta 与防复发建议。\n\n每个阶段 Worker 完成核心动作后必须调用一次 `incident.record`：\nalerter 写 `alert.received`，investigator 写 `root_cause.confirmed`，\nreviewer 写 `recommendation.approved`，repairer 写带 `action_fingerprint` 的\n`action.executed`，verifier 写 `recovery_signal=true` 的\n`recovery_signal.observed`，reporter 写 `incident.closed`。reviewer 在推理审计\n通过后才进入修复提案，两个动作必须在同一阶段输出中明确区分。\n\n该分支的初始故障可以通过 `pool-fixture` 注入，但所有阶段推进必须由 Manager\n调度 Worker 并通过 MCP 工具完成；不得用脚本直接改状态或代替 Worker 回报。\n\n## HITL 双签\n\n`blast_radius ∈ {cluster, tenant_wide}` 且 `destructive=true` 时，按 ADR-019 走 opskeeper-admin + opskeeper-observer 双签。opskeeper `\u002Fv1\u002Fhitl\u002Fdecide` 验证签名后推进 state.json。\n\n## 异常路径\n\n- investigator 重派 > 2 次 → 自动升级到 opskeeper-reviewer + Matrix Room @admin\n- reviewer 拒绝 → 回派 investigator 或取消修复\n- verifier.fail → 回派 repairer\n- 所有失败均写 audit + 触发 postmortem\n","# opskeeper Coordination — 派活决策树\n\nManager 在收到 opskeeper 告警或 investigator 输出时，按以下决策树硬编码派发到 6 个已部署 Worker。不依赖 LLM 推断（避免幻觉派活）。\n\n## 决策表\n\n| 触发条件 | 派活目标 | Safety Level | 备注 |\n|---|---|---|---|\n| `incident.severity ∈ {warning, critical}` AND `phase=detected` | `opskeeper-alerter` | L0 | 先聚合 dedup，再写 incident |\n| `alerter.completed` AND `rca 未启动` | `opskeeper-investigator` | L0 | 调 `loop.investigate` |\n| `investigator.completed` | `opskeeper-reviewer` | L0 | 先做证据链审计；置信度低于 0.6 或证据冲突时回派 investigator |\n| `reviewer.audit.completed` AND `needs_correction=true` | `opskeeper-investigator`（重派，携 reviewer issues） | L0 | 重派计数 +1，超 2 次升级 HITL |\n| `reviewer.audit.completed` AND `needs_correction=false` AND (`blast_radius ∈ {cluster, tenant_wide}` OR `destructive=true`) | **HITL** → `POST opskeeper \u002Fv1\u002Fhitl\u002Fdecide`（含 `safety_level=L2`） | L2 | 等 Matrix Room @admin 双签 |\n| `hitl.approved` OR `blast_radius ∈ {host}` | `opskeeper-repairer` | L1 \u002F L2 | 调 mutating 工具 |\n| `repairer.completed` | `opskeeper-verifier` | L0 | 调 `recovery.verify` |\n| `verifier.pass=true` | `opskeeper-reporter`（执行 postmortem skill） | L0 | Manager 写 state.json 推进 phase=postmortem |\n\n> Level 解析统一调用 `safety\u002Flevels.py::resolve_safety_level(blast_radius, confidence, destructive)`。\n> L3（blast_radius ∈ {region, account} 或 confidence \u003C 0.6）→ Manager 直接派 reporter 执行 postmortem skill，不走修复链。\n\n## 状态推进\n\n派发消息和 Worker 回报必须携带同一个任务标记：\n\n```text\nOPSKEEPER TASK incident-123-investigator\n@manager:matrix.example.com OPSKEEPER_RESULT incident-123-investigator {...}\n```\n\n`OPSKEEPER_RESULT` 到达前，Manager 不轮询、不重复派发、不响应空续跑。Worker\n必须在结果行同一行 @ Manager，否则群聊消息只进入历史缓存；管理员人工指令和\n新 `OPSKEEPER TASK` 可以优先唤醒。\nWorker 房间的结果唤醒 Manager 后，Manager 必须向原始请求房间回发\n`@admin:\u003Cserver> OPSKEEPER_COMPLETE \u003Ctask_id>`；完成通知不触发新派发。\n\nOpsKeeper Worker 任务协议优先于 AgentTeams 通用 task lifecycle。Manager 派发文案\n禁止要求 Worker 创建 plan.md \u002F result.md \u002F spec.md，也禁止要求调用 `write_file`\u002F`edit_file`；\nWorker 直接在当前项目房间回报结果。需要留痕时，Manager 指定 `incident.record`；\n不得要求 `state.put`，也不得把文件系统任务产物作为完成条件。\n\n每次派活决策后，Manager 在派发消息中携带阶段事实；Worker 在最终 JSON 中回显阶段：\n\n```json\n{\n  \"task_id\": \"incident-123\",\n  \"phase\": \"rca\",\n  \"status\": \"in_progress\",\n  \"assigned_to\": \"opskeeper-investigator\",\n  \"retry_count\": 0,\n  \"blast_radius\": \"cluster\",\n  \"audit\": [{\"event\": \"dispatch\", \"from\": \"alerter\", \"to\": \"investigator\", \"at\": \"...\"}]\n}\n```\n\n## PostgreSQL 连接池耗尽分支\n\n当 `fault_family=capacity\u002Fconnection_pool`、`resource_type=pg`，或初始证据包含\n`probe failed`、`waiters>0`、`active_connections>=capacity` 时，按以下闭环推进：\n\n1. **alerter**：只聚合同一 `incident_id`、`pool_manifest_id` 和时间窗口内的超时、\n   probe 失败与连接池饱和证据；不得把共享 PostgreSQL 的其他告警合并进该事故。\n2. **investigator**：必查 `postgres.analyze_status`、`metric.query`、`incident.get`\n   与 `loop.investigate`。RootCauseJSON 必须区分应用连接池耗尽与共享 PostgreSQL\n   容量不足，并给出 `pool_manifest_id`、active\u002Fcapacity、waiters、probe 延迟、\n   `pg_stat_activity` 证据。禁止直接修改 incident 状态。\n3. **reviewer**：先审查证据链是否覆盖容量、等待者、probe 失败与数据库侧\n   反证；使用 `incident.timeline` 校验业务事故阶段事实，置信度低于 0.6 时回派 investigator。修复提案只允许\n   `command=resize_pool`、`target=pg:pool-fixture`、`resource_type=pg`，且\n   `pool_manifest_id` 必须属于该 incident。\n4. **HITL**：向用户展示动作、目标 pool、容量变化、blast radius、回滚方式和证据。\n   未获批准前禁止执行。AgentTeams caller 不能设置 `skip_audit`。\n5. **repairer**：在默认 `OPSKEEPER_PERMISSION_MODE=read_only` 边界内，只有完整绑定已批准 `proposal_id`、\n   incident、manifest、target 与 command 的 `recovery.execute` 才会放行。参数只能是\n   `incident_id`、`pool_manifest_id`、`reason`；禁止重启共享 PostgreSQL、kill\n   无关连接、执行 shell\u002Fbrowser 或写业务文件。\n6. **verifier**：以修复后 probe 成功、active\u002Fcapacity 恢复、waiters 下降、请求\n   延迟回落为通过条件；命令执行成功本身不等于恢复成功。\n7. **postmortem**：只有在 verifier 通过后输出复盘并写入 knowledge vault，记录\n   根因、审批、恢复动作、VerifiedDelta 与防复发建议。\n\n每个阶段 Worker 完成核心动作后必须调用一次 `incident.record`：\nalerter 写 `alert.received`，investigator 写 `root_cause.confirmed`，\nreviewer 写 `recommendation.approved`，repairer 写带 `action_fingerprint` 的\n`action.executed`，verifier 写 `recovery_signal=true` 的\n`recovery_signal.observed`，reporter 写 `incident.closed`。reviewer 在推理审计\n通过后才进入修复提案，两个动作必须在同一阶段输出中明确区分。\n\n该分支的初始故障可以通过 `pool-fixture` 注入，但所有阶段推进必须由 Manager\n调度 Worker 并通过 MCP 工具完成；不得用脚本直接改状态或代替 Worker 回报。\n\n## HITL 双签\n\n`blast_radius ∈ {cluster, tenant_wide}` 且 `destructive=true` 时，按 ADR-019 走 opskeeper-admin + opskeeper-observer 双签。opskeeper `\u002Fv1\u002Fhitl\u002Fdecide` 验证签名后推进 state.json。\n\n## 异常路径\n\n- investigator 重派 > 2 次 → 自动升级到 opskeeper-reviewer + Matrix Room @admin\n- reviewer 拒绝 → 回派 investigator 或取消修复\n- verifier.fail → 回派 repairer\n- 所有失败均写 audit + 触发 postmortem\n",{"name":5,"description":7},"main","81a9d13b430e01c2f92d7dd64e5efdc0630a4ba4","plugins\u002Fopskeeper-teamharness\u002Fskills\u002Fteam\u002Fopskeeper-coordination",1,"https:\u002F\u002Fgithub.com\u002Fvincent-wuhan\u002Fopskeeper","https:\u002F\u002Fopskeeper.yueming.xin","https:\u002F\u002Fgithub.com\u002Fvincent-wuhan","2026-11-13 15:21:51",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add vincent-wuhan\u002Fopskeeper --skill opskeeper-coordination",{"tool":38,"command":39},"bunx","bunx skills add vincent-wuhan\u002Fopskeeper --skill opskeeper-coordination",{"tool":41,"command":42},"pnpm","pnpm dlx skills add vincent-wuhan\u002Fopskeeper --skill opskeeper-coordination","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvincent-wuhan\u002Fopskeeper\u002Fblob\u002Fmain\u002Fplugins\u002Fopskeeper-teamharness\u002Fskills\u002Fteam\u002Fopskeeper-coordination\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7C19MMXDX4S891RPW7VE111","host_restart_service","重启允许列表内的 systemd service（mutating，触发 reviewer 二审）","https:\u002F\u002Fgithub.com\u002Fvincent-wuhan\u002Fopskeeper\u002Fblob\u002Fmain\u002Fskills\u002Frestart-service\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7C19E1N7M21AGGXX595CTGA","host_files","设备文件系统排查工具组 — 找大文件、看目录占用、stat 单文件（一次最多 16 个 path 批量查询）","https:\u002F\u002Fgithub.com\u002Fvincent-wuhan\u002Fopskeeper\u002Fblob\u002Fmain\u002Fskills\u002Fhost-files\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7C190S1KRHAMKHKYHV0DW9W","host_bash","设备上跑只读 shell 命令做诊断探索（沙箱化 \u002F read-only policy）","https:\u002F\u002Fgithub.com\u002Fvincent-wuhan\u002Fopskeeper\u002Fblob\u002Fmain\u002Fskills\u002Fbash\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7C18WTSF6Z5AQ2AB9S9H978","opskeeper-verifier","Confirm independently that a repair actually worked and that the incident is genuinely over, using the measured before\u002Fafter rather than the absence of an alert. Use after a change is applied and before an incident is closed. Read-only: this persona verifies and reports; it does not re-apply anything, and it never offers to fix what it finds.","https:\u002F\u002Fgithub.com\u002Fvincent-wuhan\u002Fopskeeper\u002Fblob\u002Fmain\u002Fplugins\u002Fpig-ops\u002Fopskeeper-sre-repair\u002Fskills\u002Fopskeeper-verifier\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7C18S7CCAPV0JPRA6FZ3M93","opskeeper-repairer","Apply the smallest change that fixes a diagnosed incident, waiting for an operator to approve each mutating call and verifying the result afterwards. Use once a root cause is established. MUTATING: this persona changes live systems, and every change it proposes is put to a human before it runs.","https:\u002F\u002Fgithub.com\u002Fvincent-wuhan\u002Fopskeeper\u002Fblob\u002Fmain\u002Fplugins\u002Fpig-ops\u002Fopskeeper-sre-repair\u002Fskills\u002Fopskeeper-repairer\u002FSKILL.md",[],[],{"skillNo":83,"name":70,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7C18NSD6SZE8YTJGP8D45JT","Confirm independently that a repair actually worked and that the incident is genuinely over. Use after a change is applied, before an incident is closed, or when someone claims a problem is fixed. Read-only: this persona verifies and reports; it does not re-apply anything.","https:\u002F\u002Fgithub.com\u002Fvincent-wuhan\u002Fopskeeper\u002Fblob\u002Fmain\u002Fplugins\u002Fpig-ops\u002Fopskeeper-sre-readonly\u002Fskills\u002Fopskeeper-verifier\u002FSKILL.md",[],[]]