How to use the Claude Code /debug skill in Claude Code
- Use an interactive session where you can reproduce the symptom. Phrase your request around one failure.
- Use the example below as a starting point and replace the sample task with your own.
/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.