Debugging Expert
Debugging Expert Skill
This skill guides the agent through a rigorous root cause analysis process, treating bugs as scientific anomalies to be investigated.
🔬 The Protocol
Phase 1: Isolation
- Reproduce: Can you trigger the bug reliably?
- Minimize: What is the smallest action that triggers it?
- Boundaries: Is it Frontend (Browser) or Backend (Server)?
- Action: Check Browser Network Tab. Request sent? Payload correct?
- Action: Check Backend Logs. Request received? Error stack trace?
Phase 2: Visibility (The "Light It Up" Strategy)
If the bug is silent (no error, but wrong result):
- Trace it: Add logging at entry (Controller), middle (Service), and exit (Mapper/DB).
- Raw Payload: Log the
raw input(e.g. Map instead of POJO) to verify data integrity before binding. - Version Check: Add a
FATALorstatic blocklog with a version number (e.g., "V1.2") to prove the code running IS the code you just wrote.
More from chrysaliscat/designgraduation
ui/ux pro max
Expert UI/UX design intelligence for creating professional, modern, and accessible interfaces in RuoYi-Vue.
8frontend expert
Expert guidance for Vue.js 2.x and Element UI development in the RuoYi-Vue framework.
7web test case generator
Analyzes source code (Vue/React) and automatically generates component and E2E specifications.
7mini program expert
Expert guidance for transforming RuoYi-Vue into a WeChat Mini Program backend and developing the corresponding frontend (Native or UniApp).
6tdd skill
Test-Driven Development (Red-Green-Refactor) guide and enforcement.
4debugging-with-tools
Use when encountering bugs or test failures - systematic debugging using debuggers, internet research, and agents to find root cause before fixing
4