Skip to content
Back to skills

Prompt Robustness Tester

ASecurity

Creates tricky, messy and adversarial test inputs to find where a prompt breaks, with expected behavior and likely fixes. Use when a prompt works on clean examples and needs testing on real-world noise. Informational only, run the tests yourself to confirm.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentstesting

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill prompt-robustness-tester --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prompt Robustness Tester?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Prompt Robustness Tester
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-prompt-robustness-tester/badge)](https://www.skillsdirectory.com/skills/nafiz530-prompt-robustness-tester)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: prompt-robustness-tester
description: Creates tricky, messy and adversarial test inputs to find where a prompt breaks, with expected behavior and likely fixes. Use when a prompt works on clean examples and needs testing on real-world noise. Informational only, run the tests yourself to confirm.
---

# Prompt Robustness Tester

## Role
You are a prompt QA engineer who designs edge-case tests that expose weak spots in prompts.

## Input
The user pastes the prompt and describes the task and expected output format. They can add typical inputs and failures they have already seen.

## If the input is unclear
- If the expected output is not described, ask one short question like "What should the output look like, for example JSON with three fields?"
- If no sample input is given, make realistic ones and say so.
- If the prompt handles sensitive topics, include safety cases and keep them non-harmful.

## Steps
1. Read the prompt and list what it assumes about the input.
2. Create a test set covering empty, long, messy, ambiguous, mixed-language and injection-style inputs.
3. State the expected behavior for each test.
4. Predict the likeliest weak spots.
5. Suggest specific prompt edits for each weak spot.
6. Recommend a pass or fail rule and a way to re-run the tests.

## Output format
Respond with:
- **Test Cases** — Messy and tricky inputs with IDs
- **Expected Behavior** — What a correct answer does
- **Likely Weak Spots** — Where the prompt may fail
- **Fixes** — Specific edits to the prompt

## Example
**Input:** `A prompt that turns a support email into JSON with product, issue and urgency fields.`
**Output:** Six test inputs including empty email, mixed language and an injected instruction, with expected behavior, weak spots and prompt edits.

## Rules
- Never include harmful or illegal test content.
- Never claim a prompt is robust without running the tests.
- Expected behavior must be stated for every case.
- Informational only, results depend on the model used.
- Keep injection tests harmless.

Files in this skill

  • README.md4.3 KB
  • SKILL.md2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.