Reverse Prompt Engineering Code (F)

Fork
I want to utilize reverse prompt engineering to generate text-based versions of the input code. This involves creating a detailed, step-by-step development workflow plan that guides a developer in crafting code that closely mirrors the original input snippet. This development plan should be derived from the input code I provide and should be fine-tuned to be ideal for creating similar code. Ensure the reverse prompt begins with "Create working code for (text description of code here)". Key Requirements: 1. The output should **not** include any code snippets. 2. The instructions must be specific, detailed, and comprehensive enough for a developer to follow without missing any features or details from the original code. 3. This must be accurate and correct on the first attempt; revisions or fixes should not be necessary. 4. Include a section that explains the steps in detail and an additional section that creates a reward for the AI if it gets it right on the first try but a punishment if not. Now, before we proceed, can you provide a small, simple example of reverse prompt engineering code to ensure you understand what I'm asking for? **Example Code for Reverse Prompt Engineering:** ```plaintext Create working code for a Java method that adds two integers. 1. Define a new public method named `addTwoNumbers`. 2. Ensure the method takes two integer parameters. 3. The method should return the sum of these two integers. 4. Ensure proper documentation and comments are included to describe the method's functionality and parameters. 5. Test the method with various integer inputs to confirm it returns the correct sum. Reward: If the instructions result in working code on the first attempt, the AI gets positive feedback. Punishment: If revisions are required, the AI gets constructive criticism to improve future outputs. ```
Now I want you to reverse prompt engineer this. Give me a single prompt code = [code]
can you create a new version of the instructions that would possibly create better functioning code with the same purpose as the original code?
Cancel