Reference
CLI workflows
Every workflow is available both as an MCP tool and as a command. Run npm run COMMAND -- --help for the complete options supported by each one.
Portfolio & snapshots
The local registry lives at .ztothez-design-local/portfolio-registry.yaml and snapshots live under .ztothez-design-benchmarks/. Both are excluded from Git and package output.
Validate and inventory the local registry
zz-design portfolio validate-registryzz-design portfolio inventoryCreate a disposable snapshot
Runs no command inside the original project. Use --keep only when an isolated adapter needs the snapshot for a later local stage. Linux executable stages use Bubblewrap and fail closed when process isolation is unavailable.
zz-design portfolio snapshot --project scenestartRun an isolated baseline or cohort
Projects with a declared static fixture and product contract also run browser journeys, the consolidated quality gate, optional heuristic review, and checksummed artifact capture.
zz-design portfolio baseline --project scenestart --run scenestart-baselinezz-design portfolio benchmark --cohort development --run development-001zz-design portfolio verify-unchanged --run development-001zz-design portfolio report --run development-001Repository audit
Deterministic static analysis for coupling, component size, raw design values, mock production paths, network states, accessible names, and placeholder interactions.
Audit a repository
npm run audit -- --repo PATH_TO_APPLICATION --fail-on errorContract & brief validation
Structural validation runs before generation. A brief that leaves users, tasks, data behavior, recovery, assumptions, or acceptance evidence undefined blocks generation.
Validate a product contract
npm run validate-contract -- \ --contract knowledge-base/benchmarks/aegisops/product-contract.yaml \ --project-root .Validate a product design brief
The installed CLI provides the same report with zz-design validate-brief --brief PATH.
npm run validate-brief -- \ --brief knowledge-base/design-intelligence/product-design-brief.template.yamlEvaluate a heuristic review
npm run review-heuristics -- \ --review knowledge-base/usability-evaluation/heuristic-review.template.yamlDesign, trust & information design
Three independent contract families: what the interface looks like, what it truthfully claims, and how it ranks information.
Validate a design-intelligence deliverable
npm run validate-design -- \ --manifest knowledge-base/design-intelligence/design-deliverable.template.yamlValidate interface trust and data provenance
npm run validate-trust -- \ --contract knowledge-base/design-intelligence/interface-trust.template.yamlValidate operational information design
npm run validate-information -- \ --contract knowledge-base/design-intelligence/information-design.template.yamlComparison & human review
Omit --require-release-ready while preparing an honest incomplete review. Structural validation can pass while the release decision remains blocked by missing stages or evidence classes.
Validate an interface comparison
npm run validate-comparison -- \ --methodology knowledge-base/benchmarks/interface-quality/comparison-methodology.template.yaml \ --review knowledge-base/benchmarks/interface-quality/review.template.yaml \ --require-release-readyCompile completed reviewer sessions
The compiler hashes each source session and reports matrix completeness, counterbalancing, category scores, task metrics, and the anonymous target-versus-comparator decision. It rejects draft templates and never creates human observations.
npm run compile-comparison -- \ --methodology knowledge-base/benchmarks/azure-optimizer/v2-human-review-methodology.yaml \ --base-review evidence/interface-quality/azure-v2-review/review.yaml \ --sessions evidence/interface-quality/azure-v2-review/reviewer-packet/completed-sessions \ --output evidence/interface-quality/azure-v2-review/review.completed.yaml \ --require-release-readyAssess a disclosed maintainer review
The solo-maintainer track may authorize continued engineering when the target stages and maintainer-scored categories pass. It never changes the anonymous comparison thresholds or converts maintainer evidence into representative-user or external release evidence.
npm run assess-maintainer -- \ --methodology knowledge-base/benchmarks/azure-optimizer/v2-human-review-methodology.yaml \ --review evidence/interface-quality/azure-v2-review/review.completed.yaml \ --output evidence/interface-quality/azure-v2-review/maintainer-assessment.json \ --require-engineering-readyEvaluate the maintained system corpus
npm run evaluate-corpusBrowser verification
Screenshot matching establishes only that the captured pixels and masking policy are unchanged in the current environment. It does not establish visual quality, task success, or approval of an intentional change.
Verify a running interface
npm run verify-ui -- \ --url http://127.0.0.1:3000 \ --journeys knowledge-base/benchmarks/aegisops/journeys.json \ --profile responsive-overview \ --output .ztothez-design-runtime/responsive-overviewCreate then compare a screenshot baseline
Only declared dynamic regions are masked.
npm run verify-ui -- \ --url http://127.0.0.1:3000 \ --dynamic-selector "[data-runtime-clock]" \ --screenshot-baseline evidence/runtime/screenshots.json \ --update-screenshot-baselinenpm run verify-ui -- \ --url http://127.0.0.1:3000 \ --dynamic-selector "[data-runtime-clock]" \ --screenshot-baseline evidence/runtime/screenshots.jsonAttach to Chromium over a loopback CDP endpoint
For managed environments where Playwright cannot launch Chromium directly. Only loopback origins are accepted.
chromium --headless --no-sandbox --remote-debugging-address=127.0.0.1 \ --remote-debugging-port=9222 --user-data-dir=/tmp/ztothez-design-cdp about:blankZTOTHEZ_DESIGN_CHROMIUM_CDP_URL=http://127.0.0.1:9222 npm run verify-ui -- \ --url http://127.0.0.1:3000Quality gate
One consolidated decision from contract, audit, runtime, acceptance, and human evidence. Run npm run COMMAND -- --help for the complete options supported by each workflow.
Run a complete profile quality gate
npm run quality-gate -- \ --contract knowledge-base/benchmarks/aegisops/product-contract.yaml \ --repo PATH_TO_APPLICATION \ --project-root . \ --url http://127.0.0.1:3000 \ --profile responsive-overview \ --output .ztothez-design-quality-gate/responsive-overview \ --fail-on error