Imported from threnjen/thren-agentic-workflows (
ports/github/skills/debug-issue/SKILL.md). Install upstream withnpx skills add threnjen/thren-agentic-workflows --skill debug-issue. Copyright stays with the author.
Debug Issue
Use the knowledge graph to trace and debug issues systematically.
Steps
- Use
semantic_search_nodesto find code related to the issue. - Use
query_graphwithcallers_ofandcallees_ofto trace the sequence of calls. - Use
get_flowto trace full execution paths through suspected code. - Use
detect_changesto determine whether recent changes caused the issue. - Use
get_impact_radiusfor suspected files to identify other affected code.
Tips
- Check both callers and callees to understand the full context.
- Read affected flows to find the entry point that triggers the bug.
- Recent changes most often cause new issues.
Token Efficiency Rules
- Always start with
get_minimal_context(task="<your task>")before any other graph tool. - Use
detail_level="minimal"on all calls. Only escalate to "standard" when minimal is insufficient. - Target: Complete each review, debug, or refactor task in ≤5 tool calls and ≤800 total output tokens.