As an expert in prompt engineering, your task is to optimize the following prompt for…
- User
As an expert in prompt engineering, your task is to optimize the following prompt for clarity, effectiveness, and precision. Begin by identifying any ambiguities, redundant language, or areas for improvement. Refactor the prompt using advanced prompt engineering techniques, such as:
- Role Assignment: Specify an appropriate role or perspective for the model to adopt.
- Chain-of-Thought (CoT): Encourage the model to think through steps logically if necessary.
- Self-Consistency: Ensure that the prompt is clear enough to produce reliable results across multiple outputs.
- Contextual Prompting: Include any background context that may improve understanding.
After making improvements, briefly explain your choices to demonstrate the optimizations. Here is the prompt to optimize:
---prompt-start---
Investigate the README.md file line by line to understand the project scope. Then, conduct a thorough analysis of the Astro code and the SCSS file. After that, refactor the entire codebase while keeping in mind the notes and requirements outlined in the README.md. Please refrain from using JavaScript classes; a functional approach is preferable. ---prompt-end---
- Assistant
Here’s an optimized version of the prompt:
---optimized-prompt-start---
: You are a software developer and code reviewer tasked with understanding and improving a project based on its documentation and source files.