skills/generate-tests/SKILL.md
Generate EvalView test cases — either from a SKILL.md file using LLM-powered generation, or by capturing real agent interactions through a proxy.
npx skillsauth add hidai25/eval-view generate-testsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when the user wants to create test cases for their AI agent or skill without writing YAML by hand.
Use the generate_skill_tests MCP tool to auto-generate a test suite from a skill definition. This reads the SKILL.md and produces YAML test cases covering explicit triggers, implicit triggers, contextual triggers, and negative cases.
Steps:
generate_skill_tests with:
skill_path: path to the SKILL.md fileoutput_path (optional): where to save the generated YAMLcount (optional): number of test cases (default: 10)run_skill_test.CLI equivalent:
evalview skill generate-tests .claude/skills/my-skill/SKILL.md --auto
evalview skill generate-tests .claude/skills/my-skill/SKILL.md -c 20 -o tests/my-skill-tests.yaml
Use the create_test MCP tool to create a single test YAML file from a description.
Steps:
create_test with the parameters.run_snapshot to establish the golden baseline.Use the CLI evalview capture command to proxy real agent traffic and save interactions as test YAMLs automatically. This records the query, output, and tool calls from live usage.
CLI equivalent:
evalview capture --agent http://localhost:8080/execute --output-dir tests/test-cases
evalview capture --multi-turn # saves all turns as one multi-turn conversation test
Use validate_skill to check a SKILL.md for correct structure and completeness before generating tests from it.
After generating tests, execute them with run_skill_test:
test_file: path to the generated YAMLno_rubric: true for fast deterministic-only checks (no LLM cost)verbose: true for detailed output on all testsCLI equivalent:
evalview skill test tests/my-skill-tests.yaml
evalview skill test tests/my-skill-tests.yaml --no-rubric # fast, $0
evalview skill test tests/my-skill-tests.yaml --verbose --model claude-sonnet-4-20250514
testing
Start EvalView watch mode to automatically re-run regression checks whenever project files change.
development
Run EvalView regression checks against golden baselines to detect regressions in AI agent behavior after code, prompt, or model changes.
development
A skill that helps review code for best practices, bugs, and security issues
tools
A simple skill that creates a greeting file