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.8k199 skills138 agents199 commands
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-code

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
@rohitg00
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.

2.8k40 skills138 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.8k
Star history of rohitg00/awesome-claude-code-toolkit on GitHub, a chart by star-history.com

Other commands on rohitg00-claude-code-toolkit.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command