Skillpedia
الوكلاء280k · #259

agent-runtime-gateway-smoke-test

ما الذي تفعله

يتحقق من أن وكيل الذكاء الاصطناعي يستطيع التواصل مع واجهة برمجية محلية عبر نفق آمن، دون استخدام أدوات حقيقية أو بيانات فعلية. يختبر مسار الاتصال كاملًا، ويتأكد من أن كل شيء يعود إلى حالته الطبيعية بعد ذلك.

متى تستخدمها

  • ✓عندما تحتاج إلى اختبار عمل واجهة برمجية محلية مع وكيل بشكل صحيح.
  • ✓إذا توقفت مهمة وكيل عن العمل وتشك في وجود مشكلة في نفق الاتصال.
  • ✓عند اختبار إعداد جديد يشير فيه موقع إلكتروني مؤقتًا إلى واجهة برمجية محلية.

رابط المهارة

https://github.com/affaan-m/ECC/blob/main/skills/agent-runtime-gateway-smoke-test/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/affaan-m/ECC/blob/main/skills/agent-runtime-gateway-smoke-test/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“تحقق من التواصل بين واجهتي البرمجية المحلية ووكيل الذكاء الاصطناعي عبر نفق آمن، دون بيانات حقيقية، ثم أعد الاتصال الأصلي.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يبدأ هذا الاختبار واجهتك البرمجية المحلية ونفقًا آمنًا. يرسل طلبًا بسيطًا إلى النفق للتأكد من أن الواجهة تستجيب. ثم يشغّل مهمة اختبار بسيطة مع الوكيل ويتحقق من وصول الرد المتوقع إلى الواجهة المحلية. وأخيرًا يستعيد الإعداد الأصلي للموقع، ويوقف الواجهة والنفق التجريبيين.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Agent Runtime Gateway Smoke Test

Use this workflow when an agent task runs in a remote sandbox that calls back to a local API through a gateway. It verifies the whole path without relying on connected tools or private production data.

When to Activate

  • A local agent API needs an end-to-end runtime check.
  • A task stalls after dispatch and the gateway or tunnel may be unreachable.
  • A web app is temporarily pointed at a local API for agent testing.
  • A previous test left the web app pointing at a stopped API.

Required Inputs

  • Repository-relative instructions for starting the API and web app.
  • The gateway route path and its expected anonymous response.
  • An isolated test agent, a tool-free prompt, and its exact expected answer.
  • A way to inspect task status and confirm a callback reached the local API.
  • Provider credentials, supplied through the project's normal secret store. Name the providers in shared documentation; never copy credential values into the skill or test report.

If these inputs are unavailable, report the missing input instead of guessing an endpoint or using a real account.

Authorization and Cleanup

Confirm authorization to expose the local test API through the selected tunnel provider, dispatch the test task, and temporarily change the web app route. Use an isolated local web app or test deployment; do not switch a shared production app as part of this smoke test. Keep tunnel access scoped to the required authenticated route.

Install cleanup before changing the route: on success, error, timeout, interruption, or cancellation, restore the recorded target and verify health before stopping the API and tunnel. Track only the process IDs or resources created by this test. If restoration fails, report it immediately and keep the evidence needed to recover; do not claim success.

Smoke Test

  1. Record and check the original route. Note the web app's current API target and verify it is healthy. Keep this value locally for restoration. Confirm the test agent and data are isolated from real users.
  2. Start the local API and tunnel. Use a process manager that will keep both alive for the full test. Verify API health. Probe the gateway route anonymously and confirm the documented authentication response, usually 401 or 403. Confirm the probe appears in the local API log; an edge response alone does not prove the API was reached.
  3. Switch the web app only after both checks pass. Verify a request from the web app reaches the local API. Check the route again after any web server restart or configuration reload.
  4. Run one tool-free task. Use a short prompt with an exact expected answer. Confirm the remote sandbox called the local gateway, the task reached a terminal state, and the returned answer matches. A queued or running task is not a pass.
  5. Restore the original route. Set the web app back to its recorded API target, verify that target and a representative page load, then stop the test API and tunnel. If restoration fails, report the broken route immediately.

Example checks, with values supplied by the project:

curl --silent --show-error --output /dev/null --write-out '%{http_code}\n' "$LOCAL_API_HEALTH_URL"
curl --silent --show-error --output /dev/null --write-out '%{http_code}\n' "$PUBLIC_GATEWAY_PROBE_URL"

The first command should return the project's healthy status. The second should return the documented anonymous authentication status and appear in the local API log. Do not put a credential in either URL.

Connected Tool Follow-up

Run a separate test only after the tool-free task passes. Use an explicit test connection and grants. Report connection presence and actions granted as different facts. Do not infer that an empty action search means no app is connected. Do not execute a write action against a real account as a smoke test.

Failure Handling

Observation Next check
Web page loads but API requests fail Compare the configured API target with the listening process and restore the original route.
Gateway probe gets a connection error or 404 Check tunnel lifetime, route path, and local API health before dispatching a task.
Gateway probe gets 401 or 403, but no local log entry The response may come from the tunnel edge; verify the callback path.
Task stays queued or running Check whether another dispatcher claimed it and whether the sandbox reached the local gateway.

…

الأسئلة الشائعة

لماذا لا نستخدم بيانات حقيقية؟

لضمان الأمان والخصوصية، يستخدم هذا الاختبار سيناريو محاكى فقط، دون الوصول إلى معلومات حساسة.

ما هو «النفق الآمن» (secure tunnel)؟

هو اتصال محمي يسمح للواجهة البرمجية المحلية بالتواصل بأمان مع وكيل الذكاء الاصطناعي، حتى لو كانا في أماكن مختلفة.

ماذا يحدث إذا فشل الاختبار؟

سيبلّغ الاختبار عن الجزء الذي فشل في الاتصال (الواجهة المحلية، أو النفق، أو الوكيل، أو الاستعادة) لتتمكن من إصلاح المشكلة.

التفاصيل

الوصف الأصلي من المؤلف

Verify a local agent API, temporary gateway tunnel, and remote sandbox callback with a tool-free task, then restore the original app connection.

repo: affaan-m/ECC

الشعبية

نجوم GitHub
280k
الترتيب
#259
الترخيص
MIT
آخر تحديث
15‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة