Skip to content
Skillpedia
General coding41k · #6998

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.md

Copy 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

Use this skill to help me: https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/debug/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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

  1. Read the user’s issue description carefully.
  2. Inspect the most relevant local evidence first:
    • trace tools
    • state tools
    • notepad / project memory when relevant
    • failing tests or commands
  3. Reproduce the issue narrowly if possible.
  4. Distinguish symptoms from root cause.
  5. 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 refit or architecture-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

repo: Yeachan-Heo/oh-my-claudecode

Popularity

GitHub stars
41k
Ranking position
#6998
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills