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

skill-4

bởi claudiodrusus

Web & Frontend Development
286Lượ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

Lightweight website uptime monitor.

Mô tả

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

A zero-dependency Python tool for checking website uptime, measuring response times, and detecting content changes via SHA-256 hashing. Runs entirely on Python's standard library with no external packages required. Returns exit code 1 on failure, making it composable with shell scripts and cron jobs.

Because it requires no pip install or virtual environment setup, it runs anywhere Python is available without dependency management overhead.

Khi nào nên dùng

  • Alerting via cron when a production site goes down
  • Verifying a status page still shows 'All Systems Operational'
  • Detecting silent content changes on a competitor's pricing page
  • Checking multiple staging URLs before a deployment
  • Confirming a redirect returns the expected 301 status code

Quy trình ví dụ

ĐẦU VÀO

User asks: check if my site is up and alert me if it's down

AGENT
  1. 1

    Run python main.py https://mysite.com with default timeout

  2. 2

    Capture exit code from the process

  3. 3

    On exit code 1, pipe alert message to mail or another notification tool

  4. 4

    Optionally pass --json flag to parse structured result for dashboards

ĐẦU RA

Exit code 0 with status 200, response time in ms, and content hash printed to stdout; exit code 1 triggers the alert branch

Cài đặt

clawhub install claudiodrusus/skill-4

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