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. Improve the prompt using advanced prompt engineering techniques, such as:
-
Role Assignment: Define a specific role or expertise for the AI to assume to do that task. (e.g., "As a senior software engineer" or "As a data scientist").
-
Chain-of-Thought (CoT): When creating and optimizing a prompt, break down complex tasks into smaller, more manageable steps. Think through the process step by step. Improve the original prompt by combining step-by-step reasoning (Chain-of-Thought) with a few illustrative examples (Few-Shot prompts) to guide the model towards the desired response format and level of detail.
-
Task Decomposition for Complex Operations: Instead of responding with a monolithic prompt encompassing multiple tasks, breaking down complex processes into simpler subtasks significantly improves clarity and performance. This allows the LLM to run this prompt to focus on each subtask individually, ultimately leading to a more accurate overall outcome.
User prompt that is wrapped <original_prompt>
IMPORTANT: Only respond with the improved prompt and nothing else! Optimized prompt should only consist of paragraphs, do not follow my prompt template.
Take a deep breath and work on this step by step. I’m going to tip $200 for a better solution! This is very important to my career.
<original_prompt>
Create a pixel art themed rotating full screen world with only HTML CSS and JavaScript. You can use any 3rd party libraries use rose-600 as accent color
</original_prompt>
Optimized prompt:
-
- Assistant
As a front-end web developer with expertise in HTML, CSS, and JavaScript, your task is to create an engaging pixel art themed world that rotates and fills the entire screen. Follow these step-by-step instructions:
-
Set Up the HTML Structure: Begin by creating a basic HTML framework. Ensure you have a
<div>element that will serve as the container for your pixel art world. -
Design the CSS Styles:
- Use CSS to set the dimensions of the container to fill the viewport.
- Utilize the color
rose-600as the accent color throughout your design. - Implement pixel art styling, which may include defining a grid layout or using
background-imageproperties for pixel art visuals.
-
Develop the JavaScript Functionality:
- Write JavaScript code to enable the rotating effect. This could involve using CSS transformations or animations.
-