web-demo-video
3
总安装量
3
周安装量
#57325
全站排名
安装命令
npx skills add https://github.com/nerddaddy/web-demo-video_skills --skill web-demo-video
Agent 安装分布
trae
2
gemini-cli
2
claude-code
2
github-copilot
2
codex
2
kimi-cli
2
Skill 文档
Web Demo Video Skill
Playwright ë ¹í + Remotion í©ì±ì¼ë¡ ì¹ì¬ì´í¸ ìì°/ìê° ììì ìë ìì±íë ì¤í¬.
When to use
- ì¬ì©ìê° ì¹ì¬ì´í¸/ì¹ì±ì ìì°(demo) ììì ìì²í ë
- ì í/ìë¹ì¤ ìê° ììì ë§ë¤ ë
- ê¸°ë¥ ìí¬ì¤ë£¨(walkthrough) ììì ë§ë¤ ë
- ì¹ ê¸°ë° UIì íí ë¦¬ì¼ ììì ë§ë¤ ë
Overview
ì´ ì¤í¬ì 3ë¨ê³ íì´íë¼ì¸ì¼ë¡ ëìíë¤:
1. ìëë¦¬ì¤ ìì± â 2. Playwright ë
¹í â 3. Remotion í©ì± â MP4 ì¶ë ¥
Phase 1: ìëë¦¬ì¤ ìì±
ì¬ì©ìì ìì²ì ë¶ìíì¬ JSON ìë리ì¤ë¥¼ ìì±íë¤. ìëë¦¬ì¤ ì¤í¤ë§ë ./rules/scenario-schema.md ì°¸ê³ .
ìë리ì¤ìë ë¤ìì´ í¬í¨ëë¤:
- scenes: ê° ì¥ë©´ì URL, ì¡ì (í´ë¦/ì ë ¥/ì¤í¬ë¡¤), ë기 ìê°
- captions: ê° ì¥ë©´ì ëìíë ìë§/ì¤ëª í ì¤í¸
- branding: ì¸í¸ë¡/ììí¸ë¡ íì´í, ë¡ê³ , ìì ë±
Phase 2: Playwright ë ¹í
ìëë¦¬ì¤ ê¸°ë°ì¼ë¡ Playwrightê° ì¹ì¬ì´í¸ë¥¼ ì¡°ìíë©° ë ¹ííë¤. ìì¸ ê°ì´ëë ./rules/playwright-recording.md ì°¸ê³ .
íµì¬ ì¬í:
browser.newContext({ recordVideo: { dir, size } })ë¡ ë ¹í íì±í- ê° sceneë³ë¡ ë³ë context를 ìì±íì¬ ê°ë³ í´ë¦½ì¼ë¡ ë ¹í
- ì¡ì ê° ì ì í ëë ì´(500ms~1500ms)를 ì½ì íì¬ ìì²ìê° ë°ë¼ì¬ ì ìëë¡ í¨
- ë
¹í ìë£ í ë°ëì
context.close()í¸ì¶íì¬ ìì íì¼ ì ì¥ - ì¶ë ¥: WebM â
bunx remotion ffmpegë¡ MP4 ë³í
Phase 3: Remotion í©ì±
ë ¹íë í´ë¦½ë¤ê³¼ ìë§/ì¸í¸ë¡/ììí¸ë¡ë¥¼ Remotionì¼ë¡ í©ì±íë¤.
íµì¬ ì¬í:
<Video>ì»´í¬ëí¸ë¡ ë ¹í ìì ì½ì (@remotion/media)<TransitionSeries>ë¡ ì¥ë©´ ê° ì í í¨ê³¼ (@remotion/transitions)<Sequence>ë¡ ì¸í¸ë¡ â í´ë¦½ë¤ â ììí¸ë¡ ìíì±- ìë§ì
<AbsoluteFill>ì¤ë²ë ì´ë¡ ê° ì¥ë©´ ìì íì calculateMetadataë¡ ë ¹í ìì 길ì´ì ë§ì¶° ëì duration ì¤ì
Rule Files
ìì¸ ê·ì¹ì ê°ë³ rule íì¼ ì°¸ê³ :
- scenario-schema.md – ìëë¦¬ì¤ JSON ì¤í¤ë§ ì ì
- playwright-recording.md – Playwright ë ¹í ìì¸ ê°ì´ë
- remotion-composition.md – Remotion í©ì± 구조 ë° ì»´í¬ëí¸
- captions-overlay.md – ìë§/ì¤ëª í ì¤í¸ ì¤ë²ë ì´
- cursor-highlight.md – ê°ì 커ì ë° í´ë¦ íì´ë¼ì´í¸
- rendering.md – ìµì¢ ë ëë§ ë° ì¶ë ¥
Remotion 기본 ê·ì¹
ìë ê·ì¹ì ë°ëì ë°ë¥¼ ê² (remotion-best-practices 기ë°):
- ì ëë©ì´ì
:
useCurrentFrame()í 기ë°. CSS ì ëë©ì´ì /Tailwind ì ëë©ì´ì í´ëì¤ ì ë ê¸ì§ - ìíì±:
<Sequence>ì¬ì©, íìpremountForì¤ì - í¸ëì§ì
:
@remotion/transitionsìfade,slide,wipeì¬ì© - ë¹ëì¤ ìë² ë©:
@remotion/mediaì<Video>ì»´í¬ëí¸ - í°í¸:
@remotion/google-fontsëëloadFont()ì¬ì© - FFmpeg:
bunx remotion ffmpegë¡ ì ê·¼ (ë³ë ì¤ì¹ ë¶íì)
íë¡ì í¸ êµ¬ì¡°
project-root/
âââ package.json
âââ remotion.config.ts
âââ src/
â âââ Root.tsx # Composition ì ì
â âââ WebDemo/
â â âââ index.tsx # ë©ì¸ í©ì± ì»´í¬ëí¸
â â âââ Intro.tsx # ì¸í¸ë¡ ì¥ë©´
â â âââ SceneClip.tsx # ë
¹í ìì + ìë§ ì¤ë²ë ì´
â â âââ Outro.tsx # ììí¸ë¡ ì¥ë©´
â â âââ CaptionOverlay.tsx # ìë§ ì»´í¬ëí¸
â â âââ CursorHighlight.tsx # 커ì íì´ë¼ì´í¸
â âââ types.ts # íì
ì ì
âââ scripts/
â âââ record-scenes.ts # Playwright ë
¹í ì¤í¬ë¦½í¸
âââ public/
â âââ recordings/ # ë
¹í ììë¤
â âââ assets/ # ë¡ê³ ë±
â âââ scenario.json # ìë리ì¤
âââ out/
âââ demo-video.mp4 # ìµì¢
ì¶ë ¥
ì¤í ìì
# 1. íë¡ì í¸ ì´ê¸°í
npx create-video@latest # Blank, TailwindCSS ON
cd my-video && npm install
npm install playwright
npx playwright install chromium
# 2. ìëë¦¬ì¤ ìì± â public/scenario.json
# 3. Playwright ë
¹í
npx tsx scripts/record-scenes.ts
# 4. WebM â MP4 ë³í (ê° í´ë¦½)
bunx remotion ffmpeg -i public/recordings/scene-01.webm -c:v libx264 -c:a aac public/recordings/scene-01.mp4
# 5. Remotion í리뷰
npm run dev
# 6. ìµì¢
ë ëë§
npx remotion render src/Root.tsx WebDemo out/demo-video.mp4
ì¤ê³ ìì¹
- ì¥ë©´ ë¶ë¦¬: ê° scene â ë³ë Playwright context â ë 립 í´ë¦½
- ìë§ ë기í: sceneë§ë¤
captionText+captionPosition매í - ì ì°í í©ì±:
<TransitionSeries>ë¡ ì¸í¸ë¡-í´ë¦½-ììí¸ë¡ ë°°ì¹ - ëì 길ì´:
calculateMetadataë¡ ë ¹í ê¸¸ì´ ê¸°ë° ìë ê³ì° - ë¸ëë© ì»¤ì¤í : íì´í, ìì, í°í¸ë¥¼ ìë리ì¤ìì ì¤ì