|
| 1 | +--- FILE: .cursor/rules/tech-stack.mdc --- |
| 2 | +--- |
| 3 | +description: Application core tech stack and framework guidance |
| 4 | +globs: ["**/*"] |
| 5 | +alwaysApply: true |
| 6 | +--- |
| 7 | + |
| 8 | +# Tech Stack: {{stackSelection}} |
| 9 | + |
| 10 | +- **Language**: {{language}} |
| 11 | +- **Framework**: {{stackSelection}} |
| 12 | +- **Tooling**: {{tooling}} |
| 13 | + |
| 14 | +## Core Guidance |
| 15 | +{{stackGuidance}} |
| 16 | + |
| 17 | +--- FILE: .cursor/rules/naming.mdc --- |
| 18 | +--- |
| 19 | +description: Naming conventions for variables, files, and components |
| 20 | +globs: ["**/*.{ts,tsx,js,jsx,py,go,rs}"] |
| 21 | +alwaysApply: false |
| 22 | +--- |
| 23 | + |
| 24 | +# Naming Conventions |
| 25 | + |
| 26 | +- **Variables & Functions**: {{variableNaming}} |
| 27 | +- **Files & Modules**: {{fileNaming}} |
| 28 | +- **Components & Types**: {{componentNaming}} |
| 29 | +- **Exports**: {{exports}} |
| 30 | + |
| 31 | +--- FILE: .cursor/rules/testing.mdc --- |
| 32 | +--- |
| 33 | +description: Testing strategy and quality assurance |
| 34 | +globs: ["**/*.test.{ts,tsx,js,jsx}", "**/*_test.go", "**/test_*.py", "**/__tests__/**/*"] |
| 35 | +alwaysApply: false |
| 36 | +--- |
| 37 | + |
| 38 | +# Testing Strategy |
| 39 | + |
| 40 | +- **Unit Testing**: {{testingUT}} |
| 41 | +- **E2E Testing**: {{testingE2E}} |
| 42 | + |
| 43 | +## Requirements |
| 44 | +- Use descriptive test names. |
| 45 | +- Cover both success and failure cases. |
| 46 | +- Place tests in appropriate directories based on project structure. |
| 47 | + |
| 48 | +--- FILE: .cursor/rules/security.mdc --- |
| 49 | +--- |
| 50 | +description: Security, validation, and logging rules |
| 51 | +globs: ["**/*"] |
| 52 | +alwaysApply: false |
| 53 | +--- |
| 54 | + |
| 55 | +# Security & Quality |
| 56 | + |
| 57 | +- **Auth & Secrets**: {{auth}} |
| 58 | +- **Validation**: {{validation}} |
| 59 | +- **Logging**: {{logging}} |
| 60 | + |
| 61 | +## Rules |
| 62 | +- Never commit secrets to version control. |
| 63 | +- Validate all external data inputs. |
| 64 | +- Use structured logging; avoid logging sensitive information. |
| 65 | + |
| 66 | +--- FILE: .cursor/rules/collaboration.mdc --- |
| 67 | +--- |
| 68 | +description: Commit messages and PR conventions |
| 69 | +globs: [".git/**/*", "**/*"] |
| 70 | +alwaysApply: false |
| 71 | +--- |
| 72 | + |
| 73 | +# Collaboration |
| 74 | + |
| 75 | +- **Commit Style**: {{commitStyle}} |
| 76 | +- **PR Rules**: {{prRules}} |
| 77 | +- **Collaboration Style**: {{collaboration}} |
| 78 | + |
| 79 | +Follow project-specific conventions for small, focused changes. |
0 commit comments