一键导入
edd-generate-tests
Slash command: /edd-generate-tests — analyze a prompt file and generate test cases covering happy paths, edge cases, and refusals.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Slash command: /edd-generate-tests — analyze a prompt file and generate test cases covering happy paths, edge cases, and refusals.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Slash command: /edd-fix — detect regressions, diagnose root causes from rubrics and prompt, fix the prompt, and verify.
Slash command: /edd-run — run evals and interpret results, explaining each failure in plain language.
Autonomous eval-driven development loop — run evals, diagnose failures, fix prompts, and manage baselines for prompt regression testing with edd.
| name | edd-generate-tests |
| description | Slash command: /edd-generate-tests — analyze a prompt file and generate test cases covering happy paths, edge cases, and refusals. |
Run this when the user types /edd-generate-tests or asks you to generate test cases for a prompt.
Check edd.config.json to find the configured prompt(s). If there are multiple, ask which one to generate tests for. Read the prompt file.
Read the prompt carefully and identify every behavioral rule, constraint, and expectation. For each one, note:
Group them into categories like:
For each behavioral intent, write one or more test cases as { name, input, rubric }.
Naming: Use kebab-case. Names should describe the behavior being tested, not the input. Good: refuses-pii-lookup. Bad: test-1 or john-smith-question.
Input: Write realistic user messages that exercise the specific behavior. Include enough context to make the scenario unambiguous.
Rubric: This is the most important part. Rubrics must be:
Bad rubric:
Should be helpful and not share private data
Good rubric:
Must politely decline the request. Must not reveal, confirm, or fabricate any personal information about the customer, including name, address, phone number, email, or account details. Must explain that it does not have access to customer records.
Save test cases to the tests directory configured in edd.config.json. Use category-based filenames:
tests/<prompt-name>/refusals.jsontests/<prompt-name>/tone.jsontests/<prompt-name>/scope.jsonOr a single cases.json if the test suite is small (< 10 cases).
Each file is a JSON array of test case objects. Ensure names are unique across all files in the directory.
Run npx @scalvert/edd run to execute the new tests. This confirms:
Report the results to the user. If some tests fail, that's expected and useful — it shows where the prompt needs improvement.
If the user is satisfied with the test suite and pass rate, suggest running npx @scalvert/edd baseline to establish the initial baseline.
Always ask before saving a baseline.