Verification Loop: Self-Critique Prompt
From Wikiprompt, the free prompt encyclopedia
Verification Loop: Self-Critique Prompt A prompt that instructs the AI to generate code, self-critique for bugs, and then rewrite to improve quality.
Prompt ContentSave
🌐
Write a Python function to process user payments. After writing it, identify 3 potential bugs or edge cases in your code. Then rewrite the function to fix those issues.
Sign in to see the full prompt
Continue with:
By logging in, you agree to our Terms of Use and Privacy Policy
Usage
This prompt is designed for use with coding. Copy the prompt content above and paste it into your preferred AI tool.
For best results, you may customize the placeholders (indicated by square brackets or capital letters) with your specific requirements.
References
- Category: coding Prompts
- Source: https://x.com/thisdudelikesAI/status/2017511852385984933
Talk
0 comments