Add Cursor rules#1294
Conversation
Signed-off-by: Sarah Yurick <sarahyurick@gmail.com>
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Signed-off-by: Sarah Yurick <sarahyurick@gmail.com>
Signed-off-by: Sarah Yurick <sarahyurick@gmail.com>
Signed-off-by: Sarah Yurick <sarahyurick@gmail.com>
Greptile OverviewGreptile SummaryThis PR adds comprehensive Cursor IDE rules documentation to guide AI-assisted development in the NeMo Curator codebase. Changes:
Validation: Confidence Score: 5/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant Dev as Developer
participant Cursor as Cursor IDE
participant Rules as .cursor/rules/*.mdc
participant Code as Codebase
Dev->>Cursor: Request code assistance
Cursor->>Rules: Load applicable rules
Rules->>Cursor: coding-standards.mdc<br/>(Ruff rules, copyright, tests)
Rules->>Cursor: processing-stage-patterns.mdc<br/>(Stage API, inputs/outputs)
Rules->>Cursor: resources-configuration.mdc<br/>(GPU/CPU allocation)
Rules->>Cursor: task-patterns.mdc<br/>(Task types, attributes)
Cursor->>Code: Analyze existing implementation
Code->>Cursor: Current patterns & structure
Cursor->>Dev: Generate code suggestion<br/>(following documented patterns)
Dev->>Code: Accept & implement
Note over Dev,Code: For composite stages
Dev->>Cursor: Request composite stage help
Cursor->>Rules: composite-stage-patterns.mdc<br/>(decompose(), with_())
Cursor->>Dev: Generate CompositeStage code
Note over Dev,Code: For pipelines
Dev->>Cursor: Request pipeline help
Cursor->>Rules: pipeline-structure.mdc<br/>(add_stage, build, run)
Cursor->>Rules: executors.mdc<br/>(XennaExecutor config)
Cursor->>Dev: Generate Pipeline code
Note over Dev,Code: For modality-specific work
Dev->>Cursor: Request text/image/audio/video stage
Cursor->>Rules: modality-structure.mdc<br/>(directory structure, task types)
Cursor->>Dev: Generate modality-specific code
|
Signed-off-by: Sarah Yurick <sarahyurick@gmail.com>
Signed-off-by: Sarah Yurick <53962159+sarahyurick@users.noreply.github.com>
There was a problem hiding this comment.
Additional Comments (2)
-
.cursor/rules/modality-structure.mdc, line 56 (link)style: Remove TODO comment before merging
-
.cursor/rules/resources-configuration.mdc, line 30-34 (link)style: Missing resource attributes that exist in actual implementation:
entire_gpu(bool),nvdecs(int), andnvencs(int). Seenemo_curator/stages/resources.py:48-51
8 files reviewed, 2 comments
Signed-off-by: Sarah Yurick <53962159+sarahyurick@users.noreply.github.com>
There was a problem hiding this comment.
Additional Comments (1)
-
.cursor/rules/resources-configuration.mdc, line 30-34 (link)style: The actual
Resourcesclass has additional attributes not documented here:nvdecs(int),nvencs(int), andentire_gpu(bool). Consider adding these to keep the documentation complete.
8 files reviewed, 1 comment
VibhuJawa
left a comment
There was a problem hiding this comment.
LGTM, I will have to play more with them more.
Minor nit to make it dataclass
There was a problem hiding this comment.
Additional Comments (1)
-
.cursor/rules/resources-configuration.mdc, line 30-34 (link)logic: Incomplete resource attributes. The actual
Resourcesclass also includes:nvdecs: Number of NVDEC units requirednvencs: Number of NVENC units requiredentire_gpu: Whether to allocate entire GPU regardless of memory
8 files reviewed, 1 comment
* add cursor rules for processing stages and tasks Signed-off-by: Sarah Yurick <sarahyurick@gmail.com> * add coding standards and modality structure Signed-off-by: Sarah Yurick <sarahyurick@gmail.com> * update file Signed-off-by: Sarah Yurick <sarahyurick@gmail.com> * add rules for composite stages, executors, pipelines, resources Signed-off-by: Sarah Yurick <sarahyurick@gmail.com> * fix inconsistency Signed-off-by: Sarah Yurick <sarahyurick@gmail.com> * Update .cursor/rules/resources-configuration.mdc Signed-off-by: Sarah Yurick <53962159+sarahyurick@users.noreply.github.com> * Update .cursor/rules/modality-structure.mdc Signed-off-by: Sarah Yurick <53962159+sarahyurick@users.noreply.github.com> * Add suggestion --------- Signed-off-by: Sarah Yurick <sarahyurick@gmail.com> Signed-off-by: Sarah Yurick <53962159+sarahyurick@users.noreply.github.com>
No description provided.