name: model-cross-check description: Record primary/checker model observations through the nils-cli model-cross-check command without owning provider calls.
Model Cross Check
Use this skill when a workflow needs a structured record that a primary model result was cross-checked by another model or reviewer.
Contract
Prereqs:
- Provider calls, authentication, cost controls, and prompt execution stay owned by the calling workflow or provider-specific skill.
- Choose an explicit output directory, preferably under a project-scoped
agent-outrun directory. - Required released PATH usage:
model-cross-checkavailable onPATHfromnils-cli 0.8.4or newer. - Release boundary:
0.8.4is the release that includesnils-agent-workflow-primitives. - Local checkout fallback: Rust/Cargo plus a validated local
nils-clicheckout that buildsnils-agent-workflow-primitives, used only when the PATH binary is absent or reports a version older than0.8.4.
Inputs:
init: required--out DIR,--prompt TEXT,--primary-model TEXT, and--checker-model TEXT; optional repeatable--criterion TEXT,--force, and--format text|json.record-observation: required--out DIR,--role primary|checker,--model TEXT,--verdict pass|fail|inconclusive, and--summary TEXT; optional repeatable--artifact PATHand--format text|json.verify/show: required--out DIR; optional--format text|json.
Outputs:
- Writes
model-cross-check.jsonunder--out DIR. - JSON stdout uses versioned schema values such as
cli.model-cross-check.verify.v1. verifyrequires both primary and checker observations and fails if a checker verdict isfail.
Exit codes:
0: command succeeded; forverify, cross-check evidence is complete.1: runtime failure or incomplete cross-check evidence.64: usage error.
Failure modes:
model-cross-checkis unavailable onPATHand no validated local checkout invocation is being used.- Evidence directory cannot be created or written.
verifyfinds missing primary/checker observations or a checkerfailverdict.- Caller assumes this CLI invokes providers; provider calls remain outside this evidence primitive.
Setup
Required released PATH boundary:
model-cross-check --version
Use the PATH command when it resolves to nils-cli 0.8.4 or newer.
Local checkout fallback boundary:
cargo run --locked --manifest-path /path/to/nils-cli/Cargo.toml \
-p nils-agent-workflow-primitives --bin model-cross-check -- --version
Run the Cargo form from the workflow's target directory. It is only a fallback transport for a validated local checkout when the released PATH binary is absent or too old. Do not mix PATH and local checkout evidence claims without stating which source was used.
Commands
Required released PATH command:
model-cross-check init --out <dir> --prompt <prompt> --primary-model <model> --checker-model <model> [--format json]
model-cross-check record-observation --out <dir> --role primary|checker --model <model> --verdict pass|fail|inconclusive --summary <summary>
model-cross-check verify --out <dir> [--format json]
model-cross-check show --out <dir> [--format json]
model-cross-check completion <bash|zsh>
Local checkout fallback command:
cargo run --locked --manifest-path /path/to/nils-cli/Cargo.toml \
-p nils-agent-workflow-primitives --bin model-cross-check -- <subcommand> ...
This is an evidence primitive, not a model router.
Guardrails
- Do not use
model-cross-checkto call providers, route model traffic, manage credentials, or make cost-control decisions. - Do not record provider credentials, secret prompt material, or artifacts that the calling workflow is not allowed to retain.
- Do not hand-edit
model-cross-check.jsonor duplicate observation validation, schema, or JSON envelope logic in skill-local scripts.