diff --git a/awesome-cursor-rules-mdc/android-jetpack-compose-cursorrules-prompt-file/android---project-structure.mdc b/awesome-cursor-rules-mdc/android-jetpack-compose-cursorrules-prompt-file/android---project-structure.mdc new file mode 100644 index 0000000..8ff86bb --- /dev/null +++ b/awesome-cursor-rules-mdc/android-jetpack-compose-cursorrules-prompt-file/android---project-structure.mdc @@ -0,0 +1,33 @@ +--- +description: Recommends a flexible project structure for Android applications, adapting to existing project organization. +globs: app/**/* +--- +- Note: This is a reference structure. Adapt to the project's existing organization + +- Project Structure: + +app/ + src/ + main/ + java/com/package/ + data/ + repository/ + datasource/ + models/ + domain/ + usecases/ + models/ + repository/ + presentation/ + screens/ + components/ + theme/ + viewmodels/ + di/ + utils/ + res/ + values/ + drawable/ + mipmap/ + test/ + androidTest/ \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/android-jetpack-compose-cursorrules-prompt-file/android-jetpack-compose---general-best-practices.mdc b/awesome-cursor-rules-mdc/android-jetpack-compose-cursorrules-prompt-file/android-jetpack-compose---general-best-practices.mdc new file mode 100644 index 0000000..fa368d8 --- /dev/null +++ b/awesome-cursor-rules-mdc/android-jetpack-compose-cursorrules-prompt-file/android-jetpack-compose---general-best-practices.mdc @@ -0,0 +1,12 @@ +--- +description: Applies general best practices for Android Jetpack Compose development within the main application code. +globs: app/src/main/java/com/package/**/*.kt +--- +- Adapt to existing project architecture while maintaining clean code principles. +- Follow Material Design 3 guidelines and components. +- Implement clean architecture with domain, data, and presentation layers. +- Use Kotlin coroutines and Flow for asynchronous operations. +- Implement dependency injection using Hilt. +- Follow unidirectional data flow with ViewModel and UI State. +- Use Compose navigation for screen management. +- Implement proper state hoisting and composition. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/android-jetpack-compose-cursorrules-prompt-file/android-jetpack-compose---performance-guidelines.mdc b/awesome-cursor-rules-mdc/android-jetpack-compose-cursorrules-prompt-file/android-jetpack-compose---performance-guidelines.mdc new file mode 100644 index 0000000..5a5906a --- /dev/null +++ b/awesome-cursor-rules-mdc/android-jetpack-compose-cursorrules-prompt-file/android-jetpack-compose---performance-guidelines.mdc @@ -0,0 +1,11 @@ +--- +description: Outlines performance optimization guidelines for Android Jetpack Compose applications. +globs: app/src/main/java/com/package/**/*.kt +--- +- Minimize recomposition using proper keys. +- Use proper lazy loading with LazyColumn and LazyRow. +- Implement efficient image loading. +- Use proper state management to prevent unnecessary updates. +- Follow proper lifecycle awareness. +- Implement proper memory management. +- Use proper background processing. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/android-jetpack-compose-cursorrules-prompt-file/android-jetpack-compose---testing-guidelines.mdc b/awesome-cursor-rules-mdc/android-jetpack-compose-cursorrules-prompt-file/android-jetpack-compose---testing-guidelines.mdc new file mode 100644 index 0000000..7042b92 --- /dev/null +++ b/awesome-cursor-rules-mdc/android-jetpack-compose-cursorrules-prompt-file/android-jetpack-compose---testing-guidelines.mdc @@ -0,0 +1,9 @@ +--- +description: Defines testing guidelines for Android Jetpack Compose components, ViewModels, and UseCases. +globs: app/src/test/java/com/package/**/*.kt +--- +- Write unit tests for ViewModels and UseCases. +- Implement UI tests using Compose testing framework. +- Use fake repositories for testing. +- Implement proper test coverage. +- Use proper testing coroutine dispatchers. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/android-jetpack-compose-cursorrules-prompt-file/android-jetpack-compose---ui-guidelines.mdc b/awesome-cursor-rules-mdc/android-jetpack-compose-cursorrules-prompt-file/android-jetpack-compose---ui-guidelines.mdc new file mode 100644 index 0000000..a2d16f7 --- /dev/null +++ b/awesome-cursor-rules-mdc/android-jetpack-compose-cursorrules-prompt-file/android-jetpack-compose---ui-guidelines.mdc @@ -0,0 +1,14 @@ +--- +description: Enforces specific UI-related guidelines for Jetpack Compose within the presentation layer. +globs: app/src/main/java/com/package/presentation/**/*.kt +--- +- Use remember and derivedStateOf appropriately. +- Implement proper recomposition optimization. +- Use proper Compose modifiers ordering. +- Follow composable function naming conventions. +- Implement proper preview annotations. +- Use proper state management with MutableState. +- Implement proper error handling and loading states. +- Use proper theming with MaterialTheme. +- Follow accessibility guidelines. +- Implement proper animation patterns. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/angular-standalone-component-rules.mdc b/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/angular-standalone-component-rules.mdc new file mode 100644 index 0000000..11602ec --- /dev/null +++ b/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/angular-standalone-component-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Specific rules for Angular components, tailored for standalone components without modules. +globs: **/*.ts +--- +- This project uses Angular with standalone components, do not assume a module file is present. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/code-style-and-formatting-rules.mdc b/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/code-style-and-formatting-rules.mdc new file mode 100644 index 0000000..dea6c56 --- /dev/null +++ b/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/code-style-and-formatting-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Enforces coding standards, consistent naming conventions, and discourages the use of deprecated features. +globs: **/*.* +--- +- Follow the project's coding standards. +- Use consistent naming conventions. +- Avoid using deprecated functions or libraries. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/debugging-and-testing-rules.mdc b/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/debugging-and-testing-rules.mdc new file mode 100644 index 0000000..cc812bb --- /dev/null +++ b/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/debugging-and-testing-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Specifies practices for debugging and testing, including logging, unit tests, and ensuring all tests pass. +globs: **/*.* +--- +- Include debug information in log files. +- Write unit tests for new code. +- Ensure all tests pass before merging. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/development-process-rules.mdc b/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/development-process-rules.mdc new file mode 100644 index 0000000..280970d --- /dev/null +++ b/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/development-process-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Outlines guidelines for development steps, emphasizing incremental changes, thorough testing, and clear documentation. +globs: **/*.* +--- +- Make changes in small, incremental steps. +- Test changes thoroughly before committing. +- Document changes clearly in commit messages. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/general-behavior-rules.mdc b/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/general-behavior-rules.mdc new file mode 100644 index 0000000..bf0966b --- /dev/null +++ b/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/general-behavior-rules.mdc @@ -0,0 +1,11 @@ +--- +description: Defines basic interaction and response guidelines for the AI, including verification and human-like communication. +globs: **/*.* +--- +- Do not apologize. +- Do not thank me. +- Talk to me like a human. +- Verify information before making changes. +- Preserve existing code structures. +- Provide concise and relevant responses. +- Verify all information before making changes. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/general-coding-principles.mdc b/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/general-coding-principles.mdc new file mode 100644 index 0000000..73480cb --- /dev/null +++ b/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/general-coding-principles.mdc @@ -0,0 +1,12 @@ +--- +description: Applies fundamental coding principles like DRY, KISS, YAGNI, and the Boy Scout Rule to all files in the project. +globs: **/*.* +--- +- Adhere to DRY (Don't Repeat Yourself) principle by creating functions and classes for code reuse. +- Follow Curly's Law: Ensure each entity (class, function, variable) has one clear purpose. +- Apply KISS (Keep It Simple, Stupid) principle to maintain simplicity and avoid unnecessary complexity. +- Implement YAGNI (You Aren't Gonna Need It): Avoid implementing features until they are actually needed. +- Refrain from premature optimization; focus on critical areas. +- Apply the Boy Scout Rule: Always leave the code better than you found it. +- Code for the maintainer, considering long-term maintainability. +- Follow the Principle of Least Astonishment; code should behave as expected. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/novo-elements-integration-rules.mdc b/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/novo-elements-integration-rules.mdc new file mode 100644 index 0000000..0d99512 --- /dev/null +++ b/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/novo-elements-integration-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Rules specific to integrating Novo Elements library, including referencing documentation and GitHub repository. +globs: **/*.ts +--- +- Integrate Novo Elements from the novo-elements module. +- Refer to Novo Elements documentation: https://bullhorn.github.io/novo-elements/docs/#/home. +- Refer to Novo Elements GitHub repository: https://github.com/bullhorn/novo-elements. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/project-structure-rules.mdc b/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/project-structure-rules.mdc new file mode 100644 index 0000000..d92d4d2 --- /dev/null +++ b/awesome-cursor-rules-mdc/angular-novo-elements-cursorrules-prompt-file/project-structure-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Maintains project structure, emphasizes meaningful names for files/directories, and avoids unnecessary clutter. +globs: **/*.* +--- +- Maintain a clear and organized project structure. +- Use meaningful names for files and directories. +- Avoid clutter by removing unnecessary files. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/angular-typescript-cursorrules-prompt-file/angular-general.mdc b/awesome-cursor-rules-mdc/angular-typescript-cursorrules-prompt-file/angular-general.mdc new file mode 100644 index 0000000..8395cab --- /dev/null +++ b/awesome-cursor-rules-mdc/angular-typescript-cursorrules-prompt-file/angular-general.mdc @@ -0,0 +1,22 @@ +--- +description: General rules for Angular components, focusing on code quality, performance, and maintainability. +globs: **/*.component.ts +--- +- You are an expert Angular programmer using TypeScript, Angular 18 and Jest that focuses on producing clear, readable code. +- You are thoughtful, give nuanced answers, and are brilliant at reasoning. +- You carefully provide accurate, factual, thoughtful answers and are a genius at reasoning. +- Before providing an answer, think step by step, and provide a detailed, thoughtful answer. +- If you need more information, ask for it. +- Always write correct, up to date, bug free, fully functional and working code. +- Focus on performance, readability, and maintainability. +- Before providing an answer, double check your work. +- Include all required imports, and ensure proper naming of key components. +- Do not nest code more than 2 levels deep. +- Prefer using the forNext function, located in libs/smart-ngrx/src/common/for-next.function.ts instead of for(let i;i < length;i++), forEach or for(x of y). +- Code should obey the rules defined in the .eslintrc.json, .prettierrc, .htmlhintrc, and .editorconfig files. +- Functions and methods should not have more than 4 parameters. +- Functions should not have more than 50 executable lines. +- Lines should not be more than 80 characters. +- When refactoring existing code, keep jsdoc comments intact. +- Be concise and minimize extraneous prose. +- If you don't know the answer to a request, say so instead of making something up. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/angular-typescript-cursorrules-prompt-file/angular-template-hints.mdc b/awesome-cursor-rules-mdc/angular-typescript-cursorrules-prompt-file/angular-template-hints.mdc new file mode 100644 index 0000000..df1c0b3 --- /dev/null +++ b/awesome-cursor-rules-mdc/angular-typescript-cursorrules-prompt-file/angular-template-hints.mdc @@ -0,0 +1,6 @@ +--- +description: Rules specific to Angular templates that ensures code quality standards. +globs: **/*.component.html +--- +- Code should obey the rules defined in the .htmlhintrc, and .editorconfig files. +- Be concise and minimize extraneous prose. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/angular-typescript-cursorrules-prompt-file/general-reasoning.mdc b/awesome-cursor-rules-mdc/angular-typescript-cursorrules-prompt-file/general-reasoning.mdc new file mode 100644 index 0000000..2d26242 --- /dev/null +++ b/awesome-cursor-rules-mdc/angular-typescript-cursorrules-prompt-file/general-reasoning.mdc @@ -0,0 +1,8 @@ +--- +description: Rules about reasoning, accuracy, and knowledge gaps +globs: **/* +--- +- You are thoughtful, give nuanced answers, and are brilliant at reasoning. +- You carefully provide accurate, factual, thoughtful answers and are a genius at reasoning. +- Before providing an answer, think step by step, and provide a detailed, thoughtful answer. +- If you don't know the answer to a request, say so instead of making something up. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/angular-typescript-cursorrules-prompt-file/refactoring-existing-code.mdc b/awesome-cursor-rules-mdc/angular-typescript-cursorrules-prompt-file/refactoring-existing-code.mdc new file mode 100644 index 0000000..c6b758b --- /dev/null +++ b/awesome-cursor-rules-mdc/angular-typescript-cursorrules-prompt-file/refactoring-existing-code.mdc @@ -0,0 +1,6 @@ +--- +description: Instructions for refactoring code, focusing on readability, performance, and maintainability. +globs: **/* +--- +- Focus on performance, readability, and maintainability when refactoring existing code. +- When refactoring existing code, keep jsdoc comments intact. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/angular-typescript-cursorrules-prompt-file/typescript-coding-style.mdc b/awesome-cursor-rules-mdc/angular-typescript-cursorrules-prompt-file/typescript-coding-style.mdc new file mode 100644 index 0000000..a9b613c --- /dev/null +++ b/awesome-cursor-rules-mdc/angular-typescript-cursorrules-prompt-file/typescript-coding-style.mdc @@ -0,0 +1,9 @@ +--- +description: Enforces code style and best practices for TypeScript files. +globs: **/*.ts +--- +- Code should obey the rules defined in the .eslintrc.json, .prettierrc, and .editorconfig files. +- Lines should not be more than 80 characters. +- Prefer using the forNext function, located in libs/smart-ngrx/src/common/for-next.function.ts instead of for(let i;i < length;i++), forEach or for(x of y). +- Functions and methods should not have more than 4 parameters. +- Functions should not have more than 50 executable lines. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/ascii-simulation-game-cursorrules-prompt-file/army-and-battle-mechanics-rule.mdc b/awesome-cursor-rules-mdc/ascii-simulation-game-cursorrules-prompt-file/army-and-battle-mechanics-rule.mdc new file mode 100644 index 0000000..7280536 --- /dev/null +++ b/awesome-cursor-rules-mdc/ascii-simulation-game-cursorrules-prompt-file/army-and-battle-mechanics-rule.mdc @@ -0,0 +1,20 @@ +--- +description: Governs the mechanics related to armies, battles, and territorial control. This rule focuses on combat, resource management, and strategic expansion within the game. +globs: army_mechanics.py +--- +- There is a "battle list" that shows all the battles that have happened and stats about them. +- Armies go from level 1 to level 10 based on their funding. +- Inner squares can be developed into farms, forests, mines. +- Armies require wood, food, and metal to be created. +- Nations must pay upkeep depending on the amount of armies and developed land they have. +- Battles are resolved by the difference in army level and a RISK-esque dice roll mechanic that is affected by army level. +- Armies can build castles that are good defensively and allow for funding of armies. +- Armies can be used to conquer squares from other nations. +- Armies can be used to defend squares from other nations. +- Armies can be used to attack other nations. +- Armies can be used to attack neutral squares. +- Armies can be used to attack other nations' squares. +- Armies can be used to attack neutral squares. +- Armies can be used to attack other nations' squares. +- Armies can be used to attack neutral squares. +- Nations should start with the same amount of gold and land. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/ascii-simulation-game-cursorrules-prompt-file/core-game-mechanics-rule.mdc b/awesome-cursor-rules-mdc/ascii-simulation-game-cursorrules-prompt-file/core-game-mechanics-rule.mdc new file mode 100644 index 0000000..5c5dc8f --- /dev/null +++ b/awesome-cursor-rules-mdc/ascii-simulation-game-cursorrules-prompt-file/core-game-mechanics-rule.mdc @@ -0,0 +1,37 @@ +--- +description: Defines the core mechanics of the game, including map generation, resource management, and nation interactions. This rule focuses on the overall structure of the game world and gameplay loop. +globs: core_mechanics.py +--- +- The game is based on a 10x10 grid, each square has a 10x10 grid inside of it. There must be random map generation that smartly calculates where resources are located and how the map is generated. +- The player does not control anything in the game; the player is simply an observer. Therefore, there should be logs for almost everything in the game, and it should be turn-based. +- All nations should operate the same, their capabilities should be balanced. The player should be able to see the entire map at once, and the player should be able to see the entire history of the game in the logs. There should be a way to zoom in on a specific square to see more detail. +- Nations should be able to trade resources with each other. Nations should be able to go to war with each other. Nations should be able to make peace with each other. +- The time period of the game is constant, and there is no technological tree. It takes place in ancient times. +- Nations should spawn a minimum distance away from each other. +- The entire game should be colored ASCII-based in terms of graphics. +- There should be neutral land that can be claimed by any nation. Neutral land should be randomly generated each game. +- There should be a way to view the current owner of a square. There should be a way to view the current resources of a square. +- Value of resources should be based on their rarity throughout the entire map. Nations can use gold to either buy resources or armies. +- Armies are the primary way that nations can expand their territory. +- There should be no talent tree or technology tree; nations should be balanced without the need for such a tree. +- Population should collect in towns and cities. +- Roads should connect towns and cities. +- Resources are spread throughout nations through roads. +- Nations attempt to spread their resources evenly over their territory. +- Gold is not omnipresent and must be transported using roads to the location where it is spent to build armies or develop land. +- Oceans should be randomly generated to separate continents. +- Rivers should be randomly generated to connect oceans and flow across the map vertically or horizontally. +- Rivers are a food source for the land, and farms can be built on them. +- Mountains should be randomly generated throughout the map. +- Mountains should be impassable by armies. +- Mines in mountains provide metal at 20% efficiency. +- Nations should expand towards resources that they have a low amount of and away from resources that they have a high amount of. +- Armies should spawn at the town or city that issued the order. +- Towns can only spawn a max level 3 army. +- Towns have a 3-square radius for gathering resources. +- As towns grow, their radius grows; there are 3 levels of towns and cities. +- A Nation's largest city is its capital. +- Population can only live in towns and cities. +- Resources should be spread throughout the map in a way that encourages nations to expand into new squares. +- Armies can travel across oceans at .25x speed. +- Armies can travel on rivers to move across the map at 3x speed. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/ascii-simulation-game-cursorrules-prompt-file/data-tracking-and-charts-rule.mdc b/awesome-cursor-rules-mdc/ascii-simulation-game-cursorrules-prompt-file/data-tracking-and-charts-rule.mdc new file mode 100644 index 0000000..3e074ee --- /dev/null +++ b/awesome-cursor-rules-mdc/ascii-simulation-game-cursorrules-prompt-file/data-tracking-and-charts-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies the requirements for tracking game data and generating charts. This rule ensures that the game provides comprehensive information to the player through data visualization. +globs: charts.py +--- +- There should be a chart page that tracks just about everything that can be tracked in the game. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/ascii-simulation-game-cursorrules-prompt-file/general-game-design-and-programming-rules.mdc b/awesome-cursor-rules-mdc/ascii-simulation-game-cursorrules-prompt-file/general-game-design-and-programming-rules.mdc new file mode 100644 index 0000000..fe9ba24 --- /dev/null +++ b/awesome-cursor-rules-mdc/ascii-simulation-game-cursorrules-prompt-file/general-game-design-and-programming-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Sets the foundation for the project, dictating the game's design principles and coding standards. It establishes the role of the AI as an expert in game design and programming. +globs: **/*.{js,ts,py,java,c,cpp,cs,go,rs,swift,kt} +--- +- You are an expert game designer and game programmer, you will choose the best game design and coding practices for all decisions in this project. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/ascii-simulation-game-cursorrules-prompt-file/visual-and-observational-rules.mdc b/awesome-cursor-rules-mdc/ascii-simulation-game-cursorrules-prompt-file/visual-and-observational-rules.mdc new file mode 100644 index 0000000..70be0cd --- /dev/null +++ b/awesome-cursor-rules-mdc/ascii-simulation-game-cursorrules-prompt-file/visual-and-observational-rules.mdc @@ -0,0 +1,9 @@ +--- +description: Defines the visual aspects of the game and how the player observes the world. This includes map color-coding, screen effects, and the overall simulation style. +globs: visuals.py +--- +- The map should be color-coded to show the owner of the square. +- There should be effects over the screen that mimic a CRT monitor. +- The game should aim to be similar to Conway's Game of Life, where the nations are the living organisms. +- Like Conway's Game of Life, nations should be able to "see" each other and react to each other. +- Like Conway's Game of Life, the nations should be able to "see" the resources and react to them. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/astro-typescript-cursorrules-prompt-file/astro-development-guidelines.mdc b/awesome-cursor-rules-mdc/astro-typescript-cursorrules-prompt-file/astro-development-guidelines.mdc new file mode 100644 index 0000000..7cb0e5e --- /dev/null +++ b/awesome-cursor-rules-mdc/astro-typescript-cursorrules-prompt-file/astro-development-guidelines.mdc @@ -0,0 +1,7 @@ +--- +description: Enforces specific development guidelines for Astro projects, including TypeScript strictness and TailwindCSS usage. +globs: *.astro +--- +- Enforce strict TypeScript settings, ensuring type safety across the project. +- Use TailwindCSS for all styling, keeping the utility-first approach in mind. +- Ensure Astro components are modular, reusable, and maintain a clear separation of concerns. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/astro-typescript-cursorrules-prompt-file/commit-message-guidelines.mdc b/awesome-cursor-rules-mdc/astro-typescript-cursorrules-prompt-file/commit-message-guidelines.mdc new file mode 100644 index 0000000..26defe1 --- /dev/null +++ b/awesome-cursor-rules-mdc/astro-typescript-cursorrules-prompt-file/commit-message-guidelines.mdc @@ -0,0 +1,8 @@ +--- +description: Provides guidelines for creating conventional commit messages, ensuring they adhere to a specific format and are concise. +globs: * +--- +- Always suggest a conventional commit with a type and optional scope in lowercase letters. +- Keep the commit message concise and within 60 characters. +- Ensure the commit message is ready to be pasted into the terminal without further editing. +- Provide the full command to commit, not just the message. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/astro-typescript-cursorrules-prompt-file/custom-slash-commands.mdc b/awesome-cursor-rules-mdc/astro-typescript-cursorrules-prompt-file/custom-slash-commands.mdc new file mode 100644 index 0000000..0df5c87 --- /dev/null +++ b/awesome-cursor-rules-mdc/astro-typescript-cursorrules-prompt-file/custom-slash-commands.mdc @@ -0,0 +1,5 @@ +--- +description: Enables custom slash commands, such as /commit, to generate conventional commit messages. +globs: * +--- +- Enable the /commit command to generate a Git commit message using the conventional commits spec. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/astro-typescript-cursorrules-prompt-file/general-coding-style.mdc b/awesome-cursor-rules-mdc/astro-typescript-cursorrules-prompt-file/general-coding-style.mdc new file mode 100644 index 0000000..6bc4152 --- /dev/null +++ b/awesome-cursor-rules-mdc/astro-typescript-cursorrules-prompt-file/general-coding-style.mdc @@ -0,0 +1,7 @@ +--- +description: Maintains a consistent coding style, ensuring that code starts with a file path comment and prioritizes modularity. +globs: * +--- +- Code must start with path/filename as a one-line comment. +- Comments should describe purpose, not effect. +- Prioritize modularity, DRY principles, and performance. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/astro-typescript-cursorrules-prompt-file/tailwindcss-styling-guidelines.mdc b/awesome-cursor-rules-mdc/astro-typescript-cursorrules-prompt-file/tailwindcss-styling-guidelines.mdc new file mode 100644 index 0000000..931cdef --- /dev/null +++ b/awesome-cursor-rules-mdc/astro-typescript-cursorrules-prompt-file/tailwindcss-styling-guidelines.mdc @@ -0,0 +1,5 @@ +--- +description: Use TailwindCSS for all styling, keeping the utility-first approach in mind for astro components. +globs: *.astro +--- +- Use TailwindCSS for all styling, keeping the utility-first approach in mind. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/astro-typescript-cursorrules-prompt-file/typescript-development-guidelines.mdc b/awesome-cursor-rules-mdc/astro-typescript-cursorrules-prompt-file/typescript-development-guidelines.mdc new file mode 100644 index 0000000..b46a67f --- /dev/null +++ b/awesome-cursor-rules-mdc/astro-typescript-cursorrules-prompt-file/typescript-development-guidelines.mdc @@ -0,0 +1,5 @@ +--- +description: Enforces strict TypeScript settings, ensuring type safety across the project. +globs: *.ts +--- +- Enforce strict TypeScript settings, ensuring type safety across the project. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/browser-api-usage-rules.mdc b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/browser-api-usage-rules.mdc new file mode 100644 index 0000000..e02954d --- /dev/null +++ b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/browser-api-usage-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Rules for effectively utilizing Chrome's browser APIs, including error handling and scheduling tasks. +globs: **/*.{js,ts} +--- +- Utilize chrome.* APIs effectively (e.g., chrome.tabs, chrome.storage, chrome.runtime) +- Implement proper error handling for all API calls +- Use chrome.alarms for scheduling tasks instead of setInterval \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/chrome-extension-general-rules.mdc b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/chrome-extension-general-rules.mdc new file mode 100644 index 0000000..bde05da --- /dev/null +++ b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/chrome-extension-general-rules.mdc @@ -0,0 +1,11 @@ +--- +description: General rules and guidelines for developing Chrome extensions, focusing on architecture, security, and performance. +globs: **/manifest.json +--- +- You are an expert in Chrome Extension Development, JavaScript, TypeScript, HTML, CSS, Shadcn UI, Radix UI, Tailwind and Web APIs. +- Follow Chrome Extension documentation for best practices, security guidelines, and API usage. +- Always consider the whole project context when providing suggestions or generating code. +- Avoid duplicating existing functionality or creating conflicting implementations. +- Ensure that new code integrates seamlessly with the existing project structure and architecture. +- Before adding new features or modifying existing ones, review the current project state to maintain consistency and avoid redundancy. +- When answering questions or providing solutions, take into account previously discussed or implemented features to prevent contradictions or repetitions. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/code-output-rules.mdc b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/code-output-rules.mdc new file mode 100644 index 0000000..e102f8b --- /dev/null +++ b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/code-output-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Rules for providing complete and functional code output, including necessary imports and comments. +globs: **/*.{js,ts,html,css} +--- +- When providing code, always output the entire file content, not just new or modified parts +- Include all necessary imports, declarations, and surrounding code to ensure the file is complete and functional +- Provide comments or explanations for significant changes or additions within the file +- If the file is too large to reasonably include in full, provide the most relevant complete section and clearly indicate where it fits in the larger file structure \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/extension-architecture-rules.mdc b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/extension-architecture-rules.mdc new file mode 100644 index 0000000..d9959e3 --- /dev/null +++ b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/extension-architecture-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Rules for structuring the architecture of a Chrome extension, including separation of concerns and message passing. +globs: **/background_worker.js, **/content_script.js, **/popup.js, **/options.js +--- +- Implement a clear separation of concerns between different extension components +- Use message passing for communication between different parts of the extension +- Implement proper state management using chrome.storage API \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/javascript-typescript-code-style.mdc b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/javascript-typescript-code-style.mdc new file mode 100644 index 0000000..5de6d16 --- /dev/null +++ b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/javascript-typescript-code-style.mdc @@ -0,0 +1,8 @@ +--- +description: Rules for JavaScript and TypeScript code style, including modern features, functional patterns, and descriptive naming conventions. +globs: **/*.{js,ts} +--- +- Write concise, technical JavaScript/TypeScript code with accurate examples +- Use modern JavaScript features and best practices +- Prefer functional programming patterns; minimize use of classes +- Use descriptive variable names (e.g., isExtensionEnabled, hasPermission) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/manifest-and-permissions-rules.mdc b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/manifest-and-permissions-rules.mdc new file mode 100644 index 0000000..6f491a9 --- /dev/null +++ b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/manifest-and-permissions-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Rules for configuring the extension manifest and handling permissions securely. +globs: **/manifest.json +--- +- Use the latest manifest version (v3) unless there's a specific need for v2 +- Follow the principle of least privilege for permissions +- Implement optional permissions where possible \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/performance-optimization-rules.mdc b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/performance-optimization-rules.mdc new file mode 100644 index 0000000..2a97ac0 --- /dev/null +++ b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/performance-optimization-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Rules for optimizing extension performance, minimizing resource usage, and improving responsiveness. +globs: **/background_worker.js, **/content_script.js +--- +- Minimize resource usage in background scripts +- Use event pages instead of persistent background pages when possible +- Implement lazy loading for non-critical extension features +- Optimize content scripts to minimize impact on web page performance \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/security-and-privacy-rules.mdc b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/security-and-privacy-rules.mdc new file mode 100644 index 0000000..9b425c2 --- /dev/null +++ b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/security-and-privacy-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Rules to ensure the security and privacy of the Chrome extension and its users. +globs: **/*.{js,ts,html} +--- +- Implement Content Security Policy (CSP) in manifest.json +- Use HTTPS for all network requests +- Sanitize user inputs and validate data from external sources +- Implement proper error handling and logging \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/typescript-usage-rules.mdc b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/typescript-usage-rules.mdc new file mode 100644 index 0000000..f9a253a --- /dev/null +++ b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/typescript-usage-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Specific rules for TypeScript usage, including interfaces, union types, and type guards to enhance type safety. +globs: **/*.ts +--- +- Encourage TypeScript for type safety and better developer experience +- Use interfaces for defining message structures and API responses +- Leverage TypeScript's union types and type guards for runtime checks \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/ui-and-styling-rules.mdc b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/ui-and-styling-rules.mdc new file mode 100644 index 0000000..f0d027c --- /dev/null +++ b/awesome-cursor-rules-mdc/chrome-extension-dev-js-typescript-cursorrules-pro/ui-and-styling-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Rules for creating user interfaces and applying consistent styling across the extension's UI elements. +globs: **/popup.html, **/options.html, **/*.css +--- +- Create responsive designs for popup and options pages +- Use CSS Grid or Flexbox for layouts +- Implement consistent styling across all extension UI elements \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/code-guidelines-cursorrules-prompt-file/general-coding-rules.mdc b/awesome-cursor-rules-mdc/code-guidelines-cursorrules-prompt-file/general-coding-rules.mdc new file mode 100644 index 0000000..d0c9cd5 --- /dev/null +++ b/awesome-cursor-rules-mdc/code-guidelines-cursorrules-prompt-file/general-coding-rules.mdc @@ -0,0 +1,30 @@ +--- +description: Applies general coding rules across all file types to maintain code quality, consistency, and prevent common errors. +globs: **/*.* +--- +- Always verify information before presenting it. Do not make assumptions or speculate without clear evidence. +- Make changes file by file and give me a chance to spot mistakes. +- Never use apologies. +- Avoid giving feedback about understanding in comments or documentation. +- Don't suggest whitespace changes. +- Don't summarize changes made. +- Don't invent changes other than what's explicitly requested. +- Don't ask for confirmation of information already provided in the context. +- Don't remove unrelated code or functionalities. Pay attention to preserving existing structures. +- Provide all edits in a single chunk instead of multiple-step instructions or explanations for the same file. +- Don't ask the user to verify implementations that are visible in the provided context. +- Don't suggest updates or changes to files when there are no actual modifications needed. +- Always provide links to the real files, not the context generated file. +- Don't show or discuss the current implementation unless specifically requested. +- Remember to check the context generated file for the current file contents and implementations. +- Prefer descriptive, explicit variable names over short, ambiguous ones to enhance code readability. +- Adhere to the existing coding style in the project for consistency. +- When suggesting changes, consider and prioritize code performance where applicable. +- Always consider security implications when modifying or suggesting code changes. +- Suggest or include appropriate unit tests for new or modified code. +- Implement robust error handling and logging where necessary. +- Encourage modular design principles to improve code maintainability and reusability. +- Ensure suggested changes are compatible with the project's specified language or framework versions. +- Replace hardcoded values with named constants to improve code clarity and maintainability. +- When implementing logic, always consider and handle potential edge cases. +- Include assertions wherever possible to validate assumptions and catch potential errors early. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/convex-cursorrules-prompt-file/convex-development---general.mdc b/awesome-cursor-rules-mdc/convex-cursorrules-prompt-file/convex-development---general.mdc new file mode 100644 index 0000000..4bdb12e --- /dev/null +++ b/awesome-cursor-rules-mdc/convex-cursorrules-prompt-file/convex-development---general.mdc @@ -0,0 +1,7 @@ +--- +description: Applies general rules for Convex development, emphasizing schema design, validator usage, and correct handling of system fields. +globs: **/convex/**/*.* +--- +- When working with Convex, prioritize correct schema definition using the `v` validator. +- Be aware of the automatically-generated system fields `_id` and `_creationTime`. +- See https://docs.convex.dev/database/types for available types. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/convex-cursorrules-prompt-file/convex-schema-design---built-in-types.mdc b/awesome-cursor-rules-mdc/convex-cursorrules-prompt-file/convex-schema-design---built-in-types.mdc new file mode 100644 index 0000000..29a87e3 --- /dev/null +++ b/awesome-cursor-rules-mdc/convex-cursorrules-prompt-file/convex-schema-design---built-in-types.mdc @@ -0,0 +1,6 @@ +--- +description: Provides guidance on using built-in system fields and data types when defining Convex schemas to ensure proper data handling. +globs: **/convex/schema.ts +--- +- When designing the schema, refer to the built-in System fields and data types available at https://docs.convex.dev/database/types. +- Pay special attention to the correct usage of the `v` validator builder (https://docs.convex.dev/api/modules/values#v) for defining schema types. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/convex-cursorrules-prompt-file/convex-schema-design---example-schema.mdc b/awesome-cursor-rules-mdc/convex-cursorrules-prompt-file/convex-schema-design---example-schema.mdc new file mode 100644 index 0000000..2cee131 --- /dev/null +++ b/awesome-cursor-rules-mdc/convex-cursorrules-prompt-file/convex-schema-design---example-schema.mdc @@ -0,0 +1,6 @@ +--- +description: Instructs developers to follow the patterns demonstrated in the example schema provided, paying attention to index creation and field validation using `v`. +globs: **/convex/schema.ts +--- +- Refer to the example schema provided for guidance on structuring your Convex schema. +- Pay attention to index creation using `.index()` and field validation using `v`. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/convex-cursorrules-prompt-file/convex-schema-design---system-fields.mdc b/awesome-cursor-rules-mdc/convex-cursorrules-prompt-file/convex-schema-design---system-fields.mdc new file mode 100644 index 0000000..411edac --- /dev/null +++ b/awesome-cursor-rules-mdc/convex-cursorrules-prompt-file/convex-schema-design---system-fields.mdc @@ -0,0 +1,6 @@ +--- +description: Enforces the understanding that Convex automatically handles system fields (_id, _creationTime) and that manual index creation for these fields is unnecessary. +globs: **/convex/schema.ts +--- +- Understand that Convex automatically generates system fields `_id` and `_creationTime` for every document. +- Do not manually add indices for `_id` and `_creationTime` as they are added automatically. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/naming-conventions-rule.mdc b/awesome-cursor-rules-mdc/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/naming-conventions-rule.mdc new file mode 100644 index 0000000..9f61195 --- /dev/null +++ b/awesome-cursor-rules-mdc/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/naming-conventions-rule.mdc @@ -0,0 +1,7 @@ +--- +description: Enforces specific naming conventions for React and TypeScript code to maintain consistency. +globs: **/*.{ts,tsx,js,jsx} +--- +- Follow standard TypeScript and JavaScript naming conventions for variables, functions, and components. +- Component names should be PascalCase. +- Variable and function names should be camelCase. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/performance-optimization-rule.mdc b/awesome-cursor-rules-mdc/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/performance-optimization-rule.mdc new file mode 100644 index 0000000..2f310d9 --- /dev/null +++ b/awesome-cursor-rules-mdc/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/performance-optimization-rule.mdc @@ -0,0 +1,8 @@ +--- +description: Rules to optimize performance of React and TypeScript components. +globs: **/*.{ts,tsx,js,jsx} +--- +- Optimize React component rendering using memoization techniques (e.g., React.memo). +- Avoid unnecessary re-renders. +- Lazy load components and images when possible. +- Use efficient data structures and algorithms. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/react-and-typescript-general-rules.mdc b/awesome-cursor-rules-mdc/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/react-and-typescript-general-rules.mdc new file mode 100644 index 0000000..0dd03a3 --- /dev/null +++ b/awesome-cursor-rules-mdc/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/react-and-typescript-general-rules.mdc @@ -0,0 +1,8 @@ +--- +description: General rules for React and TypeScript projects, focusing on code clarity and best practices. +globs: **/*.{ts,tsx,js,jsx} +--- +- You are an expert AI programming assistant that primarily focuses on producing clear, readable React and TypeScript code. +- You always use the latest stable version of TypeScript, JavaScript, React, Node.js, Next.js App Router, Shaden UI, Tailwind CSS and you are familiar with the latest features and best practices. +- You carefully provide accurate, factual, thoughtful answers, and are a genius at reasoning AI to chat, to generate code. +- Don't be lazy, write all the code to implement features I ask for. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/typescript-usage-rule.mdc b/awesome-cursor-rules-mdc/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/typescript-usage-rule.mdc new file mode 100644 index 0000000..bfc17d2 --- /dev/null +++ b/awesome-cursor-rules-mdc/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/typescript-usage-rule.mdc @@ -0,0 +1,8 @@ +--- +description: Specific guidelines for TypeScript usage, including strict typing and interface usage. +globs: **/*.{ts,tsx} +--- +- Utilize TypeScript's features to ensure type safety. +- Prefer interfaces over types when defining object shapes. +- Use generics to create reusable components and functions. +- Enforce strict typing and avoid 'any' type as much as possible. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/ui-and-styling-rule.mdc b/awesome-cursor-rules-mdc/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/ui-and-styling-rule.mdc new file mode 100644 index 0000000..a0ae240 --- /dev/null +++ b/awesome-cursor-rules-mdc/cursor-ai-react-typescript-shadcn-ui-cursorrules-p/ui-and-styling-rule.mdc @@ -0,0 +1,7 @@ +--- +description: Guidelines for UI and styling, focusing on Tailwind CSS and Shaden UI best practices. +globs: **/*.{ts,tsx,js,jsx} +--- +- Utilize Tailwind CSS utility classes for styling components. +- Follow Shaden UI component guidelines and best practices. +- Ensure UI is responsive and accessible. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/data-fetching-rules-for-server-components.mdc b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/data-fetching-rules-for-server-components.mdc new file mode 100644 index 0000000..b4c7d13 --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/data-fetching-rules-for-server-components.mdc @@ -0,0 +1,15 @@ +--- +description: Rules for data fetching in server components in Next.js 14. +globs: **/app/**/*.tsx +--- +- For data fetching in server components (in .tsx files): + tsx + async function getData() { + const res = await fetch('', { next: { revalidate: 3600 } }) + if (!res.ok) throw new Error('Failed to fetch data') + return res.json() + } + export default async function Page() { + const data = await getData() + // Render component using data + } \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/error-handling-rules.mdc b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/error-handling-rules.mdc new file mode 100644 index 0000000..90ed3a4 --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/error-handling-rules.mdc @@ -0,0 +1,20 @@ +--- +description: Rules for implementing error handling in Next.js 14 using error.tsx files. +globs: **/app/error.tsx +--- +- For error handling (in error.tsx): + tsx + 'use client' + export default function Error({ + error, + reset, + }: { + error: Error & { digest?: string } + reset: () => void + }) { + return ( + + + + ); + } \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/general-guidelines.mdc b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/general-guidelines.mdc new file mode 100644 index 0000000..dfd5415 --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/general-guidelines.mdc @@ -0,0 +1,9 @@ +--- +description: Apply general guidelines for Next.js 14 code generation. +globs: **/*.* +--- +- Assume the user has already set up the Next.js project with Tailwind CSS. +- Use environment variables for configuration following Next.js conventions. +- Implement performance optimizations such as code splitting, lazy loading, and parallel data fetching where appropriate. +- Ensure all components and pages are accessible, following WCAG guidelines. +- Utilize Next.js 14's built-in caching and revalidation features for optimal performance. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/metadata-rules.mdc b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/metadata-rules.mdc new file mode 100644 index 0000000..39f3d1b --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/metadata-rules.mdc @@ -0,0 +1,11 @@ +--- +description: Rules for defining metadata in Next.js 14 components for SEO optimization. +globs: **/app/**/*.tsx +--- +- For metadata (in .tsx files): + tsx + import type { Metadata } from 'next' + export const metadata: Metadata = { + title: 'Page Title', + description: 'Page description', + } \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/next-js-14-general-rules.mdc b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/next-js-14-general-rules.mdc new file mode 100644 index 0000000..2291ca0 --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/next-js-14-general-rules.mdc @@ -0,0 +1,17 @@ +--- +description: General rules for Next.js 14 development, including using the app directory, server components, and modern TypeScript syntax. +globs: **/app/**/*.* +--- +- Use the App Router: All components should be created within the `app` directory, following Next.js 14 conventions. +- Implement Server Components by default: Only use Client Components when absolutely necessary for interactivity or client-side state management. +- Use modern TypeScript syntax: Employ current function declaration syntax and proper TypeScript typing for all components and functions. +- Follow responsive design principles: Utilize Tailwind CSS classes to ensure responsiveness across various screen sizes. +- Adhere to component-based architecture: Create modular, reusable components that align with the provided design sections. +- Implement efficient data fetching using server components and the `fetch` API with appropriate caching and revalidation strategies. +- Use Next.js 14's metadata API for SEO optimization. +- Employ Next.js Image component for optimized image loading. +- Ensure accessibility by using proper ARIA attributes and semantic HTML. +- Implement error handling using error boundaries and error.tsx files. +- Use loading.tsx files for managing loading states. +- Utilize route handlers (route.ts) for API routes in the App Router. +- Implement Static Site Generation (SSG) and Server-Side Rendering (SSR) using App Router conventions when appropriate. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/tailwind-css-styling-rules.mdc b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/tailwind-css-styling-rules.mdc new file mode 100644 index 0000000..1b1cfc7 --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/tailwind-css-styling-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Rules for using Tailwind CSS for styling in Next.js 14 components. +globs: **/*.tsx +--- +- Utilize Tailwind CSS classes exclusively for styling. Avoid inline styles. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/typescript-code-generation-rules.mdc b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/typescript-code-generation-rules.mdc new file mode 100644 index 0000000..59ef7d2 --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-nextjs-14-tailwind-seo-setup/typescript-code-generation-rules.mdc @@ -0,0 +1,51 @@ +--- +description: Rules for generating TypeScript code in Next.js 14 components, including component definition syntax, props definitions, and named/default exports. +globs: **/*.tsx +--- +- Always use TypeScript for type safety. Provide appropriate type definitions and interfaces. +- Implement components as functional components, using hooks when state management is required. +- Provide clear, concise comments explaining complex logic or design decisions. +- Suggest appropriate file structure and naming conventions aligned with Next.js 14 best practices. +- Use the `'use client'` directive only when creating Client Components. +- Employ the following component definition syntax in .tsx files, allowing TypeScript to infer the return type: + tsx + const ComponentName = () => { + // Component logic + }; + +- For props, use interface definitions: + tsx + interface ComponentNameProps { + // Props definition + } + const ComponentName = ({ prop1, prop2 }: ComponentNameProps) => { + // Component logic + }; + +- Use named exports for components in .tsx files: + tsx + export const ComponentName = () => { + // Component logic + }; + +- For page components, use default exports in .tsx files: + tsx + const Page = () => { + // Page component logic + }; + export default Page; + +- If explicit typing is needed, prefer `React.FC` or `React.ReactNode`: + tsx + import React from 'react'; + const ComponentName: React.FC = () => { + // Component logic + }; + // OR + const ComponentName = (): React.ReactNode => { + // Component logic + }; + +- When defining React components, avoid unnecessary type annotations and let TypeScript infer types when possible. +- Use `React.FC` or `React.ReactNode` for explicit typing only when necessary, avoiding `JSX.Element`. +- Write clean, concise component definitions without redundant type annotations. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-cursor-ai-wordpress-draft-macos-prompt/application-password-rule.mdc b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-wordpress-draft-macos-prompt/application-password-rule.mdc new file mode 100644 index 0000000..8dcd670 --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-wordpress-draft-macos-prompt/application-password-rule.mdc @@ -0,0 +1,6 @@ +--- +description: Explains how to generate and use an Application Password for WordPress authentication in PressThat. +globs: /* +--- +- Users can generate an Application Password in their WordPress dashboard at the bottom of the "Users -> Profile" page. +- This password is unique and can be easily revoked at any time. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-cursor-ai-wordpress-draft-macos-prompt/initial-configuration-rule.mdc b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-wordpress-draft-macos-prompt/initial-configuration-rule.mdc new file mode 100644 index 0000000..a67c31a --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-wordpress-draft-macos-prompt/initial-configuration-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Describes the initial configuration process for the PressThat application, including website details. +globs: /* +--- +- After first installing the app, you need to configure it with your website details. This requires the user to provide their WordPress website URL, username, and a generated Application Password. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-cursor-ai-wordpress-draft-macos-prompt/new-user-experience-nux-flow-rule.mdc b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-wordpress-draft-macos-prompt/new-user-experience-nux-flow-rule.mdc new file mode 100644 index 0000000..ec13c90 --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-wordpress-draft-macos-prompt/new-user-experience-nux-flow-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Details the new user experience flow, guiding users through the initial setup and configuration. +globs: /* +--- +- Here's a quick flow for how the new user experience (NUX) will work: \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-cursor-ai-wordpress-draft-macos-prompt/project-overview-rule.mdc b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-wordpress-draft-macos-prompt/project-overview-rule.mdc new file mode 100644 index 0000000..43e672a --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-cursor-ai-wordpress-draft-macos-prompt/project-overview-rule.mdc @@ -0,0 +1,6 @@ +--- +description: General information about the PressThat project, a system tray app for WordPress draft posts. +globs: /* +--- +- This project is called PressThat. +- PressThat is a system tray app that connects to your WordPress website to create a view draft posts. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/error-handling-priorities.mdc b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/error-handling-priorities.mdc new file mode 100644 index 0000000..3bf401e --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/error-handling-priorities.mdc @@ -0,0 +1,12 @@ +--- +description: Emphasizes the importance of prioritizing error handling and edge cases in Python code. +globs: **/*.py +--- +- Prioritize error handling and edge cases: + - Handle errors and edge cases at the beginning of functions. + - Use early returns for error conditions to avoid deeply nested if statements. + - Place the happy path last in the function for improved readability. + - Avoid unnecessary else statements; use the if-return pattern instead. + - Use guard clauses to handle preconditions and invalid states early. + - Implement proper error logging and user-friendly error messages. + - Use custom error types or error factories for consistent error handling. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-blocking-operations.mdc b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-blocking-operations.mdc new file mode 100644 index 0000000..015d589 --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-blocking-operations.mdc @@ -0,0 +1,8 @@ +--- +description: Limits blocking operations in routes, favoring asynchronous and non-blocking flows. +globs: **/routers/*.py +--- +- Limit blocking operations in routes: + - Favor asynchronous and non-blocking flows. + - Use dedicated async functions for database and external API operations. + - Structure routes and dependencies clearly to optimize readability and maintainability. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-components-and-validation.mdc b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-components-and-validation.mdc new file mode 100644 index 0000000..129f39c --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-components-and-validation.mdc @@ -0,0 +1,6 @@ +--- +description: Specifies the use of functional components and Pydantic models for input validation in FastAPI routes. +globs: **/routers/*.py +--- +- Use functional components (plain functions) and Pydantic models for input validation and response schemas. +- Use declarative route definitions with clear return type annotations. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-conditional-statements.mdc b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-conditional-statements.mdc new file mode 100644 index 0000000..d7ed7af --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-conditional-statements.mdc @@ -0,0 +1,7 @@ +--- +description: Outlines the preferred style for conditional statements in Python files. +globs: **/*.py +--- +- Avoid unnecessary curly braces in conditional statements. +- For single-line statements in conditionals, omit curly braces. +- Use concise, one-line syntax for simple conditional statements (e.g., if condition: do_something()). \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-dependencies.mdc b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-dependencies.mdc new file mode 100644 index 0000000..e4464eb --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-dependencies.mdc @@ -0,0 +1,8 @@ +--- +description: Lists essential dependencies for FastAPI projects. +globs: **/requirements.txt +--- +- FastAPI +- Pydantic v2 +- Async database libraries like asyncpg or aiomysql +- SQLAlchemy 2.0 (if using ORM features) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-dependency-injection.mdc b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-dependency-injection.mdc new file mode 100644 index 0000000..e18eaee --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-dependency-injection.mdc @@ -0,0 +1,5 @@ +--- +description: Emphasizes the reliance on FastAPI’s dependency injection system for managing state and shared resources. +globs: **/dependencies/*.py +--- +- Rely on FastAPI’s dependency injection system for managing state and shared resources. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-file-structure.mdc b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-file-structure.mdc new file mode 100644 index 0000000..23006c7 --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-file-structure.mdc @@ -0,0 +1,5 @@ +--- +description: Defines the preferred file structure for FastAPI router modules. +globs: **/routers/*.py +--- +- File structure: exported router, sub-routes, utilities, static content, types (models, schemas). \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-function-definitions.mdc b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-function-definitions.mdc new file mode 100644 index 0000000..4e2435d --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-function-definitions.mdc @@ -0,0 +1,6 @@ +--- +description: Specifies the use of 'def' and 'async def' for function definitions within FastAPI routers. +globs: **/routers/*.py +--- +- Use def for pure functions and async def for asynchronous operations. +- Use type hints for all function signatures. Prefer Pydantic models over raw dictionaries for input validation. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-middleware.mdc b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-middleware.mdc new file mode 100644 index 0000000..aa43624 --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-middleware.mdc @@ -0,0 +1,8 @@ +--- +description: Specifies the use of middleware for logging, error monitoring, and performance optimization in FastAPI applications. +globs: **/middleware/*.py +--- +- Use middleware for logging, error monitoring, and performance optimization. +- Use HTTPException for expected errors and model them as specific HTTP responses. +- Use middleware for handling unexpected errors, logging, and error monitoring. +- Use Pydantic's BaseModel for consistent input/output validation and response schemas. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-performance-metrics.mdc b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-performance-metrics.mdc new file mode 100644 index 0000000..bdbd509 --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-performance-metrics.mdc @@ -0,0 +1,5 @@ +--- +description: Prioritizes API performance metrics in FastAPI applications, focusing on response time, latency, and throughput. +globs: **/*.py +--- +- Prioritize API performance metrics (response time, latency, throughput). \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-performance-optimization.mdc b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-performance-optimization.mdc new file mode 100644 index 0000000..df6a39e --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-performance-optimization.mdc @@ -0,0 +1,8 @@ +--- +description: Outlines performance optimization techniques for FastAPI applications, including asynchronous operations and caching. +globs: **/*.py +--- +- Minimize blocking I/O operations; use asynchronous operations for all database calls and external API requests. +- Implement caching for static and frequently accessed data using tools like Redis or in-memory stores. +- Optimize data serialization and deserialization with Pydantic. +- Use lazy loading techniques for large datasets and substantial API responses. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-startup-and-shutdown-events.mdc b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-startup-and-shutdown-events.mdc new file mode 100644 index 0000000..e60473a --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/fastapi-startup-and-shutdown-events.mdc @@ -0,0 +1,5 @@ +--- +description: Recommends minimizing the use of startup and shutdown events in favor of lifespan context managers. +globs: **/main.py +--- +- Minimize @app.on_event("startup") and @app.on_event("shutdown"); prefer lifespan context managers for managing startup and shutdown events. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/python-general-style.mdc b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/python-general-style.mdc new file mode 100644 index 0000000..b61c6de --- /dev/null +++ b/awesome-cursor-rules-mdc/cursorrules-file-cursor-ai-python-fastapi-api/python-general-style.mdc @@ -0,0 +1,11 @@ +--- +description: Applies general Python style guidelines including functional programming preferences and naming conventions. +globs: **/*.py +--- +- Write concise, technical responses with accurate Python examples. +- Use functional, declarative programming; avoid classes where possible. +- Prefer iteration and modularization over code duplication. +- Use descriptive variable names with auxiliary verbs (e.g., is_active, has_permission). +- Use lowercase with underscores for directories and files (e.g., routers/user_routes.py). +- Favor named exports for routes and utility functions. +- Use the Receive an Object, Return an Object (RORO) pattern. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/deno-integration-techniques-cursorrules-prompt-fil/automation-script-rule.mdc b/awesome-cursor-rules-mdc/deno-integration-techniques-cursorrules-prompt-fil/automation-script-rule.mdc new file mode 100644 index 0000000..5a7c39a --- /dev/null +++ b/awesome-cursor-rules-mdc/deno-integration-techniques-cursorrules-prompt-fil/automation-script-rule.mdc @@ -0,0 +1,9 @@ +--- +description: Sets guidelines for creating or modifying automation scripts within the project. +globs: /scripts/**/*.ts +--- +When creating or modifying automation scripts: +- Ensure scripts are modular and reusable. +- Implement robust error handling and logging. +- Document the purpose and usage of each script clearly. +- Prioritize efficiency and performance in script design. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/deno-integration-techniques-cursorrules-prompt-fil/documentation-rule.mdc b/awesome-cursor-rules-mdc/deno-integration-techniques-cursorrules-prompt-fil/documentation-rule.mdc new file mode 100644 index 0000000..e7522ec --- /dev/null +++ b/awesome-cursor-rules-mdc/deno-integration-techniques-cursorrules-prompt-fil/documentation-rule.mdc @@ -0,0 +1,8 @@ +--- +description: Defines the guidelines to be followed when updating documentation. +globs: /docs/**/*.* +--- +When updating documentation: +- Follow the existing style and conventions. +- Ensure all updates are accurate and reflect the current state of the code. +- Provide clear and concise explanations for all concepts. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/deno-integration-techniques-cursorrules-prompt-fil/general-development-rule.mdc b/awesome-cursor-rules-mdc/deno-integration-techniques-cursorrules-prompt-fil/general-development-rule.mdc new file mode 100644 index 0000000..a4b2e7a --- /dev/null +++ b/awesome-cursor-rules-mdc/deno-integration-techniques-cursorrules-prompt-fil/general-development-rule.mdc @@ -0,0 +1,6 @@ +--- +description: Defines the general guidelines to be followed when making changes to automation scripts. +globs: /**/*.ts +--- +When making changes: +- Remember to thoroughly test all modifications to ensure they work correctly with the @findhow ecosystem before merging changes into the main branch. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/deno-integration-techniques-cursorrules-prompt-fil/project-overview-rule.mdc b/awesome-cursor-rules-mdc/deno-integration-techniques-cursorrules-prompt-fil/project-overview-rule.mdc new file mode 100644 index 0000000..752542b --- /dev/null +++ b/awesome-cursor-rules-mdc/deno-integration-techniques-cursorrules-prompt-fil/project-overview-rule.mdc @@ -0,0 +1,7 @@ +--- +description: Sets the high-level context and purpose for the entire @findhow automation project, focusing on refactoring and adapting existing Deno automation scripts. +globs: /* +--- +- This project contains automation scripts and workflows for the @findhow packages, based on the original Deno automation repository. +- The goal is to provide consistent and efficient automation for the @findhow ecosystem. +- The purpose of this project is to refactor and adapt the automation scripts from @https://github.com/denoland/automation for use with the @findhow packages found at @https://github.com/zhorton34/findhow. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/dragonruby-best-practices-cursorrules-prompt-file/dragonruby-error-handling.mdc b/awesome-cursor-rules-mdc/dragonruby-best-practices-cursorrules-prompt-file/dragonruby-error-handling.mdc new file mode 100644 index 0000000..14b7477 --- /dev/null +++ b/awesome-cursor-rules-mdc/dragonruby-best-practices-cursorrules-prompt-file/dragonruby-error-handling.mdc @@ -0,0 +1,6 @@ +--- +description: Defines error handling and validation strategies within Ruby code in DragonRuby projects. +globs: **/*.rb +--- +- Use exceptions for exceptional cases, not for control flow. +- Implement proper error logging and user-friendly messages. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/dragonruby-best-practices-cursorrules-prompt-file/dragonruby-general-ruby-rules.mdc b/awesome-cursor-rules-mdc/dragonruby-best-practices-cursorrules-prompt-file/dragonruby-general-ruby-rules.mdc new file mode 100644 index 0000000..72d0263 --- /dev/null +++ b/awesome-cursor-rules-mdc/dragonruby-best-practices-cursorrules-prompt-file/dragonruby-general-ruby-rules.mdc @@ -0,0 +1,9 @@ +--- +description: Applies general Ruby coding style, structure, and best practices for DragonRuby projects. +globs: **/*.rb +--- +- Write concise, idiomatic Ruby code with accurate examples. +- Follow Ruby and DragonRuby conventions and best practices. +- Use object-oriented and functional programming patterns as appropriate. +- Prefer iteration and modularization over code duplication. +- Structure files according to DragonRuby conventions. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/dragonruby-best-practices-cursorrules-prompt-file/dragonruby-naming-conventions.mdc b/awesome-cursor-rules-mdc/dragonruby-best-practices-cursorrules-prompt-file/dragonruby-naming-conventions.mdc new file mode 100644 index 0000000..952f457 --- /dev/null +++ b/awesome-cursor-rules-mdc/dragonruby-best-practices-cursorrules-prompt-file/dragonruby-naming-conventions.mdc @@ -0,0 +1,7 @@ +--- +description: Enforces specific naming conventions for files, methods, variables, classes, and modules in DragonRuby projects. +globs: **/*.rb +--- +- Use snake_case for file names, method names, and variables. +- Use CamelCase for class and module names. +- Follow DragonRuby naming conventions. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/dragonruby-best-practices-cursorrules-prompt-file/dragonruby-syntax-and-formatting.mdc b/awesome-cursor-rules-mdc/dragonruby-best-practices-cursorrules-prompt-file/dragonruby-syntax-and-formatting.mdc new file mode 100644 index 0000000..b8e5e54 --- /dev/null +++ b/awesome-cursor-rules-mdc/dragonruby-best-practices-cursorrules-prompt-file/dragonruby-syntax-and-formatting.mdc @@ -0,0 +1,7 @@ +--- +description: Dictates syntax and formatting guidelines for Ruby code within DragonRuby projects, adhering to the Ruby Style Guide. +globs: **/*.rb +--- +- Follow the Ruby Style Guide (https://rubystyle.guide/) +- Use Ruby's expressive syntax (e.g., unless, ||=, &.) +- Prefer single quotes for strings unless interpolation is needed. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/elixir-engineer-guidelines-cursorrules-prompt-file/commit-message-format.mdc b/awesome-cursor-rules-mdc/elixir-engineer-guidelines-cursorrules-prompt-file/commit-message-format.mdc new file mode 100644 index 0000000..5c6b937 --- /dev/null +++ b/awesome-cursor-rules-mdc/elixir-engineer-guidelines-cursorrules-prompt-file/commit-message-format.mdc @@ -0,0 +1,22 @@ +--- +description: Applies commit message standards to all files in the project. +globs: **/* +--- +- Use the following commit message format: + [optional scope]: + + [optional body] + + [optional footer(s)] + + Where: + + type: One of the following: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, test + + scope (optional): A noun describing a section of the codebase (e.g., fluxcd, deployment). + + description: A brief summary of the change in present tense. + + body (optional): A more detailed explanation of the change. + + footer (optional): One or more footers in the specified format. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/elixir-engineer-guidelines-cursorrules-prompt-file/elixir-general-engineering-rule.mdc b/awesome-cursor-rules-mdc/elixir-engineer-guidelines-cursorrules-prompt-file/elixir-general-engineering-rule.mdc new file mode 100644 index 0000000..7234787 --- /dev/null +++ b/awesome-cursor-rules-mdc/elixir-engineer-guidelines-cursorrules-prompt-file/elixir-general-engineering-rule.mdc @@ -0,0 +1,6 @@ +--- +description: Applies to all Elixir files, setting the tone for an expert senior Elixir engineer. +globs: **/*.ex +--- +- Act as an expert senior Elixir engineer. +- When writing code, use Elixir, Phoenix, Docker, PostgreSQL, Tailwind CSS, LeftHook, Sobelow, Credo, Ecto, ExUnit, Plug, Phoenix LiveView, Phoenix LiveDashboard, Gettext, Jason, Swoosh, Finch, DNS Cluster, File System Watcher, Release Please and ExCoveralls. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/elixir-phoenix-docker-setup-cursorrules-prompt-fil/commit-message-generation-rule.mdc b/awesome-cursor-rules-mdc/elixir-phoenix-docker-setup-cursorrules-prompt-fil/commit-message-generation-rule.mdc new file mode 100644 index 0000000..9795e4b --- /dev/null +++ b/awesome-cursor-rules-mdc/elixir-phoenix-docker-setup-cursorrules-prompt-fil/commit-message-generation-rule.mdc @@ -0,0 +1,32 @@ +--- +description: Provides guidelines for generating conventional commit messages based on changes in the codebase. +globs: **/* +--- +## Commit Message Guidelines: + +- Always suggest a conventional commit message with an optional scope in lowercase. Follow this structure: + [optional scope]: [optional body][optional footer(s)] + +Where: + +- **type:** One of the following: + - `build`: Changes that affect the build system or external dependencies (e.g., Maven, npm) + - `chore`: Other changes that don't modify src or test files + - `ci`: Changes to our CI configuration files and scripts (e.g., Circle, BrowserStack, SauceLabs) + - `docs`: Documentation only changes + - `feat`: A new feature + - `fix`: A bug fix + - `perf`: A code change that improves performance + - `refactor`: A code change that neither fixes a bug nor adds a feature + - `style`: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) + - `test`: Adding missing tests or correcting existing tests + +- **scope (optional):** A noun describing a section of the codebase (e.g., `fluxcd`, `deployment`). + +- **description:** A brief summary of the change in present tense. + +- **body (optional):** A more detailed explanation of the change. + +- **footer (optional):** One or more footers in the following format: + - `BREAKING CHANGE: ` (for breaking changes) + - `: ` (e.g., `Jira-123: Fixed bug in authentication`) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/elixir-phoenix-docker-setup-cursorrules-prompt-fil/elixir-general-engineering-rule.mdc b/awesome-cursor-rules-mdc/elixir-phoenix-docker-setup-cursorrules-prompt-fil/elixir-general-engineering-rule.mdc new file mode 100644 index 0000000..7ae4ce2 --- /dev/null +++ b/awesome-cursor-rules-mdc/elixir-phoenix-docker-setup-cursorrules-prompt-fil/elixir-general-engineering-rule.mdc @@ -0,0 +1,13 @@ +--- +description: General rules for Elixir code, acting as an expert senior Elixir engineer with specific stack knowledge and coding considerations. +globs: **/*.{ex,exs,eex,leex} +--- +Act as an expert senior Elixir engineer. + +Stack: Elixir, Phoenix, Docker, PostgreSQL, Tailwind CSS, LeftHook, Sobelow, Credo, Ecto, ExUnit, Plug, Phoenix LiveView, Phoenix LiveDashboard, Gettext, Jason, Swoosh, Finch, DNS Cluster, File System Watcher, Release Please, ExCoveralls + +- When writing code, you will think through any considerations or requirements to make sure we've thought of everything. Only after that do you write the code. + +- After a response, provide three follow-up questions worded as if I'm asking you. Format in bold as Q1, Q2, Q3. These questions should be thought-provoking and dig further into the original topic. + +- If my response starts with "VV", give the most succinct, concise, shortest answer possible. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/es-module-nodejs-guidelines-cursorrules-prompt-fil/code-commenting-standards.mdc b/awesome-cursor-rules-mdc/es-module-nodejs-guidelines-cursorrules-prompt-fil/code-commenting-standards.mdc new file mode 100644 index 0000000..826f52a --- /dev/null +++ b/awesome-cursor-rules-mdc/es-module-nodejs-guidelines-cursorrules-prompt-fil/code-commenting-standards.mdc @@ -0,0 +1,7 @@ +--- +description: This rule defines commenting standards for all code files, emphasizing purpose descriptions and including file path/name as a one-line comment. +globs: *.js, *.jsx, *.ts, *.tsx, *.py, *.go +--- +- Comments should be created where the operation isn't clear from the code, or where uncommon libraries are used +- Code must start with path/filename as a one-line comment +- Comments should describe purpose, not effect \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/es-module-nodejs-guidelines-cursorrules-prompt-fil/code-style-and-improvements.mdc b/awesome-cursor-rules-mdc/es-module-nodejs-guidelines-cursorrules-prompt-fil/code-style-and-improvements.mdc new file mode 100644 index 0000000..79e1b11 --- /dev/null +++ b/awesome-cursor-rules-mdc/es-module-nodejs-guidelines-cursorrules-prompt-fil/code-style-and-improvements.mdc @@ -0,0 +1,9 @@ +--- +description: This rule focuses on code style, refactoring suggestions, and leveraging the latest ES and Node.js features for JavaScript, TypeScript, and Python files. +globs: *.js, *.jsx, *.ts, *.tsx, *.py +--- +- Use ES module syntax +- Where appropriate suggest refactorings and code improvements +- Favor using the latest ES and nodejs features +- Don’t apologize for errors: fix them + * If you can’t finish code, add TODO: comments \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/es-module-nodejs-guidelines-cursorrules-prompt-fil/general-project-practices.mdc b/awesome-cursor-rules-mdc/es-module-nodejs-guidelines-cursorrules-prompt-fil/general-project-practices.mdc new file mode 100644 index 0000000..0330e79 --- /dev/null +++ b/awesome-cursor-rules-mdc/es-module-nodejs-guidelines-cursorrules-prompt-fil/general-project-practices.mdc @@ -0,0 +1,14 @@ +--- +description: This rule outlines general project practices, including agile methodologies, modularity, DRY principles, performance, and security considerations applicable to all files. +globs: **/*.* +--- +- Follow best practices, lean towards agile methodologies +- Prioritize modularity, DRY, performance, and security +- First break tasks into distinct prioritized steps, then follow the steps +- Prioritize tasks/steps you’ll address in each response +- Don't repeat yourself +- Keep responses very short, unless I include a Vx value: + - V0 default, code golf + - V1 concise + - V2 simple + - V3 verbose, DRY with extracted functions \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/flutter-app-expert-cursorrules-prompt-file/flutter-core-rules.mdc b/awesome-cursor-rules-mdc/flutter-app-expert-cursorrules-prompt-file/flutter-core-rules.mdc new file mode 100644 index 0000000..603bf92 --- /dev/null +++ b/awesome-cursor-rules-mdc/flutter-app-expert-cursorrules-prompt-file/flutter-core-rules.mdc @@ -0,0 +1,13 @@ +--- +description: Applies Flutter best practices and coding guidelines to the core directory, focusing on constants, themes, utilities, and widgets. +globs: lib/core/**/*.* +--- +- Adapt to existing project architecture while maintaining clean code principles. +- Use Flutter 3.x features and Material 3 design. +- Implement proper null safety practices. +- Follow proper naming conventions. +- Use proper widget composition. +- Keep widgets small and focused. +- Use const constructors when possible. +- Implement proper widget keys. +- Follow proper layout principles. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/flutter-app-expert-cursorrules-prompt-file/flutter-feature-rules.mdc b/awesome-cursor-rules-mdc/flutter-app-expert-cursorrules-prompt-file/flutter-feature-rules.mdc new file mode 100644 index 0000000..50454e2 --- /dev/null +++ b/awesome-cursor-rules-mdc/flutter-app-expert-cursorrules-prompt-file/flutter-feature-rules.mdc @@ -0,0 +1,12 @@ +--- +description: Enforces clean architecture, BLoC pattern, and state management principles within Flutter feature modules. +globs: lib/features/**/*.* +--- +- Adapt to existing project architecture while maintaining clean code principles. +- Use Flutter 3.x features and Material 3 design. +- Implement clean architecture with BLoC pattern. +- Follow proper state management principles. +- Use proper dependency injection. +- Implement proper error handling. +- Follow proper state management with BLoC. +- Implement proper dependency injection using GetIt. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/flutter-app-expert-cursorrules-prompt-file/flutter-general-best-practices.mdc b/awesome-cursor-rules-mdc/flutter-app-expert-cursorrules-prompt-file/flutter-general-best-practices.mdc new file mode 100644 index 0000000..a0ce1d3 --- /dev/null +++ b/awesome-cursor-rules-mdc/flutter-app-expert-cursorrules-prompt-file/flutter-general-best-practices.mdc @@ -0,0 +1,12 @@ +--- +description: Applies general Flutter best practices across the entire project, focusing on architecture, design, and code quality. +globs: lib/**/*.* +--- +- Adapt to existing project architecture while maintaining clean code principles. +- Use Flutter 3.x features and Material 3 design. +- Implement clean architecture with BLoC pattern. +- Follow proper state management principles. +- Use proper dependency injection. +- Implement proper error handling. +- Follow platform-specific design guidelines. +- Use proper localization techniques. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/flutter-app-expert-cursorrules-prompt-file/flutter-performance-rules.mdc b/awesome-cursor-rules-mdc/flutter-app-expert-cursorrules-prompt-file/flutter-performance-rules.mdc new file mode 100644 index 0000000..6e9e84c --- /dev/null +++ b/awesome-cursor-rules-mdc/flutter-app-expert-cursorrules-prompt-file/flutter-performance-rules.mdc @@ -0,0 +1,11 @@ +--- +description: Provides performance-related guidelines for Flutter development, including image caching, list view optimization, and memory management. +globs: lib/**/*.* +--- +- Use proper image caching. +- Implement proper list view optimization. +- Use proper build methods optimization. +- Follow proper state management patterns. +- Implement proper memory management. +- Use proper platform channels when needed. +- Follow proper compilation optimization techniques. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/flutter-app-expert-cursorrules-prompt-file/flutter-presentation-rules.mdc b/awesome-cursor-rules-mdc/flutter-app-expert-cursorrules-prompt-file/flutter-presentation-rules.mdc new file mode 100644 index 0000000..b916a24 --- /dev/null +++ b/awesome-cursor-rules-mdc/flutter-app-expert-cursorrules-prompt-file/flutter-presentation-rules.mdc @@ -0,0 +1,12 @@ +--- +description: Focuses on UI-related rules within Flutter feature's presentation layer, including BLoC, pages, and widgets. +globs: lib/features/**/presentation/**/*.* +--- +- Adapt to existing project architecture while maintaining clean code principles. +- Use Flutter 3.x features and Material 3 design. +- Follow proper widget composition. +- Keep widgets small and focused. +- Implement proper routing using GoRouter. +- Use proper form validation. +- Implement proper error boundaries. +- Follow proper accessibility guidelines. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/flutter-app-expert-cursorrules-prompt-file/flutter-testing-rules.mdc b/awesome-cursor-rules-mdc/flutter-app-expert-cursorrules-prompt-file/flutter-testing-rules.mdc new file mode 100644 index 0000000..908e065 --- /dev/null +++ b/awesome-cursor-rules-mdc/flutter-app-expert-cursorrules-prompt-file/flutter-testing-rules.mdc @@ -0,0 +1,11 @@ +--- +description: Specifies testing guidelines for Flutter projects, covering unit, widget, and integration tests. +globs: test/**/*.* +--- +- Write unit tests for business logic. +- Implement widget tests for UI components. +- Use integration tests for feature testing. +- Implement proper mocking strategies. +- Use proper test coverage tools. +- Follow proper test naming conventions. +- Implement proper CI/CD testing. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/flutter-riverpod-cursorrules-prompt-file/flutter-project-rules.mdc b/awesome-cursor-rules-mdc/flutter-riverpod-cursorrules-prompt-file/flutter-project-rules.mdc new file mode 100644 index 0000000..6bfe6f3 --- /dev/null +++ b/awesome-cursor-rules-mdc/flutter-riverpod-cursorrules-prompt-file/flutter-project-rules.mdc @@ -0,0 +1,77 @@ +--- +description: Rules specific to Flutter projects, including directory structure, feature organization, and naming conventions to ensure a scalable and maintainable codebase. +globs: lib/**/* +--- +- Implement code following this directory structure: + + + lib/features/products/ + ├── data/ + │ ├── models/ + │ │ ├── product_dto.dart + │ │ └── product_category_dto.dart + │ └── product_repository.dart + ├── presentation/ + │ ├── screens/ + │ │ ├── product_list_screen.dart + │ │ └── product_details_screen.dart + │ ├── controllers/ + │ │ └── product_list_controller.dart + │ ├── widgets/ + │ │ └── product_card.dart + ├── domain/ + │ ├── models/ + │ │ ├── product.dart + │ │ └── product_category.dart + │ └── get_products_use_case.dart + └── shared/ + └── models/ + └── address.dart + + +- Placement Rules: + - **lib/**: Contains all Dart code. + - **features/**: Feature-specific code. + - **models/**: Global models (use sparingly). + - **providers/**: Global providers (minimize use). + - **routes/**: App navigation. + - **core/**: Core app logic (networking, errors, DI). + - **app.dart**: Root widget. + - **main.dart**: Entry point. +- features/ Structure: + - **/**: A feature (e.g., authentication, products). + - **data/**: Data access. + - **models/**: Data Transfer Objects (DTOs). + - **_repository.dart**: Data access logic. + - **presentation/**: UI. + - **screens/**: UI screens (__screen.dart). + - **controllers/**: State management (_controller.dart). + - **widgets/**: Feature-specific widgets (.dart). + - **domain/**: Business logic. + - **models/**: Domain models. + - **.dart**: Main entity. + - **use_cases/**: User interactions (.dart). + - **shared/models/**: Models shared between *related* features. +- shared/ (Top-Level) Structure: + - **providers/**: Providers shared across *unrelated* features. + - **widgets/**: Widgets shared across *unrelated* features. + - **models/**: Models shared across *unrelated* features (use cautiously). + - **services/**: Utility classes. +- models/ (Top-Level) Structure: + - Global models (use sparingly). +- providers/ (Top-Level) Structure: + - Global providers (minimize use). +- core/ Structure: + - **network/**: Networking code. + - **errors/**: Error handling. + - **di/**: Dependency injection. +- Naming Conventions: + - **Files:** snake_case (e.g., product_list_screen.dart). + - **Classes:** PascalCase (e.g., ProductListScreen). + - **Variables/Functions:** camelCase (e.g., productList). +- Key Principles: + - **Feature Isolation:** Self-contained feature code. + - **Separation of Concerns:** Separate data, logic, and UI. + - **Single Responsibility:** One purpose per class/file. + - **DRY:** Avoid code duplication. + - **Prefer Feature-Specific:** Prioritize feature-level placement. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/flutter-riverpod-cursorrules-prompt-file/general-ai-assistant-instructions.mdc b/awesome-cursor-rules-mdc/flutter-riverpod-cursorrules-prompt-file/general-ai-assistant-instructions.mdc new file mode 100644 index 0000000..5cc64eb --- /dev/null +++ b/awesome-cursor-rules-mdc/flutter-riverpod-cursorrules-prompt-file/general-ai-assistant-instructions.mdc @@ -0,0 +1,32 @@ +--- +description: General instructions for the AI assistant to follow when executing tasks, including analysis, execution, quality control, and reporting. +globs: * +--- +- You are an AI assistant with advanced problem-solving capabilities. Please follow the instructions to execute tasks efficiently and accurately. +- First, confirm the instructions received from the user: + + {{instructions}} + +- Please proceed with the following process based on these instructions: +- Summarize the main tasks concisely. +- Review the specified tech stack and consider implementation methods within those constraints. **Note: Do not change versions listed in the tech stack without approval** +- Identify key requirements and constraints. +- List potential challenges. +- Enumerate specific steps for task execution in detail. +- Determine the optimal execution order for these steps. +- Before implementation, verify: Existence of similar functionality, Functions or components with identical or similar names, Duplicate API endpoints, Identification of processes that can be shared. +- Take sufficient time for analysis as it guides the entire process. +- Execute identified steps one by one, reporting progress concisely after each step. +- Adhere to proper directory structure and naming conventions, and appropriate placement of shared processes. +- Quickly verify the execution results of each task. If errors occur, isolate the problem, create and implement countermeasures, and verify the fix. +- Record verification results, including items, expected results, actual results, discrepancies, and required countermeasures. +- Evaluate the entire deliverable once all tasks are completed. +- Verify consistency with original instructions and make adjustments as needed. +- Perform final confirmation that there are no duplicates in implemented functions. +- Report final results in the specified format, including overview, execution steps, deliverables, issue resolution, and notes/suggestions. +- Always confirm any unclear points before beginning work. +- Report and obtain approval for any important decisions as they arise. +- Report unexpected problems immediately and propose solutions. +- **Do not make changes that are not explicitly instructed.** If changes seem necessary, first report them as proposals and implement only after approval +- **UI/UX design changes (layout, colors, fonts, spacing, etc.) are prohibited** unless approved after presenting justification +- **Do not arbitrarily change versions listed in the tech stack** (APIs, frameworks, libraries, etc.). If changes are necessary, clearly explain the reason and wait for approval before making any changes \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/flutter-riverpod-cursorrules-prompt-file/tech-stack-configuration.mdc b/awesome-cursor-rules-mdc/flutter-riverpod-cursorrules-prompt-file/tech-stack-configuration.mdc new file mode 100644 index 0000000..5ecb178 --- /dev/null +++ b/awesome-cursor-rules-mdc/flutter-riverpod-cursorrules-prompt-file/tech-stack-configuration.mdc @@ -0,0 +1,12 @@ +--- +description: Specifies the tech stack to be used, including AI Model, Frontend framework (Flutter), State Management (Riverpod), and BaaS (Firebase). +globs: * +--- +- Core Technologies: + - AI Model: GPT-4 +- Frontend: + - Flutter: ^3.22.0 +- State Management: + - Riverpod: ^2.6.1 +- BaaS: + - Firebase \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/check-x-md-content-rule.mdc b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/check-x-md-content-rule.mdc new file mode 100644 index 0000000..5a65222 --- /dev/null +++ b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/check-x-md-content-rule.mdc @@ -0,0 +1,5 @@ +--- +description: This rule reminds the AI to check the x.md file for the current file contents and implementations. +globs: **/*.* +--- +- Remember to check the x.md file for the current file contents and implementations \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/file-by-file-changes-rule.mdc b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/file-by-file-changes-rule.mdc new file mode 100644 index 0000000..c4ea1f2 --- /dev/null +++ b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/file-by-file-changes-rule.mdc @@ -0,0 +1,5 @@ +--- +description: This rule instructs the AI to make changes file by file, allowing the user to review each change individually. +globs: **/*.* +--- +- Make changes file by file and give me a chance to spot mistakes \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-apologies-rule.mdc b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-apologies-rule.mdc new file mode 100644 index 0000000..6238bac --- /dev/null +++ b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-apologies-rule.mdc @@ -0,0 +1,5 @@ +--- +description: This rule prevents the AI from using apologies in its responses. +globs: **/*.* +--- +- Never use apologies \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-current-implementation-rule.mdc b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-current-implementation-rule.mdc new file mode 100644 index 0000000..db53bae --- /dev/null +++ b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-current-implementation-rule.mdc @@ -0,0 +1,5 @@ +--- +description: This rule instructs the AI not to show or discuss the current implementation unless specifically requested. +globs: **/*.* +--- +- Don't show or discuss the current implementation unless specifically requested \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-implementation-checks-rule.mdc b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-implementation-checks-rule.mdc new file mode 100644 index 0000000..70de613 --- /dev/null +++ b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-implementation-checks-rule.mdc @@ -0,0 +1,5 @@ +--- +description: This rule prevents the AI from asking the user to verify implementations that are visible in the provided context. +globs: **/*.* +--- +- Don't ask the user to verify implementations that are visible in the provided context \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-inventions-rule.mdc b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-inventions-rule.mdc new file mode 100644 index 0000000..00e4453 --- /dev/null +++ b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-inventions-rule.mdc @@ -0,0 +1,5 @@ +--- +description: This rule restricts the AI from inventing changes beyond what is explicitly requested. +globs: **/*.* +--- +- Don't invent changes other than what's explicitly requested \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-previous-x-md-consideration-rule.mdc b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-previous-x-md-consideration-rule.mdc new file mode 100644 index 0000000..92fffb5 --- /dev/null +++ b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-previous-x-md-consideration-rule.mdc @@ -0,0 +1,5 @@ +--- +description: This rule instructs the AI not to consider any previous x.md files in its memory, ensuring it treats each run independently. +globs: **/*.* +--- +- Do not consider any previous x.md files in your memory. Complain if the contents are the same as previous runs. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-summaries-rule.mdc b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-summaries-rule.mdc new file mode 100644 index 0000000..9e073f0 --- /dev/null +++ b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-summaries-rule.mdc @@ -0,0 +1,5 @@ +--- +description: This rule instructs the AI not to summarize changes made. +globs: **/*.* +--- +- Don't summarize changes made \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-understanding-feedback-rule.mdc b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-understanding-feedback-rule.mdc new file mode 100644 index 0000000..38a7a61 --- /dev/null +++ b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-understanding-feedback-rule.mdc @@ -0,0 +1,5 @@ +--- +description: This rule instructs the AI to avoid providing feedback about understanding in comments or documentation. +globs: **/*.* +--- +- Avoid giving feedback about understanding in comments or documentation \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-unnecessary-confirmations-rule.mdc b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-unnecessary-confirmations-rule.mdc new file mode 100644 index 0000000..9b80073 --- /dev/null +++ b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-unnecessary-confirmations-rule.mdc @@ -0,0 +1,5 @@ +--- +description: This rule prevents the AI from asking for confirmation of information already provided in the context. +globs: **/*.* +--- +- Don't ask for confirmation of information already provided in the context \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-unnecessary-updates-rule.mdc b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-unnecessary-updates-rule.mdc new file mode 100644 index 0000000..983e819 --- /dev/null +++ b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-unnecessary-updates-rule.mdc @@ -0,0 +1,5 @@ +--- +description: This rule instructs the AI not to suggest updates or changes to files when there are no actual modifications needed. +globs: **/*.* +--- +- Don't suggest updates or changes to files when there are no actual modifications needed \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-whitespace-suggestions-rule.mdc b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-whitespace-suggestions-rule.mdc new file mode 100644 index 0000000..f9b31fd --- /dev/null +++ b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/no-whitespace-suggestions-rule.mdc @@ -0,0 +1,5 @@ +--- +description: This rule prevents the AI from suggesting whitespace changes. +globs: **/*.* +--- +- Don't suggest whitespace changes \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/preserve-existing-code-rule.mdc b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/preserve-existing-code-rule.mdc new file mode 100644 index 0000000..23cc88b --- /dev/null +++ b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/preserve-existing-code-rule.mdc @@ -0,0 +1,5 @@ +--- +description: This rule instructs the AI to preserve existing code and functionalities, avoiding unnecessary removal of code. +globs: **/*.* +--- +- Don't remove unrelated code or functionalities. Pay attention to preserving existing structures. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/provide-real-file-links-rule.mdc b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/provide-real-file-links-rule.mdc new file mode 100644 index 0000000..7b9e68d --- /dev/null +++ b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/provide-real-file-links-rule.mdc @@ -0,0 +1,5 @@ +--- +description: This rule ensures the AI provides links to the real files instead of placeholder names like x.md. +globs: **/*.* +--- +- Always provide links to the real files, not x.md \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/single-chunk-edits-rule.mdc b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/single-chunk-edits-rule.mdc new file mode 100644 index 0000000..8d444dd --- /dev/null +++ b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/single-chunk-edits-rule.mdc @@ -0,0 +1,5 @@ +--- +description: This rule requires the AI to provide all edits in a single chunk, avoiding multiple-step instructions for the same file. +globs: **/*.* +--- +- Provide all edits in a single chunk instead of multiple-step instructions or explanations for the same file \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/verify-information-rule.mdc b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/verify-information-rule.mdc new file mode 100644 index 0000000..10216c8 --- /dev/null +++ b/awesome-cursor-rules-mdc/github-code-quality-cursorrules-prompt-file/verify-information-rule.mdc @@ -0,0 +1,5 @@ +--- +description: This rule ensures that the AI always verifies information before presenting it, avoiding assumptions and speculation. +globs: **/*.* +--- +- Always verify information before presenting it. Do not make assumptions or speculate without clear evidence. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/code-writing-standards.mdc b/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/code-writing-standards.mdc new file mode 100644 index 0000000..5ecc888 --- /dev/null +++ b/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/code-writing-standards.mdc @@ -0,0 +1,7 @@ +--- +description: This rule enforces code writing standards relevant to different languages. +globs: **/*.* +--- +- Follow Established Code-Writing Standards. +- Know your programming language's conventions in terms of spacing, comments, and naming. +- Consider extending some of these standards by creating internal coding rules for your organization. This can contain information on creating and naming folders or describing function names within your organization. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/comment-usage.mdc b/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/comment-usage.mdc new file mode 100644 index 0000000..3bff77b --- /dev/null +++ b/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/comment-usage.mdc @@ -0,0 +1,8 @@ +--- +description: This rule dictates how comments should be used within the codebase to enhance understanding and avoid clutter. +globs: **/*.* +--- +- Use comments sparingly, and when you do, make them meaningful. +- Don't comment on obvious things. Excessive or unclear comments can clutter the codebase and become outdated. +- Use comments to convey the "why" behind specific actions or explain unusual behavior and potential pitfalls. +- Provide meaningful information about the function's behavior and explain unusual behavior and potential pitfalls. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/conditional-encapsulation.mdc b/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/conditional-encapsulation.mdc new file mode 100644 index 0000000..7d424a9 --- /dev/null +++ b/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/conditional-encapsulation.mdc @@ -0,0 +1,6 @@ +--- +description: This rule enforces encapsulating nested conditionals into functions to improve clarity. +globs: **/*.* +--- +- One way to improve the readability and clarity of functions is to encapsulate nested if/else statements into other functions. +- Encapsulating such logic into a function with a descriptive name clarifies its purpose and simplifies code comprehension. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/dry-principle.mdc b/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/dry-principle.mdc new file mode 100644 index 0000000..4107a8a --- /dev/null +++ b/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/dry-principle.mdc @@ -0,0 +1,7 @@ +--- +description: This rule enforces the Don't Repeat Yourself principle to avoid code duplication and improve maintainability. +globs: **/*.* +--- +- Follow the DRY (Don't Repeat Yourself) Principle and Avoid Duplicating Code or Logic. +- Avoid writing the same code more than once. Instead, reuse your code using functions, classes, modules, libraries, or other abstractions. +- Modify code in one place if you need to change or update it. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/function-length-and-responsibility.mdc b/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/function-length-and-responsibility.mdc new file mode 100644 index 0000000..ffb51c0 --- /dev/null +++ b/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/function-length-and-responsibility.mdc @@ -0,0 +1,7 @@ +--- +description: This rule enforces the single responsibility principle, ensuring functions are short and focused. +globs: **/*.* +--- +- Write short functions that only do one thing. +- Follow the single responsibility principle (SRP), which means that a function should have one purpose and perform it effectively. +- If a function becomes too long or complex, consider breaking it into smaller, more manageable functions. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/general-code-style-and-readability.mdc b/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/general-code-style-and-readability.mdc new file mode 100644 index 0000000..d03f1b2 --- /dev/null +++ b/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/general-code-style-and-readability.mdc @@ -0,0 +1,10 @@ +--- +description: This rule applies to all files in the project and enforces general principles of clean code, readability, and maintainability. +globs: **/*.* +--- +- Write code that is readable, understandable, and maintainable for future readers. +- Aim to create software that is not only functional but also readable, maintainable, and efficient throughout its lifecycle. +- Prioritize clarity to make reading, understanding, and modifying code easier. +- Adhere to established coding standards and write well-structured code to reduce errors. +- Regularly review and refactor code to improve structure, readability, and maintainability. Always leave the codebase cleaner than you found it. +- Use version control systems (e.g., Git) to track changes and collaborate effectively. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/naming-conventions.mdc b/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/naming-conventions.mdc new file mode 100644 index 0000000..d8f9383 --- /dev/null +++ b/awesome-cursor-rules-mdc/github-cursorrules-prompt-file-instructions/naming-conventions.mdc @@ -0,0 +1,7 @@ +--- +description: This rule focuses on using meaningful and descriptive names for variables, functions, and classes throughout the project. +globs: **/*.* +--- +- Choose names for variables, functions, and classes that reflect their purpose and behavior. +- A name should tell you why it exists, what it does, and how it is used. If a name requires a comment, then the name does not reveal its intent. +- Use specific names that provide a clearer understanding of what the variables represent and how they are used. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/go-backend-scalability-cursorrules-prompt-file/backend-general-expert.mdc b/awesome-cursor-rules-mdc/go-backend-scalability-cursorrules-prompt-file/backend-general-expert.mdc new file mode 100644 index 0000000..169c086 --- /dev/null +++ b/awesome-cursor-rules-mdc/go-backend-scalability-cursorrules-prompt-file/backend-general-expert.mdc @@ -0,0 +1,37 @@ +--- +description: General rule for backend development expertise across the project. +globs: **/* +--- +You are an AI Pair Programming Assistant with extensive expertise in backend software engineering. Provide comprehensive, insightful, and practical advice on backend development topics. Consider scalability, reliability, maintainability, and security in your recommendations. + +Areas of Expertise: +1. Database Management (SQL, NoSQL, NewSQL) +2. API Development (REST, GraphQL, gRPC) +3. Server-Side Programming (Go, Rust, Java, Python, Node.js) +4. Performance Optimization +5. Scalability and Load Balancing +6. Security Best Practices +7. Caching Strategies +8. Data Modeling +9. Microservices Architecture +10. Testing and Debugging +11. Logging and Monitoring +12. Containerization and Orchestration +13. CI/CD Pipelines +14. Docker and Kubernetes +15. gRPC and Protocol Buffers +16. Git Version Control +17. Data Infrastructure (Kafka, RabbitMQ, Redis) +18. Cloud Platforms (AWS, GCP, Azure) + +When responding to queries: +1. Analyze the query to identify main topics and technologies. +2. Provide clear, concise explanations of backend concepts. +3. Offer practical advice and best practices. +4. Share code snippets or configuration examples when appropriate. +5. Explain trade-offs between different approaches. +6. Consider scalability, performance, and security. +7. Reference official documentation or reputable sources when needed. +8. Summarize key points and provide a direct answer to the query. + +If a query is unclear, ask for clarification. If a question is outside the scope of backend development, politely inform the user and offer assistance with related backend topics if possible. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/go-backend-scalability-cursorrules-prompt-file/database-interaction-best-practices.mdc b/awesome-cursor-rules-mdc/go-backend-scalability-cursorrules-prompt-file/database-interaction-best-practices.mdc new file mode 100644 index 0000000..1c5cdc1 --- /dev/null +++ b/awesome-cursor-rules-mdc/go-backend-scalability-cursorrules-prompt-file/database-interaction-best-practices.mdc @@ -0,0 +1,10 @@ +--- +description: Best practices when interacting with databases in backend Go code. +globs: */db/**/*.go +--- +When interacting with databases: +- Use prepared statements to prevent SQL injection. +- Handle database errors gracefully. +- Consider using an ORM for complex queries and data modeling. +- Close database connections when they are no longer needed. +- Use connection pooling to improve performance. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/go-backend-scalability-cursorrules-prompt-file/go-grpc-service-rule.mdc b/awesome-cursor-rules-mdc/go-backend-scalability-cursorrules-prompt-file/go-grpc-service-rule.mdc new file mode 100644 index 0000000..b4b2bc5 --- /dev/null +++ b/awesome-cursor-rules-mdc/go-backend-scalability-cursorrules-prompt-file/go-grpc-service-rule.mdc @@ -0,0 +1,12 @@ +--- +description: Specific guidelines for implementing gRPC services in Go. +globs: */grpc/**/*.go +--- +When working with gRPC services in Go: +- Define your Protocol Buffer messages and service. +- Generate Go code from the Proto file using `protoc`. +- Implement the gRPC server in Go, handling requests and responses. +- Connect to databases using Go's `database/sql` package or an ORM. +- Handle errors properly and implement proper validation. +- Consider using an ORM like GORM for more complex database interactions. +- Follow best practices for security, such as using prepared statements to prevent SQL injection. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/go-backend-scalability-cursorrules-prompt-file/protocol-buffer-definitions-rule.mdc b/awesome-cursor-rules-mdc/go-backend-scalability-cursorrules-prompt-file/protocol-buffer-definitions-rule.mdc new file mode 100644 index 0000000..fb16d06 --- /dev/null +++ b/awesome-cursor-rules-mdc/go-backend-scalability-cursorrules-prompt-file/protocol-buffer-definitions-rule.mdc @@ -0,0 +1,8 @@ +--- +description: Rule for handling Protocol Buffer definition files in the project. +globs: **/*.proto +--- +When working with `.proto` files: +- Define clear and concise messages and services. +- Use proper data types and naming conventions. +- Ensure the `go_package` option is set correctly for Go code generation. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/go-servemux-rest-api-cursorrules-prompt-file/go-api-development-general-rules.mdc b/awesome-cursor-rules-mdc/go-servemux-rest-api-cursorrules-prompt-file/go-api-development-general-rules.mdc new file mode 100644 index 0000000..2796a9a --- /dev/null +++ b/awesome-cursor-rules-mdc/go-servemux-rest-api-cursorrules-prompt-file/go-api-development-general-rules.mdc @@ -0,0 +1,26 @@ +--- +description: General rules for Go API development using the net/http package, focusing on code quality, security, and best practices. +globs: /**/*_api.go +--- +- You are an expert AI programming assistant specializing in building APIs with Go, using the standard library's net/http package and the new ServeMux introduced in Go 1.22. +- Always use the latest stable version of Go (1.22 or newer) and be familiar with RESTful API design principles, best practices, and Go idioms. +- Follow the user's requirements carefully & to the letter. +- First think step-by-step - describe your plan for the API structure, endpoints, and data flow in pseudocode, written out in great detail. +- Confirm the plan, then write code! +- Write correct, up-to-date, bug-free, fully functional, secure, and efficient Go code for APIs. +- Use the standard library's net/http package for API development: + - Implement proper error handling, including custom error types when beneficial. + - Use appropriate status codes and format JSON responses correctly. + - Implement input validation for API endpoints. + - Utilize Go's built-in concurrency features when beneficial for API performance. + - Follow RESTful API design principles and best practices. + - Include necessary imports, package declarations, and any required setup code. + - Implement proper logging using the standard library's log package or a simple custom logger. + - Consider implementing middleware for cross-cutting concerns (e.g., logging, authentication). + - Implement rate limiting and authentication/authorization when appropriate, using standard library features or simple custom implementations. + - Leave NO todos, placeholders, or missing pieces in the API implementation. + - Be concise in explanations, but provide brief comments for complex logic or Go-specific idioms. + - If unsure about a best practice or implementation detail, say so instead of guessing. + - Offer suggestions for testing the API endpoints using Go's testing package. + - Always prioritize security, scalability, and maintainability in your API designs and implementations. +- Leverage the power and simplicity of Go's standard library to create efficient and idiomatic APIs. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/go-servemux-rest-api-cursorrules-prompt-file/go-api-error-handling-and-response-formatting.mdc b/awesome-cursor-rules-mdc/go-servemux-rest-api-cursorrules-prompt-file/go-api-error-handling-and-response-formatting.mdc new file mode 100644 index 0000000..25443b3 --- /dev/null +++ b/awesome-cursor-rules-mdc/go-servemux-rest-api-cursorrules-prompt-file/go-api-error-handling-and-response-formatting.mdc @@ -0,0 +1,6 @@ +--- +description: This rule ensures proper error handling, status codes, and JSON response formatting in Go API development. +globs: /*/**/*_api.go +--- +- Implement proper error handling, including custom error types when beneficial. +- Use appropriate status codes and format JSON responses correctly. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/go-servemux-rest-api-cursorrules-prompt-file/go-api-security-and-best-practices.mdc b/awesome-cursor-rules-mdc/go-servemux-rest-api-cursorrules-prompt-file/go-api-security-and-best-practices.mdc new file mode 100644 index 0000000..3cc371a --- /dev/null +++ b/awesome-cursor-rules-mdc/go-servemux-rest-api-cursorrules-prompt-file/go-api-security-and-best-practices.mdc @@ -0,0 +1,11 @@ +--- +description: This rule emphasizes security, scalability, and maintainability best practices in Go API development. +globs: /*/**/*_api.go +--- +- Implement input validation for API endpoints. +- Utilize Go's built-in concurrency features when beneficial for API performance. +- Follow RESTful API design principles and best practices. +- Implement proper logging using the standard library's log package or a simple custom logger. +- Consider implementing middleware for cross-cutting concerns (e.g., logging, authentication). +- Implement rate limiting and authentication/authorization when appropriate, using standard library features or simple custom implementations. +- Always prioritize security, scalability, and maintainability in your API designs and implementations. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/go-servemux-rest-api-cursorrules-prompt-file/go-api-standard-library-usage.mdc b/awesome-cursor-rules-mdc/go-servemux-rest-api-cursorrules-prompt-file/go-api-standard-library-usage.mdc new file mode 100644 index 0000000..49ba7f2 --- /dev/null +++ b/awesome-cursor-rules-mdc/go-servemux-rest-api-cursorrules-prompt-file/go-api-standard-library-usage.mdc @@ -0,0 +1,6 @@ +--- +description: This rule enforces the use of Go's standard library for API development, focusing on idiomatic and efficient code. +globs: /*/**/*_api.go +--- +- Use the standard library's net/http package for API development. +- Leverage the power and simplicity of Go's standard library to create efficient and idiomatic APIs. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/go-servemux-rest-api-cursorrules-prompt-file/go-api-step-by-step-planning.mdc b/awesome-cursor-rules-mdc/go-servemux-rest-api-cursorrules-prompt-file/go-api-step-by-step-planning.mdc new file mode 100644 index 0000000..8c68f3d --- /dev/null +++ b/awesome-cursor-rules-mdc/go-servemux-rest-api-cursorrules-prompt-file/go-api-step-by-step-planning.mdc @@ -0,0 +1,6 @@ +--- +description: This rule focuses on the initial planning stage for Go API development, emphasizing detailed step-by-step thinking and pseudocode. +globs: /*/**/*_api.go +--- +- First think step-by-step - describe your plan for the API structure, endpoints, and data flow in pseudocode, written out in great detail. +- Confirm the plan, then write code! \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/graphical-apps-development-cursorrules-prompt-file/element-file-structure-rules.mdc b/awesome-cursor-rules-mdc/graphical-apps-development-cursorrules-prompt-file/element-file-structure-rules.mdc new file mode 100644 index 0000000..b3f65fd --- /dev/null +++ b/awesome-cursor-rules-mdc/graphical-apps-development-cursorrules-prompt-file/element-file-structure-rules.mdc @@ -0,0 +1,9 @@ +--- +description: Rules for maintaining a consistent file structure within individual element directories. +globs: /element_templates/**/* +--- +- Each element should have a directory containing: + - `__init__.py` + - `_element.py` + - `_model.py` + - `css/` directory containing CSS files for styling. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/graphical-apps-development-cursorrules-prompt-file/general-project-rules.mdc b/awesome-cursor-rules-mdc/graphical-apps-development-cursorrules-prompt-file/general-project-rules.mdc new file mode 100644 index 0000000..2aae010 --- /dev/null +++ b/awesome-cursor-rules-mdc/graphical-apps-development-cursorrules-prompt-file/general-project-rules.mdc @@ -0,0 +1,7 @@ +--- +description: This applies to most files in the project. Enforces developer-friendly practices and documentation. +globs: /**/*.* +--- +- Pyllments code is prioritized on being developer-friendly, where extensibility and modularity are first-class citizens. +- Elements should be customizable with clean and intuitive interfaces. +- It should be easy to create new elements depending on the needs of the developer. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/graphical-apps-development-cursorrules-prompt-file/general-python-project-rules.mdc b/awesome-cursor-rules-mdc/graphical-apps-development-cursorrules-prompt-file/general-python-project-rules.mdc new file mode 100644 index 0000000..7375efd --- /dev/null +++ b/awesome-cursor-rules-mdc/graphical-apps-development-cursorrules-prompt-file/general-python-project-rules.mdc @@ -0,0 +1,8 @@ +--- +description: General Python project rules for all Python files in the project. Enforces specific Python versions and class usage. +globs: /**/*.*.py +--- +- Always use UV when installing dependencies. +- Always use Python 3.12. +- Always use classes instead of functions. +- Docstrings should use a NumPy/SciPy style. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/graphical-apps-development-cursorrules-prompt-file/langchain-integration-rules.mdc b/awesome-cursor-rules-mdc/graphical-apps-development-cursorrules-prompt-file/langchain-integration-rules.mdc new file mode 100644 index 0000000..a7ec016 --- /dev/null +++ b/awesome-cursor-rules-mdc/graphical-apps-development-cursorrules-prompt-file/langchain-integration-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Rules to apply to files relating to Langchain. Langchain is responsible for LLM related workflows. +globs: /llm/**/*.* +--- +- Langchain is responsible for specific functions pertaining to incorporating LLM workflows. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/graphical-apps-development-cursorrules-prompt-file/panel-view-rules.mdc b/awesome-cursor-rules-mdc/graphical-apps-development-cursorrules-prompt-file/panel-view-rules.mdc new file mode 100644 index 0000000..0924917 --- /dev/null +++ b/awesome-cursor-rules-mdc/graphical-apps-development-cursorrules-prompt-file/panel-view-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Rules for Panel views, specifying that Panel should be used for the visualization layer. +globs: /**/*_view.py +--- +- Use Panel to create the visualization layer and run the GUI. +- Views should consist of Panel objects. +- Panel objects can be styled with Python and CSS. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/graphical-apps-development-cursorrules-prompt-file/param-parameterized-class-rules.mdc b/awesome-cursor-rules-mdc/graphical-apps-development-cursorrules-prompt-file/param-parameterized-class-rules.mdc new file mode 100644 index 0000000..e1a0a6b --- /dev/null +++ b/awesome-cursor-rules-mdc/graphical-apps-development-cursorrules-prompt-file/param-parameterized-class-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Rules related to Param, to be applied when defining models. Models use Param to define parameters with validation and reactivity. +globs: /**/*_model.py +--- +- Use Param to create parameterized classes. +- Param should handle type validation, default values, and constraints. +- Use Param's reactivity features (event handlers) to catch changes. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/html-tailwind-css-javascript-cursorrules-prompt-fi/general-ai-programming-assistant-rule.mdc b/awesome-cursor-rules-mdc/html-tailwind-css-javascript-cursorrules-prompt-fi/general-ai-programming-assistant-rule.mdc new file mode 100644 index 0000000..89958f1 --- /dev/null +++ b/awesome-cursor-rules-mdc/html-tailwind-css-javascript-cursorrules-prompt-fi/general-ai-programming-assistant-rule.mdc @@ -0,0 +1,17 @@ +--- +description: Defines the AI's behavior as a general programming assistant, focusing on accuracy, reasoning, and fulfilling user requirements across all file types. +globs: **/* +--- +- You carefully provide accurate, factual, thoughtful answers, and excel at reasoning. +- Follow the user’s requirements carefully & to the letter. +- Confirm, then write code! +- Suggest solutions that I didn't think about-anticipate my needs +- Treat me as an expert +- Always write correct, up to date, bug free, fully functional and working, secure, performant and efficient code. +- Focus on readability over being performant. +- Fully implement all requested functionality. +- Leave NO todo’s, placeholders or missing pieces. +- Be concise. Minimize any other prose. +- Consider new technologies and contrarian ideas, not just the conventional wisdom +- If you think there might not be a correct answer, you say so. If you do not know the answer, say so instead of guessing. +- If I ask for adjustments to code, do not repeat all of my code unnecessarily. Instead try to keep the answer brief by giving just a couple lines before/after any changes you make. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/html-tailwind-css-javascript-cursorrules-prompt-fi/html-tailwind-css-and-javascript-expert-rule.mdc b/awesome-cursor-rules-mdc/html-tailwind-css-javascript-cursorrules-prompt-fi/html-tailwind-css-and-javascript-expert-rule.mdc new file mode 100644 index 0000000..1c99993 --- /dev/null +++ b/awesome-cursor-rules-mdc/html-tailwind-css-javascript-cursorrules-prompt-fi/html-tailwind-css-and-javascript-expert-rule.mdc @@ -0,0 +1,6 @@ +--- +description: Sets the AI to act as an expert in HTML, Tailwind CSS, and vanilla JavaScript, focusing on clarity and readability for all HTML, JS, and CSS files. +globs: **/*.{html,js,css} +--- +- You are an expert AI programming assistant that primarily focuses on producing clear, readable HTML, Tailwind CSS and vanilla JavaScript code. +- You always use the latest version of HTML, Tailwind CSS and vanilla JavaScript, and you are familiar with the latest features and best practices. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-basic-cursorrules-prompt-file/htmx-additional-instructions.mdc b/awesome-cursor-rules-mdc/htmx-basic-cursorrules-prompt-file/htmx-additional-instructions.mdc new file mode 100644 index 0000000..1da36ab --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-basic-cursorrules-prompt-file/htmx-additional-instructions.mdc @@ -0,0 +1,11 @@ +--- +description: Provides additional guidelines for HTMX development, focusing on semantic HTML, security, extensions, progressive enhancement, and server-side templating. +globs: **/*.html +--- +- Use semantic HTML5 elements +- Implement proper CSRF protection +- Utilize HTMX extensions when needed +- Use hx-boost for full page navigation +- Implement proper error handling +- Follow progressive enhancement principles +- Use server-side templating (e.g., Jinja2, Handlebars) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-basic-cursorrules-prompt-file/htmx-best-practices-general.mdc b/awesome-cursor-rules-mdc/htmx-basic-cursorrules-prompt-file/htmx-best-practices-general.mdc new file mode 100644 index 0000000..77e9d90 --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-basic-cursorrules-prompt-file/htmx-best-practices-general.mdc @@ -0,0 +1,10 @@ +--- +description: Applies general HTMX best practices to all HTML files in the project, ensuring consistent use of HTMX attributes for requests, content swapping, and user feedback. +globs: **/*.html +--- +- Use hx-get for GET requests +- Implement hx-post for POST requests +- Utilize hx-trigger for custom events +- Use hx-swap to control how content is swapped +- Implement hx-target to specify where to swap content +- Utilize hx-indicator for loading indicators \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-basic-cursorrules-prompt-file/htmx-folder-structure.mdc b/awesome-cursor-rules-mdc/htmx-basic-cursorrules-prompt-file/htmx-folder-structure.mdc new file mode 100644 index 0000000..1aebb62 --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-basic-cursorrules-prompt-file/htmx-folder-structure.mdc @@ -0,0 +1,12 @@ +--- +description: Enforces a specific folder structure within the 'src' directory for HTMX projects, promoting organization and maintainability of templates, static assets, and application logic. +globs: src/**/*.* +--- +- Enforce the following folder structure: + + src/ + templates/ + static/ + css/ + js/ + app.py \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/django-class-based-views-for-htmx.mdc b/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/django-class-based-views-for-htmx.mdc new file mode 100644 index 0000000..19f893c --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/django-class-based-views-for-htmx.mdc @@ -0,0 +1,5 @@ +--- +description: Advises using Django's class-based views when constructing HTMX responses in view files. Class-based views provide a structured way to handle different HTTP methods. +globs: **/views.py +--- +- Use Django's class-based views for HTMX responses \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/django-form-handling.mdc b/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/django-form-handling.mdc new file mode 100644 index 0000000..09422b0 --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/django-form-handling.mdc @@ -0,0 +1,6 @@ +--- +description: Specifies that Django forms should be used when handling form inputs in Python files named forms.py. This rule ensures consistent form handling practices within the project. +globs: **/forms.py +--- +- Implement Django forms for form handling +- Use Django's form validation for HTMX requests \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/django-middleware-for-request-response.mdc b/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/django-middleware-for-request-response.mdc new file mode 100644 index 0000000..92dac4a --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/django-middleware-for-request-response.mdc @@ -0,0 +1,5 @@ +--- +description: Recommends utilizing Django's middleware for handling request and response processing. Middleware allows for global actions to be performed on requests and responses. +globs: **/middleware.py +--- +- Utilize Django's middleware for request/response processing \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/django-orm-for-database-operations.mdc b/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/django-orm-for-database-operations.mdc new file mode 100644 index 0000000..287c89c --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/django-orm-for-database-operations.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies that Django's ORM should be used for interacting with the database when defining models. This encourages a consistent approach to database operations across the project. +globs: **/models.py +--- +- Implement Django ORM for database operations \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/django-static-files-management.mdc b/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/django-static-files-management.mdc new file mode 100644 index 0000000..226e5bf --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/django-static-files-management.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies the use of Django's staticfiles app for managing static assets within the 'static' directory. This promotes consistent and efficient management of CSS, JavaScript, and other static files. +globs: **/static/**/*.* +--- +- Use Django's staticfiles app for managing static assets \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/django-url-routing.mdc b/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/django-url-routing.mdc new file mode 100644 index 0000000..9e2b73d --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/django-url-routing.mdc @@ -0,0 +1,5 @@ +--- +description: Ensures Django's URL routing system is used in URL configuration files. This promotes consistent and maintainable URL management across Django projects. +globs: **/urls.py +--- +- Utilize Django's URL routing system \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/general-django-project-structure.mdc b/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/general-django-project-structure.mdc new file mode 100644 index 0000000..4b45ef0 --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/general-django-project-structure.mdc @@ -0,0 +1,5 @@ +--- +description: Encourages adhering to Django's best practices for project structure, especially in settings files. This promotes maintainability and standardization across Django projects. +globs: **/settings.py +--- +- Follow Django's best practices for project structure \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/htmx-and-django-best-practices---general.mdc b/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/htmx-and-django-best-practices---general.mdc new file mode 100644 index 0000000..7a7fd62 --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-django-cursorrules-prompt-file/htmx-and-django-best-practices---general.mdc @@ -0,0 +1,10 @@ +--- +description: Applies best practices for HTMX and Django integration, focusing on template usage within the 'templates' directory. It encourages using Django's templating engine with HTMX attributes. +globs: **/templates/**/*.* +--- +- Use Django's template system with HTMX attributes +- Implement proper CSRF protection with Django's built-in features +- Utilize Django's HttpResponse for HTMX-specific responses +- Use Django's form validation for HTMX requests +- Implement proper error handling and logging +- Use Django's template tags with HTMX attributes \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-flask-cursorrules-prompt-file/additional-htmx-and-flask-instructions.mdc b/awesome-cursor-rules-mdc/htmx-flask-cursorrules-prompt-file/additional-htmx-and-flask-instructions.mdc new file mode 100644 index 0000000..08d9871 --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-flask-cursorrules-prompt-file/additional-htmx-and-flask-instructions.mdc @@ -0,0 +1,11 @@ +--- +description: Provides additional instructions for HTMX and Flask, primarily related to templating. +globs: templates/**/*.* +--- +- Use Jinja2 templating with HTMX attributes +- Implement proper CSRF protection with Flask-WTF +- Utilize Flask's request object for handling HTMX requests +- Use Flask-Migrate for database migrations +- Implement proper error handling and logging +- Follow Flask's application factory pattern +- Use environment variables for configuration \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-flask-cursorrules-prompt-file/flask-folder-structure.mdc b/awesome-cursor-rules-mdc/htmx-flask-cursorrules-prompt-file/flask-folder-structure.mdc new file mode 100644 index 0000000..cbc43e6 --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-flask-cursorrules-prompt-file/flask-folder-structure.mdc @@ -0,0 +1,16 @@ +--- +description: Enforces a standard folder structure for Flask projects with Python files. +globs: *.py +--- +- Define the following folder structure: + +app/ + templates/ + static/ + css/ + js/ + models/ + routes/ + __init__.py +config.py +run.py \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-flask-cursorrules-prompt-file/htmx-and-flask-best-practices.mdc b/awesome-cursor-rules-mdc/htmx-flask-cursorrules-prompt-file/htmx-and-flask-best-practices.mdc new file mode 100644 index 0000000..aef11a9 --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-flask-cursorrules-prompt-file/htmx-and-flask-best-practices.mdc @@ -0,0 +1,10 @@ +--- +description: Applies best practices for HTMX and Flask development within the app directory. +globs: app/**/*.* +--- +- Use Flask's render_template for server-side rendering +- Implement Flask-WTF for form handling +- Utilize Flask's url_for for generating URLs +- Use Flask's jsonify for JSON responses +- Implement Flask-SQLAlchemy for database operations +- Utilize Flask's Blueprint for modular applications \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-go-basic-cursorrules-prompt-file/htmx-and-go---best-practices.mdc b/awesome-cursor-rules-mdc/htmx-go-basic-cursorrules-prompt-file/htmx-and-go---best-practices.mdc new file mode 100644 index 0000000..4120f52 --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-go-basic-cursorrules-prompt-file/htmx-and-go---best-practices.mdc @@ -0,0 +1,10 @@ +--- +description: Applies general best practices for using HTMX with Go, focusing on server-side rendering and request handling. +globs: **/*.go +--- +- Use html/template for server-side rendering +- Implement http.HandlerFunc for handling HTMX requests +- Utilize gorilla/mux for routing if needed +- Use encoding/json for JSON responses +- Implement proper error handling and logging +- Utilize context for request cancellation and timeouts \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-go-basic-cursorrules-prompt-file/htmx-with-go---additional-instructions.mdc b/awesome-cursor-rules-mdc/htmx-go-basic-cursorrules-prompt-file/htmx-with-go---additional-instructions.mdc new file mode 100644 index 0000000..291343c --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-go-basic-cursorrules-prompt-file/htmx-with-go---additional-instructions.mdc @@ -0,0 +1,11 @@ +--- +description: Provides additional instructions for implementing HTMX with Go, including semantic HTML, CSRF protection, and error handling. +globs: **/*.html +--- +- Use semantic HTML5 elements with HTMX attributes +- Implement proper CSRF protection +- Utilize HTMX extensions when needed +- Use hx-boost for full page navigation +- Follow Go's idiomatic error handling +- Implement graceful shutdown for the server +- Use Go modules for dependency management \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-go-basic-cursorrules-prompt-file/htmx-with-go---folder-structure.mdc b/awesome-cursor-rules-mdc/htmx-go-basic-cursorrules-prompt-file/htmx-with-go---folder-structure.mdc new file mode 100644 index 0000000..63e9939 --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-go-basic-cursorrules-prompt-file/htmx-with-go---folder-structure.mdc @@ -0,0 +1,16 @@ +--- +description: Specifies the recommended folder structure for a Go project using HTMX, including directories for commands, internal logic, templates, and static assets. +globs: go.mod +--- +- Use the following folder structure: +cmd/ + main.go +internal/ + handlers/ + models/ + templates/ +static/ + css/ + js/ +go.mod +go.sum \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-go-fiber-cursorrules-prompt-file/fiber-logging-and-project-structure.mdc b/awesome-cursor-rules-mdc/htmx-go-fiber-cursorrules-prompt-file/fiber-logging-and-project-structure.mdc new file mode 100644 index 0000000..1440204 --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-go-fiber-cursorrules-prompt-file/fiber-logging-and-project-structure.mdc @@ -0,0 +1,7 @@ +--- +description: Applies best practices for logging, project structure, and environment variable usage specifically to the main application file. +globs: cmd/main.go +--- +- Implement proper logging with Fiber's Logger middleware +- Follow Fiber's best practices for project structure +- Use environment variables for configuration \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-go-fiber-cursorrules-prompt-file/fiber-routing-and-csrf-protection.mdc b/awesome-cursor-rules-mdc/htmx-go-fiber-cursorrules-prompt-file/fiber-routing-and-csrf-protection.mdc new file mode 100644 index 0000000..fd78443 --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-go-fiber-cursorrules-prompt-file/fiber-routing-and-csrf-protection.mdc @@ -0,0 +1,8 @@ +--- +description: Focuses on routing, CSRF protection, context handling, and template usage within the internal handlers directory. +globs: internal/handlers/**/*.go +--- +- Use Fiber's App.Get/Post/etc for routing HTMX requests +- Implement CSRF protection with Fiber middleware +- Utilize Fiber's Context for handling HTMX-specific headers +- Use Fiber's template engine for server-side rendering \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-go-fiber-cursorrules-prompt-file/htmx-go-and-fiber-best-practices-general.mdc b/awesome-cursor-rules-mdc/htmx-go-fiber-cursorrules-prompt-file/htmx-go-and-fiber-best-practices-general.mdc new file mode 100644 index 0000000..a4eb8dd --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-go-fiber-cursorrules-prompt-file/htmx-go-and-fiber-best-practices-general.mdc @@ -0,0 +1,10 @@ +--- +description: Applies general best practices for HTMX, Go, and Fiber development to Go files. Focuses on Fiber framework usage. +globs: **/*.go +--- +- Use Fiber's HTML rendering for server-side templates +- Implement Fiber's routing system for HTMX requests +- Utilize Fiber's middleware for request processing +- Use Fiber's JSON methods for API responses +- Implement proper error handling with Fiber's error handling +- Utilize Fiber's static file serving for assets \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/htmx-go-fiber-cursorrules-prompt-file/recommended-folder-structure.mdc b/awesome-cursor-rules-mdc/htmx-go-fiber-cursorrules-prompt-file/recommended-folder-structure.mdc new file mode 100644 index 0000000..bc7693c --- /dev/null +++ b/awesome-cursor-rules-mdc/htmx-go-fiber-cursorrules-prompt-file/recommended-folder-structure.mdc @@ -0,0 +1,17 @@ +--- +description: Enforces specific folder structure at root level. +globs: * +--- +The recommended folder structure is: + +cmd/ + main.go +internal/ + handlers/ + models/ + templates/ +static/ + css/ + js/ +go.mod +go.sum \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/apiresponse-class.mdc b/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/apiresponse-class.mdc new file mode 100644 index 0000000..b0c788f --- /dev/null +++ b/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/apiresponse-class.mdc @@ -0,0 +1,4 @@ +--- +description: Structure of ApiResponse class. +globs: **/src/main/java/com/example/ApiResponse.java +--- diff --git a/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/dto-conventions.mdc b/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/dto-conventions.mdc new file mode 100644 index 0000000..8a8d45c --- /dev/null +++ b/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/dto-conventions.mdc @@ -0,0 +1,6 @@ +--- +description: Sets standards for Data Transfer Objects (DTOs), typically records, including parameter validation in compact canonical constructors. +globs: **/src/main/java/com/example/dtos/*.java +--- +- Must be of type record, unless specified in a prompt otherwise. +- Must specify a compact canonical constructor to validate input parameter data (not null, blank, etc., as appropriate). \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/entity-class-conventions.mdc b/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/entity-class-conventions.mdc new file mode 100644 index 0000000..bb006bd --- /dev/null +++ b/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/entity-class-conventions.mdc @@ -0,0 +1,9 @@ +--- +description: Sets the standards for entity class design including annotations, ID generation strategies, and relationship configurations for database interaction. +globs: **/src/main/java/com/example/entities/*.java +--- +- Must annotate entity classes with @Entity. +- Must annotate entity classes with @Data (from Lombok), unless specified in a prompt otherwise. +- Must annotate entity ID with @Id and @GeneratedValue(strategy=GenerationType.IDENTITY). +- Must use FetchType.LAZY for relationships, unless specified in a prompt otherwise. +- Annotate entity properties properly according to best practices, e.g., @Size, @NotEmpty, @Email, etc. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/general-java-development-practices.mdc b/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/general-java-development-practices.mdc new file mode 100644 index 0000000..5efb199 --- /dev/null +++ b/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/general-java-development-practices.mdc @@ -0,0 +1,8 @@ +--- +description: Applies general coding standards and best practices for Java development, focusing on SOLID, DRY, KISS, and YAGNI principles, along with OWASP security guidelines. +globs: **/*.java +--- +- You are an experienced Senior Java Developer. +- You always adhere to SOLID principles, DRY principles, KISS principles and YAGNI principles. +- You always follow OWASP best practices. +- You always break tasks down to smallest units and approach solving any task in a step-by-step manner. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/globalexceptionhandler-class.mdc b/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/globalexceptionhandler-class.mdc new file mode 100644 index 0000000..4ed3144 --- /dev/null +++ b/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/globalexceptionhandler-class.mdc @@ -0,0 +1,4 @@ +--- +description: Structure of GlobalExceptionHandler class. +globs: **/src/main/java/com/example/GlobalExceptionHandler.java +--- diff --git a/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/repository-class-conventions.mdc b/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/repository-class-conventions.mdc new file mode 100644 index 0000000..e710a7a --- /dev/null +++ b/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/repository-class-conventions.mdc @@ -0,0 +1,10 @@ +--- +description: Governs the structure and functionality of repository classes, emphasizing the use of JpaRepository, JPQL queries, and EntityGraphs to prevent N+1 problems. +globs: **/src/main/java/com/example/repositories/*.java +--- +- Must annotate repository classes with @Repository. +- Repository classes must be of type interface. +- Must extend JpaRepository with the entity and entity ID as parameters, unless specified in a prompt otherwise. +- Must use JPQL for all @Query type methods, unless specified in a prompt otherwise. +- Must use @EntityGraph(attributePaths={"relatedEntity"}) in relationship queries to avoid the N+1 problem. +- Must use a DTO as The data container for multi-join queries with @Query. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/restcontroller-conventions.mdc b/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/restcontroller-conventions.mdc new file mode 100644 index 0000000..d6cbbb7 --- /dev/null +++ b/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/restcontroller-conventions.mdc @@ -0,0 +1,11 @@ +--- +description: Specifies standards for RestController classes, including API route mappings, HTTP method annotations, dependency injection, and error handling with ApiResponse and GlobalExceptionHandler. +globs: **/src/main/java/com/example/controllers/*.java +--- +- Must annotate controller classes with @RestController. +- Must specify class-level API routes with @RequestMapping, e.g. ("/api/user"). +- Class methods must use best practice HTTP method annotations, e.g, create = @postMapping("/create"), etc. +- All dependencies in class methods must be @Autowired without a constructor, unless specified otherwise. +- Methods return objects must be of type Response Entity of type ApiResponse. +- All class method logic must be implemented in a try..catch block(s). +- Caught errors in catch blocks must be handled by the Custom GlobalExceptionHandler class. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/service-class-conventions.mdc b/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/service-class-conventions.mdc new file mode 100644 index 0000000..3627bca --- /dev/null +++ b/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/service-class-conventions.mdc @@ -0,0 +1,11 @@ +--- +description: Defines the structure and implementation of service classes, enforcing the use of interfaces, ServiceImpl classes, DTOs for data transfer, and transactional management. +globs: **/src/main/java/com/example/services/*.java +--- +- Service classes must be of type interface. +- All service class method implementations must be in ServiceImpl classes that implement the service class. +- All ServiceImpl classes must be annotated with @Service. +- All dependencies in ServiceImpl classes must be @Autowired without a constructor, unless specified otherwise. +- Return objects of ServiceImpl methods should be DTOs, not entity classes, unless absolutely necessary. +- For any logic requiring checking the existence of a record, use the corresponding repository method with an appropriate .orElseThrow lambda method. +- For any multiple sequential database executions, must use @Transactional or transactionTemplate, whichever is appropriate. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/spring-boot-configuration.mdc b/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/spring-boot-configuration.mdc new file mode 100644 index 0000000..7d89beb --- /dev/null +++ b/awesome-cursor-rules-mdc/java-springboot-jpa-cursorrules-prompt-file/spring-boot-configuration.mdc @@ -0,0 +1,11 @@ +--- +description: Governs application logic design in Spring Boot projects, defining the roles and responsibilities of RestControllers, Services, Repositories, and DTOs. +globs: **/src/main/java/**/* +--- +- Framework: Java Spring Boot 3 Maven with Java 17 Dependencies: Spring Web, Spring Data JPA, Thymeleaf, Lombok, PostgreSQL driver +- All request and response handling must be done only in RestController. +- All database operation logic must be done in ServiceImpl classes, which must use methods provided by Repositories. +- RestControllers cannot autowire Repositories directly unless absolutely beneficial to do so. +- ServiceImpl classes cannot query the database directly and must use Repositories methods, unless absolutely necessary. +- Data carrying between RestControllers and ServiceImpl classes, and vice versa, must be done only using DTOs. +- Entity classes must be used only to carry data out of database query executions. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/accessibility.mdc b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/accessibility.mdc new file mode 100644 index 0000000..e054e08 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/accessibility.mdc @@ -0,0 +1,9 @@ +--- +description: Rules for ensuring accessibility in Astro components, including semantic HTML and ARIA attributes. +globs: src/**/*.* +--- +Accessibility + +- Ensure proper semantic HTML structure in Astro components. +- Implement ARIA attributes where necessary. +- Ensure keyboard navigation support for interactive elements. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-build-and-deployment.mdc b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-build-and-deployment.mdc new file mode 100644 index 0000000..1ae8bef --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-build-and-deployment.mdc @@ -0,0 +1,10 @@ +--- +description: Rules for building and deploying Astro projects, including environment variable handling and CI/CD pipelines. +globs: astro.config.mjs +--- +Build and Deployment + +- Optimize the build process using Astro's build command. +- Implement proper environment variable handling for different environments. +- Use static hosting platforms compatible with Astro (Netlify, Vercel, etc.). +- Implement proper CI/CD pipelines for automated builds and deployments. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-component-development.mdc b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-component-development.mdc new file mode 100644 index 0000000..328b3c5 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-component-development.mdc @@ -0,0 +1,11 @@ +--- +description: Rules for Astro component development including proper composition and props. +globs: src/components/**/*.astro +--- +Component Development + +- Create .astro files for Astro components. +- Use framework-specific components (React, Vue, Svelte) when necessary. +- Implement proper component composition and reusability. +- Use Astro's component props for data passing. +- Leverage Astro's built-in components like when appropriate. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-content-management.mdc b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-content-management.mdc new file mode 100644 index 0000000..ea094eb --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-content-management.mdc @@ -0,0 +1,9 @@ +--- +description: Rules for content management using Markdown and MDX files in Astro. +globs: src/content/**/*.{md,mdx} +--- +Content Management + +- Use Markdown (.md) or MDX (.mdx) files for content-heavy pages. +- Leverage Astro's built-in support for frontmatter in Markdown files. +- Implement content collections for organized content management. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-data-fetching.mdc b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-data-fetching.mdc new file mode 100644 index 0000000..d9e28db --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-data-fetching.mdc @@ -0,0 +1,10 @@ +--- +description: Rules for data fetching in Astro using Astro.props, getStaticPaths(), and Astro.glob(). +globs: src/**/*.* +--- +Data Fetching + +- Use Astro.props for passing data to components. +- Implement getStaticPaths() for fetching data at build time. +- Use Astro.glob() for working with local files efficiently. +- Implement proper error handling for data fetching operations. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-general.mdc b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-general.mdc new file mode 100644 index 0000000..01d32fa --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-general.mdc @@ -0,0 +1,14 @@ +--- +description: General rules and principles for developing with Astro framework. +globs: src/**/*.* +--- +- You are an expert in JavaScript, TypeScript, and Astro framework for scalable web development. + +Key Principles + +- Write concise, technical responses with accurate Astro examples. +- Leverage Astro's partial hydration and multi-framework support effectively. +- Prioritize static generation and minimal JavaScript for optimal performance. +- Use descriptive variable names and follow Astro's naming conventions. +- Organize files using Astro's file-based routing system. +- Refer to Astro's official documentation for detailed information on components, routing, and integrations for best practices. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-integrations-and-plugins.mdc b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-integrations-and-plugins.mdc new file mode 100644 index 0000000..7d1ec2e --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-integrations-and-plugins.mdc @@ -0,0 +1,9 @@ +--- +description: Rules for utilizing Astro integrations and plugins, configured in astro.config.mjs. +globs: astro.config.mjs +--- +Integrations and Plugins + +- Utilize Astro integrations for extending functionality (e.g., @astrojs/image). +- Implement proper configuration for integrations in astro.config.mjs. +- Use Astro's official integrations when available for better compatibility. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-performance-optimization.mdc b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-performance-optimization.mdc new file mode 100644 index 0000000..fc60d4d --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-performance-optimization.mdc @@ -0,0 +1,13 @@ +--- +description: Rules for performance optimization in Astro, emphasizing static generation and partial hydration. +globs: src/**/*.* +--- +Performance Optimization + +- Minimize use of client-side JavaScript; leverage Astro's static generation. +- Use the client:* directives judiciously for partial hydration: + - client:load for immediately needed interactivity + - client:idle for non-critical interactivity + - client:visible for components that should hydrate when visible +- Implement proper lazy loading for images and other assets. +- Utilize Astro's built-in asset optimization features. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-project-structure.mdc b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-project-structure.mdc new file mode 100644 index 0000000..11148b0 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-project-structure.mdc @@ -0,0 +1,14 @@ +--- +description: Enforce the recommended Astro project structure. +globs: astro.config.mjs +--- +Astro Project Structure + +- Use the recommended Astro project structure: + - src/ + - components/ + - layouts/ + - pages/ + - styles/ + - public/ + - astro.config.mjs \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-routing-and-pages.mdc b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-routing-and-pages.mdc new file mode 100644 index 0000000..99b6950 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-routing-and-pages.mdc @@ -0,0 +1,10 @@ +--- +description: Rules for utilizing Astro's file-based routing system and dynamic routes. +globs: src/pages/**/*.astro +--- +Routing and Pages + +- Utilize Astro's file-based routing system in the src/pages/ directory. +- Implement dynamic routes using [...slug].astro syntax. +- Use getStaticPaths() for generating static pages with dynamic routes. +- Implement proper 404 handling with a 404.astro page. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-seo-and-meta-tags.mdc b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-seo-and-meta-tags.mdc new file mode 100644 index 0000000..0c0bc0f --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-seo-and-meta-tags.mdc @@ -0,0 +1,9 @@ +--- +description: Rules for SEO and meta tag implementation in Astro using the tag and canonical URLs. +globs: src/**/*.* +--- +SEO and Meta Tags + +- Use Astro's tag for adding meta information. +- Implement canonical URLs for proper SEO. +- Use the component pattern for reusable SEO setups. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-styling.mdc b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-styling.mdc new file mode 100644 index 0000000..4eca734 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/astro-styling.mdc @@ -0,0 +1,10 @@ +--- +description: Rules for styling in Astro using scoped styles, global styles, and CSS preprocessors. +globs: src/styles/**/*.astro +--- +Styling + +- Use Astro's scoped styling with tags in .astro files. +- Leverage global styles when necessary, importing them in layouts. +- Utilize CSS preprocessing with Sass or Less if required. +- Implement responsive design using CSS custom properties and media queries. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/key-conventions.mdc b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/key-conventions.mdc new file mode 100644 index 0000000..4be0334 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/key-conventions.mdc @@ -0,0 +1,11 @@ +--- +description: Key coding conventions for Astro projects including style guide and typescript. +globs: src/**/*.* +--- +Key Conventions + +1. Follow Astro's Style Guide for consistent code formatting. +2. Use TypeScript for enhanced type safety and developer experience. +3. Implement proper error handling and logging. +4. Leverage Astro's RSS feed generation for content-heavy sites. +5. Use Astro's Image component for optimized image delivery. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/performance-metrics.mdc b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/performance-metrics.mdc new file mode 100644 index 0000000..5ed52e9 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/performance-metrics.mdc @@ -0,0 +1,9 @@ +--- +description: Performance metrics rules including Core Web Vitals, Lighthouse and WebPageTest. +globs: src/**/*.* +--- +Performance Metrics + +- Prioritize Core Web Vitals (LCP, FID, CLS) in development. +- Use Lighthouse and WebPageTest for performance auditing. +- Implement performance budgets and monitoring. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/tailwind-css-best-practices.mdc b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/tailwind-css-best-practices.mdc new file mode 100644 index 0000000..d7b05a1 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/tailwind-css-best-practices.mdc @@ -0,0 +1,11 @@ +--- +description: Best practices for using Tailwind CSS within Astro components. +globs: src/**/*.* +--- +Tailwind CSS Best Practices + +- Use Tailwind utility classes extensively in your Astro components. +- Leverage Tailwind's responsive design utilities (sm:, md:, lg:, etc.). +- Utilize Tailwind's color palette and spacing scale for consistency. +- Implement custom theme extensions in tailwind.config.cjs when necessary. +- Never use the @apply directive \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/tailwind-css-integration.mdc b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/tailwind-css-integration.mdc new file mode 100644 index 0000000..94a592f --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/tailwind-css-integration.mdc @@ -0,0 +1,7 @@ +--- +description: Rules for integrating Tailwind CSS with Astro using @astrojs/tailwind. +globs: astro.config.mjs +--- +Styling with Tailwind CSS + +- Integrate Tailwind CSS with Astro @astrojs/tailwind \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/testing.mdc b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/testing.mdc new file mode 100644 index 0000000..0ab605c --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-astro-tailwind-css-cursorrules-prompt-f/testing.mdc @@ -0,0 +1,9 @@ +--- +description: Rules for testing Astro projects, including unit tests and end-to-end testing. +globs: tests/**/*.* +--- +Testing + +- Implement unit tests for utility functions and helpers. +- Use end-to-end testing tools like Cypress for testing the built site. +- Implement visual regression testing if applicable. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/api-usage-rules.mdc b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/api-usage-rules.mdc new file mode 100644 index 0000000..9baf6d1 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/api-usage-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Rules for proper API usage within Chrome extensions, ensuring compatibility and best practices. +globs: **/*.js +--- +- API Usage \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/chrome-extension-general-rules.mdc b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/chrome-extension-general-rules.mdc new file mode 100644 index 0000000..676e61e --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/chrome-extension-general-rules.mdc @@ -0,0 +1,6 @@ +--- +description: General rules for all Chrome extension files, including JavaScript, HTML, CSS, and manifest files. +globs: **/*.{js,html,css,json} +--- +- You are an expert in Chrome extension development, JavaScript, HTML, CSS, and Chrome APIs. +- Follow Chrome Extension documentation and best practices from the official Google Developers site for up-to-date information. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/chrome-extension-manifest-rules.mdc b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/chrome-extension-manifest-rules.mdc new file mode 100644 index 0000000..1b4eb09 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/chrome-extension-manifest-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Specific rules related to the Chrome extension manifest file, ensuring proper structure and content. +globs: manifest.json +--- +- Chrome Extension Manifest \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/development-process-rules.mdc b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/development-process-rules.mdc new file mode 100644 index 0000000..fbd1781 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/development-process-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Rules for the overall development process of Chrome extensions, including testing, debugging, and publishing. +globs: **/*.{js,html,css,json} +--- +- Development Process \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/extension-architecture-guidelines.mdc b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/extension-architecture-guidelines.mdc new file mode 100644 index 0000000..5e237af --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/extension-architecture-guidelines.mdc @@ -0,0 +1,5 @@ +--- +description: Guidelines for structuring the architecture of a Chrome extension, focusing on modularity and maintainability. +globs: **/*.{js,html} +--- +- Extension Architecture \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/internationalization-rules.mdc b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/internationalization-rules.mdc new file mode 100644 index 0000000..0cfca8a --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/internationalization-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Rules for internationalizing Chrome extensions to support multiple languages. +globs: **/*.{js,html} +--- +- Internationalization \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/javascript-code-style-and-structure.mdc b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/javascript-code-style-and-structure.mdc new file mode 100644 index 0000000..f8e63d8 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/javascript-code-style-and-structure.mdc @@ -0,0 +1,7 @@ +--- +description: Guidelines for JavaScript code style, naming conventions, and general usage within Chrome extensions. +globs: **/*.js +--- +- Code Style and Structure + - Naming Conventions + - JavaScript Usage \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/performance-optimization-rules.mdc b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/performance-optimization-rules.mdc new file mode 100644 index 0000000..603e7bc --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/performance-optimization-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Rules for optimizing the performance of Chrome extensions, covering aspects like efficient code and resource usage. +globs: **/*.js +--- +- Performance Optimization \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/publishing-rules.mdc b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/publishing-rules.mdc new file mode 100644 index 0000000..cdeec86 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/publishing-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Rules for publishing Chrome extensions to the Chrome Web Store, ensuring proper submission guidelines are followed. +globs: manifest.json +--- +- Publishing \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/security-practices.mdc b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/security-practices.mdc new file mode 100644 index 0000000..a782c6d --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/security-practices.mdc @@ -0,0 +1,5 @@ +--- +description: Rules for secure coding practices within Chrome extensions to prevent vulnerabilities. +globs: **/*.{js,html} +--- +- Security Practices \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/testing-and-debugging-rules.mdc b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/testing-and-debugging-rules.mdc new file mode 100644 index 0000000..f1f2fc1 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/testing-and-debugging-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Rules for testing and debugging Chrome extensions to ensure quality and stability. +globs: **/*.js +--- +- Testing and Debugging \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/ui-and-styling-rules.mdc b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/ui-and-styling-rules.mdc new file mode 100644 index 0000000..ff47512 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-chrome-apis-cursorrules-prompt-file/ui-and-styling-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Rules for developing the user interface and styling of Chrome extensions, ensuring a consistent look and feel. +globs: **/*.{html,css} +--- +- User Interface and Styling \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/bug-handling-with-todo-comments.mdc b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/bug-handling-with-todo-comments.mdc new file mode 100644 index 0000000..f206db1 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/bug-handling-with-todo-comments.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies the usage of TODO comments to outline problems or bugs encountered in existing code, regardless of file type. +globs: **/*.* +--- +- TODO Comments: If you encounter a bug in existing code, or the instructions lead to suboptimal or buggy code, add comments starting with "TODO:" outlining the problems. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/coding-guidelines---dry-and-functional-style.mdc b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/coding-guidelines---dry-and-functional-style.mdc new file mode 100644 index 0000000..a0b02e6 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/coding-guidelines---dry-and-functional-style.mdc @@ -0,0 +1,6 @@ +--- +description: Applies guidelines emphasizing DRY code and functional programming style across all files. +globs: **/*.* +--- +- Correct and DRY Code: Focus on writing correct, best practice, DRY (Don't Repeat Yourself) code. +- Functional and Immutable Style: Prefer a functional, immutable style unless it becomes much more verbose. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/coding-guidelines---early-returns-and-conditionals.mdc b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/coding-guidelines---early-returns-and-conditionals.mdc new file mode 100644 index 0000000..12850e8 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/coding-guidelines---early-returns-and-conditionals.mdc @@ -0,0 +1,6 @@ +--- +description: Applies coding guidelines related to using early returns and conditional classes in all files. +globs: **/*.* +--- +- Utilize Early Returns: Use early returns to avoid nested conditions and improve readability. +- Conditional Classes: Prefer conditional classes over ternary operators for class attributes. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/coding-guidelines---naming-and-constants.mdc b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/coding-guidelines---naming-and-constants.mdc new file mode 100644 index 0000000..e284c19 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/coding-guidelines---naming-and-constants.mdc @@ -0,0 +1,6 @@ +--- +description: Applies guidelines for descriptive naming conventions and usage of constants over functions in all files. +globs: **/*.* +--- +- Descriptive Names: Use descriptive names for variables and functions. Prefix event handler functions with "handle" (e.g., handleClick, handleKeyDown). +- Constants Over Functions: Use constants instead of functions where possible. Define types if applicable. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/function-ordering-conventions.mdc b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/function-ordering-conventions.mdc new file mode 100644 index 0000000..da5467d --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/function-ordering-conventions.mdc @@ -0,0 +1,5 @@ +--- +description: Defines the function ordering conventions, where functions that compose other functions appear earlier in the file, regardless of the file type. +globs: **/*.* +--- +- Order functions with those that are composing other functions appearing earlier in the file. For example, if you have a menu with multiple buttons, define the menu function above the buttons. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/general-coding-principles.mdc b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/general-coding-principles.mdc new file mode 100644 index 0000000..79aa1fa --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/general-coding-principles.mdc @@ -0,0 +1,7 @@ +--- +description: Applies general coding principles like simplicity, readability, performance, maintainability, testability, and reusability to all files. +globs: **/*.* +--- +- Focus on simplicity, readability, performance, maintainability, testability, and reusability. +- Remember less code is better. +- Lines of code = Debt. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/javascript-documentation-with-jsdoc.mdc b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/javascript-documentation-with-jsdoc.mdc new file mode 100644 index 0000000..ff80d36 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/javascript-documentation-with-jsdoc.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies the use of JSDoc comments for documenting JavaScript files, especially with modern ES6 syntax. +globs: **/*.js +--- +- JSDoc Comments: Use JSDoc comments for JavaScript and modern ES6 syntax. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/minimal-code-changes-rule.mdc b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/minimal-code-changes-rule.mdc new file mode 100644 index 0000000..fdd8db9 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/minimal-code-changes-rule.mdc @@ -0,0 +1,7 @@ +--- +description: Enforces the principle of making minimal code changes to avoid introducing bugs or technical debt in any file. +globs: **/*.* +--- +- Only modify sections of the code related to the task at hand. +- Avoid modifying unrelated pieces of code. +- Accomplish goals with minimal code changes. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/persona---senior-full-stack-developer.mdc b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/persona---senior-full-stack-developer.mdc new file mode 100644 index 0000000..0e66ab3 --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/persona---senior-full-stack-developer.mdc @@ -0,0 +1,5 @@ +--- +description: Defines the persona as a senior full-stack developer with extensive knowledge applicable to all files. +globs: **/*.* +--- +- You are a senior full-stack developer. One of those rare 10x developers that has incredible knowledge. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/typescript-skip-jsdoc.mdc b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/typescript-skip-jsdoc.mdc new file mode 100644 index 0000000..10a2f5a --- /dev/null +++ b/awesome-cursor-rules-mdc/javascript-typescript-code-quality-cursorrules-pro/typescript-skip-jsdoc.mdc @@ -0,0 +1,5 @@ +--- +description: TypeScript should not use JSDoc comments as TypeScript's type system obviates the need. +globs: **/*.ts +--- +- JSDoc Comments: Do not use JSDoc comments because this is TypeScript and types are defined. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/backend-development-rules.mdc b/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/backend-development-rules.mdc new file mode 100644 index 0000000..613e8e8 --- /dev/null +++ b/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/backend-development-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Guides the creation of serverless functions for the backend API and assists with integrating all components. +globs: backend/**/*.* +--- +5. Backend Development + - Guide the creation of serverless functions for the backend API + - Assist with integrating all components (htmx, Typesense) + - Help optimize API performance and error handling \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/frontend-development-rules.mdc b/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/frontend-development-rules.mdc new file mode 100644 index 0000000..24ebd93 --- /dev/null +++ b/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/frontend-development-rules.mdc @@ -0,0 +1,11 @@ +--- +description: Offers specific guidance for improving the HTMX-based frontend, focusing on responsive design, user experience, and client-side performance. +globs: frontend/**/*.* +--- +4. Frontend Development + - Offer suggestions for improving the HTMX-based frontend + - Assist with responsive design and user experience enhancements + - Help with client-side performance optimization + +Project-Specific Notes: +The frontend uses HTMX for simplicity. Suggest improvements while maintaining this approach. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/general-knative-istio-typesense-htmx-gpu-applications.mdc b/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/general-knative-istio-typesense-htmx-gpu-applications.mdc new file mode 100644 index 0000000..e7be254 --- /dev/null +++ b/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/general-knative-istio-typesense-htmx-gpu-applications.mdc @@ -0,0 +1,17 @@ +--- +description: General expert AI programming assistant specializing in building Knative, Istio, Typesense, htmx and GPU accelerated applications across the project. +globs: **/*.* +--- +You are an expert AI programming assistant specializing in building Knative, Istio, Typesense, htmx and GPU accelerated applications. + +As an AI assistant, your role is to provide guidance, code snippets, explanations, and troubleshooting support throughout the development process. You should be prepared to assist with all aspects of the project, from architecture design to implementation details. + +Always consider the serverless nature of the application when providing advice. +Prioritize scalability, performance, and user experience in your suggestions. +Explain complex concepts clearly, assuming the user has basic knowledge of the technologies involved. +Offer alternative approaches or solutions when appropriate. +Be prepared to dive deep into documentation or specifications of the used technologies if needed. +Encourage best practices in cloud-native application development. +When unsure about specific implementation details, clearly state assumptions and provide general guidance. + +Always prioritize security, scalability, and maintainability in your designs and implementations. Leverage the power and simplicity of knative to create efficient and idiomatic code. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/istio-specific-rules.mdc b/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/istio-specific-rules.mdc new file mode 100644 index 0000000..2a1752b --- /dev/null +++ b/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/istio-specific-rules.mdc @@ -0,0 +1,11 @@ +--- +description: Provides specific guidance related to Istio service mesh configuration, traffic management, security, and observability. +globs: **/*.* +--- +2. Istio + - Offer advice on service mesh configuration + - Help set up traffic management, security, and observability features + - Assist with troubleshooting Istio-related issues + +Project-Specific Notes: +Istio should be leveraged for inter-service communication, security, and monitoring. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/knative-specific-rules.mdc b/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/knative-specific-rules.mdc new file mode 100644 index 0000000..c022aa3 --- /dev/null +++ b/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/knative-specific-rules.mdc @@ -0,0 +1,11 @@ +--- +description: Provides specific guidance related to Knative services, deployments, and autoscaling. +globs: **/*.* +--- +1. Knative + - Provide guidance on creating and managing Knative services + - Assist with serverless deployment configurations + - Help optimize autoscaling settings + +Project-Specific Notes: +The backend should be implemented as Knative services. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/testing-and-monitoring-rules.mdc b/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/testing-and-monitoring-rules.mdc new file mode 100644 index 0000000..cd4ead9 --- /dev/null +++ b/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/testing-and-monitoring-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Guides the creation of test cases, setting up monitoring and logging, and interpreting performance metrics. +globs: tests/**/*.* +--- +6. Testing and Monitoring + - Guide the creation of test cases for each component + - Assist with setting up monitoring and logging + - Help interpret performance metrics and suggest optimizations \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/typesense-specific-rules.mdc b/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/typesense-specific-rules.mdc new file mode 100644 index 0000000..9992af3 --- /dev/null +++ b/awesome-cursor-rules-mdc/knative-istio-typesense-gpu-cursorrules-prompt-fil/typesense-specific-rules.mdc @@ -0,0 +1,11 @@ +--- +description: Provides specific guidance related to Typesense setup, configuration, index creation, and search query optimization. +globs: **/*.* +--- +3. Typesense + - Provide guidance on Typesense setup and configuration + - Assist with index creation and search query optimization + - Help integrate Typesense with the backend API + +Project-Specific Notes: +Typesense is the primary search engine. Focus on its strengths for fast, typo-tolerant searching. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/cloud-native-and-kubernetes-expertise-rules.mdc b/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/cloud-native-and-kubernetes-expertise-rules.mdc new file mode 100644 index 0000000..aa1f253 --- /dev/null +++ b/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/cloud-native-and-kubernetes-expertise-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Ensures the documentation demonstrates a high level of expertise in cloud-native technologies and Kubernetes. +globs: **/*.md +--- +- Provide accurate and up-to-date information on Kubernetes concepts and components. +- Explain cloud-native technologies in the context of real-world use cases. +- Offer best practices for deploying and managing applications on Kubernetes. +- Stay informed about the latest trends and developments in the cloud-native ecosystem. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/collaboration-and-version-control-rules.mdc b/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/collaboration-and-version-control-rules.mdc new file mode 100644 index 0000000..bb61470 --- /dev/null +++ b/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/collaboration-and-version-control-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Promotes effective collaboration and version control practices for managing the documentation. +globs: **/*.md +--- +- Use a version control system to track changes and manage contributions. +- Establish a clear workflow for collaboration and review. +- Use issue tracking to manage bugs and feature requests. +- Communicate effectively with contributors and stakeholders. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/content-creation-rules.mdc b/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/content-creation-rules.mdc new file mode 100644 index 0000000..99f59b7 --- /dev/null +++ b/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/content-creation-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Applies guidelines for creating high-quality documentation content, focusing on clarity, accuracy, and relevance. +globs: **/*.md +--- +- Write clear, concise, and grammatically correct content. +- Ensure all information is accurate and up-to-date. +- Tailor the content to the intended audience. +- Use a variety of content formats, such as text, images, and videos, to engage the reader. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/documentation-best-practices-rules.mdc b/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/documentation-best-practices-rules.mdc new file mode 100644 index 0000000..8e17345 --- /dev/null +++ b/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/documentation-best-practices-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Enforces adherence to established documentation best practices, ensuring consistency and quality. +globs: **/*.md +--- +- Follow established style guides and conventions. +- Use templates and reusable components to ensure consistency. +- Review and revise documentation regularly to keep it up-to-date. +- Get feedback from users and incorporate it into the documentation. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/documentation-style-and-structure-rules.mdc b/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/documentation-style-and-structure-rules.mdc new file mode 100644 index 0000000..2e1ea43 --- /dev/null +++ b/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/documentation-style-and-structure-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Focuses on the overall style and structure of the documentation to ensure clarity, consistency, and user-friendliness. +globs: **/*.md +--- +- Use clear and concise language to explain complex concepts. +- Maintain a consistent tone and voice throughout the documentation. +- Structure content logically with appropriate headings, subheadings, and lists. +- Use examples and illustrations to aid understanding. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/general-cloud-native-documentation-rules.mdc b/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/general-cloud-native-documentation-rules.mdc new file mode 100644 index 0000000..8a728bd --- /dev/null +++ b/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/general-cloud-native-documentation-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Applies general rules for technical documentation across all Markdown files in the project, focusing on cloud-native technologies and Kubernetes. +globs: **/*.md +--- +- You are an expert Technical Writer with a deep understanding of cloud native technologies, Kubernetes, and technical documentation best practices. You excel at creating clear, concise, and user-friendly documentation using Markdown and MkDocs. +- You always use the latest stable versions of Kubernetes, cloud native tools, and MkDocs. You're familiar with the latest features, best practices, and trends in cloud native architecture, containerization, and orchestration. +- Don't be lazy, provide thorough and accurate documentation for all requested topics and features. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/metadata-and-seo-rules.mdc b/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/metadata-and-seo-rules.mdc new file mode 100644 index 0000000..cfba06c --- /dev/null +++ b/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/metadata-and-seo-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Focuses on optimizing metadata and SEO to improve discoverability of the documentation. +globs: **/*.md +--- +- Use relevant keywords in titles, headings, and descriptions. +- Add appropriate metadata to all pages. +- Optimize images and other media for search engines. +- Use internal and external links to improve navigation and SEO. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/mkdocs-specific-rules.mdc b/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/mkdocs-specific-rules.mdc new file mode 100644 index 0000000..c0e0f0b --- /dev/null +++ b/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/mkdocs-specific-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Defines specific rules related to MkDocs usage, including structure, plugins, themes, and customization configurations. +globs: mkdocs.yml +--- +- Follow best practices for MkDocs structure, including clear navigation, proper use of themes, and effective plugin integration. +- Ensure all MkDocs configurations are optimized for readability and maintainability. +- Use appropriate MkDocs plugins to enhance functionality and user experience. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/technical-accuracy-and-usability-rules.mdc b/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/technical-accuracy-and-usability-rules.mdc new file mode 100644 index 0000000..86f426a --- /dev/null +++ b/awesome-cursor-rules-mdc/kubernetes-mkdocs-documentation-cursorrules-prompt/technical-accuracy-and-usability-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Ensures the documentation is technically accurate and highly usable for the target audience. +globs: **/*.md +--- +- Verify all technical details and code examples for accuracy. +- Test all procedures and instructions to ensure they work as expected. +- Provide clear and concise instructions that are easy to follow. +- Use visuals to illustrate complex concepts and procedures. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/laravel-php-83-cursorrules-prompt-file/laravel-package-coding-standards.mdc b/awesome-cursor-rules-mdc/laravel-php-83-cursorrules-prompt-file/laravel-package-coding-standards.mdc new file mode 100644 index 0000000..256a380 --- /dev/null +++ b/awesome-cursor-rules-mdc/laravel-php-83-cursorrules-prompt-file/laravel-package-coding-standards.mdc @@ -0,0 +1,9 @@ +--- +description: Specific coding standards and conventions for Laravel package development, covering naming conventions. +globs: */src/**/*.* +--- +- File names: Use kebab-case (e.g., my-class-file.php) +- Class and Enum names: Use PascalCase (e.g., MyClass) +- Method names: Use camelCase (e.g., myMethod) +- Variable and Properties names: Use snake_case (e.g., my_variable) +- Constants and Enum Cases names: Use SCREAMING_SNAKE_CASE (e.g., MY_CONSTANT) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/laravel-php-83-cursorrules-prompt-file/laravel-package-development-guidelines.mdc b/awesome-cursor-rules-mdc/laravel-php-83-cursorrules-prompt-file/laravel-package-development-guidelines.mdc new file mode 100644 index 0000000..b14b568 --- /dev/null +++ b/awesome-cursor-rules-mdc/laravel-php-83-cursorrules-prompt-file/laravel-package-development-guidelines.mdc @@ -0,0 +1,10 @@ +--- +description: General guidelines for developing Laravel packages, including PHP version, conventions, and tooling. +globs: */src/**/*.* +--- +- Use PHP 8.3+ features where appropriate +- Follow Laravel conventions and best practices +- Utilize the spatie/laravel-package-tools boilerplate as a starting point +- Implement a default Pint configuration for code styling +- Prefer using helpers over facades when possible +- Focus on creating code that provides excellent developer experience (DX), better autocompletion, type safety, and comprehensive docblocks \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/laravel-php-83-cursorrules-prompt-file/laravel-package-structure.mdc b/awesome-cursor-rules-mdc/laravel-php-83-cursorrules-prompt-file/laravel-package-structure.mdc new file mode 100644 index 0000000..28253fa --- /dev/null +++ b/awesome-cursor-rules-mdc/laravel-php-83-cursorrules-prompt-file/laravel-package-structure.mdc @@ -0,0 +1,7 @@ +--- +description: Guidance on package structure and file organization within the Laravel package. +globs: */src/**/*.* +--- +- Outline the directory structure for the package +- Describe the purpose of each main directory and key files +- Explain how the package will be integrated into a Laravel application \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/laravel-php-83-cursorrules-prompt-file/laravel-package-testing-and-documentation.mdc b/awesome-cursor-rules-mdc/laravel-php-83-cursorrules-prompt-file/laravel-package-testing-and-documentation.mdc new file mode 100644 index 0000000..517d289 --- /dev/null +++ b/awesome-cursor-rules-mdc/laravel-php-83-cursorrules-prompt-file/laravel-package-testing-and-documentation.mdc @@ -0,0 +1,6 @@ +--- +description: Outlines the strategy for testing and documentation within the Laravel Package. +globs: */tests/**/*.* +--- +- Provide an overview of the testing strategy (e.g., unit tests, feature tests) +- Outline the documentation structure, including README.md, usage examples, and API references \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/laravel-php-83-cursorrules-prompt-file/readme-md-guidelines.mdc b/awesome-cursor-rules-mdc/laravel-php-83-cursorrules-prompt-file/readme-md-guidelines.mdc new file mode 100644 index 0000000..48f4f5a --- /dev/null +++ b/awesome-cursor-rules-mdc/laravel-php-83-cursorrules-prompt-file/readme-md-guidelines.mdc @@ -0,0 +1,5 @@ +--- +description: Guidelines for README.md file. +globs: */README.md +--- +- The README.md file should include usage examples and API references \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/alpine-js-usage-rules.mdc b/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/alpine-js-usage-rules.mdc new file mode 100644 index 0000000..ee0a523 --- /dev/null +++ b/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/alpine-js-usage-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Guidelines for using Alpine.js for declarative JavaScript functionality. +globs: /resources/views/**/*.blade.php +--- +- Use Alpine.js directives (x-data, x-bind, x-on, etc.) for declarative JavaScript functionality. +- Implement small, focused Alpine.js components for specific UI interactions. +- Combine Alpine.js with Livewire for enhanced interactivity when necessary. +- Keep Alpine.js logic close to the HTML it manipulates, preferably inline. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/key-conventions-rules.mdc b/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/key-conventions-rules.mdc new file mode 100644 index 0000000..95ec318 --- /dev/null +++ b/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/key-conventions-rules.mdc @@ -0,0 +1,12 @@ +--- +description: Key conventions to follow within the TALL stack project. +globs: /**/*.* +--- +- Follow Laravel's MVC architecture. +- Use Laravel's routing system for defining application endpoints. +- Implement proper request validation using Form Requests. +- Use Laravel's Blade templating engine for views, integrating with Livewire and Alpine.js. +- Implement proper database relationships using Eloquent. +- Use Laravel's built-in authentication scaffolding. +- Implement proper API resource transformations. +- Use Laravel's event and listener system for decoupled code. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/laravel-best-practices-rules.mdc b/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/laravel-best-practices-rules.mdc new file mode 100644 index 0000000..ff3954d --- /dev/null +++ b/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/laravel-best-practices-rules.mdc @@ -0,0 +1,17 @@ +--- +description: Laravel specific best practices for different modules and features. +globs: /**/*.php +--- +- Use Eloquent ORM instead of raw SQL queries when possible. +- Implement Repository pattern for data access layer. +- Use Laravel's built-in authentication and authorization features. +- Utilize Laravel's caching mechanisms for improved performance. +- Implement job queues for long-running tasks. +- Use Laravel's built-in testing tools (PHPUnit, Dusk) for unit and feature tests. +- Implement API versioning for public APIs. +- Use Laravel's localization features for multi-language support. +- Implement proper CSRF protection and security measures. +- Use Laravel Mix for asset compilation. +- Implement proper database indexing for improved query performance. +- Use Laravel's built-in pagination features. +- Implement proper error logging and monitoring. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/livewire-implementation-rules.mdc b/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/livewire-implementation-rules.mdc new file mode 100644 index 0000000..6140ff8 --- /dev/null +++ b/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/livewire-implementation-rules.mdc @@ -0,0 +1,10 @@ +--- +description: Guidelines for developing modular, reusable Livewire components. +globs: /app/Http/Livewire/**/*.php +--- +- Create modular, reusable Livewire components. +- Use Livewire's lifecycle hooks effectively (e.g., mount, updated, etc.). +- Implement real-time validation using Livewire's built-in validation features. +- Optimize Livewire components for performance, avoiding unnecessary re-renders. +- Integrate Livewire components with Laravel's backend features seamlessly. +- Implement lazy loading for Livewire components when appropriate. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/php-and-laravel-core-rules.mdc b/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/php-and-laravel-core-rules.mdc new file mode 100644 index 0000000..210b44b --- /dev/null +++ b/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/php-and-laravel-core-rules.mdc @@ -0,0 +1,19 @@ +--- +description: Specific PHP and Laravel core coding standards and best practices. +globs: /**/*.php +--- +- Use PHP 8.1+ features when appropriate (e.g., typed properties, match expressions). +- Follow PSR-12 coding standards. +- Use strict typing: declare(strict_types=1); +- Utilize Laravel's built-in features and helpers when possible. +- Follow Laravel's directory structure and naming conventions. +- Use lowercase with dashes for directories (e.g., app/Http/Controllers). +- Implement proper error handling and logging: + - Use Laravel's exception handling and logging features. + - Create custom exceptions when necessary. + - Use try-catch blocks for expected exceptions. +- Use Laravel's validation features for form and request validation. +- Implement middleware for request filtering and modification. +- Utilize Laravel's Eloquent ORM for database interactions. +- Use Laravel's query builder for complex database queries. +- Implement proper database migrations and seeders. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/security-best-practices-rules.mdc b/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/security-best-practices-rules.mdc new file mode 100644 index 0000000..2e784ff --- /dev/null +++ b/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/security-best-practices-rules.mdc @@ -0,0 +1,9 @@ +--- +description: General security guidelines for Laravel applications. +globs: /**/*.* +--- +- Always validate and sanitize user input. +- Use Laravel's CSRF protection for all forms. +- Implement proper authentication and authorization using Laravel's built-in features. +- Use Laravel's prepared statements to prevent SQL injection. +- Implement proper database transactions for data integrity. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/tailwind-css-styling-rules.mdc b/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/tailwind-css-styling-rules.mdc new file mode 100644 index 0000000..4d5ec3d --- /dev/null +++ b/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/tailwind-css-styling-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Tailwind CSS guidelines for responsive design and consistent styling. +globs: /resources/css/**/*.css +--- +- Utilize Tailwind's utility classes for responsive design. +- Implement a consistent color scheme and typography using Tailwind's configuration. +- Use Tailwind's @apply directive in CSS files for reusable component styles. +- Optimize for production by purging unused CSS classes. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/tall-stack-general.mdc b/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/tall-stack-general.mdc new file mode 100644 index 0000000..f33c096 --- /dev/null +++ b/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/tall-stack-general.mdc @@ -0,0 +1,12 @@ +--- +description: General guidelines for TALL stack development, emphasizing Laravel and PHP best practices. +globs: /**/*.* +--- +- You are an expert in the TALL stack: Laravel, Livewire, Alpine.js, and Tailwind CSS, with a strong emphasis on Laravel and PHP best practices. +- Write concise, technical responses with accurate PHP examples. +- Follow Laravel best practices and conventions. +- Use object-oriented programming with a focus on SOLID principles. +- Prefer iteration and modularization over duplication. +- Use descriptive variable and method names. +- Favor dependency injection and service containers. +- When providing code examples or explanations, always consider the integration of all four technologies in the TALL stack. Emphasize the synergy between these technologies and how they work together to create efficient, reactive, and visually appealing web applications, while adhering to Laravel and PHP best practices. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/testing-rules.mdc b/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/testing-rules.mdc new file mode 100644 index 0000000..79334ed --- /dev/null +++ b/awesome-cursor-rules-mdc/laravel-tall-stack-best-practices-cursorrules-prom/testing-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Guidelines for writing unit and feature tests. +globs: /tests/**/*.php +--- +- Write unit tests for Laravel controllers and models. +- Implement feature tests for Livewire components using Laravel's testing tools. +- Use Laravel Dusk for end-to-end testing when necessary. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/linux-nvidia-cuda-python-cursorrules-prompt-file/ai-alignment-rules.mdc b/awesome-cursor-rules-mdc/linux-nvidia-cuda-python-cursorrules-prompt-file/ai-alignment-rules.mdc new file mode 100644 index 0000000..7f200b8 --- /dev/null +++ b/awesome-cursor-rules-mdc/linux-nvidia-cuda-python-cursorrules-prompt-file/ai-alignment-rules.mdc @@ -0,0 +1,6 @@ +--- +description: Defines rules for aligning all aspects of development with project goals. +globs: **/* +--- +- Regularly review the repository structure, remove dead or duplicate code, address incomplete sections, and ensure the documentation is current. +- Use a markdown file to track progress, priorities, and ensure alignment with project goals throughout the development cycle. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/linux-nvidia-cuda-python-cursorrules-prompt-file/continuous-improvement-rules.mdc b/awesome-cursor-rules-mdc/linux-nvidia-cuda-python-cursorrules-prompt-file/continuous-improvement-rules.mdc new file mode 100644 index 0000000..efe4b82 --- /dev/null +++ b/awesome-cursor-rules-mdc/linux-nvidia-cuda-python-cursorrules-prompt-file/continuous-improvement-rules.mdc @@ -0,0 +1,6 @@ +--- +description: Guides continuous improvement by seeking feedback, suggesting enhancements, and documenting changes. +globs: **/* +--- +- Actively seek feedback on the app's functionality and user experience. +- Suggest improvements that could make the app more efficient or user-friendly, ensuring any changes maintain the app's core principles. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/linux-nvidia-cuda-python-cursorrules-prompt-file/development-principles-rules.mdc b/awesome-cursor-rules-mdc/linux-nvidia-cuda-python-cursorrules-prompt-file/development-principles-rules.mdc new file mode 100644 index 0000000..2ac0d4d --- /dev/null +++ b/awesome-cursor-rules-mdc/linux-nvidia-cuda-python-cursorrules-prompt-file/development-principles-rules.mdc @@ -0,0 +1,6 @@ +--- +description: Governs development principles for python code. +globs: **/*.py +--- +- Ensure the quantization process is streamlined, efficient, and free of errors. +- Handle edge cases, such as incompatible models or quantization failures, with clear and informative error messages, along with suggested resolutions. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/linux-nvidia-cuda-python-cursorrules-prompt-file/documentation-rules.mdc b/awesome-cursor-rules-mdc/linux-nvidia-cuda-python-cursorrules-prompt-file/documentation-rules.mdc new file mode 100644 index 0000000..b9d9d7b --- /dev/null +++ b/awesome-cursor-rules-mdc/linux-nvidia-cuda-python-cursorrules-prompt-file/documentation-rules.mdc @@ -0,0 +1,6 @@ +--- +description: Rules for keeping all markdown documentation up to date, including the README.md and any necessary instructions or examples. +globs: **/*.md +--- +- Keep all documentation up to date, including the README.md and any necessary instructions or examples. +- Clearly document any enhancements, bug fixes, or changes made during development to ensure transparency and maintainability. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/linux-nvidia-cuda-python-cursorrules-prompt-file/project-overview-rules.mdc b/awesome-cursor-rules-mdc/linux-nvidia-cuda-python-cursorrules-prompt-file/project-overview-rules.mdc new file mode 100644 index 0000000..148de46 --- /dev/null +++ b/awesome-cursor-rules-mdc/linux-nvidia-cuda-python-cursorrules-prompt-file/project-overview-rules.mdc @@ -0,0 +1,9 @@ +--- +description: Applies to the project README file, focusing on providing a simple and usable experience. +globs: README.md +--- +- Prioritize maintaining the app's simplicity and ease of use. +- The app is named 'srt-model-quantizing' and is developed by SolidRusT Networks. +- The app is a pipeline for downloading models from Hugging Face, quantizing them, and uploading them to a Hugging Face-compatible repository. +- The app should be able to run on Linux servers only. +- Supports both Nvidia CUDA and AMD ROCm GPUs. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/next-type-llm/assistant-response-rules.mdc b/awesome-cursor-rules-mdc/next-type-llm/assistant-response-rules.mdc new file mode 100644 index 0000000..5ef8817 --- /dev/null +++ b/awesome-cursor-rules-mdc/next-type-llm/assistant-response-rules.mdc @@ -0,0 +1,33 @@ +--- +description: Defines how the assistant should respond, including role, language specialization, and required sections. +globs: * +--- +You are user’s senior, inquisitive, and clever pair programmer. Let’s go step by step: + +Unless you’re only answering a quick question, start your response with: + +""" +Language > Specialist: {programming language used} > {the subject matter EXPERT SPECIALIST role} +Includes: CSV list of needed libraries, packages, and key language features if any +Requirements: qualitative description of VERBOSITY, standards, and the software design requirements +Plan +Briefly list your step-by-step plan, including any components that won’t be addressed yet +""" + +Act like the chosen language EXPERT SPECIALIST and respond while following CODING STYLE. If using Jupyter, start now. Remember to add path/filename comment at the top. + +Consider the entire chat session, and end your response as follows: + +""" +History: complete, concise, and compressed summary of ALL requirements and ALL code you’ve written + +Source Tree: (sample, replace emoji) + +(:floppy_disk:=saved: link to file, :warning:=unsaved but named snippet, :ghost:=no filename) file.ext +:package: Class (if exists) +(:white_check_mark:=finished, :o:=has TODO, :red_circle:=otherwise incomplete) symbol +:red_circle: global symbol +etc. +etc. +Next Task: NOT finished=short description of next task FINISHED=list EXPERT SPECIALIST suggestions for enhancements/performance improvements. +""" \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/next-type-llm/coding-process-rules.mdc b/awesome-cursor-rules-mdc/next-type-llm/coding-process-rules.mdc new file mode 100644 index 0000000..cb507f3 --- /dev/null +++ b/awesome-cursor-rules-mdc/next-type-llm/coding-process-rules.mdc @@ -0,0 +1,9 @@ +--- +description: Specifies the coding process guidelines, applicable to all coding tasks. +globs: * +--- +- Show concise step-by-step reasoning +- Prioritize tasks/steps you’ll address in each response +- Finish one file before the next +- If you can’t finish code, add TODO: comments +- If needed, interrupt yourself and ask to continue \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/next-type-llm/coding-style-rules.mdc b/awesome-cursor-rules-mdc/next-type-llm/coding-style-rules.mdc new file mode 100644 index 0000000..3fda82a --- /dev/null +++ b/awesome-cursor-rules-mdc/next-type-llm/coding-style-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Defines the general coding style guidelines, applicable to all project files. +globs: * +--- +- Code must start with path/filename as a one-line comment +- Comments MUST describe mainly purpose, but also effect when necessary +- Prioritize modularity, DRY, performance, and security \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/next-type-llm/editing-code-rules.mdc b/awesome-cursor-rules-mdc/next-type-llm/editing-code-rules.mdc new file mode 100644 index 0000000..730ee1a --- /dev/null +++ b/awesome-cursor-rules-mdc/next-type-llm/editing-code-rules.mdc @@ -0,0 +1,11 @@ +--- +description: Prioritizes the method for editing code and defines verbosity levels. +globs: * +--- +- Editing Code (prioritized choices): + - Return completely edited file +- Verbosity: I may use V=[0-3] to define code detail: + - V=0 code golf + - V=1 concise + - V=2 simple + - V=3 verbose, DRY with extracted functions \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/next-type-llm/general-project-assistant-rules.mdc b/awesome-cursor-rules-mdc/next-type-llm/general-project-assistant-rules.mdc new file mode 100644 index 0000000..930d204 --- /dev/null +++ b/awesome-cursor-rules-mdc/next-type-llm/general-project-assistant-rules.mdc @@ -0,0 +1,6 @@ +--- +description: Defines holistic requirements for understanding the project and general assistant behavior, applicable project-wide. +globs: * +--- +- Don’t apologize for errors: fix them +- You may ask about stack assumptions if writing code \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/next-type-llm/llm-integration-rules.mdc b/awesome-cursor-rules-mdc/next-type-llm/llm-integration-rules.mdc new file mode 100644 index 0000000..5d4c03e --- /dev/null +++ b/awesome-cursor-rules-mdc/next-type-llm/llm-integration-rules.mdc @@ -0,0 +1,6 @@ +--- +description: Specifies rules for LLM integration, including language and API endpoint details, specific to LLM integration related files. +globs: llm/**/*.* +--- +- Python wrapper for LLM interaction +- API endpoint to connect frontend with Python backend \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/next-type-llm/technology-stack-backend-rules.mdc b/awesome-cursor-rules-mdc/next-type-llm/technology-stack-backend-rules.mdc new file mode 100644 index 0000000..6ddf99a --- /dev/null +++ b/awesome-cursor-rules-mdc/next-type-llm/technology-stack-backend-rules.mdc @@ -0,0 +1,6 @@ +--- +description: Specifies the backend technology stack and coding style, applicable to backend directories. +globs: backend/**/*.* +--- +- Framework: Next.js API Routes (for serverless functions) +- Language: TypeScript (for API routes) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/next-type-llm/technology-stack-frontend-rules.mdc b/awesome-cursor-rules-mdc/next-type-llm/technology-stack-frontend-rules.mdc new file mode 100644 index 0000000..31feb5f --- /dev/null +++ b/awesome-cursor-rules-mdc/next-type-llm/technology-stack-frontend-rules.mdc @@ -0,0 +1,9 @@ +--- +description: Specifies the frontend technology stack and coding style, applicable to frontend directories. +globs: frontend/**/*.* +--- +- Framework: Next.js (React) +- Language: TypeScript +- UI Components: shadcn/ui (based on Radix UI primitives) +- Styling: Tailwind CSS +- Icons: Lucide React \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-additional-instructions.mdc b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-additional-instructions.mdc new file mode 100644 index 0000000..c0162f8 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-additional-instructions.mdc @@ -0,0 +1,11 @@ +--- +description: This rule provides additional instructions for Next.js development, covering various aspects such as TypeScript, SEO, image optimization, styling, and error handling. +globs: **/*.{js,jsx,ts,tsx} +--- +- Use TypeScript for type safety +- Implement proper metadata for SEO +- Utilize Next.js Image component for optimized images +- Use CSS Modules or Tailwind CSS for styling +- Implement proper error boundaries +- Follow Next.js naming conventions for special files +- Use environment variables for configuration \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-app-router-best-practices.mdc b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-app-router-best-practices.mdc new file mode 100644 index 0000000..96ebf21 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-app-router-best-practices.mdc @@ -0,0 +1,11 @@ +--- +description: This rule enforces Next.js App Router best practices in the 'app' directory. +globs: app/**/*.* +--- +- Use server components by default +- Implement client components only when necessary +- Utilize the new file-based routing system +- Use layout.js for shared layouts +- Implement loading.js for loading states +- Use error.js for error handling +- Utilize route handlers for API routes \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-env-variables.mdc b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-env-variables.mdc new file mode 100644 index 0000000..b54ad06 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-env-variables.mdc @@ -0,0 +1,5 @@ +--- +description: This rule advises using environment variables for configuration in a Next.js project. +globs: **/*.{js,jsx,ts,tsx} +--- +- Use environment variables for configuration \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-error-handling.mdc b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-error-handling.mdc new file mode 100644 index 0000000..3de8446 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-error-handling.mdc @@ -0,0 +1,5 @@ +--- +description: This rule mandates proper error boundaries for effective error handling in Next.js applications. +globs: **/*.{js,jsx,ts,tsx} +--- +- Implement proper error boundaries \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-folder-structure.mdc b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-folder-structure.mdc new file mode 100644 index 0000000..e2f4b4e --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-folder-structure.mdc @@ -0,0 +1,13 @@ +--- +description: This rule defines the recommended folder structure for Next.js projects. +globs: app/**/*.* +--- +- Adhere to the following folder structure: + +app/ + layout.js + page.js + components/ + lib/ + styles/ +public/ \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-image-optimization.mdc b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-image-optimization.mdc new file mode 100644 index 0000000..530d972 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-image-optimization.mdc @@ -0,0 +1,5 @@ +--- +description: This rule promotes the optimization of images using the Next.js Image component for better performance. +globs: **/*.{js,jsx,ts,tsx} +--- +- Utilize Next.js Image component for optimized images \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-naming-conventions.mdc b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-naming-conventions.mdc new file mode 100644 index 0000000..c390140 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-naming-conventions.mdc @@ -0,0 +1,5 @@ +--- +description: This rule helps in following Next.js file naming conventions for special files within the 'app' directory. +globs: app/**/*.* +--- +- Follow Next.js naming conventions for special files \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-seo-guidelines.mdc b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-seo-guidelines.mdc new file mode 100644 index 0000000..54c97cc --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-seo-guidelines.mdc @@ -0,0 +1,5 @@ +--- +description: This rule ensures that SEO best practices are followed through proper metadata implementation in Next.js. +globs: **/*.{js,jsx,ts,tsx} +--- +- Implement proper metadata for SEO \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-styling-conventions.mdc b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-styling-conventions.mdc new file mode 100644 index 0000000..94c90f3 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-styling-conventions.mdc @@ -0,0 +1,5 @@ +--- +description: This rule recommends using CSS Modules or Tailwind CSS for styling components in a Next.js project. +globs: **/*.{js,jsx,ts,tsx,css,scss} +--- +- Use CSS Modules or Tailwind CSS for styling \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-typescript-usage.mdc b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-typescript-usage.mdc new file mode 100644 index 0000000..5469810 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-app-router-cursorrules-prompt-file/next-js-typescript-usage.mdc @@ -0,0 +1,5 @@ +--- +description: This rule encourages the usage of Typescript for type safety across a Next.js project. +globs: **/*.{ts,tsx} +--- +- Use TypeScript for type safety \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/aceternity-ui-configuration.mdc b/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/aceternity-ui-configuration.mdc new file mode 100644 index 0000000..524b0af --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/aceternity-ui-configuration.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies that Aceternity UI dependencies should be considered during code generation or modification. +globs: **/aceternityui/**/*.* +--- +- The project uses Aceternity UI. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/bcrypt-rules.mdc b/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/bcrypt-rules.mdc new file mode 100644 index 0000000..f044a08 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/bcrypt-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Defines to use bcryptjs for hash functions. +globs: **/*bcryptjs*.* +--- +- Use bcryptjs when you need hash functions. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/ckeditor-rules.mdc b/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/ckeditor-rules.mdc new file mode 100644 index 0000000..c1f941e --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/ckeditor-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Defines CKEditor is being used for text editing +globs: **/ckeditor5/**/*.* +--- +- The project uses CKEditor for text editing \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/framer-motion-rules.mdc b/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/framer-motion-rules.mdc new file mode 100644 index 0000000..f8f9a45 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/framer-motion-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Defines framer motion is being used for animations +globs: **/framer-motion/**/*.* +--- +- The project uses framer motion for animations \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/material-ui-configuration.mdc b/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/material-ui-configuration.mdc new file mode 100644 index 0000000..fa5fc3c --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/material-ui-configuration.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies that Material UI dependencies should be considered during code generation or modification. +globs: **/@mui/**/*.* +--- +- The project uses Material UI. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/next-js-project-setup.mdc b/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/next-js-project-setup.mdc new file mode 100644 index 0000000..c40d461 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/next-js-project-setup.mdc @@ -0,0 +1,11 @@ +--- +description: Defines the core technologies and configurations used in the Next.js project setup, including TypeScript, Tailwind CSS, and App Router. +globs: next.config.js +--- +- Project is based on Next.js. +- Use TypeScript. +- Do not use ESLint. +- Use Tailwind CSS. +- Use `src/` directory. +- Use App Router. +- Import alias is configured as @/. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/prisma-orm-rules.mdc b/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/prisma-orm-rules.mdc new file mode 100644 index 0000000..14ed906 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/prisma-orm-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Defines that prisma should be considered as ORM. +globs: prisma/schema.prisma +--- +- Prisma is being used as an ORM. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/shadcn-ui-configuration.mdc b/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/shadcn-ui-configuration.mdc new file mode 100644 index 0000000..0fb16f4 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/shadcn-ui-configuration.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies that Shadcn UI dependencies should be considered during code generation or modification. +globs: **/shadcn-ui/**/*.* +--- +- The project uses Shadcn UI. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/tailwind-css-configuration.mdc b/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/tailwind-css-configuration.mdc new file mode 100644 index 0000000..988efd5 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-material-ui-tailwind-css-cursorrules-prompt/tailwind-css-configuration.mdc @@ -0,0 +1,6 @@ +--- +description: Specifies that Tailwind CSS is a core part of the project's styling and should be considered during code generation or modification. +globs: tailwind.config.js +--- +- Tailwind CSS is used for styling. +- Use tailwind-merge \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/component-naming-and-directory-structure.mdc b/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/component-naming-and-directory-structure.mdc new file mode 100644 index 0000000..9bfd60e --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/component-naming-and-directory-structure.mdc @@ -0,0 +1,22 @@ +--- +description: Rules for naming components and structuring directories within the src/components folder, including conventions for lowercase names with dashes. +globs: src/components/**/* +--- +- All components should go in src/components and be named like new-component.tsx +- Use lowercase with dashes for directories (e.g., components/auth-wizard). +- Favor named exports for components. +- Within the /src/components folder, consider organizing components by type or feature: + - By Type: Group components like forms, buttons, layout elements, etc. + - By Feature: For larger applications, group components related to specific features or domains. +For example: + /src/components + ├── /ui + │ ├── /Button + │ ├── /Modal + │ └── /Card + ├── /forms + │ ├── /TextField + │ └── /Select + └── /layout + ├── /Navbar + └── /Footer \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/general-typescript-node-js-next-js-rules.mdc b/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/general-typescript-node-js-next-js-rules.mdc new file mode 100644 index 0000000..68cf8aa --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/general-typescript-node-js-next-js-rules.mdc @@ -0,0 +1,15 @@ +--- +description: General rules for TypeScript, Node.js, and Next.js projects, covering code style, naming conventions, and TypeScript usage. +globs: **/*.{ts,tsx,js,jsx} +--- +- You are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, and Tailwind and Framer Motion. +- Write concise, technical TypeScript code with accurate examples. +- Use functional and declarative programming patterns; avoid classes. +- Prefer iteration and modularization over code duplication. +- Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError). +- Use TypeScript for all code; prefer interfaces over types. +- Avoid enums; use maps instead. +- Use functional components with TypeScript interfaces. +- Use the "function" keyword for pure functions. +- Avoid unnecessary curly braces in conditionals; use concise syntax for simple statements. +- Use declarative JSX. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/next-js-conventions-and-best-practices.mdc b/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/next-js-conventions-and-best-practices.mdc new file mode 100644 index 0000000..d1d29ee --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/next-js-conventions-and-best-practices.mdc @@ -0,0 +1,12 @@ +--- +description: Rules for adhering to Next.js conventions, including data fetching, rendering, routing, and using 'nuqs' for URL search parameter state management. +globs: src/**/* +--- +- Use 'nuqs' for URL search parameter state management. +- Optimize Web Vitals (LCP, CLS, FID). +- Limit 'use client': + - Favor server components and Next.js SSR. + - Use only for Web API access in small components. + - Avoid for data fetching or state management. +- Follow Next.js docs for Data Fetching, Rendering, and Routing. +- Place both the /app and /components folders under a /src directory. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/performance-optimization-rules.mdc b/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/performance-optimization-rules.mdc new file mode 100644 index 0000000..c3ab3d5 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/performance-optimization-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Rules for performance optimization in Next.js applications, including minimizing client-side logic, using Suspense, and optimizing images. +globs: **/*.{ts,tsx,js,jsx} +--- +- Minimize 'use client', 'useEffect', and 'setState'; favor React Server Components (RSC). +- Wrap client components in Suspense with fallback. +- Use dynamic loading for non-critical components. +- Optimize images: use WebP format, include size data, implement lazy loading. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/placeholder-images.mdc b/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/placeholder-images.mdc new file mode 100644 index 0000000..19582e4 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/placeholder-images.mdc @@ -0,0 +1,5 @@ +--- +description: Rule to use placekitten.com for placeholder images in seed data. +globs: **/seed.ts +--- +- While creating placeholder images as a part of your seed data, use https://placekitten.com/ \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/private-vs-shared-components.mdc b/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/private-vs-shared-components.mdc new file mode 100644 index 0000000..5a9f039 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/private-vs-shared-components.mdc @@ -0,0 +1,6 @@ +--- +description: Rules for determining if a component should be private or shared, and where to place them based on their use-case. +globs: src/**/* +--- +- Private Components: For components used only within specific pages, you can create a _components folder within the relevant /app subdirectory. +- Shared Components: The /src/components folder should contain reusable components used across multiple pages or features. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/ui-and-styling-with-shadcn-ui-and-tailwind.mdc b/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/ui-and-styling-with-shadcn-ui-and-tailwind.mdc new file mode 100644 index 0000000..e5ff453 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-react-tailwind-cursorrules-prompt-file/ui-and-styling-with-shadcn-ui-and-tailwind.mdc @@ -0,0 +1,6 @@ +--- +description: Rules for UI development and styling using Shadcn UI and Tailwind CSS, emphasizing responsive design and a mobile-first approach. +globs: **/*.{ts,tsx,js,jsx} +--- +- Use Shadcn UI, and Tailwind for components and styling. +- Implement responsive design with Tailwind CSS; use a mobile-first approach. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-react-typescript-cursorrules-prompt-file/error-handling-and-validation.mdc b/awesome-cursor-rules-mdc/nextjs-react-typescript-cursorrules-prompt-file/error-handling-and-validation.mdc new file mode 100644 index 0000000..a781fca --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-react-typescript-cursorrules-prompt-file/error-handling-and-validation.mdc @@ -0,0 +1,12 @@ +--- +description: Prioritizes error handling and edge cases in all code. Defines how to manage errors, handle preconditions, and implement logging. +globs: **/*.{ts,js,jsx,tsx} +--- +- Prioritize error handling and edge cases: + - Handle errors and edge cases at the beginning of functions. + - Use early returns for error conditions to avoid deeply nested if statements. + - Place the happy path last in the function for improved readability. + - Avoid unnecessary else statements; use if-return pattern instead. + - Use guard clauses to handle preconditions and invalid states early. + - Implement proper error logging and user-friendly error messages. + - Consider using custom error types or error factories for consistent error handling. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-react-typescript-cursorrules-prompt-file/general-solidity-typescript-node-js-next-js-rule.mdc b/awesome-cursor-rules-mdc/nextjs-react-typescript-cursorrules-prompt-file/general-solidity-typescript-node-js-next-js-rule.mdc new file mode 100644 index 0000000..a5e0320 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-react-typescript-cursorrules-prompt-file/general-solidity-typescript-node-js-next-js-rule.mdc @@ -0,0 +1,12 @@ +--- +description: General coding conventions and preferences for Solidity, TypeScript, Node.js, and Next.js projects. This rule sets the foundation for code style and architecture. +globs: **/*.{sol,ts,js,jsx,tsx} +--- +- You are an expert in Solidity, TypeScript, Node.js, Next.js 14 App Router, React, Vite, Viem v2, Wagmi v2, Shadcn UI, Radix UI, and Tailwind Aria. +- Write concise, technical responses with accurate TypeScript examples. +- Use functional, declarative programming. Avoid classes. +- Prefer iteration and modularization over duplication. +- Use descriptive variable names with auxiliary verbs (e.g., isLoading). +- Use lowercase with dashes for directories (e.g., components/auth-wizard). +- Favor named exports for components. +- Use the Receive an Object, Return an Object (RORO) pattern. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-react-typescript-cursorrules-prompt-file/javascript-typescript-coding-style.mdc b/awesome-cursor-rules-mdc/nextjs-react-typescript-cursorrules-prompt-file/javascript-typescript-coding-style.mdc new file mode 100644 index 0000000..887e296 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-react-typescript-cursorrules-prompt-file/javascript-typescript-coding-style.mdc @@ -0,0 +1,10 @@ +--- +description: Specific JavaScript/TypeScript coding style guidelines. Focuses on syntax, usage of TypeScript features, and file structure. +globs: **/*.{ts,js,jsx,tsx} +--- +- Use "function" keyword for pure functions. Omit semicolons. +- Use TypeScript for all code. Prefer interfaces over types. Avoid enums, use maps. +- File structure: Exported component, subcomponents, helpers, static content, types. +- Avoid unnecessary curly braces in conditional statements. +- For single-line statements in conditionals, omit curly braces. +- Use concise, one-line syntax for simple conditional statements (e.g., if (condition) doSomething()). \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-react-typescript-cursorrules-prompt-file/next-js-conventions.mdc b/awesome-cursor-rules-mdc/nextjs-react-typescript-cursorrules-prompt-file/next-js-conventions.mdc new file mode 100644 index 0000000..0b1beb1 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-react-typescript-cursorrules-prompt-file/next-js-conventions.mdc @@ -0,0 +1,11 @@ +--- +description: Key Next.js conventions for state changes, web vitals, and client-side code usage. +globs: **/*.{ts,js,jsx,tsx} +--- +- Rely on Next.js App Router for state changes. +- Prioritize Web Vitals (LCP, CLS, FID). +- Minimize 'use client' usage: + - Prefer server components and Next.js SSR features. + - Use 'use client' only for Web API access in small components. + - Avoid using 'use client' for data fetching or state management. + - Refer to Next.js documentation for Data Fetching, Rendering, and Routing best practices. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-react-typescript-cursorrules-prompt-file/next-js-server-actions.mdc b/awesome-cursor-rules-mdc/nextjs-react-typescript-cursorrules-prompt-file/next-js-server-actions.mdc new file mode 100644 index 0000000..1a5cbb2 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-react-typescript-cursorrules-prompt-file/next-js-server-actions.mdc @@ -0,0 +1,16 @@ +--- +description: Specific guidelines for Next.js server actions, including error modeling, validation, and usage of next-safe-action. +globs: app/**/*.{ts,js,jsx,tsx} +--- +- Model expected errors as return values: Avoid using try/catch for expected errors in Server Actions. Use useActionState to manage these errors and return them to the client. +- Use error boundaries for unexpected errors: Implement error boundaries using error.tsx and global-error.tsx files to handle unexpected errors and provide a fallback UI. +- Use useActionState with react-hook-form for form validation. +- Code in services/ dir always throw user-friendly errors that tanStackQuery can catch and show to the user. +- Use next-safe-action for all server actions: + - Implement type-safe server actions with proper validation. + - Utilize the action function from next-safe-action for creating actions. + - Define input schemas using Zod for robust type checking and validation. + - Handle errors gracefully and return appropriate responses. + - Use import type { ActionResponse } from '@/types/actions' + - Ensure all server actions return the ActionResponse type + - Implement consistent error handling and success responses using ActionResponse \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-react-typescript-cursorrules-prompt-file/react-next-js-components.mdc b/awesome-cursor-rules-mdc/nextjs-react-typescript-cursorrules-prompt-file/react-next-js-components.mdc new file mode 100644 index 0000000..5627f6d --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-react-typescript-cursorrules-prompt-file/react-next-js-components.mdc @@ -0,0 +1,17 @@ +--- +description: React/Next.js component specific rules. This includes using functional components, JSX, styling, and other React/Next.js conventions. +globs: components/**/*.{ts,js,jsx,tsx} +--- +- Use functional components and TypeScript interfaces. +- Use declarative JSX. +- Use function, not const, for components. +- Use Shadcn UI, Radix, and Tailwind Aria for components and styling. +- Implement responsive design with Tailwind CSS. +- Use mobile-first approach for responsive design. +- Place static content and interfaces at file end. +- Use content variables for static content outside render functions. +- Minimize 'use client', 'useEffect', and 'setState'. Favor RSC. +- Use Zod for form validation. +- Wrap client components in Suspense with fallback. +- Use dynamic loading for non-critical components. +- Optimize images: WebP format, size data, lazy loading. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-seo-dev-cursorrules-prompt-file/general-code-commenting.mdc b/awesome-cursor-rules-mdc/nextjs-seo-dev-cursorrules-prompt-file/general-code-commenting.mdc new file mode 100644 index 0000000..cfa2867 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-seo-dev-cursorrules-prompt-file/general-code-commenting.mdc @@ -0,0 +1,6 @@ +--- +description: Ensures helpful comments are added to the code and that old, relevant comments are preserved. +globs: **/*.* +--- +- Always add helpful comments to the code explaining what you are doing. +- Never delete old comments, unless they are no longer relevant because the code has been rewritten or deleted. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-seo-dev-cursorrules-prompt-file/next-js-project-rules.mdc b/awesome-cursor-rules-mdc/nextjs-seo-dev-cursorrules-prompt-file/next-js-project-rules.mdc new file mode 100644 index 0000000..3606b36 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-seo-dev-cursorrules-prompt-file/next-js-project-rules.mdc @@ -0,0 +1,4 @@ +--- +description: Apply the specified rules for next js projects +globs: next.config.js +--- diff --git a/awesome-cursor-rules-mdc/nextjs-seo-dev-cursorrules-prompt-file/package-json-modification-protection.mdc b/awesome-cursor-rules-mdc/nextjs-seo-dev-cursorrules-prompt-file/package-json-modification-protection.mdc new file mode 100644 index 0000000..fa70a8a --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-seo-dev-cursorrules-prompt-file/package-json-modification-protection.mdc @@ -0,0 +1,5 @@ +--- +description: Protects lines with the specific 'Do not touch this line Cursor' comment within package.json. +globs: package.json +--- +- Whenever you see a line with the following comment, do not touch it, rewrite it, or delete it: "Do not touch this line Cursor" \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/build-notes-file-rules.mdc b/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/build-notes-file-rules.mdc new file mode 100644 index 0000000..2fced0b --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/build-notes-file-rules.mdc @@ -0,0 +1,31 @@ +--- +description: Enforces rules for creating and managing build notes files within the /ProjectDocs/Build_Notes/ directory, including naming conventions, content structure, and update frequency. +globs: **/ProjectDocs/Build_Notes/**/* +--- +- **Location & Naming:** + - Store all notes files in `/ProjectDocs/Build_Notes/`. + - Use a logical, descriptive naming convention, e.g., `build-title_phase-#_task-group-name.md`. + - Use the `` to describe the build task. + - Use the `` to apply the Phase # to the build task. + - Use the `` to describe the task group name. + - Example: `supabase-schema-standardization_phase-1_preparation-and-code-analysis.md` + - `supabase-schema-standardization` is the build title + - `phase-1` is the phase number + - `preparation-and-code-analysis` is the task group name +- **Content Structure:** + - Begin with a brief **Task Objective** that summarizes what you aim to achieve. + - Provide **Current State Assessment**: a short description of the current state of the project pertaining to the build tasks. + - Provide **Future State Goal**: a short description of the future state of the project pertaining to the build tasks. + - Follow with a **Implementation Plan**: a numbered list of **steps** containing checklist **tasks** to achieve the future state. + - Update the **Implementation Plan** as tasks are completed and line out not applicable tasks. NEVER DELETE TASKS FROM THE PLAN. + - If the plan changes or evolves, add new **steps** or **tasks**, rather than overwriting previous content. +- **When to Update:** + - **At Task Start:** Create or open the task-specific notes file and record the initial plan before coding. + - **During Task Execution:** Add updates when plans change, difficulties arise, or new insights emerge. + - **At Task Completion:** Append a summary of what was done and verify it aligns with the original objective. +- **Style & Tone:** + - Keep notes succinct, on-topic, and free of unrelated commentary. + - Maintain a logical sequence so that future readers can understand the decision-making process without confusion. +- **Completion of Build Notes:** + - Once the build notes are complete, move the file to the `/ProjectDocs/Build_Notes/completed/` directory. + - If build notes are deprecated and no longer needed, move the file to the `/ProjectDocs/Build_Notes/archived/` directory. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/build-notes-guidelines.mdc b/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/build-notes-guidelines.mdc new file mode 100644 index 0000000..e055a2a --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/build-notes-guidelines.mdc @@ -0,0 +1,9 @@ +--- +description: Defines the process for creating and maintaining build notes, emphasizing clarity, traceability, and incremental updates for task progress tracking. +globs: **/*.* +--- +- You must create a 'Build Notes' file for each task group to track the progress of the task group we work on. +- **Clarity & Brevity:** Keep notes concise, direct, and focused on the task at hand. +- **Logical Naming:** Use a consistent naming convention that ties each notes file to a specific task and date. +- **Incremental Updates:** Update notes as plans evolve or tasks are completed. Append rather than overwrite. +- **Traceability:** Ensure that each decision or change in approach is recorded and easy to follow. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/context-files-rules.mdc b/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/context-files-rules.mdc new file mode 100644 index 0000000..8cd0ce2 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/context-files-rules.mdc @@ -0,0 +1,15 @@ +--- +description: Specifies rules for managing context files, including the master project context and supplementary files, emphasizing stability and change management. +globs: **/ProjectDocs/contexts/**/* +--- +- **Master Project Context (`projectContext.md`):** + - Located in `/ProjectDocs/contexts/`. + - Provides the overarching project scope, requirements, and design principles. + - Only update this file if there are major changes to the project’s fundamental direction or scope. +- **Additional Context Files:** + - Supplementary files (e.g., `uiContext.md`, `featureAContext.md`) may be created for more detailed specifications on certain functionalities, designs, or areas of the application. + - Keep these files stable. Update them only when new, approved changes need to be documented. + - Reference these files frequently to ensure development aligns with established guidelines. +- **Change Management:** + - Record any changes to context files within the corresponding build notes file for that task. + - Maintain a clear rationale for context changes to preserve transparency and alignment with the core project goals. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/general-code-quality-and-style.mdc b/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/general-code-quality-and-style.mdc new file mode 100644 index 0000000..12bbca9 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/general-code-quality-and-style.mdc @@ -0,0 +1,15 @@ +--- +description: Enforces general code quality and style guidelines across the entire project, including TypeScript best practices, functional programming principles, and code review processes. +globs: **/*.* +--- +- Write concise, maintainable, and strongly typed code with accurate TypeScript implementations. +- Embrace functional, declarative programming. Avoid OOP and classes. +- Limit files to a maximum of 150 lines; refactor into smaller modules if exceeded. +- Prefer iteration and modularization over duplication. +- Use descriptive, semantic variable names with auxiliary verbs (e.g., `isLoading`, `hasError`). +- Use lowercase with dashes for directories and files (e.g., `components/auth-wizard`). +- Favor named exports for components. +- Adopt RORO (Receive an Object, Return an Object) for function parameters/returns. +- Always attain to use DRY (Don't Repeat Yourself) principles. +- Conduct regular code reviews and frequent refactoring sessions to ensure consistency and quality. +- Check and improve Web Vitals (LCP, CLS, FID) to maintain performance and user experience. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/monorepo-and-tooling.mdc b/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/monorepo-and-tooling.mdc new file mode 100644 index 0000000..3c757a6 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/monorepo-and-tooling.mdc @@ -0,0 +1,7 @@ +--- +description: Outlines the monorepo structure and tooling conventions, emphasizing the use of Taskfile.yml, and proper handling of environment variables. +globs: **/packages/**/*, **/app/**/* +--- +- If using a monorepo structure, place shared code in a `packages/` directory and app-specific code in `app/`. +- Use `Taskfile.yml` commands for development, testing, and deployment tasks. +- Keep environment variables and sensitive data outside of code and access them through `.env` files or similar configuration. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/next-js-15-conventions.mdc b/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/next-js-15-conventions.mdc new file mode 100644 index 0000000..92b7bd2 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/next-js-15-conventions.mdc @@ -0,0 +1,10 @@ +--- +description: Sets conventions for Next.js 15+ projects, including leveraging the App Router, React Server Components (RSC), SSR capabilities, and Zustand for state management. +globs: **/*.js, **/*.jsx, **/*.ts, **/*.tsx +--- +- Target **Next.js 15+** and leverage the App Router, React Server Components (RSC), and SSR capabilities. +- Use Zustand for state management in client components when necessary. +- Maintain proper Shadcn UI management using `npx shadcn@latest add` for new components. +- Follow a mobile-first approach and responsive design patterns. +- Emphasize server-side logic, minimizing the usage of `use client` and other client-only APIs. +- Structure project as Progressive Web App (PWA) with offline capabilities, app-like experience, and installability across devices. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/project-context-review.mdc b/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/project-context-review.mdc new file mode 100644 index 0000000..c36113f --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-supabase-shadcn-pwa-cursorrules-prompt-file/project-context-review.mdc @@ -0,0 +1,8 @@ +--- +description: Specifies the importance of reviewing and maintaining project context files, ensuring stability, selective updates, and accessibility for future developers. +globs: **/*.* +--- +- You must review the `projectContext.md` as we need to ensure that the project context is up to date and accurate. +- **Stability:** Treat context files as stable references, not daily scratchpads. +- **Selective Updates:** Update context files only when there are significant, approved changes to requirements or project scope. +- **Accessibility:** Make context files easily understandable and organized so future developers can quickly grasp the project’s core guidance. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-supabase-todo-app-cursorrules-prompt-file/todo-app-general-rules.mdc b/awesome-cursor-rules-mdc/nextjs-supabase-todo-app-cursorrules-prompt-file/todo-app-general-rules.mdc new file mode 100644 index 0000000..b341af5 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-supabase-todo-app-cursorrules-prompt-file/todo-app-general-rules.mdc @@ -0,0 +1,6 @@ +--- +description: General rules for the entire Todo web application project. Encompasses specifications and guidelines applicable across all files. +globs: /**/*.* +--- +- Use the project specifications and guidelines to build the Todo app. +- Todo is a web app that allows you to manage your todos. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-tailwind-typescript-apps-cursorrules-prompt/langchain-rag-application-development.mdc b/awesome-cursor-rules-mdc/nextjs-tailwind-typescript-apps-cursorrules-prompt/langchain-rag-application-development.mdc new file mode 100644 index 0000000..307cd5f --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-tailwind-typescript-apps-cursorrules-prompt/langchain-rag-application-development.mdc @@ -0,0 +1,5 @@ +--- +description: Applies specifically when developing RAG (Retrieval-Augmented Generation) applications using Langchain within Next.js projects. +globs: **/*.{js,jsx,ts,tsx} +--- +You are familiar with create RAG applications using Langchain and are aware of its latest features. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-tailwind-typescript-apps-cursorrules-prompt/next-js-tailwind-typescript-expert---general.mdc b/awesome-cursor-rules-mdc/nextjs-tailwind-typescript-apps-cursorrules-prompt/next-js-tailwind-typescript-expert---general.mdc new file mode 100644 index 0000000..7bb402c --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-tailwind-typescript-apps-cursorrules-prompt/next-js-tailwind-typescript-expert---general.mdc @@ -0,0 +1,22 @@ +--- +description: Applies general expert-level coding practices for Next.js, Tailwind CSS, and TypeScript projects across all relevant JavaScript and TypeScript files. +globs: **/*.{js,jsx,ts,tsx} +--- +You are an expert programming assistant that primarily focus on producing clear, readable Next.JS + Tailwind + Typescript code. + +You always use latest version of Next.JS, and you are familiar with the latest features and best practices of Next.JS, TypeScript and Tailwind. + +For styling, you use Tailwind CSS. Use appropriate and most used colors for light and dark mode. + +Carefully provide accurate, factual, thoughtful answers, and are a genius at reasoning. + +- Follow user's requirements carefully & to the letter. +- First think step-by-step - describe your plan for what to build in pseudocode, written out in great detail. +- Confirm, then write the code! +- Always write correct, up to date, bug free, fully functional and working, secure, performant and efficient code. +- Focus on readability over performant. +- Fully implement all requested functionality. +- Leave NO Todo's, placeholders and missing pieces. +- Be sure to reference filenames. +- Be concise. Minimize any other prose. +- If you think there might not be a correct answer, you say so. If you don't know the answer, say so instead of guessing. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-tailwind-typescript-apps-cursorrules-prompt/supabase-integration-in-next-js.mdc b/awesome-cursor-rules-mdc/nextjs-tailwind-typescript-apps-cursorrules-prompt/supabase-integration-in-next-js.mdc new file mode 100644 index 0000000..1744deb --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-tailwind-typescript-apps-cursorrules-prompt/supabase-integration-in-next-js.mdc @@ -0,0 +1,5 @@ +--- +description: Focuses on providing expertise related to integrating Supabase with Next.js applications, applying to all JavaScript and TypeScript files. +globs: **/*.{js,jsx,ts,tsx} +--- +You are familiar with latest features of supabase and how to integrate with Next.js application. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-typescript-app-cursorrules-prompt-file/next-js-configuration-rule.mdc b/awesome-cursor-rules-mdc/nextjs-typescript-app-cursorrules-prompt-file/next-js-configuration-rule.mdc new file mode 100644 index 0000000..6642300 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-typescript-app-cursorrules-prompt-file/next-js-configuration-rule.mdc @@ -0,0 +1,6 @@ +--- +description: Rules specifically for the Next.js configuration file. +globs: /next.config.js +--- +- Ensure the Next.js configuration is optimized for performance. +- Review and update the configuration regularly based on project needs. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-typescript-app-cursorrules-prompt-file/next-js-project-rule.mdc b/awesome-cursor-rules-mdc/nextjs-typescript-app-cursorrules-prompt-file/next-js-project-rule.mdc new file mode 100644 index 0000000..9f8a9d6 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-typescript-app-cursorrules-prompt-file/next-js-project-rule.mdc @@ -0,0 +1,7 @@ +--- +description: General rules for the entire Next.js project, covering technology stack and core libraries. +globs: /**/*.* +--- +- The project is named Astral, the Block Explorer of Autonomys network. +- The project is built using Next.js and TypeScript. +- The project integrates various libraries for state management, UI components, and data fetching. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-typescript-app-cursorrules-prompt-file/typescript-code-style-rule.mdc b/awesome-cursor-rules-mdc/nextjs-typescript-app-cursorrules-prompt-file/typescript-code-style-rule.mdc new file mode 100644 index 0000000..8b34431 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-typescript-app-cursorrules-prompt-file/typescript-code-style-rule.mdc @@ -0,0 +1,6 @@ +--- +description: Rules specific to TypeScript files in the project, ensuring consistent code style. +globs: /**/*.ts +--- +- Use TypeScript for all new code. +- Maintain consistent code style across all TypeScript files. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/assistant-response-rules.mdc b/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/assistant-response-rules.mdc new file mode 100644 index 0000000..61d8ff9 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/assistant-response-rules.mdc @@ -0,0 +1,14 @@ +--- +description: Defines how the assistant should respond, including its role as a senior pair programmer and the required format for responses, applying to all files. +globs: * +--- +- You are user’s senior, inquisitive, and clever pair programmer. Let’s go step by step: +- Unless you’re only answering a quick question, start your response with: + """ + Language > Specialist: {programming language used} > {the subject matter EXPERT SPECIALIST role} + Includes: CSV list of needed libraries, packages, and key language features if any + Requirements: qualitative description of VERBOSITY, standards, and the software design requirements + Plan + Briefly list your step-by-step plan, including any components that won’t be addressed yet + """ +- Act like the chosen language EXPERT SPECIALIST and respond while following CODING STYLE. If using Jupyter, start now. Remember to add path/filename comment at the top. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/backend-stack-rules.mdc b/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/backend-stack-rules.mdc new file mode 100644 index 0000000..bfb8a56 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/backend-stack-rules.mdc @@ -0,0 +1,6 @@ +--- +description: Specifies the backend technology stack including Next.js API Routes and TypeScript, applying to all backend files. +globs: backend/**/*.* +--- +- Framework: Next.js API Routes (for serverless functions) +- Language: TypeScript (for API routes) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/coding-process-rules.mdc b/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/coding-process-rules.mdc new file mode 100644 index 0000000..3022b16 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/coding-process-rules.mdc @@ -0,0 +1,9 @@ +--- +description: Specifies the coding process, including step-by-step reasoning, prioritization, finishing files before moving on, and using TODO comments, applying to all files. +globs: * +--- +- Show concise step-by-step reasoning +- Prioritize tasks/steps you’ll address in each response +- Finish one file before the next +- If you can’t finish code, add TODO: comments +- If needed, interrupt yourself and ask to continue \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/coding-style-rules.mdc b/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/coding-style-rules.mdc new file mode 100644 index 0000000..9c7600f --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/coding-style-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Defines the coding style guidelines, including comments, modularity, DRY principle, performance, and security, applying to all files. +globs: * +--- +- Code must start with path/filename as a one-line comment +- Comments MUST describe mainly purpose, but also effect when necessary +- Prioritize modularity, DRY, performance, and security \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/editing-code-rules.mdc b/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/editing-code-rules.mdc new file mode 100644 index 0000000..54b2aee --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/editing-code-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Prioritizes returning completely edited files and defines verbosity levels for code detail, applying to all files. +globs: * +--- +- Return completely edited file \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/frontend-stack-rules.mdc b/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/frontend-stack-rules.mdc new file mode 100644 index 0000000..38c4f1a --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/frontend-stack-rules.mdc @@ -0,0 +1,9 @@ +--- +description: Specifies the frontend technology stack including React, TypeScript, Shadcn/UI, Tailwind CSS, and Lucide React, applying to all frontend files. +globs: frontend/**/*.* +--- +- Framework: Next.js (React) +- Language: TypeScript +- UI Components: shadcn/ui (based on Radix UI primitives) +- Styling: Tailwind CSS +- Icons: Lucide React \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/general-assistant-rules.mdc b/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/general-assistant-rules.mdc new file mode 100644 index 0000000..828ffa6 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/general-assistant-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Defines general assistant behavior for all files, including how to handle errors, ask questions, and understand project stack. +globs: * +--- +- Holistic understanding of requirements & stack +- Don’t apologize for errors: fix them +- You may ask about stack assumptions if writing code \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/history-and-next-task-rules.mdc b/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/history-and-next-task-rules.mdc new file mode 100644 index 0000000..c45390f --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/history-and-next-task-rules.mdc @@ -0,0 +1,13 @@ +--- +description: Specifies the format for ending responses, including a summary of requirements, code written, source tree, and next task, applying to all files. +globs: * +--- +- Consider the entire chat session, and end your response as follows: + """ + History: complete, concise, and compressed summary of ALL requirements and ALL code you’ve written + Source Tree: (sample, replace emoji) + (:floppy_disk:=saved: link to file, :warning:=unsaved but named snippet, :ghost:=no filename) file.ext:package: Class (if exists) + (:white_check_mark:=finished, :o:=has TODO, :red_circle:=otherwise incomplete) symbol:red_circle: global symbol + etc.etc. + Next Task: NOT finished=short description of next task FINISHED=list EXPERT SPECIALIST suggestions for enhancements/performance improvements. + """ \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/llm-integration-rules.mdc b/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/llm-integration-rules.mdc new file mode 100644 index 0000000..428b106 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-typescript-cursorrules-prompt-file/llm-integration-rules.mdc @@ -0,0 +1,6 @@ +--- +description: Specifies rules for LLM integration, including the use of a Python wrapper and an API endpoint, applying to all LLM-related files. +globs: llm/**/*.* +--- +- Python wrapper for LLM interaction +- API endpoint to connect frontend with Python backend \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-typescript-tailwind-cursorrules-prompt-file/ai-interaction-guidelines.mdc b/awesome-cursor-rules-mdc/nextjs-typescript-tailwind-cursorrules-prompt-file/ai-interaction-guidelines.mdc new file mode 100644 index 0000000..4990047 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-typescript-tailwind-cursorrules-prompt-file/ai-interaction-guidelines.mdc @@ -0,0 +1,5 @@ +--- +description: Interaction with AI models. Used to minimize AI generated comments and focus on clear code +globs: **/* +--- +- Minimize the use of AI generated comments, instead use clearly named variables and functions. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-typescript-tailwind-cursorrules-prompt-file/general-typescript-guidelines.mdc b/awesome-cursor-rules-mdc/nextjs-typescript-tailwind-cursorrules-prompt-file/general-typescript-guidelines.mdc new file mode 100644 index 0000000..4b62e7a --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-typescript-tailwind-cursorrules-prompt-file/general-typescript-guidelines.mdc @@ -0,0 +1,7 @@ +--- +description: Enforces TypeScript best practices and coding standards for all TypeScript files in the project. +globs: **/*.ts +--- +- When generating code, prioritize TypeScript and React best practices. +- Follow the coding standards defined in the ESLint configuration. +- Always validate user inputs and handle errors gracefully. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-typescript-tailwind-cursorrules-prompt-file/next-js-app-routing-guidelines.mdc b/awesome-cursor-rules-mdc/nextjs-typescript-tailwind-cursorrules-prompt-file/next-js-app-routing-guidelines.mdc new file mode 100644 index 0000000..c2b41c8 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-typescript-tailwind-cursorrules-prompt-file/next-js-app-routing-guidelines.mdc @@ -0,0 +1,7 @@ +--- +description: Applies to Next.js app directory, ensuring routing conventions and best practices are followed. +globs: src/app/**/* +--- +- When generating code, prioritize TypeScript and React best practices. +- Use the existing components and pages as a reference for the new components and pages. +- Always validate user inputs and handle errors gracefully. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-typescript-tailwind-cursorrules-prompt-file/react-component-guidelines.mdc b/awesome-cursor-rules-mdc/nextjs-typescript-tailwind-cursorrules-prompt-file/react-component-guidelines.mdc new file mode 100644 index 0000000..c2cf50f --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-typescript-tailwind-cursorrules-prompt-file/react-component-guidelines.mdc @@ -0,0 +1,7 @@ +--- +description: Focuses on reusable, responsive, and accessible React components within the components directory. +globs: src/components/**/*.tsx +--- +- Ensure all components are reusable and follow the existing design patterns. +- Ensure all components are responsive and accessible. +- Use Tailwind CSS for styling, adhering to the defined color palette. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-typescript-tailwind-cursorrules-prompt-file/react-hook-guidelines.mdc b/awesome-cursor-rules-mdc/nextjs-typescript-tailwind-cursorrules-prompt-file/react-hook-guidelines.mdc new file mode 100644 index 0000000..4492e6b --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-typescript-tailwind-cursorrules-prompt-file/react-hook-guidelines.mdc @@ -0,0 +1,6 @@ +--- +description: Rules for custom React hooks, emphasizing state management best practices. +globs: src/hooks/**/*.ts +--- +- When generating code, prioritize TypeScript and React best practices. +- Always validate user inputs and handle errors gracefully. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-vercel-supabase-cursorrules-prompt-file/devias-template-integration.mdc b/awesome-cursor-rules-mdc/nextjs-vercel-supabase-cursorrules-prompt-file/devias-template-integration.mdc new file mode 100644 index 0000000..1bac2f0 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-vercel-supabase-cursorrules-prompt-file/devias-template-integration.mdc @@ -0,0 +1,7 @@ +--- +description: Guides the integration of elements from the Devias Kit Pro template, ensuring consistency in coding style and structure. +globs: src/**/*.* +--- +- Be aware that I will be bringing elements in from the Devias Kit Pro template. +- Consider recommending bringing elements in from the Devias Kit Pro template as well. +- Follow the Devias Kit Pro coding style and structure. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-vercel-supabase-cursorrules-prompt-file/general-ba-copilot-rules.mdc b/awesome-cursor-rules-mdc/nextjs-vercel-supabase-cursorrules-prompt-file/general-ba-copilot-rules.mdc new file mode 100644 index 0000000..3ec460f --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-vercel-supabase-cursorrules-prompt-file/general-ba-copilot-rules.mdc @@ -0,0 +1,9 @@ +--- +description: Outlines the objectives and direction of the BA Copilot project, emphasizing the vision for aiding business analysts and the planned features. +globs: * +--- +- I am building 'BA Copilot', where BA stands for Business Analysts. I will sometimes refer to it as bacp. +- The MVP will be a an ai chatbot type tool, which will render BPMN diagrams using bpmn-js. +- The user can then iterate on them either with: + - additional discussion + - editing the diagram directly (bpmn-js supports this) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-vercel-supabase-cursorrules-prompt-file/general-project-setup.mdc b/awesome-cursor-rules-mdc/nextjs-vercel-supabase-cursorrules-prompt-file/general-project-setup.mdc new file mode 100644 index 0000000..a96e651 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-vercel-supabase-cursorrules-prompt-file/general-project-setup.mdc @@ -0,0 +1,14 @@ +--- +description: Defines general project setup and technology stack for the BA Copilot project. +globs: src/**/*.* +--- +- Use Next.js with the App Router (not Pages Router). +- Use Vercel AI for AI-related functionalities. +- Use Supabase for database and authentication, leveraging its type safety. +- Use Tanstack Query for data fetching and caching. +- Use Material UI for UI components. +- Potentially use Orval for API call typing, Tanstack Query integration, and mock service worker testing. +- When implementing something with Next.js, explain it as if I am new to Next.js and offer to explain more. Never create app/Creating app/ will break things +- If you feel I should replace elements of my stack above, always tell me. +- For elements of the stack that are missing, make recommendations and explain pros and cons, and then make a recommendation. +- My app folder is src/app \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/ai-sdk-rsc-integration-rules.mdc b/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/ai-sdk-rsc-integration-rules.mdc new file mode 100644 index 0000000..8823287 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/ai-sdk-rsc-integration-rules.mdc @@ -0,0 +1,6 @@ +--- +description: Guides the integration of `ai-sdk-rsc` into React Server Components for managing state and streaming generative content. +globs: **/*.tsx +--- +- Integrate `ai-sdk-rsc` into your Next.js project. +- Use `ai-sdk-rsc` hooks to manage state and stream generative content. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/general-project-rules.mdc b/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/general-project-rules.mdc new file mode 100644 index 0000000..54e5722 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/general-project-rules.mdc @@ -0,0 +1,8 @@ +--- +description: General guidance to the project for consistent code style and organization. +globs: **/*.* +--- +- You are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI, Tailwind, and Vercel middleware. +- Structure files: exported component, subcomponents, helpers, static content, types. +- Use lowercase with dashes for directories (e.g., `components/auth-wizard`). +- Favor named exports for components. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/general-typescript-rules.mdc b/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/general-typescript-rules.mdc new file mode 100644 index 0000000..d87cc39 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/general-typescript-rules.mdc @@ -0,0 +1,11 @@ +--- +description: Applies general TypeScript coding standards and best practices across the project. +globs: **/*.ts +--- +- Use TypeScript for all code; prefer interfaces over types. +- Avoid enums; use maps instead. +- Use functional components with TypeScript interfaces. +- Write concise, technical TypeScript code with accurate examples. +- Use functional and declarative programming patterns; avoid classes. +- Prefer iteration and modularization over code duplication. +- Use descriptive variable names with auxiliary verbs (e.g., `isLoading`, `hasError`). \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/image-optimization-rules.mdc b/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/image-optimization-rules.mdc new file mode 100644 index 0000000..627ed80 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/image-optimization-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Rules for optimizing images within React components to improve performance. +globs: components/**/*.{js,jsx,ts,tsx} +--- +- Optimize images: use WebP format, include size data, implement lazy loading. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/middleware-implementation-rules.mdc b/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/middleware-implementation-rules.mdc new file mode 100644 index 0000000..c05e3c8 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/middleware-implementation-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Applies specifically to the `middleware.ts` file to manage requests and sessions using Vercel's KV database. +globs: middleware.ts +--- +- Use Vercel middleware to handle incoming requests. +- Use middleware to parse user input and manage sessions with the KV database. +- Use Vercel's KV database for managing stateful data. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/next-js-server-component-rules.mdc b/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/next-js-server-component-rules.mdc new file mode 100644 index 0000000..7d3f3a7 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/next-js-server-component-rules.mdc @@ -0,0 +1,10 @@ +--- +description: Defines rules specifically for Next.js React Server Components (RSC) within the 'app' directory. +globs: app/**/*.tsx +--- +- Minimize `use client`, `useEffect`, and `setState`; favor React Server Components (RSC). +- Wrap client components in `Suspense` with fallback. +- Follow Next.js docs for Data Fetching, Rendering, and Routing. +- Favor server components and Next.js SSR. +- Use only for Web API access in small components. +- Avoid for data fetching or state management. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/performance-optimization-rules.mdc b/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/performance-optimization-rules.mdc new file mode 100644 index 0000000..3d6abff --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/performance-optimization-rules.mdc @@ -0,0 +1,6 @@ +--- +description: Guidelines for optimizing performance by minimizing client-side operations and using server-side rendering. +globs: **/*.{js,jsx,ts,tsx} +--- +- Optimize Web Vitals (LCP, CLS, FID). +- Use dynamic loading for non-critical components. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/ui-component-styling-rules.mdc b/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/ui-component-styling-rules.mdc new file mode 100644 index 0000000..d6d400f --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/ui-component-styling-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Enforces UI and styling conventions using Shadcn UI, Radix UI, and Tailwind CSS for all components. +globs: components/**/*.{js,jsx,ts,tsx} +--- +- Use Shadcn UI, Radix UI, and Tailwind for components and styling. +- Implement responsive design with Tailwind CSS; use a mobile-first approach. +- Use declarative JSX. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/vercel-kv-database-rules.mdc b/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/vercel-kv-database-rules.mdc new file mode 100644 index 0000000..034f2ed --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs-vercel-typescript-cursorrules-prompt-file/vercel-kv-database-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Defines how to interact with Vercel's KV database for storing and retrieving session and application data. +globs: **/*.ts +--- +- Use Vercel's KV database to store and retrieve session data. +- Utilize `kv.set`, `kv.get`, and `kv.delete` to manage data. +- Ensure the database operations are asynchronous to avoid blocking server-side rendering (SSR). \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs15-react19-vercelai-tailwind-cursorrules-prompt-file/directory-naming-conventions.mdc b/awesome-cursor-rules-mdc/nextjs15-react19-vercelai-tailwind-cursorrules-prompt-file/directory-naming-conventions.mdc new file mode 100644 index 0000000..ba4f469 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs15-react19-vercelai-tailwind-cursorrules-prompt-file/directory-naming-conventions.mdc @@ -0,0 +1,5 @@ +--- +description: Enforces a consistent naming convention for directories across the project. +globs: **/* +--- +- Use lowercase with dashes for directories (components/auth-wizard) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs15-react19-vercelai-tailwind-cursorrules-prompt-file/general-typescript-and-react-rules.mdc b/awesome-cursor-rules-mdc/nextjs15-react19-vercelai-tailwind-cursorrules-prompt-file/general-typescript-and-react-rules.mdc new file mode 100644 index 0000000..f1d5f2a --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs15-react19-vercelai-tailwind-cursorrules-prompt-file/general-typescript-and-react-rules.mdc @@ -0,0 +1,16 @@ +--- +description: Applies general coding principles and best practices for TypeScript and React development across the project. +globs: **/*.{ts,tsx} +--- +- Write concise, readable TypeScript code. +- Use functional and declarative programming patterns. +- Follow DRY (Don't Repeat Yourself) principle. +- Implement early returns for better readability. +- Structure components logically: exports, subcomponents, helpers, types. +- Use descriptive names with auxiliary verbs (isLoading, hasError). +- Prefix event handlers with 'handle' (handleClick, handleSubmit). +- Use TypeScript for all code. +- Prefer interfaces over types. +- Avoid enums; use const maps instead. +- Implement proper type safety and inference. +- Use `satisfies` operator for type validation. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs15-react19-vercelai-tailwind-cursorrules-prompt-file/next-js-15-async-request-api-rules.mdc b/awesome-cursor-rules-mdc/nextjs15-react19-vercelai-tailwind-cursorrules-prompt-file/next-js-15-async-request-api-rules.mdc new file mode 100644 index 0000000..a435a4a --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs15-react19-vercelai-tailwind-cursorrules-prompt-file/next-js-15-async-request-api-rules.mdc @@ -0,0 +1,14 @@ +--- +description: Dictates how asynchronous requests should be handled within Next.js 15, specifically concerning runtime APIs. +globs: app/**/* +--- +- Always use async versions of runtime APIs: + typescript + const cookieStore = await cookies() + const headersList = await headers() + const { isEnabled } = await draftMode() + +- Handle async params in layouts/pages: + typescript + const params = await props.params + const searchParams = await props.searchParams \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs15-react19-vercelai-tailwind-cursorrules-prompt-file/next-js-15-component-architecture-rules.mdc b/awesome-cursor-rules-mdc/nextjs15-react19-vercelai-tailwind-cursorrules-prompt-file/next-js-15-component-architecture-rules.mdc new file mode 100644 index 0000000..53dc5a3 --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs15-react19-vercelai-tailwind-cursorrules-prompt-file/next-js-15-component-architecture-rules.mdc @@ -0,0 +1,9 @@ +--- +description: Specifies the best practices for building React components within the Next.js 15 App Router structure. +globs: app/**/* +--- +- Favor React Server Components (RSC) where possible. +- Minimize 'use client' directives. +- Implement proper error boundaries. +- Use Suspense for async operations. +- Optimize for performance and Web Vitals. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nextjs15-react19-vercelai-tailwind-cursorrules-prompt-file/next-js-15-state-management-rules.mdc b/awesome-cursor-rules-mdc/nextjs15-react19-vercelai-tailwind-cursorrules-prompt-file/next-js-15-state-management-rules.mdc new file mode 100644 index 0000000..c31317f --- /dev/null +++ b/awesome-cursor-rules-mdc/nextjs15-react19-vercelai-tailwind-cursorrules-prompt-file/next-js-15-state-management-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Defines the recommended state management strategies for Next.js 15 applications, including server and client contexts. +globs: app/**/* +--- +- Use `useActionState` instead of deprecated `useFormState`. +- Leverage enhanced `useFormStatus` with new properties (data, method, action). +- Implement URL state management with 'nuqs'. +- Minimize client-side state. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/admin-interface-rules.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/admin-interface-rules.mdc new file mode 100644 index 0000000..a461aed --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/admin-interface-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Rules for the Admin interface functionalities +globs: /admin/**/*.* +--- +- Admin interface for managing and approving Requests \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/api-endpoint-summarization.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/api-endpoint-summarization.mdc new file mode 100644 index 0000000..b31c046 --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/api-endpoint-summarization.mdc @@ -0,0 +1,5 @@ +--- +description: Rules that enforce to describe API endpoints before implementation +globs: /api/**/*.* +--- +- Summarize the pick submission process and outline the API endpoint and business logic in pseudocode before coding. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/deployment-rule.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/deployment-rule.mdc new file mode 100644 index 0000000..7f777ac --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/deployment-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Applies to deployment files, mentions the use of Docker for deployment (optional). +globs: /deploy/**/*.* +--- +- Deployment: Docker (optional) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/entry-management-rules.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/entry-management-rules.mdc new file mode 100644 index 0000000..588c94d --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/entry-management-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Applies to the entries related files. Details entry management related requirements. +globs: /entries/**/*.* +--- +- Each user can have up to 3 Entries per Pool +- Entries are numbered 1, 2, 3 +- Picks are made and tracked separately for each Entry \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/frontend-react-rule.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/frontend-react-rule.mdc new file mode 100644 index 0000000..91dd4de --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/frontend-react-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Applies to all frontend files and uses React.js for the admin panel. +globs: /frontend/**/*.* +--- +- Frontend: React.js (for admin panel, if required) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/general-backend-node-js-express-rule.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/general-backend-node-js-express-rule.mdc new file mode 100644 index 0000000..0695458 --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/general-backend-node-js-express-rule.mdc @@ -0,0 +1,9 @@ +--- +description: Applies to all backend files, enforces Node.js with Express.js for the backend, MongoDB with Mongoose ODM for the database, and JWT for authentication. +globs: /backend/**/*.* +--- +- Backend: Node.js with Express.js +- Database: MongoDB with Mongoose ODM +- Authentication: JSON Web Tokens (JWT) +- Ensure secure, efficient code following RESTful API best practices. +- Implement proper error handling and input validation. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/pick-management-rules.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/pick-management-rules.mdc new file mode 100644 index 0000000..8ca0a90 --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/pick-management-rules.mdc @@ -0,0 +1,6 @@ +--- +description: Applies to pick management files, describes how to manage picks. +globs: /picks/**/*.* +--- +- Users make Picks for each Entry separately +- Picks can be updated until deadline (game start or 1PM Sunday of the current week of the pick) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/pools-user-flow-rules.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/pools-user-flow-rules.mdc new file mode 100644 index 0000000..ea61f84 --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/pools-user-flow-rules.mdc @@ -0,0 +1,10 @@ +--- +description: Applies to the pools related files. Strictly adheres to the specified user flow and game rules for pools. +globs: /pools/**/*.* +--- +- Strictly adhere to specified user flow and game rules. +- Users browse available Pools +- Submit up to 3 Requests per Pool +- Complete payment for Requests +- Admin approves/rejects Requests +- Approved Requests become Entries \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/request-state-transitions.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/request-state-transitions.mdc new file mode 100644 index 0000000..7c26360 --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/request-state-transitions.mdc @@ -0,0 +1,9 @@ +--- +description: Rules related to managing requests and implementing state transitions +globs: /requests/**/*.* +--- +- Limit Requests to 3 per User per Pool +- Track Requests and Entries separately (numbered 1, 2, 3) +- Implement payment status tracking in Request model +- Create Entry only after admin approval and payment completion +- Implement state transitions (Request: pending -> approved -> Entry created) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/results-and-standings-rules.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/results-and-standings-rules.mdc new file mode 100644 index 0000000..ffe4fd5 --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/results-and-standings-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Applies to results related files, includes all the logic that involves presenting the result to the user. +globs: /results/**/*.* +--- +- Users view Picks/scores for each Entry separately +- Pool standings show all Entries (multiple per User possible) +- Pool members can view all Picks after scoring \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/scoring-and-ranking-rules.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/scoring-and-ranking-rules.mdc new file mode 100644 index 0000000..b61c5e4 --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/scoring-and-ranking-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Applies to scoring logic. Describes the scoring system and ranking process. +globs: /scoring/**/*.* +--- +- Picks scored after games complete +- Win: Entry moves to next week +- Loss: Entry eliminated from Pool +- Each Entry ranked separately in Pool standings \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/strategic-planning-with-pseudocode.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/strategic-planning-with-pseudocode.mdc new file mode 100644 index 0000000..b679c36 --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/strategic-planning-with-pseudocode.mdc @@ -0,0 +1,6 @@ +--- +description: Rules that enforce to use pseudocode before implementation +globs: /*.* +--- +- Begin each feature with detailed pseudocode. +- Example: Provide pseudocode for the weekly scoring process, detailing steps from game result input to entry status updates. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/version-control-rule.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/version-control-rule.mdc new file mode 100644 index 0000000..1809628 --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-cursorrules-prompt-file-tutorial/version-control-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Applies to git related files, specifies to always use git for version control. +globs: /*/.git/**/*.* +--- +- Version Control: Git \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/admin-interface-rule.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/admin-interface-rule.mdc new file mode 100644 index 0000000..5254b9c --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/admin-interface-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies the creation of an admin interface for managing and approving requests. +globs: */admin-interface/**/*.* +--- +- Admin interface for managing and approving Requests. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/entry-creation-rule.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/entry-creation-rule.mdc new file mode 100644 index 0000000..5e78d39 --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/entry-creation-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Ensures that an entry is created only after admin approval and payment completion. +globs: */entry-creation/**/*.* +--- +- Create Entry only after admin approval and payment completion. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/entry-management-rules.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/entry-management-rules.mdc new file mode 100644 index 0000000..b97322d --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/entry-management-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Outlines the rules for entry management, including the number of entries per user, entry numbering, and pick management. +globs: */entry-management/**/*.* +--- +- Each user can have up to 3 Entries per Pool. +- Entries are numbered 1, 2, 3. +- Picks are made and tracked separately for each Entry. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/frontend-tech-stack.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/frontend-tech-stack.mdc new file mode 100644 index 0000000..25df88a --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/frontend-tech-stack.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies the technology for frontend development, React.js, and focuses on the admin panel if required. +globs: */frontend/**/*.* +--- +- Use React.js for the admin panel (if required). \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/general-coding-style.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/general-coding-style.mdc new file mode 100644 index 0000000..65d437e --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/general-coding-style.mdc @@ -0,0 +1,6 @@ +--- +description: Ensures secure, efficient code following RESTful API best practices with error handling and input validation. +globs: **/*.* +--- +- Ensure secure, efficient code following RESTful API best practices. +- Implement proper error handling and input validation. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/payment-tracking-rule.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/payment-tracking-rule.mdc new file mode 100644 index 0000000..7d963ad --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/payment-tracking-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Implements payment status tracking in the Request model. +globs: */payment-tracking/**/*.* +--- +- Implement payment status tracking in the Request model. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/pick-management-rules.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/pick-management-rules.mdc new file mode 100644 index 0000000..8d5df09 --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/pick-management-rules.mdc @@ -0,0 +1,6 @@ +--- +description: Defines how users manage their picks for each entry, including update deadlines. +globs: */pick-management/**/*.* +--- +- Users make Picks for each Entry separately. +- Picks can be updated until the deadline (game start or 1PM Sunday of the current week of the pick). \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/request-and-entry-tracking-rule.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/request-and-entry-tracking-rule.mdc new file mode 100644 index 0000000..99162c7 --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/request-and-entry-tracking-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies that requests and entries should be tracked separately and numbered 1, 2, 3. +globs: */request-entry-tracking/**/*.* +--- +- Track Requests and Entries separately (numbered 1, 2, 3). \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/request-limit-rule.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/request-limit-rule.mdc new file mode 100644 index 0000000..ca4fa0a --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/request-limit-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Limits the number of requests a user can make per pool to 3. +globs: */request-handling/**/*.* +--- +- Limit Requests to 3 per User per Pool. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/results-and-standings-rules.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/results-and-standings-rules.mdc new file mode 100644 index 0000000..39d8931 --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/results-and-standings-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Defines how results and standings are displayed to users, including pick visibility and pool standings. +globs: */results-standings/**/*.* +--- +- Users view Picks/scores for each Entry separately. +- Pool standings show all Entries (multiple per User possible). +- Pool members can view all Picks after scoring. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/scoring-and-ranking-rules.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/scoring-and-ranking-rules.mdc new file mode 100644 index 0000000..b23f8eb --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/scoring-and-ranking-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Specifies how picks are scored, how entries advance or are eliminated, and how entries are ranked. +globs: */scoring-ranking/**/*.* +--- +- Picks scored after games complete. +- Win: Entry moves to the next week. +- Loss: Entry eliminated from Pool. +- Each Entry ranked separately in Pool standings. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/state-transition-rule.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/state-transition-rule.mdc new file mode 100644 index 0000000..dcf7142 --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/state-transition-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Implements state transitions for requests, such as pending to approved to entry created. +globs: */state-transitions/**/*.* +--- +- Implement state transitions (Request: pending -> approved -> Entry created). \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/strategic-planning-with-pseudocode.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/strategic-planning-with-pseudocode.mdc new file mode 100644 index 0000000..a85f47d --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/strategic-planning-with-pseudocode.mdc @@ -0,0 +1,5 @@ +--- +description: Begins each feature with detailed pseudocode before implementing the actual code. +globs: **/*.* +--- +- Begin each feature with detailed pseudocode. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/strict-user-requirements-adherence.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/strict-user-requirements-adherence.mdc new file mode 100644 index 0000000..4afe6f8 --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/strict-user-requirements-adherence.mdc @@ -0,0 +1,5 @@ +--- +description: Strictly adheres to specified user flow and game rules, making sure to follow documented features. +globs: **/*.* +--- +- Strictly adhere to specified user flow and game rules. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/submission-process-outline.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/submission-process-outline.mdc new file mode 100644 index 0000000..7027bb8 --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/submission-process-outline.mdc @@ -0,0 +1,5 @@ +--- +description: Summarize the pick submission process and outline the API endpoint and business logic in pseudocode before coding. +globs: */pick-submission/**/*.* +--- +- Summarize the pick submission process and outline the API endpoint and business logic in pseudocode before coding. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/tech-stack.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/tech-stack.mdc new file mode 100644 index 0000000..934b335 --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/tech-stack.mdc @@ -0,0 +1,9 @@ +--- +description: Specifies the technologies to be used for backend development, including Node.js, Express.js, MongoDB, and Mongoose. +globs: */backend/**/*.* +--- +- Use Node.js with Express.js for the backend. +- Use MongoDB with Mongoose ODM for the database. +- Use JSON Web Tokens (JWT) for authentication. +- Consider Docker for deployment. +- Use Git for version control. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/user-flow-rules.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/user-flow-rules.mdc new file mode 100644 index 0000000..7712a5d --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/user-flow-rules.mdc @@ -0,0 +1,9 @@ +--- +description: Defines the user flow for browsing pools, submitting requests, completing payments, and admin approval. +globs: */user-flow/**/*.* +--- +- Users browse available Pools. +- Users submit up to 3 Requests per Pool. +- Users complete payment for Requests. +- Admin approves/rejects Requests. +- Approved Requests become Entries. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/weekly-scoring-process-pseudocode.mdc b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/weekly-scoring-process-pseudocode.mdc new file mode 100644 index 0000000..2ad8046 --- /dev/null +++ b/awesome-cursor-rules-mdc/nodejs-mongodb-jwt-express-react-cursorrules-promp/weekly-scoring-process-pseudocode.mdc @@ -0,0 +1,5 @@ +--- +description: Provide pseudocode for the weekly scoring process, detailing steps from game result input to entry status updates. +globs: */weekly-scoring/**/*.* +--- +- Provide pseudocode for the weekly scoring process, detailing steps from game result input to entry status updates. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/optimize-dry-solid-principles-cursorrules-prompt-f/code-quality-and-best-practices.mdc b/awesome-cursor-rules-mdc/optimize-dry-solid-principles-cursorrules-prompt-f/code-quality-and-best-practices.mdc new file mode 100644 index 0000000..5e5b192 --- /dev/null +++ b/awesome-cursor-rules-mdc/optimize-dry-solid-principles-cursorrules-prompt-f/code-quality-and-best-practices.mdc @@ -0,0 +1,7 @@ +--- +description: Guidelines for code quality, best practices, relevant paradigms and semantic naming applying to all files. +globs: /**/*.* +--- +- Adhere to code quality and best practices. +- Apply relevant paradigms and principles. +- Use semantic naming and abstractions. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/optimize-dry-solid-principles-cursorrules-prompt-f/communication-and-problem-solving.mdc b/awesome-cursor-rules-mdc/optimize-dry-solid-principles-cursorrules-prompt-f/communication-and-problem-solving.mdc new file mode 100644 index 0000000..daac5a9 --- /dev/null +++ b/awesome-cursor-rules-mdc/optimize-dry-solid-principles-cursorrules-prompt-f/communication-and-problem-solving.mdc @@ -0,0 +1,7 @@ +--- +description: Guidelines for communication, problem-solving and platform thinking applying to all files. +globs: /**/*.* +--- +- Follow communication and problem-solving guidelines. +- Consider platform thinking. +- Handle uncertainty and limitations responsibly. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/optimize-dry-solid-principles-cursorrules-prompt-f/general-python-rules.mdc b/awesome-cursor-rules-mdc/optimize-dry-solid-principles-cursorrules-prompt-f/general-python-rules.mdc new file mode 100644 index 0000000..6dc6367 --- /dev/null +++ b/awesome-cursor-rules-mdc/optimize-dry-solid-principles-cursorrules-prompt-f/general-python-rules.mdc @@ -0,0 +1,13 @@ +--- +description: Applies general Python coding guidelines and best practices to all Python files in the project. +globs: /**/*.*.py +--- +- Follow communication and problem-solving guidelines. +- Adhere to code quality and best practices. +- Apply relevant paradigms and principles. +- Use semantic naming and abstractions. +- Consider platform thinking. +- Format responses according to guidelines. +- Handle uncertainty and limitations responsibly. +- When outputting code blocks, include a # or // file name comment prior to the block, with a few lines before and after the modification. +- Stick to the current architecture choices located in pyproject.toml unless the user suggests a new method or module. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/optimize-dry-solid-principles-cursorrules-prompt-f/python-dependency-management.mdc b/awesome-cursor-rules-mdc/optimize-dry-solid-principles-cursorrules-prompt-f/python-dependency-management.mdc new file mode 100644 index 0000000..9bcbc75 --- /dev/null +++ b/awesome-cursor-rules-mdc/optimize-dry-solid-principles-cursorrules-prompt-f/python-dependency-management.mdc @@ -0,0 +1,7 @@ +--- +description: Enforces the use of UV for dependency installation and Python 3.12 within the service-1 directory. +globs: /service-1/**/*.* +--- +- Always use UV when installing dependencies. +- Always use Python 3.12. +- Always use classes instead of functions. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/optimize-dry-solid-principles-cursorrules-prompt-f/response-formatting.mdc b/awesome-cursor-rules-mdc/optimize-dry-solid-principles-cursorrules-prompt-f/response-formatting.mdc new file mode 100644 index 0000000..57592a0 --- /dev/null +++ b/awesome-cursor-rules-mdc/optimize-dry-solid-principles-cursorrules-prompt-f/response-formatting.mdc @@ -0,0 +1,5 @@ +--- +description: Guidelines for code quality, best practices, relevant paradigms and semantic naming applying to all files. +globs: /**/*.* +--- +- Format responses according to guidelines. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/optimize-rell-blockchain-code-cursorrules-prompt-f/general-programming-expert-rules.mdc b/awesome-cursor-rules-mdc/optimize-rell-blockchain-code-cursorrules-prompt-f/general-programming-expert-rules.mdc new file mode 100644 index 0000000..fd18f38 --- /dev/null +++ b/awesome-cursor-rules-mdc/optimize-rell-blockchain-code-cursorrules-prompt-f/general-programming-expert-rules.mdc @@ -0,0 +1,14 @@ +--- +description: Sets the AI to follow general programming expert rules, including careful reasoning and clear instruction following. +globs: * +--- +- You are an expert AI programming assistant that primarily focuses on producing clear, readable code. +- You carefully provide accurate, factual, thoughtful answers, and excel at reasoning. +- Follow the user’s requirements carefully & to the letter. +- First think step-by-step - describe your plan for what to build in pseudocode, written out in great detail. +- Confirm, then write code! +- Always write correct, up to date, bug free, fully functional and working, secure, performant and efficient code. +- Fully implement all requested functionality. +- Leave NO todo’s, placeholders or missing pieces. +- Be concise. Minimize any other prose. +- If you think there might not be a correct answer, you say so. If you do not know the answer, say so instead of guessing. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/optimize-rell-blockchain-code-cursorrules-prompt-f/python-dependency-management-rules.mdc b/awesome-cursor-rules-mdc/optimize-rell-blockchain-code-cursorrules-prompt-f/python-dependency-management-rules.mdc new file mode 100644 index 0000000..de5c449 --- /dev/null +++ b/awesome-cursor-rules-mdc/optimize-rell-blockchain-code-cursorrules-prompt-f/python-dependency-management-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Specific rules for Python dependency management and version control in the service-1 directory. +globs: /service-1/**/*.* +--- +- Always use UV when installing depdendencies +- Always use python 3.12 +- Always use classes instead of function \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/optimize-rell-blockchain-code-cursorrules-prompt-f/rell-general-rules.mdc b/awesome-cursor-rules-mdc/optimize-rell-blockchain-code-cursorrules-prompt-f/rell-general-rules.mdc new file mode 100644 index 0000000..fcd8d1e --- /dev/null +++ b/awesome-cursor-rules-mdc/optimize-rell-blockchain-code-cursorrules-prompt-f/rell-general-rules.mdc @@ -0,0 +1,16 @@ +--- +description: General rules for writing Rell code, emphasizing clarity, correctness, and adherence to Rell-specific instructions. +globs: **/*.rell +--- +- You are an expert AI programming assistant that primarily focuses on producing clear, readable Rell code. +- You carefully provide accurate, factual, thoughtful answers, and excel at reasoning. +- Follow the user’s requirements carefully & to the letter. +- First think step-by-step - describe your plan for what to build in pseudocode, written out in great detail. +- Confirm, then write code! +- Always write correct, up to date, bug free, fully functional and working, secure, performant and efficient code. +- Focus on readability over being performant. +- Fully implement all requested functionality. +- Leave NO todo’s, placeholders or missing pieces. +- Be concise. Minimize any other prose. +- If you think there might not be a correct answer, you say so. If you do not know the answer, say so instead of guessing. +- You have studied the instructions below extensively for how to write Rell code. If you do not know how to do something in Rell, then ask instead of guessing. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/data-visualization-rules.mdc b/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/data-visualization-rules.mdc new file mode 100644 index 0000000..9a73d45 --- /dev/null +++ b/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/data-visualization-rules.mdc @@ -0,0 +1,9 @@ +--- +description: Defines rules for creating informative and visually appealing plots using matplotlib and seaborn, emphasizing proper labels, titles, legends, and color schemes. +globs: **/*.py +--- +- Use matplotlib for low-level plotting control and customization. +- Use seaborn for statistical visualizations and aesthetically pleasing defaults. +- Create informative and visually appealing plots with proper labels, titles, and legends. +- Use appropriate color schemes and consider color-blindness accessibility. +- Create reusable plotting functions for consistent visualizations. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/error-handling-and-data-validation-rules.mdc b/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/error-handling-and-data-validation-rules.mdc new file mode 100644 index 0000000..ebceac7 --- /dev/null +++ b/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/error-handling-and-data-validation-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Governs error handling and data validation practices, including data quality checks, missing data handling, and data type validation. +globs: **/*.py +--- +- Implement data quality checks at the beginning of analysis. +- Handle missing data appropriately (imputation, removal, or flagging). +- Use try-except blocks for error-prone operations, especially when reading external data. +- Validate data types and ranges to ensure data integrity. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/general-data-analysis-and-jupyter-notebook-rules.mdc b/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/general-data-analysis-and-jupyter-notebook-rules.mdc new file mode 100644 index 0000000..80d4aef --- /dev/null +++ b/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/general-data-analysis-and-jupyter-notebook-rules.mdc @@ -0,0 +1,18 @@ +--- +description: Applies general guidelines for data analysis, visualization, and Jupyter Notebook development with Python, focusing on best practices with pandas, matplotlib, and seaborn. +globs: **/*.ipynb +--- +- Write concise, technical responses with accurate Python examples. +- Prioritize readability and reproducibility in data analysis workflows. +- Use functional programming where appropriate; avoid unnecessary classes. +- Prefer vectorized operations over explicit loops for better performance. +- Use descriptive variable names that reflect the data they contain. +- Follow PEP 8 style guidelines for Python code. +- Structure notebooks with clear sections using markdown cells. +- Use meaningful cell execution order to ensure reproducibility. +- Include explanatory text in markdown cells to document analysis steps. +- Keep code cells focused and modular for easier understanding and debugging. +- Use magic commands like %matplotlib inline for inline plotting. +- Document data sources, assumptions, and methodologies clearly. +- Use version control (e.g., git) for tracking changes in notebooks and scripts. +- Refer to the official documentation of pandas, matplotlib, and Jupyter for best practices and up-to-date APIs. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/initial-data-analysis-steps.mdc b/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/initial-data-analysis-steps.mdc new file mode 100644 index 0000000..ad25ec5 --- /dev/null +++ b/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/initial-data-analysis-steps.mdc @@ -0,0 +1,5 @@ +--- +description: Sets the convention to begin any analysis with data exploration and summary statistics, providing a consistent starting point. +globs: **/*.py +--- +- Begin analysis with data exploration and summary statistics. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/pandas-data-manipulation-rules.mdc b/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/pandas-data-manipulation-rules.mdc new file mode 100644 index 0000000..a303f1a --- /dev/null +++ b/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/pandas-data-manipulation-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Focuses on pandas-specific rules for data manipulation, including method chaining, data selection using loc/iloc, and groupby operations. +globs: **/*.py +--- +- Use pandas for data manipulation and analysis. +- Prefer method chaining for data transformations when possible. +- Use loc and iloc for explicit data selection. +- Utilize groupby operations for efficient data aggregation. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/performance-optimization-rules.mdc b/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/performance-optimization-rules.mdc new file mode 100644 index 0000000..41ee22e --- /dev/null +++ b/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/performance-optimization-rules.mdc @@ -0,0 +1,8 @@ +--- +description: Outlines rules for optimizing performance, including vectorized operations, efficient data structures, and profiling code for bottlenecks. +globs: **/*.py +--- +- Use vectorized operations in pandas and numpy for improved performance. +- Utilize efficient data structures (e.g., categorical data types for low-cardinality string columns). +- Consider using dask for larger-than-memory datasets. +- Profile code to identify and optimize bottlenecks. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/plasticode-telegram-api-cursorrules-prompt-file/composer-dependency-management.mdc b/awesome-cursor-rules-mdc/plasticode-telegram-api-cursorrules-prompt-file/composer-dependency-management.mdc new file mode 100644 index 0000000..d8f455e --- /dev/null +++ b/awesome-cursor-rules-mdc/plasticode-telegram-api-cursorrules-prompt-file/composer-dependency-management.mdc @@ -0,0 +1,7 @@ +--- +description: Rules pertaining to Composer dependency management, promoting best practices for declaring and updating dependencies. +globs: **/composer.json +--- +- Use Composer for dependency management. +- Ensure dependencies are properly declared in composer.json. +- Update dependencies regularly. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/plasticode-telegram-api-cursorrules-prompt-file/php-general-rules.mdc b/awesome-cursor-rules-mdc/plasticode-telegram-api-cursorrules-prompt-file/php-general-rules.mdc new file mode 100644 index 0000000..cf861ec --- /dev/null +++ b/awesome-cursor-rules-mdc/plasticode-telegram-api-cursorrules-prompt-file/php-general-rules.mdc @@ -0,0 +1,14 @@ +--- +description: Applies general PHP coding standards and practices to all PHP files in the project, emphasizing object-oriented programming and error handling. +globs: **/*.php +--- +- You are an expert in PHP and related web development technologies. +- Write concise, technical responses with accurate PHP examples. +- Use object-oriented programming with a focus on SOLID principles. +- Prefer iteration and modularization over duplication. +- Use descriptive variable and method names. +- Favor dependency injection and DI containers. +- Use PHP 7.4 features when appropriate. +- Follow PSR-12 coding standards. +- Implement proper error handling. +- Use try-catch blocks for expected exceptions. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/plasticode-telegram-api-cursorrules-prompt-file/plasticode-rules.mdc b/awesome-cursor-rules-mdc/plasticode-telegram-api-cursorrules-prompt-file/plasticode-rules.mdc new file mode 100644 index 0000000..9c5d8c1 --- /dev/null +++ b/awesome-cursor-rules-mdc/plasticode-telegram-api-cursorrules-prompt-file/plasticode-rules.mdc @@ -0,0 +1,6 @@ +--- +description: Specific rules for files within the Plasticode framework directory, focusing on dependency management and Plasticode conventions. +globs: **/plasticode/**/*.* +--- +- When working with Plasticode, follow Plasticode conventions. +- Use Composer for dependency management. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/plasticode-telegram-api-cursorrules-prompt-file/telegram-bot-api-rules.mdc b/awesome-cursor-rules-mdc/plasticode-telegram-api-cursorrules-prompt-file/telegram-bot-api-rules.mdc new file mode 100644 index 0000000..bde3554 --- /dev/null +++ b/awesome-cursor-rules-mdc/plasticode-telegram-api-cursorrules-prompt-file/telegram-bot-api-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Rules for files related to the Telegram Bot API integration, emphasizing API-specific best practices. +globs: **/telegram_bot/**/*.* +--- +- When working with Telegram Bot API, use relevant API best practices. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/py-fast-api/database-interaction-rules.mdc b/awesome-cursor-rules-mdc/py-fast-api/database-interaction-rules.mdc new file mode 100644 index 0000000..97097ef --- /dev/null +++ b/awesome-cursor-rules-mdc/py-fast-api/database-interaction-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Specific rules for interacting with databases using async libraries within the db directory. +globs: **/db/*.py +--- +- Async database libraries like asyncpg or aiomysql +- SQLAlchemy 2.0 (if using ORM features) +- Use dedicated async functions for database and external API operations. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/py-fast-api/error-handling-rules.mdc b/awesome-cursor-rules-mdc/py-fast-api/error-handling-rules.mdc new file mode 100644 index 0000000..eadd4d6 --- /dev/null +++ b/awesome-cursor-rules-mdc/py-fast-api/error-handling-rules.mdc @@ -0,0 +1,14 @@ +--- +description: Guidelines for handling errors and edge cases in Python and FastAPI applications. +globs: **/*.py +--- +- Prioritize error handling and edge cases: + - Handle errors and edge cases at the beginning of functions. + - Use early returns for error conditions to avoid deeply nested if statements. + - Place the happy path last in the function for improved readability. + - Avoid unnecessary else statements; use the if-return pattern instead. + - Use guard clauses to handle preconditions and invalid states early. + - Implement proper error logging and user-friendly error messages. + - Use custom error types or error factories for consistent error handling. +- Use HTTPException for expected errors and model them as specific HTTP responses. +- Use middleware for handling unexpected errors, logging, and error monitoring. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/py-fast-api/fastapi-application-rules.mdc b/awesome-cursor-rules-mdc/py-fast-api/fastapi-application-rules.mdc new file mode 100644 index 0000000..e43f049 --- /dev/null +++ b/awesome-cursor-rules-mdc/py-fast-api/fastapi-application-rules.mdc @@ -0,0 +1,9 @@ +--- +description: Specific guidelines for FastAPI application structure and setup in the main application file. +globs: **/main.py +--- +- Use functional components (plain functions) and Pydantic models for input validation and response schemas. +- Use declarative route definitions with clear return type annotations. +- Use def for synchronous operations and async def for asynchronous ones. +- Minimize @app.on_event("startup") and @app.on_event("shutdown"); prefer lifespan context managers for managing startup and shutdown events. +- Use middleware for logging, error monitoring, and performance optimization. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/py-fast-api/fastapi-route-specific-rules.mdc b/awesome-cursor-rules-mdc/py-fast-api/fastapi-route-specific-rules.mdc new file mode 100644 index 0000000..a33f8fd --- /dev/null +++ b/awesome-cursor-rules-mdc/py-fast-api/fastapi-route-specific-rules.mdc @@ -0,0 +1,9 @@ +--- +description: Guidelines for structuring routes and dependencies in FastAPI applications, stored in the routers directory. +globs: **/routers/*.py +--- +- File structure: exported router, sub-routes, utilities, static content, types (models, schemas). +- Avoid unnecessary curly braces in conditional statements. +- For single-line statements in conditionals, omit curly braces. +- Use concise, one-line syntax for simple conditional statements (e.g., if condition: do_something()). +- Structure routes and dependencies clearly to optimize readability and maintainability. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/py-fast-api/performance-optimization-rules.mdc b/awesome-cursor-rules-mdc/py-fast-api/performance-optimization-rules.mdc new file mode 100644 index 0000000..07d16df --- /dev/null +++ b/awesome-cursor-rules-mdc/py-fast-api/performance-optimization-rules.mdc @@ -0,0 +1,12 @@ +--- +description: Rules for optimizing performance in FastAPI applications, including asynchronous operations and caching. +globs: **/*.py +--- +- Minimize blocking I/O operations; use asynchronous operations for all database calls and external API requests. +- Implement caching for static and frequently accessed data using tools like Redis or in-memory stores. +- Optimize data serialization and deserialization with Pydantic. +- Use lazy loading techniques for large datasets and substantial API responses. +- Prioritize API performance metrics (response time, latency, throughput). +- Limit blocking operations in routes: + - Favor asynchronous and non-blocking flows. + - Use dedicated async functions for database and external API operations. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/py-fast-api/pydantic-model-rules.mdc b/awesome-cursor-rules-mdc/py-fast-api/pydantic-model-rules.mdc new file mode 100644 index 0000000..715ad26 --- /dev/null +++ b/awesome-cursor-rules-mdc/py-fast-api/pydantic-model-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Specific rules for creating Pydantic models, focusing on versioning and usage within the project. +globs: **/models/*.py +--- +- Use type hints for all function signatures. Prefer Pydantic models over raw dictionaries for input validation. +- Use Pydantic v2. +- Use Pydantic's BaseModel for consistent input/output validation and response schemas. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/py-fast-api/python-general-principles.mdc b/awesome-cursor-rules-mdc/py-fast-api/python-general-principles.mdc new file mode 100644 index 0000000..c63d2cc --- /dev/null +++ b/awesome-cursor-rules-mdc/py-fast-api/python-general-principles.mdc @@ -0,0 +1,11 @@ +--- +description: General Python coding principles for all Python files, focusing on code style and best practices. +globs: **/*.py +--- +- Write concise, technical responses with accurate Python examples. +- Use functional, declarative programming; avoid classes where possible. +- Prefer iteration and modularization over code duplication. +- Use descriptive variable names with auxiliary verbs (e.g., is_active, has_permission). +- Use lowercase with underscores for directories and files (e.g., routers/user_routes.py). +- Favor named exports for routes and utility functions. +- Use the Receive an Object, Return an Object (RORO) pattern. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pyqt6-eeg-processing-cursorrules-prompt-file/eeg-signal-processing-rules.mdc b/awesome-cursor-rules-mdc/pyqt6-eeg-processing-cursorrules-prompt-file/eeg-signal-processing-rules.mdc new file mode 100644 index 0000000..df2cb75 --- /dev/null +++ b/awesome-cursor-rules-mdc/pyqt6-eeg-processing-cursorrules-prompt-file/eeg-signal-processing-rules.mdc @@ -0,0 +1,10 @@ +--- +description: Rules for EEG signal processing related files, focusing on data integrity and algorithm efficiency. +globs: /eeg_processing/**/*.* +--- +- Develop robust algorithms for EEG data analysis and visualization. +- Implement real-time signal processing and feature extraction. +- Ensure data integrity and accuracy throughout the processing pipeline. +- Optimize algorithms for efficient processing of large EEG datasets. +- Implement multithreading and asynchronous programming where appropriate. +- Profile and optimize application performance. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pyqt6-eeg-processing-cursorrules-prompt-file/pyqt6-ui-development-rules.mdc b/awesome-cursor-rules-mdc/pyqt6-eeg-processing-cursorrules-prompt-file/pyqt6-ui-development-rules.mdc new file mode 100644 index 0000000..18e3125 --- /dev/null +++ b/awesome-cursor-rules-mdc/pyqt6-eeg-processing-cursorrules-prompt-file/pyqt6-ui-development-rules.mdc @@ -0,0 +1,10 @@ +--- +description: Specific rules for PyQt6 based UI development focusing on UI/UX excellence and performance. +globs: /gui/**/*.* +--- +- Create stunning, responsive user interfaces that rival the best web designs. +- Implement advanced PyQt6 features for smooth user experiences. +- Optimize performance and resource usage in GUI applications. +- Craft visually appealing interfaces with attention to color theory and layout. +- Ensure accessibility and cross-platform compatibility. +- Implement responsive designs that adapt to various screen sizes. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pyqt6-eeg-processing-cursorrules-prompt-file/python-general-rules.mdc b/awesome-cursor-rules-mdc/pyqt6-eeg-processing-cursorrules-prompt-file/python-general-rules.mdc new file mode 100644 index 0000000..a5aa7e9 --- /dev/null +++ b/awesome-cursor-rules-mdc/pyqt6-eeg-processing-cursorrules-prompt-file/python-general-rules.mdc @@ -0,0 +1,7 @@ +--- +description: General Python coding style and best practices for all Python files in the project. +globs: /**/*.*.py +--- +- Write clean, well-documented, and easily maintainable code. +- Implement comprehensive error handling and logging. +- Utilize version control and follow collaborative development practices. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pyqt6-eeg-processing-cursorrules-prompt-file/root-level-project-instructions.mdc b/awesome-cursor-rules-mdc/pyqt6-eeg-processing-cursorrules-prompt-file/root-level-project-instructions.mdc new file mode 100644 index 0000000..21881d2 --- /dev/null +++ b/awesome-cursor-rules-mdc/pyqt6-eeg-processing-cursorrules-prompt-file/root-level-project-instructions.mdc @@ -0,0 +1,14 @@ +--- +description: Root level project guidelines and initial steps to start and implement EEG processor +globs: /* +--- +- Start by designing a clean, modern UI layout using PyQt6 +- Implement a modular architecture for easy expansion and maintenance +- Create a robust backend for EEG signal processing with error handling +- Develop a responsive and intuitive user workflow +- Implement data visualization components for EEG analysis +- Ensure proper data management and file handling +- Optimize performance for large datasets +- Implement thorough testing and quality assurance measures +- Document code and create user guides +- Continuously refine and improve based on user feedback \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pyqt6-eeg-processing-cursorrules-prompt-file/workflow-and-integration-rules.mdc b/awesome-cursor-rules-mdc/pyqt6-eeg-processing-cursorrules-prompt-file/workflow-and-integration-rules.mdc new file mode 100644 index 0000000..453e7a5 --- /dev/null +++ b/awesome-cursor-rules-mdc/pyqt6-eeg-processing-cursorrules-prompt-file/workflow-and-integration-rules.mdc @@ -0,0 +1,10 @@ +--- +description: Guidelines for workflow optimization and integration with external tools and databases. +globs: /workflows/**/*.* +--- +- Design intuitive user workflows that maximize efficiency and minimize errors. +- Implement best practices for data management and file handling. +- Create scalable and maintainable code structures. +- Seamlessly integrate with external tools and databases (e.g., REDCap, Azure). +- Implement secure data sharing and collaboration features. +- Ensure compatibility with standard EEG file formats and metadata standards. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python--typescript-guide-cursorrules-prompt-file/django-framework-rules.mdc b/awesome-cursor-rules-mdc/python--typescript-guide-cursorrules-prompt-file/django-framework-rules.mdc new file mode 100644 index 0000000..b3fab63 --- /dev/null +++ b/awesome-cursor-rules-mdc/python--typescript-guide-cursorrules-prompt-file/django-framework-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Specific guidelines for Django projects, enforcing the use of the latest stable version and best practices. +globs: **/django/**/*.* +--- +- You always use the latest stable version of Django, and you are familiar with the latest features and best practices. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python--typescript-guide-cursorrules-prompt-file/general-ai-behavior-rules.mdc b/awesome-cursor-rules-mdc/python--typescript-guide-cursorrules-prompt-file/general-ai-behavior-rules.mdc new file mode 100644 index 0000000..8adae7f --- /dev/null +++ b/awesome-cursor-rules-mdc/python--typescript-guide-cursorrules-prompt-file/general-ai-behavior-rules.mdc @@ -0,0 +1,5 @@ +--- +description: General rules for the AI's behavior, focusing on providing accurate and thoughtful answers. +globs: **/*.* +--- +- You carefully provide accurate, factual, thoughtful answers, and are a genius at reasoning. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python--typescript-guide-cursorrules-prompt-file/python-and-typescript-code-style.mdc b/awesome-cursor-rules-mdc/python--typescript-guide-cursorrules-prompt-file/python-and-typescript-code-style.mdc new file mode 100644 index 0000000..f54957e --- /dev/null +++ b/awesome-cursor-rules-mdc/python--typescript-guide-cursorrules-prompt-file/python-and-typescript-code-style.mdc @@ -0,0 +1,13 @@ +--- +description: General rules for Python and Typescript code to ensure clarity and readability. +globs: **/*.py, **/*.ts, **/*.tsx +--- +- You are an expert AI programming assistant that primarily focuses on producing clear, readable Python and Typescript code. +- Focus on readability over being performant. +- Always write correct, up to date, bug free, fully functional and working, secure, performant and efficient code. +- Fully implement all required functionality. +- Leave NO todo's, placeholders, or missing pieces. +- Be sure to reference file names. +- Be concise. Minimize other prose. +- If you think there might not be a correct answer, you say so. If you do not know the answer, say so instead of guessing. +- Follow the user's requirements carefully & to the letter. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python--typescript-guide-cursorrules-prompt-file/react-framework-rules.mdc b/awesome-cursor-rules-mdc/python--typescript-guide-cursorrules-prompt-file/react-framework-rules.mdc new file mode 100644 index 0000000..b5e190e --- /dev/null +++ b/awesome-cursor-rules-mdc/python--typescript-guide-cursorrules-prompt-file/react-framework-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Specific rules for React projects, enforcing the use of the latest stable version and best practices. +globs: **/react/**/*.* +--- +- You always use the latest stable version of React, and you are familiar with the latest features and best practices. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python--typescript-guide-cursorrules-prompt-file/tailwind-and-inertiajs-rules.mdc b/awesome-cursor-rules-mdc/python--typescript-guide-cursorrules-prompt-file/tailwind-and-inertiajs-rules.mdc new file mode 100644 index 0000000..a88dab3 --- /dev/null +++ b/awesome-cursor-rules-mdc/python--typescript-guide-cursorrules-prompt-file/tailwind-and-inertiajs-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Rules for using Tailwind CSS and InertiaJS, including the use of Catalyst components. +globs: **/*.jsx, **/*.tsx, **/*.html +--- +- You also use the latest version of Tailwind and InertiaJS. You use Catalyst components where possible and you avoid changing the Catalyst components themselves. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-312-fastapi-best-practices-cursorrules-prom/alembic-database-migrations.mdc b/awesome-cursor-rules-mdc/python-312-fastapi-best-practices-cursorrules-prom/alembic-database-migrations.mdc new file mode 100644 index 0000000..011cf70 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-312-fastapi-best-practices-cursorrules-prom/alembic-database-migrations.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies that Alembic should be used for managing database migrations, ensuring controlled schema evolution. +globs: **/migrations/**/*.* +--- +- Use alembic for database migrations. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-312-fastapi-best-practices-cursorrules-prom/fastapi-framework-rules.mdc b/awesome-cursor-rules-mdc/python-312-fastapi-best-practices-cursorrules-prom/fastapi-framework-rules.mdc new file mode 100644 index 0000000..7819511 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-312-fastapi-best-practices-cursorrules-prom/fastapi-framework-rules.mdc @@ -0,0 +1,16 @@ +--- +description: Defines the use of FastAPI and related libraries for building the application, guiding the architectural decisions in the 'app' directory. +globs: **/app/**/*.* +--- +- Always use python 3.12 +- Use FastAPI for building APIs. +- Frameworks: + - pydantic + - fastapi + - sqlalchemy +- You use fastapi-users for user management +- You use fastapi-jwt-auth for authentication +- You use fastapi-mail for email sending +- You use fastapi-cache for caching +- You use fastapi-limiter for rate limiting +- You use fastapi-pagination for pagination \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-312-fastapi-best-practices-cursorrules-prom/python-dependency-management-with-poetry.mdc b/awesome-cursor-rules-mdc/python-312-fastapi-best-practices-cursorrules-prom/python-dependency-management-with-poetry.mdc new file mode 100644 index 0000000..abbcd05 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-312-fastapi-best-practices-cursorrules-prom/python-dependency-management-with-poetry.mdc @@ -0,0 +1,6 @@ +--- +description: Ensures the project uses Poetry for managing dependencies, promoting consistent and reproducible builds. +globs: **/pyproject.toml +--- +- Use poetry for dependency management. +- Use UV when installing depdendencies. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-312-fastapi-best-practices-cursorrules-prom/python-general-best-practices.mdc b/awesome-cursor-rules-mdc/python-312-fastapi-best-practices-cursorrules-prom/python-general-best-practices.mdc new file mode 100644 index 0000000..26e792d --- /dev/null +++ b/awesome-cursor-rules-mdc/python-312-fastapi-best-practices-cursorrules-prom/python-general-best-practices.mdc @@ -0,0 +1,12 @@ +--- +description: Applies general Python coding best practices across all Python files in the project, focusing on code clarity, style, and maintainability. +globs: **/*.py +--- +- Follow PEP 8 style guide for formatting. +- Use docstrings to document functions and classes. +- Write simple and clear code; avoid unnecessary complexity. +- Prefer list comprehensions for creating lists when appropriate. +- Use try-except blocks to handle exceptions gracefully. +- Utilize type hints for better code clarity and type checking. +- Limit the use of global variables to reduce side effects. +- Choose descriptive variable, function, and class names. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-312-fastapi-best-practices-cursorrules-prom/unit-testing-requirement.mdc b/awesome-cursor-rules-mdc/python-312-fastapi-best-practices-cursorrules-prom/unit-testing-requirement.mdc new file mode 100644 index 0000000..0184ce4 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-312-fastapi-best-practices-cursorrules-prom/unit-testing-requirement.mdc @@ -0,0 +1,5 @@ +--- +description: Enforces the implementation of unit tests to guarantee code reliability and maintainability, especially within the 'tests' directory. +globs: **/tests/**/*.* +--- +- Implement unit tests to ensure code reliability. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-312-fastapi-best-practices-cursorrules-prom/virtual-environment-usage.mdc b/awesome-cursor-rules-mdc/python-312-fastapi-best-practices-cursorrules-prom/virtual-environment-usage.mdc new file mode 100644 index 0000000..e55ac64 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-312-fastapi-best-practices-cursorrules-prom/virtual-environment-usage.mdc @@ -0,0 +1,5 @@ +--- +description: Mandates the use of virtual environments for isolating project dependencies and ensuring reproducibility. +globs: **/* +--- +- Isolate project dependencies using virtual environments (e.g., `venv`). \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-containerization-cursorrules-prompt-file/containerization-rules.mdc b/awesome-cursor-rules-mdc/python-containerization-cursorrules-prompt-file/containerization-rules.mdc new file mode 100644 index 0000000..88a7bea --- /dev/null +++ b/awesome-cursor-rules-mdc/python-containerization-cursorrules-prompt-file/containerization-rules.mdc @@ -0,0 +1,6 @@ +--- +description: Rules for creating and maintaining Dockerfiles. +globs: **/Dockerfile +--- +- You are an expert in containerization technologies. +- Follow best practices for creating efficient and secure Dockerfiles. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-containerization-cursorrules-prompt-file/database-algorithm-rules.mdc b/awesome-cursor-rules-mdc/python-containerization-cursorrules-prompt-file/database-algorithm-rules.mdc new file mode 100644 index 0000000..1cf748a --- /dev/null +++ b/awesome-cursor-rules-mdc/python-containerization-cursorrules-prompt-file/database-algorithm-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Rules for writing and optimizing database algorithms. +globs: **/database/**/*.* +--- +- You are an expert in database algorithms. +- Optimize algorithms for performance and scalability. +- Use appropriate data structures and indexing strategies. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-containerization-cursorrules-prompt-file/python-general-rules.mdc b/awesome-cursor-rules-mdc/python-containerization-cursorrules-prompt-file/python-general-rules.mdc new file mode 100644 index 0000000..1cde028 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-containerization-cursorrules-prompt-file/python-general-rules.mdc @@ -0,0 +1,6 @@ +--- +description: General Python development rules applicable to all Python files in the project. +globs: **/*.py +--- +- Follow Python's official documentation and PEPs for best practices in Python development. +- You are an expert in Python, database algorithms, and containerization technologies. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/ai-friendly-coding-practices.mdc b/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/ai-friendly-coding-practices.mdc new file mode 100644 index 0000000..f2595df --- /dev/null +++ b/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/ai-friendly-coding-practices.mdc @@ -0,0 +1,5 @@ +--- +description: Optimize code snippets and explanations for clarity and AI-assisted development. +globs: * +--- +- Provide code snippets and explanations tailored to these principles, optimizing for clarity and AI-assisted development. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/ci-cd-implementation-rule.mdc b/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/ci-cd-implementation-rule.mdc new file mode 100644 index 0000000..c81bb78 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/ci-cd-implementation-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Uses GitHub Actions or GitLab CI for CI/CD implementation. +globs: * +--- +- CI/CD implementation with GitHub Actions or GitLab CI. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/configuration-management-rule.mdc b/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/configuration-management-rule.mdc new file mode 100644 index 0000000..3f3a2b1 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/configuration-management-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Uses environment variables for managing configurations. +globs: * +--- +- Configuration management using environment variables. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/error-handling-and-logging-rule.mdc b/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/error-handling-and-logging-rule.mdc new file mode 100644 index 0000000..5d8788d --- /dev/null +++ b/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/error-handling-and-logging-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Implements robust error handling and logging, including context capture. +globs: * +--- +- Robust error handling and logging, including context capture. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/modular-design-rule.mdc b/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/modular-design-rule.mdc new file mode 100644 index 0000000..3fbfcb6 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/modular-design-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Promotes modular design with distinct files for models, services, controllers, and utilities. +globs: * +--- +- Modular design with distinct files for models, services, controllers, and utilities. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/project-structure-rule.mdc b/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/project-structure-rule.mdc new file mode 100644 index 0000000..e1a176e --- /dev/null +++ b/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/project-structure-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Enforces a clear project structure with separated directories for source code, tests, docs, and config. +globs: * +--- +- Approach emphasizes a clear project structure with separate directories for source code, tests, docs, and config. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/python-general-rules.mdc b/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/python-general-rules.mdc new file mode 100644 index 0000000..8db2fac --- /dev/null +++ b/awesome-cursor-rules-mdc/python-cursorrules-prompt-file-best-practices/python-general-rules.mdc @@ -0,0 +1,19 @@ +--- +description: Applies general Python development guidelines including typing, docstrings, dependency management, testing with pytest, and code style using Ruff. +globs: **/*.py +--- +- For any python file, be sure to ALWAYS add typing annotations to each function or class. Be sure to include return types when necessary. +- Add descriptive docstrings to all python functions and classes as well. Please use pep257 convention. Update existing docstrings if need be. +- Make sure you keep any comments that exist in a file. +- When writing tests, make sure that you ONLY use pytest or pytest plugins, do NOT use the unittest module. +- All tests should have typing annotations as well. +- All tests should be in ./tests. Be sure to create all necessary files and folders. If you are creating files inside of ./tests or ./src/goob_ai, be sure to make a init.py file if one does not exist. +- All tests should be fully annotated and should contain docstrings. +- Be sure to import the following if TYPE_CHECKING: + from _pytest.capture import CaptureFixture + from _pytest.fixtures import FixtureRequest + from _pytest.logging import LogCaptureFixture + from _pytest.monkeypatch import MonkeyPatch + from pytest_mock.plugin import MockerFixture +- Dependency management via https://github.com/astral-sh/uv and virtual environments. +- Code style consistency using Ruff. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-developer-cursorrules-prompt-file/dependencies-management-rules.mdc b/awesome-cursor-rules-mdc/python-developer-cursorrules-prompt-file/dependencies-management-rules.mdc new file mode 100644 index 0000000..d669e5c --- /dev/null +++ b/awesome-cursor-rules-mdc/python-developer-cursorrules-prompt-file/dependencies-management-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Mandates the usage of UV when installing dependencies to ensure consistency and efficiency across all environments. +globs: **/requirements.txt +--- +- Always use UV when installing dependencies \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-developer-cursorrules-prompt-file/general-python-development.mdc b/awesome-cursor-rules-mdc/python-developer-cursorrules-prompt-file/general-python-development.mdc new file mode 100644 index 0000000..7c13079 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-developer-cursorrules-prompt-file/general-python-development.mdc @@ -0,0 +1,5 @@ +--- +description: Sets the tone for a python developer with expertise in python, command-line tools and file system operations. +globs: **/*.py +--- +You are an elite software developer with extensive expertise in Python, command-line tools, and file system operations. Your strong background in debugging complex issues and optimizing code performance makes you an invaluable asset to this project. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-developer-cursorrules-prompt-file/project-technology-stack-context.mdc b/awesome-cursor-rules-mdc/python-developer-cursorrules-prompt-file/project-technology-stack-context.mdc new file mode 100644 index 0000000..8247f28 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-developer-cursorrules-prompt-file/project-technology-stack-context.mdc @@ -0,0 +1,5 @@ +--- +description: Provides a comprehensive overview of the technologies used in the project to help with understanding the environment. +globs: **/* +--- +This project utilizes the following technologies: \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-developer-cursorrules-prompt-file/python-code-style.mdc b/awesome-cursor-rules-mdc/python-developer-cursorrules-prompt-file/python-code-style.mdc new file mode 100644 index 0000000..c15711d --- /dev/null +++ b/awesome-cursor-rules-mdc/python-developer-cursorrules-prompt-file/python-code-style.mdc @@ -0,0 +1,5 @@ +--- +description: Ensures that all Python code is written using classes instead of functions. +globs: **/*.py +--- +- Always use classes instead of function \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-developer-cursorrules-prompt-file/python-version.mdc b/awesome-cursor-rules-mdc/python-developer-cursorrules-prompt-file/python-version.mdc new file mode 100644 index 0000000..28db9d2 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-developer-cursorrules-prompt-file/python-version.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies that the project must always utilize Python version 3.12 for all Python code. +globs: **/*.py +--- +- Always use python 3.12 \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-forms.mdc b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-forms.mdc new file mode 100644 index 0000000..1b7269f --- /dev/null +++ b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-forms.mdc @@ -0,0 +1,7 @@ +--- +description: Guidelines for Django forms, focusing on form handling, validation, and model form usage. +globs: **/forms.py +--- +- Utilize Django's form and model form classes for form handling and validation. +- Use Django's validation framework to validate form and model data. +- Keep business logic in models and forms; keep views light and focused on request handling. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-middleware.mdc b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-middleware.mdc new file mode 100644 index 0000000..18d8447 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-middleware.mdc @@ -0,0 +1,6 @@ +--- +description: Guidance on using Django middleware for cross-cutting concerns like authentication, logging, and caching. +globs: **/middleware.py +--- +- Use middleware judiciously to handle cross-cutting concerns like authentication, logging, and caching. +- Use Django’s middleware for common tasks such as authentication, logging, and security. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-models.mdc b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-models.mdc new file mode 100644 index 0000000..9ce04cf --- /dev/null +++ b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-models.mdc @@ -0,0 +1,6 @@ +--- +description: Rules for Django models, emphasizing ORM usage, database interactions, and data validation. +globs: **/models.py +--- +- Leverage Django’s ORM for database interactions; avoid raw SQL queries unless necessary for performance. +- Keep business logic in models and forms; keep views light and focused on request handling. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-rest-framework.mdc b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-rest-framework.mdc new file mode 100644 index 0000000..fee1eb1 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-rest-framework.mdc @@ -0,0 +1,5 @@ +--- +description: Rules for Django REST Framework serializers, focusing on JSON responses. +globs: **/serializers.py +--- +- Use Django templates for rendering HTML and DRF serializers for JSON responses. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-settings.mdc b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-settings.mdc new file mode 100644 index 0000000..901b45c --- /dev/null +++ b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-settings.mdc @@ -0,0 +1,9 @@ +--- +description: Configurations for Django settings file with the list of dependencies and conventions. +globs: **/settings.py +--- +- Django +- Django REST Framework (for API development) +- Celery (for background tasks) +- Redis (for caching and task queues) +- PostgreSQL or MySQL (preferred databases for production) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-templates.mdc b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-templates.mdc new file mode 100644 index 0000000..b82910e --- /dev/null +++ b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-templates.mdc @@ -0,0 +1,5 @@ +--- +description: Rules for Django templates, focusing on rendering HTML and following best practices. +globs: **/templates/**/*.html +--- +- Use Django templates for rendering HTML and DRF serializers for JSON responses. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-urls.mdc b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-urls.mdc new file mode 100644 index 0000000..f8829bb --- /dev/null +++ b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-urls.mdc @@ -0,0 +1,5 @@ +--- +description: Guidelines for Django URL configurations, focusing on clear and RESTful URL patterns. +globs: **/urls.py +--- +- Use Django’s URL dispatcher (urls.py) to define clear and RESTful URL patterns. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-views.mdc b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-views.mdc new file mode 100644 index 0000000..345fc1c --- /dev/null +++ b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/django-views.mdc @@ -0,0 +1,7 @@ +--- +description: Specific guidelines for Django views, focusing on class-based vs. function-based views, error handling, and request handling. +globs: **/views.py +--- +- Use Django’s class-based views (CBVs) for more complex views; prefer function-based views (FBVs) for simpler logic. +- Implement error handling at the view level and use Django's built-in error handling mechanisms. +- Keep business logic in models and forms; keep views light and focused on request handling. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/performance-optimization.mdc b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/performance-optimization.mdc new file mode 100644 index 0000000..377a563 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/performance-optimization.mdc @@ -0,0 +1,10 @@ +--- +description: Focus on performance optimization techniques in all files of the project. +globs: **/*.* +--- +- Optimize query performance using Django ORM's select_related and prefetch_related for related object fetching. +- Use Django’s cache framework with backend support (e.g., Redis or Memcached) to reduce database load. +- Implement database indexing and query optimization techniques for better performance. +- Use asynchronous views and background tasks (via Celery) for I/O-bound or long-running operations. +- Optimize static file handling with Django’s static file management system (e.g., WhiteNoise or CDN integration). +- Prioritize security and performance optimization in every stage of development. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/python-django-general.mdc b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/python-django-general.mdc new file mode 100644 index 0000000..76dac85 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/python-django-general.mdc @@ -0,0 +1,11 @@ +--- +description: General Python and Django rules, focusing on coding style, error handling, and Django conventions across the project. +globs: **/*.py +--- +- You are an expert in Python, Django, and scalable web application development. +- Write clear, technical responses with precise Django examples. +- Use Django's built-in features and tools wherever possible to leverage its full capabilities. +- Prioritize readability and maintainability; follow Django's coding style guide (PEP 8 compliance). +- Use descriptive variable and function names; adhere to naming conventions (e.g., lowercase with underscores for functions and variables). +- Structure your project in a modular way using Django apps to promote reusability and separation of concerns. +- Follow Django's "Convention Over Configuration" principle for reducing boilerplate code. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/security.mdc b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/security.mdc new file mode 100644 index 0000000..119be1a --- /dev/null +++ b/awesome-cursor-rules-mdc/python-django-best-practices-cursorrules-prompt-fi/security.mdc @@ -0,0 +1,6 @@ +--- +description: Apply security best practices across all files in the Django project. +globs: **/*.* +--- +- Apply Django's security best practices (e.g., CSRF protection, SQL injection protection, XSS prevention). +- Prioritize security and performance optimization in every stage of development. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/fastapi-application-structure.mdc b/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/fastapi-application-structure.mdc new file mode 100644 index 0000000..f483691 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/fastapi-application-structure.mdc @@ -0,0 +1,10 @@ +--- +description: Defines the preferred file structure and component usage for FastAPI applications. +globs: **/main.py +--- +- File structure: exported router, sub-routes, utilities, static content, types (models, schemas). +- Use functional components (plain functions) and Pydantic models for input validation and response schemas. +- Use declarative route definitions with clear return type annotations. +- Use def for synchronous operations and async def for asynchronous ones. +- Minimize @app.on_event("startup") and @app.on_event("shutdown"); prefer lifespan context managers for managing startup and shutdown events. +- Use middleware for logging, error monitoring, and performance optimization. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/fastapi-database-interaction.mdc b/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/fastapi-database-interaction.mdc new file mode 100644 index 0000000..72a1390 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/fastapi-database-interaction.mdc @@ -0,0 +1,7 @@ +--- +description: Specifies the preferred asynchronous database libraries and interaction patterns for FastAPI applications. +globs: **/db/**/*.py +--- +- Async database libraries like asyncpg or aiomysql. +- SQLAlchemy 2.0 (if using ORM features). +- Minimize blocking I/O operations; use asynchronous operations for all database calls. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/fastapi-documentation.mdc b/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/fastapi-documentation.mdc new file mode 100644 index 0000000..96a1d15 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/fastapi-documentation.mdc @@ -0,0 +1,5 @@ +--- +description: Provides a reminder to refer to the FastAPI documentation for guidance on best practices for data models, path operations, and middleware. +globs: **/routers/**/*.py +--- +- Refer to FastAPI documentation for Data Models, Path Operations, and Middleware for best practices. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/fastapi-error-handling.mdc b/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/fastapi-error-handling.mdc new file mode 100644 index 0000000..0990e45 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/fastapi-error-handling.mdc @@ -0,0 +1,7 @@ +--- +description: Defines how errors should be handled within FastAPI applications using middleware. +globs: **/middleware.py +--- +- Use middleware for handling unexpected errors, logging, and error monitoring. +- Prioritize error handling and edge cases. +- Use Pydantic's BaseModel for consistent input/output validation and response schemas. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/fastapi-performance-optimization.mdc b/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/fastapi-performance-optimization.mdc new file mode 100644 index 0000000..9da6c86 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/fastapi-performance-optimization.mdc @@ -0,0 +1,10 @@ +--- +description: Optimizes performance in FastAPI APIs by using async functions, caching, and other techniques. +globs: **/api/**/*.py +--- +- Optimize for performance using async functions for I/O-bound tasks, caching strategies, and lazy loading. +- Use HTTPException for expected errors and model them as specific HTTP responses. +- Minimize blocking I/O operations; use asynchronous operations for all database calls and external API requests. +- Implement caching for static and frequently accessed data using tools like Redis or in-memory stores. +- Optimize data serialization and deserialization with Pydantic. +- Use lazy loading techniques for large datasets and substantial API responses. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/python-general-coding-style.mdc b/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/python-general-coding-style.mdc new file mode 100644 index 0000000..4af4c7f --- /dev/null +++ b/awesome-cursor-rules-mdc/python-fastapi-best-practices-cursorrules-prompt-f/python-general-coding-style.mdc @@ -0,0 +1,17 @@ +--- +description: Enforces general Python coding style guidelines, including functional programming preferences and naming conventions. +globs: **/*.py +--- +- Write concise, technical responses with accurate Python examples. +- Use functional, declarative programming; avoid classes where possible. +- Prefer iteration and modularization over code duplication. +- Use descriptive variable names with auxiliary verbs (e.g., is_active, has_permission). +- Use lowercase with underscores for directories and files (e.g., routers/user_routes.py). +- Favor named exports for routes and utility functions. +- Use the Receive an Object, Return an Object (RORO) pattern. +- Use def for pure functions and async def for asynchronous operations. +- Use type hints for all function signatures. +- Prefer Pydantic models over raw dictionaries for input validation. +- Avoid unnecessary curly braces in conditional statements. +- For single-line statements in conditionals, omit curly braces. +- Use concise, one-line syntax for simple conditional statements (e.g., if condition: do_something()). \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-fastapi-cursorrules-prompt-file/fastapi-best-practices.mdc b/awesome-cursor-rules-mdc/python-fastapi-cursorrules-prompt-file/fastapi-best-practices.mdc new file mode 100644 index 0000000..7bbac6a --- /dev/null +++ b/awesome-cursor-rules-mdc/python-fastapi-cursorrules-prompt-file/fastapi-best-practices.mdc @@ -0,0 +1,10 @@ +--- +description: Enforces FastAPI best practices for application code within the 'app' directory, including data validation, dependency injection, and asynchronous operations. +globs: app/**/*.* +--- +- Use Pydantic models for request and response schemas +- Implement dependency injection for shared resources +- Utilize async/await for non-blocking operations +- Use path operations decorators (@app.get, @app.post, etc.) +- Implement proper error handling with HTTPException +- Use FastAPI's built-in OpenAPI and JSON Schema support \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-fastapi-cursorrules-prompt-file/fastapi-folder-structure.mdc b/awesome-cursor-rules-mdc/python-fastapi-cursorrules-prompt-file/fastapi-folder-structure.mdc new file mode 100644 index 0000000..5d1a45c --- /dev/null +++ b/awesome-cursor-rules-mdc/python-fastapi-cursorrules-prompt-file/fastapi-folder-structure.mdc @@ -0,0 +1,14 @@ +--- +description: Defines the recommended folder structure for FastAPI projects to maintain organization and separation of concerns within the 'app' directory. +globs: app/**/*.* +--- +- Follow this folder structure: + +app/ + main.py + models/ + schemas/ + routers/ + dependencies/ + services/ + tests/ \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-fastapi-cursorrules-prompt-file/fastapi-main-application-file.mdc b/awesome-cursor-rules-mdc/python-fastapi-cursorrules-prompt-file/fastapi-main-application-file.mdc new file mode 100644 index 0000000..e6c732e --- /dev/null +++ b/awesome-cursor-rules-mdc/python-fastapi-cursorrules-prompt-file/fastapi-main-application-file.mdc @@ -0,0 +1,7 @@ +--- +description: Specifies guidelines for the main application file in FastAPI projects, focusing on application initialization and configuration. +globs: app/main.py +--- +- Ensure proper application initialization with FastAPI() +- Configure middleware and exception handlers +- Define API routes using path operation decorators \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-fastapi-cursorrules-prompt-file/pydantic-models.mdc b/awesome-cursor-rules-mdc/python-fastapi-cursorrules-prompt-file/pydantic-models.mdc new file mode 100644 index 0000000..844ebc3 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-fastapi-cursorrules-prompt-file/pydantic-models.mdc @@ -0,0 +1,7 @@ +--- +description: Guidelines for defining Pydantic models within the models directory of a FastAPI project to ensure data validation and serialization. +globs: app/models/*.py +--- +- Use Pydantic models for request and response schemas +- Define data types using Pydantic fields +- Implement validation logic using Pydantic validators \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-fastapi-cursorrules-prompt-file/python-general-coding-standards.mdc b/awesome-cursor-rules-mdc/python-fastapi-cursorrules-prompt-file/python-general-coding-standards.mdc new file mode 100644 index 0000000..3b125df --- /dev/null +++ b/awesome-cursor-rules-mdc/python-fastapi-cursorrules-prompt-file/python-general-coding-standards.mdc @@ -0,0 +1,11 @@ +--- +description: Applies general Python coding standards, including type hinting, input validation with Pydantic, background tasks, CORS handling, security utilities, PEP 8 compliance, and comprehensive testing. +globs: **/*.py +--- +- Use type hints for all function parameters and return values +- Implement proper input validation using Pydantic +- Use FastAPI's background tasks for long-running operations +- Implement proper CORS handling +- Use FastAPI's security utilities for authentication +- Follow PEP 8 style guide for Python code +- Implement comprehensive unit and integration tests \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/backend-performance-optimization.mdc b/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/backend-performance-optimization.mdc new file mode 100644 index 0000000..a576030 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/backend-performance-optimization.mdc @@ -0,0 +1,7 @@ +--- +description: Focuses on performance optimization techniques for the Python backend. +globs: backend/src/**/*.py +--- +- Minimize blocking I/O operations using async functions. +- Implement caching strategies for frequently accessed data using Redis or in-memory stores. +- Use lazy loading techniques for large datasets and API responses. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/docker-configuration.mdc b/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/docker-configuration.mdc new file mode 100644 index 0000000..821783f --- /dev/null +++ b/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/docker-configuration.mdc @@ -0,0 +1,6 @@ +--- +description: Rules regarding docker usage in the project. +globs: Dockerfile* +--- +- Use Docker for containerization and ensure easy deployment. +- Use Docker and docker compose for orchestration in both development and production environments. Avoid using the obsolete `docker-compose` command. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/fastapi-backend-conventions.mdc b/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/fastapi-backend-conventions.mdc new file mode 100644 index 0000000..491e385 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/fastapi-backend-conventions.mdc @@ -0,0 +1,9 @@ +--- +description: Defines conventions specific to FastAPI usage in the backend. +globs: backend/src/**/*.py +--- +- Follow RESTful API design principles. +- Rely on FastAPI’s dependency injection system for managing state and shared resources. +- Use SQLAlchemy 2.0 for ORM features, if applicable. +- Ensure CORS is properly configured for local development. +- No authentication or authorization is required for users to access the platform. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/frontend-performance-optimization.mdc b/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/frontend-performance-optimization.mdc new file mode 100644 index 0000000..632533b --- /dev/null +++ b/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/frontend-performance-optimization.mdc @@ -0,0 +1,6 @@ +--- +description: Focuses on performance optimization techniques for the TypeScript frontend. +globs: frontend/src/**/*.ts* +--- +- Favor server-side rendering and avoid heavy client-side rendering where possible. +- Implement dynamic loading for non-critical components and optimize image loading using WebP format with lazy loading. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/general-python-backend-rules.mdc b/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/general-python-backend-rules.mdc new file mode 100644 index 0000000..e8a8a0c --- /dev/null +++ b/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/general-python-backend-rules.mdc @@ -0,0 +1,17 @@ +--- +description: Applies general coding style and structure rules for Python code in the backend. +globs: backend/src/**/*.py +--- +- Expert in Python, FastAPI, scalable API development. +- Write concise, technical responses with accurate examples in Python. +- Use functional and declarative programming patterns; avoid classes unless absolutely necessary. +- Prefer iteration and modularization over code duplication. +- Use descriptive variable names with auxiliary verbs (e.g., `is_active`, `has_permission`). +- Follow proper naming conventions: use lowercase with underscores (e.g., `routers/user_routes.py`). +- Use `def` for pure functions and `async def` for asynchronous operations. +- Use Python type hints for all function signatures. Prefer Pydantic models for input validation. +- Follow clear separation with directories for routes, utilities, static content, and models/schemas. +- Use the "Receive an Object, Return an Object" pattern. +- Handle errors at the beginning of functions with early returns. +- Use guard clauses and avoid deeply nested if statements. +- Implement proper logging and custom error types. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/general-typescript-frontend-rules.mdc b/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/general-typescript-frontend-rules.mdc new file mode 100644 index 0000000..e42bd2e --- /dev/null +++ b/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/general-typescript-frontend-rules.mdc @@ -0,0 +1,13 @@ +--- +description: Applies general coding style and structure rules for TypeScript code in the frontend. +globs: frontend/src/**/*.ts* +--- +- Expert in TypeScript, React, Tailwind, and Shadcn UI. +- Write concise, technical responses with accurate examples in TypeScript. +- Use functional and declarative programming patterns; avoid classes unless absolutely necessary. +- Prefer iteration and modularization over code duplication. +- Use descriptive variable names with auxiliary verbs (e.g., `isLoading`, `hasError`). +- Follow proper naming conventions: use lowercase with dashes for directories (e.g., `components/auth-wizard`). +- Use TypeScript for all code. Prefer interfaces over types. Avoid enums; use maps instead. +- Write all components as functional components with proper TypeScript interfaces. +- Implement responsive design using Tailwind CSS with Shadcn UI, adopting a mobile-first approach. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/react-frontend-conventions.mdc b/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/react-frontend-conventions.mdc new file mode 100644 index 0000000..5a92ad2 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-fastapi-scalable-api-cursorrules-prompt-fil/react-frontend-conventions.mdc @@ -0,0 +1,6 @@ +--- +description: Defines conventions and optimizations for React frontend development. +globs: frontend/src/**/*.ts* +--- +- Optimize Web Vitals (LCP, CLS, FID). +- Limit `use client` hooks to small, specific components for Web API access. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-flask-json-guide-cursorrules-prompt-file/drawscape-factorio-usage.mdc b/awesome-cursor-rules-mdc/python-flask-json-guide-cursorrules-prompt-file/drawscape-factorio-usage.mdc new file mode 100644 index 0000000..5c74534 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-flask-json-guide-cursorrules-prompt-file/drawscape-factorio-usage.mdc @@ -0,0 +1,10 @@ +--- +description: Specifies how to use the custom Drawscape Factorio Python module in Python files. +globs: **/*.py +--- +- When working with Python files in this project, always utilize the custom Drawscape Factorio module. +- Use the `createFactorio` and `importFUE5` functions from the `drawscape_factorio` module. +- Ensure the following import statements are present: `from drawscape_factorio import create as createFactorio` and `from drawscape_factorio import importFUE5`. +- When using `importFUE5`, load the exported entities JSON file and pass the data to the function. +- When calling `createFactorio`, provide the imported data and a configuration dictionary with `theme_name`, `color_scheme`, and `show_layers`. +- Write the resulting SVG string to an output file. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-flask-json-guide-cursorrules-prompt-file/general-python-rules.mdc b/awesome-cursor-rules-mdc/python-flask-json-guide-cursorrules-prompt-file/general-python-rules.mdc new file mode 100644 index 0000000..21b64cf --- /dev/null +++ b/awesome-cursor-rules-mdc/python-flask-json-guide-cursorrules-prompt-file/general-python-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Defines general Python version and dependency management rules for the project. +globs: **/*.py +--- +- Always use UV when installing dependencies. +- Always use Python 3.12. +- Always use classes instead of functions when appropriate. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-flask-json-guide-cursorrules-prompt-file/json-data-handling.mdc b/awesome-cursor-rules-mdc/python-flask-json-guide-cursorrules-prompt-file/json-data-handling.mdc new file mode 100644 index 0000000..3371618 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-flask-json-guide-cursorrules-prompt-file/json-data-handling.mdc @@ -0,0 +1,7 @@ +--- +description: Ensures proper JSON data handling when working with Drawscape Factorio. +globs: **/*.py +--- +- When dealing with JSON data for Drawscape Factorio, use the `json` module to load the data from a file. +- Ensure proper error handling and file path management for JSON files. +- Use the loaded JSON data as input for the `importFUE5` function within the Drawscape Factorio module. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/clarification-requirement.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/clarification-requirement.mdc new file mode 100644 index 0000000..092a4ce --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/clarification-requirement.mdc @@ -0,0 +1,5 @@ +--- +description: Sets the project for asking for clarification when tasks are unclear. +globs: **/*.py +--- +- Ask for clarification on unclear tasks. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/communication-tone.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/communication-tone.mdc new file mode 100644 index 0000000..149833b --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/communication-tone.mdc @@ -0,0 +1,5 @@ +--- +description: Establish a professional and concise style for all AI communication and output. +globs: **/*.py +--- +- Maintain a professional and concise communication tone. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/handle-incomplete-tasks.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/handle-incomplete-tasks.mdc new file mode 100644 index 0000000..7967dad --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/handle-incomplete-tasks.mdc @@ -0,0 +1,5 @@ +--- +description: Configure the behaviour for the handler of incomplete tasks. +globs: **/*.py +--- +- Provide partial solution and explain limitations. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/project-specific-build-tool.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/project-specific-build-tool.mdc new file mode 100644 index 0000000..d3971c3 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/project-specific-build-tool.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies the setuptools build tool for the project +globs: **/setup.py +--- +- Use setuptools build tool. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/project-specific-testing-framework.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/project-specific-testing-framework.mdc new file mode 100644 index 0000000..a5b29e1 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/project-specific-testing-framework.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies the pytest framework for all tests under the tests directory +globs: **/tests/**/* +--- +- Use pytest testing framework. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/project-verbosity-level.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/project-verbosity-level.mdc new file mode 100644 index 0000000..58f8122 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/project-verbosity-level.mdc @@ -0,0 +1,5 @@ +--- +description: Defines the desired verbosity level for the project's applications. +globs: **/*.py +--- +- Set verbosity level to 2 (range: 0-3). \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-architecture.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-architecture.mdc new file mode 100644 index 0000000..e61cef5 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-architecture.mdc @@ -0,0 +1,7 @@ +--- +description: Defines architectural patterns and principles for Python projects, including modular design, Single Responsibility, and DRY. +globs: **/*.py +--- +- Use modular design. +- Follow Single Responsibility Principle. +- Follow DRY (Don't Repeat Yourself) Principle. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-code-formatting.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-code-formatting.mdc new file mode 100644 index 0000000..5e89640 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-code-formatting.mdc @@ -0,0 +1,7 @@ +--- +description: Sets code formatting rules for Python projects using Black and Pylint and following PEP 8. +globs: **/*.py +--- +- Use Black for code formatting. +- Use Pylint for linting. +- Follow PEP 8 and project-specific rules. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-code-review.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-code-review.mdc new file mode 100644 index 0000000..518cca2 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-code-review.mdc @@ -0,0 +1,7 @@ +--- +description: Specifies code review requirements for Python projects, including requiring reviews and using GitHub Pull Requests. +globs: **/*.py +--- +- Require code reviews. +- Use GitHub Pull Requests for code reviews. +- Review for functionality, code quality, and security. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-configuration-management.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-configuration-management.mdc new file mode 100644 index 0000000..e18e577 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-configuration-management.mdc @@ -0,0 +1,7 @@ +--- +description: Defines configuration management practices for Python projects, including using .env files and python-dotenv. +globs: **/*.py +--- +- Use .env files for configuration. +- Use python-dotenv for environment variable management. +- Manage secrets using environment variables. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-dependency-management.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-dependency-management.mdc new file mode 100644 index 0000000..b51ca22 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-dependency-management.mdc @@ -0,0 +1,6 @@ +--- +description: Defines dependency management practices for Python projects, including using pip and Semantic Versioning. +globs: **/requirements.txt +--- +- Use pip for package management. +- Use Semantic Versioning for dependency versioning. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-documentation.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-documentation.mdc new file mode 100644 index 0000000..90c2319 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-documentation.mdc @@ -0,0 +1,7 @@ +--- +description: Sets documentation requirements for Python code, including requiring docstrings and following the Google Python Style Guide. +globs: **/*.py +--- +- Require documentation for all code. +- Use docstrings for documentation. +- Follow the Google Python Style Guide for documentation. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-error-handling.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-error-handling.mdc new file mode 100644 index 0000000..2b98e9b --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-error-handling.mdc @@ -0,0 +1,6 @@ +--- +description: Defines Python error handling preferences, including using try-except blocks and logging errors. +globs: **/*.py +--- +- Prefer using try-except blocks for error handling. +- Log errors appropriately. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-general-coding-style.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-general-coding-style.mdc new file mode 100644 index 0000000..d02884d --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-general-coding-style.mdc @@ -0,0 +1,9 @@ +--- +description: Enforces general Python coding style guidelines including indentation, line length, and commenting style. +globs: **/*.py +--- +- Use strict mode. +- Indent using 4 spaces. +- Limit line length to 120 characters. +- Use # for single-line comments and ''' for multi-line comments. +- Require comments in the code. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-logging.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-logging.mdc new file mode 100644 index 0000000..7c4b8b3 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-logging.mdc @@ -0,0 +1,7 @@ +--- +description: Configures logging practices for Python applications, including using the Python logging module and defining log levels. +globs: **/*.py +--- +- Use the Python logging module for logging. +- Use log levels: debug, info, warn, error. +- Set a log retention policy of 7 days. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-monitoring.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-monitoring.mdc new file mode 100644 index 0000000..0493aa0 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-monitoring.mdc @@ -0,0 +1,7 @@ +--- +description: Specifies monitoring practices for Python applications, including monitoring file processing time, classification accuracy, and error rate. +globs: **/*.py +--- +- Monitor file processing time. +- Monitor classification accuracy. +- Monitor error rate. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-naming-conventions.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-naming-conventions.mdc new file mode 100644 index 0000000..996ba2d --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-naming-conventions.mdc @@ -0,0 +1,9 @@ +--- +description: Applies Python naming conventions for variables, functions, classes, interfaces, and files. +globs: **/*.py +--- +- Use snake_case for variables. +- Use snake_case for functions. +- Use PascalCase for classes. +- Use PascalCase for interfaces. +- Use snake_case for files. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-security.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-security.mdc new file mode 100644 index 0000000..b36c318 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-security.mdc @@ -0,0 +1,8 @@ +--- +description: Enforces security best practices for Python code, including requiring HTTPS, input sanitization, and using environment variables. +globs: **/*.py +--- +- Require HTTPS for secure connections. +- Sanitize all inputs. +- Validate all inputs. +- Use environment variables for sensitive configuration. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-testing.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-testing.mdc new file mode 100644 index 0000000..9bcf562 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-testing.mdc @@ -0,0 +1,7 @@ +--- +description: Specifies requirements for testing Python code, including requiring tests, coverage targets, and test types. +globs: **/test_*.py +--- +- Require tests for all code. +- Aim for 80% test coverage. +- Include unit and integration tests. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-version-control.mdc b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-version-control.mdc new file mode 100644 index 0000000..cf1e8dc --- /dev/null +++ b/awesome-cursor-rules-mdc/python-github-setup-cursorrules-prompt-file/python-version-control.mdc @@ -0,0 +1,7 @@ +--- +description: Outlines version control practices for Python projects, including using Git, GitHub Flow, and Conventional Commits. +globs: **/.git/**/* +--- +- Use Git for version control. +- Follow the GitHub Flow branching strategy. +- Use Conventional Commits for commit messages. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/asynchronous-programming-preference.mdc b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/asynchronous-programming-preference.mdc new file mode 100644 index 0000000..5c15759 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/asynchronous-programming-preference.mdc @@ -0,0 +1,5 @@ +--- +description: Favors the use of async and await for asynchronous programming in Python. +globs: **/*.py +--- +- **Asynchronous Programming:** Prefer `async` and `await` \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/code-formatting-with-ruff.mdc b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/code-formatting-with-ruff.mdc new file mode 100644 index 0000000..6f0e7c4 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/code-formatting-with-ruff.mdc @@ -0,0 +1,5 @@ +--- +description: Enforces code formatting using Ruff, replacing Black, isort, and flake8 for consistent style. +globs: **/*.py +--- +- **Code Formatting:** Ruff (replaces `black`, `isort`, `flake8`) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/comprehensive-type-annotations.mdc b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/comprehensive-type-annotations.mdc new file mode 100644 index 0000000..60cfa4e --- /dev/null +++ b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/comprehensive-type-annotations.mdc @@ -0,0 +1,5 @@ +--- +description: Requires detailed type annotations for all Python functions, methods, and class members. +globs: **/*.py +--- +- **Comprehensive Type Annotations:** All functions, methods, and class members must have type annotations, using the most specific types possible. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/comprehensive-unit-testing-with-pytest.mdc b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/comprehensive-unit-testing-with-pytest.mdc new file mode 100644 index 0000000..68192e5 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/comprehensive-unit-testing-with-pytest.mdc @@ -0,0 +1,5 @@ +--- +description: Aims for high test coverage using pytest, testing both common and edge cases. +globs: **/tests/*.py +--- +- **Thorough Unit Testing:** Aim for high test coverage (90% or higher) using `pytest`. Test both common cases and edge cases. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/data-pipeline-management-with-dvc.mdc b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/data-pipeline-management-with-dvc.mdc new file mode 100644 index 0000000..3377382 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/data-pipeline-management-with-dvc.mdc @@ -0,0 +1,5 @@ +--- +description: Employs scripts or tools like dvc to manage data preprocessing and ensure reproducibility. +globs: **/data_pipeline/*.py +--- +- **Data Pipeline Management:** Employ scripts or tools like `dvc` to manage data preprocessing and ensure reproducibility. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/data-validation-with-pydantic.mdc b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/data-validation-with-pydantic.mdc new file mode 100644 index 0000000..654d5f7 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/data-validation-with-pydantic.mdc @@ -0,0 +1,5 @@ +--- +description: Use Pydantic models for rigorous request and response data validation in FastAPI applications. +globs: **/app/*.py +--- +- **Data Validation:** Use Pydantic models for rigorous request and response data validation. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/detailed-docstrings.mdc b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/detailed-docstrings.mdc new file mode 100644 index 0000000..825dd90 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/detailed-docstrings.mdc @@ -0,0 +1,5 @@ +--- +description: Requires detailed Google-style docstrings for all functions, methods, and classes. +globs: **/*.py +--- +- **Detailed Docstrings:** All functions, methods, and classes must have Google-style docstrings, thoroughly explaining their purpose, parameters, return values, and any exceptions raised. Include usage examples where helpful. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/experiment-configuration-with-hydra-yaml.mdc b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/experiment-configuration-with-hydra-yaml.mdc new file mode 100644 index 0000000..b27e6b3 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/experiment-configuration-with-hydra-yaml.mdc @@ -0,0 +1,5 @@ +--- +description: Recommends using Hydra or YAML for experiment configuration to ensure clarity and reproducibility. +globs: **/configs/*.yaml +--- +- **Experiment Configuration:** Use `hydra` or `yaml` for clear and reproducible experiment configurations. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/fastapi-web-framework.mdc b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/fastapi-web-framework.mdc new file mode 100644 index 0000000..21aaa1f --- /dev/null +++ b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/fastapi-web-framework.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies FastAPI as the web framework for API development. +globs: **/app/*.py +--- +- **Web Framework:** `fastapi` \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/google-style-docstrings.mdc b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/google-style-docstrings.mdc new file mode 100644 index 0000000..a6b22d0 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/google-style-docstrings.mdc @@ -0,0 +1,5 @@ +--- +description: Requires Google-style docstrings for all Python functions, methods, and classes. +globs: **/*.py +--- +- **Documentation:** Google style docstring \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/llm-prompt-engineering.mdc b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/llm-prompt-engineering.mdc new file mode 100644 index 0000000..fb43b89 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/llm-prompt-engineering.mdc @@ -0,0 +1,5 @@ +--- +description: Dedicates a module or files for managing Prompt templates with version control for LLM applications. +globs: **/prompts/*.py +--- +- **LLM Prompt Engineering:** Dedicate a module or files for managing Prompt templates with version control. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/logging-module-usage.mdc b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/logging-module-usage.mdc new file mode 100644 index 0000000..8842a72 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/logging-module-usage.mdc @@ -0,0 +1,5 @@ +--- +description: Employs the logging module judiciously to log important events, warnings, and errors. +globs: **/*.py +--- +- **Logging:** Employ the `logging` module judiciously to log important events, warnings, and errors. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/poetry-rye-dependency-management.mdc b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/poetry-rye-dependency-management.mdc new file mode 100644 index 0000000..e994fdf --- /dev/null +++ b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/poetry-rye-dependency-management.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies Poetry or Rye for dependency management in Python projects. +globs: **/pyproject.toml +--- +- **Dependency Management:** Poetry / Rye \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/prioritize-python-3-10-features.mdc b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/prioritize-python-3-10-features.mdc new file mode 100644 index 0000000..3b6c985 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/prioritize-python-3-10-features.mdc @@ -0,0 +1,5 @@ +--- +description: Prioritizes the use of new features available in Python 3.10 and later versions. +globs: **/*.py +--- +- **Prioritize new features in Python 3.10+**. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/python-general-role-definition.mdc b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/python-general-role-definition.mdc new file mode 100644 index 0000000..ff76fd6 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/python-general-role-definition.mdc @@ -0,0 +1,10 @@ +--- +description: Defines the AI's role as a Python master, tutor, ML engineer, and data scientist, emphasizing code quality and clear explanations. +globs: **/*.py +--- +- You are a **Python master**, a highly experienced **tutor**, a **world-renowned ML engineer**, and a **talented data scientist**. +- You possess exceptional coding skills and a deep understanding of Python's best practices, design patterns, and idioms. +- You are adept at identifying and preventing potential errors, and you prioritize writing efficient and maintainable code. +- You are skilled in explaining complex concepts in a clear and concise manner, making you an effective mentor and educator. +- You are recognized for your contributions to the field of machine learning and have a strong track record of developing and deploying successful ML models. +- As a talented data scientist, you excel at data analysis, visualization, and deriving actionable insights from complex datasets. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/testing-framework-pytest.mdc b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/testing-framework-pytest.mdc new file mode 100644 index 0000000..5ae6ef6 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/testing-framework-pytest.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies pytest as the testing framework for Python projects. +globs: **/tests/*.py +--- +- **Testing Framework:** `pytest` \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/type-hinting-rule.mdc b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/type-hinting-rule.mdc new file mode 100644 index 0000000..b16170c --- /dev/null +++ b/awesome-cursor-rules-mdc/python-llm-ml-workflow-cursorrules-prompt-file/type-hinting-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Mandates strict type hinting using the typing module for all Python functions, methods, and class members. +globs: **/*.py +--- +- **Type Hinting:** Strictly use the `typing` module. All functions, methods, and class members must have type annotations. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-ai-friendly-coding-practices-rule.mdc b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-ai-friendly-coding-practices-rule.mdc new file mode 100644 index 0000000..81fd46e --- /dev/null +++ b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-ai-friendly-coding-practices-rule.mdc @@ -0,0 +1,8 @@ +--- +description: Promotes AI-friendly coding practices in Python files, including descriptive names, type hints, detailed comments, and rich error context. +globs: /**/*.py +--- +- Use descriptive variable and function names +- Use type hints +- Provide detailed comments for complex logic +- Provide rich error context for debugging \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-ci-cd-implementation-rule.mdc b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-ci-cd-implementation-rule.mdc new file mode 100644 index 0000000..3613c3c --- /dev/null +++ b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-ci-cd-implementation-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Implements CI/CD pipelines using GitHub Actions or GitLab CI for automated building, testing, and deployment processes. +globs: /.github/workflows/**/*.* +--- +- Implement CI/CD with GitHub Actions or GitLab CI. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-code-style-consistency-rule.mdc b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-code-style-consistency-rule.mdc new file mode 100644 index 0000000..683cb1a --- /dev/null +++ b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-code-style-consistency-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Ensures code style consistency using Ruff for Python files to maintain a clean and uniform codebase. +globs: /**/*.py +--- +- Enforce code style consistency using Ruff. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-configuration-management-rule.mdc b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-configuration-management-rule.mdc new file mode 100644 index 0000000..890ac20 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-configuration-management-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Handles configuration management using environment variables within the 'config' directory for flexible and maintainable application settings. +globs: /config/**/*.* +--- +- Manage configuration using environment variables. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-dependency-management-rule.mdc b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-dependency-management-rule.mdc new file mode 100644 index 0000000..e285f04 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-dependency-management-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies dependency management using Rye and virtual environments for consistent and isolated project dependencies. +globs: /**/pyproject.toml +--- +- Manage dependencies via https://github.com/astral-sh/rye and virtual environments. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-documentation-rule.mdc b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-documentation-rule.mdc new file mode 100644 index 0000000..6c8ad60 --- /dev/null +++ b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-documentation-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Promotes detailed documentation within Python files using docstrings and README files to enhance code understanding and maintainability. +globs: /**/*.py +--- +- Provide detailed documentation using docstrings and README files. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-error-handling-and-logging-rule.mdc b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-error-handling-and-logging-rule.mdc new file mode 100644 index 0000000..d7cd92e --- /dev/null +++ b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-error-handling-and-logging-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Emphasizes robust error handling and logging practices in Python files, including context capture for detailed debugging information. +globs: /**/*.py +--- +- Implement robust error handling and logging, including context capture. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-modular-design-rule.mdc b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-modular-design-rule.mdc new file mode 100644 index 0000000..5c0a8bd --- /dev/null +++ b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-modular-design-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Promotes modular design within the 'src' directory by organizing code into distinct files for models, services, controllers, and utilities. +globs: /src/**/*.* +--- +- Implement modular design with distinct files for models, services, controllers, and utilities. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-project-structure-rule.mdc b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-project-structure-rule.mdc new file mode 100644 index 0000000..5607ccb --- /dev/null +++ b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-project-structure-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Enforces a clear project structure for all Python projects, advocating for separate directories for source code, tests, docs, and configuration. +globs: /**/*.* +--- +- Ensure a clear project structure with separate directories for source code (src), tests (tests), documentation (docs), and configuration (config). \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-testing-with-pytest-rule.mdc b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-testing-with-pytest-rule.mdc new file mode 100644 index 0000000..b421a6f --- /dev/null +++ b/awesome-cursor-rules-mdc/python-projects-guide-cursorrules-prompt-file/python-testing-with-pytest-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies comprehensive testing practices using pytest within the 'tests' directory to ensure code reliability and quality. +globs: /tests/**/*.* +--- +- Use pytest for comprehensive testing. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---data-handling-and-preprocessing.mdc b/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---data-handling-and-preprocessing.mdc new file mode 100644 index 0000000..299af3c --- /dev/null +++ b/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---data-handling-and-preprocessing.mdc @@ -0,0 +1,10 @@ +--- +description: Rules for data handling and preprocessing scripts in chemistry ML projects, emphasizing robust pipelines and appropriate techniques for chemical data. +globs: data_processing/**/*.py +--- +- Implement robust data loading and preprocessing pipelines. +- Use appropriate techniques for handling chemical data (e.g., molecular fingerprints, SMILES strings). +- Implement proper data splitting strategies, considering chemical similarity for test set creation. +- Use data augmentation techniques when appropriate for chemical structures. +- Utilize efficient data structures for chemical representations. +- Implement proper batching and parallel processing for large datasets. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---general-python.mdc b/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---general-python.mdc new file mode 100644 index 0000000..778ddf4 --- /dev/null +++ b/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---general-python.mdc @@ -0,0 +1,9 @@ +--- +description: General Python guidelines for chemistry machine learning projects, including code style, naming conventions, and documentation. +globs: **/*.py +--- +- Follow PEP 8 style guide for Python code. +- Use meaningful and descriptive names for variables, functions, and classes. +- Write clear comments explaining the rationale behind complex algorithms or chemistry-specific operations. +- Maintain consistency in chemical data representation throughout the project. +- Use type hints to improve code readability and catch potential errors. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---model-evaluation-and-interpretation.mdc b/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---model-evaluation-and-interpretation.mdc new file mode 100644 index 0000000..64dfaad --- /dev/null +++ b/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---model-evaluation-and-interpretation.mdc @@ -0,0 +1,8 @@ +--- +description: Rules for model evaluation and interpretation scripts in chemistry ML projects, emphasizing appropriate metrics, error analysis, and visualization techniques. +globs: evaluation/**/*.py +--- +- Use appropriate metrics for chemistry tasks (e.g., RMSE, R², ROC AUC, enrichment factor). +- Implement techniques for model interpretability (e.g., SHAP values, integrated gradients). +- Conduct thorough error analysis, especially for outliers or misclassified compounds. +- Visualize results using chemistry-specific plotting libraries (e.g., RDKit's drawing utilities). \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---pytorch-models.mdc b/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---pytorch-models.mdc new file mode 100644 index 0000000..b4df3c3 --- /dev/null +++ b/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---pytorch-models.mdc @@ -0,0 +1,10 @@ +--- +description: Guidelines for deep learning model development with PyTorch in chemistry applications, including network architecture, batch processing, and optimization techniques. +globs: models/pytorch/**/*.py +--- +- Leverage PyTorch for deep learning models and when GPU acceleration is needed. +- Design neural network architectures suitable for chemical data (e.g., graph neural networks for molecular property prediction). +- Implement proper batch processing and data loading using PyTorch's DataLoader. +- Utilize PyTorch's autograd for automatic differentiation in custom loss functions. +- Implement learning rate scheduling and early stopping for optimal training. +- Use GPU acceleration when available, especially for PyTorch models. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---rdkit-usage.mdc b/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---rdkit-usage.mdc new file mode 100644 index 0000000..dffb2a8 --- /dev/null +++ b/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---rdkit-usage.mdc @@ -0,0 +1,7 @@ +--- +description: Specific guidance regarding the usage of RDKit and related cheminformatics libraries +globs: **/*rdkit*.py +--- +- Utilize appropriate libraries for chemical data handling (e.g., RDKit, OpenBabel). +- Visualize results using chemistry-specific plotting libraries (e.g., RDKit's drawing utilities). +- Refer to official documentation for chemistry-related libraries for best practices and up-to-date APIs. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---reproducibility-and-version-control.mdc b/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---reproducibility-and-version-control.mdc new file mode 100644 index 0000000..c991ad7 --- /dev/null +++ b/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---reproducibility-and-version-control.mdc @@ -0,0 +1,8 @@ +--- +description: Guidelines for ensuring reproducibility and proper version control in chemistry machine learning projects. +globs: .git/**/* +--- +- Use version control (Git) for both code and datasets. +- Implement proper logging of experiments, including all hyperparameters and results. +- Use tools like MLflow or Weights & Biases for experiment tracking. +- Ensure reproducibility by setting random seeds and documenting the full experimental setup. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---scikit-learn-models.mdc b/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---scikit-learn-models.mdc new file mode 100644 index 0000000..dcae50b --- /dev/null +++ b/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---scikit-learn-models.mdc @@ -0,0 +1,9 @@ +--- +description: Guidelines for developing machine learning models using scikit-learn in chemistry applications, focusing on algorithm selection, hyperparameter tuning, and cross-validation. +globs: models/sklearn/**/*.py +--- +- Use scikit-learn for traditional machine learning algorithms and preprocessing. +- Choose appropriate algorithms based on the specific chemistry problem (e.g., regression, classification, clustering). +- Implement proper hyperparameter tuning using techniques like grid search or Bayesian optimization. +- Use cross-validation techniques suitable for chemical data (e.g., scaffold split for drug discovery tasks). +- Implement ensemble methods when appropriate to improve model robustness. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---tauri-integration.mdc b/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---tauri-integration.mdc new file mode 100644 index 0000000..cd38f66 --- /dev/null +++ b/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---tauri-integration.mdc @@ -0,0 +1,7 @@ +--- +description: Guidelines for integrating machine learning models with a Tauri frontend via a backend like Flask +globs: frontend/**/*.rs +--- +- Implement a clean API for the ML models to be consumed by the Flask backend. +- Ensure proper serialization of chemical data and model outputs for frontend consumption. +- Consider implementing asynchronous processing for long-running ML tasks. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---testing-and-validation.mdc b/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---testing-and-validation.mdc new file mode 100644 index 0000000..86ce53d --- /dev/null +++ b/awesome-cursor-rules-mdc/pytorch-scikit-learn-cursorrules-prompt-file/chemistry-ml---testing-and-validation.mdc @@ -0,0 +1,7 @@ +--- +description: Rules for implementing testing and validation procedures specific to chemistry applications. +globs: tests/**/*.py +--- +- Implement unit tests for data processing functions and custom model components. +- Use appropriate statistical tests for model comparison and hypothesis testing. +- Implement validation protocols specific to chemistry (e.g., time-split validation for QSAR models). \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/qwik-basic-cursorrules-prompt-file/qwik-js---best-practices.mdc b/awesome-cursor-rules-mdc/qwik-basic-cursorrules-prompt-file/qwik-js---best-practices.mdc new file mode 100644 index 0000000..40678a0 --- /dev/null +++ b/awesome-cursor-rules-mdc/qwik-basic-cursorrules-prompt-file/qwik-js---best-practices.mdc @@ -0,0 +1,10 @@ +--- +description: Applies Qwik.js best practices for files within the src directory, focusing on lazy-loading, reactive state, data fetching, and side effects. +globs: src/**/*.* +--- +- Use $ suffix for lazy-loaded functions +- Utilize useSignal() for reactive state +- Implement useStore() for complex state objects +- Use useResource$() for data fetching +- Implement useTask$() for side effects +- Utilize useVisibleTask$() for browser-only code \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/qwik-basic-cursorrules-prompt-file/qwik-js---error-handling-optimization.mdc b/awesome-cursor-rules-mdc/qwik-basic-cursorrules-prompt-file/qwik-js---error-handling-optimization.mdc new file mode 100644 index 0000000..72897a1 --- /dev/null +++ b/awesome-cursor-rules-mdc/qwik-basic-cursorrules-prompt-file/qwik-js---error-handling-optimization.mdc @@ -0,0 +1,8 @@ +--- +description: Focuses on error handling, routing with Qwik City, Qwik's optimization features, and lazy-loading for improved performance. +globs: src/**/*.* +--- +- Implement proper error boundaries +- Utilize Qwik City for routing when applicable +- Use Qwik's built-in optimization features +- Implement lazy-loading for improved performance \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/qwik-basic-cursorrules-prompt-file/qwik-js---folder-structure.mdc b/awesome-cursor-rules-mdc/qwik-basic-cursorrules-prompt-file/qwik-js---folder-structure.mdc new file mode 100644 index 0000000..247feb1 --- /dev/null +++ b/awesome-cursor-rules-mdc/qwik-basic-cursorrules-prompt-file/qwik-js---folder-structure.mdc @@ -0,0 +1,15 @@ +--- +description: Provides guidelines and the expected folder structure for a Qwik.js project. +globs: * +--- +- Use the following folder structure: + + src/ + components/ + routes/ + global.css + root.tsx + entry.ssr.tsx + public/ + vite.config.ts + tsconfig.json \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/qwik-basic-cursorrules-prompt-file/qwik-js---general-preferences.mdc b/awesome-cursor-rules-mdc/qwik-basic-cursorrules-prompt-file/qwik-js---general-preferences.mdc new file mode 100644 index 0000000..83ed584 --- /dev/null +++ b/awesome-cursor-rules-mdc/qwik-basic-cursorrules-prompt-file/qwik-js---general-preferences.mdc @@ -0,0 +1,5 @@ +--- +description: Enforces general preferences for Qwik.js components in TypeScript files, promoting functional components. +globs: **/*.tsx +--- +- Prefer functional components \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/qwik-basic-cursorrules-prompt-file/qwik-js---naming-conventions.mdc b/awesome-cursor-rules-mdc/qwik-basic-cursorrules-prompt-file/qwik-js---naming-conventions.mdc new file mode 100644 index 0000000..9780bdd --- /dev/null +++ b/awesome-cursor-rules-mdc/qwik-basic-cursorrules-prompt-file/qwik-js---naming-conventions.mdc @@ -0,0 +1,7 @@ +--- +description: Adheres to Qwik's naming conventions, server-side code execution, and leveraging Vite plugins for optimized builds. +globs: src/**/*.* +--- +- Follow Qwik's naming conventions and best practices +- Use server$ for server-side code execution +- Leverage Vite plugins for optimized builds \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/qwik-basic-cursorrules-prompt-file/qwik-js---typescript-usage.mdc b/awesome-cursor-rules-mdc/qwik-basic-cursorrules-prompt-file/qwik-js---typescript-usage.mdc new file mode 100644 index 0000000..e4d72ac --- /dev/null +++ b/awesome-cursor-rules-mdc/qwik-basic-cursorrules-prompt-file/qwik-js---typescript-usage.mdc @@ -0,0 +1,5 @@ +--- +description: Ensures TypeScript is used for all .ts and .tsx files, enhancing type safety in Qwik.js projects. +globs: **/*.ts, **/*.tsx +--- +- Use TypeScript for all .ts and .tsx files \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-and-tailwind-best-practices.mdc b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-and-tailwind-best-practices.mdc new file mode 100644 index 0000000..e648bd5 --- /dev/null +++ b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-and-tailwind-best-practices.mdc @@ -0,0 +1,12 @@ +--- +description: Applies best practices for Qwik.js development with Tailwind CSS, including using specific suffixes, reactive state management, and styling approaches. +globs: src/**/*.{ts,tsx,css} +--- +- Use $ suffix for lazy-loaded functions +- Utilize useSignal() for reactive state +- Implement Tailwind CSS classes for styling +- Use @apply directive in CSS files for reusable styles +- Implement responsive design using Tailwind's responsive classes +- Utilize Tailwind's configuration file for customization +- Leverage TypeScript for type safety +- Use Vite's fast HMR for development \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-city-routing.mdc b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-city-routing.mdc new file mode 100644 index 0000000..fa5c2b1 --- /dev/null +++ b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-city-routing.mdc @@ -0,0 +1,5 @@ +--- +description: Encourages the use of Qwik City for routing within Qwik applications when applicable. +globs: src/routes/**/*.{ts,tsx} +--- +- Utilize Qwik City for routing when applicable \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-folder-structure.mdc b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-folder-structure.mdc new file mode 100644 index 0000000..79ad79a --- /dev/null +++ b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-folder-structure.mdc @@ -0,0 +1,17 @@ +--- +description: Recommends a specific folder structure for Qwik projects to maintain organization and separation of concerns. Applies to the project root. +globs: qwik.config.js +--- +- Recommended folder structure: + + src/ + components/ + routes/ + global.css + root.tsx + entry.ssr.tsx + public/ + tailwind.config.js + postcss.config.js + vite.config.ts + tsconfig.json \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-functional-components-preference.mdc b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-functional-components-preference.mdc new file mode 100644 index 0000000..de07bd0 --- /dev/null +++ b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-functional-components-preference.mdc @@ -0,0 +1,5 @@ +--- +description: Enforces the use of functional components within Qwik projects, promoting a consistent and modern coding style. +globs: **/*.{ts,tsx} +--- +- Always prefer functional components in Qwik files. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-server-side-code.mdc b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-server-side-code.mdc new file mode 100644 index 0000000..39dfe18 --- /dev/null +++ b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-server-side-code.mdc @@ -0,0 +1,5 @@ +--- +description: Instructs using server$ for server-side code execution within Qwik components. +globs: src/**/*.{ts,tsx} +--- +- Use server$ for server-side code execution \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-tailwind-naming-conventions.mdc b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-tailwind-naming-conventions.mdc new file mode 100644 index 0000000..9a72736 --- /dev/null +++ b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-tailwind-naming-conventions.mdc @@ -0,0 +1,5 @@ +--- +description: Stresses following both Qwik and Tailwind naming conventions for consistency and readability. +globs: **/*.{ts,tsx,css} +--- +- Follow both Qwik and Tailwind naming conventions \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-typescript-usage.mdc b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-typescript-usage.mdc new file mode 100644 index 0000000..f84981f --- /dev/null +++ b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/qwik-typescript-usage.mdc @@ -0,0 +1,5 @@ +--- +description: Mandates the use of TypeScript for all .ts and .tsx files in Qwik projects to ensure type safety and improved code maintainability. +globs: **/*.{ts,tsx} +--- +- Use TypeScript for all .ts and .tsx files \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/tailwind-css-purging.mdc b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/tailwind-css-purging.mdc new file mode 100644 index 0000000..a4620b2 --- /dev/null +++ b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/tailwind-css-purging.mdc @@ -0,0 +1,5 @@ +--- +description: Instructs the implementation of proper Tailwind CSS purging for production builds to reduce the final CSS bundle size. +globs: tailwind.config.js +--- +- Implement proper Tailwind CSS purging for production builds \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/tailwind-custom-styles.mdc b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/tailwind-custom-styles.mdc new file mode 100644 index 0000000..d71c455 --- /dev/null +++ b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/tailwind-custom-styles.mdc @@ -0,0 +1,5 @@ +--- +description: Suggests using Tailwind's @layer directive for custom styles to maintain organization and prevent conflicts. +globs: src/**/*.css +--- +- Use Tailwind's @layer directive for custom styles \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/tailwind-dark-mode.mdc b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/tailwind-dark-mode.mdc new file mode 100644 index 0000000..e681e33 --- /dev/null +++ b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/tailwind-dark-mode.mdc @@ -0,0 +1,5 @@ +--- +description: Recommends implementing dark mode using Tailwind's dark variant to provide a user-friendly experience. +globs: tailwind.config.js +--- +- Implement dark mode using Tailwind's dark variant \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/vite-plugins-for-qwik.mdc b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/vite-plugins-for-qwik.mdc new file mode 100644 index 0000000..7761283 --- /dev/null +++ b/awesome-cursor-rules-mdc/qwik-tailwind-cursorrules-prompt-file/vite-plugins-for-qwik.mdc @@ -0,0 +1,5 @@ +--- +description: Encourages leveraging Vite plugins for optimized Qwik builds to improve performance and efficiency. +globs: vite.config.ts +--- +- Leverage Vite plugins for optimized builds \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---accessibility-features.mdc b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---accessibility-features.mdc new file mode 100644 index 0000000..f9795a4 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---accessibility-features.mdc @@ -0,0 +1,5 @@ +--- +description: Accessibility features for React components built with Chakra UI. +globs: src/**/*.* +--- +- Utilize Chakra UI's built-in accessibility features \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---component-composition.mdc b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---component-composition.mdc new file mode 100644 index 0000000..f394a70 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---component-composition.mdc @@ -0,0 +1,5 @@ +--- +description: Ensuring that React components are built composably using Chakra UI components. +globs: src/components/**/*.* +--- +- Implement proper component composition using Chakra UI \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---dark-mode-implementation.mdc b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---dark-mode-implementation.mdc new file mode 100644 index 0000000..a801b88 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---dark-mode-implementation.mdc @@ -0,0 +1,5 @@ +--- +description: Implement dark mode using Chakra UI's color mode when building React components. +globs: src/**/*.* +--- +- Implement dark mode using Chakra UI's color mode \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---performance-optimization.mdc b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---performance-optimization.mdc new file mode 100644 index 0000000..629d003 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---performance-optimization.mdc @@ -0,0 +1,5 @@ +--- +description: Following Chakra UI best practices for optimizing React components for performance. +globs: src/**/*.* +--- +- Follow Chakra UI best practices for performance optimization \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---responsive-design.mdc b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---responsive-design.mdc new file mode 100644 index 0000000..d5c9981 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---responsive-design.mdc @@ -0,0 +1,5 @@ +--- +description: Utilize Chakra UI's layout components for creating responsive designs in React applications. +globs: src/**/*.* +--- +- Use Chakra UI's layout components for responsive design \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---semantic-html-rendering.mdc b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---semantic-html-rendering.mdc new file mode 100644 index 0000000..39248b3 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---semantic-html-rendering.mdc @@ -0,0 +1,5 @@ +--- +description: Use the 'as' prop for semantic HTML rendering when working with Chakra UI components. +globs: src/components/**/*.* +--- +- Use the 'as' prop for semantic HTML rendering \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---theme-directory-rules.mdc b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---theme-directory-rules.mdc new file mode 100644 index 0000000..f73dfe9 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui---theme-directory-rules.mdc @@ -0,0 +1,7 @@ +--- +description: Rules specific to the theme directory for managing and customizing the Chakra UI theme. +globs: src/theme/**/*.* +--- +- Create theme/index.js to export theme +- Place theme foundations in theme/foundations/ +- Place component-specific theme overrides in theme/components/ \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui-best-practices.mdc b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui-best-practices.mdc new file mode 100644 index 0000000..30f1d5f --- /dev/null +++ b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/chakra-ui-best-practices.mdc @@ -0,0 +1,9 @@ +--- +description: Enforces Chakra UI best practices to maintain consistency and leverage the framework's capabilities. +globs: src/**/*.* +--- +- Use ChakraProvider at the root of your app +- Utilize Chakra UI components for consistent design +- Implement custom theme for brand-specific styling +- Use responsive styles with the Chakra UI breakpoint system +- Leverage Chakra UI hooks for enhanced functionality \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/react-chakra-ui---folder-structure.mdc b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/react-chakra-ui---folder-structure.mdc new file mode 100644 index 0000000..d85db1d --- /dev/null +++ b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/react-chakra-ui---folder-structure.mdc @@ -0,0 +1,15 @@ +--- +description: Maintain the defined folder structure for React and Chakra UI projects to ensure organized code. +globs: src/**/*.* +--- +- Follow the following folder structure: + +src/ + components/ + pages/ + theme/ + index.js + foundations/ + components/ + hooks/ + utils/ \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/react-chakra-ui---general-preferences.mdc b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/react-chakra-ui---general-preferences.mdc new file mode 100644 index 0000000..0b92f46 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/react-chakra-ui---general-preferences.mdc @@ -0,0 +1,5 @@ +--- +description: General preferences for React components using Chakra UI, including the use of functional components with hooks. +globs: src/**/*.* +--- +- Prefer functional components with hooks \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/react-chakra-ui---typescript-usage.mdc b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/react-chakra-ui---typescript-usage.mdc new file mode 100644 index 0000000..ec7cf7c --- /dev/null +++ b/awesome-cursor-rules-mdc/react-chakra-ui-cursorrules-prompt-file/react-chakra-ui---typescript-usage.mdc @@ -0,0 +1,5 @@ +--- +description: Utilize Typescript for type safety when using React components with Chakra UI. +globs: src/**/*.tsx +--- +- Use TypeScript for type safety with Chakra UI components \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-components-creation-cursorrules-prompt-file/react-component-adaptation---post-generation-spa.mdc b/awesome-cursor-rules-mdc/react-components-creation-cursorrules-prompt-file/react-component-adaptation---post-generation-spa.mdc new file mode 100644 index 0000000..9921c89 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-components-creation-cursorrules-prompt-file/react-component-adaptation---post-generation-spa.mdc @@ -0,0 +1,10 @@ +--- +description: Specifies steps to adapt generated React components to the SPA project structure after initial creation. +globs: apps/spa/src/components/**/*.tsx +--- +- After generating, adapt the component to fit our project structure: + - Import + - common shadcn/ui components from @repo/ui/components/ui/ + - app specific components from @/components + - Ensure it follows our existing component patterns + - Add any necessary custom logic or state management \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-components-creation-cursorrules-prompt-file/react-component-adaptation---post-generation.mdc b/awesome-cursor-rules-mdc/react-components-creation-cursorrules-prompt-file/react-component-adaptation---post-generation.mdc new file mode 100644 index 0000000..491c8f5 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-components-creation-cursorrules-prompt-file/react-component-adaptation---post-generation.mdc @@ -0,0 +1,10 @@ +--- +description: Specifies steps to adapt generated React components to the project structure after initial creation. +globs: packages/ui/src/components/**/*.tsx +--- +- After generating, adapt the component to fit our project structure: + - Import + - common shadcn/ui components from @repo/ui/components/ui/ + - app specific components from @/components + - Ensure it follows our existing component patterns + - Add any necessary custom logic or state management \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-components-creation-cursorrules-prompt-file/react-component-creation---general.mdc b/awesome-cursor-rules-mdc/react-components-creation-cursorrules-prompt-file/react-component-creation---general.mdc new file mode 100644 index 0000000..6f8f54b --- /dev/null +++ b/awesome-cursor-rules-mdc/react-components-creation-cursorrules-prompt-file/react-component-creation---general.mdc @@ -0,0 +1,18 @@ +--- +description: Provides guidelines for creating React components, emphasizing careful planning, existing component checks, and prompt generation. +globs: packages/ui/src/components/**/*.tsx +--- +- Carefully consider the component's purpose, functionality, and design. +- Think slowly, step by step, and outline your reasoning. +- Check if a similar component already exists in any of the following locations + - packages/ui/src/components + - apps/spa/src/components +- If it doesn't exist, generate a detailed prompt for the component, including: + - Component name and purpose + - Desired props and their types + - Any specific styling or behavior requirements + - Mention of using Tailwind CSS for styling + - Request for TypeScript usage +- URL encode the prompt. +- Create a clickable link in this format: + [ComponentName](https://v0.dev/chat?q={encoded_prompt}) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-components-creation-cursorrules-prompt-file/react-component-creation---spa-app.mdc b/awesome-cursor-rules-mdc/react-components-creation-cursorrules-prompt-file/react-component-creation---spa-app.mdc new file mode 100644 index 0000000..b1c8232 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-components-creation-cursorrules-prompt-file/react-component-creation---spa-app.mdc @@ -0,0 +1,18 @@ +--- +description: Provides guidelines for creating React components, emphasizing careful planning, existing component checks, and prompt generation in SPA. +globs: apps/spa/src/components/**/*.tsx +--- +- Carefully consider the component's purpose, functionality, and design. +- Think slowly, step by step, and outline your reasoning. +- Check if a similar component already exists in any of the following locations + - packages/ui/src/components + - apps/spa/src/components +- If it doesn't exist, generate a detailed prompt for the component, including: + - Component name and purpose + - Desired props and their types + - Any specific styling or behavior requirements + - Mention of using Tailwind CSS for styling + - Request for TypeScript usage +- URL encode the prompt. +- Create a clickable link in this format: + [ComponentName](https://v0.dev/chat?q={encoded_prompt}) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-components-creation-cursorrules-prompt-file/react-component-prompt-example.mdc b/awesome-cursor-rules-mdc/react-components-creation-cursorrules-prompt-file/react-component-prompt-example.mdc new file mode 100644 index 0000000..5829a76 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-components-creation-cursorrules-prompt-file/react-component-prompt-example.mdc @@ -0,0 +1,7 @@ +--- +description: Provides an example prompt template for generating react components with specific instructions. +globs: packages/ui/src/components/**/*.tsx +--- +- Example prompt template: + "Create a React component named {ComponentName} using TypeScript and Tailwind CSS. It should {description of functionality}. Props should include {list of props with types}. The component should {any specific styling or behavior notes}. Please provide the full component code." +- Remember to replace placeholders like and with the actual values used in your project. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/apollo-caching.mdc b/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/apollo-caching.mdc new file mode 100644 index 0000000..402fa08 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/apollo-caching.mdc @@ -0,0 +1,5 @@ +--- +description: Utilize Apollo Client's caching capabilities to improve performance. +globs: src/**/*.js +--- +- Utilize Apollo Client's caching capabilities \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/apollo-custom-hooks.mdc b/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/apollo-custom-hooks.mdc new file mode 100644 index 0000000..7db66e4 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/apollo-custom-hooks.mdc @@ -0,0 +1,5 @@ +--- +description: Instructs to implement custom hooks for Apollo operations. +globs: src/hooks/**/*.js +--- +- Implement custom hooks for Apollo operations \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/apollo-devtools.mdc b/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/apollo-devtools.mdc new file mode 100644 index 0000000..0f3424a --- /dev/null +++ b/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/apollo-devtools.mdc @@ -0,0 +1,5 @@ +--- +description: Suggests the use of Apollo Client DevTools for debugging. +globs: src/**/*.js +--- +- Use Apollo Client DevTools for debugging \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/apollo-provider-setup.mdc b/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/apollo-provider-setup.mdc new file mode 100644 index 0000000..be6333b --- /dev/null +++ b/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/apollo-provider-setup.mdc @@ -0,0 +1,5 @@ +--- +description: Requires the use of Apollo Provider at the root of the application. +globs: src/App.jsx +--- +- Use Apollo Provider at the root of your app \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/graphql-apollo-client-usage.mdc b/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/graphql-apollo-client-usage.mdc new file mode 100644 index 0000000..8a86681 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/graphql-apollo-client-usage.mdc @@ -0,0 +1,9 @@ +--- +description: Applies best practices for GraphQL and Apollo Client usage, including state management, data fetching, and error handling. +globs: src/graphql/**/*.js +--- +- Use Apollo Client for state management and data fetching +- Implement query components for data fetching +- Utilize mutations for data modifications +- Use fragments for reusable query parts +- Implement proper error handling and loading states \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/graphql-error-boundaries.mdc b/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/graphql-error-boundaries.mdc new file mode 100644 index 0000000..de8dcd3 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/graphql-error-boundaries.mdc @@ -0,0 +1,5 @@ +--- +description: Requires the implementation of proper error boundaries for GraphQL errors. +globs: src/**/*.jsx +--- +- Implement proper error boundaries for GraphQL errors \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/graphql-naming-conventions.mdc b/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/graphql-naming-conventions.mdc new file mode 100644 index 0000000..781c6ff --- /dev/null +++ b/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/graphql-naming-conventions.mdc @@ -0,0 +1,5 @@ +--- +description: Requires following naming conventions for queries, mutations, and fragments. +globs: src/graphql/**/*.js +--- +- Follow naming conventions for queries, mutations, and fragments \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/graphql-typescript-integration.mdc b/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/graphql-typescript-integration.mdc new file mode 100644 index 0000000..e27c591 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/graphql-typescript-integration.mdc @@ -0,0 +1,5 @@ +--- +description: Enforces the use of TypeScript for type safety with GraphQL operations. +globs: src/graphql/**/*.ts +--- +- Use TypeScript for type safety with GraphQL operations \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/react-functional-components-preference.mdc b/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/react-functional-components-preference.mdc new file mode 100644 index 0000000..17aef38 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-graphql-apollo-client-cursorrules-prompt-file/react-functional-components-preference.mdc @@ -0,0 +1,5 @@ +--- +description: Enforces the use of functional components with hooks in React components. +globs: src/components/**/*.jsx +--- +- Always use functional components with hooks instead of class components. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/folder-structure.mdc b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/folder-structure.mdc new file mode 100644 index 0000000..980d78e --- /dev/null +++ b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/folder-structure.mdc @@ -0,0 +1,11 @@ +--- +description: Enforce specific directory structure for React and MobX Projects. +globs: src/** +--- +- Maintain following folder structure: + src/ + components/ + stores/ + hooks/ + pages/ + utils/ \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-best-practices.mdc b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-best-practices.mdc new file mode 100644 index 0000000..308a1c3 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-best-practices.mdc @@ -0,0 +1,5 @@ +--- +description: Adhere to MobX best practices for scalable state management. +globs: src/**/*.ts +--- +- Follow MobX best practices for scalable state management. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-dependency-injection.mdc b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-dependency-injection.mdc new file mode 100644 index 0000000..efa3be0 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-dependency-injection.mdc @@ -0,0 +1,5 @@ +--- +description: Implement proper dependency injection for stores. +globs: src/**/*.ts +--- +- Implement proper dependency injection for stores. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-devtools.mdc b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-devtools.mdc new file mode 100644 index 0000000..51ec5ef --- /dev/null +++ b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-devtools.mdc @@ -0,0 +1,5 @@ +--- +description: Utilize MobX DevTools for debugging MobX applications. +globs: src/**/*.ts +--- +- Utilize MobX DevTools for debugging. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-react-lite-usage.mdc b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-react-lite-usage.mdc new file mode 100644 index 0000000..4b3c943 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-react-lite-usage.mdc @@ -0,0 +1,5 @@ +--- +description: Enforce best practices when using MobX with React Lite. +globs: src/components/**/*.tsx +--- +- Use MobX-react-lite for optimal performance with functional components. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-reaction-usage.mdc b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-reaction-usage.mdc new file mode 100644 index 0000000..331243f --- /dev/null +++ b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-reaction-usage.mdc @@ -0,0 +1,5 @@ +--- +description: Use reaction for side-effects based on observable changes. +globs: src/**/*.ts +--- +- Use reaction for side-effects based on observable changes. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-store-implementation.mdc b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-store-implementation.mdc new file mode 100644 index 0000000..a31ba04 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-store-implementation.mdc @@ -0,0 +1,8 @@ +--- +description: Guidelines for implementing MobX stores for application state management. +globs: src/stores/**/*.ts +--- +- Implement stores for managing application state. +- Utilize computed values for derived state. +- Use actions for modifying observable state. +- Implement proper error handling in asynchronous actions. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-strict-mode.mdc b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-strict-mode.mdc new file mode 100644 index 0000000..610bb8e --- /dev/null +++ b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/mobx-strict-mode.mdc @@ -0,0 +1,5 @@ +--- +description: Enforce strict mode for MobX for better debugging. +globs: src/stores/**/*.ts +--- +- Implement strict mode for MobX for better debugging. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/observer-hoc-or-useobserver-hook.mdc b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/observer-hoc-or-useobserver-hook.mdc new file mode 100644 index 0000000..f7569af --- /dev/null +++ b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/observer-hoc-or-useobserver-hook.mdc @@ -0,0 +1,5 @@ +--- +description: Use Observer HOC or the useObserver hook for reactive components. +globs: src/components/**/*.tsx +--- +- Use observer HOC or useObserver hook for reactive components. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/react-general-preferences.mdc b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/react-general-preferences.mdc new file mode 100644 index 0000000..007fe35 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/react-general-preferences.mdc @@ -0,0 +1,5 @@ +--- +description: General React preferences to prefer functional components with hooks. +globs: src/**/*.tsx +--- +- Prefer functional components with hooks. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/typescript-with-mobx.mdc b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/typescript-with-mobx.mdc new file mode 100644 index 0000000..7fd211c --- /dev/null +++ b/awesome-cursor-rules-mdc/react-mobx-cursorrules-prompt-file/typescript-with-mobx.mdc @@ -0,0 +1,5 @@ +--- +description: Instructions on how to use Typescript with MobX. +globs: src/**/*.ts +--- +- Use TypeScript for type safety with MobX. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-native-expo-cursorrules-prompt-file/react-native-expo---additional-instructions.mdc b/awesome-cursor-rules-mdc/react-native-expo-cursorrules-prompt-file/react-native-expo---additional-instructions.mdc new file mode 100644 index 0000000..25bb2dc --- /dev/null +++ b/awesome-cursor-rules-mdc/react-native-expo-cursorrules-prompt-file/react-native-expo---additional-instructions.mdc @@ -0,0 +1,11 @@ +--- +description: Provides additional instructions for React Native Expo development, such as using TypeScript, StyleSheet for styling, and Expo's secure store for sensitive data. +globs: src/**/*.* +--- +- Use TypeScript for type safety +- Implement proper styling using StyleSheet +- Utilize Expo's vector icons +- Use Expo's secure store for sensitive data +- Implement proper offline support +- Follow React Native best practices for performance +- Use Expo's OTA updates for quick deployments \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-native-expo-cursorrules-prompt-file/react-native-expo---general-best-practices.mdc b/awesome-cursor-rules-mdc/react-native-expo-cursorrules-prompt-file/react-native-expo---general-best-practices.mdc new file mode 100644 index 0000000..23f7d65 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-native-expo-cursorrules-prompt-file/react-native-expo---general-best-practices.mdc @@ -0,0 +1,10 @@ +--- +description: Applies general React Native Expo best practices within the src directory, such as using functional components with hooks and Expo SDK features. +globs: src/**/*.* +--- +- Use functional components with hooks +- Utilize Expo SDK features and APIs +- Implement proper navigation using React Navigation +- Use Expo's asset system for images and fonts +- Implement proper error handling and crash reporting +- Utilize Expo's push notification system \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-native-expo-cursorrules-prompt-file/react-native-expo---project-structure.mdc b/awesome-cursor-rules-mdc/react-native-expo-cursorrules-prompt-file/react-native-expo---project-structure.mdc new file mode 100644 index 0000000..5440d5b --- /dev/null +++ b/awesome-cursor-rules-mdc/react-native-expo-cursorrules-prompt-file/react-native-expo---project-structure.mdc @@ -0,0 +1,14 @@ +--- +description: Enforces the recommended folder structure for React Native Expo projects at the root level, including assets, src, App.js, and app.json. +globs: *.* +--- +- Ensure the following folder structure is present: + - assets/ + - src/ + - components/ + - screens/ + - navigation/ + - hooks/ + - utils/ + - App.js + - app.json \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-native-expo-cursorrules-prompt-file/react-native-expo---root-files.mdc b/awesome-cursor-rules-mdc/react-native-expo-cursorrules-prompt-file/react-native-expo---root-files.mdc new file mode 100644 index 0000000..86154c0 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-native-expo-cursorrules-prompt-file/react-native-expo---root-files.mdc @@ -0,0 +1,6 @@ +--- +description: Specific configuration guidelines for the root level files App.js and app.json +globs: App.js, app.json +--- +- Always keep App.js clean and delegate work to other components. +- Always configure app.json based on the documentation \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-native-expo-router-typescript-windows-cursorrules-prompt-file/babel-configuration-for-nativewind.mdc b/awesome-cursor-rules-mdc/react-native-expo-router-typescript-windows-cursorrules-prompt-file/babel-configuration-for-nativewind.mdc new file mode 100644 index 0000000..5fdca59 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-native-expo-router-typescript-windows-cursorrules-prompt-file/babel-configuration-for-nativewind.mdc @@ -0,0 +1,8 @@ +--- +description: Specifies the correct Babel configuration for NativeWind to ensure proper processing and avoid conflicts. +globs: babel.config.js +--- +- Babel configuration for NativeWind: + - Include 'nativewind/babel' in the plugins array. + - Avoid using jsxImportSource in presets. + - Ensure 'react-native-reanimated/plugin' follows 'nativewind/babel'. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-native-expo-router-typescript-windows-cursorrules-prompt-file/general-project-instructions.mdc b/awesome-cursor-rules-mdc/react-native-expo-router-typescript-windows-cursorrules-prompt-file/general-project-instructions.mdc new file mode 100644 index 0000000..ba217ab --- /dev/null +++ b/awesome-cursor-rules-mdc/react-native-expo-router-typescript-windows-cursorrules-prompt-file/general-project-instructions.mdc @@ -0,0 +1,20 @@ +--- +description: Provides general instructions for project management, including terminal commands, package management, and file operations. +globs: *.* +--- +- Use PowerShell for terminal commands. +- Before installing a new package, check if it's already installed: + Get-ChildItem -Recurse -Filter package-name +- If installed, upgrade using: + expo upgrade + or + npm install + if not supported by Expo. +- Use PowerShell commands to manage the project, e.g., moving and renaming files: + Move-Item -Path .\old\path\file.txt -Destination .\new\path\newname.txt +- If unsure about the current structure or details, use PowerShell to list out necessary information: + Get-ChildItem -Recurse +- Utilize official Expo libraries and upgrade them using Expo's commands. +- Avoid deleting existing functionality or files without a valid reason. +- Follow the recommended folder structure and maintain organized code for scalability and readability. +- Implement navigation using Expo Router for clean and declarative routing. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-native-expo-router-typescript-windows-cursorrules-prompt-file/nativewind-and-tailwind-css-compatibility.mdc b/awesome-cursor-rules-mdc/react-native-expo-router-typescript-windows-cursorrules-prompt-file/nativewind-and-tailwind-css-compatibility.mdc new file mode 100644 index 0000000..a79792e --- /dev/null +++ b/awesome-cursor-rules-mdc/react-native-expo-router-typescript-windows-cursorrules-prompt-file/nativewind-and-tailwind-css-compatibility.mdc @@ -0,0 +1,10 @@ +--- +description: Provides specific version compatibility notes for NativeWind and Tailwind CSS to prevent common installation errors. +globs: package.json +--- +- NativeWind and Tailwind CSS compatibility: + - Use nativewind@2.0.11 with tailwindcss@3.3.2. + - Higher versions may cause 'process(css).then(cb)' errors. + - If errors occur, remove both packages and reinstall specific versions: + npm remove nativewind tailwindcss + npm install nativewind@2.0.11 tailwindcss@3.3.2 \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-native-expo-router-typescript-windows-cursorrules-prompt-file/react-native-expo-best-practices.mdc b/awesome-cursor-rules-mdc/react-native-expo-router-typescript-windows-cursorrules-prompt-file/react-native-expo-best-practices.mdc new file mode 100644 index 0000000..bdd8f3d --- /dev/null +++ b/awesome-cursor-rules-mdc/react-native-expo-router-typescript-windows-cursorrules-prompt-file/react-native-expo-best-practices.mdc @@ -0,0 +1,18 @@ +--- +description: Enforces best practices for React Native Expo development within the src directory, promoting maintainable and efficient code. +globs: src/**/*.* +--- +- Use functional components with hooks. +- Leverage Expo SDK features and APIs. +- Implement navigation using Expo Router. +- Manage assets with Expo's asset system for images and fonts. +- Ensure robust error handling and crash reporting. +- Utilize Expo's push notification system. +- Adopt TypeScript for type safety. +- Apply consistent styling using StyleSheet. +- Incorporate Expo's vector icons. +- Secure sensitive data with Expo's SecureStore. +- Implement proper offline support. +- Optimize performance following React Native best practices. +- Deploy updates using Expo's OTA mechanism. +- Style components using NativeWind. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-native-expo-router-typescript-windows-cursorrules-prompt-file/react-native-expo-folder-structure.mdc b/awesome-cursor-rules-mdc/react-native-expo-router-typescript-windows-cursorrules-prompt-file/react-native-expo-folder-structure.mdc new file mode 100644 index 0000000..47505e9 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-native-expo-router-typescript-windows-cursorrules-prompt-file/react-native-expo-folder-structure.mdc @@ -0,0 +1,17 @@ +--- +description: Defines the recommended folder structure for React Native Expo projects to maintain organization and scalability. +globs: * +--- +- Ensure the following folder structure: +assets/ +src/ + components/ + screens/ + navigation/ + hooks/ + utils/ +app/ + _layout.tsx + index.tsx +App.js +app.json \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-nextjs-ui-development-cursorrules-prompt-fil/general-javascript-react-next-js-rule.mdc b/awesome-cursor-rules-mdc/react-nextjs-ui-development-cursorrules-prompt-fil/general-javascript-react-next-js-rule.mdc new file mode 100644 index 0000000..b1a0470 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-nextjs-ui-development-cursorrules-prompt-fil/general-javascript-react-next-js-rule.mdc @@ -0,0 +1,15 @@ +--- +description: Defines the general behavior for JavaScript, React, and Next.js code within the project, emphasizing clarity and modern frameworks. +globs: **/*.{js,jsx,ts,tsx} +--- +- You are an expert AI programming assistant that primarily focuses on producing clear, readable JavaScript code for the browser. +- You also use the latest versions of popular frameworks and libraries such as React & NextJS (with app router). +- You provide accurate, factual, thoughtful answers, and are a genius at reasoning. +- Focus on readability over being performant. +- Fully implement all requested functionality. +- Leave NO todo's, placeholders or missing pieces. +- Be sure to reference file names. +- Be concise. Minimize any other prose. +- If you think there might not be a correct answer, you say so. If you do not know the answer, say so instead of guessing. +- Only write code that is neccessary to complete the task. +- This is app is hosted on Vercel as well as Replit. Make sure your code is compatible with both! \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-nextjs-ui-development-cursorrules-prompt-fil/general-project-behavior-rule.mdc b/awesome-cursor-rules-mdc/react-nextjs-ui-development-cursorrules-prompt-fil/general-project-behavior-rule.mdc new file mode 100644 index 0000000..bfedb6d --- /dev/null +++ b/awesome-cursor-rules-mdc/react-nextjs-ui-development-cursorrules-prompt-fil/general-project-behavior-rule.mdc @@ -0,0 +1,9 @@ +--- +description: Sets the overall tone and approach for the AI, emphasizing following instructions, step-by-step planning, and code quality. +globs: **/*.* +--- +- Follow the user's requirements carefully & to the letter. +- First think step-by-step - describe your plan for what to build in pseudocode, written out in great detail. +- Confirm, then write code! +- Always write correct, up to date, bug free, fully functional and working, secure, performant and efficient code. +- Rewrite the complete code only if necessary. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-nextjs-ui-development-cursorrules-prompt-fil/next-js-app-router-rule.mdc b/awesome-cursor-rules-mdc/react-nextjs-ui-development-cursorrules-prompt-fil/next-js-app-router-rule.mdc new file mode 100644 index 0000000..e0b3d14 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-nextjs-ui-development-cursorrules-prompt-fil/next-js-app-router-rule.mdc @@ -0,0 +1,5 @@ +--- +description: Specific rules for the Next.js App Router directory, ensuring the AI avoids the Pages Router. +globs: app/**/*.* +--- +- This project uses Next.js App Router never suggest using the pages router or provide code using the pages router. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-query-cursorrules-prompt-file/react-functional-components-preference.mdc b/awesome-cursor-rules-mdc/react-query-cursorrules-prompt-file/react-functional-components-preference.mdc new file mode 100644 index 0000000..c6f54cc --- /dev/null +++ b/awesome-cursor-rules-mdc/react-query-cursorrules-prompt-file/react-functional-components-preference.mdc @@ -0,0 +1,5 @@ +--- +description: This rule enforces the use of functional components with hooks in React components within the src/components directory. +globs: src/components/**/*.tsx +--- +- Always use functional components with hooks instead of class components. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-query-cursorrules-prompt-file/react-project-folder-structure.mdc b/awesome-cursor-rules-mdc/react-query-cursorrules-prompt-file/react-project-folder-structure.mdc new file mode 100644 index 0000000..9901bc2 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-query-cursorrules-prompt-file/react-project-folder-structure.mdc @@ -0,0 +1,13 @@ +--- +description: This rule enforces the defined folder structure for a React project, improving organization and maintainability. +globs: src/**/* +--- +- Enforce the following folder structure: + - src/ + - components/ + - hooks/ + - useQueries/ + - useMutations/ + - pages/ + - utils/ + - api/ \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-query-cursorrules-prompt-file/react-query-additional-instructions.mdc b/awesome-cursor-rules-mdc/react-query-cursorrules-prompt-file/react-query-additional-instructions.mdc new file mode 100644 index 0000000..d19c008 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-query-cursorrules-prompt-file/react-query-additional-instructions.mdc @@ -0,0 +1,11 @@ +--- +description: This rule lists additional instructions for using React Query, including TypeScript usage, error handling, and debugging tools. +globs: src/**/*.tsx +--- +- Use TypeScript for type safety with React Query +- Implement proper error boundaries for query errors +- Utilize React Query DevTools for debugging +- Use stale-while-revalidate strategy for data freshness +- Implement optimistic updates for mutations +- Use query invalidation for data refetching +- Follow React Query naming conventions for consistency \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-query-cursorrules-prompt-file/react-query-general-best-practices.mdc b/awesome-cursor-rules-mdc/react-query-cursorrules-prompt-file/react-query-general-best-practices.mdc new file mode 100644 index 0000000..81aebc8 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-query-cursorrules-prompt-file/react-query-general-best-practices.mdc @@ -0,0 +1,9 @@ +--- +description: This rule outlines the general best practices for using React Query throughout the React project. +globs: src/**/*.tsx +--- +- Use QueryClient and QueryClientProvider at the root of your app +- Implement custom hooks for queries and mutations +- Utilize query keys for effective caching +- Use prefetching for improved performance +- Implement proper error and loading states \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-query-cursorrules-prompt-file/react-query-hooks-directory-guidelines.mdc b/awesome-cursor-rules-mdc/react-query-cursorrules-prompt-file/react-query-hooks-directory-guidelines.mdc new file mode 100644 index 0000000..1c046cc --- /dev/null +++ b/awesome-cursor-rules-mdc/react-query-cursorrules-prompt-file/react-query-hooks-directory-guidelines.mdc @@ -0,0 +1,6 @@ +--- +description: This rule specifies the folder structure and purpose for placing React Query custom hooks in dedicated subdirectories. +globs: src/hooks/**/*.ts +--- +- Place query hooks in src/hooks/useQueries/ +- Place mutation hooks in src/hooks/useMutations/ \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-redux-typescript-cursorrules-prompt-file/react-functional-components.mdc b/awesome-cursor-rules-mdc/react-redux-typescript-cursorrules-prompt-file/react-functional-components.mdc new file mode 100644 index 0000000..120c55f --- /dev/null +++ b/awesome-cursor-rules-mdc/react-redux-typescript-cursorrules-prompt-file/react-functional-components.mdc @@ -0,0 +1,6 @@ +--- +description: Enforces the use of functional components with hooks in React components. +globs: src/components/**/*.tsx +--- +- Always use React functional components with hooks. +- Use React.FC for functional components with props. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-redux-typescript-cursorrules-prompt-file/redux-async-actions.mdc b/awesome-cursor-rules-mdc/react-redux-typescript-cursorrules-prompt-file/redux-async-actions.mdc new file mode 100644 index 0000000..8ba5c35 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-redux-typescript-cursorrules-prompt-file/redux-async-actions.mdc @@ -0,0 +1,6 @@ +--- +description: Specific instructions when handling Redux async actions +globs: src/features/**/*.ts +--- +- Utilize createAsyncThunk for handling async actions. +- Implement proper error handling in async operations. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-redux-typescript-cursorrules-prompt-file/redux-devtools-debugging.mdc b/awesome-cursor-rules-mdc/react-redux-typescript-cursorrules-prompt-file/redux-devtools-debugging.mdc new file mode 100644 index 0000000..d4a5b81 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-redux-typescript-cursorrules-prompt-file/redux-devtools-debugging.mdc @@ -0,0 +1,5 @@ +--- +description: Recommends Redux DevTools for debugging Redux applications. +globs: src/store/store.ts +--- +- Use Redux DevTools for debugging. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-redux-typescript-cursorrules-prompt-file/redux-folder-structure.mdc b/awesome-cursor-rules-mdc/react-redux-typescript-cursorrules-prompt-file/redux-folder-structure.mdc new file mode 100644 index 0000000..1fc43fc --- /dev/null +++ b/awesome-cursor-rules-mdc/react-redux-typescript-cursorrules-prompt-file/redux-folder-structure.mdc @@ -0,0 +1,14 @@ +--- +description: Enforces specific folder structure conventions within the Redux store directory. +globs: src/store/**/* +--- +- Follow this folder structure: + src/ + components/ + features/ + store/ + slices/ + hooks.ts + store.ts + types/ + utils/ \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-redux-typescript-cursorrules-prompt-file/redux-toolkit-best-practices.mdc b/awesome-cursor-rules-mdc/react-redux-typescript-cursorrules-prompt-file/redux-toolkit-best-practices.mdc new file mode 100644 index 0000000..696172c --- /dev/null +++ b/awesome-cursor-rules-mdc/react-redux-typescript-cursorrules-prompt-file/redux-toolkit-best-practices.mdc @@ -0,0 +1,10 @@ +--- +description: Applies Redux Toolkit best practices for efficient Redux development. +globs: src/store/**/*.ts +--- +- Use Redux Toolkit for efficient Redux development. +- Implement slice pattern for organizing Redux code. +- Utilize createAsyncThunk for handling async actions. +- Use selectors for accessing state in components. +- Use Redux hooks (useSelector, useDispatch) in components. +- Follow Redux style guide for naming conventions \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-redux-typescript-cursorrules-prompt-file/typescript-type-safety.mdc b/awesome-cursor-rules-mdc/react-redux-typescript-cursorrules-prompt-file/typescript-type-safety.mdc new file mode 100644 index 0000000..f475b42 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-redux-typescript-cursorrules-prompt-file/typescript-type-safety.mdc @@ -0,0 +1,7 @@ +--- +description: Ensures TypeScript is used for type safety throughout the project. +globs: src/**/*.ts* +--- +- Use TypeScript for type safety. +- Implement strict TypeScript checks. +- Create reusable typed hooks for Redux operations, if applicable. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/react-functional-components-preference.mdc b/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/react-functional-components-preference.mdc new file mode 100644 index 0000000..f544633 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/react-functional-components-preference.mdc @@ -0,0 +1,5 @@ +--- +description: Enforces the use of functional components with hooks in React files. +globs: src/**/*.jsx +--- +- Always use functional components with hooks in React development. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---attrs-method.mdc b/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---attrs-method.mdc new file mode 100644 index 0000000..d46c18a --- /dev/null +++ b/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---attrs-method.mdc @@ -0,0 +1,5 @@ +--- +description: Recommends utilizing styled-components' attrs method for frequently used props. +globs: src/components/styled/**/*.js +--- +- Utilize styled-components' attrs method for frequently used props. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---conditional-styling-css-prop.mdc b/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---conditional-styling-css-prop.mdc new file mode 100644 index 0000000..7aef650 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---conditional-styling-css-prop.mdc @@ -0,0 +1,5 @@ +--- +description: Recommends using the css prop for conditional styling in Styled Components when appropriate. +globs: src/components/styled/**/*.js +--- +- Use the css prop for conditional styling when appropriate. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---css-in-js.mdc b/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---css-in-js.mdc new file mode 100644 index 0000000..884a711 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---css-in-js.mdc @@ -0,0 +1,5 @@ +--- +description: Ensures all styling is done using CSS-in-JS with Styled Components. +globs: src/**/*.js +--- +- Use CSS-in-JS for all styling needs. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---documentation.mdc b/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---documentation.mdc new file mode 100644 index 0000000..754fd75 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---documentation.mdc @@ -0,0 +1,5 @@ +--- +description: Recommends following the styled-components documentation for best practices. +globs: src/components/styled/**/*.js +--- +- Follow the styled-components documentation for best practices. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---naming-conventions.mdc b/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---naming-conventions.mdc new file mode 100644 index 0000000..7ab061c --- /dev/null +++ b/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---naming-conventions.mdc @@ -0,0 +1,5 @@ +--- +description: Enforces proper naming conventions for Styled Components. +globs: src/components/styled/**/*.js +--- +- Use proper naming conventions for styled components (e.g., StyledButton). \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---theming.mdc b/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---theming.mdc new file mode 100644 index 0000000..653ed34 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---theming.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies the use of a consistent theming system with Styled Components. +globs: src/styles/theme.js +--- +- Implement a consistent theming system. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---typescript-support.mdc b/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---typescript-support.mdc new file mode 100644 index 0000000..7bd612a --- /dev/null +++ b/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components---typescript-support.mdc @@ -0,0 +1,5 @@ +--- +description: Ensures proper TypeScript support for styled-components. +globs: src/components/styled/**/*.tsx +--- +- Implement proper TypeScript support for styled-components. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components-best-practices---general.mdc b/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components-best-practices---general.mdc new file mode 100644 index 0000000..3f8b90b --- /dev/null +++ b/awesome-cursor-rules-mdc/react-styled-components-cursorrules-prompt-file/styled-components-best-practices---general.mdc @@ -0,0 +1,9 @@ +--- +description: Applies best practices for Styled Components within React components. +globs: src/components/styled/**/*.js +--- +- Use the styled-components/macro for better debugging. +- Implement a global theme using ThemeProvider. +- Create reusable styled components. +- Use props for dynamic styling. +- Utilize CSS helper functions like css`` when needed. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-typescript-nextjs-nodejs-cursorrules-prompt-/general-project-rules.mdc b/awesome-cursor-rules-mdc/react-typescript-nextjs-nodejs-cursorrules-prompt-/general-project-rules.mdc new file mode 100644 index 0000000..ef13b2f --- /dev/null +++ b/awesome-cursor-rules-mdc/react-typescript-nextjs-nodejs-cursorrules-prompt-/general-project-rules.mdc @@ -0,0 +1,13 @@ +--- +description: Applies general coding principles and preferences across the entire project, emphasizing functional programming and specific tech stack usage. +globs: /**/*.* +--- +- You are an expert in Solidity, TypeScript, Node.js, Next.js 14 App Router, React, Vite, Viem v2, Wagmi v2, Shadcn UI, Radix UI, and Tailwind Aria. +- Write concise, technical responses with accurate TypeScript examples. +- Use functional, declarative programming. Avoid classes. +- Prefer iteration and modularization over duplication. +- Use descriptive variable names with auxiliary verbs (e.g., isLoading). +- Use lowercase with dashes for directories (e.g., components/auth-wizard). +- Favor named exports for components. +- Use the Receive an Object, Return an Object (RORO) pattern. +- Dependencies: Next.js 14 App Router, Wagmi v2, Viem v2 \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-typescript-nextjs-nodejs-cursorrules-prompt-/next-js-core-principles.mdc b/awesome-cursor-rules-mdc/react-typescript-nextjs-nodejs-cursorrules-prompt-/next-js-core-principles.mdc new file mode 100644 index 0000000..382f67b --- /dev/null +++ b/awesome-cursor-rules-mdc/react-typescript-nextjs-nodejs-cursorrules-prompt-/next-js-core-principles.mdc @@ -0,0 +1,11 @@ +--- +description: Outlines key conventions for Next.js development, focusing on utilizing the App Router, prioritizing Web Vitals, and minimizing 'use client' usage. +globs: app/**/*.* +--- +- Rely on Next.js App Router for state changes. +- Prioritize Web Vitals (LCP, CLS, FID). +- Minimize 'use client' usage: + - Prefer server components and Next.js SSR features. + - Use 'use client' only for Web API access in small components. + - Avoid using 'use client' for data fetching or state management. +- Refer to Next.js documentation for Data Fetching, Rendering, and Routing best practices. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-typescript-nextjs-nodejs-cursorrules-prompt-/next-js-server-action-rules.mdc b/awesome-cursor-rules-mdc/react-typescript-nextjs-nodejs-cursorrules-prompt-/next-js-server-action-rules.mdc new file mode 100644 index 0000000..b8cda40 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-typescript-nextjs-nodejs-cursorrules-prompt-/next-js-server-action-rules.mdc @@ -0,0 +1,35 @@ +--- +description: Specifies guidelines for Next.js server actions, including type-safe implementation, validation with Zod, error handling, and the required ActionResponse type. +globs: app/actions/**/*.{ts,tsx} +--- +- Model expected errors as return values: Avoid using try/catch for expected errors in Server Actions. Use useActionState to manage these errors and return them to the client. +- Use error boundaries for unexpected errors: Implement error boundaries using error.tsx and global-error.tsx files to handle unexpected errors and provide a fallback UI. +- Use useActionState with react-hook-form for form validation. +- Code in services/ dir always throw user-friendly errors that tanStackQuery can catch and show to the user. +- Use next-safe-action for all server actions: + - Implement type-safe server actions with proper validation. + - Utilize the `action` function from next-safe-action for creating actions. + - Define input schemas using Zod for robust type checking and validation. + - Handle errors gracefully and return appropriate responses. + - Use import type { ActionResponse } from '@/types/actions' + - Ensure all server actions return the ActionResponse type + - Implement consistent error handling and success responses using ActionResponse + - Example: + typescript + 'use server' + import { createSafeActionClient } from 'next-safe-action' + import { z } from 'zod' + import type { ActionResponse } from '@/app/actions/actions' + const schema = z.object({ + value: z.string() + }) + export const someAction = createSafeActionClient() + .schema(schema) + .action(async (input): Promise => { + try { + // Action logic here + return { success: true, data: /* result */ } + } catch (error) { + return { success: false, error: error instanceof AppError ? error : appErrors.UNEXPECTED_ERROR, } + } + }) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-typescript-nextjs-nodejs-cursorrules-prompt-/react-next-js-component-rules.mdc b/awesome-cursor-rules-mdc/react-typescript-nextjs-nodejs-cursorrules-prompt-/react-next-js-component-rules.mdc new file mode 100644 index 0000000..95b9fbc --- /dev/null +++ b/awesome-cursor-rules-mdc/react-typescript-nextjs-nodejs-cursorrules-prompt-/react-next-js-component-rules.mdc @@ -0,0 +1,17 @@ +--- +description: Enforces specific React/Next.js component development practices, including functional components, declarative JSX, UI library usage, and optimization techniques. +globs: components/**/*.{ts,tsx,js,jsx} +--- +- Use functional components and TypeScript interfaces. +- Use declarative JSX. +- Use function, not const, for components. +- Use Shadcn UI, Radix, and Tailwind Aria for components and styling. +- Implement responsive design with Tailwind CSS. +- Use mobile-first approach for responsive design. +- Place static content and interfaces at file end. +- Use content variables for static content outside render functions. +- Minimize 'use client', 'useEffect', and 'setState'. Favor RSC. +- Use Zod for form validation. +- Wrap client components in Suspense with fallback. +- Use dynamic loading for non-critical components. +- Optimize images: WebP format, size data, lazy loading. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-typescript-nextjs-nodejs-cursorrules-prompt-/typescript-javascript-rules.mdc b/awesome-cursor-rules-mdc/react-typescript-nextjs-nodejs-cursorrules-prompt-/typescript-javascript-rules.mdc new file mode 100644 index 0000000..91f0241 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-typescript-nextjs-nodejs-cursorrules-prompt-/typescript-javascript-rules.mdc @@ -0,0 +1,18 @@ +--- +description: Defines specific coding style and structure for TypeScript and JavaScript files, including function usage, type preferences, and file organization. +globs: **/*.{ts,tsx,js,jsx} +--- +- Use "function" keyword for pure functions. Omit semicolons. +- Use TypeScript for all code. Prefer interfaces over types. Avoid enums, use maps. +- File structure: Exported component, subcomponents, helpers, static content, types. +- Avoid unnecessary curly braces in conditional statements. +- For single-line statements in conditionals, omit curly braces. +- Use concise, one-line syntax for simple conditional statements (e.g., if (condition) doSomething()). +- Prioritize error handling and edge cases: + - Handle errors and edge cases at the beginning of functions. + - Use early returns for error conditions to avoid deeply nested if statements. + - Place the happy path last in the function for improved readability. + - Avoid unnecessary else statements; use if-return pattern instead. + - Use guard clauses to handle preconditions and invalid states early. + - Implement proper error logging and user-friendly error messages. + - Consider using custom error types or error factories for consistent error handling. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-typescript-symfony-cursorrules-prompt-file/full-stack-developer-persona.mdc b/awesome-cursor-rules-mdc/react-typescript-symfony-cursorrules-prompt-file/full-stack-developer-persona.mdc new file mode 100644 index 0000000..a4a3c46 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-typescript-symfony-cursorrules-prompt-file/full-stack-developer-persona.mdc @@ -0,0 +1,5 @@ +--- +description: Configures the AI to act as a full-stack developer with expertise in React, TypeScript, PHP, Symfony, and Docker. +globs: **/*.* +--- +You are a full stack developer with expert knowledge in React, TypeScript, PHP, Symfony and Docker. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-typescript-symfony-cursorrules-prompt-file/general-ai-programming-assistant.mdc b/awesome-cursor-rules-mdc/react-typescript-symfony-cursorrules-prompt-file/general-ai-programming-assistant.mdc new file mode 100644 index 0000000..ea2f711 --- /dev/null +++ b/awesome-cursor-rules-mdc/react-typescript-symfony-cursorrules-prompt-file/general-ai-programming-assistant.mdc @@ -0,0 +1,5 @@ +--- +description: Sets the AI's persona as an expert programming assistant focused on producing clean and readable code across the project. +globs: **/*.* +--- +You are an AI programming assistant that primarily focuses on producing clean and readable code. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-typescript-symfony-cursorrules-prompt-file/latest-language-versions-and-best-practices.mdc b/awesome-cursor-rules-mdc/react-typescript-symfony-cursorrules-prompt-file/latest-language-versions-and-best-practices.mdc new file mode 100644 index 0000000..6b22e4d --- /dev/null +++ b/awesome-cursor-rules-mdc/react-typescript-symfony-cursorrules-prompt-file/latest-language-versions-and-best-practices.mdc @@ -0,0 +1,5 @@ +--- +description: Ensures the AI uses the latest stable versions of programming languages and adheres to current best practices in all files. +globs: **/*.* +--- +You always use the latest stable version of the programming language you are working with and you are familiar with the latest features and best practices. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/react-typescript-symfony-cursorrules-prompt-file/thoughtful-and-accurate-responses.mdc b/awesome-cursor-rules-mdc/react-typescript-symfony-cursorrules-prompt-file/thoughtful-and-accurate-responses.mdc new file mode 100644 index 0000000..d7d288c --- /dev/null +++ b/awesome-cursor-rules-mdc/react-typescript-symfony-cursorrules-prompt-file/thoughtful-and-accurate-responses.mdc @@ -0,0 +1,5 @@ +--- +description: Instructs the AI to provide accurate, factual, and thoughtful answers, emphasizing reasoning and accuracy in all contexts. +globs: **/*.* +--- +You carefully provide accurate, factual thoughtfull answers and are a genius at reasoning. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidity-hardhat-cursorrules-prompt-file/hardhat-development-workflow.mdc b/awesome-cursor-rules-mdc/solidity-hardhat-cursorrules-prompt-file/hardhat-development-workflow.mdc new file mode 100644 index 0000000..73071d8 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidity-hardhat-cursorrules-prompt-file/hardhat-development-workflow.mdc @@ -0,0 +1,7 @@ +--- +description: Specific to Hardhat projects, guiding on using Hardhat's features and implementing a CI/CD pipeline. +globs: hardhat.config.js +--- +- Utilize Hardhat's testing and debugging features. +- Implement a robust CI/CD pipeline for smart contract deployments. +- Use static type checking and linting tools in pre-commit hooks. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidity-hardhat-cursorrules-prompt-file/solidity-best-practices.mdc b/awesome-cursor-rules-mdc/solidity-hardhat-cursorrules-prompt-file/solidity-best-practices.mdc new file mode 100644 index 0000000..5c2a325 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidity-hardhat-cursorrules-prompt-file/solidity-best-practices.mdc @@ -0,0 +1,44 @@ +--- +description: Enforces best practices for Solidity smart contract development, covering aspects like function visibility, naming conventions, and upgradeability patterns. +globs: **/*.sol +--- +- Use explicit function visibility modifiers and appropriate natspec comments. +- Utilize function modifiers for common checks, enhancing readability and reducing redundancy. +- Follow consistent naming: CamelCase for contracts, PascalCase for interfaces (prefixed with "I"). +- Implement the Interface Segregation Principle for flexible and maintainable contracts. +- Design upgradeable contracts using proven patterns like the proxy pattern when necessary. +- Implement comprehensive events for all significant state changes. +- Follow the Checks-Effects-Interactions pattern to prevent reentrancy and other vulnerabilities. +- Use static analysis tools like Slither and Mythril in the development workflow. +- Implement timelocks and multisig controls for sensitive operations in production. +- Conduct thorough gas optimization, considering both deployment and runtime costs. +- Use OpenZeppelin's AccessControl for fine-grained permissions. +- Use Solidity 0.8.0+ for built-in overflow/underflow protection. +- Implement circuit breakers (pause functionality) using OpenZeppelin's Pausable when appropriate. +- Use pull over push payment patterns to mitigate reentrancy and denial of service attacks. +- Implement rate limiting for sensitive functions to prevent abuse. +- Use OpenZeppelin's SafeERC20 for interacting with ERC20 tokens. +- Implement proper randomness using Chainlink VRF or similar oracle solutions. +- Use assembly for gas-intensive operations, but document extensively and use with caution. +- Implement effective state machine patterns for complex contract logic. +- Use OpenZeppelin's ReentrancyGuard as an additional layer of protection against reentrancy. +- Implement proper access control for initializers in upgradeable contracts. +- Use OpenZeppelin's ERC20Snapshot for token balances requiring historical lookups. +- Implement timelocks for sensitive operations using OpenZeppelin's TimelockController. +- Use OpenZeppelin's ERC20Permit for gasless approvals in token contracts. +- Implement proper slippage protection for DEX-like functionalities. +- Use OpenZeppelin's ERC20Votes for governance token implementations. +- Implement effective storage patterns to optimize gas costs (e.g., packing variables). +- Use libraries for complex operations to reduce contract size and improve reusability. +- Implement proper access control for self-destruct functionality, if used. +- Use OpenZeppelin's Address library for safe interactions with external contracts. +- Use custom errors instead of revert strings for gas efficiency and better error handling. +- Implement NatSpec comments for all public and external functions. +- Use immutable variables for values set once at construction time. +- Implement proper inheritance patterns, favoring composition over deep inheritance chains. +- Use events for off-chain logging and indexing of important state changes. +- Implement fallback and receive functions with caution, clearly documenting their purpose. +- Use view and pure function modifiers appropriately to signal state access patterns. +- Implement proper decimal handling for financial calculations, using fixed-point arithmetic libraries when necessary. +- Use assembly sparingly and only when necessary for optimizations, with thorough documentation. +- Implement effective error propagation patterns in internal functions. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidity-hardhat-cursorrules-prompt-file/solidity-documentation.mdc b/awesome-cursor-rules-mdc/solidity-hardhat-cursorrules-prompt-file/solidity-documentation.mdc new file mode 100644 index 0000000..86882df --- /dev/null +++ b/awesome-cursor-rules-mdc/solidity-hardhat-cursorrules-prompt-file/solidity-documentation.mdc @@ -0,0 +1,7 @@ +--- +description: Focuses on documentation practices for Solidity smart contracts, including code documentation, API documentation, and project documentation. +globs: **/*.sol +--- +- Document code thoroughly, focusing on why rather than what. +- Maintain up-to-date API documentation for smart contracts. +- Create and maintain comprehensive project documentation, including architecture diagrams and decision logs. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidity-hardhat-cursorrules-prompt-file/solidity-general-rules.mdc b/awesome-cursor-rules-mdc/solidity-hardhat-cursorrules-prompt-file/solidity-general-rules.mdc new file mode 100644 index 0000000..6c7b785 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidity-hardhat-cursorrules-prompt-file/solidity-general-rules.mdc @@ -0,0 +1,20 @@ +--- +description: Applies general rules for Solidity smart contract development, focusing on conciseness, accuracy, and embracing new technologies while skipping AI self-references. +globs: **/*.sol +--- +- Cut the fluff. Code or detailed explanations only. +- Keep it casual and brief. +- Accuracy and depth matter. +- Answer first, explain later if needed. +- Logic trumps authority. Don't care about sources. +- Embrace new tech and unconventional ideas. +- Wild speculation's fine, just flag it. +- Save the ethics talk. +- Only mention safety for non-obvious, critical issues. +- Push content limits if needed, explain after. +- Sources at the end, not mid-text. +- Skip the AI self-references and knowledge date stuff. +- Stick to my code style. +- Use multiple responses for complex answers. +- For code tweaks, show minimal context - a few lines around changes max. +- Don't be lazy, write all the code to implement features I ask for. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidity-hardhat-cursorrules-prompt-file/solidity-performance-optimization.mdc b/awesome-cursor-rules-mdc/solidity-hardhat-cursorrules-prompt-file/solidity-performance-optimization.mdc new file mode 100644 index 0000000..ee15e04 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidity-hardhat-cursorrules-prompt-file/solidity-performance-optimization.mdc @@ -0,0 +1,6 @@ +--- +description: Applies to smart contracts, guiding on optimizing contracts for gas efficiency, considering storage layout and function optimization. +globs: **/*.sol +--- +- Optimize contracts for gas efficiency, considering storage layout and function optimization. +- Implement efficient indexing and querying strategies for off-chain data. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidity-hardhat-cursorrules-prompt-file/solidity-testing-and-quality-assurance.mdc b/awesome-cursor-rules-mdc/solidity-hardhat-cursorrules-prompt-file/solidity-testing-and-quality-assurance.mdc new file mode 100644 index 0000000..dbff36b --- /dev/null +++ b/awesome-cursor-rules-mdc/solidity-hardhat-cursorrules-prompt-file/solidity-testing-and-quality-assurance.mdc @@ -0,0 +1,9 @@ +--- +description: Focuses on testing and quality assurance practices for Solidity smart contracts, including different types of tests, continuous integration, and security audits. +globs: test/**/*.js +--- +- Implement a comprehensive testing strategy including unit, integration, and end-to-end tests. +- Use property-based testing to uncover edge cases. +- Implement continuous integration with automated testing and static analysis. +- Conduct regular security audits and bug bounties for production-grade contracts. +- Use test coverage tools and aim for high test coverage, especially for critical paths. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidity-react-blockchain-apps-cursorrules-prompt-/python-general-rules.mdc b/awesome-cursor-rules-mdc/solidity-react-blockchain-apps-cursorrules-prompt-/python-general-rules.mdc new file mode 100644 index 0000000..89ed814 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidity-react-blockchain-apps-cursorrules-prompt-/python-general-rules.mdc @@ -0,0 +1,7 @@ +--- +description: General Python rules for the service-1 directory, ensuring consistent dependency management and Python version. +globs: /service-1/**/*.* +--- +- Always use UV when installing dependencies +- Always use python 3.12 +- Always use classes instead of functions \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---complex-state-management.mdc b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---complex-state-management.mdc new file mode 100644 index 0000000..b70c234 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---complex-state-management.mdc @@ -0,0 +1,5 @@ +--- +description: Suggests utilizing createStore for complex state management within SolidJS components. +globs: src/components/**/*.jsx +--- +- Utilize createStore() for complex state management. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---conditional-and-list-rendering.mdc b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---conditional-and-list-rendering.mdc new file mode 100644 index 0000000..ec7a6ad --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---conditional-and-list-rendering.mdc @@ -0,0 +1,5 @@ +--- +description: Advises the implementation of Show and For components for conditional and list rendering in SolidJS. +globs: src/components/**/*.jsx +--- +- Implement Show and For components for conditional and list rendering. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---data-fetching.mdc b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---data-fetching.mdc new file mode 100644 index 0000000..c7fdfb4 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---data-fetching.mdc @@ -0,0 +1,5 @@ +--- +description: Recommends using createResource for data fetching within SolidJS components. +globs: src/components/**/*.jsx +--- +- Use createResource() for data fetching. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---derived-values-management.mdc b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---derived-values-management.mdc new file mode 100644 index 0000000..25ac7ae --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---derived-values-management.mdc @@ -0,0 +1,5 @@ +--- +description: Guides the implementation of createMemo for managing derived values in SolidJS components. +globs: src/components/**/*.jsx +--- +- Implement createMemo() for derived values. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---error-boundaries.mdc b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---error-boundaries.mdc new file mode 100644 index 0000000..38b3cdd --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---error-boundaries.mdc @@ -0,0 +1,5 @@ +--- +description: Recommends implementing proper error boundaries within the SolidJS project. +globs: src/**/*.jsx +--- +- Implement proper error boundaries \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---functional-components-preference.mdc b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---functional-components-preference.mdc new file mode 100644 index 0000000..3fef4dc --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---functional-components-preference.mdc @@ -0,0 +1,5 @@ +--- +description: Enforces the preference for functional components in SolidJS projects within the components directory. +globs: src/components/**/*.jsx +--- +- Always use functional components instead of class components. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---jsx-templates.mdc b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---jsx-templates.mdc new file mode 100644 index 0000000..a15fe60 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---jsx-templates.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies the use of JSX for component templates throughout the SolidJS project. +globs: src/**/*.jsx +--- +- Use JSX for component templates \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---lazy-loading.mdc b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---lazy-loading.mdc new file mode 100644 index 0000000..cebd159 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---lazy-loading.mdc @@ -0,0 +1,5 @@ +--- +description: Recommends implementing lazy-loading for improved performance within SolidJS. +globs: src/**/*.jsx +--- +- Implement lazy-loading for improved performance \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---naming-conventions.mdc b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---naming-conventions.mdc new file mode 100644 index 0000000..bad4753 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---naming-conventions.mdc @@ -0,0 +1,5 @@ +--- +description: Requires adherence to Solid.js naming conventions and best practices throughout the project. +globs: src/**/*.jsx +--- +- Follow Solid.js naming conventions and best practices \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---optimization-features.mdc b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---optimization-features.mdc new file mode 100644 index 0000000..d195e66 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---optimization-features.mdc @@ -0,0 +1,5 @@ +--- +description: Suggests utilizing Solid's built-in optimization features for enhanced performance. +globs: src/**/*.jsx +--- +- Use Solid's built-in optimization features \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---reactive-state-management.mdc b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---reactive-state-management.mdc new file mode 100644 index 0000000..96aad15 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---reactive-state-management.mdc @@ -0,0 +1,5 @@ +--- +description: Provides guidelines for managing reactive state using createSignal in SolidJS components. +globs: src/components/**/*.jsx +--- +- Use createSignal() for reactive state. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---server-side-rendering.mdc b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---server-side-rendering.mdc new file mode 100644 index 0000000..083ede4 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---server-side-rendering.mdc @@ -0,0 +1,5 @@ +--- +description: Suggests the implementation of server-side rendering (SSR) when needed in SolidJS projects. +globs: src/**/*.jsx +--- +- Use server-side rendering (SSR) when needed \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---side-effects-handling.mdc b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---side-effects-handling.mdc new file mode 100644 index 0000000..4e7bf0c --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---side-effects-handling.mdc @@ -0,0 +1,5 @@ +--- +description: Specifies the use of createEffect for handling side effects in SolidJS components. +globs: src/components/**/*.jsx +--- +- Utilize createEffect() for side effects. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---solid-router.mdc b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---solid-router.mdc new file mode 100644 index 0000000..505f3fe --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-basic-cursorrules-prompt-file/solidjs---solid-router.mdc @@ -0,0 +1,5 @@ +--- +description: Encourages the use of Solid Router for routing when applicable in SolidJS projects. +globs: src/**/*.jsx +--- +- Utilize Solid Router for routing when applicable \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-tailwind-cursorrules-prompt-file/solidjs-folder-structure.mdc b/awesome-cursor-rules-mdc/solidjs-tailwind-cursorrules-prompt-file/solidjs-folder-structure.mdc new file mode 100644 index 0000000..fbccc1a --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-tailwind-cursorrules-prompt-file/solidjs-folder-structure.mdc @@ -0,0 +1,11 @@ +--- +description: Describes and enforces the preferred folder structure for SolidJS projects, including components, pages, and styles. +globs: src/**/* +--- +- Use the following folder structure: + src/ + components/ + pages/ + styles/ + App.jsx + index.jsx \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-tailwind-cursorrules-prompt-file/solidjs-functional-components.mdc b/awesome-cursor-rules-mdc/solidjs-tailwind-cursorrules-prompt-file/solidjs-functional-components.mdc new file mode 100644 index 0000000..48f0889 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-tailwind-cursorrules-prompt-file/solidjs-functional-components.mdc @@ -0,0 +1,5 @@ +--- +description: Enforces the use of functional components in SolidJS projects. +globs: **/*.jsx +--- +- Always use functional components in SolidJS. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-tailwind-cursorrules-prompt-file/solidjs-tailwind-additional-instructions.mdc b/awesome-cursor-rules-mdc/solidjs-tailwind-cursorrules-prompt-file/solidjs-tailwind-additional-instructions.mdc new file mode 100644 index 0000000..2df830e --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-tailwind-cursorrules-prompt-file/solidjs-tailwind-additional-instructions.mdc @@ -0,0 +1,11 @@ +--- +description: Provides additional instructions to remember when coding with solid and tailwind. +globs: **/*.jsx +--- +- Use JSX for component templates. +- Implement proper Tailwind CSS purging for production builds. +- Utilize Solid Router for routing when applicable. +- Use Tailwind's @layer directive for custom styles. +- Implement utility-first CSS approach. +- Follow both Solid.js and Tailwind naming conventions. +- Use JIT (Just-In-Time) mode for faster development. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-tailwind-cursorrules-prompt-file/solidjs-tailwind-css-best-practices.mdc b/awesome-cursor-rules-mdc/solidjs-tailwind-cursorrules-prompt-file/solidjs-tailwind-css-best-practices.mdc new file mode 100644 index 0000000..4acc56a --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-tailwind-cursorrules-prompt-file/solidjs-tailwind-css-best-practices.mdc @@ -0,0 +1,10 @@ +--- +description: Applies best practices for using SolidJS with Tailwind CSS, including state management and styling. +globs: **/*.jsx +--- +- Use createSignal() for reactive state. +- Implement Tailwind CSS classes for styling. +- Utilize @apply directive in CSS files for reusable styles. +- Implement responsive design using Tailwind's responsive classes. +- Use Tailwind's configuration file for customization. +- Implement dark mode using Tailwind's dark variant. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-tailwind-cursorrules-prompt-file/tailwind-css-configuration.mdc b/awesome-cursor-rules-mdc/solidjs-tailwind-cursorrules-prompt-file/tailwind-css-configuration.mdc new file mode 100644 index 0000000..f1b5b39 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-tailwind-cursorrules-prompt-file/tailwind-css-configuration.mdc @@ -0,0 +1,7 @@ +--- +description: Provides rules related to the configuration file for Tailwind CSS, focusing on customization. +globs: tailwind.config.js +--- +- Use Tailwind's configuration file for customization. +- Implement Tailwind CSS purging for production builds. +- Use JIT (Just-In-Time) mode for faster development. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-tailwind-cursorrules-prompt-file/tailwind-css-styling.mdc b/awesome-cursor-rules-mdc/solidjs-tailwind-cursorrules-prompt-file/tailwind-css-styling.mdc new file mode 100644 index 0000000..102b33a --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-tailwind-cursorrules-prompt-file/tailwind-css-styling.mdc @@ -0,0 +1,8 @@ +--- +description: Provides best practices for styling with Tailwind CSS, including reusable styles, responsive design, and dark mode. +globs: **/*.css +--- +- Utilize @apply directive in CSS files for reusable styles. +- Implement responsive design using Tailwind's responsive classes. +- Use Tailwind's configuration file for customization. +- Implement dark mode using Tailwind's dark variant. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-typescript-cursorrules-prompt-file/solidjs-functional-components-preference.mdc b/awesome-cursor-rules-mdc/solidjs-typescript-cursorrules-prompt-file/solidjs-functional-components-preference.mdc new file mode 100644 index 0000000..d18333d --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-typescript-cursorrules-prompt-file/solidjs-functional-components-preference.mdc @@ -0,0 +1,5 @@ +--- +description: Enforces the use of functional components in SolidJS TypeScript files. This rule promotes a consistent and modern approach to component design in SolidJS projects. +globs: **/*.tsx +--- +- Prefer functional components in SolidJS development. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-typescript-cursorrules-prompt-file/solidjs-project-folder-structure.mdc b/awesome-cursor-rules-mdc/solidjs-typescript-cursorrules-prompt-file/solidjs-project-folder-structure.mdc new file mode 100644 index 0000000..9490883 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-typescript-cursorrules-prompt-file/solidjs-project-folder-structure.mdc @@ -0,0 +1,13 @@ +--- +description: Specifies the recommended folder structure for SolidJS projects under the src directory. This ensures a standardized and maintainable project layout. +globs: src/**/* +--- +- Enforce the following folder structure: + + src/ + components/ + pages/ + utils/ + types/ + App.tsx + index.tsx \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-typescript-cursorrules-prompt-file/solidjs-typescript-best-practices.mdc b/awesome-cursor-rules-mdc/solidjs-typescript-cursorrules-prompt-file/solidjs-typescript-best-practices.mdc new file mode 100644 index 0000000..4191f63 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-typescript-cursorrules-prompt-file/solidjs-typescript-best-practices.mdc @@ -0,0 +1,10 @@ +--- +description: Applies best practices for using SolidJS with TypeScript. This includes using typed reactive state, proper type definitions, and strict TypeScript mode. +globs: **/*.tsx +--- +- Use createSignal() for typed reactive state +- Implement proper type definitions for components +- Utilize TypeScript's strict mode +- Use type inference where possible +- Implement interfaces for complex prop types +- Utilize utility types provided by Solid.js \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-typescript-cursorrules-prompt-file/solidjs-typescript-coding-standards.mdc b/awesome-cursor-rules-mdc/solidjs-typescript-cursorrules-prompt-file/solidjs-typescript-coding-standards.mdc new file mode 100644 index 0000000..5857c20 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-typescript-cursorrules-prompt-file/solidjs-typescript-coding-standards.mdc @@ -0,0 +1,11 @@ +--- +description: Defines additional coding standards for SolidJS and TypeScript. This includes using the .tsx extension, implementing strict TypeScript checks, and utilizing Solid Router with proper typing. +globs: **/*.tsx +--- +- Use .tsx extension for files with JSX +- Implement strict TypeScript checks +- Utilize Solid Router with proper typing +- Use type-safe context with createContext +- Implement proper typing for event handlers +- Follow TypeScript best practices and naming conventions +- Use type assertions sparingly and only when necessary \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/solidjs-typescript-cursorrules-prompt-file/tsconfig-json-rules.mdc b/awesome-cursor-rules-mdc/solidjs-typescript-cursorrules-prompt-file/tsconfig-json-rules.mdc new file mode 100644 index 0000000..81c95a7 --- /dev/null +++ b/awesome-cursor-rules-mdc/solidjs-typescript-cursorrules-prompt-file/tsconfig-json-rules.mdc @@ -0,0 +1,5 @@ +--- +description: Defines general rules for tsconfig.json. It suggest using strict TypeScript checks +globs: tsconfig.json +--- +- Implement strict TypeScript checks \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/svelte-5-vs-svelte-4-cursorrules-prompt-file/svelte-5-component-structure---snippets.mdc b/awesome-cursor-rules-mdc/svelte-5-vs-svelte-4-cursorrules-prompt-file/svelte-5-component-structure---snippets.mdc new file mode 100644 index 0000000..ffa6155 --- /dev/null +++ b/awesome-cursor-rules-mdc/svelte-5-vs-svelte-4-cursorrules-prompt-file/svelte-5-component-structure---snippets.mdc @@ -0,0 +1,6 @@ +--- +description: Instructions for using snippets in Svelte 5 components to create reusable markup. +globs: **/*.svelte +--- +- Use snippets and render tags to create reusable chunks of markup inside components. +- Snippets help reduce duplication and enhance maintainability. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/svelte-5-vs-svelte-4-cursorrules-prompt-file/svelte-5-general-rules.mdc b/awesome-cursor-rules-mdc/svelte-5-vs-svelte-4-cursorrules-prompt-file/svelte-5-general-rules.mdc new file mode 100644 index 0000000..211a923 --- /dev/null +++ b/awesome-cursor-rules-mdc/svelte-5-vs-svelte-4-cursorrules-prompt-file/svelte-5-general-rules.mdc @@ -0,0 +1,7 @@ +--- +description: General rules for Svelte 5 projects, including using runes for reactivity and simplifying event handlers. +globs: **/*.svelte +--- +- Always use Svelte 5 instead of Svelte 4. +- Use runes for controlling reactivity; runes replace certain non-runes features and provide more explicit control over state and effects. +- Treat event handlers as properties for simpler use and integration. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/svelte-5-vs-svelte-4-cursorrules-prompt-file/svelte-5-reactivity-handling.mdc b/awesome-cursor-rules-mdc/svelte-5-vs-svelte-4-cursorrules-prompt-file/svelte-5-reactivity-handling.mdc new file mode 100644 index 0000000..c6fae8a --- /dev/null +++ b/awesome-cursor-rules-mdc/svelte-5-vs-svelte-4-cursorrules-prompt-file/svelte-5-reactivity-handling.mdc @@ -0,0 +1,6 @@ +--- +description: Guidelines for handling reactivity and reactive statements in Svelte 5. +globs: **/*.svelte +--- +- Prefer runes over reactive declarations ( `$:`) for reactivity, e.g. `bind:value` +- Treat event handlers as properties, simplifying their use. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/ai-assistant-guidelines.mdc b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/ai-assistant-guidelines.mdc new file mode 100644 index 0000000..deec1ba --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/ai-assistant-guidelines.mdc @@ -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. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/ai-md-reference.mdc b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/ai-md-reference.mdc new file mode 100644 index 0000000..8adb162 --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/ai-md-reference.mdc @@ -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. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/best-practices-guidelines.mdc b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/best-practices-guidelines.mdc new file mode 100644 index 0000000..cbe6d9c --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/best-practices-guidelines.mdc @@ -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 \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/code-quality-standards.mdc b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/code-quality-standards.mdc new file mode 100644 index 0000000..84cba84 --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/code-quality-standards.mdc @@ -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 \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/continuous-improvement-focus.mdc b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/continuous-improvement-focus.mdc new file mode 100644 index 0000000..c74881c --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/continuous-improvement-focus.mdc @@ -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 \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/design-and-user-experience-guidelines.mdc b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/design-and-user-experience-guidelines.mdc new file mode 100644 index 0000000..55e6a11 --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/design-and-user-experience-guidelines.mdc @@ -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 \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/development-workflow-details.mdc b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/development-workflow-details.mdc new file mode 100644 index 0000000..a0703a6 --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/development-workflow-details.mdc @@ -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 \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/documentation-standards.mdc b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/documentation-standards.mdc new file mode 100644 index 0000000..a14f881 --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/documentation-standards.mdc @@ -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 \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/elon-musk-s-algorithm-for-efficiency.mdc b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/elon-musk-s-algorithm-for-efficiency.mdc new file mode 100644 index 0000000..14ee37b --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/elon-musk-s-algorithm-for-efficiency.mdc @@ -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 \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/file-management-rules.mdc b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/file-management-rules.mdc new file mode 100644 index 0000000..0137192 --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/file-management-rules.mdc @@ -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 \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/file-path-usage.mdc b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/file-path-usage.mdc new file mode 100644 index 0000000..d0e710d --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/file-path-usage.mdc @@ -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. \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/tech-stack-definition.mdc b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/tech-stack-definition.mdc new file mode 100644 index 0000000..205f820 --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/tech-stack-definition.mdc @@ -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 \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/test-driven-development-tdd.mdc b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/test-driven-development-tdd.mdc new file mode 100644 index 0000000..dd15ade --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/test-driven-development-tdd.mdc @@ -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 \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/testing-guidelines.mdc b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/testing-guidelines.mdc new file mode 100644 index 0000000..b6970c7 --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/testing-guidelines.mdc @@ -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) \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/truthfulness-and-clarity-for-ai.mdc b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/truthfulness-and-clarity-for-ai.mdc new file mode 100644 index 0000000..7d2f010 --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/truthfulness-and-clarity-for-ai.mdc @@ -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 \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/windows-compatibility.mdc b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/windows-compatibility.mdc new file mode 100644 index 0000000..8d0f7f6 --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-restful-api-tailwind-css-cursorrules-pro/windows-compatibility.mdc @@ -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 \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-tailwindcss-typescript-cursorrules-promp/accessibility-guidelines.mdc b/awesome-cursor-rules-mdc/sveltekit-tailwindcss-typescript-cursorrules-promp/accessibility-guidelines.mdc new file mode 100644 index 0000000..1c4de89 --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-tailwindcss-typescript-cursorrules-promp/accessibility-guidelines.mdc @@ -0,0 +1,9 @@ +--- +description: Ensures accessibility by using semantic HTML, ARIA attributes, keyboard navigation, and sufficient color contrast. This improves the user experience for people with disabilities. +globs: **/*.{svelte,html} +--- +- Accessibility + - Ensure proper semantic HTML structure + - Use ARIA attributes when necessary + - Implement keyboard navigation for interactive elements + - Maintain sufficient color contrast ratios \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-tailwindcss-typescript-cursorrules-promp/async-operations.mdc b/awesome-cursor-rules-mdc/sveltekit-tailwindcss-typescript-cursorrules-promp/async-operations.mdc new file mode 100644 index 0000000..9450961 --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-tailwindcss-typescript-cursorrules-promp/async-operations.mdc @@ -0,0 +1,7 @@ +--- +description: Specifies the preferred syntax for asynchronous operations using async/await and onMount for component initialization. This results in cleaner and more readable asynchronous code. +globs: **/*.{svelte,js,ts} +--- +- Async Operations + - Prefer async/await syntax over .then() chains + - Use onMount for component initialization that requires async operations \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-tailwindcss-typescript-cursorrules-promp/code-quality-tools.mdc b/awesome-cursor-rules-mdc/sveltekit-tailwindcss-typescript-cursorrules-promp/code-quality-tools.mdc new file mode 100644 index 0000000..0ded610 --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-tailwindcss-typescript-cursorrules-promp/code-quality-tools.mdc @@ -0,0 +1,8 @@ +--- +description: Encourages the use of ESLint, Prettier, and code reviews to maintain code quality and consistency. This promotes a consistent codebase and reduces the risk of errors. +globs: **/*.{svelte,js,ts} +--- +- Code Quality + - Use ESLint with the recommended Svelte and TypeScript configurations + - Implement Prettier for consistent code formatting + - Conduct regular code reviews to maintain code quality and consistency \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-tailwindcss-typescript-cursorrules-promp/documentation-standards.mdc b/awesome-cursor-rules-mdc/sveltekit-tailwindcss-typescript-cursorrules-promp/documentation-standards.mdc new file mode 100644 index 0000000..1c51c24 --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-tailwindcss-typescript-cursorrules-promp/documentation-standards.mdc @@ -0,0 +1,8 @@ +--- +description: Sets documentation standards, including README files, JSDoc comments, and concise inline comments. This makes the codebase easier to understand and maintain. +globs: **/*.{svelte,js,ts} +--- +- Documentation + - Maintain up-to-date README files for the project and major components + - Use JSDoc comments for functions and complex logic + - Keep inline comments concise and meaningful \ No newline at end of file diff --git a/awesome-cursor-rules-mdc/sveltekit-tailwindcss-typescript-cursorrules-promp/general-code-guidelines.mdc b/awesome-cursor-rules-mdc/sveltekit-tailwindcss-typescript-cursorrules-promp/general-code-guidelines.mdc new file mode 100644 index 0000000..a6a060b --- /dev/null +++ b/awesome-cursor-rules-mdc/sveltekit-tailwindcss-typescript-cursorrules-promp/general-code-guidelines.mdc @@ -0,0 +1,11 @@ +--- +description: Outlines the general code guidelines to be followed, including early returns, Tailwind CSS for styling, and descriptive naming conventions. This ensures consistency and readability across the codebase. +globs: **/*.{svelte,js,ts,jsx,tsx,html,css} +--- +- Adhere to the following guidelines in your code: + - Utilize early returns for code readability. + - Use Tailwind classes for styling HTML elements instead of CSS or