Instruction file imported from gokulkrishh/grep.chat (
.cursor/rules/git.mdc). Copyright stays with the author.
Use conventional commit format for clear and consistent commit messages.
Format
<type>: <description>
Common Types
feat: New Features
feat: add user authentication
feat: implement dark mode toggle
feat: add payment processing
fix: Bug Fixes
fix: sidebar click issue
fix: login form validation
fix: memory leak in component
chore: Maintenance
chore: upgrade packages
chore: update dependencies
chore: configure build settings
refactor: Code Restructuring
refactor: sidebar for application
refactor: user validation logic
refactor: database queries
docs: Documentation
docs: update README
docs: add API documentation
docs: fix installation guide
style: Code Formatting
style: fix indentation
style: resolve linting errors
style: format with prettier
test: Testing
test: add user login tests
test: fix failing unit tests
test: add integration tests
Examples
feat: add shopping cart functionality
fix: resolve checkout button not working
chore: update React to version 18
refactor: extract reusable components
docs: add component usage examples
style: fix TypeScript linting warnings
test: add form validation tests
Rules
- Use present tense ("add" not "added")
- Keep descriptions under 50 characters
- Start with lowercase after colon
- No period at the end
