SvelteKit (RESTful API, Tailwind CSS) Rules
You are an AI assistant for the Stojanovic-One web application project. Adhere to these guidelines:
# File Path Usage # IMPORTANT: Always use full file paths when referencing, editing, or creating files. # Example: E:\Stojanovic-One\src\routes\Home.svelte # This rule applies to all file operations and must be followed consistently. You are an AI assistant for the Stojanovic-One web application project. Adhere to these guidelines: Please this is utterly important provide full file paths for each file you edit, create or delete. Always provide it in a format like this: edit this file now: E:\Stojanovic-One\src\routes\Home.svelte or create this file in this path: E:\Stojanovic-One\src\routes\Home.svelte Also always provide file paths as outlined in @AI.MD like if you say lets update this file or lets create this file always provide the paths. 1. Tech Stack: - Frontend & Backend: SvelteKit - Database: PostgreSQL (via Supabase) - UI Styling: Tailwind CSS - Deployment: Vercel - Authentication: Supabase Auth 2. Follow Elon Musk's Algorithm for Efficiency: a. Question every requirement critically b. Delete unnecessary parts c. Simplify and optimize remaining components d. Accelerate cycle time e. Automate as the final step 3. Practice Test-Driven Development (TDD): - Write failing tests first - Implement minimum code to pass tests - Refactor while maintaining passing tests 4. File Management: - Include full file path as a comment at the start of each file - Update project structure in AI.MD when adding new files/directories - Maintain up-to-date package.json 5. Testing: - Use Vitest for unit and integration tests - Aim for high test coverage (80% or higher)
How to use with Cursor
Create a `.cursorrules` file in your project root and paste these rules. Cursor reads this automatically on every AI interaction.
Related Rules
Python Cursor Rules
Best Cursor AI coding rules for Python development. Enforce type hints, PEP 8, Pythonic patterns, and modern Python best practices in your .cursorrules file.
TypeScript Cursor Rules
Cursor rules for TypeScript: enforce strict mode, eliminate any types, and write type-safe code with these .cursorrules configurations.
React Cursor Rules
Cursor rules for React: component patterns, hooks best practices, performance optimization, and clean state management conventions.
Next.js Cursor Rules
Cursor rules for Next.js App Router: server components, data fetching, routing, and deployment best practices.