一键导入
valid-testgen
Generate tests from a valid model and review their quality. Use when the user wants test vectors, generated test files, and coverage-gap analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate tests from a valid model and review their quality. Use when the user wants test vectors, generated test files, and coverage-gap analysis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create or refine a valid model from business rules or existing code. Use when the user wants help designing states, actions, properties, or a starter model implementation.
Verify a valid model or the current project model. Use when the user wants PASS/FAIL/UNKNOWN, automatic explain on failure, and concrete repair suggestions.
Manage valid contract snapshots and lock files. Use when the user wants contract lock/check workflows, drift explanations, or guidance on whether to refresh a lock file.
Review a valid model with inspect, lint/readiness, and coverage. Use when the user wants a capability summary, solver compatibility notes, and prioritized improvement advice.
| name | valid-testgen |
| description | Generate tests from a valid model and review their quality. Use when the user wants test vectors, generated test files, and coverage-gap analysis. |
| argument-hint | [model-or-path] [--property=ID] [--strategy=STRATEGY] |
| disable-model-invocation | true |
Run the valid test-generation workflow for $ARGUMENTS.
valid, pri, or similarly named verification server exposes inspect, testgen, coverage, or check.valid-check does:
.valid file or existing path -> file modevalid.toml -> run cargo valid models --json or cargo run -q --bin cargo-valid -- valid models --json, then resolve the most obvious candidate, otherwise askcargo validcargo run -q --bin cargo-valid -- valid.valid file mode:
validcargo run -q --bin valid ----json for inspect, generate-tests or testgen, coverage, and follow-up verify.inspect first so you know the model shape, properties, and capabilities.... generate-tests <model> --json... testgen <file> --json--strategy or --property, pass it through.generated-tests/.coverage on the same target to identify missing transitions, guards, or path tags.Always return:
Prioritize trace-backed and witness-backed cases over vague synthetic suggestions.