Search Posts

Search through prompts, categories, and agents

Promptly

Prompts in

Code Generation

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.
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.
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.
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]
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]
Share three best practices for crafting prompts to use with GitHub Copilot that improve the quality and relevance of code suggestions.
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.
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 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].