What problem does it solve?
It prevents subtle mismatches between generated Vue component code, stories, and Figma mappings and the intended specification by re-parsing artifacts from disk and validating them independently.
Core Features & Use Cases
- Independent parsing of component API: Re-read
defineProps, defineEmits, and defineSlots from every relevant .vue file to extract the operational contract.
- Story and Figma mapping cross-check: Compare exported story definitions and
.figma.ts connection keys against the spec values.
- Animation and motion consistency validation: Ensure every expected
animate-*/transition-* class appears and that each animation class usage complies with motion-reduce requirements.
- Agreement with the compliance hook: Compare its diff results with
validate-spec-compliance.mjs output to decide parity vs degraded vs blocked outcomes.
Quick Start
Run this skill after the component creation step writes files so it can re-read the outputs, diff them against the corresponding .specs/<name>.md, and produce the canonical compliance report.