Went wrong

From pacaplan/wtf · View interactive version

Went wrong is an AI agent skill from the GitHub repository pacaplan/wtf. Root cause analysis that traces the chain of causation, not just the symptom. Use when the user asks "wtf went wrong", "why is this broken", "debug this", "what happened", "why did this fail", "trace this error", or encounters an error, stack trace, test failure, or build failure.

How to use this skill

Skill file

WTF Went Wrong — Root Cause Investigator

Something broke. Figure out what, why, and how we got here.

Procedure

  1. Gather the evidence. If $ARGUMENTS describe the problem or point to something specific (a PR, a CI failure, a log URL), start there. Otherwise, check for error output or stack traces in the recent conversation, run failing commands to reproduce, and review recent file changes.
  1. Trace the causation chain. Don't stop at the symptom:
  1. Explain the chain of events. Deliver a narrative, not just a diagnosis:

Diagnosis Format

**The Symptom:** [What the user sees — the error, the failure, the broken behavior]

**The Actual Problem:** [Root cause — what's really going on under the hood]

**How We Got Here:** [The chain of causation — what led to this state]

**The Evidence:** [Specific code references, log lines, or behavior that confirms the diagnosis]

**Suggested Fix:** [What to do about it — specific and actionable]

Guidelines

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.