Add Cursor IDE support (.cursorrules and .cursor/rules/)#3019
Open
Melissari1997 wants to merge 2 commits into
Open
Add Cursor IDE support (.cursorrules and .cursor/rules/)#3019Melissari1997 wants to merge 2 commits into
Melissari1997 wants to merge 2 commits into
Conversation
Melissari1997
commented
Jun 7, 2026
Contributor
Author
Melissari1997
left a comment
There was a problem hiding this comment.
PR Review: Add Cursor IDE support (.cursorrules and .cursor/rules/)
Suggestions (should fix, not blocking)
-
.cursorrules:5references.kilo/worktrees/paths. This is Kilo-specific internal structure. Cursor agents won't have access to Kilo worktrees. Either remove this reference or generalize it to describe the worktree pattern without naming Kilo's directory structure. -
rockout.mdcanddeep-sweep.mdcreference.kilo/worktrees/for git worktree isolation. Cursor doesn't use Kilo's worktree convention. The worktree isolation contract should be adapted for Cursor's context (e.g., suggest usinggit worktree addwith a Cursor-appropriate path like.cursor/worktrees/). -
release-major.mdc,release-minor.mdc,release-patch.mdcare nearly identical (85 lines each, differing only in the version increment step). Consider whether Cursor's rule system supports a shared base rule or parameterized rules. If not, the duplication is acceptable but worth noting for future maintenance. - Several sweep rules (
sweep-accuracy.mdc,sweep-metadata.mdc, etc.) reference updating state CSV files at.kilo/worktrees/sweep-*-state.csv. This path is Kilo-specific. Either adapt to a Cursor-appropriate path or note that state tracking is tool-specific. - The
globsfield in some rules is set to"*.py"for rules that don't actually operate on Python files (e.g.,ready-to-merge.mdcoperates on PR metadata,new-issues.mdcoperates on README.md and GitHub issues). Consider using more accurate globs or leaving globs empty for non-file-specific rules.
Nits (optional improvements)
-
bench.mdc:1globs is"*.py"but the rule operates on ASV benchmarks inbenchmarks/. Considerglobs: "benchmarks/**/*.py". -
release-major.mdc:1,release-minor.mdc:1,release-patch.mdc:1all haveglobs: ""(empty string). Consider omitting the field or usingglobs: []if the format supports it. - The
validate.mdcrule references[TOOL: humanize]which is a Kilo-specific tool reference. Cursor doesn't have this tool. Either remove these references or replace with Cursor-equivalent guidance.
What looks good
- All 22 commands from
.claude/commands/,.codex/commands/, and.kilo/command/are represented - YAML frontmatter is consistent and well-structured across all files
- The
.cursorrulesfile provides good project-wide context (architecture, conventions, backend dispatch pattern) - Purely additive change -- no existing files modified
- Rule content is concise and actionable, adapted well from the longer source commands
Checklist
- All source commands have corresponding Cursor rules
- YAML frontmatter present on all .mdc files
- No source code changes
- No CI pipeline changes
- Kilo-specific paths generalized for Cursor
- Tool-specific references (humanize, worktrees) adapted
Melissari1997
commented
Jun 7, 2026
Contributor
Author
There was a problem hiding this comment.
Follow-up Review: Address review feedback (#3014)
Applied the following fixes from the initial review:
rockout.mdc: Changed.kilo/worktrees/to.worktrees/for tool-agnostic worktree pathsready-to-merge.mdc: Changedglobs: "*.py"toalwaysApply: true(operates on PR metadata, not Python files)new-issues.mdc: Changedglobs: "README.md"toalwaysApply: true(operates on feature matrix and GitHub issues)bench.mdc: Changedglobs: "*.py"toglobs: "benchmarks/**/*.py"(targets benchmark files specifically)release-major.mdc,release-minor.mdc,release-patch.mdc: Changedglobs: ""toalwaysApply: true(release workflows are not file-scoped)
Dismissed findings:
- Release rule duplication (major/minor/patch): Cursor does not support shared base rules or parameterized rules, so the duplication is necessary and acceptable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3014
Summary
.cursorrulesat the repo root with project-wide context for Cursor's agent system.cursor/rules/directory with 22.mdcrule files mirroring the existing Claude/Codex/Kilo commandsRule coverage
All existing commands from
.claude/commands/,.codex/commands/, and.kilo/command/are mirrored:Test plan
.cursor/excluded from distributions (not in MANIFEST.in or pyproject.toml)