CLI: lint
vally lint [path] [options]Description
Section titled “Description”vally lint is the home for fast static checks on the assets in your Vally project — no agent execution required. It validates eval specs (eval.yaml) for configuration errors and checks any SKILL.md files in the given path against the spec graders.
Arguments
Section titled “Arguments”| Argument | Required | Default | Description |
|---|---|---|---|
path |
No | Current directory | Root directory to scan for SKILL.md files |
Options
Section titled “Options”| Flag | Type | Default | Description |
|---|---|---|---|
--eval-spec, -e <path> |
string | — | Path to an eval spec file or a directory to scan recursively using paths.evalFilenames |
--known-domains <path> |
string | — | Path to a known-domains file for URL reference scanning |
--allowed-external-deps <path> |
string | — | Path to an allowlist file for structural dependency scanning |
--grader-plugin <specifier> |
string | — | Grader plugin to load, additive with project plugins.grader. Prevents unknown-grader-type errors. Repeatable. |
--param <key=value> |
string | — | Set a param value (repeatable, e.g. --param MODEL=gpt-4o). Suppresses undefined-param lint errors for params always provided at runtime. |
--strict |
boolean | false |
Treat warnings as errors (exit 1 on any diagnostic, including dependency warnings) |
--verbose |
boolean | false |
Show detailed grader evidence for each check |
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 |
All checks passed (warnings may be present unless --strict) |
1 |
One or more skills failed, a reference error was found, an eval spec error was found, or an error occurred |
Eval spec checks
Section titled “Eval spec checks”When --eval-spec is provided, the following checks run against the eval YAML:
Errors
Section titled “Errors”| Code | What it catches |
|---|---|
executor-tool-catalog-error |
An executor plugin’s declared tool catalog is unreadable, invalid, or conflicts with another catalog. |
eval-load-error |
The eval could not be parsed or expanded. This includes malformed grading_environment blocks or their files[] entries (missing or empty src/dest) and setting both agent_environment and its deprecated alias environment at the same level. |
project-config-error |
The project .vally.yaml could not be loaded or validated. |
environment-mcp-invalid |
An inline or referenced MCP server configuration has an unsupported field or invalid transport setting. |
unknown-grader-type |
Grader type not in registry. Includes fuzzy “did you mean?” suggestions. |
invalid-grader-config |
Unknown config keys, missing required fields, wrong types. |
invalid-grader-name |
Grader name is not a stable identifier: it must use lowercase letters, digits and hyphens, start with a letter or digit, be at most 60 characters, and must not match the type of a different grader in the same eval file. |
duplicate-grader-name |
Two graders in the eval file share the same name. Names key reports and dashboards, so they must be unique file-wide, not just within a stimulus. |
invalid-constraint-value |
Invalid runtime constraint limits. |
unsupported-constraint |
A removed behavioral constraint alias is present. The diagnostic identifies the equivalent tool-calls or skill-invocation grader configuration. |
invalid-rubric |
rubric is not a list of non-empty criteria strings. |
undefined-param |
A ${NAME} placeholder has no CLI value, parameter-file value, project value, or inline default. |
environment-file-missing-field |
An agent environment files[] entry is missing a required src or dest path. Malformed grading environment entries fail earlier with eval-load-error. |
environment-file-not-found |
An agent environment (inline or named reference) or grading environment files[].src path doesn’t exist on disk, resolved relative to the eval file. |
environment-skill-not-found |
An agent environment skills[] directory doesn’t exist. Checks root and stimulus environments, including named references. Paths resolve relative to the eval file. |
environment-skill-invalid |
Agent environment skills isn’t an array of non-blank strings, or a skill source isn’t an accessible directory. SKILL.md is validated after environment setup, allowing setup commands to generate it. |
grading-file-dest-unconfined |
A non-empty grading_environment.files[].dest is absolute, whitespace-only, resolves to the workspace root, or contains ..; grader files must stay inside the disposable grading workspace. An empty value fails earlier with eval-load-error. |
grading-file-dest-overlap |
Root/stimulus grading file destinations duplicate or nest inside one another, making staging order-dependent. |
grading-file-src-agent-visible |
A grader-only source overlaps an agent-visible file, skill, local git source, or attachment (in an inline or named agent_environment) and could be exposed before grading. |
attachment-file-not-found |
Stimulus attachments[] path doesn’t exist on disk, or can’t be accessed, relative to the eval file. |
attachment-not-a-file |
Stimulus attachments[] path resolves to a directory or special filesystem object, not a regular file. |
attachment-not-readable |
Stimulus attachments[] path resolves to a regular file the runner lacks read permission for. |
environment-command-timeout-invalid |
Agent environment commandTimeout is not a positive duration string with a unit suffix (e.g. 2m, 90s). |
duplicate-stimulus-name |
Two stimuli share the same name. |
executor-config-unsupported |
defaults.executor.config is set but the resolved executor accepts no config (fail-closed). Checked only for built-in executors (copilot-sdk, mock); plugin-executor config is first validated at plan time (vally eval). |
executor-config-invalid |
defaults.executor.config failed the executor’s own validation (e.g. a copilot-sdk BYOK provider block missing baseUrl, an unknown field, or a bad URL). Same built-in-only scope as above. |
executor-name-invalid |
defaults.executor (or its object name) is an empty string — omit defaults.executor entirely to use the default executor instead. |
Warnings (surface ambiguity)
Section titled “Warnings (surface ambiguity)”| Code | What it surfaces |
|---|---|
rubric-without-llm-judge |
rubric defined but no LLM judge grader configured. |
llm-judge-prompt-without-rubric |
A prompt or panel grader sets config.prompt but no rubric (or criteria) is defined, so the judge scores against the built-in default rubric. |
regression-without-baseline |
type: regression set but no baseline configuration. |
ineffective-constraint |
A configured limit has no effect because another setting dominates — e.g. constraints.max_agent_duration ≥ the hard cap, or a loop-outcome max_acceptable_retries ≥ simulation.max_iterations - 1. |
scoring-weights-deprecated |
scoring.weights is deprecated and ignored; graders must pass by default. Set must_pass: false to make a grader’s score advisory. |
scoring-threshold-deprecated |
scoring.threshold is deprecated and ignored; graders return a binary pass/fail score. |
unknown-simulation-tool |
A simulation override targets a tool not reported by the selected executor or configured MCP servers. |
unverifiable-simulation-tool |
Lint cannot verify a simulation target because the selected executor has no tool catalog or discovery result. |
simulation-tool-discovery-failed |
Runtime discovery failed, so first-party simulation targets could not be verified. |
SKILL.md checks
Section titled “SKILL.md checks”When a path is provided, vally lint discovers all SKILL.md files under it and runs two built-in graders:
| Grader | What it checks |
|---|---|
| spec-compliance | Name format (kebab-case, ≤ 64 chars), description presence and length (≤ 1024 chars), valid frontmatter |
| valid-refs | Every file path referenced in the SKILL.md exists on disk |
Reference checks
Section titled “Reference checks”When --known-domains is provided, all SKILL.md, *.agent.md, and references/*.md files within discovered skill directories are scanned for URL reference issues:
| Code | What it catches |
|---|---|
EXTERNAL-DOMAIN |
URL domain not in the known-domains allowlist |
HTTP-NOT-HTTPS |
Insecure http:// URL (localhost and schemas.microsoft.com are exempt) |
PIPE-TO-SHELL |
curl or wget piped directly to a shell interpreter |
SCRIPT-NO-SRI |
External <script> tag without integrity (SRI) attribute |
Known-domains file format
Section titled “Known-domains file format”One domain per line. Lines starting with # are comments, blank lines are ignored.
- Bare domains match the host and any subdomain:
microsoft.commatcheslearn.microsoft.com - Path-scoped entries require the URL prefix to match:
github.com/dotnet/runtimematchesgithub.com/dotnet/runtime/issuesbut notgithub.com/dotnet/sdk
# Core domainsmicrosoft.comgithub.com
# Path-scopedgithub.com/dotnet/runtimeExternal dependency checks
Section titled “External dependency checks”When --allowed-external-deps is provided, each discovered skill is checked for structural external dependencies. These findings are advisory warnings — they do not fail the lint unless --strict is used.
| Code | What it catches |
|---|---|
SCRIPT-FILE |
Script file (.ps1, .sh, .py, .bat, .cmd, .bash) in the skill’s scripts/ directory |
INVOKES-SCRIPT |
Skill description contains an INVOKES <script> pattern |
NON-BUILTIN-TOOL-REF |
#tool:xxx reference to a non-built-in tool in the skill content |
Allowlist file format
Section titled “Allowlist file format”One entry per line. Lines starting with # are comments, blank lines are ignored. Keys are case-insensitive and use the format type:skill-name:detail:
# Allow the setup script in my-skillscript:my-skill:scripts/setup.ps1
# Allow the INVOKES pattern in nullable-ref skillinvokes:nullable-ref
# Allow a specific tool referencetool-ref:my-skill:#tool:web/fetchEach warning message includes the exact (allow: ...) key to add to the allowlist file.
Examples
Section titled “Examples”Validate an eval spec
Section titled “Validate an eval spec”# Validate eval spec onlyvally lint --eval-spec eval.yaml
# Validate all specs matching paths.evalFilenames under a directoryvally lint --eval-spec ./evals
# Validate eval spec AND lint SKILL.md filesvally lint ./skills --eval-spec eval.yamlLint SKILL.md files
Section titled “Lint SKILL.md files”# Lint current directoryvally lint
# Lint a specific skillvally lint ./skills/my-skill
# Lint with detailed outputvally lint ./skills --verboseStrict mode for CI
Section titled “Strict mode for CI”# Fail on any warnings toovally lint . --eval-spec eval.yaml --strictReference scanning
Section titled “Reference scanning”# Check URLs against a known-domains listvally lint ./skills --known-domains known-domains.txt
# Combine with eval validationvally lint ./skills --known-domains known-domains.txt --eval-spec eval.yamlExternal dependency scanning
Section titled “External dependency scanning”# Check for external dependenciesvally lint ./skills --allowed-external-deps allowed-external-deps.txt
# Fail on dependency warnings in CIvally lint ./skills --allowed-external-deps allowed-external-deps.txt --strictOutput format
Section titled “Output format”Eval spec output
Section titled “Eval spec output”On success:
✔ eval.yaml is validWith issues:
Eval: eval.yaml✘ error [unknown-grader-type] Unknown grader type "output-contain" at eval.yaml:8 (stimuli[0].graders[0].type) Did you mean "output-contains"?
⚠ warning [scoring-weights-deprecated] scoring.weights is deprecated and ignored; graders must pass by default. Set must_pass: false to make a grader's score advisory at eval.yaml:12 (scoring.weights) Remove scoring.weights. Every must-pass grader must pass for a trial to pass.
1 error(s), 1 warning(s)SKILL.md output
Section titled “SKILL.md output”Found 2 skill(s): auth-helper, code-reviewer
✔ auth-helper ✔ spec-compliance (4/4 checks passed) ✔ valid-refs (3 references, 0 broken)
✘ code-reviewer ✘ spec-compliance (3/4 checks passed) ✗ name-format: Name must be kebab-case ✔ valid-refs
1/2 skills passed