generate-tests
БесплатноБез исполняемых скриптовНе проверенGenerate EvalView test cases — either from a SKILL.md file using LLM-powered generation, or by capturing real agent interactions through a proxy.
от hidai25★ 143 звезды на GitHubОб этом скилле
Generate Tests
Use this skill when the user wants to create test cases for their AI agent or skill without writing YAML by hand.
Four approaches
1. Generate tests from a SKILL.md file
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:
- Ask the user which SKILL.md to generate tests for (or detect it from context).
- Call
generate_skill_testswith:skill_path: path to the SKILL.md fileoutput_path(optional): where to save the generated YAMLcount(optional): number of test cases (default: 10)
- After generation, offer to run the tests with
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
2. Create individual test cases manually
Use the create_test MCP tool to create a single test YAML file from a description.
Steps:
- Gather from the user: test name, query, expected tools, forbidden tools, expected output keywords, and minimum score.
- Call
create_testwith the parameters. - After creating the test, call
run_snapshotto establish the golden baseline.
3. Capture real interactions
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
4. Validate a skill before testing
Use validate_skill to check a SKILL.md for correct structure and completeness before generating tests from it.
Running generated tests
After generating tests, execute them with run_skill_test:
test_file: path to the generated YAMLno_rubric: truefor fast deterministic-only checks (no LLM cost)verbose: truefor detailed output on all tests
CLI 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
Установить generate-tests в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл generate-tests?
Generate EvalView test cases — either from a SKILL.md file using LLM-powered generation, or by capturing real agent interactions through a proxy.
Как установить скилл generate-tests?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл generate-tests запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic