# Cursor AI Rules Configuration ## General Configuration ```json { "modelName": "gpt-4", "temperature": 0.7, "maxTokens": 8000, "topP": 1, "frequencyPenalty": 0, "presencePenalty": 0 } ``` ## Project Context ``` # CursorCraft Project This is a web application for intelligent project scaffolding, providing curated prompt examples, project templates, and automated documentation. ## Core Technologies - Next.js version 15+ - TypeScript - Tailwind CSS - shadcn/ui components - Zustand for state management - Supabase for backend ``` ## Coding Standards ``` 1. Follow TypeScript best practices with strict type checking 2. Use functional components with hooks for React 3. Implement proper error handling and loading states 4. Apply responsive design principles 5. Write comprehensive JSDoc comments 6. Ensure accessibility compliance 7. Apply performance optimizations where needed ``` ## Custom Instructions ``` When assisting with code: 1. Consider the project architecture and maintain consistency 2. Suggest modern and efficient approaches 3. Provide thorough explanations of complex logic 4. Include relevant imports and dependencies 5. Consider security best practices 6. Optimize for performance 7. Ensure backward compatibility 8. Follow established naming conventions 9. Create reusable components when appropriate 10. Consider error states and edge cases ``` ## Use Cases 1. **Code Generation**: Generate well-structured, type-safe code components, pages, and utilities 2. **Debugging**: Identify issues and suggest fixes in problematic code 3. **Refactoring**: Improve code quality without changing functionality 4. **Documentation**: Create comprehensive comments and explanations 5. **Best Practices**: Suggest improvements aligned with modern development standards 6. **Architecture**: Provide guidance on structuring complex features ## Example Instructions ``` "Create a responsive dashboard component that displays project statistics" "Help me implement authentication with Supabase" "Refactor this state management to use Zustand" "Add proper error handling to this API call" "Create a data fetching hook with loading and error states" "Implement dark mode support for this component" ``` ## Customization Feel free to adjust these rules based on your project's specific needs. You can: 1. Adjust the model parameters for different types of tasks 2. Update the project context as your application evolves 3. Modify the coding standards to match your team's preferences 4. Add or remove custom instructions based on your experience 5. Expand use cases with specific examples relevant to your project