$npx -y skills add block/ai-rules --skill debuggingDebugging guidelines and best practices
| 1 | # Debugging Guidelines |
| 2 | |
| 3 | When debugging issues in this codebase: |
| 4 | |
| 5 | 1. **Check logs first** - Review application logs for error messages and stack traces |
| 6 | 2. **Reproduce consistently** - Ensure you can reliably reproduce the issue before attempting fixes |
| 7 | 3. **Isolate the problem** - Use binary search or divide-and-conquer to narrow down the root cause |
| 8 | 4. **Add logging** - Insert temporary debug statements to trace execution flow |
| 9 | 5. **Check recent changes** - Review recent commits that might have introduced the issue |