refactor(claude-design-skill): template-first rewrite with bug fixes#467
Merged
refactor(claude-design-skill): template-first rewrite with bug fixes#467
Conversation
Replace the rule-heavy Claude Design skill with a template-first approach. Instead of teaching all rules from scratch (863 lines), provide pre-valid skeletons where structural rules are embedded. Claude Design fills in palette, content, and animations. Key changes: - Pre-valid HTML skeletons for social reel (vertical), launch teaser, product explainer, and cinematic title - Mixed transitions: 2-3 shader transitions at key moments, rest hard cuts (matches professional video practice) - autoAlpha toggles for non-anchor scenes (fixes invisible middle scenes caused by HyperShader's blanket opacity reset) - Explicit first-anchor opacity fix (HyperShader browser mode never auto-shows the first anchor scene) - No shaders on vertical (1080x1920) — WebGL canvas is hardcoded to 1920x1080 in webgl.ts - Inline animation patterns (counter, stroke draw, stagger, float, bar chart, orbit, highlight sweep, safe CSS grain) - Claude Design → Claude Code handoff workflow documented in README template and delivery step - Troubleshooting table for black preview, invisible scenes, seeking - Self-review checklist split: structural validity, brand accuracy, animation baseline - Skill description updated per review feedback on PR #353 to disambiguate from the hyperframes skill on cross-surface routing Bugs fixed by this rewrite (confirmed across demov4-1 through demov4-6 and demov5-1 through demov5-5): - First shader anchor invisible in every composition - Non-anchor scenes killed by blanket querySelectorAll(".scene") opacity reset - visibility toggles insufficient (opacity:0 persists after reset) - Shaders on vertical compositions produce distorted transitions
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
miguel-heygen
approved these changes
Apr 24, 2026
Update docs, quickstart, prompting guide, and README to reflect: - Template-first approach (attach file, not paste URL) - Claude Design produces drafts, refine in any AI coding agent - Known limitations (vertical shaders, seeking, no linting) - Practical example prompts (feature announcement, founder pitch) - Removed outdated references (invisible bridges, fetch-the-skills-tree) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Replaces the rule-heavy Claude Design skill with a template-first approach. Instead of 863 lines of prose rules and building from scratch, provides pre-valid HTML skeletons where structural rules are embedded. Claude Design fills in palette, content, and animations.
Why
Testing across 12 compositions (demov4-1 through demov4-6, demov5-1 through demov5-5) revealed systematic bugs:
scenes[0]. Every composition had this.querySelectorAll(".scene").forEach(s => s.style.opacity = "0")poisons all scenes.visibilitytoggles alone can't overrideopacity:0.webgl.tshardcodes canvas to 1920×1080. Vertical (1080×1920) compositions get distorted transitions..scene-contentwrappers, misses timeline registration. Templates eliminate these structural failures.How
autoAlphatoggles (sets both opacity AND visibility) for non-anchor scenes instead ofvisibilityalonetl.set("#sN", { opacity: 1 }, startTime)for first anchor in each shader grouphyperframesskill per Jake's review on docs: add Claude Design HyperFrames entry point #353Test plan
packages/shader-transitions/src/webgl.ts:3-4bunx oxlint— passesbunx oxfmt --check— passes🤖 Generated with Claude Code