Skip to content
Development
Command

/test-prompt

Test an AI prompt against multiple scenarios to verify consistent, quality output.

From plugin
rohitg00-claude-code-toolkit
2.5k199 skills138 agents199 commands
Install
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/test-prompt

Context preview

What this command does when you run it.

Test an AI prompt against multiple scenarios to verify consistent, quality output.

Command definition

test-prompt.md
name: test-prompt
description: Test an AI prompt against multiple scenarios to verify consistent, quality output.

Test an AI prompt against multiple scenarios to verify consistent, quality output.

Steps

1. Read the prompt to test (command file, CLAUDE.md rule, or inline prompt). 2. Generate test scenarios:

  • **Happy path**: Standard use case with typical input.
  • **Edge case**: Empty input, very large input, unusual formats.
  • **Ambiguous case**: Input that could be interpreted multiple ways.
  • **Error case**: Invalid input that should produce helpful error messages.

3. For each scenario:

  • Formulate the test input.
  • Execute the prompt with that input.
  • Evaluate the output against expected behavior.
  • Score on: accuracy, format compliance, helpfulness.

4. Identify failure patterns:

  • Does the prompt break on certain input types?
  • Does it produce inconsistent output formats?
  • Does it hallucinate when information is missing?

5. Suggest prompt modifications based on test results.

Format

Prompt Test Results: <prompt name>

| Scenario | Input | Result | Score |
|----------|-------|--------|-------|
| Happy path | <input> | pass | 5/5 |
| Edge case | <input> | partial | 3/5 |
| Error case | <input> | fail | 1/5 |

Overall score: <average>/5
Failure patterns: <description>
Recommendations: <improvements>

Rules

  • Test at least 5 scenarios for each prompt.
  • Include at least one adversarial input that tries to break the prompt.
  • Score consistently using the same rubric across all tests.
  • Document the exact input used so tests can be reproduced.
  • Suggest specific prompt changes for each failure, not just "improve X".
Read more
Ships withrohitg00-claude-code-toolkit

The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.

Get the whole plugin