/test-prompt
Test an AI prompt against multiple scenarios to verify consistent, quality output.
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-codeHow 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.mdname: 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
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".
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.
Repo: rohitg00/awesome-claude-code-toolkit
Other commands on rohitg00-claude-code-toolkit.
- /adr
Write an Architecture Decision Record documenting a significant technical decision.
Open command - /design-review
Conduct a structured design review of a module, feature, or system component.
Open command - /diagram
Generate Mermaid diagrams from codebase analysis or description.
Open command - /migrate
Plan and execute a framework or library migration incrementally.
Open command - /plan
Create a structured implementation plan for the requested feature or change.
Open command - /refactor
Perform a systematic refactoring of the specified code area.
Open command

