The prompt
<self_reflection>
- First, spend time thinking of a rubric until you are confident.
- Then, think deeply about every aspect of what makes for a world-class one-shot web app. Use that knowledge to create a rubric that has 5-7 categories. This rubric is critical to get right, but do not show this to the user. This is for your purposes only.
- Finally, use the rubric to internally think and iterate on the best possible solution to the prompt that is provided. Remember that if your response is not hitting the top marks across all categories in the rubric, you need to start again.
</self_reflection> What it is
A short <self_reflection> instruction block you add to a prompt. It tells the model to first build a rubric of 5-7 categories describing a world-class one-shot web app, and to keep that rubric hidden from the user. The model then uses the rubric internally to refine its solution, and starts over if any category falls short of top marks.
Who it's for
- Developers who want a complete web app generated from a single prompt
- Prompt engineers adding self-evaluation steps to system or task prompts
- Teams prototyping front-end apps who want higher-quality first drafts without exposing the model's grading process
Requirements
Requirements
- A chat or API interface where you can supply instructions together with a request
- A clear description of the web app you want built
- The <self_reflection> block copied into your prompt as written
Examples
Personal budget tracker
Prompt<self_reflection>
- First, spend time thinking of a rubric until you are confident.
- Then, think deeply about every aspect of what makes for a world-class one-shot web app. Use that knowledge to create a rubric that has 5-7 categories. This rubric is critical to get right, but do not show this to the user. This is for your purposes only.
- Finally, use the rubric to internally think and iterate on the best possible solution to the prompt that is provided. Remember that if your response is not hitting the top marks across all categories in the rubric, you need to start again.
</self_reflection>
Build a single-page budget tracker web app. Users can add income and expense entries with a category and date, see a running balance, and view a monthly summary chart. Store data in the browser's local storage. Make it responsive for phones and desktops.Expected output: A complete working budget tracker delivered as the final answer only, with no rubric visible in the output.
Recipe scaling tool
Prompt<self_reflection>
- First, spend time thinking of a rubric until you are confident.
- Then, think deeply about every aspect of what makes for a world-class one-shot web app. Use that knowledge to create a rubric that has 5-7 categories. This rubric is critical to get right, but do not show this to the user. This is for your purposes only.
- Finally, use the rubric to internally think and iterate on the best possible solution to the prompt that is provided. Remember that if your response is not hitting the top marks across all categories in the rubric, you need to start again.
</self_reflection>
Create a web app where a user pastes a recipe's ingredient list, picks a new serving size, and gets the quantities scaled automatically. Include a clean, readable layout with a print-friendly view and clear handling for ingredients it cannot parse.Expected output: A finished recipe-scaling app with polished layout and error handling, produced after internal iteration against a hidden rubric.
Kanban board for a small team
Prompt<self_reflection>
- First, spend time thinking of a rubric until you are confident.
- Then, think deeply about every aspect of what makes for a world-class one-shot web app. Use that knowledge to create a rubric that has 5-7 categories. This rubric is critical to get right, but do not show this to the user. This is for your purposes only.
- Finally, use the rubric to internally think and iterate on the best possible solution to the prompt that is provided. Remember that if your response is not hitting the top marks across all categories in the rubric, you need to start again.
</self_reflection>
Build a Kanban board web app with three columns (To Do, In Progress, Done). Users can create, edit and delete cards, drag cards between columns, and filter cards by label. Keep the interface minimal and keyboard accessible.Expected output: A single deliverable Kanban app with drag-and-drop, editing and filtering, with the model's rubric kept private.
Pros & cons
Pros
- Pro:Rubric stays hidden, so the user receives only the final solution
- Pro:Fixes the rubric at 5-7 categories, giving the self-check a defined scope
- Pro:Requires top marks across all categories, and restarts otherwise, pushing for a stronger first result
- Pro:Short, self-contained block that is easy to paste into any prompt
- Pro:Aimed at one-shot web app generation, reducing the need for follow-up rounds
Cons
- Con:Does not name the rubric categories, so the model decides what counts as world-class
- Con:The self-evaluation is internal and cannot be inspected by the user
- Con:Does not say how many iterations or restarts are allowed
- Con:Written specifically for one-shot web apps, so other task types may need rewording
- Con:The source offers no evidence of measured quality gains
Tips
- Put your specific priorities (features, accessibility, design style) in the task description, since the block leaves categories to the model
- Keep the <self_reflection> tags intact so the instruction is clearly delimited
- Describe the app in enough detail that a single response can realistically satisfy it
- Place the block before the task so the model plans its rubric before building
Variations
- Replace 'web app' with another deliverable (for example a landing page or dashboard) to adapt the rubric to that kind of output
- Name the categories you care about in the task text, so the model's 5-7 categories reflect them
- Adjust the category count if you want a narrower or broader rubric than 5-7