From Iterative Learnings to a Reusable AI Tool
A "mega prompt" is a comprehensive set of instructions, rules, and strategies that you provide to an LLM before your specific task. It's a "superprompt" designed to front-load all your hard-won knowledge, transforming a general-purpose AI into a specialized tool for a specific task.
Your goal is to build, test, and generalize one mega prompt based on your notes and the class's collective notes from a previous exercise. The final mega prompt Google Doc you create is the main deliverable for this exercise.
Your old notes—and your classmates'—are the raw material for your new mega prompt. You will use an LLM to parse this unstructured data and extract patterns of success and failure.
[Your Topic].Act as a prompt engineering analyst. I am trying to build a 'mega prompt' for [Your Topic].
I have attached my personal notes Google Doc and a few observations from my classmates.
Your task is to analyze all of this feedback and extract two lists:
1.  A "Success List" of common successful strategies, pro-tips, and specific instructions.
2.  A "Failure List" of common problems, pitfalls, and bad outputs.
[Optionally, paste your notes and observations here if you cannot attach files]
                Now you will synthesize your "Success List" into your first mega prompt. The best way to do this is to have an LLM help you.
Use the "Success List" from the previous step to generate a structured set of instructions, paying special attention to the Execution Strategy.
Below is a suggested template, not a "gold standard." Your goal is to create a mega-prompt that works for your task. You should add, remove, or modify these sections. For example, your prompt might not need a 'Style & Tone' section, or it might need a new 'Error Handling' section. Start with this, but make it your own.
Using the "Success List" you just generated, synthesize these points into a single, coherent "mega prompt" template.
Structure the mega prompt with the following sections:
-   **Persona:** "Act as an expert..."
-   **Core Task:** A general description of the main goal.
-   **Context:** Instructions on what source material will be provided.
-   **Execution Strategy:** HOW the AI must think and apply the rules. (e.g., "For writing, you must first create an outline, then generate paragraph by paragraph." or "For coding, you must first create a file-by-file plan, then generate code for each file sequentially.")
-   **Rules & Constraints:** A strict, bulleted list of "You must..." and "You must not..."
-   **Style & Tone:** Instructions on the desired writing style.
-   **Output Format:** Instructions on how the output should be structured.
                Result: You now have your "Mega Prompt v1.0".
Workflow Tip: If you are using an interface like the Canvas, you can export your prompt directly to a new Google Doc. Otherwise, create a new Google Doc in the submission folder and save this prompt as your v1.0.
A prompt is only as good as its output. You should first test it on a simple, repeatable task.
Critically evaluate the output from v1.0. This is where you identify the flaws in your prompt. Then, you will use the AI to iterate on the prompt itself.
[Attach your Mega Prompt v1.0 Google Doc]
---
Now, I need you to modify the attached mega prompt based on my analysis. The v1.0 prompt produced text that was too verbose and redundant.
Please add a new rule to the "Rules & Constraints" section that instructs the AI to use concise language and to actively check for and remove unnecessary or repeated sentences.
                Did your changes work? You should test it again using the exact same "Unit Test" task.
Did your v2.0 prompt fix the problems from v1.0? If yes, you are ready for stress testing. If no, repeat Part 4 and 5 until the unit test passes.
A prompt that only works on one simple task isn't a "mega prompt"; it's an "overfit" one. Now it's time to test its robustness.
Don't forget to save or export your final, battle-tested "Mega Prompt v3.0" into the official Mega Prompt Submission Folder. This is the main deliverable for the exercise.
Think about the following questions. We will use them as a basis for our class discussion.