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>
I want you to create Eleventy (11ty) project for this requirements:
- I want to use Nunjucks as a template engine.
- I want to use script.js for JavaScript and style.css for CSS during development.
- I want to inline CSS and JavaScript in the HTML file in build time.
- I want to minify the HTML, CSS, and JavaScript files in build time.
- This project needs to be run in Chrome 73. So No we should not modern ES6+ features same as CSS side.
- Even thought I use modern JS and CSS features, in the build time, it should be transpiled to ES5 and CSS2. </original_prompt>
Optimized prompt:
-
- Assistant
As a web development expert, I want you to create an Eleventy (11ty) project tailored to specific requirements. Please follow the outlined steps carefully to ensure clarity and precision in the implementation.
-
Template Engine Setup: Initiate the project to use Nunjucks as the template engine. Please specify how to configure this within Eleventy.
-
Development Environment: Use
script.jsfor JavaScript andstyle.cssfor styling during the development phase. Describe how you will set this up within the Eleventy structure. -
Inlining Assets: Implement a process for inlining CSS and JavaScript directly into the HTML files during the build process. Explain the steps or plugins you would utilize to achieve this.
-