visual-regression
Run and interpret Clawix UI geometry, screenshot, protected-surface, and debt-baseline checks without authorizing visual repair.
- License 许可
- MIT
- 所属仓库
- clawic/Clawix
- 最近更新
- 2026-06-06
- Stars
- ★ 8
- Forks
- 0
01 前言 Front Matter
- name
- visual-regression
- keywords
- [ "ui", "visual", "regression", "screenshots", "geometry", "baseline" ]
- description
- Run and interpret Clawix UI geometry, screenshot, protected-surface, and debt-baseline checks without authorizing visual repair.
03 SKILL.md 正文
visual-regression
Use when validating that UI has not drifted.
Procedure
- Read
docs/adr/0010-interface-governance.md,docs/ui/README.md, and the relevant pattern manifests. - Run public checks:
node scripts/ui_governance_guard.mjs node scripts/ui_rendered_geometry_manifest_check.mjs node scripts/ui_private_baseline_manifest_check.mjs node scripts/ui_private_visual_validation_manifest_check.mjs - When private visual baselines are available, run the private/local screenshot
and geometry comparison for the changed surface:
CLAWIX_UI_PRIVATE_BASELINE_ROOT=<private-root> CLAWIX_UI_PRIVATE_GEOMETRY_ROOT=<private-root> CLAWIX_UI_PRIVATE_COPY_ROOT=<private-root> CLAWIX_UI_PRIVATE_DRIFT_ROOT=<private-root> CLAWIX_UI_PRIVATE_DEBT_AUDIT_ROOT=<private-root> CLAWIX_UI_PRIVATE_APPROVAL_ROOT=<private-root> node scripts/ui_private_visual_verify.mjs --require-approved CLAWIX_UI_PRIVATE_GEOMETRY_ROOT=<private-root> node scripts/ui_private_geometry_verify.mjs --require-approved CLAWIX_UI_PRIVATE_BASELINE_ROOT=<private-root> node scripts/ui_private_baseline_verify.mjs --require-approved - Classify findings as protected-surface drift, new visual debt, expired exception, missing registry mapping, or non-visual false positive.
- Report out-of-scope drift; do not repair it unless the active model and task are explicitly visual-authorized.
Constraints
- Private screenshots/baselines stay outside the public repo.
- Passing public checks does not approve a new visual direction.
- A user-approved baseline is required before a surface becomes protected.
04 同仓库更多 Skills
ui-performance-budget
Capture and compare Clawix UI performance budgets for critical flows before optimizing visible or runtime UI behavior.
ui-implementation
Implement functional Clawix UI wiring while respecting visual mutation boundaries, pattern contracts, protected surfaces, and debt baselines.
ui-canon-review
Review whether a Clawix UI pattern, visual decision, copy change, or component extraction belongs in canon, debt, exception, or protected-surface scope.
theme-factory
Produce variants of an existing Style by shifting tone (light/dark), density (compact/relaxed), or accent (palette rotation) while preserving the brand identity. Use when the user wants alternate themes derived from one brand.
template-render
Render a Template + data + Style into a final artifact in one of HTML, PDF, PNG, SVG or PPTX. Use whenever the user asks for a concrete deliverable like "make me a poster", "render a card", "give me a one-pager".
surface-route-work
Work from a registered surface or transverse route by inspecting nodes, neighbors, edges, contracts, owners, tests, and gaps before editing.