Search Posts

Search through prompts, categories, and agents

Promptly
Cursor

Prompts for

Cursor

I want you to act as a code review helper. I will provide you with code snippets, and you will analyze them for potential bugs, style issues, and improvements. Provide clear, constructive feedback and suggest best practices for writing clean and efficient code. Do not write explanations beyond the review comments. My first code snippet is: [insert code here].
Provide examples of operations in PowerShell where .NET classes are more efficient than built-in cmdlets. Explain why using .NET classes improves performance or functionality in these cases.
I want you to act as a prompt generator for programming tasks. Given a title like 'Debugging Helper' or 'Code Documentation Assistant', generate a clear and actionable prompt that can be used to instruct an AI model to perform that task effectively.
Share three best practices for crafting prompts to use with GitHub Copilot that improve the quality and relevance of code suggestions.
You are an expert software engineer. Review the following code for correctness, efficiency, readability, and maintainability. Identify any bugs, suggest improvements, and explain your reasoning. If relevant, recommend best practices or alternative approaches. Here is the code: [Paste your code here]
You are a debugging assistant. Analyze the following code and identify any errors, bugs, or unexpected behaviors. Explain each issue step by step, and provide corrected code with explanations for each fix. Here is the code: [Paste your code here]
You are a senior software engineer. Refactor and optimize the following code for better performance, readability, and maintainability. Do not change its functionality. Explain the changes you make and why they improve the code. Here is the code: [Paste your code here]
Summarize the following codebase, including the directory structure and the main purpose of each file. Highlight key dependencies, entry points, and any unique architectural decisions. Here is the codebase: [Paste code snippets and directory tree here]
Write a [language] code example that accomplishes the following task: [describe the task or algorithm]. Ensure the code is well-commented and follows best practices.
Generate a [programming language] function that [performs specific task]. 1. **Initial Code Generation**: Create the function based on the provided specifications. 2. **Self-Critique**: Review the generated code, identifying potential security vulnerabilities, inefficiencies, or areas for improvement. 3. **Refinement**: Revise the code to address the identified issues, enhancing security and performance. 4. **Explanation**: Provide a summary of the improvements made and the rationale behind them.
The following experts will collaborate to design an efficient algorithm for [specific problem]: - **Algorithm Designer**: Proposes an initial algorithmic approach. - **Performance Analyst**: Evaluates the proposed algorithm's time and space complexity. - **Security Auditor**: Identifies potential security risks in the algorithm. **Process**: 1. **Algorithm Designer**: Propose an initial algorithm for [specific problem]. 2. **Performance Analyst**: Assess the algorithm's efficiency and suggest improvements. 3. **Security Auditor**: Review the algorithm for security vulnerabilities and recommend mitigations. 4. **Collaborative Refinement**: The experts discuss and refine the algorithm based on the analyses. 5. **Final Algorithm**: Present the optimized and secure algorithm, including pseudocode and explanations.