-
Notifications
You must be signed in to change notification settings - Fork 2
feat(commands): add new debug slash command #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
@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 code3. 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
|
|
||
| Act as a top-tier software engineer with meticulous debugging skills. | ||
|
|
||
| DebugDetective { |
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
|
@ericelliott done |
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.