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

system-watchdog

bởi brennerspear

DevOps & Cloud
269Lượ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

System resource monitoring that detects wasteful or suspicious processes.

Mô tả

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

A bash script that checks macOS system resources and flags processes exceeding memory, CPU, disk, or runtime thresholds. Outputs structured JSON to stdout, ready to pipe into other tools or feed to an agent. Common targets include stale AI coding agents, speech-to-text servers, and leaked dev processes.

Outputs machine-readable JSON instead of human-readable text, so results can be consumed directly by agents, scripts, or monitoring stacks without any parsing.

Khi nào nên dùng

  • Catching a Claude or Codex agent still running after a long session
  • Finding a Python script that leaked overnight and is consuming RAM
  • Checking available disk space before starting a large Docker build
  • Feeding structured process data into a custom alerting pipeline
  • Scheduling a cron job to surface resource waste automatically

Quy trình ví dụ

ĐẦU VÀO

User asks: Are there any wasteful or suspicious processes running on my machine?

AGENT
  1. 1

    Run check.sh and capture stdout

  2. 2

    Parse the JSON output

  3. 3

    Check the suspicious field — if false, report the system is healthy

  4. 4

    If suspicious is true, extract issues and top_processes from the JSON

  5. 5

    Format a concise report listing each flagged process with PID, RAM usage, CPU, and uptime

ĐẦU RA

A formatted report showing system resource summary and flagged processes, with suggested kill commands for stale or high-usage offenders

Cài đặt

clawhub install brennerspear/system-watchdog

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