feat: Add cursor rules and configuration files (#39981)

## Description
Introduced a new directory for cursor-specific rules and behaviors,
including commit message guidelines and workspace rules for derived
files and Cypress tests. This enhances the consistency and clarity of
our development practices.


Fixes #`Issue Number`  
_or_  
Fixes `Issue URL`
> [!WARNING]  
> _If no issue exists, please create an issue first, and check with the
maintainers if the issue is valid._

## Automation

/ok-to-test tags=""

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!CAUTION]  
> If you modify the content in this section, you are likely to disrupt
the CI result for your PR.

<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Documentation**
- Expanded project guidelines to clarify best practices for team
communications, workspace organization, and testing procedures—enhancing
internal coordination and overall product quality.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Rahul Barwal 2025-03-31 14:50:55 +05:30 committed by GitHub
parent a07f04857c
commit a25f5f9f15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 69 additions and 0 deletions

27
.cursor/README.md Normal file
View File

@ -0,0 +1,27 @@
# Cursor Rules
This directory contains configuration for cursor-specific rules and behaviors.
## Commit Message Rules
- Messages must be concise and single-line
- Must start with a verb (e.g., adds, removes, updates)
- For significant changes:
```
Heading
Detailed description
```
## Workspace Rules
### Derived Files
- Use `/*** */` for comments instead of `//`
### Cypress Tests
- Run command: `yarn cypress run --browser chrome --headless --spec {fileName}`
- Execute from: `app/client` directory
- File paths should be relative to `app/client`

42
.cursor/rules.json Normal file
View File

@ -0,0 +1,42 @@
{
"commitRules": {
"style": {
"concise": true,
"singleLine": true,
"format": {
"prefix": "verb",
"allowedPrefixes": [
"adds",
"removes",
"updates",
"fixes",
"refactors",
"implements",
"improves"
],
"bigChanges": {
"format": "heading + description",
"separator": "\n\n"
}
}
}
},
"workspaceRules": {
"derivedFiles": {
"commentStyle": {
"forbidden": "//",
"required": "/*** */"
}
},
"cypressTests": {
"runCommand": {
"directory": "app/client",
"command": "yarn cypress run --browser chrome --headless --spec {fileName}",
"filePathFormat": {
"input": "app/client/cypress/e2e/...",
"usage": "cypress/e2e/..."
}
}
}
}
}