본문으로 건너뛰기
Skillpedia
에이전트280k · #259

agent-runtime-gateway-smoke-test

하는 일

AI 에이전트가 보안 터널을 통해 로컬 API와 통신할 수 있는지, 실제 도구나 데이터 없이 확인합니다. 통신 경로 전체를 테스트하고, 테스트 후 모든 것이 원래대로 돌아오는지 확인합니다.

사용하는 경우

  • ✓로컬 API가 에이전트와 올바르게 작동하는지 테스트할 때.
  • ✓에이전트 작업이 멈췄고 통신 터널에 문제가 있을 것 같을 때.
  • ✓웹사이트가 일시적으로 로컬 API를 가리키는 새 설정을 테스트할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/affaan-m/ECC/blob/main/skills/agent-runtime-gateway-smoke-test/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“실제 데이터 없이 보안 터널을 사용해 내 로컬 API와 AI 에이전트 간의 통신을 확인하고, 그다음 원래 연결을 복원해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 테스트는 로컬 API와 보안 터널을 시작합니다. 터널에 간단한 요청을 보내 API가 응답하는지 확인합니다. 그다음 에이전트와 간단한 테스트 작업을 실행하고, 예상한 응답이 로컬 API에 돌아왔는지 확인합니다. 마지막으로 웹사이트의 원래 설정을 복원하고 테스트 API와 터널을 종료합니다.

기술 내용 (원본 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.

…

자주 묻는 질문

왜 실제 데이터를 사용하지 않나요?

보안과 개인정보 보호를 위해 이 테스트는 민감한 정보에 접근하지 않고 모의 시나리오만 사용합니다.

‘보안 터널’이란 무엇인가요?

로컬 API가 서로 다른 위치에 있더라도 AI 에이전트와 안전하게 통신할 수 있도록 하는 보호된 연결입니다.

테스트가 실패하면 어떻게 되나요?

테스트는 통신의 어느 부분(로컬 API, 터널, 에이전트, 복원)이 실패했는지 알려 주어 문제를 고칠 수 있도록 합니다.

상세 정보

작성자의 원본 설명

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
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬