Proxy dependent python service diagnosis

From Dirtytrii/codex-skills · View interactive version

Proxy dependent python service diagnosis is an AI agent skill from the GitHub repository Dirtytrii/codex-skills. Read-only diagnosis workflow for Python services whose external HTTP or WebSocket readiness differs between manual tests and service runtime behind a proxy.

How to use this skill

Skill file

Proxy-Dependent Python Service Diagnosis

Purpose

Determine whether a Python service's external HTTP/WebSocket failures are caused by proxy environment propagation, client-library proxy behavior, proxy instability, stale readiness artifacts, or a different service entrypoint.

When to use

Safety rules

Read-only workflow

  1. Capture current failure class from safe summaries: HTTP failure, WebSocket failure, both, stale artifact, or mixed evidence.
  2. Inspect service metadata: user, working directory, command line, environment keys present, main PID, restart count, and unit entrypoint.
  3. Read the startup chain: systemd unit, wrapper script, virtual environment activation, module entrypoint, and any supervising loop. Summarize; do not expose secrets.
  4. Inspect the live child Python process environment through /proc/<pid>/environ, redacting values. Confirm whether proxy variables, virtualenv, path, and Python path reached the actual child process.
  5. Compare the live process command line with the manual command being tested.
  6. Inspect readiness/probe implementation names and client libraries involved: HTTP client, WebSocket client, custom wrappers, and whether the library honors environment proxy settings.
  7. Reproduce read-only probes in concept or in a controlled approved diagnostic session: same user, same virtualenv, same working directory, same Python path, with proxy and without proxy. If not approved to run probes, describe the test plan only.
  8. Check whether readiness artifacts are current: timestamp, PID/session correlation, and whether another process may be overwriting the same artifact.
  9. Separate conclusions for HTTP and WebSocket. Do not summarize one as proof for the other.
  10. Rank likely causes and identify the next safe diagnostic step.

Evidence to collect

Stop conditions

Optional user-approved actions

Only after explicit user approval:

Final report format

Summary: <proxy/runtime diagnosis>
Service: <SERVICE_NAME>
Current readiness: <status/timestamp/class>
Live process evidence: <env keys present, command summary>
HTTP path: <works/fails/unknown and evidence>
WebSocket path: <works/fails/unknown and evidence>
Artifact freshness: <current/stale/ambiguous>
Likely cause: <ranked hypothesis>
Next diagnostic step: <read-only or approval-required>
Needs approval: <specific action>
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.