debug-issue
What it does
This skill guides the AI agent through a structured debugging session using the code-review-graph tool. It is for developers chasing a bug in a codebase.
When to use it
- ✓When you have an error message or stack trace and need to find where it starts.
- ✓When a recent change may have caused a bug and you want to check.
- ✓When you need to see what a fix would affect before changing the code.
Skill link
https://github.com/tirth8205/code-review-graph/blob/staging/skills/debug-issue/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
“Users get a crash when they save a draft. Can you trace which code path causes it?”
5 new skills a week. 1 minute to read.
How it works
The agent searches the graph for related code, traces callers and callees, checks recent changes, and then reads the implementation and tests.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Debug Issue
Trace a bug through the knowledge graph before reading source.
Steps
- Call
semantic_search_nodes_toolto find code related to the issue. - Call
query_graph_toolwithcallers_ofandcallees_ofto trace the call chain in both directions. - Call
get_flow_toolfor the execution path that reaches the suspect code. Its entry point is where the bug is triggered. - Call
detect_changes_toolto check whether a recent change caused the issue. - Call
get_impact_radius_toolon the suspect files to see what a fix would affect.
Token Efficiency Rules
- Call
get_minimal_context_tool(task="<your task>")before any other graph tool. - Pass
detail_level="minimal"wherever a tool accepts it. Use "standard" only when minimal is not enough. - Prefer a targeted
query_graph_toolcall over a broad listing call. - Budget: about five tool calls and 800 tokens of graph output per task.
- Read the implementation and its tests before changing code. The graph narrows scope; it does not replace the source.
FAQ
Does it replace reading the code?
No. The skill says the graph narrows the search, and the source and tests are still read before any change.
What does it check for recent changes?
It uses a change detection tool to see whether a recent edit could be the cause.
How many tool calls does it use?
The skill sets a budget of about five graph calls per task to keep it efficient.
Details
Original description by the author
Systematically debug issues using graph-powered code navigation
Popularity
- GitHub stars
- 33k
- Ranking position
- #9139
- License
- MIT
- Updated
- 10/29/2026
Comments
- …
More skills from this repository
build-graph
33kLets your agent build or update a code knowledge graph of your repository, so later code reviews and searches are faster.
explore-codebase
33kHelps your agent find its way around an unfamiliar codebase by searching the code knowledge graph for modules and relationships.
refactor-safely
33kHelps your agent plan a code refactor using dependency analysis, and apply renames only after checking a preview.
review-changes
33kHelps your agent review a set of code changes with risk scores, test gaps and the blast radius, grouped by risk level.
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.