कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

port-check

rogue-agent1 द्वारा

Coding Agents & IDEs
493clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Check if services are responding on given host:port pairs.

विवरण

यह स्किल क्या करती है

Checks whether services are responding on specified host:port pairs. Supports both TCP connectivity and HTTP status verification, with a configurable timeout. Exits with a non-zero code if any target is down, making it scriptable.

Combines TCP and HTTP checks into a single command so you don't have to switch between nc and curl manually.

इसे कब इस्तेमाल करें

  • Confirming a local dev server is up before running tests
  • Checking if a database port is accessible after a deploy
  • Verifying SSH is reachable on a home network device
  • Diagnosing which service in a stack failed to start
  • Monitoring an API endpoint for HTTP 200 responses

उदाहरण वर्कफ़्लो

इनपुट

User asks: 'Are my database and web server up?'

एजेंट
  1. 1

    Run port-check against localhost:5432 and localhost:3000

  2. 2

    Attempt TCP connection to each target within the timeout window

  3. 3

    Optionally request HTTP status with --http flag

  4. 4

    Report open or closed status for each host:port pair

  5. 5

    Exit with code 1 if any target fails to respond

आउटपुट

localhost:5432 — open, localhost:3000 — open

इंस्टॉलेशन

clawhub install rogue-agent1/port-check

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक