demo-asset-sync
БесплатноБез исполняемых скриптовНе проверенCopy freshly rendered demo videos/screenshots/promo tiles from packages/demo/ output dirs into packages/web/public/videos/ after a record+render pass…
от lbragile★ 192 звезды на GitHubОб этом скилле
Demo asset sync
packages/demo/'s Remotion+Playwright pipeline renders into its own out/, screenshots/store/, and promo/ directories — nothing copies that output into the web app automatically. Run this after any record:*/render:*/screenshots/store-assets pass whose output should ship on the marketing site.
Verify fresh output exists before copying — don't copy stale files from a previous run:
ls -la packages/demo/out/ packages/demo/screenshots/store/ packages/demo/promo/Compress the tour videos + posters into the web app (these are the only demo assets currently committed to git — see
packages/demo/.gitignore, which excludesscreenshots/andpromo/as local-only working-tree output). The landing-page hero (DemoSection.tsx) playstabmerger-tour-{dark,light}.mp4by site theme and showstour-poster-{dark,light}.jpg(the video's first frame) until it loads. The renders are 1920x1080 at about 20 MB, so re-encode to 1280x720 (about 3.4 MB) rather than copying; this needs a fullffmpeg($TM_FFMPEG, the same oneaudio:touruses):for t in dark light; do "$TM_FFMPEG" -y -i packages/demo/out/tour/tabmerger-tour-$t.mp4 -vf scale=1280:-2 -c:v libx264 -preset slow -crf 26 -pix_fmt yuv420p -c:a aac -b:a 128k -movflags +faststart packages/web/public/videos/tabmerger-tour-$t.mp4 "$TM_FFMPEG" -y -i packages/demo/out/tour/tabmerger-tour-$t.mp4 -frames:v 1 -vf scale=1280:-2 -q:v 4 packages/web/public/videos/tour-poster-$t.jpg doneThen make the WebP renditions the hero's
<picture>serves (1280px, and 640px for phones: about 10 to 22 KB against the JPEG's 55 KB). They must exist for both themes, or the landing page shows a broken poster (__tests__/tour-poster-files.test.tschecks this). Run frompackages/web:node -e 'const s=require("sharp");(async()=>{for(const t of ["light","dark"]){const j="public/videos/tour-poster-"+t+".jpg";await s(j).webp({quality:72,effort:6}).toFile("public/videos/tour-poster-"+t+".webp");await s(j).resize(640).webp({quality:72,effort:6}).toFile("public/videos/tour-poster-"+t+"-640.webp")}})()'Screenshots/promo tiles stay local-only by design (an explicit decision — see
.claude/agent-memory/demo/) unless you're deliberately changing that: they live inpackages/demo/screenshots/store/*.jpgandpackages/demo/promo/*.jpg, git-ignored..github/workflows/publish.yml's release-asset step already globs these paths and will silently pick them up the moment they're committed — no workflow change needed if you later decide to ship them.Verify before committing:
git statusforpackages/web/public/videos/— confirm file sizes/timestamps actually changed, since a failed render can leave stale output inpackages/demo/out/that looks present but isn't current.Commit the updated video files with a message describing what changed in the demo (e.g. "fix(demo): correct dark theme rendering, re-record").
Установить demo-asset-sync в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл demo-asset-sync?
Copy freshly rendered demo videos/screenshots/promo tiles from packages/demo/ output dirs into packages/web/public/videos/ after a record+render pass. User-invoked only.
Как установить скилл demo-asset-sync?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл demo-asset-sync запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic