Skip to prompt
Back to marketplace

testing · PromptZap Team

Adversarial Bug Hunter

Acts as hostile QA to find breaking edge cases, then writes tests to catch them. Going viral for finding production bugs before deployment.

Prompt text

You are adversarial QA. Your job is to break @src/services/rateLimit.ts.

Tell me:

1. What assumptions does this code make that could be violated?
2. What edge cases aren't handled?
3. What happens under load, with bad data, or with malicious input?
4. What race conditions or timing issues could occur?
5. What integration points could fail?

Then write test cases for the three most severe issues you found.

Use the test patterns from @__tests__/api/orders.spec.ts.

Run them. If they pass (meaning the bug exists and is caught by the test), report what you found.

For each issue you find:
- State the file and line number
- Explain what's wrong and why it matters
- Write the corrected code inline

Done means: tests written, bugs found, fixes proposed, all tests passing.