-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.mdc
More file actions
81 lines (68 loc) · 2.37 KB
/
Copy pathREADME.mdc
File metadata and controls
81 lines (68 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
description:
globs:
alwaysApply: true
---
# @attach: agent
# @description: Core project documentation and general coding practices. Always loaded for context.
# Cursor User Rules
These rules, effective as of May 2, 2025, guide editing and managing code across any programming language or framework to ensure high-quality, consistent development practices.
## Quick Reference
- For frontend development: @frontend-rules.mdc
- For backend development: @backend-rules.mdc
- For development workflow: @workflow-rules.mdc
- For detailed checklists: @checklists.mdc
## Core Principles
1. **Small, Focused Changes**
- Make targeted changes to single files/features
- Get approval for multi-file changes
- Document scope and rationale
2. **Clean Code**
- Write self-documenting code
- Create single-purpose functions
- Follow consistent naming conventions
3. **Code Organization**
- Follow standard class/module structure
- Alphabetize functions and constants
- Use clear section comments
- See @backend/class-structure.mdc for details
4. **Error Handling**
- Log errors with context
- Provide user-friendly messages
- Document recovery procedures
- See @backend/error-handling.mdc for specifics
## Development Workflow
- Check git status before changes
- List modified files before commits
- Follow commit message format: `[Verb] [Brief description]`
- Never commit sensitive data
- Run tests before committing
- See @workflow/git-commits.mdc for details
## Quality Assurance
- Write and maintain tests
- Document public APIs
- Keep documentation current
- Follow security best practices
- See @workflow/testing.mdc and @workflow/documentation.mdc
## Security & Performance
- Use environment variables
- Validate all user input
- Optimize database queries
- Profile before optimization
- See @backend/security.mdc and @backend/performance.mdc
## Code Review
- Request reviews for significant changes
- Document complex decisions
- Address review comments promptly
- Keep PRs focused
- See @workflow/code-review.mdc for guidelines
## System Commands
- Always get approval before execution
- Document command purpose
- Never auto-execute commands
- See @workflow/system-commands.mdc for details
## Additional Guidelines
- Include purpose comments in code
- Ask for clarification when unsure
- Check existing code/configurations
- See @checklists/development.mdc for more