Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)394k · #12

diagnose-gateway

Skill này làm gì

Skill hướng dẫn một agent AI thực hiện kiểm tra sức khỏe chỉ đọc đối với OpenClaw Gateway, gồm cấu hình, bí mật, kênh và cổng. Nó dành cho những ai gặp lỗi hoặc Gateway không khởi động được.

Khi nào nên dùng

  • ✓Khi OpenClaw Gateway của bạn không khởi động được hoặc liên tục bị sập.
  • ✓Khi một kênh chat ngừng hoạt động và bạn muốn tìm ra nguyên nhân.
  • ✓Khi bạn thấy xung đột cổng hoặc lỗi cấu hình trong OpenClaw.

Liên kết skill

https://github.com/openclaw/openclaw/blob/main/custodian-skills/diagnose-gateway/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/openclaw/openclaw/blob/main/custodian-skills/diagnose-gateway/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Gateway OpenClaw của tôi không khởi động được. Bạn có thể kiểm tra xem có gì sai mà không thay đổi cài đặt của tôi không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill chạy một loạt kiểm tra chỉ đọc và đọc các nhật ký gần đây. Sau đó báo cáo nguyên nhân có thể xảy ra, chẳng hạn lỗi cấu hình, đăng nhập đã hết hạn hoặc cổng đang bị dùng, mà không thực hiện thay đổi nào.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Diagnose the Gateway

This playbook is read-only: no config writes, no service restarts, no doctor --fix, no killing listeners. Never print secret values; report only redacted SecretRef owner state. Every run ends with the observable Prove result or an exact explanation of why it could not be proven.

Gather

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

doctor --lint is read-only and can exit 1 for findings: read the report and continue the remaining checks. Do not substitute ordinary doctor or doctor --non-interactive; they can copy legacy config and migrate state without --fix.

On managed installs, bounded recent logs: ./scripts/clawlog.sh (repo checkout) or the log path printed at gateway startup (/tmp/openclaw/openclaw-<date>.log by default).

Check these signatures without guessing:

  • invalid config or schema errors (config validate names the exact key and line);
  • degraded SecretRef owners — report the owner, never ids or values;
  • expired or rejected channel authentication (channels status per account);
  • EADDRINUSE, a second gateway listener, or service/config port mismatch (lsof -nP -iTCP:<port> -sTCP:LISTEN);
  • gateway crash loops: read the last startup stack in the gateway log; a schema-valid config that still crashes startup is a bug — capture the stack and report it.

Correlate timestamps and identify the first owner-boundary failure.

Mutate

Nothing. Do not change config, migrate state, or alter services. Diagnostic commands may still produce incidental logs or cache bookkeeping.

Repair

Translate each finding into the next action, naming the responsible skill when one exists: configure-channel, add-model-provider, or cloud-image-bake. Recommend openclaw doctor --fix --non-interactive only as a separately approved step.

Prove

Repeat the smallest read-only check that exposes the condition and record its output, for example:

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

If access, logs, or the gateway are unavailable, report that exact blocker rather than declaring a cause.

Report

Findings in causal order with evidence for each; current gateway/config/SecretRef/channel/port state; one recommended next skill or operator action. State explicitly that no config/service repairs or state migrations were performed.

Further reference: https://docs.openclaw.ai/gateway/troubleshooting

Câu hỏi thường gặp

Skill có thay đổi cài đặt của tôi trong lúc kiểm tra không?

Không. Quy trình chỉ đọc, nên nó không ghi cấu hình, khởi động lại dịch vụ hay dừng các chương trình đang chạy.

Skill có hiện mật khẩu hoặc token của tôi không?

Không. Skill không bao giờ in giá trị bí mật và chỉ báo cáo thông tin đã che giấu về nguồn gốc của bí mật.

Skill có thể tìm ra những vấn đề gì?

Skill tìm cấu hình không hợp lệ, đăng nhập kênh đã hết hạn, cổng đang bị dùng và các Gateway bị kẹt trong vòng lặp sập liên tục.

Chi tiết

Mô tả gốc của tác giả

Diagnose Gateway, config, secrets, channels, and port failures with read-only one-liners.

repo: openclaw/openclaw

Độ phổ biến

Sao GitHub
394k
Vị trí xếp hạng
#12
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự