[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C19MMXDX4S891RPW7VE111":3,"skill-same:01M7C19MMXDX4S891RPW7VE111":66},{"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":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":51,"install":52,"resources":65},"01M7C19MMXDX4S891RPW7VE111","host_restart_service",null,"重启允许列表内的 systemd service（mutating，触发 reviewer 二审）","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\u002Fskills\u002Frestart-service\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: host_restart_service\ndescription: 重启允许列表内的 systemd service（mutating，触发 reviewer 二审）\nwhen_to_use: |\n  用户**明确**要求重启某个允许列表内的服务时使用。\n\n  **本工具是 mutating，会触发 reviewer 二审（agents\u002Freviewer.md），等待 approve 后才执行**。\n  调用前 reviewer 会去查 SOP \u002F 设备状态 \u002F 并行操作，任一不满足即 reject — 你（coordinator）\n  收到 reject 时**直接告知用户原因，不要重试**。\n\n  不要主动建议重启 — 让用户先要求。常见的\"我猜重启就好了\"是诊断不深入的信号，\n  应该先用 query_logql \u002F query_promql \u002F get_edge_summary 把根因摸清楚再让用户决定。\n\n  允许列表（白名单）：nginx \u002F redis \u002F prometheus \u002F loki \u002F tempo \u002F grafana \u002F mysql \u002F opskeeper\n  其他 service 直接拒绝（也不走 reviewer）。\n\nmetadata:\n  os: [linux]\n  requires:\n    bins: [systemctl]\n  opskeeper:\n    scope: edge\n    edge_runtime: subprocess\n    edge_capabilities:\n      - process.exec: [systemctl]\n    activation:\n      mode: keyword\n      keywords: [重启, 重起, restart, systemctl]\n    min_opskeeper_version: \">=0.7.30\"\n---\n\n[能力: host_restart_service]\n\n本工具**重启**目标设备上的 systemd 服务。属于 **mutating** class，调用前自动经过 reviewer 二审：\n\n## 调用规则\n\n```\nhost_restart_service(device_id=\u003Cnum>, service=\"nginx\", reason=\"...\")\n```\n\n- `device_id` 必填：与 @-mention chip 和 Prom `device_id` label 一致\n- `service` 必填：systemd 短名（**不带** `.service` 后缀）\n- `reason` 强烈建议填：写入审计行，事后复盘看得到为什么重启的\n\n## 白名单\n\n调用前自动检查 service ∈ 下列之一：\n\n- `nginx` \u002F `redis` \u002F `prometheus` \u002F `loki` \u002F `tempo` \u002F `grafana` \u002F `mysql` \u002F `opskeeper`\n\n其他 service 直接拒绝（不走 reviewer，省一次 LLM 调用）。\n\n## 二审流程（HLD-003 SOP）\n\n```\n你 (coordinator) 发出 host_restart_service tool_call\n      ↓\nReviewGate 装饰器拦截\n      ↓ class=\"write\"|\"destructive\"\n      ↓ spawn reviewer worker (agents\u002Freviewer.md)\n      ↓ 等 reviewer 输出 \"Decision: approve\" 或 \"Decision: reject\"\n      ↓\napprove → 真正调用边端 systemctl restart\nreject  → 返回 reject 理由给你，**不要重试，转告用户**\n```\n\nreviewer 自己会用 `get_edge_summary` \u002F `query_logql` \u002F `get_incident_detail` 看 SOP \u002F\n并行操作 \u002F 上次 mutating 时间 \u002F 关联告警再决议；你不需要重复这些查询。\n\n## 不要做的事\n\n- 不要在用户没明说\"重启 X\"时调用 — 主动建议重启是反模式\n- 不要 reject 后立刻重试 — reviewer 已经给了理由，转告用户让他决定\n- 不要试图绕过白名单 — 边端会再校验一次，绕不过\n- 不要传 `reason=\"\"` — 审计行会一片空白，post-mortem 会骂\n\n## 一期实现 (PR-7)\n\n- 边端 handler 是 **mock**（`Mocked: true`），不会真跑 `systemctl restart`\n- 真实 shell-out 留 follow-up；本期目标是把 reviewer 二审端到端跑通\n","[能力: host_restart_service]\n\n本工具**重启**目标设备上的 systemd 服务。属于 **mutating** class，调用前自动经过 reviewer 二审：\n\n## 调用规则\n\n```\nhost_restart_service(device_id=\u003Cnum>, service=\"nginx\", reason=\"...\")\n```\n\n- `device_id` 必填：与 @-mention chip 和 Prom `device_id` label 一致\n- `service` 必填：systemd 短名（**不带** `.service` 后缀）\n- `reason` 强烈建议填：写入审计行，事后复盘看得到为什么重启的\n\n## 白名单\n\n调用前自动检查 service ∈ 下列之一：\n\n- `nginx` \u002F `redis` \u002F `prometheus` \u002F `loki` \u002F `tempo` \u002F `grafana` \u002F `mysql` \u002F `opskeeper`\n\n其他 service 直接拒绝（不走 reviewer，省一次 LLM 调用）。\n\n## 二审流程（HLD-003 SOP）\n\n```\n你 (coordinator) 发出 host_restart_service tool_call\n      ↓\nReviewGate 装饰器拦截\n      ↓ class=\"write\"|\"destructive\"\n      ↓ spawn reviewer worker (agents\u002Freviewer.md)\n      ↓ 等 reviewer 输出 \"Decision: approve\" 或 \"Decision: reject\"\n      ↓\napprove → 真正调用边端 systemctl restart\nreject  → 返回 reject 理由给你，**不要重试，转告用户**\n```\n\nreviewer 自己会用 `get_edge_summary` \u002F `query_logql` \u002F `get_incident_detail` 看 SOP \u002F\n并行操作 \u002F 上次 mutating 时间 \u002F 关联告警再决议；你不需要重复这些查询。\n\n## 不要做的事\n\n- 不要在用户没明说\"重启 X\"时调用 — 主动建议重启是反模式\n- 不要 reject 后立刻重试 — reviewer 已经给了理由，转告用户让他决定\n- 不要试图绕过白名单 — 边端会再校验一次，绕不过\n- 不要传 `reason=\"\"` — 审计行会一片空白，post-mortem 会骂\n\n## 一期实现 (PR-7)\n\n- 边端 handler 是 **mock**（`Mocked: true`），不会真跑 `systemctl restart`\n- 真实 shell-out 留 follow-up；本期目标是把 reviewer 二审端到端跑通\n",{"name":5,"metadata":24,"description":7,"when_to_use":43},{"os":25,"requires":27,"opskeeper":30},[26],"linux",{"bins":28},[29],"systemctl",{"scope":31,"activation":32,"edge_runtime":38,"edge_capabilities":39,"min_opskeeper_version":42},"edge",{"mode":33,"keywords":34},"keyword",[35,36,37,29],"重启","重起","restart","subprocess",[40],{"process.exec":41},[29],">=0.7.30","用户**明确**要求重启某个允许列表内的服务时使用。\n\n**本工具是 mutating，会触发 reviewer 二审（agents\u002Freviewer.md），等待 approve 后才执行**。\n调用前 reviewer 会去查 SOP \u002F 设备状态 \u002F 并行操作，任一不满足即 reject — 你（coordinator）\n收到 reject 时**直接告知用户原因，不要重试**。\n\n不要主动建议重启 — 让用户先要求。常见的\"我猜重启就好了\"是诊断不深入的信号，\n应该先用 query_logql \u002F query_promql \u002F get_edge_summary 把根因摸清楚再让用户决定。\n\n允许列表（白名单）：nginx \u002F redis \u002F prometheus \u002F loki \u002F tempo \u002F grafana \u002F mysql \u002F opskeeper\n其他 service 直接拒绝（也不走 reviewer）。\n","main","81a9d13b430e01c2f92d7dd64e5efdc0630a4ba4","skills\u002Frestart-service",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":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add vincent-wuhan\u002Fopskeeper --skill host_restart_service",{"tool":58,"command":59},"bunx","bunx skills add vincent-wuhan\u002Fopskeeper --skill host_restart_service",{"tool":61,"command":62},"pnpm","pnpm dlx skills add vincent-wuhan\u002Fopskeeper --skill host_restart_service","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvincent-wuhan\u002Fopskeeper\u002Fblob\u002Fmain\u002Fskills\u002Frestart-service\u002FSKILL.md",true,[],[67,74,81,88,95,101],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7C19E1N7M21AGGXX595CTGA","host_files","设备文件系统排查工具组 — 找大文件、看目录占用、stat 单文件（一次最多 16 个 path 批量查询）","https:\u002F\u002Fgithub.com\u002Fvincent-wuhan\u002Fopskeeper\u002Fblob\u002Fmain\u002Fskills\u002Fhost-files\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7C190S1KRHAMKHKYHV0DW9W","host_bash","设备上跑只读 shell 命令做诊断探索（沙箱化 \u002F read-only policy）","https:\u002F\u002Fgithub.com\u002Fvincent-wuhan\u002Fopskeeper\u002Fblob\u002Fmain\u002Fskills\u002Fbash\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"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},"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":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"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":96,"name":83,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"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",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7C18HPMHMCB9705R4KR16F2","opskeeper-reviewer","Audit an investigation or a repair plan before anybody acts on it — check the evidence supports the claim, the blast radius is stated, and the rollback exists. Use when another persona's work is about to be acted on. Read-only: this persona reviews; it does not repair.","https:\u002F\u002Fgithub.com\u002Fvincent-wuhan\u002Fopskeeper\u002Fblob\u002Fmain\u002Fplugins\u002Fpig-ops\u002Fopskeeper-sre-readonly\u002Fskills\u002Fopskeeper-reviewer\u002FSKILL.md",[],[]]