From d82171a1a838565a375e8c6d1ec93ddc178ebf15 Mon Sep 17 00:00:00 2001 From: Achanandhi M <110651321+Achanandhi-M@users.noreply.github.com> Date: Tue, 17 Jun 2025 16:14:16 +0530 Subject: [PATCH 1/4] Add New Engineering prompts (#1) * add: new engg-prompts Signed-off-by: Achanandhi-M * add: few engg-prompts Signed-off-by: Achanandhi-M * add: few engg-prompts Signed-off-by: Achanandhi-M * add: few engg-prompts Signed-off-by: Achanandhi-M * add: few engg-prompts Signed-off-by: Achanandhi-M * add: few engg-prompts Signed-off-by: Achanandhi-M --------- Signed-off-by: Achanandhi-M Signed-off-by: Hritika Sharan --- LICENSE | 201 +++++++++++++++++++ README.md | 498 +++++++++++++++++++++++++++++++++++++++++++++++- contributing.md | 56 ++++++ 3 files changed, 754 insertions(+), 1 deletion(-) create mode 100644 LICENSE create mode 100644 contributing.md diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..261eeb9 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/README.md b/README.md index 4fc9d34..477bc01 100644 --- a/README.md +++ b/README.md @@ -1 +1,497 @@ -#adding prompts for engineering +# Engineering Prompts + +Welcome to the **Engineering Prompts** repository! This repository contains a collection of **AI prompt chains** organized by different domains, primarily for assisting developers in various tasks such as code refactoring, CI/CD setup, database management, cloud, Kubernetes deployment, web development, API Development, security, and more. + +Each prompt chain is designed to build context for ChatGPT before executing a task. They can be used in **ChatGPT Queue** for bulk prompting, job, or task-focused automation. + +## Domains Covered + +This repository contains prompt chains for the following domains: + +1. **Code Refactoring & Development** +2. **CI/CD & DevOps** +3. **Database Management** +4. **Cloud & Kubernetes** +5. **Full-Stack Development** +6. **UX/UI & Design** +7. **Security & Authentication** +8. **Event-Driven Architecture & Integration** +9. **Content Creation & Marketing** +10. **Infrastructure & System Administration** +11. **System Monitoring & Debugging** +12. **Web Development** +13. **API Development** + +--- + +## Use Cases and Prompts + +### **1. Code Refactoring & Development** + +* **Refactor Code for Better Readability** + + ```text + "Please review the provided code and identify areas where readability can be improved. Focus on simplifying complex functions, improving variable names, and removing redundant code. Return the refactored code and explain the changes made to improve readability." + ``` + +* **Translate Code from One Language to Another** + + ```text + "Translate the provided code from {source_language} to {target_language}. Ensure that the functionality remains equivalent. Highlight major differences in syntax or constructs between the two languages and explain the changes." + ``` + +* **Create Documentation from Code** + + ```text + "Extract the necessary information from the provided code to create detailed documentation. This should include explanations for functions, methods, classes, and the purpose of the code. Return the documentation in markdown format." + ``` + +* **Provide Code Explanations** + + ```text + "Please analyze the provided code and explain its functionality step-by-step. Include explanations for each major part of the code and why it’s necessary. Keep the explanation clear and concise." + ``` + +* **Generate Git Commit Messages** + + ```text + "Based on the code changes, generate concise and meaningful Git commit messages. Ensure the messages describe what was changed and why, and follow conventional commit standards." + ``` + +* **Debug Code** + + ```text + "Please review the provided code and the accompanying error message. Identify the cause of the error, suggest possible fixes, and return the corrected code with explanations of the changes made." + ``` + +* **Write Regular Expressions** + + ```text + "Create a regular expression for {use_case}. For example, to validate email addresses, generate a regex that matches valid email formats. Return the regular expression and explain how it works." + ``` + +* **Generate Boilerplate Code** + + ```text + "Generate boilerplate code for a {project_type} using {programming_language}. The code should include basic setup, functions, and structure for a starting point. Return the full code with instructions for customization." + ``` + +* **Automate Code Formatting** + + ```text + "Set up an automatic code formatting system using {tool}. Configure it to run on each commit or via pre-commit hooks. Return the necessary configuration and explain how it integrates into the workflow." + ``` + +* **Explain Data Structures and Algorithms** + + ```text + "Explain the following data structure/algorithm: {data_structure/algorithm}. Include its time complexity, use cases, and any common implementations. Provide code examples where applicable." + ``` + +* **Generate Mock Data** + + ```text + "Generate mock data for the following schema: {data_schema}. Include a variety of realistic values for testing purposes. Return the data in JSON, CSV, or another format as requested." + ``` + +* **Create Code for a New Feature** + + ```text + "Please create code to implement the following feature: {feature_description}. The feature should be fully functional and integrate smoothly with the existing codebase. Return the implementation along with an explanation." + ``` + +* **Suggest Performance Optimizations** + + ```text + "Analyze the provided code for performance bottlenecks. Suggest optimizations such as reducing time complexity, memory usage, or optimizing algorithms. Return the updated code with explanations of the optimizations." + ``` + +* **Generate Build Scripts** + + ```text + "Create a build script for automating the build process of a {project_type} using {build_tool}. The script should include steps for compiling, packaging, and versioning. Return the build script along with setup instructions." + ``` + +* **Offer Security Best Practices** + + ```text + "Provide a list of security best practices for {application_type}. Focus on areas like authentication, authorization, data protection, and secure coding practices. Return actionable advice with examples where necessary." + ``` + +* **Assist in Code Reviews** + + ```text + "Review the provided code and provide feedback. Focus on aspects like readability, performance, security, and maintainability. Suggest improvements and explain the rationale behind each recommendation." + ``` + +* **Test for Compatibility After Upgrading Node.js Version** + + ```text + "After upgrading Node.js from version 14 to 18, use Keploy to run automated tests to ensure that the application is working as expected. Set up Keploy to perform integration tests and verify that the backend, APIs, and frontend components are compatible with the new Node.js version. The tests should focus on key areas such as API responses, performance, and compatibility with external dependencies that may have been affected by the Node.js upgrade. Ensure that Keploy compares the results with the previous behavior recorded under Node.js 14 to detect any regressions or issues introduced by the upgrade. Return the Keploy test configuration, test cases, and results." + ``` + +* **Integrate Third-Party Services** + + ```text + "Integrate {third_party_service} into the existing project. Provide step-by-step instructions for setup, authentication, and API interaction. Return the integration code with explanations of how it works." + ``` + +* **Write a Dockerfile for the Application** + + ```text + "Create a Dockerfile to containerize the provided application. Ensure that the Dockerfile sets up the environment correctly, installs dependencies, and exposes the necessary ports. Return the Dockerfile with explanations." + ``` + +* **Provide UX/UI Design Advice** + + ```text + "Provide UX/UI design recommendations for the provided {website/app}. Focus on improving usability, accessibility, and aesthetics. Return a list of specific design improvements with examples where necessary." + ``` + +* **Suggest Testing Strategies** + + ```text + "Suggest a comprehensive testing strategy for {project_type}. The strategy should include unit tests, integration tests, and end-to-end tests. Provide recommendations for testing frameworks and tools, along with examples." + ``` + +* **Test for Regressions After Refactoring Code with Keploy** + + ```text + "After refactoring the code, use Keploy to run automated tests to check if any regressions have been introduced. Set up Keploy to verify that the refactored code behaves as expected, ensuring that all existing functionalities remain intact. The tests should include integration tests to verify that API endpoints, data handling, and user interactions still function properly. Ensure that Keploy is set to compare the current behavior with previously recorded test cases to detect any discrepancies or regressions. Return the Keploy test configuration, test cases, and results showing the behavior of the refactored code." + ``` + +--- + +### **2. CI/CD & DevOps** + +* **Set up CI/CD Pipelines** + + ```text + "Help set up a CI/CD pipeline for the project using {CI_tool}. The pipeline should include stages for building, testing, and deploying the application. Provide configuration files and explanations of each stage." + ``` + +* **Automate Code Formatting** + + ```text + "Set up an automated code formatting system using {tool}. Configure it to run on each commit or via pre-commit hooks. Return the necessary configuration and explain how it integrates into the workflow." + ``` + +* **Set up Cloud Cost Optimization Strategies** + + ```text + "Provide strategies for optimizing cloud costs in {cloud_provider}. Focus on areas like reserved instances, auto-scaling, and rightsizing. Return recommendations and examples of how to implement them." + ``` + +* **Create Docker Compose Configurations** + + ```text + "Create a Docker Compose configuration file to set up {services}. The configuration should include service dependencies, environment variables, and port mappings. Return the Docker Compose YAML with an explanation." + ``` + +* **Generate Cron Jobs for Task Scheduling** + + ```text + "Write cron jobs to schedule tasks on a Linux system. The tasks should run at {interval} and execute {command}. Return the cron job configurations with explanations of each field." + ``` + +* **Implement Automated Security Testing in CI/CD** + + ```text + "Integrate automated security testing tools like {security_tool} into the CI/CD pipeline. Configure the pipeline to run security checks on each commit or pull request. Return the updated pipeline configuration." + ``` + +* **Set up Serverless Architecture with Google Cloud Functions** + + ```text + "Create a serverless architecture using Google Cloud Functions for {task}. The functions should trigger based on specific events and return the necessary code with setup instructions." + ``` + +* **Write Infrastructure as Code (IaC) for AWS with CloudFormation** + + ```text + "Write infrastructure-as-code (IaC) for AWS using CloudFormation. Automate the provisioning of resources such as EC2, RDS, and S3 for {application}. Return the CloudFormation templates with explanations." + ``` + +* **Create a Custom Shell Script for System Administration** + + ```text + "Create a custom shell script that automates {system_task} such as backups, log rotations, or user management. The script should be efficient and handle errors gracefully. Return the shell script with usage instructions." + ``` + +* **Create an Event-Driven Architecture with Kafka** + + ```text + "Set up an event-driven architecture with Kafka. Define the Kafka topics, producers, and consumers to handle real-time data processing. Return the code with configuration details." + ``` + +* **Implement Data Preprocessing for Machine Learning** + + ```text + "Implement data preprocessing steps for machine learning. This includes handling missing data, scaling features, and encoding categorical variables. Return the preprocessing code and explain each step." + ``` + +* **Implement Serverless Functions on AWS Lambda** + + ```text + "Set up serverless functions using AWS Lambda to perform {task}. Include setup instructions for the trigger and return the Lambda function code." + ``` + +* **Set up Google Analytics for Portfolio Tracking** + + ```text + "Set up Google Analytics tracking for my portfolio website. Provide the steps for adding tracking code and configuring goals. Return the setup instructions." + ``` + +* **Optimize a Docker-Based Development Environment** + + ```text + "Optimize the provided Docker development environment. Focus on reducing build time, improving caching, and streamlining container configurations. Return the optimized Dockerfile and Docker Compose file." + ``` + +--- + +### **3. Database Management** + +* **Generate SQL Queries** + + ```text + "Given the database schema and the following requirements (e.g., 'Find all users who joined after 2020'), generate an appropriate SQL query. Return the SQL query and explain its logic." + ``` + +* **Explain Database Design** + + ```text + "Please review the database schema provided and explain its design choices. Discuss normalization, relationships between tables, and indexing strategies. Suggest improvements for scalability and performance." + ``` + +* **Design a Normalized Relational Database Schema** + + ```text + "Design a relational database schema for {application}. Ensure that it is normalized up to 3NF, with proper primary/foreign keys and indexes. Return the schema in SQL format." + ``` + +* **Set Up a PostgreSQL Database with Docker** + + ```text + "Set up a PostgreSQL database in a Docker container. Include steps for configuring the database, creating the schema, and connecting to the container. Return the Dockerfile and Docker Compose configuration." + ``` + +* **Implement Database Sharding** + + ```text + "Implement database sharding for {database_name}. Define the sharding strategy and partition the data across multiple shards. Return the setup and configuration details." + ``` + +* **Create and Optimize a NoSQL Database (MongoDB)** + + ```text + "Set up and optimize a MongoDB database for {application}. Include recommendations for indexing, query optimization, and data modeling. Return the schema and optimization steps." + ``` + +* **Optimize Database Queries for Performance** + + ```text + "Analyze the provided database queries and suggest performance optimizations. This may include indexing, query refactoring, and reducing the complexity of joins. Return the optimized query with explanations." + ``` + +* **Implement Multi-Threading and Concurrency Concepts** + + ```text + "Explain the concepts of multi-threading and concurrency in {programming_language}. Focus on thread management, race conditions, and synchronization techniques. Provide code examples where applicable." + ``` + +--- + +### **4. Cloud & Kubernetes** + +* **Set Up Kubernetes Cluster on AWS EKS** + + ```text + "Please guide the setup of a Kubernetes cluster using Amazon EKS. Include steps for configuring the cluster, setting up node groups, and connecting kubectl. Return the steps and configuration files." + ``` + +* **Implement Persistent Storage in Kubernetes Using StatefulSets** + + ```text + "Set up persistent storage in Kubernetes using StatefulSets. Configure PersistentVolumeClaims (PVC) and explain how it ensures data persistence. Return the YAML configuration files." + ``` + +* **Set Up Cloud Storage with Amazon S3** + + ```text + "Please provide the steps for setting up cloud storage using Amazon S3. Include how to create a bucket, set permissions, and manage files programmatically via AWS SDKs. Return the necessary code examples for integration." + ``` + +--- + +### **5. Full-Stack Development** + +* **Develop a Full-Stack Web Application Using Django and React** + + ```text + "Create a full-stack web application with Django as the backend and React for the frontend. Implement user authentication, RESTful API communication, and a simple CRUD interface. Return the project structure and code snippets." + ``` + +* **Integrate a Payment Gateway (Stripe) in a Full-Stack App** + + ```text + "Integrate Stripe for handling payments in a full-stack application with Django and React. Set up the backend to handle payments and the frontend to interact with Stripe's API. Return the code for integration." + ``` + +* **Create a RESTful API with Express.js** + + ```text + "Help me set up a RESTful API using Express.js. Define the necessary routes and controllers to support CRUD operations for a {resource}. Return the implementation of the API with explanations for each endpoint." + ``` + +* **Implement Real-Time Updates with WebSockets** + + ```text + "Set up real-time updates in the application using WebSockets. Provide the necessary code for both the server (using socket.io or similar) and the frontend to enable live updates." + ``` + +* **Test Backend and Frontend for Regression Using Keploy** + + ```text + "Set up Keploy in your full-stack application to test both the backend and frontend after an update. Configure Keploy for automatic integration testing, focusing on testing API endpoints, data handling, and the interaction between the frontend and backend. Ensure that Keploy is set to capture all changes in the API response, including edge cases, and validate that the frontend works correctly with the updated backend. Return the setup configuration and steps to trigger Keploy for testing." + ``` + +--- + +### **6. UX/UI & Design** + +* **Provide UX/UI Design Advice** + + ```text + "Provide UX/UI design recommendations for the provided {website/app}. Focus on improving usability, accessibility, and aesthetics. Return a list of specific design improvements with examples where necessary." + ``` + +--- + +### **7. Security & Authentication** + +* **Offer Security Best Practices** + + ```text + "Provide a list of security best practices for {application_type}. Focus on areas like authentication, authorization, data protection, and secure coding practices. Return actionable advice with examples where necessary." + ``` + +* **Implement JWT-Based Authentication** + + ```text + "Implement JSON Web Token (JWT) authentication in the provided application. The system should handle token generation, validation, and secure access to protected routes. Return the code with explanations." + ``` + +--- + +### **8. Event-Driven Architecture & Integration** + +* **Set Up an Event-Driven Architecture with Kafka** + + ```text + "Set up an event-driven architecture with Kafka. Define the Kafka topics, producers, and consumers to handle real-time data processing. Return the code with configuration details." + ``` + +* **Help Integrate Third-Party Services** + + ```text + "Integrate {third_party_service} into the existing project. Provide step-by-step instructions for setup, authentication, and API interaction. Return the integration code with explanations of how it works." + ``` + +--- + +### **9. Content Creation & Marketing** + +* **Create a Personal Portfolio Website** + + ```text + "Help me build a personal portfolio website. The site should include sections for my bio, projects, skills, and contact information. Make sure it’s responsive and easy to navigate. Return the basic HTML/CSS/JS code for the website." + ``` + +* **Write SEO-Optimized Blog Content** + + ```text + "Generate a blog post on {topic} optimized for SEO. Use keyword research to include high-traffic keywords naturally, structure the post with headings and subheadings, and ensure it is engaging and informative. Return the content with SEO suggestions." + ``` + +* **Generate LinkedIn Summary and Job Descriptions** + + ```text + "Generate a compelling LinkedIn summary and job description based on the following details: {job_title}, {skills}, {experience}. Ensure the summary is concise, professional, and highlights key achievements." + ``` + +--- + +### **10. Infrastructure & System Administration** + +* **Create an Infrastructure as Code (IaC) for AWS with CloudFormation** + + ```text + "Write infrastructure-as-code (IaC) for AWS using CloudFormation. Automate the provisioning of resources such as EC2, RDS, and S3 for {application}. Return the CloudFormation templates with explanations." + ``` + +* **Set Up Serverless Architecture with Google Cloud Functions** + + ```text + "Create a serverless architecture using Google Cloud Functions for {task}. The functions should trigger based on specific events and return the necessary code with setup instructions." + ``` + +--- + +### **11. System Monitoring & Debugging** + +* **Debug Performance Issues in Production Systems** + + ```text + "Analyze the performance of the production system and identify bottlenecks. Suggest and implement optimizations to improve speed, reduce memory usage, and increase scalability. Return the optimized code and explanations." + ``` + +--- + +### **12. Web Development** + +* **Write Tests for Front-End Components** + + ```text + "Write unit and integration tests for the provided front-end components using {testing_framework}. Ensure the tests cover all major use cases and edge cases. Return the test code with explanations." + ``` + +--- + +### **13. API Development** + +* **Generate OpenAPI Schema from Source Code** + + ```text + "Given the following source code for a RESTful API implemented in {programming_language} with endpoints {list_of_endpoints}, generate an OpenAPI 3.0 schema that describes the API. The schema should include paths, request/response parameters, status codes, authentication methods, and other relevant details. Return the complete OpenAPI schema in YAML format." + ``` + +* **Generate Curl Commands for Testing OpenAPI Endpoints** + + ```text + "For the OpenAPI schema provided, generate `curl` commands to test the endpoints. Include examples for GET, POST, PUT, and DELETE requests. The `curl` commands should include the correct headers, body content (for POST/PUT), and any required authentication tokens (if applicable)." + ``` + +* **Generate OpenAPI Schema for a Custom API with Source Code** + + ```text + "Given the following source code for an API implemented in {programming_language}, generate the OpenAPI schema for this API. The schema should cover all routes, parameters, request/response types, and status codes. Include both request body and query parameters where applicable, and provide the schema in YAML format." + ``` + +* **Create OpenAPI Schema and Curl Commands for a CRUD API** + + ```text + "Create an OpenAPI schema for a simple CRUD API with the following endpoints: `GET /items`, `POST /items`, `PUT /items/{id}`, and `DELETE /items/{id}`. Based on the schema, generate `curl` commands to test these endpoints with sample data, including headers and request bodies as necessary." + ``` + +* **Generate OpenAPI Schema for a Node.js API and Curl Examples** + + ```text + "Given the following source code for a Node.js API using Express, generate the corresponding OpenAPI 3.0 schema. Then, create `curl` commands to test each endpoint in the API, covering all HTTP methods (GET, POST, PUT, DELETE) and including sample request bodies for each method." + ``` + +* **Keploy CI/CD Integration Setup** + + ```text + "Set up a CI/CD pipeline to automatically run Keploy tests as part of the deployment process. Include configuration for GitHub Actions or Jenkins to run tests whenever new code is pushed to the repository." + ``` \ No newline at end of file diff --git a/contributing.md b/contributing.md new file mode 100644 index 0000000..19a76ad --- /dev/null +++ b/contributing.md @@ -0,0 +1,56 @@ +# Contributing to Engineering Prompts + +Thank you for considering contributing to **Engineering Prompts**! We welcome contributions from everyone, and there are a few guidelines to make the process smooth and easy. + +## How to Contribute + +1. **Fork the Repository:** + Start by forking the repository to your GitHub account and cloning it to your local machine. + +2. **Create a New Branch:** + Create a new branch for your contribution, such as `feature/your-feature-name`. + +3. **Add Your Prompt Chain:** + Navigate to the appropriate section in **README.md** based on the domain your prompt belongs to. If your prompt doesn't fit into any of the existing sections, feel free to create a new one under the corresponding category. + +4. **Update the README:** + Provide a clear description for your prompt chain. Use the format: + + ``` + ### **{Domain Name}** + + - **{Use Case Name}** + "{Prompt Chain}" + ``` + +5. **Test Your Changes:** + Ensure your prompt is correctly formatted and works as expected. + +6. **Submit a Pull Request:** + After making your changes, push them to your fork and create a pull request. Be sure to include a description of your changes and why you think it adds value to the repository. + +## Guidelines + +* **Be Clear:** Ensure the prompt chain is easy to follow and provides clear context. +* **Be Concise:** Keep the prompts concise and to the point, avoiding unnecessary fluff. +* **Be Descriptive:** Provide enough information so someone unfamiliar with the task can understand and use the prompt effectively. + +--- + +## Adding a New Use Case + +If you're adding a completely new use case that doesn't fit into the existing categories, follow these steps: + +1. **Find the right domain** + If it fits into an existing category, place it under the right domain section in **README.md**. + +2. **Create a new section** + If it's a completely new use case and domain, add a new section at the bottom of the **README.md**. + +--- + +## Thank You! + +We truly appreciate your contributions! By helping us expand and improve this collection of prompts, you’re making it easier for developers to work more efficiently and with less effort. + +Happy Prompting! 🚀 \ No newline at end of file From 09a310cfde0f9063816ebaae7f3b6c2e2d89a0ce Mon Sep 17 00:00:00 2001 From: Hritika Sharan <117531823+hritika2409@users.noreply.github.com> Date: Wed, 18 Jun 2025 20:30:09 +0530 Subject: [PATCH 2/4] Update README.md Signed-off-by: Hritika Sharan --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 477bc01..579bc60 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ This repository contains prompt chains for the following domains: --- -## Use Cases and Prompts +## Prompts by Domain ### **1. Code Refactoring & Development** @@ -49,7 +49,7 @@ This repository contains prompt chains for the following domains: * **Provide Code Explanations** ```text - "Please analyze the provided code and explain its functionality step-by-step. Include explanations for each major part of the code and why it’s necessary. Keep the explanation clear and concise." + "Please analyze the provided code and explain its functionality step-by-step. Include explanations for each major part of the code and why it's necessary. Keep the explanation clear and concise." ``` * **Generate Git Commit Messages** @@ -405,7 +405,7 @@ This repository contains prompt chains for the following domains: * **Create a Personal Portfolio Website** ```text - "Help me build a personal portfolio website. The site should include sections for my bio, projects, skills, and contact information. Make sure it’s responsive and easy to navigate. Return the basic HTML/CSS/JS code for the website." + "Help me build a personal portfolio website. The site should include sections for my bio, projects, skills, and contact information. Make sure it's responsive and easy to navigate. Return the basic HTML/CSS/JS code for the website." ``` * **Write SEO-Optimized Blog Content** @@ -494,4 +494,4 @@ This repository contains prompt chains for the following domains: ```text "Set up a CI/CD pipeline to automatically run Keploy tests as part of the deployment process. Include configuration for GitHub Actions or Jenkins to run tests whenever new code is pushed to the repository." - ``` \ No newline at end of file + ``` From f607559356101a7c4e4e2dfc33de6e624a5275bb Mon Sep 17 00:00:00 2001 From: Hritika Sharan Date: Wed, 18 Jun 2025 20:48:16 +0530 Subject: [PATCH 3/4] Updated the README.md file as suggested Signed-off-by: Hritika Sharan --- README.md | 595 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 594 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 579bc60..a01ba7d 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,19 @@ This repository contains prompt chains for the following domains: 11. **System Monitoring & Debugging** 12. **Web Development** 13. **API Development** +14. **Mobile Development** +15. **Machine Learning & AI** +16. **Data Engineering & Analytics** +17. **Performance Optimization** +18. **Quality Assurance & Testing** +19. **Blockchain & Web3** +20. **IoT & Embedded Systems** +21. **Game Development** +22. **Legacy System Modernization** --- -## Prompts by Domain +## Use Cases and Prompts ### **1. Code Refactoring & Development** @@ -160,6 +169,24 @@ This repository contains prompt chains for the following domains: "After refactoring the code, use Keploy to run automated tests to check if any regressions have been introduced. Set up Keploy to verify that the refactored code behaves as expected, ensuring that all existing functionalities remain intact. The tests should include integration tests to verify that API endpoints, data handling, and user interactions still function properly. Ensure that Keploy is set to compare the current behavior with previously recorded test cases to detect any discrepancies or regressions. Return the Keploy test configuration, test cases, and results showing the behavior of the refactored code." ``` +* **Generate Design Patterns Implementation** + + ```text + "Implement the {design_pattern} pattern in {programming_language} for the following use case: {use_case_description}. Provide a complete implementation with explanations of how the pattern solves the problem and when to use it." + ``` + +* **Create Code Metrics Dashboard** + + ```text + "Set up a code metrics dashboard using tools like SonarQube or CodeClimate. Configure it to track code quality metrics such as cyclomatic complexity, code coverage, and technical debt. Return the configuration and setup instructions." + ``` + +* **Implement Error Handling Strategies** + + ```text + "Implement comprehensive error handling for the provided code in {programming_language}. Include try-catch blocks, custom error classes, logging, and user-friendly error messages. Return the enhanced code with error handling explanations." + ``` + --- ### **2. CI/CD & DevOps** @@ -248,6 +275,30 @@ This repository contains prompt chains for the following domains: "Optimize the provided Docker development environment. Focus on reducing build time, improving caching, and streamlining container configurations. Return the optimized Dockerfile and Docker Compose file." ``` +* **Implement Blue-Green Deployment Strategy** + + ```text + "Design and implement a blue-green deployment strategy for {application} using {deployment_tool}. Include scripts for traffic switching, rollback procedures, and health checks. Return the deployment configuration and scripts." + ``` + +* **Set up Multi-Environment Configuration Management** + + ```text + "Create a configuration management system for multiple environments (dev, staging, prod) using {config_tool}. Include environment-specific variables, secrets management, and configuration validation. Return the setup configuration." + ``` + +* **Implement GitOps Workflow with ArgoCD** + + ```text + "Set up a GitOps workflow using ArgoCD for continuous deployment. Configure ArgoCD to sync with Git repositories and automatically deploy changes to Kubernetes clusters. Return the ArgoCD configuration and Git repository structure." + ``` + +* **Create Monitoring and Alerting with Prometheus and Grafana** + + ```text + "Set up monitoring and alerting for {application} using Prometheus and Grafana. Include custom metrics, alerting rules, and dashboard configurations. Return the complete monitoring stack setup." + ``` + --- ### **3. Database Management** @@ -300,6 +351,30 @@ This repository contains prompt chains for the following domains: "Explain the concepts of multi-threading and concurrency in {programming_language}. Focus on thread management, race conditions, and synchronization techniques. Provide code examples where applicable." ``` +* **Design Database Migration Strategy** + + ```text + "Create a database migration strategy for transitioning from {old_database} to {new_database}. Include data migration scripts, rollback procedures, and zero-downtime migration techniques. Return the migration plan and scripts." + ``` + +* **Implement Database Connection Pooling** + + ```text + "Set up database connection pooling for {application} using {connection_pool_library}. Configure optimal pool sizes, connection timeouts, and error handling. Return the configuration and implementation code." + ``` + +* **Create Database Backup and Recovery Procedures** + + ```text + "Design automated database backup and recovery procedures for {database_system}. Include incremental backups, point-in-time recovery, and disaster recovery plans. Return the backup scripts and recovery procedures." + ``` + +* **Implement Database Replication Setup** + + ```text + "Set up database replication for {database_system} with master-slave configuration. Include failover mechanisms, read replica setup, and data consistency checks. Return the replication configuration and monitoring setup." + ``` + --- ### **4. Cloud & Kubernetes** @@ -322,6 +397,30 @@ This repository contains prompt chains for the following domains: "Please provide the steps for setting up cloud storage using Amazon S3. Include how to create a bucket, set permissions, and manage files programmatically via AWS SDKs. Return the necessary code examples for integration." ``` +* **Implement Kubernetes Autoscaling** + + ```text + "Set up Horizontal Pod Autoscaler (HPA) and Vertical Pod Autoscaler (VPA) in Kubernetes. Configure scaling policies based on CPU, memory, and custom metrics. Return the autoscaling configuration files." + ``` + +* **Create Kubernetes Ingress Controller Setup** + + ```text + "Configure an Ingress controller in Kubernetes using {ingress_controller}. Set up SSL termination, load balancing, and routing rules for multiple services. Return the Ingress configuration and setup instructions." + ``` + +* **Implement Kubernetes Secrets and ConfigMaps Management** + + ```text + "Set up secrets and ConfigMaps management in Kubernetes. Include encryption at rest, secret rotation, and best practices for sensitive data handling. Return the configuration files and management scripts." + ``` + +* **Design Multi-Cloud Architecture Strategy** + + ```text + "Design a multi-cloud architecture strategy using {cloud_providers}. Include data replication, failover mechanisms, and cost optimization across different cloud platforms. Return the architecture design and implementation plan." + ``` + --- ### **5. Full-Stack Development** @@ -356,6 +455,24 @@ This repository contains prompt chains for the following domains: "Set up Keploy in your full-stack application to test both the backend and frontend after an update. Configure Keploy for automatic integration testing, focusing on testing API endpoints, data handling, and the interaction between the frontend and backend. Ensure that Keploy is set to capture all changes in the API response, including edge cases, and validate that the frontend works correctly with the updated backend. Return the setup configuration and steps to trigger Keploy for testing." ``` +* **Implement Server-Side Rendering with Next.js** + + ```text + "Set up server-side rendering (SSR) for a React application using Next.js. Include dynamic routing, API routes, and optimization for SEO. Return the Next.js configuration and example pages." + ``` + +* **Create GraphQL API with Apollo Server** + + ```text + "Implement a GraphQL API using Apollo Server for {application}. Define schemas, resolvers, and mutations for CRUD operations. Include authentication and error handling. Return the complete GraphQL implementation." + ``` + +* **Implement Microservices Architecture** + + ```text + "Design and implement a microservices architecture for {application}. Include service discovery, API gateway, inter-service communication, and data consistency patterns. Return the architecture design and implementation." + ``` + --- ### **6. UX/UI & Design** @@ -366,6 +483,24 @@ This repository contains prompt chains for the following domains: "Provide UX/UI design recommendations for the provided {website/app}. Focus on improving usability, accessibility, and aesthetics. Return a list of specific design improvements with examples where necessary." ``` +* **Create Responsive Design System** + + ```text + "Design a comprehensive design system for {application} including color palette, typography, component library, and responsive breakpoints. Return the design system documentation and CSS/styled-components implementation." + ``` + +* **Implement Accessibility (A11y) Improvements** + + ```text + "Audit the provided {website/application} for accessibility compliance and implement WCAG 2.1 AA standards. Include ARIA labels, keyboard navigation, screen reader compatibility, and color contrast improvements. Return the accessibility implementation and testing checklist." + ``` + +* **Design Progressive Web App (PWA) Features** + + ```text + "Convert the existing web application into a Progressive Web App (PWA). Implement service workers, offline functionality, push notifications, and app manifest. Return the PWA implementation and configuration files." + ``` + --- ### **7. Security & Authentication** @@ -382,6 +517,30 @@ This repository contains prompt chains for the following domains: "Implement JSON Web Token (JWT) authentication in the provided application. The system should handle token generation, validation, and secure access to protected routes. Return the code with explanations." ``` +* **Implement OAuth 2.0 with Social Login** + + ```text + "Set up OAuth 2.0 authentication with social login providers (Google, Facebook, GitHub) for {application}. Include token validation, user profile management, and security best practices. Return the implementation code." + ``` + +* **Perform Security Vulnerability Assessment** + + ```text + "Conduct a security vulnerability assessment of the provided application. Check for common vulnerabilities like SQL injection, XSS, CSRF, and insecure dependencies. Return a security report with remediation recommendations." + ``` + +* **Implement Rate Limiting and DDoS Protection** + + ```text + "Implement rate limiting and DDoS protection for {application} using {rate_limiting_tool}. Configure request throttling, IP blocking, and monitoring. Return the security configuration and implementation." + ``` + +* **Set up Web Application Firewall (WAF)** + + ```text + "Configure a Web Application Firewall (WAF) for {application} using {WAF_provider}. Set up rules for common attacks, custom filtering, and monitoring. Return the WAF configuration and security policies." + ``` + --- ### **8. Event-Driven Architecture & Integration** @@ -398,6 +557,18 @@ This repository contains prompt chains for the following domains: "Integrate {third_party_service} into the existing project. Provide step-by-step instructions for setup, authentication, and API interaction. Return the integration code with explanations of how it works." ``` +* **Implement Event Sourcing Pattern** + + ```text + "Implement event sourcing pattern for {application} using {event_store}. Design event schemas, aggregate handling, and event replay mechanisms. Return the event sourcing implementation and configuration." + ``` + +* **Create Message Queue System with RabbitMQ** + + ```text + "Set up a message queue system using RabbitMQ for {use_case}. Configure exchanges, queues, routing keys, and dead letter queues. Return the RabbitMQ setup and producer/consumer code." + ``` + --- ### **9. Content Creation & Marketing** @@ -420,6 +591,18 @@ This repository contains prompt chains for the following domains: "Generate a compelling LinkedIn summary and job description based on the following details: {job_title}, {skills}, {experience}. Ensure the summary is concise, professional, and highlights key achievements." ``` +* **Create Technical Documentation Website** + + ```text + "Build a technical documentation website using {documentation_tool} for {project}. Include API documentation, tutorials, code examples, and search functionality. Return the documentation structure and configuration." + ``` + +* **Implement Content Management System (CMS)** + + ```text + "Set up a content management system using {CMS_platform} for {website_type}. Configure custom content types, user roles, and publishing workflows. Return the CMS setup and customization code." + ``` + --- ### **10. Infrastructure & System Administration** @@ -436,6 +619,18 @@ This repository contains prompt chains for the following domains: "Create a serverless architecture using Google Cloud Functions for {task}. The functions should trigger based on specific events and return the necessary code with setup instructions." ``` +* **Implement Infrastructure Monitoring with Terraform** + + ```text + "Create Terraform configurations for provisioning and monitoring infrastructure on {cloud_provider}. Include resource monitoring, alerting, and cost tracking. Return the Terraform modules and monitoring setup." + ``` + +* **Set up Load Balancer Configuration** + + ```text + "Configure load balancers for {application} using {load_balancer_type}. Set up health checks, SSL termination, and traffic distribution algorithms. Return the load balancer configuration and setup instructions." + ``` + --- ### **11. System Monitoring & Debugging** @@ -446,6 +641,24 @@ This repository contains prompt chains for the following domains: "Analyze the performance of the production system and identify bottlenecks. Suggest and implement optimizations to improve speed, reduce memory usage, and increase scalability. Return the optimized code and explanations." ``` +* **Set up Application Performance Monitoring (APM)** + + ```text + "Implement application performance monitoring using {APM_tool} for {application}. Configure performance metrics, error tracking, and alerting. Return the APM setup and dashboard configuration." + ``` + +* **Create Log Aggregation and Analysis System** + + ```text + "Set up log aggregation and analysis using {logging_stack} (e.g., ELK Stack). Configure log parsing, indexing, and visualization dashboards. Return the logging infrastructure setup and configuration." + ``` + +* **Implement Distributed Tracing** + + ```text + "Set up distributed tracing for microservices using {tracing_tool} (e.g., Jaeger, Zipkin). Configure trace collection, analysis, and performance monitoring across services. Return the tracing implementation and configuration." + ``` + --- ### **12. Web Development** @@ -456,6 +669,24 @@ This repository contains prompt chains for the following domains: "Write unit and integration tests for the provided front-end components using {testing_framework}. Ensure the tests cover all major use cases and edge cases. Return the test code with explanations." ``` +* **Implement Advanced CSS Animations and Transitions** + + ```text + "Create advanced CSS animations and transitions for {website_elements}. Include keyframe animations, transform effects, and performance optimizations. Return the CSS code with explanations and examples." + ``` + +* **Set up Modern JavaScript Build Pipeline** + + ```text + "Configure a modern JavaScript build pipeline using {build_tool} (e.g., Webpack, Vite, Rollup). Include code splitting, tree shaking, and optimization plugins. Return the build configuration and setup instructions." + ``` + +* **Implement Web Performance Optimization** + + ```text + "Optimize web performance for {website/application}. Include lazy loading, image optimization, code splitting, and caching strategies. Return the optimization implementation and performance metrics." + ``` + --- ### **13. API Development** @@ -495,3 +726,365 @@ This repository contains prompt chains for the following domains: ```text "Set up a CI/CD pipeline to automatically run Keploy tests as part of the deployment process. Include configuration for GitHub Actions or Jenkins to run tests whenever new code is pushed to the repository." ``` + +* **Implement API Rate Limiting and Throttling** + + ```text + "Implement rate limiting and throttling for {API} using {rate_limiting_library}. Configure different rate limits for different endpoints and user tiers. Return the rate limiting implementation and configuration." + ``` + +* **Create API Gateway Configuration** + + ```text + "Set up an API Gateway for microservices using {gateway_tool}. Configure routing, authentication, rate limiting, and request/response transformation. Return the gateway configuration and deployment instructions." + ``` + +* **Implement API Versioning Strategy** + + ```text + "Design and implement an API versioning strategy for {API}. Include URL versioning, header versioning, and backward compatibility handling. Return the versioning implementation and migration guide." + ``` + +--- + +### **14. Mobile Development** + +* **Create React Native Cross-Platform App** + + ```text + "Develop a cross-platform mobile application using React Native for {app_description}. Include navigation, state management, and platform-specific optimizations. Return the app structure and key components." + ``` + +* **Implement Mobile App Authentication** + + ```text + "Implement authentication for a mobile app using {authentication_method}. Include biometric authentication, secure token storage, and session management. Return the authentication implementation for {platform}." + ``` + +* **Set up Mobile App Push Notifications** + + ```text + "Configure push notifications for a mobile app using {notification_service} (e.g., Firebase Cloud Messaging). Include notification scheduling, targeting, and analytics. Return the push notification setup and implementation." + ``` + +* **Optimize Mobile App Performance** + + ```text + "Optimize performance for a {platform} mobile app. Include memory management, rendering optimizations, and battery usage improvements. Return the optimization strategies and implementation code." + ``` + +* **Implement Mobile App Offline Functionality** + + ```text + "Implement offline functionality for a mobile app including data synchronization, offline storage, and conflict resolution. Use {offline_storage_solution} and return the offline implementation strategy and code." + ``` + +* **Create Mobile App CI/CD Pipeline** + + ```text + "Set up a CI/CD pipeline for mobile app deployment using {CI_tool}. Include automated building, testing, and deployment to app stores. Return the pipeline configuration and deployment scripts." + ``` + +--- + +### **15. Machine Learning & AI** + +* **Implement Machine Learning Model Training Pipeline** + + ```text + "Create a machine learning pipeline for {ml_task} using {ml_framework}. Include data preprocessing, model training, validation, and hyperparameter tuning. Return the complete pipeline code and configuration." + ``` + +* **Deploy ML Model with REST API** + + ```text + "Deploy a trained machine learning model as a REST API using {deployment_framework}. Include model serving, request validation, and response formatting. Return the deployment code and API documentation." + ``` + +* **Implement Data Preprocessing for Machine Learning** + + ```text + "Implement comprehensive data preprocessing for {dataset_type}. Include data cleaning, feature engineering, encoding, and normalization. Return the preprocessing pipeline and data quality checks." + ``` + +* **Create MLOps Pipeline with Model Versioning** + + ```text + "Set up an MLOps pipeline with model versioning using {mlops_tool}. Include experiment tracking, model registry, and automated deployment. Return the MLOps configuration and workflow." + ``` + +* **Implement Real-time ML Inference** + + ```text + "Set up real-time machine learning inference for {use_case} using {streaming_platform}. Include data streaming, model serving, and result processing. Return the real-time inference implementation." + ``` + +* **Create AI Chatbot with Natural Language Processing** + + ```text + "Develop an AI chatbot using {nlp_framework} for {domain}. Include intent recognition, entity extraction, and conversation management. Return the chatbot implementation and training data structure." + ``` + +* **Implement Computer Vision Pipeline** + + ```text + "Create a computer vision pipeline for {cv_task} using {cv_framework}. Include image preprocessing, model inference, and result visualization. Return the complete computer vision solution." + ``` + +--- + +### **16. Data Engineering & Analytics** + +* **Design Data Lake Architecture** + + ```text + "Design a data lake architecture for {organization} using {cloud_provider}. Include data ingestion, storage layers, processing engines, and governance. Return the architecture design and implementation plan." + ``` + +* **Create ETL Pipeline with Apache Airflow** + + ```text + "Build an ETL pipeline using Apache Airflow for {data_source} to {destination}. Include data extraction, transformation, validation, and scheduling. Return the Airflow DAG and pipeline configuration." + ``` + +* **Implement Real-time Data Streaming** + + ```text + "Set up real-time data streaming pipeline using {streaming_technology}. Include data ingestion, processing, and analytics. Return the streaming pipeline implementation and monitoring setup." + ``` + +* **Create Data Warehouse Schema Design** + + ```text + "Design a data warehouse schema for {business_domain} using {dimensional_modeling_approach}. Include fact tables, dimension tables, and ETL processes. Return the schema design and implementation scripts." + ``` + +* **Implement Data Quality Monitoring** + + ```text + "Set up data quality monitoring and validation for {data_pipeline}. Include data profiling, anomaly detection, and quality metrics. Return the data quality framework and monitoring dashboards." + ``` + +* **Create Analytics Dashboard with BI Tools** + + ```text + "Build analytics dashboards using {bi_tool} for {business_metrics}. Include data connections, visualizations, and interactive filtering. Return the dashboard configuration and deployment guide." + ``` + +--- + +### **17. Performance Optimization** + +* **Optimize Database Query Performance** + + ```text + "Analyze and optimize slow database queries for {database_system}. Include query plan analysis, index optimization, and query rewriting. Return the optimized queries and performance improvements." + ``` + +* **Implement Application Caching Strategy** + + ```text + "Design and implement a caching strategy for {application} using {caching_solution}. Include cache invalidation, TTL configuration, and cache warming. Return the caching implementation and configuration." + ``` + +* **Optimize Frontend Bundle Size** + + ```text + "Optimize frontend bundle size for {web_application}. Include code splitting, tree shaking, lazy loading, and compression techniques. Return the optimization configuration and performance metrics." + ``` + +* **Implement CDN and Static Asset Optimization** + + ```text + "Set up CDN and optimize static assets for {website}. Include image optimization, minification, and cache headers configuration. Return the CDN setup and asset optimization pipeline." + ``` + +* **Create Performance Testing Suite** + + ```text + "Create a comprehensive performance testing suite for {application} using {testing_tool}. Include load testing, stress testing, and performance monitoring. Return the test scripts and reporting setup." + ``` + +--- + +### **18. Quality Assurance & Testing** + +* **Implement Automated Testing Framework** + + ```text + "Set up an automated testing framework for {application} using {testing_framework}. Include unit tests, integration tests, and end-to-end tests. Return the testing setup and example test cases." + ``` + +* **Create API Testing Suite** + + ```text + "Develop comprehensive API testing suite for {api} using {api_testing_tool}. Include functional testing, contract testing, and performance testing. Return the test suite and execution configuration." + ``` + +* **Implement Visual Regression Testing** + + ```text + "Set up visual regression testing for {web_application} using {visual_testing_tool}. Include screenshot comparison, responsive testing, and CI integration. Return the visual testing setup and configuration." + ``` + +* **Create Test Data Management Strategy** + + ```text + "Design test data management strategy for {application}. Include test data generation, anonymization, and environment management. Return the test data framework and management tools." + ``` + +* **Implement Behavior-Driven Development (BDD)** + + ```text + "Set up Behavior-Driven Development framework using {bdd_tool} for {project}. Include feature specifications, step definitions, and test execution. Return the BDD implementation and example scenarios." + ``` + +--- + +### **19. Blockchain & Web3** + +* **Create Smart Contract Development Environment** + + ```text + "Set up a smart contract development environment for {blockchain_platform}. Include development tools, testing framework, and deployment scripts. Return the development setup and example contracts." + ``` + +* **Implement DeFi Protocol Integration** + + ```text + "Integrate with DeFi protocols for {use_case}. Include wallet connection, transaction handling, and protocol interactions. Return the DeFi integration code and security considerations." + ``` + +* **Create NFT Marketplace** + + ```text + "Build an NFT marketplace on {blockchain_platform}. Include smart contracts, frontend interface, and IPFS integration. Return the marketplace implementation and deployment guide." + ``` + +* **Implement Blockchain Data Indexing** + + ```text + "Set up blockchain data indexing and querying using {indexing_solution}. Include event monitoring, data transformation, and API creation. Return the indexing implementation and query interface." + ``` + +--- + +### **20. IoT & Embedded Systems** + +* **Create IoT Device Communication Protocol** + + ```text + "Implement communication protocol for IoT devices using {protocol}. Include device registration, data transmission, and security measures. Return the protocol implementation and device code." + ``` + +* **Set up IoT Data Pipeline** + + ```text + "Build IoT data pipeline for sensor data processing. Include data ingestion, real-time processing, and storage. Return the pipeline architecture and implementation code." + ``` + +* **Implement Edge Computing Solution** + + ```text + "Design edge computing solution for {iot_use_case}. Include edge device configuration, local processing, and cloud synchronization. Return the edge computing implementation and deployment guide." + ``` + +* **Create IoT Device Management System** + + ```text + "Build IoT device management system for {device_fleet}. Include device provisioning, monitoring, and over-the-air updates. Return the management system implementation and device integration." + ``` + +--- + +### **21. Game Development** + +* **Create Game Engine Architecture** + + ```text + "Design game engine architecture for {game_type} using {game_framework}. Include rendering system, physics engine, and asset management. Return the engine design and core components." + ``` + +* **Implement Multiplayer Game Networking** + + ```text + "Set up multiplayer networking for {game_type}. Include client-server architecture, state synchronization, and lag compensation. Return the networking implementation and server setup." + ``` + +* **Create Game Analytics and Telemetry** + + ```text + "Implement game analytics and telemetry system for {game}. Include player behavior tracking, performance metrics, and monetization analytics. Return the analytics implementation and dashboard setup." + ``` + +* **Optimize Game Performance** + + ```text + "Optimize game performance for {platform}. Include rendering optimizations, memory management, and frame rate improvements. Return the optimization strategies and implementation code." + ``` + +--- + +### **22. Legacy System Modernization** + +* **Create Legacy System Migration Strategy** + + ```text + "Design migration strategy for legacy system {legacy_system} to modern architecture. Include risk assessment, migration phases, and rollback procedures. Return the migration plan and implementation roadmap." + ``` + +* **Implement API Gateway for Legacy Integration** + + ```text + "Create API gateway to integrate legacy systems with modern applications. Include protocol translation, data transformation, and security layers. Return the gateway implementation and integration guide." + ``` + +* **Refactor Monolith to Microservices** + + ```text + "Plan and implement refactoring of monolithic application to microservices architecture. Include service boundaries, data separation, and deployment strategy. Return the refactoring plan and implementation steps." + ``` + +* **Implement Strangler Fig Pattern** + + ```text + "Implement Strangler Fig pattern for gradual legacy system replacement. Include proxy setup, traffic routing, and feature migration. Return the pattern implementation and migration strategy." + ``` + +--- + +## Advanced Prompt Combinations + +### **Cross-Domain Integration Prompts** + +* **Full-Stack Application with ML Integration** + + ```text + "Create a full-stack application that integrates machine learning capabilities. Include model serving API, real-time predictions, and result visualization. The application should use {frontend_framework} for UI, {backend_framework} for API, and {ml_framework} for model serving. Return the complete application architecture and implementation." + ``` + +* **Cloud-Native Application with Advanced Monitoring** + + ```text + "Build a cloud-native application with comprehensive monitoring and observability. Include distributed tracing, metrics collection, log aggregation, and alerting. Deploy on {cloud_platform} with {container_orchestration}. Return the application code, infrastructure configuration, and monitoring setup." + ``` + +* **Secure API Gateway with Authentication and Analytics** + + ```text + "Implement a secure API gateway with OAuth2 authentication, rate limiting, and analytics. Include JWT validation, request/response transformation, and usage analytics. Use {gateway_technology} and integrate with {analytics_platform}. Return the gateway configuration and security implementation." + ``` + +* **Real-time Data Processing with Event-Driven Architecture** + + ```text + "Design real-time data processing system using event-driven architecture. Include data ingestion, stream processing, event sourcing, and real-time analytics. Use {streaming_platform} for events and {processing_framework} for computations. Return the architecture design and implementation code." + ``` + +* **DevSecOps Pipeline with Automated Security Testing** + + ```text + "Create a DevSecOps pipeline that integrates security testing throughout the development lifecycle. Include SAST, DAST, dependency scanning, and compliance checks. Use {ci_cd_platform} and {security_tools}. Return the pipeline configuration and security automation scripts." + ``` + +--- From c5d6a73ddf88287672813ed9c011895a8a1cdbdc Mon Sep 17 00:00:00 2001 From: Hritika Sharan Date: Wed, 18 Jun 2025 21:11:09 +0530 Subject: [PATCH 4/4] =?UTF-8?q?=EF=BF=BD=20Major=20Repo=20Overhaul:=20Adde?= =?UTF-8?q?d=209=20New=20Domains,=20300%=20More=20Prompts,=20Cross-Domain?= =?UTF-8?q?=20Features?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hritika Sharan --- README.md | 1056 ++++++++++++++++++++++++++--------------------------- 1 file changed, 528 insertions(+), 528 deletions(-) diff --git a/README.md b/README.md index a01ba7d..787b6d5 100644 --- a/README.md +++ b/README.md @@ -1,1090 +1,1090 @@ # Engineering Prompts -Welcome to the **Engineering Prompts** repository! This repository contains a collection of **AI prompt chains** organized by different domains, primarily for assisting developers in various tasks such as code refactoring, CI/CD setup, database management, cloud, Kubernetes deployment, web development, API Development, security, and more. +Welcome to the *Engineering Prompts* repository! This repository contains a collection of *AI prompt chains* organized by different domains, primarily for assisting developers in various tasks such as code refactoring, CI/CD setup, database management, cloud, Kubernetes deployment, web development, API Development, security, and more. -Each prompt chain is designed to build context for ChatGPT before executing a task. They can be used in **ChatGPT Queue** for bulk prompting, job, or task-focused automation. +Each prompt chain is designed to build context for ChatGPT before executing a task. They can be used in *ChatGPT Queue* for bulk prompting, job, or task-focused automation. ## Domains Covered This repository contains prompt chains for the following domains: -1. **Code Refactoring & Development** -2. **CI/CD & DevOps** -3. **Database Management** -4. **Cloud & Kubernetes** -5. **Full-Stack Development** -6. **UX/UI & Design** -7. **Security & Authentication** -8. **Event-Driven Architecture & Integration** -9. **Content Creation & Marketing** -10. **Infrastructure & System Administration** -11. **System Monitoring & Debugging** -12. **Web Development** -13. **API Development** -14. **Mobile Development** -15. **Machine Learning & AI** -16. **Data Engineering & Analytics** -17. **Performance Optimization** -18. **Quality Assurance & Testing** -19. **Blockchain & Web3** -20. **IoT & Embedded Systems** -21. **Game Development** -22. **Legacy System Modernization** +1. *Code Refactoring & Development* +2. *CI/CD & DevOps* +3. *Database Management* +4. *Cloud & Kubernetes* +5. *Full-Stack Development* +6. *UX/UI & Design* +7. *Security & Authentication* +8. *Event-Driven Architecture & Integration* +9. *Content Creation & Marketing* +10. *Infrastructure & System Administration* +11. *System Monitoring & Debugging* +12. *Web Development* +13. *API Development* +14. *Mobile Development* +15. *Machine Learning & AI* +16. *Data Engineering & Analytics* +17. *Performance Optimization* +18. *Quality Assurance & Testing* +19. *Blockchain & Web3* +20. *IoT & Embedded Systems* +21. *Game Development* +22. *Legacy System Modernization* --- ## Use Cases and Prompts -### **1. Code Refactoring & Development** +### *1. Code Refactoring & Development* -* **Refactor Code for Better Readability** +* *Refactor Code for Better Readability* - ```text + text "Please review the provided code and identify areas where readability can be improved. Focus on simplifying complex functions, improving variable names, and removing redundant code. Return the refactored code and explain the changes made to improve readability." - ``` + -* **Translate Code from One Language to Another** +* *Translate Code from One Language to Another* - ```text + text "Translate the provided code from {source_language} to {target_language}. Ensure that the functionality remains equivalent. Highlight major differences in syntax or constructs between the two languages and explain the changes." - ``` + -* **Create Documentation from Code** +* *Create Documentation from Code* - ```text + text "Extract the necessary information from the provided code to create detailed documentation. This should include explanations for functions, methods, classes, and the purpose of the code. Return the documentation in markdown format." - ``` + -* **Provide Code Explanations** +* *Provide Code Explanations* - ```text + text "Please analyze the provided code and explain its functionality step-by-step. Include explanations for each major part of the code and why it's necessary. Keep the explanation clear and concise." - ``` + -* **Generate Git Commit Messages** +* *Generate Git Commit Messages* - ```text + text "Based on the code changes, generate concise and meaningful Git commit messages. Ensure the messages describe what was changed and why, and follow conventional commit standards." - ``` + -* **Debug Code** +* *Debug Code* - ```text + text "Please review the provided code and the accompanying error message. Identify the cause of the error, suggest possible fixes, and return the corrected code with explanations of the changes made." - ``` + -* **Write Regular Expressions** +* *Write Regular Expressions* - ```text + text "Create a regular expression for {use_case}. For example, to validate email addresses, generate a regex that matches valid email formats. Return the regular expression and explain how it works." - ``` + -* **Generate Boilerplate Code** +* *Generate Boilerplate Code* - ```text + text "Generate boilerplate code for a {project_type} using {programming_language}. The code should include basic setup, functions, and structure for a starting point. Return the full code with instructions for customization." - ``` + -* **Automate Code Formatting** +* *Automate Code Formatting* - ```text + text "Set up an automatic code formatting system using {tool}. Configure it to run on each commit or via pre-commit hooks. Return the necessary configuration and explain how it integrates into the workflow." - ``` + -* **Explain Data Structures and Algorithms** +* *Explain Data Structures and Algorithms* - ```text + text "Explain the following data structure/algorithm: {data_structure/algorithm}. Include its time complexity, use cases, and any common implementations. Provide code examples where applicable." - ``` + -* **Generate Mock Data** +* *Generate Mock Data* - ```text + text "Generate mock data for the following schema: {data_schema}. Include a variety of realistic values for testing purposes. Return the data in JSON, CSV, or another format as requested." - ``` + -* **Create Code for a New Feature** +* *Create Code for a New Feature* - ```text + text "Please create code to implement the following feature: {feature_description}. The feature should be fully functional and integrate smoothly with the existing codebase. Return the implementation along with an explanation." - ``` + -* **Suggest Performance Optimizations** +* *Suggest Performance Optimizations* - ```text + text "Analyze the provided code for performance bottlenecks. Suggest optimizations such as reducing time complexity, memory usage, or optimizing algorithms. Return the updated code with explanations of the optimizations." - ``` + -* **Generate Build Scripts** +* *Generate Build Scripts* - ```text + text "Create a build script for automating the build process of a {project_type} using {build_tool}. The script should include steps for compiling, packaging, and versioning. Return the build script along with setup instructions." - ``` + -* **Offer Security Best Practices** +* *Offer Security Best Practices* - ```text + text "Provide a list of security best practices for {application_type}. Focus on areas like authentication, authorization, data protection, and secure coding practices. Return actionable advice with examples where necessary." - ``` + -* **Assist in Code Reviews** +* *Assist in Code Reviews* - ```text + text "Review the provided code and provide feedback. Focus on aspects like readability, performance, security, and maintainability. Suggest improvements and explain the rationale behind each recommendation." - ``` + -* **Test for Compatibility After Upgrading Node.js Version** +* *Test for Compatibility After Upgrading Node.js Version* - ```text + text "After upgrading Node.js from version 14 to 18, use Keploy to run automated tests to ensure that the application is working as expected. Set up Keploy to perform integration tests and verify that the backend, APIs, and frontend components are compatible with the new Node.js version. The tests should focus on key areas such as API responses, performance, and compatibility with external dependencies that may have been affected by the Node.js upgrade. Ensure that Keploy compares the results with the previous behavior recorded under Node.js 14 to detect any regressions or issues introduced by the upgrade. Return the Keploy test configuration, test cases, and results." - ``` + -* **Integrate Third-Party Services** +* *Integrate Third-Party Services* - ```text + text "Integrate {third_party_service} into the existing project. Provide step-by-step instructions for setup, authentication, and API interaction. Return the integration code with explanations of how it works." - ``` + -* **Write a Dockerfile for the Application** +* *Write a Dockerfile for the Application* - ```text + text "Create a Dockerfile to containerize the provided application. Ensure that the Dockerfile sets up the environment correctly, installs dependencies, and exposes the necessary ports. Return the Dockerfile with explanations." - ``` + -* **Provide UX/UI Design Advice** +* *Provide UX/UI Design Advice* - ```text + text "Provide UX/UI design recommendations for the provided {website/app}. Focus on improving usability, accessibility, and aesthetics. Return a list of specific design improvements with examples where necessary." - ``` + -* **Suggest Testing Strategies** +* *Suggest Testing Strategies* - ```text + text "Suggest a comprehensive testing strategy for {project_type}. The strategy should include unit tests, integration tests, and end-to-end tests. Provide recommendations for testing frameworks and tools, along with examples." - ``` + -* **Test for Regressions After Refactoring Code with Keploy** +* *Test for Regressions After Refactoring Code with Keploy* - ```text + text "After refactoring the code, use Keploy to run automated tests to check if any regressions have been introduced. Set up Keploy to verify that the refactored code behaves as expected, ensuring that all existing functionalities remain intact. The tests should include integration tests to verify that API endpoints, data handling, and user interactions still function properly. Ensure that Keploy is set to compare the current behavior with previously recorded test cases to detect any discrepancies or regressions. Return the Keploy test configuration, test cases, and results showing the behavior of the refactored code." - ``` + -* **Generate Design Patterns Implementation** +* *Generate Design Patterns Implementation* - ```text + text "Implement the {design_pattern} pattern in {programming_language} for the following use case: {use_case_description}. Provide a complete implementation with explanations of how the pattern solves the problem and when to use it." - ``` + -* **Create Code Metrics Dashboard** +* *Create Code Metrics Dashboard* - ```text + text "Set up a code metrics dashboard using tools like SonarQube or CodeClimate. Configure it to track code quality metrics such as cyclomatic complexity, code coverage, and technical debt. Return the configuration and setup instructions." - ``` + -* **Implement Error Handling Strategies** +* *Implement Error Handling Strategies* - ```text + text "Implement comprehensive error handling for the provided code in {programming_language}. Include try-catch blocks, custom error classes, logging, and user-friendly error messages. Return the enhanced code with error handling explanations." - ``` + --- -### **2. CI/CD & DevOps** +### *2. CI/CD & DevOps* -* **Set up CI/CD Pipelines** +* *Set up CI/CD Pipelines* - ```text + text "Help set up a CI/CD pipeline for the project using {CI_tool}. The pipeline should include stages for building, testing, and deploying the application. Provide configuration files and explanations of each stage." - ``` + -* **Automate Code Formatting** +* *Automate Code Formatting* - ```text + text "Set up an automated code formatting system using {tool}. Configure it to run on each commit or via pre-commit hooks. Return the necessary configuration and explain how it integrates into the workflow." - ``` + -* **Set up Cloud Cost Optimization Strategies** +* *Set up Cloud Cost Optimization Strategies* - ```text + text "Provide strategies for optimizing cloud costs in {cloud_provider}. Focus on areas like reserved instances, auto-scaling, and rightsizing. Return recommendations and examples of how to implement them." - ``` + -* **Create Docker Compose Configurations** +* *Create Docker Compose Configurations* - ```text + text "Create a Docker Compose configuration file to set up {services}. The configuration should include service dependencies, environment variables, and port mappings. Return the Docker Compose YAML with an explanation." - ``` + -* **Generate Cron Jobs for Task Scheduling** +* *Generate Cron Jobs for Task Scheduling* - ```text + text "Write cron jobs to schedule tasks on a Linux system. The tasks should run at {interval} and execute {command}. Return the cron job configurations with explanations of each field." - ``` + -* **Implement Automated Security Testing in CI/CD** +* *Implement Automated Security Testing in CI/CD* - ```text + text "Integrate automated security testing tools like {security_tool} into the CI/CD pipeline. Configure the pipeline to run security checks on each commit or pull request. Return the updated pipeline configuration." - ``` + -* **Set up Serverless Architecture with Google Cloud Functions** +* *Set up Serverless Architecture with Google Cloud Functions* - ```text + text "Create a serverless architecture using Google Cloud Functions for {task}. The functions should trigger based on specific events and return the necessary code with setup instructions." - ``` + -* **Write Infrastructure as Code (IaC) for AWS with CloudFormation** +* *Write Infrastructure as Code (IaC) for AWS with CloudFormation* - ```text + text "Write infrastructure-as-code (IaC) for AWS using CloudFormation. Automate the provisioning of resources such as EC2, RDS, and S3 for {application}. Return the CloudFormation templates with explanations." - ``` + -* **Create a Custom Shell Script for System Administration** +* *Create a Custom Shell Script for System Administration* - ```text + text "Create a custom shell script that automates {system_task} such as backups, log rotations, or user management. The script should be efficient and handle errors gracefully. Return the shell script with usage instructions." - ``` + -* **Create an Event-Driven Architecture with Kafka** +* *Create an Event-Driven Architecture with Kafka* - ```text + text "Set up an event-driven architecture with Kafka. Define the Kafka topics, producers, and consumers to handle real-time data processing. Return the code with configuration details." - ``` + -* **Implement Data Preprocessing for Machine Learning** +* *Implement Data Preprocessing for Machine Learning* - ```text + text "Implement data preprocessing steps for machine learning. This includes handling missing data, scaling features, and encoding categorical variables. Return the preprocessing code and explain each step." - ``` + -* **Implement Serverless Functions on AWS Lambda** +* *Implement Serverless Functions on AWS Lambda* - ```text + text "Set up serverless functions using AWS Lambda to perform {task}. Include setup instructions for the trigger and return the Lambda function code." - ``` + -* **Set up Google Analytics for Portfolio Tracking** +* *Set up Google Analytics for Portfolio Tracking* - ```text + text "Set up Google Analytics tracking for my portfolio website. Provide the steps for adding tracking code and configuring goals. Return the setup instructions." - ``` + -* **Optimize a Docker-Based Development Environment** +* *Optimize a Docker-Based Development Environment* - ```text + text "Optimize the provided Docker development environment. Focus on reducing build time, improving caching, and streamlining container configurations. Return the optimized Dockerfile and Docker Compose file." - ``` + -* **Implement Blue-Green Deployment Strategy** +* *Implement Blue-Green Deployment Strategy* - ```text + text "Design and implement a blue-green deployment strategy for {application} using {deployment_tool}. Include scripts for traffic switching, rollback procedures, and health checks. Return the deployment configuration and scripts." - ``` + -* **Set up Multi-Environment Configuration Management** +* *Set up Multi-Environment Configuration Management* - ```text + text "Create a configuration management system for multiple environments (dev, staging, prod) using {config_tool}. Include environment-specific variables, secrets management, and configuration validation. Return the setup configuration." - ``` + -* **Implement GitOps Workflow with ArgoCD** +* *Implement GitOps Workflow with ArgoCD* - ```text + text "Set up a GitOps workflow using ArgoCD for continuous deployment. Configure ArgoCD to sync with Git repositories and automatically deploy changes to Kubernetes clusters. Return the ArgoCD configuration and Git repository structure." - ``` + -* **Create Monitoring and Alerting with Prometheus and Grafana** +* *Create Monitoring and Alerting with Prometheus and Grafana* - ```text + text "Set up monitoring and alerting for {application} using Prometheus and Grafana. Include custom metrics, alerting rules, and dashboard configurations. Return the complete monitoring stack setup." - ``` + --- -### **3. Database Management** +### *3. Database Management* -* **Generate SQL Queries** +* *Generate SQL Queries* - ```text + text "Given the database schema and the following requirements (e.g., 'Find all users who joined after 2020'), generate an appropriate SQL query. Return the SQL query and explain its logic." - ``` + -* **Explain Database Design** +* *Explain Database Design* - ```text + text "Please review the database schema provided and explain its design choices. Discuss normalization, relationships between tables, and indexing strategies. Suggest improvements for scalability and performance." - ``` + -* **Design a Normalized Relational Database Schema** +* *Design a Normalized Relational Database Schema* - ```text + text "Design a relational database schema for {application}. Ensure that it is normalized up to 3NF, with proper primary/foreign keys and indexes. Return the schema in SQL format." - ``` + -* **Set Up a PostgreSQL Database with Docker** +* *Set Up a PostgreSQL Database with Docker* - ```text + text "Set up a PostgreSQL database in a Docker container. Include steps for configuring the database, creating the schema, and connecting to the container. Return the Dockerfile and Docker Compose configuration." - ``` + -* **Implement Database Sharding** +* *Implement Database Sharding* - ```text + text "Implement database sharding for {database_name}. Define the sharding strategy and partition the data across multiple shards. Return the setup and configuration details." - ``` + -* **Create and Optimize a NoSQL Database (MongoDB)** +* *Create and Optimize a NoSQL Database (MongoDB)* - ```text + text "Set up and optimize a MongoDB database for {application}. Include recommendations for indexing, query optimization, and data modeling. Return the schema and optimization steps." - ``` + -* **Optimize Database Queries for Performance** +* *Optimize Database Queries for Performance* - ```text + text "Analyze the provided database queries and suggest performance optimizations. This may include indexing, query refactoring, and reducing the complexity of joins. Return the optimized query with explanations." - ``` + -* **Implement Multi-Threading and Concurrency Concepts** +* *Implement Multi-Threading and Concurrency Concepts* - ```text + text "Explain the concepts of multi-threading and concurrency in {programming_language}. Focus on thread management, race conditions, and synchronization techniques. Provide code examples where applicable." - ``` + -* **Design Database Migration Strategy** +* *Design Database Migration Strategy* - ```text + text "Create a database migration strategy for transitioning from {old_database} to {new_database}. Include data migration scripts, rollback procedures, and zero-downtime migration techniques. Return the migration plan and scripts." - ``` + -* **Implement Database Connection Pooling** +* *Implement Database Connection Pooling* - ```text + text "Set up database connection pooling for {application} using {connection_pool_library}. Configure optimal pool sizes, connection timeouts, and error handling. Return the configuration and implementation code." - ``` + -* **Create Database Backup and Recovery Procedures** +* *Create Database Backup and Recovery Procedures* - ```text + text "Design automated database backup and recovery procedures for {database_system}. Include incremental backups, point-in-time recovery, and disaster recovery plans. Return the backup scripts and recovery procedures." - ``` + -* **Implement Database Replication Setup** +* *Implement Database Replication Setup* - ```text + text "Set up database replication for {database_system} with master-slave configuration. Include failover mechanisms, read replica setup, and data consistency checks. Return the replication configuration and monitoring setup." - ``` + --- -### **4. Cloud & Kubernetes** +### *4. Cloud & Kubernetes* -* **Set Up Kubernetes Cluster on AWS EKS** +* *Set Up Kubernetes Cluster on AWS EKS* - ```text + text "Please guide the setup of a Kubernetes cluster using Amazon EKS. Include steps for configuring the cluster, setting up node groups, and connecting kubectl. Return the steps and configuration files." - ``` + -* **Implement Persistent Storage in Kubernetes Using StatefulSets** +* *Implement Persistent Storage in Kubernetes Using StatefulSets* - ```text + text "Set up persistent storage in Kubernetes using StatefulSets. Configure PersistentVolumeClaims (PVC) and explain how it ensures data persistence. Return the YAML configuration files." - ``` + -* **Set Up Cloud Storage with Amazon S3** +* *Set Up Cloud Storage with Amazon S3* - ```text + text "Please provide the steps for setting up cloud storage using Amazon S3. Include how to create a bucket, set permissions, and manage files programmatically via AWS SDKs. Return the necessary code examples for integration." - ``` + -* **Implement Kubernetes Autoscaling** +* *Implement Kubernetes Autoscaling* - ```text + text "Set up Horizontal Pod Autoscaler (HPA) and Vertical Pod Autoscaler (VPA) in Kubernetes. Configure scaling policies based on CPU, memory, and custom metrics. Return the autoscaling configuration files." - ``` + -* **Create Kubernetes Ingress Controller Setup** +* *Create Kubernetes Ingress Controller Setup* - ```text + text "Configure an Ingress controller in Kubernetes using {ingress_controller}. Set up SSL termination, load balancing, and routing rules for multiple services. Return the Ingress configuration and setup instructions." - ``` + -* **Implement Kubernetes Secrets and ConfigMaps Management** +* *Implement Kubernetes Secrets and ConfigMaps Management* - ```text + text "Set up secrets and ConfigMaps management in Kubernetes. Include encryption at rest, secret rotation, and best practices for sensitive data handling. Return the configuration files and management scripts." - ``` + -* **Design Multi-Cloud Architecture Strategy** +* *Design Multi-Cloud Architecture Strategy* - ```text + text "Design a multi-cloud architecture strategy using {cloud_providers}. Include data replication, failover mechanisms, and cost optimization across different cloud platforms. Return the architecture design and implementation plan." - ``` + --- -### **5. Full-Stack Development** +### *5. Full-Stack Development* -* **Develop a Full-Stack Web Application Using Django and React** +* *Develop a Full-Stack Web Application Using Django and React* - ```text + text "Create a full-stack web application with Django as the backend and React for the frontend. Implement user authentication, RESTful API communication, and a simple CRUD interface. Return the project structure and code snippets." - ``` + -* **Integrate a Payment Gateway (Stripe) in a Full-Stack App** +* *Integrate a Payment Gateway (Stripe) in a Full-Stack App* - ```text + text "Integrate Stripe for handling payments in a full-stack application with Django and React. Set up the backend to handle payments and the frontend to interact with Stripe's API. Return the code for integration." - ``` + -* **Create a RESTful API with Express.js** +* *Create a RESTful API with Express.js* - ```text + text "Help me set up a RESTful API using Express.js. Define the necessary routes and controllers to support CRUD operations for a {resource}. Return the implementation of the API with explanations for each endpoint." - ``` + -* **Implement Real-Time Updates with WebSockets** +* *Implement Real-Time Updates with WebSockets* - ```text + text "Set up real-time updates in the application using WebSockets. Provide the necessary code for both the server (using socket.io or similar) and the frontend to enable live updates." - ``` + -* **Test Backend and Frontend for Regression Using Keploy** +* *Test Backend and Frontend for Regression Using Keploy* - ```text + text "Set up Keploy in your full-stack application to test both the backend and frontend after an update. Configure Keploy for automatic integration testing, focusing on testing API endpoints, data handling, and the interaction between the frontend and backend. Ensure that Keploy is set to capture all changes in the API response, including edge cases, and validate that the frontend works correctly with the updated backend. Return the setup configuration and steps to trigger Keploy for testing." - ``` + -* **Implement Server-Side Rendering with Next.js** +* *Implement Server-Side Rendering with Next.js* - ```text + text "Set up server-side rendering (SSR) for a React application using Next.js. Include dynamic routing, API routes, and optimization for SEO. Return the Next.js configuration and example pages." - ``` + -* **Create GraphQL API with Apollo Server** +* *Create GraphQL API with Apollo Server* - ```text + text "Implement a GraphQL API using Apollo Server for {application}. Define schemas, resolvers, and mutations for CRUD operations. Include authentication and error handling. Return the complete GraphQL implementation." - ``` + -* **Implement Microservices Architecture** +* *Implement Microservices Architecture* - ```text + text "Design and implement a microservices architecture for {application}. Include service discovery, API gateway, inter-service communication, and data consistency patterns. Return the architecture design and implementation." - ``` + --- -### **6. UX/UI & Design** +### *6. UX/UI & Design* -* **Provide UX/UI Design Advice** +* *Provide UX/UI Design Advice* - ```text + text "Provide UX/UI design recommendations for the provided {website/app}. Focus on improving usability, accessibility, and aesthetics. Return a list of specific design improvements with examples where necessary." - ``` + -* **Create Responsive Design System** +* *Create Responsive Design System* - ```text + text "Design a comprehensive design system for {application} including color palette, typography, component library, and responsive breakpoints. Return the design system documentation and CSS/styled-components implementation." - ``` + -* **Implement Accessibility (A11y) Improvements** +* *Implement Accessibility (A11y) Improvements* - ```text + text "Audit the provided {website/application} for accessibility compliance and implement WCAG 2.1 AA standards. Include ARIA labels, keyboard navigation, screen reader compatibility, and color contrast improvements. Return the accessibility implementation and testing checklist." - ``` + -* **Design Progressive Web App (PWA) Features** +* *Design Progressive Web App (PWA) Features* - ```text + text "Convert the existing web application into a Progressive Web App (PWA). Implement service workers, offline functionality, push notifications, and app manifest. Return the PWA implementation and configuration files." - ``` + --- -### **7. Security & Authentication** +### *7. Security & Authentication* -* **Offer Security Best Practices** +* *Offer Security Best Practices* - ```text + text "Provide a list of security best practices for {application_type}. Focus on areas like authentication, authorization, data protection, and secure coding practices. Return actionable advice with examples where necessary." - ``` + -* **Implement JWT-Based Authentication** +* *Implement JWT-Based Authentication* - ```text + text "Implement JSON Web Token (JWT) authentication in the provided application. The system should handle token generation, validation, and secure access to protected routes. Return the code with explanations." - ``` + -* **Implement OAuth 2.0 with Social Login** +* *Implement OAuth 2.0 with Social Login* - ```text + text "Set up OAuth 2.0 authentication with social login providers (Google, Facebook, GitHub) for {application}. Include token validation, user profile management, and security best practices. Return the implementation code." - ``` + -* **Perform Security Vulnerability Assessment** +* *Perform Security Vulnerability Assessment* - ```text + text "Conduct a security vulnerability assessment of the provided application. Check for common vulnerabilities like SQL injection, XSS, CSRF, and insecure dependencies. Return a security report with remediation recommendations." - ``` + -* **Implement Rate Limiting and DDoS Protection** +* *Implement Rate Limiting and DDoS Protection* - ```text + text "Implement rate limiting and DDoS protection for {application} using {rate_limiting_tool}. Configure request throttling, IP blocking, and monitoring. Return the security configuration and implementation." - ``` + -* **Set up Web Application Firewall (WAF)** +* *Set up Web Application Firewall (WAF)* - ```text + text "Configure a Web Application Firewall (WAF) for {application} using {WAF_provider}. Set up rules for common attacks, custom filtering, and monitoring. Return the WAF configuration and security policies." - ``` + --- -### **8. Event-Driven Architecture & Integration** +### *8. Event-Driven Architecture & Integration* -* **Set Up an Event-Driven Architecture with Kafka** +* *Set Up an Event-Driven Architecture with Kafka* - ```text + text "Set up an event-driven architecture with Kafka. Define the Kafka topics, producers, and consumers to handle real-time data processing. Return the code with configuration details." - ``` + -* **Help Integrate Third-Party Services** +* *Help Integrate Third-Party Services* - ```text + text "Integrate {third_party_service} into the existing project. Provide step-by-step instructions for setup, authentication, and API interaction. Return the integration code with explanations of how it works." - ``` + -* **Implement Event Sourcing Pattern** +* *Implement Event Sourcing Pattern* - ```text + text "Implement event sourcing pattern for {application} using {event_store}. Design event schemas, aggregate handling, and event replay mechanisms. Return the event sourcing implementation and configuration." - ``` + -* **Create Message Queue System with RabbitMQ** +* *Create Message Queue System with RabbitMQ* - ```text + text "Set up a message queue system using RabbitMQ for {use_case}. Configure exchanges, queues, routing keys, and dead letter queues. Return the RabbitMQ setup and producer/consumer code." - ``` + --- -### **9. Content Creation & Marketing** +### *9. Content Creation & Marketing* -* **Create a Personal Portfolio Website** +* *Create a Personal Portfolio Website* - ```text + text "Help me build a personal portfolio website. The site should include sections for my bio, projects, skills, and contact information. Make sure it's responsive and easy to navigate. Return the basic HTML/CSS/JS code for the website." - ``` + -* **Write SEO-Optimized Blog Content** +* *Write SEO-Optimized Blog Content* - ```text + text "Generate a blog post on {topic} optimized for SEO. Use keyword research to include high-traffic keywords naturally, structure the post with headings and subheadings, and ensure it is engaging and informative. Return the content with SEO suggestions." - ``` + -* **Generate LinkedIn Summary and Job Descriptions** +* *Generate LinkedIn Summary and Job Descriptions* - ```text + text "Generate a compelling LinkedIn summary and job description based on the following details: {job_title}, {skills}, {experience}. Ensure the summary is concise, professional, and highlights key achievements." - ``` + -* **Create Technical Documentation Website** +* *Create Technical Documentation Website* - ```text + text "Build a technical documentation website using {documentation_tool} for {project}. Include API documentation, tutorials, code examples, and search functionality. Return the documentation structure and configuration." - ``` + -* **Implement Content Management System (CMS)** +* *Implement Content Management System (CMS)* - ```text + text "Set up a content management system using {CMS_platform} for {website_type}. Configure custom content types, user roles, and publishing workflows. Return the CMS setup and customization code." - ``` + --- -### **10. Infrastructure & System Administration** +### *10. Infrastructure & System Administration* -* **Create an Infrastructure as Code (IaC) for AWS with CloudFormation** +* *Create an Infrastructure as Code (IaC) for AWS with CloudFormation* - ```text + text "Write infrastructure-as-code (IaC) for AWS using CloudFormation. Automate the provisioning of resources such as EC2, RDS, and S3 for {application}. Return the CloudFormation templates with explanations." - ``` + -* **Set Up Serverless Architecture with Google Cloud Functions** +* *Set Up Serverless Architecture with Google Cloud Functions* - ```text + text "Create a serverless architecture using Google Cloud Functions for {task}. The functions should trigger based on specific events and return the necessary code with setup instructions." - ``` + -* **Implement Infrastructure Monitoring with Terraform** +* *Implement Infrastructure Monitoring with Terraform* - ```text + text "Create Terraform configurations for provisioning and monitoring infrastructure on {cloud_provider}. Include resource monitoring, alerting, and cost tracking. Return the Terraform modules and monitoring setup." - ``` + -* **Set up Load Balancer Configuration** +* *Set up Load Balancer Configuration* - ```text + text "Configure load balancers for {application} using {load_balancer_type}. Set up health checks, SSL termination, and traffic distribution algorithms. Return the load balancer configuration and setup instructions." - ``` + --- -### **11. System Monitoring & Debugging** +### *11. System Monitoring & Debugging* -* **Debug Performance Issues in Production Systems** +* *Debug Performance Issues in Production Systems* - ```text + text "Analyze the performance of the production system and identify bottlenecks. Suggest and implement optimizations to improve speed, reduce memory usage, and increase scalability. Return the optimized code and explanations." - ``` + -* **Set up Application Performance Monitoring (APM)** +* *Set up Application Performance Monitoring (APM)* - ```text + text "Implement application performance monitoring using {APM_tool} for {application}. Configure performance metrics, error tracking, and alerting. Return the APM setup and dashboard configuration." - ``` + -* **Create Log Aggregation and Analysis System** +* *Create Log Aggregation and Analysis System* - ```text + text "Set up log aggregation and analysis using {logging_stack} (e.g., ELK Stack). Configure log parsing, indexing, and visualization dashboards. Return the logging infrastructure setup and configuration." - ``` + -* **Implement Distributed Tracing** +* *Implement Distributed Tracing* - ```text + text "Set up distributed tracing for microservices using {tracing_tool} (e.g., Jaeger, Zipkin). Configure trace collection, analysis, and performance monitoring across services. Return the tracing implementation and configuration." - ``` + --- -### **12. Web Development** +### *12. Web Development* -* **Write Tests for Front-End Components** +* *Write Tests for Front-End Components* - ```text + text "Write unit and integration tests for the provided front-end components using {testing_framework}. Ensure the tests cover all major use cases and edge cases. Return the test code with explanations." - ``` + -* **Implement Advanced CSS Animations and Transitions** +* *Implement Advanced CSS Animations and Transitions* - ```text + text "Create advanced CSS animations and transitions for {website_elements}. Include keyframe animations, transform effects, and performance optimizations. Return the CSS code with explanations and examples." - ``` + -* **Set up Modern JavaScript Build Pipeline** +* *Set up Modern JavaScript Build Pipeline* - ```text + text "Configure a modern JavaScript build pipeline using {build_tool} (e.g., Webpack, Vite, Rollup). Include code splitting, tree shaking, and optimization plugins. Return the build configuration and setup instructions." - ``` + -* **Implement Web Performance Optimization** +* *Implement Web Performance Optimization* - ```text + text "Optimize web performance for {website/application}. Include lazy loading, image optimization, code splitting, and caching strategies. Return the optimization implementation and performance metrics." - ``` + --- -### **13. API Development** +### *13. API Development* -* **Generate OpenAPI Schema from Source Code** +* *Generate OpenAPI Schema from Source Code* - ```text + text "Given the following source code for a RESTful API implemented in {programming_language} with endpoints {list_of_endpoints}, generate an OpenAPI 3.0 schema that describes the API. The schema should include paths, request/response parameters, status codes, authentication methods, and other relevant details. Return the complete OpenAPI schema in YAML format." - ``` + -* **Generate Curl Commands for Testing OpenAPI Endpoints** +* *Generate Curl Commands for Testing OpenAPI Endpoints* - ```text + text "For the OpenAPI schema provided, generate `curl` commands to test the endpoints. Include examples for GET, POST, PUT, and DELETE requests. The `curl` commands should include the correct headers, body content (for POST/PUT), and any required authentication tokens (if applicable)." - ``` + -* **Generate OpenAPI Schema for a Custom API with Source Code** +* *Generate OpenAPI Schema for a Custom API with Source Code* - ```text + text "Given the following source code for an API implemented in {programming_language}, generate the OpenAPI schema for this API. The schema should cover all routes, parameters, request/response types, and status codes. Include both request body and query parameters where applicable, and provide the schema in YAML format." - ``` + -* **Create OpenAPI Schema and Curl Commands for a CRUD API** +* *Create OpenAPI Schema and Curl Commands for a CRUD API* - ```text + text "Create an OpenAPI schema for a simple CRUD API with the following endpoints: `GET /items`, `POST /items`, `PUT /items/{id}`, and `DELETE /items/{id}`. Based on the schema, generate `curl` commands to test these endpoints with sample data, including headers and request bodies as necessary." - ``` + -* **Generate OpenAPI Schema for a Node.js API and Curl Examples** +* *Generate OpenAPI Schema for a Node.js API and Curl Examples* - ```text + text "Given the following source code for a Node.js API using Express, generate the corresponding OpenAPI 3.0 schema. Then, create `curl` commands to test each endpoint in the API, covering all HTTP methods (GET, POST, PUT, DELETE) and including sample request bodies for each method." - ``` + -* **Keploy CI/CD Integration Setup** +* *Keploy CI/CD Integration Setup* - ```text + text "Set up a CI/CD pipeline to automatically run Keploy tests as part of the deployment process. Include configuration for GitHub Actions or Jenkins to run tests whenever new code is pushed to the repository." - ``` + -* **Implement API Rate Limiting and Throttling** +* *Implement API Rate Limiting and Throttling* - ```text + text "Implement rate limiting and throttling for {API} using {rate_limiting_library}. Configure different rate limits for different endpoints and user tiers. Return the rate limiting implementation and configuration." - ``` + -* **Create API Gateway Configuration** +* *Create API Gateway Configuration* - ```text + text "Set up an API Gateway for microservices using {gateway_tool}. Configure routing, authentication, rate limiting, and request/response transformation. Return the gateway configuration and deployment instructions." - ``` + -* **Implement API Versioning Strategy** +* *Implement API Versioning Strategy* - ```text + text "Design and implement an API versioning strategy for {API}. Include URL versioning, header versioning, and backward compatibility handling. Return the versioning implementation and migration guide." - ``` + --- -### **14. Mobile Development** +### *14. Mobile Development* -* **Create React Native Cross-Platform App** +* *Create React Native Cross-Platform App* - ```text + text "Develop a cross-platform mobile application using React Native for {app_description}. Include navigation, state management, and platform-specific optimizations. Return the app structure and key components." - ``` + -* **Implement Mobile App Authentication** +* *Implement Mobile App Authentication* - ```text + text "Implement authentication for a mobile app using {authentication_method}. Include biometric authentication, secure token storage, and session management. Return the authentication implementation for {platform}." - ``` + -* **Set up Mobile App Push Notifications** +* *Set up Mobile App Push Notifications* - ```text + text "Configure push notifications for a mobile app using {notification_service} (e.g., Firebase Cloud Messaging). Include notification scheduling, targeting, and analytics. Return the push notification setup and implementation." - ``` + -* **Optimize Mobile App Performance** +* *Optimize Mobile App Performance* - ```text + text "Optimize performance for a {platform} mobile app. Include memory management, rendering optimizations, and battery usage improvements. Return the optimization strategies and implementation code." - ``` + -* **Implement Mobile App Offline Functionality** +* *Implement Mobile App Offline Functionality* - ```text + text "Implement offline functionality for a mobile app including data synchronization, offline storage, and conflict resolution. Use {offline_storage_solution} and return the offline implementation strategy and code." - ``` + -* **Create Mobile App CI/CD Pipeline** +* *Create Mobile App CI/CD Pipeline* - ```text + text "Set up a CI/CD pipeline for mobile app deployment using {CI_tool}. Include automated building, testing, and deployment to app stores. Return the pipeline configuration and deployment scripts." - ``` + --- -### **15. Machine Learning & AI** +### *15. Machine Learning & AI* -* **Implement Machine Learning Model Training Pipeline** +* *Implement Machine Learning Model Training Pipeline* - ```text + text "Create a machine learning pipeline for {ml_task} using {ml_framework}. Include data preprocessing, model training, validation, and hyperparameter tuning. Return the complete pipeline code and configuration." - ``` + -* **Deploy ML Model with REST API** +* *Deploy ML Model with REST API* - ```text + text "Deploy a trained machine learning model as a REST API using {deployment_framework}. Include model serving, request validation, and response formatting. Return the deployment code and API documentation." - ``` + -* **Implement Data Preprocessing for Machine Learning** +* *Implement Data Preprocessing for Machine Learning* - ```text + text "Implement comprehensive data preprocessing for {dataset_type}. Include data cleaning, feature engineering, encoding, and normalization. Return the preprocessing pipeline and data quality checks." - ``` + -* **Create MLOps Pipeline with Model Versioning** +* *Create MLOps Pipeline with Model Versioning* - ```text + text "Set up an MLOps pipeline with model versioning using {mlops_tool}. Include experiment tracking, model registry, and automated deployment. Return the MLOps configuration and workflow." - ``` + -* **Implement Real-time ML Inference** +* *Implement Real-time ML Inference* - ```text + text "Set up real-time machine learning inference for {use_case} using {streaming_platform}. Include data streaming, model serving, and result processing. Return the real-time inference implementation." - ``` + -* **Create AI Chatbot with Natural Language Processing** +* *Create AI Chatbot with Natural Language Processing* - ```text + text "Develop an AI chatbot using {nlp_framework} for {domain}. Include intent recognition, entity extraction, and conversation management. Return the chatbot implementation and training data structure." - ``` + -* **Implement Computer Vision Pipeline** +* *Implement Computer Vision Pipeline* - ```text + text "Create a computer vision pipeline for {cv_task} using {cv_framework}. Include image preprocessing, model inference, and result visualization. Return the complete computer vision solution." - ``` + --- -### **16. Data Engineering & Analytics** +### *16. Data Engineering & Analytics* -* **Design Data Lake Architecture** +* *Design Data Lake Architecture* - ```text + text "Design a data lake architecture for {organization} using {cloud_provider}. Include data ingestion, storage layers, processing engines, and governance. Return the architecture design and implementation plan." - ``` + -* **Create ETL Pipeline with Apache Airflow** +* *Create ETL Pipeline with Apache Airflow* - ```text + text "Build an ETL pipeline using Apache Airflow for {data_source} to {destination}. Include data extraction, transformation, validation, and scheduling. Return the Airflow DAG and pipeline configuration." - ``` + -* **Implement Real-time Data Streaming** +* *Implement Real-time Data Streaming* - ```text + text "Set up real-time data streaming pipeline using {streaming_technology}. Include data ingestion, processing, and analytics. Return the streaming pipeline implementation and monitoring setup." - ``` + -* **Create Data Warehouse Schema Design** +* *Create Data Warehouse Schema Design* - ```text + text "Design a data warehouse schema for {business_domain} using {dimensional_modeling_approach}. Include fact tables, dimension tables, and ETL processes. Return the schema design and implementation scripts." - ``` + -* **Implement Data Quality Monitoring** +* *Implement Data Quality Monitoring* - ```text + text "Set up data quality monitoring and validation for {data_pipeline}. Include data profiling, anomaly detection, and quality metrics. Return the data quality framework and monitoring dashboards." - ``` + -* **Create Analytics Dashboard with BI Tools** +* *Create Analytics Dashboard with BI Tools* - ```text + text "Build analytics dashboards using {bi_tool} for {business_metrics}. Include data connections, visualizations, and interactive filtering. Return the dashboard configuration and deployment guide." - ``` + --- -### **17. Performance Optimization** +### *17. Performance Optimization* -* **Optimize Database Query Performance** +* *Optimize Database Query Performance* - ```text + text "Analyze and optimize slow database queries for {database_system}. Include query plan analysis, index optimization, and query rewriting. Return the optimized queries and performance improvements." - ``` + -* **Implement Application Caching Strategy** +* *Implement Application Caching Strategy* - ```text + text "Design and implement a caching strategy for {application} using {caching_solution}. Include cache invalidation, TTL configuration, and cache warming. Return the caching implementation and configuration." - ``` + -* **Optimize Frontend Bundle Size** +* *Optimize Frontend Bundle Size* - ```text + text "Optimize frontend bundle size for {web_application}. Include code splitting, tree shaking, lazy loading, and compression techniques. Return the optimization configuration and performance metrics." - ``` + -* **Implement CDN and Static Asset Optimization** +* *Implement CDN and Static Asset Optimization* - ```text + text "Set up CDN and optimize static assets for {website}. Include image optimization, minification, and cache headers configuration. Return the CDN setup and asset optimization pipeline." - ``` + -* **Create Performance Testing Suite** +* *Create Performance Testing Suite* - ```text + text "Create a comprehensive performance testing suite for {application} using {testing_tool}. Include load testing, stress testing, and performance monitoring. Return the test scripts and reporting setup." - ``` + --- -### **18. Quality Assurance & Testing** +### *18. Quality Assurance & Testing* -* **Implement Automated Testing Framework** +* *Implement Automated Testing Framework* - ```text + text "Set up an automated testing framework for {application} using {testing_framework}. Include unit tests, integration tests, and end-to-end tests. Return the testing setup and example test cases." - ``` + -* **Create API Testing Suite** +* *Create API Testing Suite* - ```text + text "Develop comprehensive API testing suite for {api} using {api_testing_tool}. Include functional testing, contract testing, and performance testing. Return the test suite and execution configuration." - ``` + -* **Implement Visual Regression Testing** +* *Implement Visual Regression Testing* - ```text + text "Set up visual regression testing for {web_application} using {visual_testing_tool}. Include screenshot comparison, responsive testing, and CI integration. Return the visual testing setup and configuration." - ``` + -* **Create Test Data Management Strategy** +* *Create Test Data Management Strategy* - ```text + text "Design test data management strategy for {application}. Include test data generation, anonymization, and environment management. Return the test data framework and management tools." - ``` + -* **Implement Behavior-Driven Development (BDD)** +* *Implement Behavior-Driven Development (BDD)* - ```text + text "Set up Behavior-Driven Development framework using {bdd_tool} for {project}. Include feature specifications, step definitions, and test execution. Return the BDD implementation and example scenarios." - ``` + --- -### **19. Blockchain & Web3** +### *19. Blockchain & Web3* -* **Create Smart Contract Development Environment** +* *Create Smart Contract Development Environment* - ```text + text "Set up a smart contract development environment for {blockchain_platform}. Include development tools, testing framework, and deployment scripts. Return the development setup and example contracts." - ``` + -* **Implement DeFi Protocol Integration** +* *Implement DeFi Protocol Integration* - ```text + text "Integrate with DeFi protocols for {use_case}. Include wallet connection, transaction handling, and protocol interactions. Return the DeFi integration code and security considerations." - ``` + -* **Create NFT Marketplace** +* *Create NFT Marketplace* - ```text + text "Build an NFT marketplace on {blockchain_platform}. Include smart contracts, frontend interface, and IPFS integration. Return the marketplace implementation and deployment guide." - ``` + -* **Implement Blockchain Data Indexing** +* *Implement Blockchain Data Indexing* - ```text + text "Set up blockchain data indexing and querying using {indexing_solution}. Include event monitoring, data transformation, and API creation. Return the indexing implementation and query interface." - ``` + --- -### **20. IoT & Embedded Systems** +### *20. IoT & Embedded Systems* -* **Create IoT Device Communication Protocol** +* *Create IoT Device Communication Protocol* - ```text + text "Implement communication protocol for IoT devices using {protocol}. Include device registration, data transmission, and security measures. Return the protocol implementation and device code." - ``` + -* **Set up IoT Data Pipeline** +* *Set up IoT Data Pipeline* - ```text + text "Build IoT data pipeline for sensor data processing. Include data ingestion, real-time processing, and storage. Return the pipeline architecture and implementation code." - ``` + -* **Implement Edge Computing Solution** +* *Implement Edge Computing Solution* - ```text + text "Design edge computing solution for {iot_use_case}. Include edge device configuration, local processing, and cloud synchronization. Return the edge computing implementation and deployment guide." - ``` + -* **Create IoT Device Management System** +* *Create IoT Device Management System* - ```text + text "Build IoT device management system for {device_fleet}. Include device provisioning, monitoring, and over-the-air updates. Return the management system implementation and device integration." - ``` + --- -### **21. Game Development** +### *21. Game Development* -* **Create Game Engine Architecture** +* *Create Game Engine Architecture* - ```text + text "Design game engine architecture for {game_type} using {game_framework}. Include rendering system, physics engine, and asset management. Return the engine design and core components." - ``` + -* **Implement Multiplayer Game Networking** +* *Implement Multiplayer Game Networking* - ```text + text "Set up multiplayer networking for {game_type}. Include client-server architecture, state synchronization, and lag compensation. Return the networking implementation and server setup." - ``` + -* **Create Game Analytics and Telemetry** +* *Create Game Analytics and Telemetry* - ```text + text "Implement game analytics and telemetry system for {game}. Include player behavior tracking, performance metrics, and monetization analytics. Return the analytics implementation and dashboard setup." - ``` + -* **Optimize Game Performance** +* *Optimize Game Performance* - ```text + text "Optimize game performance for {platform}. Include rendering optimizations, memory management, and frame rate improvements. Return the optimization strategies and implementation code." - ``` + --- -### **22. Legacy System Modernization** +### *22. Legacy System Modernization* -* **Create Legacy System Migration Strategy** +* *Create Legacy System Migration Strategy* - ```text + text "Design migration strategy for legacy system {legacy_system} to modern architecture. Include risk assessment, migration phases, and rollback procedures. Return the migration plan and implementation roadmap." - ``` + -* **Implement API Gateway for Legacy Integration** +* *Implement API Gateway for Legacy Integration* - ```text + text "Create API gateway to integrate legacy systems with modern applications. Include protocol translation, data transformation, and security layers. Return the gateway implementation and integration guide." - ``` + -* **Refactor Monolith to Microservices** +* *Refactor Monolith to Microservices* - ```text + text "Plan and implement refactoring of monolithic application to microservices architecture. Include service boundaries, data separation, and deployment strategy. Return the refactoring plan and implementation steps." - ``` + -* **Implement Strangler Fig Pattern** +* *Implement Strangler Fig Pattern* - ```text + text "Implement Strangler Fig pattern for gradual legacy system replacement. Include proxy setup, traffic routing, and feature migration. Return the pattern implementation and migration strategy." - ``` + --- ## Advanced Prompt Combinations -### **Cross-Domain Integration Prompts** +### *Cross-Domain Integration Prompts* -* **Full-Stack Application with ML Integration** +* *Full-Stack Application with ML Integration* - ```text + text "Create a full-stack application that integrates machine learning capabilities. Include model serving API, real-time predictions, and result visualization. The application should use {frontend_framework} for UI, {backend_framework} for API, and {ml_framework} for model serving. Return the complete application architecture and implementation." - ``` + -* **Cloud-Native Application with Advanced Monitoring** +* *Cloud-Native Application with Advanced Monitoring* - ```text + text "Build a cloud-native application with comprehensive monitoring and observability. Include distributed tracing, metrics collection, log aggregation, and alerting. Deploy on {cloud_platform} with {container_orchestration}. Return the application code, infrastructure configuration, and monitoring setup." - ``` + -* **Secure API Gateway with Authentication and Analytics** +* *Secure API Gateway with Authentication and Analytics* - ```text + text "Implement a secure API gateway with OAuth2 authentication, rate limiting, and analytics. Include JWT validation, request/response transformation, and usage analytics. Use {gateway_technology} and integrate with {analytics_platform}. Return the gateway configuration and security implementation." - ``` + -* **Real-time Data Processing with Event-Driven Architecture** +* *Real-time Data Processing with Event-Driven Architecture* - ```text + text "Design real-time data processing system using event-driven architecture. Include data ingestion, stream processing, event sourcing, and real-time analytics. Use {streaming_platform} for events and {processing_framework} for computations. Return the architecture design and implementation code." - ``` + -* **DevSecOps Pipeline with Automated Security Testing** +* *DevSecOps Pipeline with Automated Security Testing* - ```text + text "Create a DevSecOps pipeline that integrates security testing throughout the development lifecycle. Include SAST, DAST, dependency scanning, and compliance checks. Use {ci_cd_platform} and {security_tools}. Return the pipeline configuration and security automation scripts." - ``` + ---- +--- \ No newline at end of file