
- Prompt at a glance
- Category
- Text & chat
- Works with
- Claude · ChatGPT · Gemini
- Length
- 83 words
- Fields to fill
- PASTE THE CODE OR DESCRIBE IT
- Last updated
List the edge cases your code might miss
This prompt acts like a QA engineer trying to break your code. It lists edge cases, says what your code would do now and what it should do, and marks the ones most likely to cause a real bug.
Act as a QA engineer who is very good at breaking things. Function or feature: [PASTE THE CODE OR DESCRIBE IT] List every edge case you can think of: empty and missing values, very large inputs, special characters and emoji, dates across timezones and leap years, duplicates, concurrency, slow or failed network calls, and permission problems. For each, say what the code would do now (from reading it) and what it should do. Mark the ones most likely to cause a real bug.
Turn the top three into tests straight away. An edge case on a list does not protect anything.
From copy to answer in four steps
- 1
Open Claude and start a new chat.
- 2
Paste the prompt.
- 3
Replace each [BRACKETED] field with your real details and paste in your own text where asked.
- 4
Reply with follow-ups such as "make it shorter" or "make it sound more like me".
About this prompt
Which AI tools work with this prompt?
It is written for Claude, ChatGPT and Gemini. Paste it into your preferred tool and adjust the wording if the result is off.
What do I need to fill in?
Replace the field before you send it: PASTE THE CODE OR DESCRIBE IT. Each field shows an example in the prompt.
Should I paste private information into the prompt?
Only what the task needs. Remove names, contact details and other sensitive data before pasting a resume or document into any AI tool.