OCM-00000 | chore: add cursor rules#1087
OCM-00000 | chore: add cursor rules#1087amandahla wants to merge 1 commit intoterraform-redhat:mainfrom
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@amandahla: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
@amandahla thanks for coming up with this one, I already had this planned, but now that you have picked it up, could you please take a look: https://github.com/openshift/hypershift/tree/main/.claude I think here we could address files for Claude, with the init file and the others, cursor, gemini and the other examples I gave here, I mainly like the 100 go mistakes, also, please create an epic for this, since I think we should do this for all the 4 repos we maitain (CLI,TF,HCP module, Classic module) |
Hi, thanks for sharing these resources, they look great. |
|
@amandahla most of the files I mentioned are pretty standard and would just take a good read and copying and pasting them into our repo here, I think this PR can include all of the AI rules necessary for this, because these are simple files to read and review, we can include all of them and make this PR an example for other repos. I agree with you on the epic creation, please create one, and add 4 tasks, each one related to their repos next release, so we can better track this, after you would just change the jira ticket of this PR and commit. |
PR Summary
This PR adds 3 files containing rules for Go and Terraform Provider development.
The Go file is based on Effective Go, Code Reviews and the project CONTRIBUTE.md file
The Terraform ones are based on the Terraform documentation available at https://github.com/hashicorp/web-unified-docs
I cloned the repo and used Claude for creating rules based on the content.
Detailed Description of the Issue
Create a standard for PR reviews.
Related Issues and PRs
#Type of Change
Previous Behavior
Behavior After This Change
How to Test (Step-by-Step)
Using Cursor, you can test with a prompt like
Preconditions
Test Steps
Expected Results
Proof of the Fix
Breaking Changes
Breaking Change Details / Migration Plan
Developer Verification Checklist
[JIRA-TICKET] | [TYPE]: <MESSAGE>.make testpasses.make fmtpasses.make buildpasses.