Claude Code /debug skill

Start Claude Code debug logging and focus the investigation on a reproducible issue in the current session.

How to use the Claude Code /debug skill in Claude Code

  1. Use an interactive session where you can reproduce the symptom. Phrase your request around one failure.
  2. Use the example below as a starting point and replace the sample task with your own.
Claude Code prompt · Try this example
/debug Investigate why a custom skill disappears after I open this repo.

Reproduce one symptom

Start logging, reproduce the missing skill once, and note the action where it happens. Ask Claude to identify evidence in the new log and give the smallest config or path check that would confirm its explanation.

Keep the log useful

Logging begins at invocation unless it was enabled at session startup. Repeat the relevant action if the original failure happened earlier. Review any log excerpt for sensitive output before sharing it.

Browse Skills