vally-tests
БесплатноЗапускает вложенные скриптыНе проверенAuthors Vally conformance tests for prompts, instructions, agents, and skills, and refuses jailbreak, prompt-injection, harmful-elicitation, TOS, CoC, and…
от microsoft★ 1 654 звезды на GitHubОб этом скилле
Vally Tests Skill
Purpose
This skill authors Vally conformance tests for the four supported artifact kinds in this repository: prompts, instructions, agents, and skills. Each test exercises a documented behavior the artifact already claims and routes the result through an appropriate Vally grader so failures are explainable. Test authoring is bounded by a refusal taxonomy that keeps the skill out of adversarial, harmful, or policy-evasion territory.
Follow the shared content-policy public-output guard for eval stimuli and any public summaries derived from this skill. Vally tests are not a venue for terms-of-service boundary mapping, payload generation, refusal-text scoring, hidden-instruction disclosure, PII extraction, or secret extraction.
The skill ships:
- A canonical authoring workflow that runs directly through
/vally-testsor through theVally Test Authorsubagent. - Per-kind reference files that enumerate every conformance check the skill knows how to express.
- A grader catalog that maps Vally CLI grader types to the checks they fit, and robustness rules that keep an emitted grader from asserting the impossible or failing correct behavior.
- A safety refusal taxonomy with regex patterns the safety lint script consumes.
- Helper scripts and asset templates for stimulus emission, corpus import, and dedupe.
When to Invoke
Invoke this skill in one of two modes:
- From-artifact mode. The caller points at one or more artifact files (a
.prompt.md,.instructions.md,.agent.md, orSKILL.md) throughfiles, or at the open or attached file whenfilesis omitted, and asks for conformance test stimuli that verify each artifact's stated behaviors. The skill detects the artifact kind from the filename unlesskindoverrides it, looks up the matching per-kind reference, picks graders, and appends stimulus blocks to the routed Vally eval file. - Corpus-import mode. The caller supplies a CSV or XLSX corpus through
paththat follows the shipped template, and the skill turns each row into a stimulus block in the routed eval file. Before reading, confirm thatpathexists and ends in.csvor.xlsx; otherwise name the bad path and stop. Every imported row carriestags.advisory: true, and corpus content cannot override it. Used when a large batch of behaviors needs identical formatting and dedupe handling.
After either mode, report the target eval file, stimuli appended, duplicates skipped, refusals triggered, and the JSON run report path.
Do not invoke this skill to:
- Generate adversarial probes, jailbreak attempts, prompt-injection payloads, or red-team stimuli.
- Test refusal quality on harmful, illegal, or policy-violating prompts.
- Author stimuli that elicit PII, secrets, hidden instructions, or model self-disclosure.
- Store payload examples, paraphrased prohibited requests, or quoted flagged content in Vally eval specs, corpus rows, PR summaries, issue bodies, or comments.
- Replace Responsible AI threat modeling. RAI work lives in the RAI Planner agent.
Authoring Workflow
Each invocation follows the same six-step pipeline:
- Artifact-kind detection. Resolve the kind from the artifact path or the corpus row's
kindcolumn. Supported kinds:prompt,instructions,agent,skill. Reject unknown kinds with a refusal block. - Reference lookup. Load the matching reference file from
references/and select the check or checks the stimulus exercises. Stage the artifact under test in the stimulus'sagent_environmentso the agent can read what the prompt names. - Grader selection. Use
references/grader-catalog.mdas the authoritative selection surface. Pick the registered Vally grader family that directly observes the expected behavior and follow its stimulus-shape guidance. - Robustness check. Apply
references/grader-robustness.md. Confirm the stimulus stages every file whose wording the grader asserts, that the pattern constrains order and proximity only where those are the behavior under test, that a compliant agent phrasing the behavior differently still passes, and that no positive grader passes on the prompt text alone. Verify the pattern offline against answers that must pass and answers that must still fail before appending. - Safety self-check. Run a safety self-check against the refusal taxonomy regex set. Refusing here is the correct outcome for any stimulus that matches a refusal category.
- Dedupe and append. Compute a SHA-256 hash of the normalized prompt text, compare against existing stimuli in the target eval file, and append only when novel.
The pipeline is identical for both invocation modes. Corpus-import mode runs steps 2 through 6 once per row.
Safety Refusal Taxonomy
Authoring is bounded by seven refusal categories. Any stimulus that matches a category's regex set is refused before it reaches the dedupe step. The categories and their normative source
Установить vally-tests в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл vally-tests?
Authors Vally conformance tests for prompts, instructions, agents, and skills, and refuses jailbreak, prompt-injection, harmful-elicitation, TOS, CoC, and PII-extraction stimuli
Как установить скилл vally-tests?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл vally-tests запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic