Back to Prompts
generation

Cursor User Rules Template

Template for creating global Cursor user rules that apply across all projects

Prompt Template

## Personal Coding Standards
- Always use TypeScript when possible with strict mode enabled
- Prefer single quotes for strings in JavaScript/TypeScript
- Use 2-space indentation consistently
- Maximum line length of 100 characters
- Prefer const over let, avoid var entirely

## Code Quality Practices
- Write JSDoc comments for all exported functions
- Include error handling in all async operations
- Use descriptive variable names over explanatory comments
- Prefer early returns to reduce nesting

## React Preferences
- Prefer functional components with hooks
- Use React.memo for performance optimization when needed
- Custom hooks should start with 'use' prefix
- Keep components under 100 lines

## Tool Preferences
- Use Prettier for code formatting
- Prefer Tailwind CSS for styling when available
- Use Zod or similar for runtime schema validation
- ESLint with recommended rules

Tags

cursorrulesconfigurationuser-rules

Skill Level

beginner