react-rules
Installation
SKILL.md
Cursor Rules for Saitre Language App
Core Principles
- Small Files: No component, hook, or service file should exceed 300 lines. If it does, break it down.
- Single Responsibility: Each component, hook, and service should do ONE thing well.
- Separation of Concerns: Business logic in services/hooks, UI in components, utilities in utils.
- Documentation: Always explain "why", not just "what". Use JSDoc for all exported functions and components.
Component Guidelines
Component Size
- Maximum 300 lines per component file
- If a component exceeds 200 lines, consider breaking it into smaller sub-components
- Each sub-component should be 50-150 lines