Application problem diagnosis workflow

From Dirtytrii/codex-skills · View interactive version

Application problem diagnosis workflow is an AI agent skill from the GitHub repository Dirtytrii/codex-skills. Read-only first workflow for diagnosing application incidents by collecting service, log, network, configuration, and functional evidence before proposing any fix.

How to use this skill

Skill file

Application Problem Diagnosis Workflow

Purpose

Prevent blind fixes by enforcing a diagnose-before-treat workflow for application incidents. The skill gathers evidence from service state, logs, process state, configuration summaries, and functional probes before recommending any change.

When to use

Safety rules

Read-only workflow

  1. Establish scope: affected service, user-visible symptom, time window, and expected behavior.
  2. Check service state without changing it: active state, substate, main PID, recent exits, restart count, working directory, and command line.
  3. Inspect recent logs safely: collect error categories, exception names, frequency, and first/last occurrence time without copying raw sensitive payloads.
  4. Check process and port state: whether the expected process exists and whether expected local ports listen.
  5. Verify application startup signals: framework started, web server bound to port, routes/mappings registered, database pool initialized, background workers ready.
  6. Test functionality with safe read-only probes: health endpoints, root path, known read-only API, or direct local loopback request. Avoid mutating endpoints.
  7. Review configuration summaries: which config file is loaded, active profile, expected port, upstream target, and required environment-variable presence. Do not print secret values.
  8. Compare proxy/gateway layer against backend: determine whether failure is app-side, reverse-proxy-side, network-side, or wrong-path testing.
  9. Form a hypothesis and list evidence for/against it.
  10. Propose the smallest next action, keeping fixes behind user approval.

Evidence to collect

Stop conditions

Optional user-approved actions

Only after explicit user approval:

Final report format

Summary: <one-line incident diagnosis>
Scope: <PROJECT_NAME>/<SERVICE_NAME>/<time window>
Impact: <user-visible / internal / unknown>
Read-only evidence:
- Service: <state summary>
- Logs: <safe error summary>
- Ports/process: <summary>
- Config: <presence and active profile, no secrets>
- Probes: <status summary>
Likely cause: <ranked hypothesis>
Ruled out: <bullets>
Recommended next step: <read-only or approval-required>
Needs approval: <yes/no and 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.