debug
What it does
This skill guides an agent through diagnosing why a session or workflow is behaving oddly. It is for people who see confusing behavior and want the cause found before any changes are made.
When to use it
- ✓When a Claude Code session or workflow is behaving in a confusing or broken way.
- ✓When a tool or hook seems to break after a change and the cause is unclear.
- ✓When you want the root cause found before any broad rewrite starts.
Skill link
https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/debug/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“My Claude session keeps stopping in the middle of a task. Can you find out why and tell me the smallest fix?”
5 new skills a week. 1 minute to read.
How it works
The agent reads the most relevant logs, traces and state first, tries to reproduce the problem narrowly, and separates symptoms from the root cause. It then recommends the smallest next step to check or fix.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Debug
Use this skill when the user wants help diagnosing a current OMC/Claude-Code session problem, workflow breakage, or confusing runtime behavior.
Goal
Find the real failure signal quickly and explain the next corrective step.
Workflow
- Read the user’s issue description carefully.
- Inspect the most relevant local evidence first:
- trace tools
- state tools
- notepad / project memory when relevant
- failing tests or commands
- Reproduce the issue narrowly if possible.
- Distinguish symptoms from root cause.
- Recommend the smallest next fix or verification step.
Rules
- Prefer real evidence over guesses.
- Use the trace/state surfaces when the issue involves orchestration, hooks, or agent flow.
- If the issue is actually a product/runtime bug rather than app code, say so plainly.
- Do not prescribe broad rewrites before isolating the failure.
- Tag temporary debug output
[DEBUG-<4hex>]; cleanup is then a single grep. - Redact secrets from logs and traces before they leave the session.
- If the failure traces to a missing or wrong seam, say so as the finding and point at
refitorarchitecture-survey— the environment lesson outlives the fix.
Output
- Observed failure
- Root-cause hypothesis
- Evidence for that hypothesis
- Smallest next action
FAQ
Will it rewrite my code right away?
No. It avoids broad rewrites until the failure has been isolated.
Does it protect secrets in logs?
Yes. It removes secrets from logs and traces before they leave the session.
What if the problem is in the tool itself?
The skill says so plainly, since the cause is then a product bug rather than a problem in your app code.
Details
Original description by the author
Diagnose the current OMC session or repo state using logs, traces, state, and focused reproduction
Popularity
- GitHub stars
- 41k
- Ranking position
- #6998
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
agent-doc-discipline
41kTeaches your agent to write instructions that other AI agents can follow on their own, with rules that can be checked and a clear reason behind each.
ai-slop-cleaner
41kHelps your agent tidy up AI-written code that works but is bloated or repetitive, removing extra code without changing what it does.
architecture-survey
41kHelps your agent review a codebase's structure and list the parts that are getting hard to change, with evidence, without changing anything itself.
ask-navigator
41kHelps your agent turn a fuzzy project into a map of clear decision questions, then work through them one at a time until the path is clear.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.