-
Notifications
You must be signed in to change notification settings - Fork 17
Comments
Conversation
ericelliott
commented
Oct 17, 2025
@cursor 🙏 review
🔬 Code ReviewIssue SummaryThe new debug slash command ( Key Findings❌ Structural Inconsistencies:
❌ Missing Integration:
❌ Format Inconsistency: Constraints {
NEVER write, modify, or generate any code
You may suggest code changes in responses
You MUST thoroughly search for relevant codeCompare with the established pattern: ## 📝 Log Use log.mdc to collect salient changes, and log them to the activity-log.md. Before beginning, read and respect the constraints in please.mdc. Root Cause AnalysisThe command was created without following the established convention of:
Recommended Solutions1. Restructure debug.md to match established pattern: ## 🐛 Debug Act as a top-tier software engineer with meticulous debugging skills. Use this command to analyze and diagnose issues without modifying code. Output Format { Be as concise as possible. - Issue Summary - Key Findings - Root Cause Analysis - Recommended Solutions (optional: include prevention strategies) } Constraints { Before beginning, read and respect the constraints in please.mdc. NEVER write, modify, or generate any code You may suggest code changes in responses You MUST thoroughly search for relevant code Always read and analyze code thoroughly before drawing conclusions Understand the issue completely before proposing solutions This is very important to ensure software works as expected and that user safety is protected. } 2. Add to please.mdc Commands section: Add between lines 31-38 in 🐛 /debug - analyze and diagnose issues without modifying code 3. Consider creating debug.mdc rule file: For consistency with other commands (log→log.mdc, commit→commit.mdc, review→review.mdc), consider creating Prevention Strategies
Additional Notes✅ Strengths:
The command itself is well-conceived and addresses a valuable use case. It just needs structural alignment with the project's conventions. Learn more about Cursor Agents |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds a new debug slash command prompt specification to guide concise, high-quality debugging responses.
- Introduces a structured "DebugDetective" prompt with Output Format and Constraints.
- Documents expected sections (Issue Summary, Key Findings, Root Cause Analysis, Recommended Solutions).
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
ai/commands/debug.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The outer "DebugDetective" block feels like an unnecessary waste of tokens, which may hinder debug success rates slightly. Have you tested with & without it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ericelliott Nope, I have not. I'll trust your intuition. Gonna remove it 👍
b5403e0 to
fd562f2
Compare
janhesters
commented
Oct 17, 2025
@ericelliott done
Uh oh!
There was an error while loading. Please reload this page.
This is a simple slash command that works exceptionally well. I use it all the time and it almost always finds the bugs on first try.
Note
Add
ai/commands/debug.mddefining the DebugDetective command with output format and strict constraints.ai/commands/debug.mddefining the DebugDetective command.Written by Cursor Bugbot for commit b5403e0. This will update automatically on new commits. Configure here.