تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

port-check

بواسطة rogue-agent1

Coding Agents & IDEs
493التنزيلات وفق ما يذكره clawskills.sh
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

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط