Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

api-health-check

БесплатноБез исполняемых скриптовНе проверен

Monitor API endpoints, measure response times, and diagnose connectivity issues.

modbenderот modbender★ 21 звезда на GitHub

Об этом скилле

API Health Check

Monitor API endpoints and diagnose connectivity issues.

Instructions

  1. Accept endpoint URLs from the user. If a single base URL is given, check common paths: /, /health, /healthz, /api/status, /ping.
  2. For each endpoint, run:
    curl -s -o /dev/null -w "HTTP %{http_code} | %{time_total}s | %{size_download}B" -m 10 <URL>
    
  3. Classify results:
    • 🟢 Healthy — 2xx, <1s
    • 🟡 Slow — 2xx, >1s
    • 🔴 Down — Non-2xx, timeout, or connection refused
  4. Present summary table:
    | Endpoint | Status | Time (ms) | Verdict |
    |----------|--------|-----------|---------|
    | /health  | 200    | 142       | 🟢      |
    
  5. For failed endpoints, diagnose:
    • DNS resolution: dig <host> +short
    • Port connectivity: nc -zw3 <host> <port>
    • SSL issues: curl -vI https://... 2>&1 | grep -i ssl
  6. For repeated monitoring: watch -n <interval> curl -s -o /dev/null -w "%{http_code}" <URL>

Security

  • Never log or display auth tokens in output — mask as Bearer ****
  • Accept custom headers via user input, but redact them in reports
  • SSRF prevention: Reject requests to private/internal IPs (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.0.0/16, 127.0.0.0/8) unless the user explicitly confirms the target is intentional (e.g., homelab monitoring)

Edge Cases

  • Self-signed SSL: Use curl -k only if user explicitly approves
  • Redirects: Use curl -L to follow; report redirect chain
  • IPv6: Test both A and AAAA if DNS returns both
  • Rate limiting: Space requests with 1s delay if checking many endpoints

Requirements

  • curl (pre-installed on most systems)
  • Optional: dig, nc for deeper diagnostics
  • No API keys needed

Установить api-health-check в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.md

FAQ

Что делает скилл api-health-check?

Monitor API endpoints, measure response times, and diagnose connectivity issues.

Как установить скилл api-health-check?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл api-health-check запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить api-health-check с