Repository navigation
Closed
Description
Part of #102 — wave 1.
Mini-spec
Goal: realign the authoring documentation with the schema the code actually accepts. This corpus is the de-facto schema (~63k tokens), so its drift translates directly into broken generations.
Invariants
- Every JSON snippet in the documentation validates against the current binary.
- No rule contradicts another rule on the same topic.
Out of scope: deleting LayerStyle from the code (L4 owns that); restructuring SKILL.md into a loader-based split (tracked separately if wanted).
Acceptance — each verified by extracting the snippet and running validate:
fill/strokedocumented at component root, not insidestyle— 6 sites including "Example 1: Marketing Card" (SKILL.md:284,:837,:844-845,:1048,:1066-1068).timeline/staggerdocumented at root (SKILL.md:2251-2252,:2306-2320,:1131).box-shadowdocumented as an array with kebab-case keys (SKILL.md:1104,:2290).flex-wrapdocumented as an enum, not a bool (SKILL.md:1107).grid-template-columnsreduced to the one valid syntax (SKILL.md:1081,:1111,icon-sizing-hierarchy.md:106).motion-pathandstyle.sizeremoved (SKILL.md:2250,wiggle-additive.md:26).transformdocumented as an array of transform functions, not a CSS string (depth-layering.md:109-111).text-backgrounddocumented at root (text-background.md:10-19).geometry-safety.mdrewritten aroundwhite-space;CLAUDE.md:19stops describingstyle.wrap.CLAUDE.mdcomponent count corrected to 57,qrcode→qr_code, andqr_code/waveform/audio_spectrumdocumented.- The background
$refexample incolor-palettes.md:100-118fixed — it currently validates but renders a black frame. - Contradictions resolved:
SKILL.md:1041vs:1122onpositioninsidecard; theend_at-on-counter examples that violate the checklist atSKILL.md:2523; the preset counts (31 / 45 / 39 — actual is 40 + 6 char); the easing count (11 documented, 17 +cubic_bezieractual). - The 4 orphaned rules present on main are linked from SKILL.md, and the 7 repo examples are referenced — they are currently more correct than the prose.
Files: CLAUDE.md, .claude/skills/rustmotion/**
Verify — extract every fenced JSON block and validate it:
rtk cargo build --release
then run each documented snippet through ./target/release/rustmotion validate.
Metadata
Metadata
Assignees
Labels
No labels
Activity
docs(skills): realign the authoring guide with the schema
Post-audit reliability hardening — wave 1 (critical + high) (#108)
LeadcodeDev commentedon Aug 1, 2026
Merged into
mainvia #108 (squash38596ca).