Community程式設計與開發github.com

診斷閘道

使用唯讀的單行命令診斷閘道、設定、密碼、通道和埠口故障。

診斷閘道 是什麼?

此技能提供一個專用於診斷 OpenClaw 閘道基礎架構的唯讀流程。它旨在幫助開發人員和 AI 代理程式安全地調查閘道故障,而無需冒險進行未經授權的變更。該技能會彙整並執行一系列特定的唯讀命令,例如 `openclaw doctor --lint`、`openclaw gateway status --deep` 和 `openclaw config validate`,以檢查設定錯誤、SecretRef 狀態(僅限已編輯的資訊)、通道驗證問題、埠口衝突(EADDRINUSE)以及閘道崩潰循環。它與 Claude Code、Cursor 和 Codex 等平台相容,並嚴格遵守一套規則:不會對設定或服務寫入資料;不會印出秘密值;並且始終生成可觀察的「證明」結果或清楚說明無法完成診斷的原因。透過關聯時間戳記並識別第一個邊界故障,它能夠準確定位根本原因。輸出結果會以因果順序提供結構化報告,其中包含證據、當前系統狀態,以及後續採取的建議行動(例如,呼叫 `configure-channel` 或 `add-model-provider` 等其他技能)。它會明確指出未執行任何修復或狀態遷移。

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

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

在你喜歡的 AI 中提問

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

說明文件

診斷閘道 是做什麼的?

此腳本是唯讀的:不寫入設定、不重新啟動服務、不執行 doctor --fix、不中斷監聽器。絕不列印出秘密值;僅報告已編輯的 SecretRef 擁有者狀態。每次執行結束時,都會觀察到「證明」結果,或提供為何無法證明的確切解釋。

收集

openclaw doctor --lint
openclaw gateway status --deep
openclaw config validate
openclaw channels status
openclaw models status
openclaw channels logs --channel <id>

doctor --lint 是唯讀的,且可能因發現問題而退出碼為 1:請閱讀報告,並繼續執行其餘檢查。請勿使用一般的 doctor 或 doctor --non-interactive;它們可能會在沒有 --fix 的情況下,複製舊設定並遷移狀態。

在受管安裝環境中,可查看近期的日誌:./scripts/clawlog.sh(儲存庫檢出路徑)或閘道啟動時列印的日誌路徑(預設為 /tmp/openclaw/openclaw-<date>.log)。

無需猜測,直接檢查以下跡象:

  • 無效設定或架構錯誤(config validate 會指出確切的鍵名和行號);
  • 降級的 SecretRef 擁有者——報告擁有者,絕不報告 ID 或值;
  • 已到期或遭拒絕的通道驗證(每個帳號的 channels status);
  • EADDRINUSE、第二個閘道監聽器或服務/設定埠口不一致(lsof -nP -iTCP:<port> -sTCP:LISTEN);
  • 閘道崩潰循環:讀取閘道日誌中最後一個啟動堆疊;架構有效的設定仍導致啟動崩潰即為錯誤——捕獲堆疊並回報。

關聯時間戳記,並識別第一個擁有者邊界故障。

變更

無。請勿變更設定、遷移狀態或修改服務。診斷命令仍可能產生附帶日誌或快取簿記。

修復

將每個發現轉換為下一個動作,並在存在對應技能時命名該技能:configure-channel、add-model-provider 或 cloud-image-bake。僅在單獨核准的步驟中,才建議執行 openclaw doctor --fix --non-interactive。

證明

重複執行能揭露該狀況的最小唯讀檢查,並記錄其輸出,例如:

openclaw gateway status --deep
openclaw channels status --probe

如果無法存取閘道、日誌或閘道本身無法使用,請回報該確切的阻礙因素,而非宣稱原因。

報告

按因果順序列出發現,並附上每項發現的證據;目前的閘道/設定/SecretRef/通道/埠口狀態;以及一個建議的下個技能或操作人員動作。明確說明未執行任何設定/服務修復或狀態遷移。

更多參考資料:https://docs.openclaw.ai/gateway/troubleshooting

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, Grok Build, 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 and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相關技能