Commit 6dae88d
authored
docs(skill): correct the shape spellings and the motion-path claim (#193)
Two lines in SKILL.md made the generator write scenarios the schema rejects.
`ShapeType` is externally tagged, but the skill described the parameterised
variants as "star (with points, default 5)", which reads as a sibling field.
`"shape": "star"` fails with `invalid type: unit variant, expected struct
variant`; the correct spelling is `{"star": {"points": 6}}`. Show the literal
JSON for all eight variants instead of prose.
The skill also still stated that motion-path does not exist and that there is
no path-following mechanism. That stopped being true with #177. Point at
rules/motion-path.md and spell out the trap the old note should now be
preventing: `motion-path` in `style` is dropped, `motion_path` in `animation`
is the effect.
A test pins the eight documented spellings and keeps a bare `star` rejected,
so the wording cannot drift back.1 parent 1276989 commit 6dae88d
4 files changed
Lines changed: 46 additions & 2 deletions
File tree
- .claude/skills/rustmotion
- crates/rustmotion/src
- examples
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
919 | 919 | | |
920 | 920 | | |
921 | 921 | | |
922 | | - | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
923 | 930 | | |
924 | 931 | | |
925 | 932 | | |
| |||
2350 | 2357 | | |
2351 | 2358 | | |
2352 | 2359 | | |
2353 | | - | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
2354 | 2363 | | |
2355 | 2364 | | |
2356 | 2365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
166 | 201 | | |
167 | 202 | | |
168 | 203 | | |
| |||
Binary file not shown.
Binary file not shown.
0 commit comments