A centralized repository containing development rules and guidelines for consistent coding practices across projects. This repository is designed to be used as a git submodule in any development project.
This repository contains a collection of Cursor rules that provide guidance for:
- Angular Development - Best practices, patterns, and conventions for Angular applications
- TypeScript Development - TypeScript coding standards and guidelines
- Dart Development - Dart/Flutter development practices and conventions
- Task Processing - Guidelines for processing and managing development tasks
- Product Management - Product development workflows and practices
angular-developer.mdc- Comprehensive Angular development guidelines including component patterns, service architecture, and best practicestypescript-developer.mdc- TypeScript coding standards, type safety practices, and modern JavaScript/TypeScript patternsdart-developer.mdc- Dart and Flutter development conventions, widget patterns, and state management practices
product-manager.mdc- Product development workflows, user story creation, and project management practicesdata-layer-analyst.mdc- Extract from the PRD the data entities involved on the productsoftware-architect.mdc- Creates Software Architecutre documents using the PRD and the Data Layer Analysisgenerate-task-list.mdc- Standards for generating and structuring task lists from requirementsprocess-task-list.mdc- Guidelines for processing and organizing development tasks and requirements
-
Initialize the submodule in your project:
git submodule add https://github.com/santosflores/cursor_rules.git .cursor
-
Initialize and update the submodule:
git submodule update --init --recursive
-
Configure Cursor to use the rules:
- The rules will be automatically available in your
.cursor/rules/directory - Cursor will load these rules when working in your project
- The rules will be automatically available in your
-
Update the submodule to the latest version:
git submodule update --remote
-
Commit the updated submodule reference:
git add .cursor/rules git commit -m "Update cursor rules submodule"
When cloning a project that uses this repository as a submodule:
git clone --recursive <repository-url>Or if already cloned:
git submodule update --init --recursiveEach rule file (.mdc) contains:
- Purpose and scope of the rule
- Specific guidelines and best practices
- Code examples and patterns
- Common pitfalls to avoid
- Integration notes for different project types
To add or modify rules:
- Create or edit rule files in
.cursor/rules/ - Follow the existing naming convention:
kebab-case.mdc - Update this README to document new rules
- Commit and push changes
- Update the submodule in projects that use this repository
- Add this repository as a submodule
- Configure your IDE/editor to recognize the rules
- Reference specific rules in your project documentation
- Add the submodule to your existing project
- Review and adapt rules to match your project's specific needs
- Update team documentation to reference these centralized rules
- Regular Updates: Keep rules updated with latest best practices
- Version Tagging: Use git tags for stable rule versions
- Backward Compatibility: Maintain compatibility with existing projects
- Documentation: Keep this README updated with new rules and changes