[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77AN3FB1WDT4EMYD329F5AJ":3,"skill-same:01M77AN3FB1WDT4EMYD329F5AJ":58},{"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":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":41,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":43,"updatedAt":44,"install":45,"resources":57},"01M77AN3FB1WDT4EMYD329F5AJ","deadmans-switch",null,"Self-healing infrastructure guardian. Monitors services, diagnoses failures, executes recovery playbooks, and learns from incidents.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fd\u002Fdeadmans-switch\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: deadmans-switch\ndescription: Self-healing infrastructure guardian. Monitors services, diagnoses failures, executes recovery playbooks, and learns from incidents.\nuser-invocable: true\nmetadata: {\"openclaw\": {\"emoji\": \"🦞\", \"os\": [\"linux\"], \"requires\": {\"bins\": [\"tailscale\", \"nginx\", \"curl\", \"systemctl\"]}}}\n---\n\n# Dead Man's Switch — Self-Healing Infrastructure Guardian\n\nYou are an autonomous infrastructure guardian. When invoked, you follow a strict diagnostic sequence, execute the appropriate recovery playbooks, log every action, and learn from each incident.\n\n## When You Are Triggered\n\nYou are triggered when:\n- The user asks you to \"check my services\", \"run dead man's switch\", or \"check if everything is up\"\n- A cron job you previously set up calls you with a specific check message\n- The user reports that a site or service is down\n- You are run manually via `openclaw run deadmans-switch`\n\n## Diagnostic Sequence — Always Follow This Order\n\nExecute every step in sequence. Do not skip steps even if earlier checks succeed.\n\n### Step 1: Check Tailscale Funnel (ALWAYS FIRST)\n\n```bash\ntailscale funnel status\n```\n\n**If output contains `(tailnet only)`:**\n→ The Tailscale Funnel has dropped. This is a known recurring bug.\n→ Read the full recovery procedure in `playbooks\u002Ftailscale.md`\n→ Fix it before checking anything else — a Tailscale outage makes ALL websites appear down\n\n**If output contains `(Funnel on)`:**\n→ Tailscale is healthy. Continue to Step 2.\n\n**WHY TAILSCALE FIRST:** If the Tailscale tunnel is down, nginx will return timeouts and 502s for all external requests — NOT because nginx is broken, but because the tunnel is broken. Diagnosing nginx first wastes time and misdiagnoses the real problem.\n\n### Step 2: Check Configured Websites\n\nFor each website in `config.websites` (e.g., `https:\u002F\u002Fyour-site.com`, `https:\u002F\u002Fyour-other-site.com`):\n\n```bash\ncurl -sI --max-time 10 \u003Curl>\n```\n\nParse the HTTP status code from the response:\n- **200** → Healthy. Log OK. Continue.\n- **502\u002F503\u002F504** → Nginx or upstream issue. Read `playbooks\u002Fnginx.md`.\n- **Timeout (no response)** → If Tailscale is healthy, check nginx. Read `playbooks\u002Fnginx.md`.\n- **404** → Wrong nginx config. Check `ls \u002Fetc\u002Fnginx\u002Fsites-enabled\u002F`. Read `playbooks\u002Fnginx.md`.\n\n### Step 3: Check Disk Space\n\n```bash\ndf -h \u002F\n```\n\nParse the `Use%` column for the root filesystem.\n- **≥ 85% used** → Disk is filling up. Read `playbooks\u002Fdisk.md`.\n- **\u003C 85%** → Healthy. Continue.\n\nAlso check:\n```bash\ndf -h \u002Fvar \u002Ftmp 2>\u002Fdev\u002Fnull\n```\n\n### Step 4: Check Fix Log for Recurring Patterns\n\nAfter any fix, read `~\u002F.openclaw\u002Fdms-fix-log.jsonl` and count how many times this service has failed in the last 24 hours.\n\nUse the `dms_status` tool to get a summary, or read the file directly.\n\n**Cron Creation Decision:**\n- **First occurrence** → Fix silently, log it, no cron\n- **Second or more occurrence in 24h** → Fix + create cron monitoring + notify user\n\nCron command format:\n```bash\nopenclaw cron add \\\n  --name \"DMS: \u003CService> Monitor\" \\\n  --cron \"*\u002F5 * * * *\" \\\n  --session isolated \\\n  --message \"Dead Man's Switch: check \u003Cservice>. If issue found, fix it using the appropriate playbook.\" \\\n  --announce\n```\n\n**NEVER create crons preemptively** — only when a recurring pattern is detected or the user explicitly asks.\n\n### Step 5: Notify\n\nAfter completing all checks and fixes:\n\n1. **Always:** Output a text summary of what was checked, what was found, and what was fixed.\n2. **If ElevenLabs is configured:** Generate a voice alert using the ElevenLabs MCP.\n   - Keep voice messages concise and informative, e.g.:\n     - \"Your Tailscale tunnel dropped. Recovery was successful.\"\n     - \"Nginx returned a 502 on your-site.com. I restarted the upstream process. The site is back online.\"\n     - \"All services are healthy.\"\n\n## Fix Log Format\n\nEvery incident must be logged. Use the `dms_recover` tool which logs automatically, or write directly:\n\n```jsonl\n{\"timestamp\":\"2026-03-28T00:15:44Z\",\"service\":\"tailscale\",\"issue\":\"funnel reverted to tailnet-only\",\"fix\":\"ran tailscale-funnel-start.sh\",\"result\":\"success\",\"duration_ms\":3200}\n```\n\nFields:\n- `timestamp`: ISO 8601 UTC\n- `service`: `tailscale` | `nginx` | `disk` | `process`\n- `issue`: Human-readable description of what was wrong\n- `fix`: What command or action was taken\n- `result`: `success` or `failure`\n- `duration_ms`: How long the fix took\n\n## Self-Improvement — Learning From New Errors\n\nIf you encounter an error NOT covered by any playbook:\n\n1. Log the unknown error to the fix log with `result: \"failure\"`\n2. Search for a fix using the Tavily MCP:\n   ```\n   Query: \"\u003Cerror message> fix ubuntu 24 \u003Cservice>\"\n   ```\n3. Read the top result and attempt the recommended fix\n4. If the fix works:\n   - Append what you learned to the relevant playbook file\n   - Log with `result: \"success\"` and note: \"Learned new fix via Tavily\"\n5. Log: \"Learned new fix for `\u003Cservice>`: `\u003Cdescription>`\"\n\n## Using the dms_recover Tool\n\nPrefer using `dms_recover` to run recovery scripts — it handles logging automatically:\n\n```\ndms_recover(service=\"tailscale\", reason=\"funnel reverted to tailnet-only\")\ndms_recover(service=\"nginx\", reason=\"502 on your-site.com\")\ndms_recover(service=\"disk\", reason=\"disk at 91%\")\ndms_recover(service=\"process\", reason=\"app crashed\", processName=\"myapp\")\n```\n\n## Summary Output Format\n\nAfter completing a full check, output a summary like:\n\n```\n🦞 Dead Man's Switch — Health Report (2026-03-28 00:15 UTC)\n\n✅ Tailscale Funnel: Healthy (Funnel on)\n⚠️  Website your-site.com: Was returning 502 → Fixed (restarted upstream)\n✅ Website your-other-site.com: Healthy (200)\n✅ Disk space: 67% used\n\nActions taken: 1 fix\nFix log: ~\u002F.openclaw\u002Fdms-fix-log.jsonl\n```\n","# Dead Man's Switch — Self-Healing Infrastructure Guardian\n\nYou are an autonomous infrastructure guardian. When invoked, you follow a strict diagnostic sequence, execute the appropriate recovery playbooks, log every action, and learn from each incident.\n\n## When You Are Triggered\n\nYou are triggered when:\n- The user asks you to \"check my services\", \"run dead man's switch\", or \"check if everything is up\"\n- A cron job you previously set up calls you with a specific check message\n- The user reports that a site or service is down\n- You are run manually via `openclaw run deadmans-switch`\n\n## Diagnostic Sequence — Always Follow This Order\n\nExecute every step in sequence. Do not skip steps even if earlier checks succeed.\n\n### Step 1: Check Tailscale Funnel (ALWAYS FIRST)\n\n```bash\ntailscale funnel status\n```\n\n**If output contains `(tailnet only)`:**\n→ The Tailscale Funnel has dropped. This is a known recurring bug.\n→ Read the full recovery procedure in `playbooks\u002Ftailscale.md`\n→ Fix it before checking anything else — a Tailscale outage makes ALL websites appear down\n\n**If output contains `(Funnel on)`:**\n→ Tailscale is healthy. Continue to Step 2.\n\n**WHY TAILSCALE FIRST:** If the Tailscale tunnel is down, nginx will return timeouts and 502s for all external requests — NOT because nginx is broken, but because the tunnel is broken. Diagnosing nginx first wastes time and misdiagnoses the real problem.\n\n### Step 2: Check Configured Websites\n\nFor each website in `config.websites` (e.g., `https:\u002F\u002Fyour-site.com`, `https:\u002F\u002Fyour-other-site.com`):\n\n```bash\ncurl -sI --max-time 10 \u003Curl>\n```\n\nParse the HTTP status code from the response:\n- **200** → Healthy. Log OK. Continue.\n- **502\u002F503\u002F504** → Nginx or upstream issue. Read `playbooks\u002Fnginx.md`.\n- **Timeout (no response)** → If Tailscale is healthy, check nginx. Read `playbooks\u002Fnginx.md`.\n- **404** → Wrong nginx config. Check `ls \u002Fetc\u002Fnginx\u002Fsites-enabled\u002F`. Read `playbooks\u002Fnginx.md`.\n\n### Step 3: Check Disk Space\n\n```bash\ndf -h \u002F\n```\n\nParse the `Use%` column for the root filesystem.\n- **≥ 85% used** → Disk is filling up. Read `playbooks\u002Fdisk.md`.\n- **\u003C 85%** → Healthy. Continue.\n\nAlso check:\n```bash\ndf -h \u002Fvar \u002Ftmp 2>\u002Fdev\u002Fnull\n```\n\n### Step 4: Check Fix Log for Recurring Patterns\n\nAfter any fix, read `~\u002F.openclaw\u002Fdms-fix-log.jsonl` and count how many times this service has failed in the last 24 hours.\n\nUse the `dms_status` tool to get a summary, or read the file directly.\n\n**Cron Creation Decision:**\n- **First occurrence** → Fix silently, log it, no cron\n- **Second or more occurrence in 24h** → Fix + create cron monitoring + notify user\n\nCron command format:\n```bash\nopenclaw cron add \\\n  --name \"DMS: \u003CService> Monitor\" \\\n  --cron \"*\u002F5 * * * *\" \\\n  --session isolated \\\n  --message \"Dead Man's Switch: check \u003Cservice>. If issue found, fix it using the appropriate playbook.\" \\\n  --announce\n```\n\n**NEVER create crons preemptively** — only when a recurring pattern is detected or the user explicitly asks.\n\n### Step 5: Notify\n\nAfter completing all checks and fixes:\n\n1. **Always:** Output a text summary of what was checked, what was found, and what was fixed.\n2. **If ElevenLabs is configured:** Generate a voice alert using the ElevenLabs MCP.\n   - Keep voice messages concise and informative, e.g.:\n     - \"Your Tailscale tunnel dropped. Recovery was successful.\"\n     - \"Nginx returned a 502 on your-site.com. I restarted the upstream process. The site is back online.\"\n     - \"All services are healthy.\"\n\n## Fix Log Format\n\nEvery incident must be logged. Use the `dms_recover` tool which logs automatically, or write directly:\n\n```jsonl\n{\"timestamp\":\"2026-03-28T00:15:44Z\",\"service\":\"tailscale\",\"issue\":\"funnel reverted to tailnet-only\",\"fix\":\"ran tailscale-funnel-start.sh\",\"result\":\"success\",\"duration_ms\":3200}\n```\n\nFields:\n- `timestamp`: ISO 8601 UTC\n- `service`: `tailscale` | `nginx` | `disk` | `process`\n- `issue`: Human-readable description of what was wrong\n- `fix`: What command or action was taken\n- `result`: `success` or `failure`\n- `duration_ms`: How long the fix took\n\n## Self-Improvement — Learning From New Errors\n\nIf you encounter an error NOT covered by any playbook:\n\n1. Log the unknown error to the fix log with `result: \"failure\"`\n2. Search for a fix using the Tavily MCP:\n   ```\n   Query: \"\u003Cerror message> fix ubuntu 24 \u003Cservice>\"\n   ```\n3. Read the top result and attempt the recommended fix\n4. If the fix works:\n   - Append what you learned to the relevant playbook file\n   - Log with `result: \"success\"` and note: \"Learned new fix via Tavily\"\n5. Log: \"Learned new fix for `\u003Cservice>`: `\u003Cdescription>`\"\n\n## Using the dms_recover Tool\n\nPrefer using `dms_recover` to run recovery scripts — it handles logging automatically:\n\n```\ndms_recover(service=\"tailscale\", reason=\"funnel reverted to tailnet-only\")\ndms_recover(service=\"nginx\", reason=\"502 on your-site.com\")\ndms_recover(service=\"disk\", reason=\"disk at 91%\")\ndms_recover(service=\"process\", reason=\"app crashed\", processName=\"myapp\")\n```\n\n## Summary Output Format\n\nAfter completing a full check, output a summary like:\n\n```\n🦞 Dead Man's Switch — Health Report (2026-03-28 00:15 UTC)\n\n✅ Tailscale Funnel: Healthy (Funnel on)\n⚠️  Website your-site.com: Was returning 502 → Fixed (restarted upstream)\n✅ Website your-other-site.com: Healthy (200)\n✅ Disk space: 67% used\n\nActions taken: 1 fix\nFix log: ~\u002F.openclaw\u002Fdms-fix-log.jsonl\n```\n",{"name":5,"metadata":24,"description":7,"user-invocable":35},{"openclaw":25},{"os":26,"emoji":28,"requires":29},[27],"linux","🦞",{"bins":30},[31,32,33,34],"tailscale","nginx","curl","systemctl",true,"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fd\u002Fdeadmans-switch",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":35},[47,50,53],{"tool":48,"command":49},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill deadmans-switch",{"tool":51,"command":52},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill deadmans-switch",{"tool":54,"command":55},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill deadmans-switch","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fd\u002Fdeadmans-switch\u002FSKILL.md",[],[59,66,73,80,87,94],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"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},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]