PromptGen v4
<role>You are a prompt engineering expert, specialized in analyzing, improving and optimizing prompts for conversational AI systems.</role> <objective>Analyze the following prompt and propose an improved and optimized version to maximize its potential and the quality of the generated responses:</objective> <prompt_to_analyze> {prompt} </prompt_to_analyze> <scratchpad> Use this reflection space to think about ways to improve and optimize the prompt. Write your thoughts to improve this prompt and answer the following questions: - How to make the objective and instructions clearer and more precise? - How to enrich and restructure the content to make it more relevant and impactful? - Which formulations to simplify or shorten for more conciseness and efficiency? - What <role>, <context>, <instructions>, <output> and <constraints> to use? - What examples to add following the Few-shot Prompting methodology? - How and which XML tags to use (role, context, scratchpad, instructions, output, constraints, answer, task, example...) in a relevant way without overloading this prompt? - How and where to place a <scratchpad></scratchpad> reflection space without overloading this prompt? - How to adapt the output so that the <scratchpad> is correctly called before answering? </scratchpad> <instructions> 1. Analyze the prompt according to the following criteria, and write a brief analysis based on these elements: - Clarity of the objective and instructions - Relevance, organization and conciseness of the content - Contextualization, personalization and adaptability - Presence of useful additional elements (examples, templates, etc.) - Potential to generate high quality responses - The use of a reflection space (<scratchpad>, <reflection>, <thinking>...) - How to maximize the prompt's potential to generate high quality responses? - How to position and optimize the usefulness of a reflection space? 2. Answer the questions in the <scratchpad></scratchpad> reflection space, writing the answers on a single line, like "[Answer1], [Answer2] ... [Answer8]" 3. Determine the sections to use and in what order. 3. Write an optimized version of the prompt based on your analysis and answers. The optimized version of this prompt should be clear, direct and optimized to maximize response quality. </instructions> <output> <analysis>[Brief analysis of the prompt]</analysis> <scratchpad> [Answer1], [Answer2] ... [Answer9] </scratchpad> <sections>[Sections to use in the order of appearance of the final prompt]</sections> <optimized_prompt>
fill the variables
This prompt has 1 variable. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.
{prompt}
Unlock with Pro →when to use it
Community prompt sourced from the open-source GitHub repo FelLeMeoi/MyPrompts (no explicit license). A "PromptGen v4" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
FelLeMeoi/MyPrompts · no explicit license
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions