Project rules structure for Cursor AI. Visit our landing page for a detailed guide.
- Create the rules directory structure:
mkdir -p .cursor/rules/
- Add the required files:
.cursor/rules/
├── overview.mdc # Project overview and architecture
├── tech-stack.mdc # Technologies and dependencies
├── design-rules.mdc # UI/UX and styling standards
├── areas.mdc # Features and components
└── development-guidelines.mdc # Code standards
- Configure file-specific rules using globs:
---
description: React component guidelines
globs:
- src/components/**/*.tsx
- src/components/**/*.jsx
---
## Component Rules
- Use functional components
- Follow project naming conventions
- Implement proper prop types
Check the examples/
directory for complete rule setups:
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-rules
) - Commit your changes (
git commit -m 'Add some amazing rules'
) - Push to the branch (
git push origin feature/amazing-rules
) - Open a Pull Request
MIT