diff --git a/cursor-rules-cli/RULES_JSON_README.md b/cursor-rules-cli/RULES_JSON_README.md new file mode 100644 index 0000000..6c48550 --- /dev/null +++ b/cursor-rules-cli/RULES_JSON_README.md @@ -0,0 +1,7 @@ +# About rules.json + +This rules.json file is automatically copied from the project root. +It is the source of truth for library detection rules. + +DO NOT EDIT THIS FILE DIRECTLY. +Instead, edit the main rules.json in the project root and run the generate_mdc_files.py script. diff --git a/rules-mdc/actix-web.mdc b/rules-mdc/actix-web.mdc index 78efeab..1d54a47 100644 --- a/rules-mdc/actix-web.mdc +++ b/rules-mdc/actix-web.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive best practices for developing robust, efficient, and maintainable applications using the actix-web framework in Rust. This rule covers coding standards, project structure, performance, security, testing, and common pitfalls. -globs: **/*.rs +globs: *.rs --- # Actix-web Best Practices: A Comprehensive Guide diff --git a/rules-mdc/aiohttp.mdc b/rules-mdc/aiohttp.mdc index 6d1d1f7..e5302f5 100644 --- a/rules-mdc/aiohttp.mdc +++ b/rules-mdc/aiohttp.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guide for aiohttp development covering code organization, performance, security, testing, and deployment best practices. Provides actionable guidance for developers to build robust and maintainable aiohttp applications. -globs: **/*.py +globs: *.py --- # Aiohttp Best Practices diff --git a/rules-mdc/amazon-ec2.mdc b/rules-mdc/amazon-ec2.mdc index 777235c..4465bc6 100644 --- a/rules-mdc/amazon-ec2.mdc +++ b/rules-mdc/amazon-ec2.mdc @@ -1,6 +1,7 @@ --- description: This rule file provides best practices, coding standards, and security guidelines for developing, deploying, and maintaining applications using the amazon-ec2 library within the AWS ecosystem. It focuses on infrastructure as code (IaC), resource management, performance, and security considerations for robust and scalable EC2-based solutions. -globs: **/*.{tf,json,yml,yaml,py,js,ts,sh,java,go,rb,m} +globs: *.tf,*.json,*.yml,*.yaml,*.py,*.js,*.ts,*.sh,*.java,*.go,*.rb,*.m +alwaysApply: false --- - ## General Principles - **Infrastructure as Code (IaC):** Treat your infrastructure as code. Define and provision AWS resources (EC2 instances, security groups, networks) using code (e.g., AWS CloudFormation, AWS CDK, Terraform). This ensures consistency, repeatability, and version control. @@ -312,6 +313,6 @@ globs: **/*.{tf,json,yml,yaml,py,js,ts,sh,java,go,rb,m} - ## References - - [AWS EC2 Best Practices](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-best-practices.html) - - [AWS CDK Best Practices](https://docs.aws.amazon.com/cdk/v2/guide/best-practices.html) - - [Terraform AWS Provider Best Practices](https://docs.aws.amazon.com/prescriptive-guidance/latest/terraform-aws-provider-best-practices/structure.html) \ No newline at end of file + - [AWS EC2 Best Practices](mdc:https:/docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-best-practices.html) + - [AWS CDK Best Practices](mdc:https:/docs.aws.amazon.com/cdk/v2/guide/best-practices.html) + - [Terraform AWS Provider Best Practices](mdc:https:/docs.aws.amazon.com/prescriptive-guidance/latest/terraform-aws-provider-best-practices/structure.html) \ No newline at end of file diff --git a/rules-mdc/amazon-s3.mdc b/rules-mdc/amazon-s3.mdc index 94a315a..de26fac 100644 --- a/rules-mdc/amazon-s3.mdc +++ b/rules-mdc/amazon-s3.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides comprehensive best practices, coding standards, and security guidelines for developing applications using Amazon S3. It aims to ensure secure, performant, and maintainable S3 integrations. -globs: **/*S3*.{js,ts,jsx,tsx,py,java,go,csharp} +globs: *S3*.js,*S3*.ts,*S3*.jsx,*S3*.tsx,*S3*.py,*S3*.java,*S3*.go,*S3*.csharp --- - Always disable public access to S3 buckets unless explicitly needed. Use AWS Identity and Access Management (IAM) policies and bucket policies for access control instead of Access Control Lists (ACLs), which are now generally deprecated. - Implement encryption for data at rest using Server-Side Encryption (SSE), preferably with AWS Key Management Service (KMS) for enhanced security. diff --git a/rules-mdc/android-sdk.mdc b/rules-mdc/android-sdk.mdc index 349e5b9..ba86080 100644 --- a/rules-mdc/android-sdk.mdc +++ b/rules-mdc/android-sdk.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides comprehensive best practices for Android SDK development, encompassing code organization, performance, security, testing, and common pitfalls. It aims to guide developers in creating robust, maintainable, and efficient Android applications and libraries. -globs: **/*.{java,kt,xml,gradle,properties} +globs: *.java,*.kt,*.xml,*.gradle,*.properties --- - MUST be under source control management (SCM). RECOMMENDED source control management is git - If you intend your source repo to be public ensure you have received the necessary management and legal approval diff --git a/rules-mdc/angular.mdc b/rules-mdc/angular.mdc index cfe0e4e..1abddca 100644 --- a/rules-mdc/angular.mdc +++ b/rules-mdc/angular.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidelines for Angular development, covering coding standards, best practices, performance optimization, security considerations, and testing approaches to ensure maintainable, scalable, and high-performing applications. -globs: **/*.{ts,html,scss,css} +globs: *.ts,*.html,*.scss,*.css --- # Angular Best Practices and Coding Standards diff --git a/rules-mdc/ansible.mdc b/rules-mdc/ansible.mdc index 99f9b60..3325f4e 100644 --- a/rules-mdc/ansible.mdc +++ b/rules-mdc/ansible.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides comprehensive best practices and coding standards for Ansible projects, covering code organization, common patterns, performance, security, testing, pitfalls, and tooling. It aims to improve maintainability, reusability, and efficiency in Ansible automation. -globs: **/*.{yml,yaml,j2} +globs: *.yml,*.yaml,*.j2 --- - Adopt and adhere to the following Ansible best practices to ensure maintainable, reusable, and efficient automation code. This guide provides standards for code organization, common patterns, performance optimization, security, testing, tooling, and common pitfalls to avoid. diff --git a/rules-mdc/ant-design.mdc b/rules-mdc/ant-design.mdc index a3fef47..f949dae 100644 --- a/rules-mdc/ant-design.mdc +++ b/rules-mdc/ant-design.mdc @@ -1,6 +1,6 @@ --- description: This rule enforces best practices and coding standards for projects using the Ant Design (antd) UI library within React applications. It covers code organization, performance, security, testing, and common pitfalls to ensure maintainable and efficient applications. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- # Ant Design (antd) Best Practices and Coding Standards diff --git a/rules-mdc/anyio.mdc b/rules-mdc/anyio.mdc index 2ebb326..269810b 100644 --- a/rules-mdc/anyio.mdc +++ b/rules-mdc/anyio.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices and coding standards for developing with the AnyIO library, focusing on structured concurrency, task management, and proper use of synchronization primitives to create robust, cross-backend asynchronous applications. -globs: **/*.py +globs: *.py --- # AnyIO Best Practices and Coding Standards diff --git a/rules-mdc/apollo-client.mdc b/rules-mdc/apollo-client.mdc index a668031..3bf155f 100644 --- a/rules-mdc/apollo-client.mdc +++ b/rules-mdc/apollo-client.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for using Apollo Client in your projects, covering code organization, performance, security, testing, and common pitfalls. It aims to guide developers in building robust and maintainable GraphQL-powered applications. -globs: **/*.{js,jsx,ts,tsx,gql,graphql} +globs: *.js,*.jsx,*.ts,*.tsx,*.gql,*.graphql --- - **Code Organization and Structure:** - **Directory Structure:** diff --git a/rules-mdc/apollo-graphql.mdc b/rules-mdc/apollo-graphql.mdc index 9e3a0a0..56e4e02 100644 --- a/rules-mdc/apollo-graphql.mdc +++ b/rules-mdc/apollo-graphql.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices and coding standards for developing with Apollo GraphQL. It covers schema design, security, performance, testing, and deployment. -globs: **/*.{js,jsx,ts,tsx,graphql} +globs: *.js,*.jsx,*.ts,*.tsx,*.graphql --- - Always use UV when installing dependencies - Always use python 3.12 diff --git a/rules-mdc/asp-net.mdc b/rules-mdc/asp-net.mdc index e0c65ff..460e7cc 100644 --- a/rules-mdc/asp-net.mdc +++ b/rules-mdc/asp-net.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides best practices and coding standards for ASP.NET Core development, covering various aspects from code organization to security and performance optimization. -globs: **/*.cs +globs: *.cs --- # ASP.NET Core Best Practices and Coding Standards diff --git a/rules-mdc/astro.mdc b/rules-mdc/astro.mdc index df9705a..a258e57 100644 --- a/rules-mdc/astro.mdc +++ b/rules-mdc/astro.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices and coding standards for developing Astro projects. It covers code organization, performance, security, testing, and common pitfalls. -globs: **/*.astro +globs: *.astro --- # Astro Library Best Practices and Coding Standards diff --git a/rules-mdc/asyncio.mdc b/rules-mdc/asyncio.mdc index 7abc40d..f697b60 100644 --- a/rules-mdc/asyncio.mdc +++ b/rules-mdc/asyncio.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidelines and best practices for utilizing the asyncio library in Python, covering code organization, performance, security, testing, and common pitfalls. -globs: **/*.py +globs: *.py --- # asyncio Best Practices and Coding Standards diff --git a/rules-mdc/auth0.mdc b/rules-mdc/auth0.mdc index 5719cc8..df322aa 100644 --- a/rules-mdc/auth0.mdc +++ b/rules-mdc/auth0.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidance for Auth0 library usage, covering code organization, security, performance, testing, and common pitfalls. Adhering to these guidelines ensures secure, efficient, and maintainable Auth0 integrations. -globs: **/*.{js,jsx,ts,tsx,html,css,scss,py,java,go} +globs: *.js,*.jsx,*.ts,*.tsx,*.html,*.css,*.scss,*.py,*.java,*.go --- --- diff --git a/rules-mdc/autogen.mdc b/rules-mdc/autogen.mdc index b321ce6..476d5a5 100644 --- a/rules-mdc/autogen.mdc +++ b/rules-mdc/autogen.mdc @@ -1,6 +1,6 @@ --- description: Provides coding standards, best practices, and guidance specific to the AutoGen library, covering aspects from code structure to security and performance. -globs: **/*.py +globs: *.py --- - Best practice 1: Employ Modular Design. Utilize AutoGen's multi-agent framework to create modular agents with specific roles. This enhances code reusability and simplifies the orchestration of complex workflows. Example: Create separate agents for data fetching, code execution, and response formatting. - Best practice 2: Define Customizable Workflows. Leverage AutoGen's capabilities to define customizable workflows that integrate LLMs, human inputs, and tools. This allows for flexible agent interactions and enhances the performance of LLM applications. Implement a workflow manager to define and control agent interactions. diff --git a/rules-mdc/aws-amplify.mdc b/rules-mdc/aws-amplify.mdc index 33cdde9..8c642c4 100644 --- a/rules-mdc/aws-amplify.mdc +++ b/rules-mdc/aws-amplify.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices and coding standards for aws-amplify projects, covering code organization, common patterns, performance, security, testing, pitfalls, and tooling. It aims to guide developers in building robust, scalable, and maintainable aws-amplify applications. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- - # aws-amplify Best Practices diff --git a/rules-mdc/aws-cli.mdc b/rules-mdc/aws-cli.mdc index d440ba4..1d33952 100644 --- a/rules-mdc/aws-cli.mdc +++ b/rules-mdc/aws-cli.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidance on best practices for developing and managing AWS resources using the AWS CLI, covering code organization, security, performance, and testing. -globs: **/*.{sh,py,yml,yaml,tf,json,md} +globs: *.sh,*.py,*.yml,*.yaml,*.tf,*.json,*.md --- # AWS CLI Best Practices and Coding Standards diff --git a/rules-mdc/aws-dynamodb.mdc b/rules-mdc/aws-dynamodb.mdc index 21cd876..f5c33c6 100644 --- a/rules-mdc/aws-dynamodb.mdc +++ b/rules-mdc/aws-dynamodb.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices and coding standards for developing applications using AWS DynamoDB. It covers aspects like schema design, performance optimization, security, and testing. -globs: **/*.{js,ts,jsx,tsx,py} +globs: *.js,*.ts,*.jsx,*.tsx,*.py --- - **Minimize the number of tables; prefer single-table design.** Having fewer tables keeps things more scalable, requires less permissions management, and reduces overhead for your DynamoDB application. Consider using a single table with appropriate use of primary and secondary indexes. - **Identify query patterns before schema design.** Understand the application's access patterns before designing the DynamoDB schema. Knowing how the data will be queried is crucial for optimizing performance and cost. diff --git a/rules-mdc/aws-ecs.mdc b/rules-mdc/aws-ecs.mdc index d00176a..0ce4ef1 100644 --- a/rules-mdc/aws-ecs.mdc +++ b/rules-mdc/aws-ecs.mdc @@ -1,6 +1,6 @@ --- description: This rule covers best practices for developing, deploying, and maintaining applications using AWS Elastic Container Service (ECS). It includes guidance on code organization, performance, security, testing, and common pitfalls. -globs: **/*.{tf,yml,yaml,json,sh,dockerfile} +globs: *.tf,*.yml,*.yaml,*.json,*.sh,*.dockerfile --- - **General Principles:** - **Infrastructure as Code (IaC):** Treat your ECS infrastructure as code. Use tools like Terraform, AWS CloudFormation, or AWS CDK to define and manage your ECS clusters, task definitions, and services. diff --git a/rules-mdc/aws-lambda.mdc b/rules-mdc/aws-lambda.mdc index 9f3c2ed..ba1019f 100644 --- a/rules-mdc/aws-lambda.mdc +++ b/rules-mdc/aws-lambda.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guide for AWS Lambda development, covering best practices for code organization, performance, security, testing, and common pitfalls. Focuses on building robust, scalable, and secure serverless applications using AWS Lambda. -globs: **/*.{js,ts,jsx,tsx,py,java,go,c#,cs,ps1,sh} +globs: *.js,*.ts,*.jsx,*.tsx,*.py,*.java,*.go,*.c#,*.cs,*.ps1,*.sh --- - **Use Documented APIs Only:** Rely solely on AWS Lambda's documented APIs to ensure compatibility and avoid unexpected behavior. Do not use undocumented or internal APIs. diff --git a/rules-mdc/aws-rds.mdc b/rules-mdc/aws-rds.mdc index 3dfa76c..6e4ca26 100644 --- a/rules-mdc/aws-rds.mdc +++ b/rules-mdc/aws-rds.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices and coding standards for developing applications that interact with AWS RDS. It covers code organization, security, performance, testing, and common pitfalls. -globs: **/*.{sql,js,py,java,tf,yaml,yml} +globs: *.sql,*.js,*.py,*.java,*.tf,*.yaml,*.yml --- # AWS RDS Best Practices and Coding Standards diff --git a/rules-mdc/aws.mdc b/rules-mdc/aws.mdc index 6a17dd1..19eaf03 100644 --- a/rules-mdc/aws.mdc +++ b/rules-mdc/aws.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive rules and best practices for AWS development using Terraform, covering code organization, security, performance, and testing. Adherence to these guidelines ensures maintainable, secure, and efficient infrastructure code. -globs: **/*.tf +globs: *.tf --- # AWS Development Best Practices using Terraform diff --git a/rules-mdc/axios.mdc b/rules-mdc/axios.mdc index 09d0f1d..1e6dfdc 100644 --- a/rules-mdc/axios.mdc +++ b/rules-mdc/axios.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidelines for using Axios effectively, covering best practices, security considerations, and performance optimization. It aims to improve code quality, maintainability, and overall application resilience when working with Axios. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- - **Avoid hardcoding URLs**: Store API endpoints in configuration files or environment variables to enhance maintainability and avoid redundancy. - **Centralize API Logic**: Create dedicated modules or services to encapsulate Axios instances and request logic. This promotes reusability and simplifies debugging. diff --git a/rules-mdc/azure-pipelines.mdc b/rules-mdc/azure-pipelines.mdc index eda62dd..ebbb603 100644 --- a/rules-mdc/azure-pipelines.mdc +++ b/rules-mdc/azure-pipelines.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guidelines for Azure Pipelines, covering code structure, security, performance, testing, and deployment. Provides actionable advice for developers working with Azure Pipelines YAML definitions to enhance code quality and CI/CD processes. -globs: **/*.{yml,yaml} +globs: *.yml,*.yaml --- - # General Guidelines - Utilize YAML pipelines for version control and ease of replication. diff --git a/rules-mdc/azure.mdc b/rules-mdc/azure.mdc index 625a574..d89a346 100644 --- a/rules-mdc/azure.mdc +++ b/rules-mdc/azure.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for developing Azure applications, covering code organization, security, performance, testing, and common pitfalls. It aims to improve code quality, security posture, and overall efficiency when working with the Azure ecosystem. -globs: **/*.{az,tf,bicep,py,js,ts,json,yml,yaml,ps1,sh,cs,java} +globs: *.az,*.tf,*.bicep,*.py,*.js,*.ts,*.json,*.yml,*.yaml,*.ps1,*.sh,*.cs,*.java --- # Azure Library Best Practices and Coding Standards diff --git a/rules-mdc/bash.mdc b/rules-mdc/bash.mdc index e938196..4605cb4 100644 --- a/rules-mdc/bash.mdc +++ b/rules-mdc/bash.mdc @@ -1,6 +1,6 @@ --- description: This rule enforces best practices and coding standards for Bash scripting to improve code quality, maintainability, and security. It covers naming conventions, formatting, error handling, security, and performance considerations. -globs: **/*.sh +globs: *.sh --- # Bash Best Practices and Coding Standards diff --git a/rules-mdc/beautifulsoup4.mdc b/rules-mdc/beautifulsoup4.mdc index 1cbe4be..261a130 100644 --- a/rules-mdc/beautifulsoup4.mdc +++ b/rules-mdc/beautifulsoup4.mdc @@ -1,5 +1,5 @@ --- description: This rule file outlines best practices for using the beautifulsoup4 library in Python, covering code organization, performance, security, testing, and common pitfalls. -globs: **/*.py +globs: *.py --- By following these best practices, you can build robust, efficient, and secure web scrapers using beautifulsoup4. \ No newline at end of file diff --git a/rules-mdc/behave.mdc b/rules-mdc/behave.mdc index 57d31dc..4b96f88 100644 --- a/rules-mdc/behave.mdc +++ b/rules-mdc/behave.mdc @@ -1,4 +1,4 @@ --- description: This rule file provides comprehensive best practices for writing maintainable and effective Behave BDD tests, including code organization, common patterns, performance considerations, and security. -globs: **/*.feature +globs: *.feature --- diff --git a/rules-mdc/black.mdc b/rules-mdc/black.mdc index e2b9175..c9c5b5a 100644 --- a/rules-mdc/black.mdc +++ b/rules-mdc/black.mdc @@ -1,6 +1,6 @@ --- description: Enforces consistent code formatting using Black, the uncompromising Python code formatter, promoting readability and reducing diffs. Covers best practices related to Black's configuration, usage, and integrations. -globs: **/*.py +globs: *.py --- - Adopt Black as the primary code formatter for all Python projects. - Adhere to Black's default style guide for consistent formatting across projects. diff --git a/rules-mdc/boto3.mdc b/rules-mdc/boto3.mdc index 7d3d081..6ac9ef1 100644 --- a/rules-mdc/boto3.mdc +++ b/rules-mdc/boto3.mdc @@ -1,6 +1,6 @@ --- description: This rule file outlines best practices for using the boto3 library, including code organization, security, performance, testing, and common pitfalls. It aims to ensure efficient, secure, and maintainable AWS integrations with boto3. -globs: **/*.py +globs: *.py --- --- diff --git a/rules-mdc/bottle.mdc b/rules-mdc/bottle.mdc index 0a63768..49f1e48 100644 --- a/rules-mdc/bottle.mdc +++ b/rules-mdc/bottle.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive coding standards, best practices, and architectural guidelines for Python backend development with the Bottle microframework, designed to improve code quality, maintainability, and security. -globs: **/*.py +globs: *.py --- # Bottle Framework Best Practices diff --git a/rules-mdc/bun.mdc b/rules-mdc/bun.mdc index 134aa56..2fbf56e 100644 --- a/rules-mdc/bun.mdc +++ b/rules-mdc/bun.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidance on Bun library coding standards, best practices, and common patterns. It includes performance optimization, security considerations, and testing strategies. -globs: **/*.{js,ts,jsx,tsx,bun} +globs: *.js,*.ts,*.jsx,*.tsx,*.bun --- # Bun Library Best Practices diff --git a/rules-mdc/c-sharp.mdc b/rules-mdc/c-sharp.mdc index 0a63d13..c31493a 100644 --- a/rules-mdc/c-sharp.mdc +++ b/rules-mdc/c-sharp.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides a comprehensive guide to C# best practices, coding standards, and common patterns for writing maintainable, performant, and secure code. -globs: **/*.cs +globs: *.cs --- # C# Best Practices and Coding Standards diff --git a/rules-mdc/chakra-ui.mdc b/rules-mdc/chakra-ui.mdc index a035498..e9bba04 100644 --- a/rules-mdc/chakra-ui.mdc +++ b/rules-mdc/chakra-ui.mdc @@ -1,6 +1,6 @@ --- description: This rule enforces best practices and coding standards for Chakra UI projects, including accessibility, styling, performance, and security. It aims to provide clear, actionable guidance for developers using Chakra UI. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- - **Accessibility**: Ensure all components follow WAI-ARIA standards, including keyboard navigation and screen reader support. diff --git a/rules-mdc/cheerio.mdc b/rules-mdc/cheerio.mdc index b91079c..561e58e 100644 --- a/rules-mdc/cheerio.mdc +++ b/rules-mdc/cheerio.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices for using Cheerio for web scraping and HTML parsing in JavaScript, covering code organization, performance, security, testing, and common pitfalls. -globs: **/*.js +globs: *.js --- # Cheerio Best Practices diff --git a/rules-mdc/clerk.mdc b/rules-mdc/clerk.mdc index 91bf2fc..0418826 100644 --- a/rules-mdc/clerk.mdc +++ b/rules-mdc/clerk.mdc @@ -1,6 +1,6 @@ --- description: This rule file outlines comprehensive best practices for developing applications using the Clerk library, focusing on security, performance, code organization, and testing to ensure robust and maintainable authentication implementations. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- --- ## Clerk Library Best Practices diff --git a/rules-mdc/click.mdc b/rules-mdc/click.mdc index b0d4123..d3d08a6 100644 --- a/rules-mdc/click.mdc +++ b/rules-mdc/click.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive best practices for developing robust and maintainable command-line interfaces using the Click library in Python. Covers code structure, patterns, performance, security, testing, and common pitfalls. -globs: **/*.py +globs: *.py --- # Click CLI Library Best Practices diff --git a/rules-mdc/cloudflare.mdc b/rules-mdc/cloudflare.mdc index 72161ef..c9507f5 100644 --- a/rules-mdc/cloudflare.mdc +++ b/rules-mdc/cloudflare.mdc @@ -1,6 +1,6 @@ --- description: This rule provides a comprehensive set of best practices and coding standards for developing with the Cloudflare library, specifically focusing on Terraform configurations. It aims to guide developers in creating efficient, secure, and maintainable infrastructure code. -globs: **/*.tf +globs: *.tf --- # Cloudflare Terraform Best Practices diff --git a/rules-mdc/codemirror.mdc b/rules-mdc/codemirror.mdc index 09ef263..f5a208a 100644 --- a/rules-mdc/codemirror.mdc +++ b/rules-mdc/codemirror.mdc @@ -1,6 +1,6 @@ --- description: This rule provides guidelines for using CodeMirror effectively, covering code organization, performance, security, testing, and common pitfalls. It aims to ensure robust and maintainable code editor implementations. -globs: **/*.{js,ts,html,css,vue,svelte,jsx,tsx} +globs: *.js,*.ts,*.html,*.css,*.vue,*.svelte,*.jsx,*.tsx --- # CodeMirror Best Practices and Coding Standards diff --git a/rules-mdc/crewai.mdc b/rules-mdc/crewai.mdc index 7b4bdc6..63fac0f 100644 --- a/rules-mdc/crewai.mdc +++ b/rules-mdc/crewai.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for developing with the CrewAI library, covering code organization, performance, security, testing, and common pitfalls. It serves as a guide for building robust and scalable AI applications using CrewAI. -globs: **/*.py +globs: *.py --- - **General Best Practices**: - Leverage structured responses from LLM calls using Pydantic for output validation. diff --git a/rules-mdc/css.mdc b/rules-mdc/css.mdc index d7c2dc9..7cc9a13 100644 --- a/rules-mdc/css.mdc +++ b/rules-mdc/css.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices for CSS development, covering code organization, performance, security, testing, and common pitfalls. It aims to ensure maintainable, scalable, and efficient CSS code. -globs: **/*.css +globs: *.css --- - **Use a CSS Preprocessor**: Leverage preprocessors like Sass, Less, or Stylus for features like variables, nesting, mixins, and functions to enhance code organization and maintainability. diff --git a/rules-mdc/cuda.mdc b/rules-mdc/cuda.mdc index 6f41bb3..37ab1c4 100644 --- a/rules-mdc/cuda.mdc +++ b/rules-mdc/cuda.mdc @@ -1,6 +1,6 @@ --- description: Enforces CUDA coding standards, performance optimizations, and best practices to ensure efficient and maintainable GPU-accelerated code. This rule provides guidance on code organization, memory management, error handling, and more. -globs: **/*.cu +globs: *.cu --- - # CUDA Best Practices Guide This document outlines best practices for CUDA development, focusing on code organization, performance optimization, and common pitfalls. It is based on NVIDIA's CUDA C++ Best Practices Guide and expands on it with more detailed recommendations. diff --git a/rules-mdc/customtkinter.mdc b/rules-mdc/customtkinter.mdc index 7ffa02a..cca0ff5 100644 --- a/rules-mdc/customtkinter.mdc +++ b/rules-mdc/customtkinter.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices for developing efficient, maintainable, and scalable GUI applications with CustomTkinter. It covers code organization, performance, security, testing, and common pitfalls. -globs: **/*.py +globs: *.py --- - **Always use UV when installing dependencies.** - **Always use Python 3.10 or higher.** CustomTkinter requires a modern Python version for compatibility and feature support. diff --git a/rules-mdc/cypress.mdc b/rules-mdc/cypress.mdc index 0a96b16..02019a0 100644 --- a/rules-mdc/cypress.mdc +++ b/rules-mdc/cypress.mdc @@ -1,6 +1,6 @@ --- description: This rule provides a comprehensive guide to Cypress best practices, covering code organization, performance, security, testing strategies, and tooling to ensure robust and maintainable end-to-end tests. -globs: **/*.{cy.js,cy.ts,spec.js,spec.ts} +globs: *.cy.js,*.cy.ts,*.spec.js,*.spec.ts --- # Cypress Best Practices: A Comprehensive Guide diff --git a/rules-mdc/d3.mdc b/rules-mdc/d3.mdc index 951bfd9..458d4e3 100644 --- a/rules-mdc/d3.mdc +++ b/rules-mdc/d3.mdc @@ -1,5 +1,5 @@ --- description: Comprehensive best practices and coding standards for D3.js projects, covering code organization, performance, security, testing, and common pitfalls. -globs: **/*.js +globs: *.js --- By following these best practices and coding standards, developers can create robust, maintainable, and performant data visualizations using the D3.js library. \ No newline at end of file diff --git a/rules-mdc/dask.mdc b/rules-mdc/dask.mdc index 8dd0961..d413ee1 100644 --- a/rules-mdc/dask.mdc +++ b/rules-mdc/dask.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive best practices and coding standards for using Dask in Python, focusing on performance, code organization, and common pitfalls. Provides actionable guidance for developers using Dask for parallel and distributed computing. -globs: **/*.{py,ipynb} +globs: *.py,*.ipynb --- # Dask Best Practices and Coding Standards diff --git a/rules-mdc/datadog.mdc b/rules-mdc/datadog.mdc index cb1606e..f76632c 100644 --- a/rules-mdc/datadog.mdc +++ b/rules-mdc/datadog.mdc @@ -1,6 +1,6 @@ --- description: This rule outlines best practices for coding standards, observability, and effective use of the Datadog library in Python projects. It covers coding style, metric/tag naming, dashboard design, security, and performance optimization. -globs: **/*.py +globs: *.py --- - **Coding Standards** - Use `black` for code formatting to ensure consistent style. diff --git a/rules-mdc/deno.mdc b/rules-mdc/deno.mdc index d4dd642..579085b 100644 --- a/rules-mdc/deno.mdc +++ b/rules-mdc/deno.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides comprehensive guidelines for Deno development, covering best practices for code organization, security, performance, testing, and documentation. Adhering to these standards ensures maintainable, efficient, and secure Deno applications. -globs: **/*.{ts,tsx,js,jsx,md} +globs: *.ts,*.tsx,*.js,*.jsx,*.md --- - **Use TypeScript**: Always prefer TypeScript for its strong typing, which enhances code quality and maintainability. Provide clear type annotations and use interfaces for better structure. - **Documentation with JSDoc**: Utilize JSDoc for documenting all exported symbols. Include concise summaries, type information, and examples. Keep documentation up-to-date with code changes. diff --git a/rules-mdc/detox.mdc b/rules-mdc/detox.mdc index dcd95b9..8f97d61 100644 --- a/rules-mdc/detox.mdc +++ b/rules-mdc/detox.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides guidelines for writing stable and maintainable end-to-end tests using Detox, covering code structure, testing strategies, and performance considerations. It includes best practices for test ID usage, dealing with flakiness, and integrating with CI/CD pipelines. -globs: **/*.{e2e.js,e2e.ts,spec.js,spec.ts} +globs: *.e2e.js,*.e2e.ts,*.spec.js,*.spec.ts --- # Detox E2E Testing Best Practices for React Native diff --git a/rules-mdc/digitalocean.mdc b/rules-mdc/digitalocean.mdc index f18b700..e810d03 100644 --- a/rules-mdc/digitalocean.mdc +++ b/rules-mdc/digitalocean.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidelines for DigitalOcean infrastructure and application development, covering code organization, security, performance, and deployment best practices. It aims to ensure consistent, scalable, and secure cloud solutions on the DigitalOcean platform. -globs: **/*.{tf,yml,yaml,sh,py} +globs: *.tf,*.yml,*.yaml,*.sh,*.py --- # DigitalOcean Development Best Practices diff --git a/rules-mdc/discord-api.mdc b/rules-mdc/discord-api.mdc index 18e2362..0584a46 100644 --- a/rules-mdc/discord-api.mdc +++ b/rules-mdc/discord-api.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices and coding standards for developing applications with the discord-api library. It covers code organization, performance, security, testing, and common pitfalls to ensure robust and maintainable Discord integrations. -globs: **/*.{js,ts,jsx,tsx,py,cs} +globs: *.js,*.ts,*.jsx,*.tsx,*.py,*.cs --- ## 1. Code Organization and Structure diff --git a/rules-mdc/django-orm.mdc b/rules-mdc/django-orm.mdc index 9e24bd1..0e060ed 100644 --- a/rules-mdc/django-orm.mdc +++ b/rules-mdc/django-orm.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides comprehensive best practices for Django's Object-Relational Mapper (ORM), covering code organization, performance, security, testing, and common pitfalls. It aims to guide developers in building efficient, maintainable, and secure Django applications. -globs: **/*.py +globs: *.py --- ## 1. Code Organization and Structure diff --git a/rules-mdc/django-rest-framework.mdc b/rules-mdc/django-rest-framework.mdc index a6d0679..3174035 100644 --- a/rules-mdc/django-rest-framework.mdc +++ b/rules-mdc/django-rest-framework.mdc @@ -1,6 +1,6 @@ --- description: A comprehensive guide to best practices for developing REST APIs using Django REST Framework (DRF), covering code structure, design patterns, security, performance, and testing. -globs: **/*.py +globs: *.py --- --- # django-rest-framework Best Practices diff --git a/rules-mdc/django.mdc b/rules-mdc/django.mdc index 41c83ad..48af736 100644 --- a/rules-mdc/django.mdc +++ b/rules-mdc/django.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guide to Django best practices covering code organization, performance, security, testing, and common pitfalls. This rule ensures adherence to community standards for maintainable and efficient Django applications. -globs: **/*.py +globs: *.py --- # Django Best Practices and Coding Standards diff --git a/rules-mdc/docker.mdc b/rules-mdc/docker.md similarity index 99% rename from rules-mdc/docker.mdc rename to rules-mdc/docker.md index c6b7a43..a78fb1f 100644 --- a/rules-mdc/docker.mdc +++ b/rules-mdc/docker.md @@ -1,6 +1,6 @@ --- description: This rule file provides comprehensive guidance on Docker best practices, covering Dockerfile construction, image optimization, and security considerations. It aims to improve the efficiency, maintainability, and security of Docker-based projects. -globs: **/{Dockerfile,docker-compose.yml,*.dockerfile} +globs: Dockerfile,docker-compose.yml,*.dockerfile --- # Docker Best Practices diff --git a/rules-mdc/drizzle.mdc b/rules-mdc/drizzle.mdc index 2148928..bc00d96 100644 --- a/rules-mdc/drizzle.mdc +++ b/rules-mdc/drizzle.mdc @@ -1,6 +1,6 @@ --- description: This rule outlines best practices for using Drizzle ORM in TypeScript and JavaScript projects. It covers code organization, performance, security, testing, and common pitfalls. -globs: **/*.ts,**/*.tsx,**/*.js,**/*.jsx +globs: *.ts,*.tsx,*.js,*.jsx --- # Drizzle ORM Best Practices and Coding Standards diff --git a/rules-mdc/duckdb.mdc b/rules-mdc/duckdb.mdc index b274446..da1450a 100644 --- a/rules-mdc/duckdb.mdc +++ b/rules-mdc/duckdb.mdc @@ -1,6 +1,6 @@ --- description: This rule file outlines best practices for developing with DuckDB, covering code organization, performance optimization, security considerations, and testing strategies. It aims to improve code quality, maintainability, and overall project health when using DuckDB. -globs: **/*.{sql,ddl,md,duckdb} +globs: *.sql,*.ddl,*.md,*.duckdb --- # DuckDB Best Practices and Coding Standards diff --git a/rules-mdc/elasticsearch.mdc b/rules-mdc/elasticsearch.mdc index 03d9e3e..fa61b0b 100644 --- a/rules-mdc/elasticsearch.mdc +++ b/rules-mdc/elasticsearch.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for developing with Elasticsearch, covering code organization, performance, security, testing, and common pitfalls, ensuring efficient and maintainable Elasticsearch applications. These practices apply broadly across languages interacting with Elasticsearch. -globs: **/*.{py,js,java,go,ts,kt,scala,rb,php,rs,c,cpp,cs,swift,m,h} +globs: *.py,*.js,*.java,*.go,*.ts,*.kt,*.scala,*.rb,*.php,*.rs,*.c,*.cpp,*.cs,*.swift,*.m,*.h --- - # Elasticsearch Library Best Practices diff --git a/rules-mdc/electron.mdc b/rules-mdc/electron.mdc index d20637f..d97ca6a 100644 --- a/rules-mdc/electron.mdc +++ b/rules-mdc/electron.mdc @@ -1,6 +1,6 @@ --- description: Enforces best practices, coding standards, and performance considerations for Electron development. Covers code structure, security, testing, and common pitfalls to ensure robust and maintainable applications. -globs: **/*.{js,jsx,ts,tsx,html,css,scss,mjs,cjs} +globs: *.js,*.jsx,*.ts,*.tsx,*.html,*.css,*.scss,*.mjs,*.cjs --- - **General Practices** - Adhere to the official Electron coding style guide. Run `npm run lint` to detect style issues using `cpplint` and `eslint`. diff --git a/rules-mdc/elk-stack.mdc b/rules-mdc/elk-stack.mdc index da1fdef..2db727f 100644 --- a/rules-mdc/elk-stack.mdc +++ b/rules-mdc/elk-stack.mdc @@ -1,6 +1,6 @@ --- description: This rule outlines best practices for developing and maintaining applications within the ELK (Elasticsearch, Logstash, Kibana) stack, including coding standards, configuration, performance, security, and testing. -globs: **/*.conf, **/*.yml, **/*.json, **/*.log +globs: *.conf, *.yml, *.json, *.log --- ## ELK Stack Best Practices diff --git a/rules-mdc/emacs.mdc b/rules-mdc/emacs.mdc index 8dc7aca..ee2aa9d 100644 --- a/rules-mdc/emacs.mdc +++ b/rules-mdc/emacs.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guide to Emacs Lisp coding standards, best practices, and common pitfalls. Focuses on maintainability, readability, and performance for building robust Emacs extensions. -globs: **/*.el +globs: *.el --- - ## Code Organization and Structure - ### Directory Structure diff --git a/rules-mdc/esbuild.mdc b/rules-mdc/esbuild.mdc index b44299c..e3331bb 100644 --- a/rules-mdc/esbuild.mdc +++ b/rules-mdc/esbuild.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for using esbuild, focusing on performance, code organization, and security in build configurations and development workflows. -globs: **/*.{js,jsx,ts,tsx,css,json} +globs: *.js,*.jsx,*.ts,*.tsx,*.css,*.json --- # esbuild Best Practices diff --git a/rules-mdc/eslint.mdc b/rules-mdc/eslint.mdc index bb56644..0bf79c2 100644 --- a/rules-mdc/eslint.mdc +++ b/rules-mdc/eslint.mdc @@ -1,5 +1,5 @@ --- description: This rule provides comprehensive guidelines for ESLint, covering code organization, common patterns, performance, security, testing, and tooling, ensuring high-quality, maintainable JavaScript/TypeScript code. -globs: **/*.{js,jsx,ts,tsx,vue} +globs: *.js,*.jsx,*.ts,*.tsx,*.vue --- By following these best practices, you can ensure that your JavaScript/TypeScript code is clean, consistent, and maintainable, reducing the risk of bugs and improving overall code quality. \ No newline at end of file diff --git a/rules-mdc/expo.mdc b/rules-mdc/expo.mdc index ec4275c..7f16e7b 100644 --- a/rules-mdc/expo.mdc +++ b/rules-mdc/expo.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices and coding standards for Expo projects, covering code organization, performance, security, testing, and common pitfalls to ensure maintainable and high-quality applications. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- - **Code Organization and Structure** - **Directory Structure:** diff --git a/rules-mdc/express.mdc b/rules-mdc/express.mdc index 4aa2c7b..dfec3ce 100644 --- a/rules-mdc/express.mdc +++ b/rules-mdc/express.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidance on best practices for developing robust, maintainable, and performant Express.js applications, covering aspects from code organization and security to testing and deployment. -globs: **/*.js +globs: *.js --- - # Express.js Best Practices diff --git a/rules-mdc/fabric-js.mdc b/rules-mdc/fabric-js.mdc index c803fd6..9f1694e 100644 --- a/rules-mdc/fabric-js.mdc +++ b/rules-mdc/fabric-js.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for developing applications with Fabric.js, covering code organization, performance optimization, security considerations, and testing strategies. It aims to help developers create efficient, maintainable, and secure Fabric.js-based applications. -globs: **/*.js +globs: *.js --- # Fabric.js Best Practices and Coding Standards diff --git a/rules-mdc/fastapi.mdc b/rules-mdc/fastapi.mdc index 465be69..44e56a0 100644 --- a/rules-mdc/fastapi.mdc +++ b/rules-mdc/fastapi.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guidelines for developing robust, scalable, and maintainable FastAPI applications. Covers code structure, performance, security, testing, and common pitfalls. -globs: **/*.py +globs: *.py --- # FastAPI Best Practices: A Comprehensive Guide diff --git a/rules-mdc/ffmpeg.mdc b/rules-mdc/ffmpeg.mdc index 7a72a81..7f76494 100644 --- a/rules-mdc/ffmpeg.mdc +++ b/rules-mdc/ffmpeg.mdc @@ -1,6 +1,6 @@ --- description: This rule outlines the best practices and coding standards for developing with FFmpeg, covering code organization, performance, security, testing, and common pitfalls. -globs: **/*.c +globs: *.c --- # FFmpeg Best Practices and Coding Standards diff --git a/rules-mdc/fiber.mdc b/rules-mdc/fiber.mdc index 0124d77..0bf0bd9 100644 --- a/rules-mdc/fiber.mdc +++ b/rules-mdc/fiber.mdc @@ -1,4 +1,4 @@ --- description: This rule provides comprehensive best practices for developing robust, maintainable, and scalable applications using the Fiber web framework in Go. It covers code organization, performance, security, testing, and common pitfalls. -globs: **/*.go +globs: *.go --- diff --git a/rules-mdc/firebase.mdc b/rules-mdc/firebase.mdc index f1c3d2f..8814a5f 100644 --- a/rules-mdc/firebase.mdc +++ b/rules-mdc/firebase.mdc @@ -1,6 +1,6 @@ --- description: This rule provides guidelines for Firebase library usage, covering code organization, performance, security, testing, and common pitfalls. It aims to ensure efficient, secure, and maintainable Firebase projects. -globs: **/*.{js,jsx,ts,tsx,html,css,scss,vue,swift,kt,java,py,go,rb,php,c,cpp,cs} +globs: *.js,*.jsx,*.ts,*.tsx,*.html,*.css,*.scss,*.vue,*.swift,*.kt,*.java,*.py,*.go,*.rb,*.php,*.c,*.cpp,*.cs --- --- diff --git a/rules-mdc/flake8.mdc b/rules-mdc/flake8.mdc index 97121ff..2dafd58 100644 --- a/rules-mdc/flake8.mdc +++ b/rules-mdc/flake8.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guide for using Flake8 effectively in Python projects, covering code style, error prevention, security, testing, and optimization. It outlines best practices, patterns, and common pitfalls to help developers maintain high code quality and adherence to standards. -globs: **/*.py +globs: *.py --- # Flake8 Best Practices: A Comprehensive Guide diff --git a/rules-mdc/flask-restful.mdc b/rules-mdc/flask-restful.mdc index ca86f22..32ad186 100644 --- a/rules-mdc/flask-restful.mdc +++ b/rules-mdc/flask-restful.mdc @@ -1,6 +1,6 @@ --- description: A comprehensive guide to best practices for developing RESTful APIs using Flask and Flask-RESTful, covering code organization, performance, security, and testing. -globs: **/*.py +globs: *.py --- # flask-restful Best Practices: A Comprehensive Guide diff --git a/rules-mdc/flask.mdc b/rules-mdc/flask.mdc index b03e117..d4bf988 100644 --- a/rules-mdc/flask.mdc +++ b/rules-mdc/flask.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for developing Flask applications, covering code structure, security, performance, and testing. -globs: **/*.py +globs: *.py --- - ## Code Organization and Structure: - **Directory Structure Best Practices:** diff --git a/rules-mdc/flutter.mdc b/rules-mdc/flutter.mdc index cbe19b5..c1f8c84 100644 --- a/rules-mdc/flutter.mdc +++ b/rules-mdc/flutter.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guidelines and best practices for Flutter development, covering code organization, performance optimization, security, testing, and tooling. -globs: **/*.dart +globs: *.dart --- - Adhere to the official Flutter style guide. This forms the foundation for maintainable and consistent code. - Utilize the latest stable version of Flutter, keeping up-to-date with new features and security patches. Review Flutter's breaking changes and migration guides during updates. diff --git a/rules-mdc/fontawesome.mdc b/rules-mdc/fontawesome.mdc index fea2631..87c3935 100644 --- a/rules-mdc/fontawesome.mdc +++ b/rules-mdc/fontawesome.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides comprehensive guidelines for using Font Awesome effectively, covering setup, styling, accessibility, performance, and security best practices. It ensures consistent and optimized usage across projects. -globs: **/*.{html,css,js,jsx,ts,tsx} +globs: *.html,*.css,*.js,*.jsx,*.ts,*.tsx --- # Font Awesome Best Practices diff --git a/rules-mdc/gcp-cli.mdc b/rules-mdc/gcp-cli.mdc index 21848fa..72e07ce 100644 --- a/rules-mdc/gcp-cli.mdc +++ b/rules-mdc/gcp-cli.mdc @@ -1,6 +1,6 @@ --- description: Provides guidelines for using gcp-cli, including best practices for scripting, configuration management, security, and performance. Focuses on automation, predictable output, and secure authentication within Google Cloud environments. -globs: **/*.{sh,yaml,tf,py} +globs: *.sh,*.yaml,*.tf,*.py --- - **Scripting Best Practices**: - **Use the `--quiet` flag**: Suppress prompts for non-interactive script execution. diff --git a/rules-mdc/gcp.mdc b/rules-mdc/gcp.mdc index 2f1a646..9f7e82d 100644 --- a/rules-mdc/gcp.mdc +++ b/rules-mdc/gcp.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices for developing and managing infrastructure and applications on Google Cloud Platform (GCP), encompassing code organization, security, performance, and deployment strategies. -globs: **/*.{tf,py,js,go,java,proto,sh,yaml,yml} +globs: *.tf,*.py,*.js,*.go,*.java,*.proto,*.sh,*.yaml,*.yml --- --- ## GCP Library Best Practices diff --git a/rules-mdc/gensim.mdc b/rules-mdc/gensim.mdc index 809d467..7767c56 100644 --- a/rules-mdc/gensim.mdc +++ b/rules-mdc/gensim.mdc @@ -1,6 +1,6 @@ --- description: This rule provides coding standards and best practices for using the gensim library, focusing on NLP, topic modeling, performance, and code organization. It offers actionable guidelines for developers to create effective and maintainable gensim-based applications. -globs: **/*.py +globs: *.py --- # gensim Library Best Practices and Coding Standards diff --git a/rules-mdc/go.mdc b/rules-mdc/go.mdc index 0c1b034..6ce4eb3 100644 --- a/rules-mdc/go.mdc +++ b/rules-mdc/go.mdc @@ -1,6 +1,6 @@ --- description: This rule provides a comprehensive set of best practices for developing Go applications, covering code organization, performance, security, testing, and common pitfalls. -globs: **/*.go +globs: *.go --- - # Go Best Practices diff --git a/rules-mdc/godot.mdc b/rules-mdc/godot.mdc index cbfed6f..88affce 100644 --- a/rules-mdc/godot.mdc +++ b/rules-mdc/godot.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive coding standards and best practices for Godot Engine development, covering code organization, performance, testing, and security to ensure maintainable, efficient, and secure game projects. These rules are primarily for GDScript but also reference relevant C# practices where applicable. -globs: **/*.gd +globs: *.gd --- # Godot Engine Best Practices and Coding Standards diff --git a/rules-mdc/google-maps-js.mdc b/rules-mdc/google-maps-js.mdc index 871d945..d77346f 100644 --- a/rules-mdc/google-maps-js.mdc +++ b/rules-mdc/google-maps-js.mdc @@ -1,6 +1,6 @@ --- description: This rule provides guidelines for Google Maps JavaScript API development, covering code organization, performance, security, testing, and common pitfalls. It promotes best practices to ensure efficient, secure, and maintainable map applications. -globs: **/*.{js,jsx,ts,tsx,html,css} +globs: *.js,*.jsx,*.ts,*.tsx,*.html,*.css --- # Google Maps JavaScript API Best Practices diff --git a/rules-mdc/gradle.mdc b/rules-mdc/gradle.mdc index a755e12..b585e26 100644 --- a/rules-mdc/gradle.mdc +++ b/rules-mdc/gradle.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive rules for Gradle best practices, covering code organization, performance, security, testing, and more. Provides actionable guidance to improve Gradle project maintainability and efficiency. -globs: **/*.gradle* +globs: *.gradle* --- - **Use the Gradle Wrapper**: Always use the Gradle wrapper (`gradlew` and `gradlew.bat`) to ensure consistent Gradle versions across different environments. This avoids compatibility issues and simplifies collaboration. - Command: `gradle wrapper` to generate the wrapper files. diff --git a/rules-mdc/grafana.mdc b/rules-mdc/grafana.mdc index 74c0039..93c735d 100644 --- a/rules-mdc/grafana.mdc +++ b/rules-mdc/grafana.mdc @@ -1,5 +1,5 @@ --- description: Comprehensive guide for Grafana development best practices, covering code organization, performance, security, testing, and common pitfalls to ensure robust and maintainable Grafana solutions. Includes guidance for creating efficient dashboards, data sources, and plugins. -globs: **/*.{ts,tsx,js,jsx,json,yml,yaml,md,mdc} +globs: *.ts,*.tsx,*.js,*.jsx,*.json,*.yml,*.yaml,*.md,*.mdc --- By adhering to these comprehensive best practices, you can build robust, maintainable, and secure Grafana solutions that provide valuable insights into your data and systems. \ No newline at end of file diff --git a/rules-mdc/graphql.mdc b/rules-mdc/graphql.mdc index 73fd118..f5598fe 100644 --- a/rules-mdc/graphql.mdc +++ b/rules-mdc/graphql.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices and coding standards for GraphQL development, covering code organization, performance, security, testing, and common pitfalls. -globs: **/*.graphql +globs: *.graphql --- - **Naming Conventions**: - Use `camelCase` for field names, argument names, and directive names. This is a widely accepted convention that enhances readability and consistency. diff --git a/rules-mdc/guzzle.mdc b/rules-mdc/guzzle.mdc index 6aa739d..5f6fae1 100644 --- a/rules-mdc/guzzle.mdc +++ b/rules-mdc/guzzle.mdc @@ -1,5 +1,5 @@ --- description: This rule provides comprehensive guidelines for using the Guzzle HTTP client in PHP projects, covering code organization, common patterns, performance, security, testing, and tooling. -globs: **/*.php +globs: *.php --- By following these best practices, you can ensure that your Guzzle-based code is efficient, maintainable, secure, and reliable. \ No newline at end of file diff --git a/rules-mdc/hardhat.mdc b/rules-mdc/hardhat.mdc index 659ecb4..1b07885 100644 --- a/rules-mdc/hardhat.mdc +++ b/rules-mdc/hardhat.mdc @@ -1,6 +1,6 @@ --- description: This rule outlines best practices for Hardhat development, covering code organization, security, testing, and performance. It aims to provide a comprehensive guide for developers working with the Hardhat Ethereum development environment. -globs: **/*.{js,ts,sol,json} +globs: *.js,*.ts,*.sol,*.json --- # Hardhat Best Practices and Coding Standards diff --git a/rules-mdc/heroku.mdc b/rules-mdc/heroku.mdc index 70920d2..5585ea4 100644 --- a/rules-mdc/heroku.mdc +++ b/rules-mdc/heroku.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive best practices and coding standards for developing, deploying, and maintaining applications on the Heroku platform. This rule emphasizes the Twelve-Factor App methodology and provides detailed guidance for optimizing application architecture, performance, security, and maintainability on Heroku. -globs: **/* +globs: * --- - Follow the Twelve-Factor App methodology for building software-as-a-service applications. - **Codebase:** Maintain a single codebase tracked in version control (e.g., Git) for each application. Multiple deploys should be created from this single codebase. diff --git a/rules-mdc/htmx.mdc b/rules-mdc/htmx.mdc index b7efb9a..f3a0721 100644 --- a/rules-mdc/htmx.mdc +++ b/rules-mdc/htmx.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for htmx development, covering code organization, security, performance, testing, and common pitfalls. It aims to guide developers in building robust, maintainable, and secure htmx applications. -globs: **/*.html +globs: *.html --- # htmx Best Practices and Coding Standards diff --git a/rules-mdc/httpx.mdc b/rules-mdc/httpx.mdc index 978fe68..1da0d30 100644 --- a/rules-mdc/httpx.mdc +++ b/rules-mdc/httpx.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for using the httpx library, covering code organization, performance, security, testing, and common pitfalls. Adhering to these guidelines will improve code quality, maintainability, and security when working with httpx. -globs: **/*.py +globs: *.py --- # httpx Best Practices diff --git a/rules-mdc/huggingface.mdc b/rules-mdc/huggingface.mdc index 6e1f418..26e0d6d 100644 --- a/rules-mdc/huggingface.mdc +++ b/rules-mdc/huggingface.mdc @@ -1,6 +1,6 @@ --- description: This rule provides guidelines for best practices when working with the Hugging Face Transformers library, covering code organization, performance, testing, security, and common pitfalls. It emphasizes community standards and maintainability. -globs: **/*.py +globs: *.py --- # Hugging Face Transformers Library Best Practices diff --git a/rules-mdc/hypothesis.mdc b/rules-mdc/hypothesis.mdc index b9a7366..6c724a7 100644 --- a/rules-mdc/hypothesis.mdc +++ b/rules-mdc/hypothesis.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guide covering best practices for the Hypothesis Python library, including coding standards, testing, performance, and security. Provides actionable guidance for developers to write maintainable, robust, and efficient property-based tests. -globs: **/*.py +globs: *.py --- # Hypothesis Library Best Practices and Coding Standards diff --git a/rules-mdc/insomnia.mdc b/rules-mdc/insomnia.mdc index 551674e..b23d65f 100644 --- a/rules-mdc/insomnia.mdc +++ b/rules-mdc/insomnia.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides best practices for using the Insomnia API Client, including project organization, environment management, testing, and collaboration to improve API development workflows. -globs: **/*.{json,yaml,yml,graphql,proto} +globs: *.json,*.yaml,*.yml,*.graphql,*.proto --- - **Project Organization and Structure:** - **Workspace Structure:** Organize requests into workspaces based on projects or functional areas. Within workspaces, use folders to group related requests (e.g., authentication, user management, product catalog). diff --git a/rules-mdc/ionic.mdc b/rules-mdc/ionic.mdc index c2c48d0..2ebe053 100644 --- a/rules-mdc/ionic.mdc +++ b/rules-mdc/ionic.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for Ionic Framework development, covering code organization, performance, security, testing, and more. Following these guidelines will result in more maintainable, performant, and secure Ionic applications. -globs: **/*.{ts,html,scss} +globs: *.ts,*.html,*.scss --- --- # Ionic Framework Best Practices diff --git a/rules-mdc/isort.mdc b/rules-mdc/isort.mdc index c3b6180..2d2c54a 100644 --- a/rules-mdc/isort.mdc +++ b/rules-mdc/isort.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidelines for using isort in Python projects, covering code organization, common patterns, performance, security, testing, tooling, and common pitfalls. It aims to standardize import sorting and improve code quality. -globs: **/*.py +globs: *.py --- # isort Best Practices: A Comprehensive Guide diff --git a/rules-mdc/java.mdc b/rules-mdc/java.mdc index b6a3b81..3794a21 100644 --- a/rules-mdc/java.mdc +++ b/rules-mdc/java.mdc @@ -1,6 +1,6 @@ --- description: Enforces best practices for Java development, covering code style, performance, security, and testing. Provides guidelines for writing clean, maintainable, and efficient Java code. -globs: **/*.java +globs: *.java --- - # Java Best Practices diff --git a/rules-mdc/jax.mdc b/rules-mdc/jax.mdc index 91bfd95..d3ca148 100644 --- a/rules-mdc/jax.mdc +++ b/rules-mdc/jax.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices and coding standards for the JAX library, emphasizing functional programming, JIT compilation, automatic differentiation, and immutable data structures. It also covers performance considerations, common pitfalls, and tooling recommendations. -globs: **/*.py +globs: *.py --- - **Functional Programming**: JAX emphasizes a functional programming style. Ensure functions are pure (no side effects, no reliance on global variables) for consistent JIT compilation and optimization. diff --git a/rules-mdc/jenkins.mdc b/rules-mdc/jenkins.mdc index 8153ae2..13fdabd 100644 --- a/rules-mdc/jenkins.mdc +++ b/rules-mdc/jenkins.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive best practices for Jenkins, covering code organization, security, performance, testing, and common pitfalls. Provides guidelines for writing robust, maintainable, and secure Jenkins pipelines and configurations. -globs: **/{Jenkinsfile,*.jenkins,*.groovy} +globs: Jenkinsfile,*.jenkins,*.groovy --- # Jenkins Library Best Practices and Coding Standards diff --git a/rules-mdc/jest.mdc b/rules-mdc/jest.mdc index 8e1b13a..3c35413 100644 --- a/rules-mdc/jest.mdc +++ b/rules-mdc/jest.mdc @@ -1,6 +1,6 @@ --- description: This rule provides guidelines for writing clean, maintainable, and effective tests using Jest. It covers code organization, performance, common pitfalls, and best practices for testing JavaScript and TypeScript projects. -globs: **/*.{js,jsx,ts,tsx,mjs,cjs,mts,cts} +globs: *.js,*.jsx,*.ts,*.tsx,*.mjs,*.cjs,*.mts,*.cts --- - **Organize tests by feature or module:** - Group tests into files or directories that correspond to the features or modules they are testing. This makes it easier to locate and maintain tests. diff --git a/rules-mdc/jetpack-compose.mdc b/rules-mdc/jetpack-compose.mdc index e2eff51..05e9e7e 100644 --- a/rules-mdc/jetpack-compose.mdc +++ b/rules-mdc/jetpack-compose.mdc @@ -1,6 +1,6 @@ --- description: Enforces Jetpack Compose best practices for code organization, performance, and maintainability. This rule provides guidelines for writing efficient and idiomatic Compose code. -globs: **/*.kt +globs: *.kt --- - **Code Organization and Structure** - **Directory Structure:** diff --git a/rules-mdc/jquery.mdc b/rules-mdc/jquery.mdc index 80bda7a..e3b1a26 100644 --- a/rules-mdc/jquery.mdc +++ b/rules-mdc/jquery.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides guidelines for jQuery development, covering code organization, performance, security, and testing. It helps developers write maintainable, efficient, and secure jQuery code. -globs: **/*.js +globs: *.js --- # jQuery Best Practices: A Comprehensive Guide diff --git a/rules-mdc/junit.mdc b/rules-mdc/junit.mdc index 0911c82..b6e1347 100644 --- a/rules-mdc/junit.mdc +++ b/rules-mdc/junit.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guidelines and best practices for writing effective, maintainable, and performant JUnit tests in Java projects. This rule file covers code organization, patterns, performance, security, testing strategies, common pitfalls, and tooling. -globs: **/*Test.java +globs: *Test.java --- # JUnit Best Practices: A Comprehensive Guide diff --git a/rules-mdc/keras.mdc b/rules-mdc/keras.mdc index bada3e2..191913f 100644 --- a/rules-mdc/keras.mdc +++ b/rules-mdc/keras.mdc @@ -1,6 +1,6 @@ --- description: This rule enforces Keras library best practices, focusing on code clarity, modularity, performance optimization, and security considerations. It provides actionable guidance for developers to improve the quality and maintainability of Keras-based machine learning projects. -globs: **/*.py +globs: *.py --- # Keras Development Best Practices diff --git a/rules-mdc/kivy.mdc b/rules-mdc/kivy.mdc index 2eb9c0d..90065c3 100644 --- a/rules-mdc/kivy.mdc +++ b/rules-mdc/kivy.mdc @@ -1,6 +1,6 @@ --- description: This rule file outlines best practices for Kivy UI development, including code organization, performance, security, and testing. Adhering to these guidelines ensures maintainable, efficient, and secure Kivy applications. -globs: **/*.{py,kv} +globs: *.py,*.kv --- # Kivy Development Best Practices diff --git a/rules-mdc/kubernetes.mdc b/rules-mdc/kubernetes.mdc index 90eab77..921fb53 100644 --- a/rules-mdc/kubernetes.mdc +++ b/rules-mdc/kubernetes.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for developing and maintaining Kubernetes applications and infrastructure, covering coding standards, security, performance, testing, and deployment. -globs: **/*.{go,yaml,yml,sh,tf,tfvars,json} +globs: *.go,*.yaml,*.yml,*.sh,*.tf,*.tfvars,*.json --- # Kubernetes Development and Operations Best Practices diff --git a/rules-mdc/langchain-js.mdc b/rules-mdc/langchain-js.mdc index eeffd4e..dbea59a 100644 --- a/rules-mdc/langchain-js.mdc +++ b/rules-mdc/langchain-js.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive best practices and coding standards for developing applications using LangChain.js. Focuses on code organization, performance, security, testing, and common pitfalls to ensure robust and maintainable AI-driven solutions. -globs: **/*.{js,ts,jsx,tsx} +globs: *.js,*.ts,*.jsx,*.tsx --- - **Monitor and Evaluate LLM applications**: Utilize tools like LangSmith for monitoring application performance, including logging traces, analyzing latency, and evaluating LLM outputs against predefined metrics. This helps identify bottlenecks and ensures the application meets quality standards. Enable tracing by setting environment variables: `export LANGCHAIN_TRACING_V2="true"` diff --git a/rules-mdc/langchain.mdc b/rules-mdc/langchain.mdc index 94b3d02..f3293ca 100644 --- a/rules-mdc/langchain.mdc +++ b/rules-mdc/langchain.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices for developing LangChain applications, covering code organization, performance, security, testing, and common pitfalls. It aims to improve code quality, maintainability, and overall project success. -globs: **/*.py +globs: *.py --- # LangChain Development Best Practices diff --git a/rules-mdc/langgraph.mdc b/rules-mdc/langgraph.mdc index eb8280a..160b6e9 100644 --- a/rules-mdc/langgraph.mdc +++ b/rules-mdc/langgraph.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides comprehensive best practices for developing with LangGraph, covering code organization, performance, security, testing, and common pitfalls. It offers actionable guidance for developers to build robust and maintainable LangGraph applications. -globs: **/*.py +globs: *.py --- # LangGraph Best Practices and Coding Standards diff --git a/rules-mdc/laravel.mdc b/rules-mdc/laravel.mdc index 7a99379..233d212 100644 --- a/rules-mdc/laravel.mdc +++ b/rules-mdc/laravel.mdc @@ -1,6 +1,6 @@ --- description: This rule outlines comprehensive best practices for Laravel development, covering coding standards, security, performance, and testing to ensure maintainable, efficient, and secure applications. It provides guidelines for code organization, common patterns, performance considerations, security best practices, testing approaches, common pitfalls, and tooling. -globs: **/*.php +globs: *.php --- - Adhere to PSR coding standards (PSR-1, PSR-2, PSR-12). - Use meaningful and descriptive variable, function, and class names. diff --git a/rules-mdc/lightgbm.mdc b/rules-mdc/lightgbm.mdc index f6086c7..00a9473 100644 --- a/rules-mdc/lightgbm.mdc +++ b/rules-mdc/lightgbm.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides comprehensive best practices for LightGBM, covering code organization, performance, security, testing, and common pitfalls to avoid. Adhering to these guidelines will improve the efficiency, reliability, and maintainability of your LightGBM projects. -globs: **/*.{py,ipynb} +globs: *.py,*.ipynb --- # LightGBM Best Practices diff --git a/rules-mdc/llama-index.mdc b/rules-mdc/llama-index.mdc index 7de66ea..fa0f6e1 100644 --- a/rules-mdc/llama-index.mdc +++ b/rules-mdc/llama-index.mdc @@ -1,6 +1,6 @@ --- description: This rule outlines best practices and coding standards for developing with LlamaIndex, covering code organization, performance, security, testing, and common pitfalls. It aims to ensure maintainable, efficient, and secure LlamaIndex applications. -globs: **/*.py +globs: *.py --- # LlamaIndex Best Practices and Coding Standards diff --git a/rules-mdc/llamaindex-js.mdc b/rules-mdc/llamaindex-js.mdc index 2808657..4c3eed2 100644 --- a/rules-mdc/llamaindex-js.mdc +++ b/rules-mdc/llamaindex-js.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidelines for developing AI applications with LlamaIndex-JS, covering code organization, performance, security, and testing best practices. It aims to ensure robust, efficient, and secure LLM-powered applications. -globs: **/*.{js,ts,jsx,tsx} +globs: *.js,*.ts,*.jsx,*.tsx --- # LlamaIndex-JS Best Practices and Coding Standards diff --git a/rules-mdc/llvm.mdc b/rules-mdc/llvm.mdc index ad64b00..9f63ab6 100644 --- a/rules-mdc/llvm.mdc +++ b/rules-mdc/llvm.mdc @@ -1,6 +1,6 @@ --- description: This rule enforces LLVM's coding standards and promotes best practices for writing efficient, maintainable, and robust code within the LLVM ecosystem. It covers style, language usage, optimization strategies, and more. -globs: **/*.{h,hpp,c,cc,cpp,ll,mlir} +globs: *.h,*.hpp,*.c,*.cc,*.cpp,*.ll,*.mlir --- - Adhere to LLVM's coding standards to ensure code consistency, readability, and maintainability. - Always follow the [LLVM Coding Standards](https://llvm.org/docs/CodingStandards.html) and [LLVM Developer Policy](https://llvm.org/docs/DeveloperPolicy.html). diff --git a/rules-mdc/material-ui.mdc b/rules-mdc/material-ui.mdc index 3b9b4e3..66b0c34 100644 --- a/rules-mdc/material-ui.mdc +++ b/rules-mdc/material-ui.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guide to best practices when developing with Material-UI/MUI, covering code organization, performance, security, testing, and common pitfalls. It focuses on creating maintainable, scalable, and performant React applications using MUI components. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- # Material-UI/MUI Best Practices and Coding Standards diff --git a/rules-mdc/matplotlib.mdc b/rules-mdc/matplotlib.mdc index bb1547e..3481737 100644 --- a/rules-mdc/matplotlib.mdc +++ b/rules-mdc/matplotlib.mdc @@ -1,6 +1,6 @@ --- description: This rule provides guidelines and best practices for developing robust, maintainable, and performant data visualizations using Matplotlib in Python. It covers aspects from code organization to testing and security considerations. -globs: **/*.py +globs: *.py --- # Matplotlib Best Practices diff --git a/rules-mdc/microsoft-teams.mdc b/rules-mdc/microsoft-teams.mdc index 8457cd6..ae644fd 100644 --- a/rules-mdc/microsoft-teams.mdc +++ b/rules-mdc/microsoft-teams.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices for developing with Microsoft Teams, covering code organization, performance, security, testing, and common pitfalls. Adhering to these guidelines will ensure robust, maintainable, and secure Teams applications. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- - # Code Organization and Structure - Effective code organization is critical for maintainability and scalability in Microsoft Teams application development. diff --git a/rules-mdc/mkdocs.mdc b/rules-mdc/mkdocs.mdc index 8236171..9fe5103 100644 --- a/rules-mdc/mkdocs.mdc +++ b/rules-mdc/mkdocs.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guidelines for mkdocs development, covering code organization, best practices, performance, security, testing, common pitfalls, and tooling. This rule aims to ensure maintainable, performant, and secure documentation using mkdocs. -globs: **/*.md +globs: *.md --- # mkdocs Best Practices diff --git a/rules-mdc/mlx.mdc b/rules-mdc/mlx.mdc index ec5d92d..7b9ca00 100644 --- a/rules-mdc/mlx.mdc +++ b/rules-mdc/mlx.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for the MLX library, covering code organization, performance, security, testing, and common pitfalls. It aims to promote consistent, efficient, and maintainable code when working with MLX on Apple platforms. -globs: **/*.swift +globs: *.swift --- # MLX Library Best Practices diff --git a/rules-mdc/mobx.mdc b/rules-mdc/mobx.mdc index 2145653..d33f795 100644 --- a/rules-mdc/mobx.mdc +++ b/rules-mdc/mobx.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidance for using MobX effectively, covering best practices for code organization, performance, testing, and common pitfalls. It aims to ensure efficient and maintainable state management in React and other JavaScript applications using MobX. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- # MobX Best Practices and Coding Standards diff --git a/rules-mdc/mockito.mdc b/rules-mdc/mockito.mdc index defee83..71d490c 100644 --- a/rules-mdc/mockito.mdc +++ b/rules-mdc/mockito.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices and coding standards for using the Mockito library in Java projects. It covers code organization, patterns, performance, security, testing, and common pitfalls to enhance test reliability and maintainability. -globs: **/*.java +globs: *.java --- # Mockito Best Practices and Coding Standards diff --git a/rules-mdc/modal.mdc b/rules-mdc/modal.mdc index 4d51523..4a58ce0 100644 --- a/rules-mdc/modal.mdc +++ b/rules-mdc/modal.mdc @@ -1,6 +1,6 @@ --- description: This rule outlines best practices for developing and maintaining the Modal library, covering code organization, performance, security, and testing. It aims to ensure high-quality, maintainable, and scalable cloud deployment solutions. -globs: **/*.py +globs: *.py --- # Modal Library Best Practices diff --git a/rules-mdc/mongodb.mdc b/rules-mdc/mongodb.mdc index ea586a6..c0af569 100644 --- a/rules-mdc/mongodb.mdc +++ b/rules-mdc/mongodb.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive best practices for developing with MongoDB, covering schema design, code organization, performance optimization, security considerations, and testing strategies. This rule provides actionable guidance to help developers build robust and scalable MongoDB applications. -globs: **/*.{js,ts,mongodb} +globs: *.js,*.ts,*.mongodb --- - **Understand Schema Differences Between Relational and Document-based Databases:** Recognize that MongoDB's document-oriented model differs significantly from relational databases. Design schemas that reflect the relationships within the data itself, rather than relying on joins. - **Embed Your Data Instead of Relying on Joins:** Favor embedding related data within a single document to minimize the need for costly join operations. This approach can significantly improve read performance. diff --git a/rules-mdc/mypy.mdc b/rules-mdc/mypy.mdc index ec5b2e5..d53c196 100644 --- a/rules-mdc/mypy.mdc +++ b/rules-mdc/mypy.mdc @@ -1,6 +1,6 @@ --- description: This rule file outlines best practices for using mypy in Python projects, emphasizing gradual adoption, consistent configuration, and leveraging advanced features for improved code quality and maintainability. It covers code organization, performance, security, testing, common pitfalls, and tooling. -globs: **/*.py +globs: *.py --- # Mypy Best Practices and Coding Standards diff --git a/rules-mdc/neo4j.mdc b/rules-mdc/neo4j.mdc index 1e216a9..d9c091d 100644 --- a/rules-mdc/neo4j.mdc +++ b/rules-mdc/neo4j.mdc @@ -1,6 +1,6 @@ --- description: This rule provides guidelines for best practices and coding standards when developing applications with Neo4j. It covers aspects from code organization and performance to security and testing. -globs: **/*.cypher +globs: *.cypher --- # Neo4j Development Best Practices diff --git a/rules-mdc/nestjs.mdc b/rules-mdc/nestjs.mdc index 78bba87..847fec9 100644 --- a/rules-mdc/nestjs.mdc +++ b/rules-mdc/nestjs.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidance on NestJS best practices, coding standards, and architectural patterns. It aims to help developers build scalable, maintainable, and performant NestJS applications by covering code organization, security, testing, and other essential aspects. -globs: **/*.ts +globs: *.ts --- - **Code Organization and Structure:** - **Directory Structure:** diff --git a/rules-mdc/netlify.mdc b/rules-mdc/netlify.mdc index 403ea7c..91dc783 100644 --- a/rules-mdc/netlify.mdc +++ b/rules-mdc/netlify.mdc @@ -1,6 +1,6 @@ --- description: This rule file outlines best practices for Netlify development, covering code structure, performance, security, testing, and deployment. It aims to provide a comprehensive guide for building robust and scalable applications on Netlify. -globs: **/*.{js,jsx,ts,tsx,html,css,scss,md} +globs: *.js,*.jsx,*.ts,*.tsx,*.html,*.css,*.scss,*.md --- # Netlify Library Best Practices and Coding Standards diff --git a/rules-mdc/next-js.mdc b/rules-mdc/next-js.mdc index 30a73e2..fc85b65 100644 --- a/rules-mdc/next-js.mdc +++ b/rules-mdc/next-js.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidance for Next.js development, covering code organization, performance, security, testing, and common pitfalls. It helps developers build robust, scalable, and maintainable Next.js applications by adhering to community-accepted best practices and coding standards. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- # Next.js Best Practices diff --git a/rules-mdc/nginx.mdc b/rules-mdc/nginx.mdc index e967258..6c786d1 100644 --- a/rules-mdc/nginx.mdc +++ b/rules-mdc/nginx.mdc @@ -1,6 +1,6 @@ --- description: This rule provides a comprehensive guide to nginx configuration best practices, covering code organization, common patterns, performance, security, testing, pitfalls, and tooling. -globs: **/nginx.conf +globs: nginx.conf --- # nginx Configuration Best Practices @@ -68,7 +68,7 @@ resolver_timeout 5s; **Usage in site configuration:** nginx -server { +server listen 443 ssl; server_name example.com; @@ -79,7 +79,7 @@ server { location / { # ... - } + } diff --git a/rules-mdc/nltk.mdc b/rules-mdc/nltk.mdc index 201d5cb..f0be4aa 100644 --- a/rules-mdc/nltk.mdc +++ b/rules-mdc/nltk.mdc @@ -1,6 +1,6 @@ --- description: Provides comprehensive guidance on best practices for coding standards, performance, security, and testing in NLTK projects. This rule helps developers write clean, maintainable, and efficient NLP code using NLTK. -globs: **/*.py +globs: *.py --- - Follow these guidelines for consistency and maintainability of your code. diff --git a/rules-mdc/nose2.mdc b/rules-mdc/nose2.mdc index 9c856eb..3999344 100644 --- a/rules-mdc/nose2.mdc +++ b/rules-mdc/nose2.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive best practices and coding standards for Python projects using the nose2 testing framework. Covers code organization, common patterns, performance, security, testing, and tooling. -globs: **/*test*.py +globs: *test*.py --- # nose2 Best Practices and Coding Standards diff --git a/rules-mdc/notion-api.mdc b/rules-mdc/notion-api.mdc index c8499fe..f89f5e3 100644 --- a/rules-mdc/notion-api.mdc +++ b/rules-mdc/notion-api.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for developing applications using the notion-api library, covering code organization, performance, security, testing, and common pitfalls. -globs: **/*.{js,ts,jsx,tsx} +globs: *.js,*.ts,*.jsx,*.tsx --- # Notion API Library Best Practices diff --git a/rules-mdc/numba.mdc b/rules-mdc/numba.mdc index a21dd89..e373d47 100644 --- a/rules-mdc/numba.mdc +++ b/rules-mdc/numba.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices and coding standards for the Numba library, covering code organization, performance optimization, security, testing, and common pitfalls. It aims to help developers write efficient, maintainable, and secure Numba code. -globs: **/*.py +globs: *.py --- # Numba Best Practices and Coding Standards diff --git a/rules-mdc/numpy.mdc b/rules-mdc/numpy.mdc index e27c70d..ff50a2a 100644 --- a/rules-mdc/numpy.mdc +++ b/rules-mdc/numpy.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices for using NumPy in Python, covering coding standards, performance optimization, security, and testing strategies to enhance code quality and maintainability. -globs: **/*.py +globs: *.py --- # NumPy Library Best Practices and Coding Standards diff --git a/rules-mdc/nuxt.mdc b/rules-mdc/nuxt.mdc index 302f86d..317a903 100644 --- a/rules-mdc/nuxt.mdc +++ b/rules-mdc/nuxt.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices and coding standards for Nuxt.js projects, covering code organization, performance, security, testing, and common pitfalls. It aims to ensure maintainable, scalable, and secure Nuxt.js applications. -globs: **/*.{vue,js,ts,mjs,mts,jsx,tsx,config.js,config.ts} +globs: *.vue,*.js,*.ts,*.mjs,*.mts,*.jsx,*.tsx,*.config.js,*.config.ts --- - **Enable ESLint support:** Use the `@nuxt/eslint` module for project-aware ESLint configuration. This ensures code quality and consistency. - `npx nuxi module add eslint` to add the module. diff --git a/rules-mdc/openai.mdc b/rules-mdc/openai.mdc index be17e93..4818b10 100644 --- a/rules-mdc/openai.mdc +++ b/rules-mdc/openai.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive best practices and coding standards for projects using the openai library, covering code structure, performance, security, and common pitfalls. -globs: **/*.py +globs: *.py --- # openai Library Best Practices and Coding Standards diff --git a/rules-mdc/opencv-python.mdc b/rules-mdc/opencv-python.mdc index 3a56685..6c0cff5 100644 --- a/rules-mdc/opencv-python.mdc +++ b/rules-mdc/opencv-python.mdc @@ -1,6 +1,6 @@ --- description: This rule outlines best practices for developing with the opencv-python library, focusing on code organization, performance, security, testing, and common pitfalls. It provides comprehensive guidelines for efficient and maintainable opencv-python projects. -globs: **/*.py +globs: *.py --- - Always use UV or Pipenv when installing dependencies for consistent environments. - Always specify Python 3.10 or higher, as older versions may lack feature parity and security updates. diff --git a/rules-mdc/pandas.mdc b/rules-mdc/pandas.mdc index 599f747..96c92be 100644 --- a/rules-mdc/pandas.mdc +++ b/rules-mdc/pandas.mdc @@ -1,6 +1,6 @@ --- description: This rule outlines best practices for using the pandas library in Python, covering code style, performance, data handling, and testing. It aims to promote maintainable, efficient, and robust data analysis workflows. -globs: **/*.py +globs: *.py --- # Pandas Best Practices diff --git a/rules-mdc/pdoc.mdc b/rules-mdc/pdoc.mdc index ae7021a..ee29fca 100644 --- a/rules-mdc/pdoc.mdc +++ b/rules-mdc/pdoc.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive best practices for using pdoc to generate and maintain Python project documentation. Covers code structure, performance, security, testing, and tooling to ensure high-quality documentation and maintainable projects. -globs: **/*.py +globs: *.py --- # pdoc Best Practices: A Comprehensive Guide diff --git a/rules-mdc/peewee.mdc b/rules-mdc/peewee.mdc index 1899de9..0f132cf 100644 --- a/rules-mdc/peewee.mdc +++ b/rules-mdc/peewee.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guide for Peewee ORM best practices, covering code organization, performance, security, testing, and common pitfalls. Provides actionable guidance for developers to write maintainable and efficient database-driven applications using Peewee. -globs: **/*.py +globs: *.py --- # Peewee ORM Best Practices and Coding Standards diff --git a/rules-mdc/phoenix.mdc b/rules-mdc/phoenix.mdc index a87314e..c85f093 100644 --- a/rules-mdc/phoenix.mdc +++ b/rules-mdc/phoenix.mdc @@ -1,6 +1,6 @@ --- description: This rule outlines the best practices and coding standards for developing Elixir applications with the Phoenix framework, covering code organization, performance, security, testing, and common pitfalls. -globs: **/*.{ex,exs,eex,leex,sface} +globs: *.ex,*.exs,*.eex,*.leex,*.sface --- - # Phoenix Framework Best Practices diff --git a/rules-mdc/php.mdc b/rules-mdc/php.mdc index ddd6639..32d3fd4 100644 --- a/rules-mdc/php.mdc +++ b/rules-mdc/php.mdc @@ -1,6 +1,6 @@ --- description: This rule provides guidelines for PHP coding best practices, covering code structure, security, performance, and testing to improve code quality and maintainability. -globs: **/*.php +globs: *.php --- # PHP Best Practices and Coding Standards diff --git a/rules-mdc/pillow.mdc b/rules-mdc/pillow.mdc index e803ed0..2a2dfc1 100644 --- a/rules-mdc/pillow.mdc +++ b/rules-mdc/pillow.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices for using the Pillow image processing library in Python, covering code organization, performance, security, testing, and common pitfalls. It aims to help developers write maintainable, efficient, and secure image processing applications. -globs: **/*.py +globs: *.py --- # Pillow Library Best Practices and Coding Standards diff --git a/rules-mdc/playwright.mdc b/rules-mdc/playwright.mdc index f033ff5..7914bb9 100644 --- a/rules-mdc/playwright.mdc +++ b/rules-mdc/playwright.mdc @@ -1,6 +1,6 @@ --- description: This rule enforces best practices and coding standards for Playwright tests, including stable selectors, test isolation, user-centric testing, and performance considerations. -globs: **/*.spec.ts +globs: *.spec.ts --- - **General Principles** - **Test User-Visible Behavior:** Focus tests on how users interact with your application, not on internal implementation details. diff --git a/rules-mdc/plotly.mdc b/rules-mdc/plotly.mdc index 09a448a..8f57f32 100644 --- a/rules-mdc/plotly.mdc +++ b/rules-mdc/plotly.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides best practices and coding standards for using the Plotly library, focusing on code organization, performance, security, testing, and common pitfalls. It aims to guide developers in creating maintainable, efficient, and secure Plotly applications. -globs: **/*.py +globs: *.py --- # Plotly Best Practices and Coding Standards diff --git a/rules-mdc/poetry.mdc b/rules-mdc/poetry.mdc index e8042df..67fcf7c 100644 --- a/rules-mdc/poetry.mdc +++ b/rules-mdc/poetry.mdc @@ -1,6 +1,6 @@ --- description: This rule set provides comprehensive guidance on best practices for using Poetry in Python projects, including dependency management, project structure, and coding standards. It covers various aspects such as code organization, performance considerations, security, testing, and tooling. -globs: **/*.py +globs: *.py --- # Poetry Python Library Best Practices diff --git a/rules-mdc/pony.mdc b/rules-mdc/pony.mdc index 9bdd5bb..38216c8 100644 --- a/rules-mdc/pony.mdc +++ b/rules-mdc/pony.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guidelines for Pony ORM best practices, covering code organization, patterns, performance, security, testing, common pitfalls, and tooling. -globs: **/*.py +globs: *.py --- # Pony ORM Best Practices diff --git a/rules-mdc/postgresql.mdc b/rules-mdc/postgresql.mdc index 53524c9..a2a6ffe 100644 --- a/rules-mdc/postgresql.mdc +++ b/rules-mdc/postgresql.mdc @@ -1,6 +1,6 @@ --- description: Enforces PostgreSQL coding standards, best practices, and performance optimization techniques to ensure maintainable, efficient, and secure database interactions. This rule covers code formatting, data integrity, security, and performance considerations. -globs: **/*.{sql,plpgsql,c,h} +globs: *.sql,*.plpgsql,*.c,*.h --- - **Code Formatting and Comments:** - Maintain consistent code formatting using a tool like `pgformatter` or similar. diff --git a/rules-mdc/postman.mdc b/rules-mdc/postman.mdc index 26b88f2..dc071e5 100644 --- a/rules-mdc/postman.mdc +++ b/rules-mdc/postman.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices for effectively using Postman for API testing, covering code organization, common patterns, performance, security, testing, and tooling to ensure robust and maintainable API tests. -globs: **/*.postman_collection.json +globs: *.postman_collection.json --- # Postman API Testing Best Practices diff --git a/rules-mdc/prisma.mdc b/rules-mdc/prisma.mdc index fe150b9..2e190b6 100644 --- a/rules-mdc/prisma.mdc +++ b/rules-mdc/prisma.mdc @@ -1,6 +1,6 @@ --- description: Enforces Prisma best practices for schema design, data access, and application security. Provides guidelines for writing efficient, secure, and maintainable Prisma applications. -globs: **/*.prisma +globs: *.prisma --- - **General Principles:** - **Never expose the raw Prisma client directly in APIs.** Instead, create abstraction layers (e.g., repositories or services) to handle data access logic. This protects you from accidentally exposing sensitive database details and allows you to easily change your data access implementation in the future. diff --git a/rules-mdc/puppeteer.mdc b/rules-mdc/puppeteer.mdc index e9f4310..26d9eba 100644 --- a/rules-mdc/puppeteer.mdc +++ b/rules-mdc/puppeteer.mdc @@ -1,6 +1,6 @@ --- description: This rule file outlines best practices for Puppeteer, covering code organization, performance, security, testing, and common pitfalls. It aims to guide developers in building robust and maintainable Puppeteer applications. -globs: **/*.js +globs: *.js --- # Puppeteer Best Practices diff --git a/rules-mdc/pydantic.mdc b/rules-mdc/pydantic.mdc index b8d2322..bf8a36f 100644 --- a/rules-mdc/pydantic.mdc +++ b/rules-mdc/pydantic.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive best practices and coding standards for utilizing Pydantic effectively in Python projects, covering code organization, performance, security, and testing. -globs: **/*.py +globs: *.py --- - **Model Definition:** - Use `BaseModel` to define data schemas with type annotations for clarity and automatic validation. diff --git a/rules-mdc/pygame.mdc b/rules-mdc/pygame.mdc index 50134cd..9af11c2 100644 --- a/rules-mdc/pygame.mdc +++ b/rules-mdc/pygame.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidelines for pygame development, covering code organization, performance, security, testing, and common pitfalls. It aims to establish best practices and coding standards for building maintainable, efficient, and secure pygame applications. -globs: **/*.py +globs: *.py --- --- diff --git a/rules-mdc/pylint.mdc b/rules-mdc/pylint.mdc index da35b61..e38537f 100644 --- a/rules-mdc/pylint.mdc +++ b/rules-mdc/pylint.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides comprehensive best practices for using Pylint to ensure high-quality, maintainable, and secure Python code. It covers code organization, common patterns, performance, security, testing, and tooling. -globs: **/*.py +globs: *.py --- # Pylint Best Practices: A Comprehensive Guide diff --git a/rules-mdc/pyqt.mdc b/rules-mdc/pyqt.mdc index 7cf8edc..f0c125e 100644 --- a/rules-mdc/pyqt.mdc +++ b/rules-mdc/pyqt.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides comprehensive guidelines for PyQt development, covering code organization, common patterns, performance, security, testing, and tooling. It aims to help developers create maintainable, efficient, and secure PyQt applications. -globs: **/*.py +globs: *.py --- - **Follow Consistent Importing:** - Avoid wildcard imports like `from PyQt5.QtGui import *`. They clutter the namespace and can lead to naming conflicts. diff --git a/rules-mdc/pyramid.mdc b/rules-mdc/pyramid.mdc index 214703b..b38ed32 100644 --- a/rules-mdc/pyramid.mdc +++ b/rules-mdc/pyramid.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for developing secure, maintainable, and performant applications using the Pyramid web framework for Python. It covers code structure, security, testing, and deployment considerations. -globs: **/*.py +globs: *.py --- - **Project Structure and Code Organization:** - **Directory Structure:** diff --git a/rules-mdc/pyright.mdc b/rules-mdc/pyright.mdc index c1184b6..d6dc87a 100644 --- a/rules-mdc/pyright.mdc +++ b/rules-mdc/pyright.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for using pyright and BasedPyright in Python projects, covering code organization, patterns, performance, security, testing, common pitfalls, and tooling. -globs: **/*.py +globs: *.py --- # pyright and BasedPyright Best Practices: A Comprehensive Guide diff --git a/rules-mdc/pyside.mdc b/rules-mdc/pyside.mdc index e429768..55b36e9 100644 --- a/rules-mdc/pyside.mdc +++ b/rules-mdc/pyside.mdc @@ -1,6 +1,6 @@ --- description: This rule enforces best practices and coding standards for developing applications with the PySide library. It covers code organization, performance, security, testing, and common pitfalls to ensure maintainable and robust applications. -globs: **/*.py +globs: *.py --- # PySide Best Practices and Coding Standards diff --git a/rules-mdc/pytest.mdc b/rules-mdc/pytest.mdc index 95bad46..d5d7877 100644 --- a/rules-mdc/pytest.mdc +++ b/rules-mdc/pytest.mdc @@ -1,6 +1,6 @@ --- description: This rule file outlines comprehensive best practices for using pytest in Python projects, covering code organization, testing strategies, performance optimization, security measures, and common pitfalls to avoid. -globs: **/*.py +globs: *.py --- # Pytest Best Practices: A Comprehensive Guide diff --git a/rules-mdc/python.mdc b/rules-mdc/python.mdc index 7479727..dce325c 100644 --- a/rules-mdc/python.mdc +++ b/rules-mdc/python.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guidelines for Python development, covering code organization, performance, security, testing, and more. These rules promote maintainable, efficient, and secure Python codebases. -globs: **/*.py +globs: *.py --- # Python Best Practices and Coding Standards diff --git a/rules-mdc/pytorch.mdc b/rules-mdc/pytorch.mdc index 48c742f..32a8466 100644 --- a/rules-mdc/pytorch.mdc +++ b/rules-mdc/pytorch.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidelines for PyTorch development, covering code organization, performance optimization, security, testing, and common pitfalls. It aims to ensure readable, maintainable, and efficient PyTorch code. -globs: **/*.py +globs: *.py --- # PyTorch Best Practices and Coding Standards diff --git a/rules-mdc/qwik.mdc b/rules-mdc/qwik.mdc index 06c8894..1576024 100644 --- a/rules-mdc/qwik.mdc +++ b/rules-mdc/qwik.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for developing Qwik applications, covering code organization, performance, security, testing, and common pitfalls. It aims to guide developers in writing maintainable, efficient, and secure Qwik code. -globs: **/*.ts?(x) +globs: *.ts?(x) --- # Qwik Library Best Practices diff --git a/rules-mdc/railway.mdc b/rules-mdc/railway.mdc index 8d829c9..b03c469 100644 --- a/rules-mdc/railway.mdc +++ b/rules-mdc/railway.mdc @@ -1,6 +1,6 @@ --- description: This rule outlines the best practices and coding standards for developing and deploying applications on the Railway platform, covering aspects from code organization to security and performance. -globs: **/*.{js,jsx,ts,tsx,py,go,java,rs,c,cpp,cs,html,css,yml,yaml,json,sh} +globs: *.js,*.jsx,*.ts,*.tsx,*.py,*.go,*.java,*.rs,*.c,*.cpp,*.cs,*.html,*.css,*.yml,*.yaml,*.json,*.sh --- # Railway Best Practices and Coding Standards diff --git a/rules-mdc/react-mobx.mdc b/rules-mdc/react-mobx.mdc index 053e956..3bb5d50 100644 --- a/rules-mdc/react-mobx.mdc +++ b/rules-mdc/react-mobx.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for developing React applications with Mobx, covering code organization, performance, testing, and security considerations. It aims to guide developers in building robust and maintainable applications using React-Mobx. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- # React-Mobx Best Practices diff --git a/rules-mdc/react-native.mdc b/rules-mdc/react-native.mdc index 4818a0c..52576a8 100644 --- a/rules-mdc/react-native.mdc +++ b/rules-mdc/react-native.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices and coding standards for React Native development, covering code organization, performance, security, testing, and common pitfalls. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- - Use TypeScript for type safety and improved code maintainability. - Prefer functional components with hooks over class components for simplicity and reusability. diff --git a/rules-mdc/react-query.mdc b/rules-mdc/react-query.mdc index 48a00dc..760d1d2 100644 --- a/rules-mdc/react-query.mdc +++ b/rules-mdc/react-query.mdc @@ -1,6 +1,6 @@ --- description: This rule enforces best practices for using react-query in React applications, covering code organization, performance, security, and testing. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- # react-query Best Practices diff --git a/rules-mdc/react-redux.mdc b/rules-mdc/react-redux.mdc index cf83432..4fa04be 100644 --- a/rules-mdc/react-redux.mdc +++ b/rules-mdc/react-redux.mdc @@ -1,6 +1,6 @@ --- description: Enforces best practices for structuring and maintaining React-Redux applications, focusing on code organization, performance, and maintainability. This rule provides guidelines for developers to write efficient, scalable, and testable React-Redux code. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- # React-Redux Best Practices diff --git a/rules-mdc/react.mdc b/rules-mdc/react.mdc index 8d23c59..a8802bc 100644 --- a/rules-mdc/react.mdc +++ b/rules-mdc/react.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guide to React best practices, covering code organization, performance, security, testing, and common pitfalls. Adhering to these guidelines helps developers build maintainable, scalable, and high-performing React applications. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- # React Best Practices: A Comprehensive Guide diff --git a/rules-mdc/redis.mdc b/rules-mdc/redis.mdc index dd5e5ce..807cc3c 100644 --- a/rules-mdc/redis.mdc +++ b/rules-mdc/redis.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices for working with Redis, covering code organization, performance, security, testing, and common pitfalls to ensure efficient and reliable usage. It applies to any language file interacting with Redis. -globs: **/*.{py,js,go,java,c,cpp,rb,php,ts,rs,kt,scala} +globs: *.py,*.js,*.go,*.java,*.c,*.cpp,*.rb,*.php,*.ts,*.rs,*.kt,*.scala --- - **General Best Practices** - Follow official Redis documentation and community best practices. diff --git a/rules-mdc/redux.mdc b/rules-mdc/redux.mdc index 9911c8f..2a5a03c 100644 --- a/rules-mdc/redux.mdc +++ b/rules-mdc/redux.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidance on Redux best practices, covering code structure, performance optimization, testing strategies, and common pitfalls to ensure robust and maintainable Redux applications. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- - **Introduction:** This document outlines best practices for developing applications with Redux, covering various aspects from code organization to performance optimization. diff --git a/rules-mdc/remix.mdc b/rules-mdc/remix.mdc index 04b70fb..ebec318 100644 --- a/rules-mdc/remix.mdc +++ b/rules-mdc/remix.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides comprehensive best practices for Remix development, covering code organization, performance, security, testing, and more. It aims to guide developers in building maintainable, scalable, and secure Remix applications. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- ## Remix Best Practices and Coding Standards diff --git a/rules-mdc/requests.mdc b/rules-mdc/requests.mdc index 417d53b..75a910d 100644 --- a/rules-mdc/requests.mdc +++ b/rules-mdc/requests.mdc @@ -1,6 +1,6 @@ --- description: This rule file outlines best practices for using the Python requests library, covering performance, security, code organization, and testing. -globs: **/*.py +globs: *.py --- --- diff --git a/rules-mdc/rich.mdc b/rules-mdc/rich.mdc index 6caf926..e2ba5be 100644 --- a/rules-mdc/rich.mdc +++ b/rules-mdc/rich.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive best practices and coding standards for the Rich library, focusing on code quality, performance, and maintainability within Python terminal applications. -globs: **/*.py +globs: *.py --- - **General Guidelines** - Adhere to PEP 8 coding style guidelines for Python code, emphasizing readability and consistency. diff --git a/rules-mdc/riverpod.mdc b/rules-mdc/riverpod.mdc index 93650cf..2635043 100644 --- a/rules-mdc/riverpod.mdc +++ b/rules-mdc/riverpod.mdc @@ -1,6 +1,6 @@ --- description: Enforces Riverpod library best practices for Flutter applications. This rule provides guidance on code organization, performance, testing, and common pitfalls when using Riverpod. -globs: **/*.dart +globs: *.dart --- - **Core Principles:** - **Provider Initialization:** Avoid initializing providers within widgets. Providers should initialize themselves, managing their own state and dependencies independently. This ensures proper lifecycle management and prevents unexpected behavior during widget rebuilds. Specifically, do not initialize providers inside `build()` methods or widget constructors. diff --git a/rules-mdc/rocket.mdc b/rules-mdc/rocket.mdc index cbcb964..8177c4c 100644 --- a/rules-mdc/rocket.mdc +++ b/rules-mdc/rocket.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guidelines for developing robust and maintainable web applications with the Rocket web framework, covering code organization, security, performance, testing, and more. -globs: **/*.rs +globs: *.rs --- - **Code Organization and Structure:** - **Directory Structure:** Organize your project with a clear and maintainable directory structure. A common pattern is: diff --git a/rules-mdc/ros.mdc b/rules-mdc/ros.mdc index 1789d9a..1136355 100644 --- a/rules-mdc/ros.mdc +++ b/rules-mdc/ros.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices and coding standards for ROS (Robot Operating System) development, covering code organization, common patterns, performance, security, testing, and tooling. It aims to enhance code quality, maintainability, and interoperability in ROS projects. -globs: **/*.{cpp,h,py,launch,msg,srv,action,yaml} +globs: *.cpp,*.h,*.py,*.launch,*.msg,*.srv,*.action,*.yaml --- # ROS Best Practices and Coding Standards diff --git a/rules-mdc/ruby.mdc b/rules-mdc/ruby.mdc index 3253081..cd9dc03 100644 --- a/rules-mdc/ruby.mdc +++ b/rules-mdc/ruby.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive best practices for Ruby development, covering code organization, common patterns, performance, security, testing, and tooling. This guide offers actionable advice to improve Ruby code quality, maintainability, and efficiency. -globs: **/*.rb +globs: *.rb --- # Ruby Best Practices @@ -456,7 +456,7 @@ gem 'pg' AllCops: TargetRubyVersion: 3.2 Exclude: - - 'vendor/**/*' + - 'vendor/*' Style/Documentation: Enabled: false diff --git a/rules-mdc/rust.mdc b/rules-mdc/rust.mdc index 9346a19..8449254 100644 --- a/rules-mdc/rust.mdc +++ b/rules-mdc/rust.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for Rust development, covering code organization, common patterns, performance, security, testing, pitfalls, and tooling. It aims to guide developers in writing idiomatic, efficient, secure, and maintainable Rust code. -globs: **/*.rs +globs: *.rs --- # Rust Best Practices diff --git a/rules-mdc/sanic.mdc b/rules-mdc/sanic.mdc index 9a951eb..8f2e2af 100644 --- a/rules-mdc/sanic.mdc +++ b/rules-mdc/sanic.mdc @@ -1,6 +1,6 @@ --- description: This rule file outlines best practices and coding standards for developing Sanic applications, covering code organization, performance, security, testing, and common pitfalls. -globs: **/*.py +globs: *.py --- - This document outlines the best practices for developing applications using the Sanic framework. Following these guidelines will lead to more maintainable, performant, and secure applications. diff --git a/rules-mdc/scikit-image.mdc b/rules-mdc/scikit-image.mdc index 8a569d6..058c89a 100644 --- a/rules-mdc/scikit-image.mdc +++ b/rules-mdc/scikit-image.mdc @@ -1,6 +1,6 @@ --- description: This rule provides guidelines for best practices and coding standards when using the scikit-image library for image processing in Python. It covers code organization, performance, security, testing, and common pitfalls. -globs: **/*.py +globs: *.py --- - Always use UV when installing dependencies for faster and more deterministic dependency resolution. - Always use Python 3.12 or later to leverage the latest language features and performance improvements. diff --git a/rules-mdc/scikit-learn.mdc b/rules-mdc/scikit-learn.mdc index 8541b46..36ea219 100644 --- a/rules-mdc/scikit-learn.mdc +++ b/rules-mdc/scikit-learn.mdc @@ -1,6 +1,6 @@ --- description: Enforces best practices and coding standards for scikit-learn projects, promoting maintainability, performance, and security. This rule provides guidelines on code organization, common patterns, performance optimization, testing, and common pitfalls. -globs: **/*.py +globs: *.py --- # Scikit-learn Best Practices and Coding Standards diff --git a/rules-mdc/scipy.mdc b/rules-mdc/scipy.mdc index 4ffd76b..b12a359 100644 --- a/rules-mdc/scipy.mdc +++ b/rules-mdc/scipy.mdc @@ -1,6 +1,6 @@ --- description: This rule outlines coding standards, best practices, and common pitfalls for developing scientific computing applications using the SciPy library. It emphasizes clarity, maintainability, performance, and security for efficient SciPy development. -globs: **/*.py +globs: *.py --- - Adhere to PEP 8 style guidelines for Python code. This includes consistent indentation (4 spaces), line length (79 characters for code, 72 for docstrings), and naming conventions (e.g., `lower_case_with_underscores` for functions and variables, `CamelCase` for classes). - Write comprehensive docstrings for all functions, classes, and modules. Docstrings should follow the NumPy/SciPy docstring standard, detailing parameters, return values, and examples. diff --git a/rules-mdc/scrapy.mdc b/rules-mdc/scrapy.mdc index 8751da4..502a5a2 100644 --- a/rules-mdc/scrapy.mdc +++ b/rules-mdc/scrapy.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for Scrapy development, including code organization, performance, security, testing, and common pitfalls to avoid. It aims to guide developers in building robust, efficient, and maintainable web scraping applications with Scrapy. -globs: **/*.py +globs: *.py --- # Scrapy Best Practices diff --git a/rules-mdc/seaborn.mdc b/rules-mdc/seaborn.mdc index e084a07..ff4d0dc 100644 --- a/rules-mdc/seaborn.mdc +++ b/rules-mdc/seaborn.mdc @@ -1,5 +1,5 @@ --- description: This rule provides best practices for coding standards in Seaborn, emphasizing clear, reproducible code, optimal performance, and secure data handling within AI and machine learning data science development. -globs: **/*.py +globs: *.py --- By following these best practices and coding standards, you can write clear, reproducible, and maintainable Seaborn code that is optimized for performance and security. \ No newline at end of file diff --git a/rules-mdc/selenium.mdc b/rules-mdc/selenium.mdc index a15926d..3c8a342 100644 --- a/rules-mdc/selenium.mdc +++ b/rules-mdc/selenium.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices and coding standards for using the Selenium library in Python. It covers code organization, performance, security, testing, common pitfalls, and tooling to ensure maintainable and efficient Selenium projects. -globs: **/*.py +globs: *.py --- # Selenium Best Practices and Coding Standards diff --git a/rules-mdc/sentry.mdc b/rules-mdc/sentry.mdc index e883926..d4ea620 100644 --- a/rules-mdc/sentry.mdc +++ b/rules-mdc/sentry.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for integrating and utilizing Sentry in your projects. It covers code organization, performance, security, testing, and common pitfalls when using Sentry for error tracking and performance monitoring. -globs: **/*.{js,jsx,ts,tsx,py,java,kt,swift,go,rb,php,cs,cpp,c,m,mm,clj,cljs,scala,groovy,lua,erl,hrl,fs,fsi,vb,vba,sh,bash,zsh,ps1,psm1,sql,html,htm,css,scss,less,graphql,gql} +globs: *.js,*.jsx,*.ts,*.tsx,*.py,*.java,*.kt,*.swift,*.go,*.rb,*.php,*.cs,*.cpp,*.c,*.m,*.mm,*.clj,*.cljs,*.scala,*.groovy,*.lua,*.erl,*.hrl,*.fs,*.fsi,*.vb,*.vba,*.sh,*.bash,*.zsh,*.ps1,*.psm1,*.sql,*.html,*.htm,*.css,*.scss,*.less,*.graphql,*.gql --- - Ensure that your codebase is connected to Sentry, with source code management integrations (e.g., GitHub, GitLab, Bitbucket) and source maps properly configured. This enables Sentry to link errors to specific lines of code, dramatically improving debugging efficiency. - Implement custom alerts tailored to your needs, avoiding alert fatigue by prioritizing alerts based on severity or user impact. Set up different notification channels for varying alert priorities (e.g., Slack for low-priority, PagerDuty for high-priority). diff --git a/rules-mdc/servemux.mdc b/rules-mdc/servemux.mdc index 48537a7..7bed612 100644 --- a/rules-mdc/servemux.mdc +++ b/rules-mdc/servemux.mdc @@ -1,6 +1,6 @@ --- description: This rule enforces best practices for using the `net/http` ServeMux in Go, promoting clean, maintainable, and efficient code. It covers routing, handler design, and error handling specifics to help developers leverage ServeMux effectively. -globs: **/*.go +globs: *.go --- --- # servemux Best Practices and Coding Standards diff --git a/rules-mdc/shadcn.mdc b/rules-mdc/shadcn.mdc index 9651193..adc4e0a 100644 --- a/rules-mdc/shadcn.mdc +++ b/rules-mdc/shadcn.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for developing with Shadcn UI, covering code organization, performance, security, and testing. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- # Shadcn UI Best Practices diff --git a/rules-mdc/smolagents.mdc b/rules-mdc/smolagents.mdc index beee42f..8943f56 100644 --- a/rules-mdc/smolagents.mdc +++ b/rules-mdc/smolagents.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for developing with the smolagents library, covering code organization, performance, security, testing, and common pitfalls. It aims to guide developers in building robust, maintainable, and efficient AI agent applications. -globs: **/*.py +globs: *.py --- # smolagents Best Practices and Coding Standards diff --git a/rules-mdc/socket-io.mdc b/rules-mdc/socket-io.mdc index 30cb448..2ec76f3 100644 --- a/rules-mdc/socket-io.mdc +++ b/rules-mdc/socket-io.mdc @@ -1,6 +1,6 @@ --- description: This rule provides guidelines and best practices for developing robust, scalable, and secure real-time applications using Socket.IO. It covers code organization, performance optimization, security considerations, testing strategies, and common pitfalls to avoid when working with Socket.IO. -globs: **/*.{js,ts,jsx,tsx} +globs: *.js,*.ts,*.jsx,*.tsx --- # Socket.IO Best Practices diff --git a/rules-mdc/solidity.mdc b/rules-mdc/solidity.mdc index 4c6c930..5c62fb6 100644 --- a/rules-mdc/solidity.mdc +++ b/rules-mdc/solidity.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices and coding standards for Solidity smart contract development, covering code organization, security, performance, and testing. -globs: **/*.sol +globs: *.sol --- # Solidity Smart Contract Best Practices and Coding Standards diff --git a/rules-mdc/solidjs.mdc b/rules-mdc/solidjs.mdc index 7d1e8e8..d6ffb76 100644 --- a/rules-mdc/solidjs.mdc +++ b/rules-mdc/solidjs.mdc @@ -1,6 +1,6 @@ --- description: This comprehensive guide outlines best practices for SolidJS development, covering code organization, performance, security, testing, and common pitfalls. It provides actionable guidelines for building maintainable, efficient, and secure SolidJS applications. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- # SolidJS Best Practices: A Comprehensive Guide diff --git a/rules-mdc/spacy.mdc b/rules-mdc/spacy.mdc index 6b5c853..546959d 100644 --- a/rules-mdc/spacy.mdc +++ b/rules-mdc/spacy.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides comprehensive best practices and coding standards for developing projects using spaCy, covering code organization, performance, security, testing, and more. It aims to guide developers in building maintainable, efficient, and secure NLP applications with spaCy. -globs: **/*.py +globs: *.py --- # spaCy Best Practices and Coding Standards diff --git a/rules-mdc/sphinx.mdc b/rules-mdc/sphinx.mdc index 432cc3d..ea27c18 100644 --- a/rules-mdc/sphinx.mdc +++ b/rules-mdc/sphinx.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides comprehensive guidelines for writing high-quality Sphinx documentation, covering code style, structure, performance, and best practices. It aims to ensure consistency, readability, and maintainability of Sphinx-based projects. -globs: **/*.rst +globs: *.rst --- - **Use reStructuredText (reST) or MyST markdown:** These are the primary markup languages for Sphinx. reST is the default and provides powerful semantic markup capabilities. MyST is a markdown flavor compatible with Sphinx. Choose one and stick to it for consistency. diff --git a/rules-mdc/spring.mdc b/rules-mdc/spring.mdc index 3271437..aa171d7 100644 --- a/rules-mdc/spring.mdc +++ b/rules-mdc/spring.mdc @@ -1,6 +1,6 @@ --- description: This rule set provides comprehensive best practices and coding standards for developing robust and maintainable Java backend applications using the Spring Boot framework. It focuses on code structure, performance, security, and testing. -globs: **/*.java +globs: *.java --- - **Code Organization and Structure** - **Directory Structure Best Practices** diff --git a/rules-mdc/springboot.mdc b/rules-mdc/springboot.mdc index 23c5c0a..01b7f63 100644 --- a/rules-mdc/springboot.mdc +++ b/rules-mdc/springboot.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices and coding standards for developing robust, maintainable, and performant Spring Boot applications, covering code structure, performance, security, testing, and common pitfalls. -globs: **/*.java +globs: *.java --- # Spring Boot Best Practices and Coding Standards diff --git a/rules-mdc/sqlalchemy.mdc b/rules-mdc/sqlalchemy.mdc index 97aab17..d0e5a32 100644 --- a/rules-mdc/sqlalchemy.mdc +++ b/rules-mdc/sqlalchemy.mdc @@ -1,6 +1,6 @@ --- description: Enforces best practices for SQLAlchemy, covering code organization, performance, security, testing, and common pitfalls to ensure maintainable, efficient, and secure database interactions. -globs: **/*.py +globs: *.py --- # SQLAlchemy Best Practices and Coding Standards diff --git a/rules-mdc/sqlite.mdc b/rules-mdc/sqlite.mdc index 3ab17bd..9953c65 100644 --- a/rules-mdc/sqlite.mdc +++ b/rules-mdc/sqlite.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidance for SQLite development, covering best practices for schema design, performance optimization, security, testing, and more. It aims to ensure efficient, secure, and maintainable SQLite database applications. -globs: **/*.{db,sqlite,sqlite3,sql} +globs: *.db,*.sqlite,*.sqlite3,*.sql --- # SQLite Best Practices and Coding Standards diff --git a/rules-mdc/statsmodels.mdc b/rules-mdc/statsmodels.mdc index 826eeef..a9d96b1 100644 --- a/rules-mdc/statsmodels.mdc +++ b/rules-mdc/statsmodels.mdc @@ -1,6 +1,6 @@ --- description: A comprehensive guide to best practices for using the statsmodels library in Python, covering code organization, performance, testing, and common pitfalls. These guidelines promote maintainable, reliable, and efficient statsmodels code. -globs: **/*.py +globs: *.py --- # Statsmodels Library Best Practices diff --git a/rules-mdc/streamlit.mdc b/rules-mdc/streamlit.mdc index 03bb3d4..7add946 100644 --- a/rules-mdc/streamlit.mdc +++ b/rules-mdc/streamlit.mdc @@ -1,6 +1,6 @@ --- description: This rule provides guidelines and best practices for developing maintainable, performant, and secure Streamlit applications. It covers code organization, performance optimization, security considerations, testing strategies, and common pitfalls to avoid. -globs: **/*.py +globs: *.py --- - **Code Organization and Structure**: - **Directory Structure**: Structure your Streamlit application using a modular directory structure to improve maintainability and collaboration. A suggested layout includes folders for pages, services, models, components, and utilities. diff --git a/rules-mdc/stripe.mdc b/rules-mdc/stripe.mdc index d032ce5..adc7af4 100644 --- a/rules-mdc/stripe.mdc +++ b/rules-mdc/stripe.mdc @@ -1,6 +1,6 @@ --- description: This rule file outlines best practices for integrating Stripe's payment processing services into web and mobile applications, focusing on security, performance, and maintainability. It provides guidelines on coding standards, error handling, and testing to ensure a robust and reliable Stripe integration. -globs: **/*.{js,jsx,ts,tsx,py,rb,php,java,go} +globs: *.js,*.jsx,*.ts,*.tsx,*.py,*.rb,*.php,*.java,*.go --- # Stripe Integration Best Practices diff --git a/rules-mdc/supabase.mdc b/rules-mdc/supabase.mdc index b81b603..1f96959 100644 --- a/rules-mdc/supabase.mdc +++ b/rules-mdc/supabase.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive best practices for developing with Supabase, covering code organization, performance, security, testing, and common pitfalls. This rule provides actionable guidance for developers to build robust and scalable applications using Supabase. -globs: **/*.{js,jsx,ts,tsx,sql} +globs: *.js,*.jsx,*.ts,*.tsx,*.sql --- # Supabase Best Practices: A Comprehensive Guide diff --git a/rules-mdc/svelte.mdc b/rules-mdc/svelte.mdc index 1ac517d..e22ba75 100644 --- a/rules-mdc/svelte.mdc +++ b/rules-mdc/svelte.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive Svelte best practices covering code structure, performance, security, testing, and common pitfalls. This rule provides guidance on writing maintainable, efficient, and secure Svelte applications. -globs: **/*.svelte +globs: *.svelte --- - **Manipulate the DOM with HTML:** Utilize Svelte's HTML-centric approach to manipulate the DOM. - **Solve challenges with HTML/CSS first:** Prioritize solving problems with HTML and CSS before resorting to JavaScript. diff --git a/rules-mdc/sveltekit.mdc b/rules-mdc/sveltekit.mdc index a1418d3..b0d05ee 100644 --- a/rules-mdc/sveltekit.mdc +++ b/rules-mdc/sveltekit.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices and coding standards for SvelteKit development, covering code structure, performance, security, testing, and common pitfalls. It aims to improve code quality, maintainability, and overall project health. -globs: **/*.svelte +globs: *.svelte --- # SvelteKit Best Practices diff --git a/rules-mdc/tailwind.mdc b/rules-mdc/tailwind.mdc index 8757893..637a9b0 100644 --- a/rules-mdc/tailwind.mdc +++ b/rules-mdc/tailwind.mdc @@ -1,11 +1,11 @@ --- description: Comprehensive guide for Tailwind CSS best practices, covering code organization, performance optimization, security considerations, and common pitfalls. This rule provides actionable guidance for developers to build scalable and maintainable Tailwind CSS projects. -globs: **/*.{html,js,jsx,ts,tsx,vue} +globs: *.html,*.js,*.jsx,*.ts,*.tsx,*.vue --- - Leverage Tailwind's PurgeCSS to remove unused styles in production. Configure `purge` in `tailwind.config.js` to specify files to scan for Tailwind classes. Example: javascript module.exports = { - purge: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'], + purge: ['./src/*.js,*.jsx,*.ts,*.tsx', './public/index.html'], darkMode: false, // or 'media' or 'class' theme: { extend: {}, diff --git a/rules-mdc/tauri.mdc b/rules-mdc/tauri.mdc index c75423b..29c2804 100644 --- a/rules-mdc/tauri.mdc +++ b/rules-mdc/tauri.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidelines for developing robust, secure, and performant Tauri applications. It covers code organization, security best practices, performance optimization, testing strategies, and common pitfalls to avoid. -globs: **/*.(rs|js|ts|html|css|json|toml|md) +globs: *.(rs|js|ts|html|css|json|toml|md) --- # Tauri Best Practices and Coding Standards diff --git a/rules-mdc/tensorflow.mdc b/rules-mdc/tensorflow.mdc index 0e797f4..a2d0fd4 100644 --- a/rules-mdc/tensorflow.mdc +++ b/rules-mdc/tensorflow.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guide to TensorFlow best practices, covering code organization, performance, testing, and security for robust and maintainable machine learning projects. -globs: **/*.{py,tf,keras} +globs: *.py,*.tf,*.keras --- - **Code Organization and Structure:** - **Directory Structure:** diff --git a/rules-mdc/terraform.mdc b/rules-mdc/terraform.mdc index 0cdfa14..f6ff058 100644 --- a/rules-mdc/terraform.mdc +++ b/rules-mdc/terraform.mdc @@ -1,6 +1,6 @@ --- description: This rule provides guidelines for Terraform best practices, coding standards, and security considerations to ensure maintainable, efficient, and secure infrastructure-as-code. -globs: **/*.tf +globs: *.tf --- - **Use Remote State**: Store Terraform state files remotely to enable collaboration and prevent conflicts. Consider using Terraform Cloud, HashiCorp Consul, AWS S3 with DynamoDB locking, or Azure Storage Account with Blob Storage Locking. - Properly configure access controls for your remote state backend to prevent unauthorized access. diff --git a/rules-mdc/three-js.mdc b/rules-mdc/three-js.mdc index cc4ac38..15c4b8e 100644 --- a/rules-mdc/three-js.mdc +++ b/rules-mdc/three-js.mdc @@ -1,6 +1,6 @@ --- description: This rule provides guidelines and best practices for developing efficient, maintainable, and robust 3D web applications using Three.js. It covers aspects like code organization, performance optimization, security, testing, and common pitfalls to ensure a high-quality development experience. -globs: **/*.{js,ts,jsx,tsx,mjs,html} +globs: *.js,*.ts,*.jsx,*.tsx,*.mjs,*.html --- # Three.js Best Practices and Coding Standards diff --git a/rules-mdc/tinygrad.mdc b/rules-mdc/tinygrad.mdc index 7edc4f8..a00bd45 100644 --- a/rules-mdc/tinygrad.mdc +++ b/rules-mdc/tinygrad.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides comprehensive best practices for developing with tinygrad, covering code organization, performance, testing, and security. It aims to improve code quality, maintainability, and prevent common pitfalls when working with tinygrad. -globs: **/*.py +globs: *.py --- - **Introduction** This document outlines best practices for developing and maintaining code within the tinygrad library and projects that use tinygrad. Adhering to these guidelines will ensure code readability, maintainability, and optimal performance. It draws from established software engineering principles, AI/ML coding standards, and the specific nuances of the tinygrad library. diff --git a/rules-mdc/tkinter.mdc b/rules-mdc/tkinter.mdc index d107307..3220371 100644 --- a/rules-mdc/tkinter.mdc +++ b/rules-mdc/tkinter.mdc @@ -1,6 +1,6 @@ --- description: This rule file outlines the best practices for developing GUI applications with tkinter in Python, including code organization, performance, security, testing, and tooling. -globs: **/*.py +globs: *.py --- # tkinter Best Practices: Optimizing Performance and Code Structure diff --git a/rules-mdc/tornado.mdc b/rules-mdc/tornado.mdc index 4645348..b290102 100644 --- a/rules-mdc/tornado.mdc +++ b/rules-mdc/tornado.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive best practices and coding standards for the Tornado framework. This rule provides guidelines on code organization, performance, security, testing, and common pitfalls when developing Tornado applications. -globs: **/*.py +globs: *.py --- ## 1. Code Organization and Structure diff --git a/rules-mdc/tortoise-orm.mdc b/rules-mdc/tortoise-orm.mdc index c206050..7058565 100644 --- a/rules-mdc/tortoise-orm.mdc +++ b/rules-mdc/tortoise-orm.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for using Tortoise ORM in Python projects, covering aspects like code organization, performance, security, and testing. -globs: **/*.py +globs: *.py --- - Use Tortoise ORM for asynchronous database interactions in Python. - Always use UV when installing dependencies for faster performance, especially when combined with Tortoise ORM's asynchronous capabilities. diff --git a/rules-mdc/tqdm.mdc b/rules-mdc/tqdm.mdc index cd0b1bb..9655d4f 100644 --- a/rules-mdc/tqdm.mdc +++ b/rules-mdc/tqdm.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides best practices and coding standards for using the `tqdm` library in Python. It focuses on performance, customization, and avoiding common pitfalls. -globs: **/*.py +globs: *.py --- # tqdm Best Practices and Coding Standards diff --git a/rules-mdc/transformers.mdc b/rules-mdc/transformers.mdc index ca1abb1..067316e 100644 --- a/rules-mdc/transformers.mdc +++ b/rules-mdc/transformers.mdc @@ -1,6 +1,6 @@ --- description: This rule set enforces best practices for developing with the transformers library, covering code organization, performance, security, and testing to promote maintainable and efficient NLP applications. -globs: **/*.py +globs: *.py --- - **Environment Management:** - Use Conda or UV to create isolated environments for consistent dependencies across projects. diff --git a/rules-mdc/trio.mdc b/rules-mdc/trio.mdc index 20a9f23..49127d9 100644 --- a/rules-mdc/trio.mdc +++ b/rules-mdc/trio.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for developing with the Trio asynchronous I/O library in Python, covering code organization, performance, testing, and common pitfalls. -globs: **/*.py +globs: *.py --- - Use `flake8-async` to check for issues in Trio code. `@file:flake8_async_rules.mdc` - Utilize Trio's nursery feature for managing concurrent tasks to prevent orphaned tasks and improve error handling. Use `async with trio.open_nursery() as nursery: nursery.start_soon(my_task)`. See Trio documentation for advanced usage. diff --git a/rules-mdc/trpc.mdc b/rules-mdc/trpc.mdc index 50aaa65..40c6789 100644 --- a/rules-mdc/trpc.mdc +++ b/rules-mdc/trpc.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidance on tRPC best practices, covering code organization, performance, security, testing, and common pitfalls to ensure robust and maintainable tRPC applications. -globs: **/*.{ts,tsx} +globs: *.ts,*.tsx --- # tRPC Best Practices: A Comprehensive Guide diff --git a/rules-mdc/turbopack.mdc b/rules-mdc/turbopack.mdc index f449bdf..7972766 100644 --- a/rules-mdc/turbopack.mdc +++ b/rules-mdc/turbopack.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for developing with Turbopack, covering code organization, performance, security, testing, and tooling to ensure efficient and maintainable applications. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- # Turbopack Best Practices diff --git a/rules-mdc/typer.mdc b/rules-mdc/typer.mdc index f95cf9f..80aaa92 100644 --- a/rules-mdc/typer.mdc +++ b/rules-mdc/typer.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices and coding standards for developing command-line interfaces (CLIs) using the Typer library in Python. It includes guidelines for code organization, performance, security, and testing, aiming to enhance usability and maintainability. -globs: **/*.py +globs: *.py --- - Always use UV when installing depdendencies - Always use python 3.12 diff --git a/rules-mdc/typescript.mdc b/rules-mdc/typescript.mdc index 706b641..97a8fc5 100644 --- a/rules-mdc/typescript.mdc +++ b/rules-mdc/typescript.mdc @@ -1,6 +1,6 @@ --- description: Enforces best practices for TypeScript development, including coding standards, performance considerations, and common pitfalls. This rule provides actionable guidance for developers to write clean, maintainable, and scalable TypeScript code. -globs: **/*.ts?(x) +globs: *.ts?(x) --- # TypeScript Best Practices and Coding Standards diff --git a/rules-mdc/unittest.mdc b/rules-mdc/unittest.mdc index 08c847b..f3ad168 100644 --- a/rules-mdc/unittest.mdc +++ b/rules-mdc/unittest.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for writing effective, maintainable, and performant unit tests using Python's unittest library. It covers code organization, testing strategies, performance, security, and common pitfalls. -globs: **/*_test.py, **/test_*.py +globs: *_test.py, **/test_*.py --- # unittest Best Practices: A Comprehensive Guide diff --git a/rules-mdc/unity.mdc b/rules-mdc/unity.mdc index d1219e6..549cc6e 100644 --- a/rules-mdc/unity.mdc +++ b/rules-mdc/unity.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices for Unity C# development, covering code style, organization, performance, and security to ensure maintainable and efficient projects. -globs: **/*.cs +globs: *.cs --- # Unity C# Best Practices and Coding Standards diff --git a/rules-mdc/unreal-engine.mdc b/rules-mdc/unreal-engine.mdc index 44fb6cf..3cc8fcb 100644 --- a/rules-mdc/unreal-engine.mdc +++ b/rules-mdc/unreal-engine.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive best practices and coding standards for Unreal Engine projects. Covers code organization, performance, security, testing, and common pitfalls to ensure maintainable, efficient, and robust game development. -globs: **/*.{h,cpp,uasset,umap,ini} +globs: *.h,*.cpp,*.uasset,*.umap,*.ini --- # Unreal Engine Best Practices and Coding Standards diff --git a/rules-mdc/vercel.mdc b/rules-mdc/vercel.mdc index 8fc342f..75040e3 100644 --- a/rules-mdc/vercel.mdc +++ b/rules-mdc/vercel.mdc @@ -1,6 +1,6 @@ --- description: Enforces Vercel's recommended coding style, optimization strategies, and security best practices. This guide helps developers build performant, secure, and maintainable applications on the Vercel platform. -globs: **/*.{js,jsx,ts,tsx,md,mdx,json,yml,yaml,html,css,scss,sass} +globs: *.js,*.jsx,*.ts,*.tsx,*.md,*.mdx,*.json,*.yml,*.yaml,*.html,*.css,*.scss,*.sass --- - Adhere to Vercel's Style Guide: Utilize linting and styling tools configured according to the Vercel Style Guide for consistent code formatting and style. Use `@file vercel_style_guide.mdc` to include style guide details. - Enforce Consistent Coding Style: Integrate ESLint, Prettier, and TypeScript to automatically enforce coding style and prevent stylistic inconsistencies. Refer to [Vercel's documentation](https://vercel.com/docs) for setup instructions. diff --git a/rules-mdc/vim.mdc b/rules-mdc/vim.md similarity index 99% rename from rules-mdc/vim.mdc rename to rules-mdc/vim.md index 225cf39..93058e1 100644 --- a/rules-mdc/vim.mdc +++ b/rules-mdc/vim.md @@ -1,6 +1,7 @@ --- description: This rule file outlines best practices for vim configuration, coding standards, and development workflows to ensure consistency, efficiency, and maintainability across vim-based projects. It includes recommendations for file organization, coding patterns, performance, security, testing, tooling, and common pitfalls. globs: **/.vimrc, **/.vim/**, **/ftplugin/** +alwaysApply: false --- # vim Best Practices and Coding Standards @@ -224,7 +225,7 @@ This document outlines the best practices and coding standards for vim configura - **Syntax Checker:** Syntastic, ALE. - **Code Completion:** YouCompleteMe, coc.nvim. - **Fuzzy Finder:** CtrlP, fzf.vim. -- **Color Scheme Designer:** [https://github.com/lifepillar/vim-solarized](https://github.com/lifepillar/vim-solarized). +- **Color Scheme Designer:** [https://github.com/lifepillar/vim-solarized](mdc:https:/github.com/lifepillar/vim-solarized). ### 7.2 Build Configuration Best Practices diff --git a/rules-mdc/vite.mdc b/rules-mdc/vite.mdc index 7a9d29d..9b82b4f 100644 --- a/rules-mdc/vite.mdc +++ b/rules-mdc/vite.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices, coding standards, and guidelines for developing applications using Vite, covering aspects from code organization and performance to security and testing. -globs: **/*.{js,jsx,ts,tsx,vue,svelte} +globs: *.js,*.jsx,*.ts,*.tsx,*.vue,*.svelte --- - **Introduction:** - This document outlines best practices for developing applications using Vite, a fast and opinionated build tool that aims to provide a better development experience. diff --git a/rules-mdc/vitest.mdc b/rules-mdc/vitest.mdc index c88181d..a6990c7 100644 --- a/rules-mdc/vitest.mdc +++ b/rules-mdc/vitest.mdc @@ -1,6 +1,6 @@ --- description: This rule file provides comprehensive best practices for using Vitest, covering code organization, testing strategies, performance, and security within Vitest projects. These guidelines ensure clean, maintainable, and reliable test suites. -globs: **/*.{js,jsx,ts,tsx,vue,svelte,spec,test}.* +globs: *.js,*.jsx,*.ts,*.tsx,*.vue,*.svelte,*.spec,*.test.* --- # Vitest Best Practices and Coding Standards diff --git a/rules-mdc/vllm.mdc b/rules-mdc/vllm.mdc index d3a786b..550b834 100644 --- a/rules-mdc/vllm.mdc +++ b/rules-mdc/vllm.mdc @@ -1,6 +1,6 @@ --- description: This rule outlines the best practices and coding standards for developing with the vllm library, ensuring code quality, performance, and maintainability. It covers code organization, performance considerations, security, testing, and common pitfalls. -globs: **/*.py +globs: *.py --- - ## General - Adhere to the Google Python Style Guide: vllm projects should strictly follow the Google Python Style Guide for consistency and readability. diff --git a/rules-mdc/vue.mdc b/rules-mdc/vue.mdc index 6c07421..ceb131a 100644 --- a/rules-mdc/vue.mdc +++ b/rules-mdc/vue.mdc @@ -1,6 +1,6 @@ --- description: Comprehensive guidelines for Vue.js development, covering code structure, performance, security, testing, and tooling best practices. This rule provides actionable guidance to enhance code quality, maintainability, and developer productivity in Vue.js projects. -globs: **/*.vue, **/*.js, **/*.ts +globs: *.vue, *.js, *.ts --- # Vue.js Best Practices and Coding Standards diff --git a/rules-mdc/vue3.mdc b/rules-mdc/vue3.mdc index d599b34..94c0a19 100644 --- a/rules-mdc/vue3.mdc +++ b/rules-mdc/vue3.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices and coding standards for Vue 3 projects, covering code organization, performance, security, testing, tooling, and common pitfalls to ensure maintainable and efficient applications. It aims to guide developers in writing high-quality Vue 3 code. -globs: **/*.vue +globs: *.vue --- - **Code Organization and Structure**: - **Directory Structure**: Adopt a feature-based directory structure. Group related files (components, stores, utilities) within feature-specific directories rather than separating by file type. This enhances maintainability and discoverability. diff --git a/rules-mdc/webpack.mdc b/rules-mdc/webpack.mdc index f209e40..5f0fd0e 100644 --- a/rules-mdc/webpack.mdc +++ b/rules-mdc/webpack.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive best practices for Webpack configuration, optimization, and usage within projects. It covers code organization, performance, security, testing, and common pitfalls to ensure robust and efficient builds. -globs: **/webpack.config.js +globs: webpack.config.js --- # Webpack Best Practices: A Comprehensive Guide @@ -48,9 +48,9 @@ Organize modules based on functionality or feature. Use clear and descriptive na javascript // src/modules/api.js -export function fetchData(url) { +export function fetchData(url) // ... -} + // src/modules/utils.js export function formatDate(date) { diff --git a/rules-mdc/xgboost.mdc b/rules-mdc/xgboost.mdc index dae40c8..7953948 100644 --- a/rules-mdc/xgboost.mdc +++ b/rules-mdc/xgboost.mdc @@ -1,6 +1,6 @@ --- description: This rule provides best practices for developing with XGBoost, covering code organization, performance, security, testing, and common pitfalls. -globs: **/*.{py,ipynb} +globs: *.py,*.ipynb --- # XGBoost Best Practices diff --git a/rules-mdc/zod.mdc b/rules-mdc/zod.mdc index d21fc42..1975b55 100644 --- a/rules-mdc/zod.mdc +++ b/rules-mdc/zod.mdc @@ -1,6 +1,6 @@ --- description: This rule provides comprehensive guidelines for using the Zod library effectively, covering code organization, performance, security, and testing to ensure robust and maintainable type validation. -globs: **/*.ts?(x) +globs: *.ts?(x) --- - **Organize Zod schemas logically for readability and maintainability.** Group related schemas together and structure your Zod code for improved clarity, especially in larger projects. - **Compose and reuse related schemas to avoid repetition.** Use Zod's composition features (e.g., `z.intersection`, `z.union`, `z.extend`) to create reusable schema components and reduce redundancy. diff --git a/rules-mdc/zsh.mdc b/rules-mdc/zsh.mdc index 9f08282..2dc05b5 100644 --- a/rules-mdc/zsh.mdc +++ b/rules-mdc/zsh.mdc @@ -1,6 +1,6 @@ --- description: This rule enforces best practices and coding standards for Zsh scripting to enhance readability, maintainability, security, and performance. It covers code structure, common patterns, performance, security, testing, common pitfalls, and tooling. -globs: **/*.zsh +globs: *.zsh --- # Zsh Best Practices and Coding Standards diff --git a/rules-mdc/zustand.mdc b/rules-mdc/zustand.mdc index 880bd31..8b16f1f 100644 --- a/rules-mdc/zustand.mdc +++ b/rules-mdc/zustand.mdc @@ -1,6 +1,6 @@ --- description: This rule provides guidelines for using Zustand, a simple and unopinionated state management library, in React applications. It covers best practices for code organization, performance optimization, testing, and common pitfalls to avoid. -globs: **/*.{js,jsx,ts,tsx} +globs: *.js,*.jsx,*.ts,*.tsx --- # Zustand Best Practices diff --git a/src/mdc-instructions.txt b/src/mdc-instructions.txt index 0a8d64a..867be93 100644 --- a/src/mdc-instructions.txt +++ b/src/mdc-instructions.txt @@ -12,7 +12,7 @@ Example rule format: --- description: Library best practices and coding standards -globs: **/*.ext +globs: *.ext1,*.ext2 --- - Best practice 1 - Best practice 2