ov-build/skills/validate/SKILL.md
MUST be invoked before any work involving: ov image validate command, validation rules, common validation errors, or checking image.yml and layer definitions.
npx skillsauth add overthinkos/overthink-plugins validateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Invoked as ov image validate. See /ov-build:image for the family overview.
ov image validate checks image.yml and all layer definitions for errors. Validation collects all errors at once rather than failing on the first.
| Action | Command | Description |
|--------|---------|-------------|
| Validate all | ov image validate | Check image.yml + all layers (enabled images only) |
| Validate disabled too | ov image validate --include-disabled | Extend the validation pass to images marked enabled: false (does not modify image.yml) |
| Check version | ov version | Verify CalVer computation |
| Inspect image | ov image inspect <image> | Show resolved config |
| Code | Meaning | |------|---------| | 0 | Validation passed | | 1 | Validation or user error | | 2 | Internal error |
layer.yml with a non-empty tasks: list or a rpm: / deb: / pac: / aur: packages section; an auto-detected builder manifest (pixi.toml, pyproject.toml, environment.yml, package.json, Cargo.toml); or a layers: composition field (pure composition layers are valid).depends must reference existing layers (local or remote).volumes names must match ^[a-z0-9]+(-[a-z0-9]+)*$.aliases in layer.yml require both name and command.^[a-zA-Z0-9][a-zA-Z0-9._-]*$.PATH directly in env is an error (use path_append).pixi.toml, pyproject.toml, or environment.yml).tasks: RulesSee /ov-build:layer for the full verb catalog. The validator enforces:
cmd / mkdir / copy / write / link / download / setcap / build. Zero verbs → "task has no action"; multiple → "task has conflicting actions: X and Y".copy → to: (destination) required; copy: value must be relative to the layer directory, no .. traversalwrite → content: required (non-empty)link → target: required (what the symlink points to)download → to: required unless extract: sh (piped install scripts)setcap with non-empty caps: → caps pattern check (cap_name=flags[,cap_name=flags])~/-prefixed, or ${HOME}-prefixed. copy: source must exist under the layer directory at generate time.mode: must match ^0[0-7]{3,4}$ (octal) if present.tar.gz / tar.xz / tar.zst / zip / none / sh or empty.build: value: must be "all" (initial implementation; specific builder names reserved for future use).user: format: must be root, ${USER}, a literal name matching ^[a-z_][a-z0-9_-]*$, or numeric <uid>:<gid>. Unresolved ${VAR} in user: errors.vars: Rules^[A-Z_][A-Z0-9_]*$ (shell identifier).USER, UID, GID, HOME, ARCH, BUILD_ARCH).env: keys.${VAR} Reference Resolutionto, target, etc.), every ${NAME} reference must resolve against vars: ∪ auto-exports. Unresolved references error at validate time.cmd: values, write: content:), references are passed through verbatim and resolved by bash at build time.base must reference a valid external image or another image in image.ymllayers field is requiredbuilder must reference an existing imagebootc: true requires appropriate base imagecommand defaults to name if omittedenv accepts list of KEY=VALUE strings (runtime only)env_file accepts a path string (validated at runtime)security at image level overrides layer-level security (not an error)name and path required, name must match volume name regexhost must be empty; Plain: host requiredgocryptfs not in PATH when encrypted mounts existfqdn requiredbootc: true requires appropriate base imagevm.rootfs must be ext4, xfs, or btrfsvm.backend must be auto, libvirt, or qemuports:ports must be "all" or omittedports: all, the image must have at least one port definedtcp: prefix is supportedLayers form a dependency cycle. Check depends fields.
A depends entry or image.yml layer references a non-existent layer.
Use path_append in layer.yml instead of env: PATH: ....
Volume names must be unique within a layer.
ov image validate && ov image build my-image
ov image validate 2>&1 # See all errors at once
ov image inspect <image> # Check resolved config
ov image list layers # Verify layer exists
ov image validate resolves image.yml via os.Getwd(). Override with -C <dir> / --dir <dir> / OV_PROJECT_DIR=<dir>. See /ov-build:image "Project directory resolution".
ov image family siblings/ov-build:image -- Family overview + image.yml composition reference/ov-build:build -- Building validated images/ov-build:generate -- Containerfile generation after validation/ov-build:inspect -- Inspect a specific image after validation/ov-build:list -- Enumerate images/layers to validate/ov-build:merge -- Post-build layer consolidation/ov-build:new -- Scaffold new layers before validation/ov-build:pull -- Pull prebuilt images (orthogonal to validation)/ov-build:layer — Canonical reference for the task verb catalog, vars: substitution, YAML anchors, execution order. The validator rules above enforce what's documented there./ov-build:generate — What the generator emits from validated input (per-verb emitters, cache-mount inheritance, inline-content staging)./ov-dev:generate — Internal architecture of the task emission pipeline./ov-build:eval — ov image validate schema-checks every eval: entry: exactly-one-verb, attribute types, scope/variable consistency (build-scope can't reference runtime-only vars), id: uniqueness per section, matcher operator allowlist, unroutable-check rejection. The five live-container verbs (cdp/wl/dbus/vnc/mcp) also get per-verb method-allowlist + required-modifier enforcement via validateOvVerb (deploy-scope-only; unknown methods rejected with the allowed set listed)./ov-build:mcp — the standalone reference for the mcp: verb: required modifiers (tool: for call, uri: for read), the 7-method allowlist, and the URL-rewrite / port-publishing behavior that authors occasionally hit./ov-advanced:cdp, /ov-advanced:wl, /ov-advanced:dbus, /ov-advanced:vnc — per-verb references for the other four live-container verbs.ov image validate does NOT enforce global name uniqueness across kinds. The same name MAY exist simultaneously as a layer (layers/<name>/), an image: entry, a pod: entry, a vm: entry, a k8s: entry, a local: entry, AND a deploy: entry. Uniqueness is scoped to each kind. Do not write a validator that flags image.foo + vm.foo as ambiguous — verbs disambiguate by command context. Hard load-time errors this cutover added: (a) the retired deploy.qc / deploy.cachyos-dx keys hard-fail with a remediation hint pointing at ov migrate ov-cachyos; (b) any residual kind: deployment doc or root-key deployment: (the schema kind was renamed to deploy in the 2026-05-XX per-kind file split) hard-fails with a hint pointing at ov migrate kind-files. See CLAUDE.md "Cross-kind name reuse is permitted and encouraged" and /ov-build:migrate.
MUST be invoked when the task involves ov image validate command, validation rules, common validation errors, or checking image.yml and layer definitions. Invoke this skill BEFORE reading source code or launching Explore agents.
Workflow position: Pre-build. Validate before building to catch errors early.
tools
OpenCharly CLI (charly) binary installed into container/VM images for in-container use. Use when working with charly binary deployment inside containers, native D-Bus support, or the full charly toolchain (charly binary + virtualization + gocryptfs + socat).
development
Operator CachyOS workstation profile — a kind:local template + target:local deploy that installs the full dev stack (30 candies) onto a CachyOS host via ShellExecutor. Lives in the overthinkos/cachyos submodule. MUST be invoked before editing or applying the charly-cachyos workstation profile.
tools
Fedora box with the full charly toolchain using shared candies. Rootless-first — runs as uid=1000 with passwordless sudo (no root, no cap_add: ALL). Same candy list as charly-arch. Includes NVIDIA GPU runtime. MUST be invoked before building, deploying, configuring, or troubleshooting the charly-fedora box.
tools
Arch Linux box with the full charly toolchain. Rootless-first — runs as uid=1000 with passwordless sudo (no root, no cap_add: ALL). Composes /charly-coder:charly-mcp so the box is reachable as an MCP gateway on port 18765. NVIDIA GPU runtime composed in. MUST be invoked before building, deploying, configuring, or troubleshooting the charly-arch box.