diff --git a/.env.example b/.env.example index 59b0fa5..9a9f1ce 100644 --- a/.env.example +++ b/.env.example @@ -7,7 +7,7 @@ EXA_API_KEY=your_exa_api_key_here # Choose one of the following based on your LLM provider: # For Gemini (default in config.yaml) -GOOGLE_API_KEY=your_google_api_key_here +GEMINI_API_KEY=your_google_api_key_here # For OpenAI models (uncomment if using) # OPENAI_API_KEY=your_openai_api_key_here diff --git a/cursor-rules-cli/rules.json b/cursor-rules-cli/rules.json index 2267743..1a3801f 100644 --- a/cursor-rules-cli/rules.json +++ b/cursor-rules-cli/rules.json @@ -56,6 +56,10 @@ "name": "qwik", "tags": ["frontend", "framework", "javascript"] }, + { + "name": "astro", + "tags": ["frontend", "framework", "javascript", "ssr"] + }, { "name": "express", "tags": ["backend", "framework", "javascript", "nodejs"] 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 68647f9..a258e57 100644 --- a/rules-mdc/astro.mdc +++ b/rules-mdc/astro.mdc @@ -1,168 +1,176 @@ --- -description: Comprehensive best practices and coding standards for Astro projects, including code organization, performance considerations, security, and testing. -globs: **/*.astro +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 --- -- # Code Organization and Structure - - ## Directory Structure Best Practices - - `src/`: This is the heart of your Astro project. - - `components/`: Reusable UI elements. Organize components into subdirectories based on functionality or feature. - - `layouts/`: Components that define the overall page structure. Use a `BaseLayout.astro` to provide common elements like `
` and `