Community程式設計與開發github.com

健康檢查

審計與強化 OpenClaw 主機:檢查 SSH、防火牆、更新、暴露面、備份、磁碟加密以及閘道安全性。

健康檢查 是什麼?

這是一個專為 OpenClaw 主機設計的健康檢查技能,旨在全面評估主機風險並提出階段性的強化方案。它會先從唯讀檢查開始,避免任何未經授權的狀態變更。技能支援 macOS、Linux 和 Windows 平台,能自動推斷作業系統版本、使用者權限、存取路徑、網路暴露程度等關鍵資訊。接著根據風險情境(個人使用、平衡或嚴格模式)生成對應的報告,內容包含當前狀態摘要、嚴重性分級與證據、以及可逆的建議操作。由於本技能只負責評估建議,不會直接修改防火牆、SSH 或遠端存取設定,使用者需明確批准後才會執行寫入動作。最後還會列出待強化項目選單,例如綁定閘道至 loopback/LAN/tailnet、啟用身份驗證、關閉公共埠、啟用 OS 安全更新、磁碟加密與備份驗證等。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/healthcheck

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

OpenClaw 主機健康檢查

目標:評估主機風險,執行唯讀檢查,然後提出階段性強化方案,避免中斷存取。

規則

  • 在執行有狀態變更的操作前,必須先詢問。
  • 在確認存取路徑之前,不得變更 SSH/防火牆/遠端存取。
  • 優先選擇可逆的步驟並附上回滾說明。
  • 絕不聲稱 OpenClaw 管理 OS 防火牆、SSH 或更新。
  • 若身份/角色未知,僅給予建議。
  • 使用者選擇:使用編號列表。
  • 絕不列印機密。

需要先推斷的背景資訊

  • 作業系統/版本、容器 vs 主機。
  • 權限層級。
  • 存取路徑:本機、SSH、RDP、Tailnet。
  • 網路暴露程度:公開 IP、反向代理、隧道、僅 LAN。
  • OpenClaw 閘道狀態、綁定、認證。
  • 備份狀態。
  • 磁碟加密。
  • 自動安全性更新。
  • 使用模式:個人工作站、本地輔助設備、遠端伺服器、其他。

僅詢問缺少的事實。優先使用簡單的措辭。

唯讀檢查

一次詢問執行唯讀檢查的權限,然後執行相關指令。

常見:

openclaw security audit --deep
openclaw gateway status --deep
openclaw doctor --lint

doctor --lint 可能以狀態碼 1 退出並顯示發現問題:請閱讀報告,然後繼續其餘檢查。一般的 doctor 和 doctor --non-interactive 可以在未使用 --fix 的情況下複製舊版設定檔並遷移狀態;保留修復操作等待明確批准。唯讀檢查不包括設定檔/服務修復和狀態遷移,但可能產生附帶的日誌或快取記錄。

macOS:

sw_vers
lsof -nP -iTCP -sTCP:LISTEN
/usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate
pfctl -s info
tmutil status
fdesetup status
softwareupdate --schedule

Linux:

cat /etc/os-release
ss -ltnup || ss -ltnp
ufw status || firewall-cmd --state || nft list ruleset
systemctl status ssh sshd
lsblk -f

Windows:

systeminfo
Get-NetFirewallProfile
Get-BitLockerVolume

風險設定檔

在掌握背景資訊後,詢問期望的姿態:

  1. 便利:本機/私有環境,最少提示。
  2. 平衡:安全預設,低摩擦。
  3. 嚴格:遠端/公開/敏感資料,更嚴格鎖定。

報告格式

  • 當前姿態:一段話。
  • 發現問題:嚴重程度 + 證據 + 重要性說明。
  • 建議方案:分階段、可逆。
  • 指令:先唯讀;寫入操作需先獲得批准。
  • 遺漏:無法檢查的項目。

強化選單

僅提供相關項目:

  • 將閘道綁定至 loopback/LAN/tailnet(視需求選擇)。
  • 要求遠端存取需經過身份驗證。
  • 關閉公開埠或通過防火牆限制。
  • 啟用作業系統安全性更新。
  • 啟用磁碟加密。
  • 驗證備份與還原路徑。
  • 在適當情況下禁用密碼 SSH 或要求使用金鑰/MFA。
  • 新增排程 openclaw security audit --deep。

在套用前,先確認即將執行的確切動作。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills when explicitly requested; install, verify, update, uninstall, publish, or sync skills.

相關技能