✨ First attempt at adding rules and skills#360
Conversation
Signed-off-by: Juan Manuel Leflet Estrada <jleflete@redhat.com>
📝 WalkthroughWalkthroughThis pull request introduces comprehensive documentation for integrating Cursor rules and skills into the repository. It adds format specifications for rule and test YAML files, workflow guides for creating rules and running tests, reorganizes directory structure guidance in CONTRIBUTING.md, and includes a design plan document outlining the overall integration strategy. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
docs/CURSOR_RULES_AND_SKILLS_PLAN.md (1)
1-5: Clarify the document's status since the plan is being implemented in this PR.The document states "No rules or skills are created by this plan; it is a design and scoping note for when we implement them" (line 3), but this same PR is actually implementing all the described rules and skills (adding
.cursor/rules/*.mdcand.cursor/skills/*.mdfiles). This creates potential confusion for future readers about whether this is a historical planning document or current guidance.💡 Suggested clarification
Consider adding a note to clarify the implementation status:
# Plan: Cursor Rules and Skills for Konveyor Rulesets -This document outlines what would be done to add **Cursor rules** (reference context) and **Cursor skills** (task workflows) to this repository. No rules or skills are created by this plan; it is a design and scoping note for when we implement them. +This document outlines the design for adding **Cursor rules** (reference context) and **Cursor skills** (task workflows) to this repository. + +**Status:** This plan has been implemented as of PR `#360`. The actual rules and skills are located in `.cursor/rules/` and `.cursor/skills/`.Alternatively, convert future tense descriptions throughout the document to present tense to reflect that it's implemented.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/CURSOR_RULES_AND_SKILLS_PLAN.md` around lines 1 - 5, Update the status sentence that currently reads "No rules or skills are created by this plan; it is a design and scoping note for when we implement them" to reflect that the plan has been implemented in this PR—either replace it with a short note like "This plan has been implemented in this PR; corresponding rules and skills were added under .cursor/rules and .cursor/skills" or change the document's verbs from future to present tense throughout so the doc reads as current guidance; ensure the new text clearly states implementation and points to the added artifacts..cursor/rules/rule-format-and-conventions.mdc (1)
17-17: Consider removing or updating this note since CONTRIBUTING.md is being updated in this PR.Line 17 states that CONTRIBUTING.md "still mentions
default/generated", but CONTRIBUTING.md is being updated in this same PR (lines 39-62) to reflect thestable/andpreview/structure. This note will be outdated as soon as the PR merges and may cause confusion.📝 Suggested update
Either remove the note entirely, or rephrase it to acknowledge the alignment:
- - **Note:** CONTRIBUTING.md still mentions `default/generated`; the repo uses **`stable/`** and **`preview/`** — follow the current layout. + - Directory structure is documented in CONTRIBUTING.md under `stable/` and `preview/`.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.cursor/rules/rule-format-and-conventions.mdc at line 17, Remove or update the note in rule-format-and-conventions.mdc that claims CONTRIBUTING.md "still mentions `default/generated`" because the same PR updates CONTRIBUTING.md to use `stable/` and `preview/`; either delete that note or rephrase it to say CONTRIBUTING.md in this PR has been updated to the current `stable/` and `preview/` layout (reference the note text in rule-format-and-conventions.mdc and the CONTRIBUTING.md changes in this PR).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.cursor/rules/rule-format-and-conventions.mdc:
- Line 17: Remove or update the note in rule-format-and-conventions.mdc that
claims CONTRIBUTING.md "still mentions `default/generated`" because the same PR
updates CONTRIBUTING.md to use `stable/` and `preview/`; either delete that note
or rephrase it to say CONTRIBUTING.md in this PR has been updated to the current
`stable/` and `preview/` layout (reference the note text in
rule-format-and-conventions.mdc and the CONTRIBUTING.md changes in this PR).
In `@docs/CURSOR_RULES_AND_SKILLS_PLAN.md`:
- Around line 1-5: Update the status sentence that currently reads "No rules or
skills are created by this plan; it is a design and scoping note for when we
implement them" to reflect that the plan has been implemented in this PR—either
replace it with a short note like "This plan has been implemented in this PR;
corresponding rules and skills were added under .cursor/rules and
.cursor/skills" or change the document's verbs from future to present tense
throughout so the doc reads as current guidance; ensure the new text clearly
states implementation and points to the added artifacts.
ℹ️ Review info
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
.cursor/rules/rule-format-and-conventions.mdc.cursor/rules/test-format-and-conventions.mdc.cursor/skills/add-or-update-tests.md.cursor/skills/create-new-rule.md.cursor/skills/run-rule-tests.mdCONTRIBUTING.mddocs/CURSOR_RULES_AND_SKILLS_PLAN.md
Adding rules and skills to improve context. Ideally this should aid with AI rule creation.
Summary by CodeRabbit