Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

nexus-safe

bởi mrnsmh

Coding Agents & IDEs
276Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Autonomous local System Reliability Agent for OpenClaw.

Mô tả

Kỹ năng này làm gì

Nexus-Safe monitors local system health and manages service restarts for Docker and PM2 processes. It enforces a logs-first policy and rate limiting before allowing any recovery actions. All operations run entirely on the local machine with no outbound network calls.

Unlike cloud-based monitoring agents, Nexus-Safe keeps all system data local and gates restarts behind mandatory log review and rate limits, reducing the risk of blind restart loops.

Khi nào nên dùng

  • Check CPU, RAM, and disk usage on a production server
  • Pull recent logs from a crashed Docker container
  • Restart a PM2 process after reviewing its error logs
  • Monitor load averages during a traffic spike
  • Audit which services are allowlisted for auto-recovery

Quy trình ví dụ

ĐẦU VÀO

User asks: /nexus-safe recover my-api

AGENT
  1. 1

    Checks whether my-api is in the NEXUS_SAFE_ALLOWED_PM2 allowlist

  2. 2

    Verifies that logs for my-api were retrieved within the last 5 minutes

  3. 3

    Checks the sliding window to confirm fewer than 3 restarts occurred in the past hour

  4. 4

    Executes the PM2 restart command for my-api

ĐẦU RA

Service my-api restarted successfully; restart count updated in the rate-limit window.

Yêu cầu

  • docker installed and available in PATH
  • pm2 installed and available in PATH

Cài đặt

clawhub install mrnsmh/nexus-safe

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết