/install artifact-contract-auditor
Artifact Contract Auditor
Purpose: make each workspace auditable and shareable.
This skill checks two contracts:
- Units contract: if a unit is marked
DONE, its required outputs must exist. - Pipeline contract: the pipeline’s
target_artifacts(from the pipeline spec referenced byPIPELINE.lock.md) should exist for a complete run.
It always writes a report so workspaces can serve as regression baselines.
Inputs
UNITS.csvPIPELINE.lock.md- Pipeline spec referenced by
PIPELINE.lock.md(underpipelines/*.pipeline.md; reads YAMLtarget_artifacts)
Outputs
output/CONTRACT_REPORT.md
Workflow (analysis-only)
- Read
UNITS.csvand validate DONE outputs
- For every unit with
status=DONE, verify each required output exists. - Outputs prefixed with
?are treated as optional and do not fail the contract.
- Read
PIPELINE.lock.mdand validate pipeline target artifacts
- Resolve the pipeline spec under
pipelines/*.pipeline.mdand loadtarget_artifactsfrom its YAML front matter. - Resolve the pipeline spec path and load
target_artifactsfrom its YAML front matter. - If the pipeline is complete (all units are
DONE/SKIP), verify each requiredtarget_artifactsfile exists.
- Write
output/CONTRACT_REPORT.md(always)
- Include missing DONE outputs (unit-level drift) and missing pipeline targets (pipeline-level completeness drift).
Status semantics
PASS: pipeline complete (all unitsDONE/SKIP) AND all required target artifacts exist AND no DONE unit is missing required outputs.OK: pipeline incomplete (still running) BUT DONE unit outputs are consistent; missing targets are expected.FAIL: at least one DONE unit is missing required outputs OR pipeline is complete but required target artifacts are missing.
How to use this report (self-loop routing)
- If DONE outputs are missing: fix the contract drift (regenerate the missing artifacts, or revert the unit status to TODO/BLOCKED).
- If the pipeline is complete but target artifacts are missing: find which unit/skill owns each missing artifact and rerun that unit.
Script
Quick Start
python scripts/run.py --workspace workspaces/\x3Cws>
All Options
--workspace \x3Cdir>--unit-id \x3CU###>(optional)--inputs \x3Csemicolon-separated>(unused; runner compatibility)--outputs \x3Csemicolon-separated>(unused; runner compatibility)--checkpoint \x3CC#>(optional)
Examples
- End-of-run audit (recommended before sharing a workspace):
python scripts/run.py --workspace workspaces/\x3Cws>
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install artifact-contract-auditor - After installation, invoke the skill by name or use
/artifact-contract-auditor - Provide required inputs per the skill's parameter spec and get structured output
What is Artifact Contract Auditor?
Audit the workspace against the pipeline artifact contract (DONE outputs + pipeline target_artifacts). Writes `output/CONTRACT_REPORT.md`. **Trigger**: contr... It is an AI Agent Skill for Claude Code / OpenClaw, with 146 downloads so far.
How do I install Artifact Contract Auditor?
Run "/install artifact-contract-auditor" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Artifact Contract Auditor free?
Yes, Artifact Contract Auditor is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Artifact Contract Auditor support?
Artifact Contract Auditor is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Artifact Contract Auditor?
It is built and maintained by WILLOSCAR (@willoscar); the current version is v1.0.0.