-
Notifications
You must be signed in to change notification settings - Fork 29
issue: 4480494 Add Cursor rules for dev workflow #514
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: vNext
Are you sure you want to change the base?
Conversation
Greptile Summary
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Developer
participant CursorAI as "Cursor AI"
participant Git
participant Redmine as "Redmine MCP"
Note over Developer,Redmine: Bug Investigation Workflow
Developer->>CursorAI: "@evaluate-bug.mdc [ticket#]"
CursorAI->>Redmine: "yai__get_tickets(ticket_id)"
Redmine-->>CursorAI: "Ticket details"
CursorAI->>Redmine: "yai__get_comments(ticket_id)"
Redmine-->>CursorAI: "Comments and discussion"
CursorAI->>Redmine: "yai__get_similar_issues(ticket_id)"
Redmine-->>CursorAI: "Related issues"
CursorAI->>Git: "Search codebase for affected code"
Git-->>CursorAI: "Code locations and history"
CursorAI-->>Developer: "Root cause analysis with diagrams"
Note over Developer,Redmine: Commit Message Workflow
Developer->>Git: "git add [files]"
Developer->>CursorAI: "@commit-msg.mdc"
CursorAI->>Git: "git diff --staged"
Git-->>CursorAI: "Staged changes"
CursorAI->>Git: "git config user.name/email"
Git-->>CursorAI: "User details"
CursorAI->>Git: "Check branch name for issue ID"
Git-->>CursorAI: "Branch info"
CursorAI-->>Developer: "Formatted commit message"
Developer->>Git: "git commit -m [message]"
|
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.
2 files reviewed, 3 comments
| ## Next Steps | ||
|
|
||
| After completing this evaluation: | ||
| - **If fix is needed**: Use `@solve-bug.mdc [ticket#]` to generate solution proposals |
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.
logic: References @solve-bug.mdc which doesn't exist in this PR or repository. Either include this file or update the reference to reflect the actual workflow.
| - **Maximum length**: 51 characters (for optimal git log display) | ||
| - **Style**: Use imperative mood (e.g., "Add feature" not "Added feature") | ||
| - **Content**: Brief, actionable description of the change | ||
| - **Example**: `issue: 12345 Fix memory leak in buffer pool` | ||
|
|
||
| ### Body | ||
| - **Line length**: Maximum 72 characters per line (for readability in various git tools) |
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.
style: Line length limits (51 chars for subject, 72 for body) conflict with docs/contributing.md:116 which specifies 100 characters maximum for all lines. Consider aligning with project guidelines or updating the contributing docs.
| 1. Fetch the full ticket using `yai__get_tickets` with ticket ID | ||
| 2. Extract key information: | ||
| - Bug description and reproduction steps | ||
| - Affected versions, components, priority | ||
| - Attachments (logs, screenshots, stack traces) | ||
| 3. Review comments using `yai__get_comments` | ||
| 4. Search for similar issues using `yai__get_similar_issues` |
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.
style: References Redmine MCP tools (yai__get_tickets, yai__get_comments, yai__get_similar_issues) without setup verification. This rule will fail if the Redmine MCP server isn't configured. Add prerequisite check or document setup requirements.
Add two Cursor AI rules to streamline development workflow: - commit-msg.mdc: Automates generation of well-formatted commit messages following project conventions with proper Redmine issue tracking and sign-off requirements - evaluate-bug.mdc: Provides structured approach for bug investigation using Redmine MCP integration, including ticket analysis, codebase investigation, and root cause analysis with visual diagrams These rules enable AI-assisted development by encoding project best practices and integrating with existing tools. Signed-off-by: Tomer Cabouly <[email protected]>
5625a34 to
c13a4aa
Compare
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.
2 files reviewed, no comments
Edit Code Review Agent Settings | Greptile
React with 👍 or 👎 to share your feedback on this new summary format
Description
Add two Cursor AI rules to streamline development workflow:
commit-msg.mdc: Automates generation of well-formatted commit messages following project conventions with proper Redmine issue tracking and sign-off requirements
evaluate-bug.mdc: Provides structured approach for bug investigation using Redmine MCP integration, including ticket analysis, codebase investigation, and root cause analysis with visual diagrams
These rules enable AI-assisted development by encoding project best practices and integrating with existing tools.
What
Streamline workflows with A.I. using rules.
Why ?
Justification for the PR. If there is existing issue/bug please reference.
How ?
It is optional but for complex PRs please provide information about the design,
architecture, approach, etc.
Change type
What kind of change does this PR introduce?
Check list