agent-runtime-gateway-smoke-test
Ce qu’il fait
Vérifie qu'un agent IA peut communiquer avec une API locale via un tunnel sécurisé, sans utiliser d'outils ni de données réels. Il teste tout le chemin de communication et s'assure que tout revient à la normale ensuite.
Quand l’utiliser
- ✓Quand vous voulez tester si une API locale fonctionne correctement avec un agent.
- ✓Si une tâche d'agent ne fonctionne plus et que vous soupçonnez un problème dans le tunnel de communication.
- ✓Lors du test d'une nouvelle configuration où un site pointe temporairement vers une API locale.
Lien du skill
https://github.com/affaan-m/ECC/blob/main/skills/agent-runtime-gateway-smoke-test/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Vérifiez la communication entre mon API locale et un agent IA via un tunnel sécurisé, sans données réelles, puis rétablissez la connexion d'origine.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
Ce test démarre votre API locale et un tunnel sécurisé. Il envoie une requête simple au tunnel pour confirmer que l'API répond. Ensuite, il lance une tâche de test simple avec l'agent et vérifie que la réponse attendue est bien revenue à l'API locale. Enfin, il rétablit la configuration d'origine du site et arrête l'API de test ainsi que le tunnel.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
- 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.
- 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
401or403. Confirm the probe appears in the local API log; an edge response alone does not prove the API was reached. - 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.
- 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.
- 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. |
…
Questions fréquentes
Pourquoi ne pas utiliser de données réelles ?
Pour garantir la sécurité et la confidentialité, ce test utilise uniquement un scénario simulé, sans accéder à des informations sensibles.
Qu'est-ce qu'un « tunnel sécurisé » ?
C'est une connexion protégée qui permet à l'API locale de communiquer de façon sécurisée avec l'agent IA, même s'ils se trouvent à des endroits différents.
Que se passe-t-il si le test échoue ?
Le test indique quelle partie de la communication a échoué (API locale, tunnel, agent ou rétablissement) afin que vous puissiez corriger le problème.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 280k
- Position au classement
- #259
- Licence
- MIT
- Mis à jour
- 15/10/2026
Commentaires
- …
Autres skills de ce dépôt
accessibility
280kAide votre agent à créer des interfaces accessibles à tous. Vérifie que sites et applis fonctionnent bien pour les personnes handicapées, aveugles ou à mobilité réduite.
agent-architecture-audit
280kPermet à votre agent de vérifier que tout fonctionne correctement. Il repère et corrige les problèmes des systèmes d'IA pour qu'ils se comportent comme prévu.
agent-eval
280kAide votre agent à comparer différents outils de codage IA. Il mesure lequel est le plus rapide, le moins cher et le plus fiable pour des tâches précises.
agent-harness-construction
280kRend votre agent plus efficace dans l'exécution des tâches. Il optimise les outils et les instructions qu'il utilise pour augmenter ses chances de réussite.
Skills similaires
add-model-provider
394kPermet à votre agent de connecter un nouveau fournisseur de modèles IA à OpenClaw par des commandes sûres, sans clé en clair, puis de lancer un test.
acp-router
394kAide votre agent à envoyer une tâche à un assistant de code comme Claude Code ou Cursor via OpenClaw, afin que le travail s'exécute dans cet outil.
browser-automation
394kApprend à votre agent à piloter des pages web étape par étape, y compris les connexions, les onglets et la reprise lorsqu'une page ne répond plus.