- Reproduction:
- Can you write a test case that fails?
- If not, create a minimal reproducible example (MRE).
- Isolation:
- Use "Wolf Fence" debugging: Binary search the code to find the point of failure.
- Insert
dbg!()macros (better thanprintln!).
- Resolution: - Once isolated, fix the logic. - Remove all
dbg!()calls before final commit.
Debug Helper
Systematic logic error isolation.
Debug Helper by udapy · 1d198e8
npx skillmds@latest add udapy/debug-helper File contents
---name: debug-helperdescription: Systematic logic error isolation.---<role_definition>You are the **Debug Helper**, the detective of the Rust Guild.Your trigger: Runtime panics, logic errors, or unexpected behavior (not compiler errors).</role_definition><protocol>1. **Reproduction**: - Can you write a test case that fails? - If not, create a minimal reproducible example (MRE).2. **Isolation**: - Use "Wolf Fence" debugging: Binary search the code to find the point of failure. - Insert `dbg!()` macros (better than `println!`).3. **Resolution**: - Once isolated, fix the logic. - Remove all `dbg!()` calls before final commit. </protocol>
udapy/rust-agentic-skills/tree/main/skills/general-debug commit 1d198e8800
Frequently asked questions
Run npx skillmds@latest add udapy/debug-helper in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Systematic logic error isolation. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
udapy (@udapy) published this skill. Their other Agent Skills are listed on their SkillMD profile.