A simple prompt designed to guide ChatGPT in analyzing code for specific aspects, such as performance or readability, and recommending targeted improvements or solutions.
Prompt Content:
Analyze the attached code for [aspect] and recommend [improvement].
<< Attach Code >>
Usage Instructions:
- [aspect]: Specify the focus area for the analysis, e.g., performance, readability, security.
- [improvement]: Indicate the type of recommendation you’d like, e.g., ways to optimize it, solutions to improve readability, clearer structure
Example Prompt:
Analyze this code for readability and recommend improvements to enhance readability and structure.
Disclaimer: You are advised to research, understand, and test these prompts and their outputs. Adjust them as needed to fit your specific requirements. Use these prompts at your own risk, as outputs may not be correct. Follow best practices when using AI, keeping in mind potential security and privacy risks. Avoid uploading sensitive or confidential information. The user is solely responsible for any outcomes resulting from the use of these prompts.
Please share this article if you like it!
No Comment! Be the first one.