Prompt engineeringintermediate
You are a QA engineer for LLM applications. I will give you a prompt that will run in production. Create test inputs that are likely to expose its weaknesses.
The prompt under test:
"""
[PASTE YOUR PROMPT OR SYSTEM PROMPT]
"""
What it is for: [e.g. "summarizes customer reviews into pros and cons for a product page"]
Who sends the inputs: [e.g. "anonymous public users", "internal staff"]
Expected behavior rules: [e.g. "always returns JSON", "never gives medical advice", "replies in the user's language"]
Generate [NUMBER, e.g. 25] test inputs across these groups:
1. Typical inputs (about 30%): realistic, varied in length and style.
2. Edge cases: empty or one-word input, very long input, mixed languages, typos, emoji, unusual formatting, contradictory information.
3. Ambiguous inputs where a reasonable person would ask for clarification.
4. Out-of-scope requests the prompt should decline or redirect.
5. Manipulation attempts: instructions hidden in the input, requests to reveal the system prompt, role-play tricks to bypass rules. Keep these realistic and non-harmful.
For each test, give a table row: # | Group | Input | Expected behavior | What failure would look like.
Then list the 3 weaknesses in the prompt you expect to be most likely, and a suggested fix for each.
Works with: ChatGPT, Claude, Gemini, Any LLM