Commit 0aef576
committed
fix(claude-design-skill): close three gaps Claude Design self-identified
During Test-v10, Claude Design spent significant time debugging three
issues the skill didn't address clearly. Each sentence below would
have prevented the problem.
1. **Sub-composition preview loading.** The skill previously said
`data-composition-src` loads sub-comps but didn't state when the
runtime processes it. Claude Design hedged with a plain
`<iframe src="sub.html?standalone=1">` thinking auto-nesting might
be render-only — which produces an empty iframe because the
`<template>` wrapper is inert under normal HTML rendering.
Verified via `packages/core/src/runtime/compositionLoader.ts` that
the runtime handles `data-composition-src` at both preview and
render time. Added: "The HyperFrames runtime auto-nests
sub-compositions in both preview AND render. Don't hedge with a
plain <iframe>."
2. **Scene visibility ownership for shader-transition compositions.**
The skill said `html2canvas` captures scene textures and the
canvas composites them during transitions — but never said who
owns `.scene` opacity *between* transitions. Claude Design set
opacity:0 on all scenes and ended up with a dead state
(everything hidden). Added: "HyperShader drives the transition
overlay, NOT scene presence. You own scene show/hide via tl.set()
with autoAlpha."
3. **Dev-time scrubbing deadlock.** The skill warns about scrub
latency for shader transitions during user playback but not about
rapid `tl.progress()` calls during dev-time inspection queuing
html2canvas captures. Claude Design hit repeated
save_screenshot timeouts from this. Added: "Dev-time scrubbing
trap: pause first, then tl.time(t) once."
Net: +18 lines targeting three specific failure modes observed in
the field.
Made-with: Cursor1 parent eca46ef commit 0aef576
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
| |||
344 | 346 | | |
345 | 347 | | |
346 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
347 | 363 | | |
348 | 364 | | |
349 | 365 | | |
| |||
359 | 375 | | |
360 | 376 | | |
361 | 377 | | |
| 378 | + | |
| 379 | + | |
362 | 380 | | |
363 | 381 | | |
364 | 382 | | |
| |||
0 commit comments