mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 23:04:59 +08:00
rename to deprecated
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
---
|
||||
description: Specifies general guidelines for the AI assistant, including project context, technology stack, and development workflow. This rule sets the overall tone and approach for the AI's contributions.
|
||||
globs: **/*
|
||||
---
|
||||
- |-
|
||||
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.
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
---
|
||||
description: Instructs to always refer to AI.MD for detailed project-specific guidelines and up-to-date practices. This rule ensures consistent adherence to project standards.
|
||||
globs: **/*
|
||||
---
|
||||
- |-
|
||||
Always refer to AI.MD for detailed project-specific guidelines and up-to-date practices. Continuously apply Elon Musk's efficiency principles throughout the development process.
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
---
|
||||
description: Specifies best practices, including following RESTful API design principles, implementing responsive design, using Zod for data validation, and regularly updating dependencies. This rule promotes modern and robust development practices.
|
||||
globs: **/*
|
||||
---
|
||||
- |-
|
||||
10. Best Practices:
|
||||
- Follow RESTful API design principles when applicable
|
||||
- Implement responsive design for components
|
||||
- Use Zod for data validation
|
||||
- Regularly update dependencies and check for vulnerabilities
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
description: Specifies code quality standards, including prioritizing readability and maintainability, implementing comprehensive error handling, and using TypeScript for type safety. This rule promotes clean, reliable, and maintainable code.
|
||||
globs: **/*
|
||||
---
|
||||
- |-
|
||||
6. Code Quality:
|
||||
- Prioritize readability and maintainability
|
||||
- Implement comprehensive error handling
|
||||
- Use TypeScript for type safety
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
---
|
||||
description: Emphasizes continuous improvement by suggesting process improvements and looking for opportunities to simplify and optimize code and workflows. This rule promotes a culture of ongoing refinement.
|
||||
globs: **/*
|
||||
---
|
||||
- |-
|
||||
11. Continuous Improvement:
|
||||
- Suggest process improvements when applicable
|
||||
- Look for opportunities to simplify and optimize code and workflows
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
---
|
||||
description: Specifies design and user experience guidelines, including dark mode compatibility, responsive design, performance optimization, modern UI, and accessibility. This rule promotes a user-friendly and visually appealing application.
|
||||
globs: **/*
|
||||
---
|
||||
- |-
|
||||
13. Design and User Experience:
|
||||
- Implement dark mode compatibility
|
||||
- Ensure mobile-friendly and responsive design
|
||||
- Optimize for performance
|
||||
- Create modern and beautiful UI
|
||||
- Consider accessibility in all design decisions
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
---
|
||||
description: Details the development workflow, including questioning and refining requirements, breaking down tasks, writing tests, implementing code, refactoring, self-review, and ensuring CI passes. This rule provides a structured approach to development tasks.
|
||||
globs: **/*
|
||||
---
|
||||
- |-
|
||||
9. Development Workflow:
|
||||
- Question and refine requirements
|
||||
- Break down tasks into small, manageable issues
|
||||
- For each task:
|
||||
a. Write failing tests
|
||||
b. Implement minimum code to pass tests
|
||||
c. Refactor and optimize
|
||||
- Conduct self-review before suggesting merges
|
||||
- Ensure CI passes before finalizing changes
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
description: Defines documentation standards, including writing clear comments, using JSDoc, and keeping README.md, AI.MD, and CHANGELOG.md updated. This rule ensures comprehensive and up-to-date documentation.
|
||||
globs: **/*
|
||||
---
|
||||
- |-
|
||||
7. Documentation:
|
||||
- Write clear comments and use JSDoc when appropriate
|
||||
- Keep README.md and AI.MD updated
|
||||
- Maintain CHANGELOG.md for significant changes
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
---
|
||||
description: Implements Elon Musk's algorithm for efficiency to streamline development processes. This rule emphasizes critical questioning, simplification, optimization, acceleration, and automation.
|
||||
globs: **/*
|
||||
---
|
||||
- |-
|
||||
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
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
description: Specifies file management guidelines, including including full file paths as comments, updating project structure in AI.MD, and maintaining package.json. This rule ensures organized and well-documented project files.
|
||||
globs: **/*
|
||||
---
|
||||
- |-
|
||||
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
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
---
|
||||
description: Enforces the use of full file paths when referencing, editing, or creating files in the project. This rule ensures consistency and accuracy in file operations across the entire project.
|
||||
globs: **/*
|
||||
---
|
||||
- |-
|
||||
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.
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
---
|
||||
description: Defines the technology stack used in the Stojanovic-One project, including frontend, backend, database, UI styling, deployment, and authentication. This rule provides a clear understanding of the project's technical foundation.
|
||||
globs: **/*
|
||||
---
|
||||
- |-
|
||||
1. Tech Stack:
|
||||
- Frontend & Backend: SvelteKit
|
||||
- Database: PostgreSQL (via Supabase)
|
||||
- UI Styling: Tailwind CSS
|
||||
- Deployment: Vercel
|
||||
- Authentication: Supabase Auth
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
description: Enforces Test-Driven Development (TDD) practices, including writing failing tests first, implementing minimal code to pass tests, and refactoring while maintaining passing tests. This rule promotes robust and reliable code.
|
||||
globs: **/*
|
||||
---
|
||||
- |-
|
||||
3. Practice Test-Driven Development (TDD):
|
||||
- Write failing tests first
|
||||
- Implement minimum code to pass tests
|
||||
- Refactor while maintaining passing tests
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
---
|
||||
description: Defines testing guidelines, including using Vitest for unit and integration tests and aiming for high test coverage. This rule emphasizes the importance of thorough testing for code quality.
|
||||
globs: **/*
|
||||
---
|
||||
- |-
|
||||
5. Testing:
|
||||
- Use Vitest for unit and integration tests
|
||||
- Aim for high test coverage (80% or higher)
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
description: Specifies guidelines for the AI assistant to provide accurate, thoughtful answers, admit when it doesn't know something, and be concise while ensuring clarity. This rule promotes trustworthy and helpful AI responses.
|
||||
globs: **/*
|
||||
---
|
||||
- |-
|
||||
8. Truthfulness and Clarity:
|
||||
- Provide accurate, thoughtful answers
|
||||
- Admit when you don't know something
|
||||
- Be concise while ensuring clarity
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
description: Specifies guidelines for Windows compatibility, including providing PowerShell commands and avoiding Unix-specific commands. This rule ensures cross-platform compatibility for Windows users.
|
||||
globs: **/*
|
||||
---
|
||||
- |-
|
||||
12. Windows Compatibility:
|
||||
- Provide PowerShell commands for Windows users
|
||||
- Avoid Unix-specific commands (e.g., use `Remove-Item` instead of `rm`)
|
||||
- Use cross-platform Node.js commands when possible
|
||||
Reference in New Issue
Block a user