html-demo
하는 일
이 스킬은 웹 페이지에 라이브 앱 데모를 만드는 과정을 AI 에이전트가 안내합니다. 영상 파일 없이 앱이 실제로 작동하는 것처럼 선명한 글자로 보여 주고 싶은 제품 팀을 위한 스킬입니다.
사용하는 경우
- ✓제품 페이지에서 앱이 단계별로 작동하는 모습을 보여 주고 싶을 때.
- ✓어떤 크기에서도 선명하고 다시 재생할 수 있는 데모가 필요할 때.
- ✓화면에 보일 때만 재생되어야 하는 데모인 경우.
스킬 링크
https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/html-demo/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제품 페이지에 앱이 파일을 가져온 뒤 내보내는 모습을 보여 주는 라이브 단계별 데모 창을 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 하나의 시간 값으로 앱 창의 각 단계를 HTML로 그립니다. 그래서 모든 프레임이 계산됩니다. 단계 막대, 미리 정해진 포인터, 실제 라벨이 녹화된 것처럼 보이게 하며, 반복, 건너뛰기, 스크린샷을 위한 정지가 가능합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
HTML Demo
React · DOM/CSS (a vanilla twin is in scripts/step-window.js). No video, canvas, WebGL or screen recording.
It looks recorded, but it's HTML. Each frame is computed, so it stays sharp at any size and pixel density, its words are real text, and it can loop, jump to a step, scrub, freeze for a screenshot and stand still for reduced motion, all from the same code.
Boundary. Use browser-video-recording when you need a real recording of a real browser as an MP4. Use website-to-motion-design when a page becomes a fixed-length film. Use this skill when the deliverable is a live window on a web page that shows an app working.
Provenance. Extracted from fil.design/download (October 2026). There, Fil for Mac's hero window runs four workflows end to end. Eight chapter windows each show one feature step by step: import a URL → Design → the agent; prompt → inpaint → outpaint → layers → angle; record → motion design → edit → transcript; sites; the browser. One lead built the engine and the hero, and one helper agent built each chapter window from a shared brief.
The mechanism
Every frame of the app is a pure function of one number. A step's View({ t }) draws everything inside the window at a fixed 1200 × 750 design size from t alone, where t is seconds into the step. One CSS scale (--k = width / 1200) then fits that stage to the window.
If you take that away, the demo breaks. When state lives in setTimeout chains, animation callbacks or effects, you can't jump to a step. It drifts after a hidden tab, screenshots differ between runs, and reduced motion catches it half-done. Designing responsively inside the window breaks it differently: text reflows at every width, the pointer misses its targets, and phones show a different app.
import StepWindow, { Cursor, ease, typed, glide } from './scripts/StepWindow.jsx';
const ASK = 'The Ashen One, a knight in blackened armour resting on his sword';
function Prompt({ t }) { // t: 0 → dur, nothing else
const text = typed(ASK, t, 0.9, 2.6); // typed between 0.9 s and 2.6 s
const made = ease(t, 3.4, 5.2); // the picture draws in
const c = glide(t, [[0, 0, 900, 600], [0.2, 0.8, 520, 330], [2.8, 3.3, 760, 470]], [0.85, 3.35]);
return (<>
<App prompt={text} reveal={made} /> {/* the app's real markup at 1200 × 750 */}
<Cursor {...c} /> {/* last, over everything */}
</>);
}
export const STEPS = [
{ id: 'prompt', name: 'Prompt', dur: 6, View: Prompt },
// 3–5 steps, 4–8 s each
];
<StepWindow steps={STEPS} tabs={['The Ashen One']} label="Make a picture" />
scripts/StepWindow.jsx provides the window, its clock (useStepClock), the scaling, the steps bar, Cursor, and the helpers ease, typed, cue, held and glide. references/contract.md has the full API, and references/film.md covers the hero variant (many flows, a camera, beats).
Workflow
- Pick one example and use it everywhere. Choose one believable subject you own, such as a product, a character or a site (Fil used The Ashen One and Ashgrove), and run every window on it. Never show a client's, partner's or real person's canvas. A window full of real names you can't show is unusable, and different subjects in every window read as scraps.
- Gather references of the real UI before drawing anything. Use screenshots, the docs' recordings (pull frames with
ffmpeg -ss 2 -i in.mp4 -frames:v 1 out.png) and the app's source code. List the references for each step. Copy every label, menu item, toast and cost from the source with grep, never from memory. If a viewer who knows the app spots one invented word ("Processing…"), they stop believing the rest. - Script the steps on paper. A window gets 3–5 steps of 4–8 s, 18–30 s in all. Each step gets a beat to see the start (0.3–1 s), the action, the result appearing the way the app shows it (a working state, then the result), and at least 1 s holding on the result. Name the steps as the bar shows them, in 1–3 words ("Paste a link", "Inpaint").
- Write each step as named times, then derive state from
t. Use constants likeTYPE_FROM = 1.9, SEND_AT = 4.3, DONE_AT = 6.9, then comparisons (t >= SEND_AT),ease(t, a, b)for anything that moves,typed()for typing andcue()for lists of changes. Keep times as constants at the top so the choreography reads like a script and can be retimed
자주 묻는 질문
영상인가요?
아닙니다. 브라우저에서 그리는 HTML과 CSS이므로 글자가 실제이고 선명합니다.
방문자가 특정 단계로 이동할 수 있나요?
네. 이 스킬은 데모를 특정 단계로 이동하고, 문지르듯 옮기고, 반복하고, 모션을 줄이는 방문자를 위해 정지시킬 수 있다고 말합니다.
대신 실제 영상을 녹화해야 하는 경우는 언제인가요?
브라우저를 MP4로 실제 녹화해야 할 때는 다른 영상 스킬을 추천합니다.
상세 정보
작성자의 원본 설명
Show an app working on a web page by drawing it live in HTML instead of recording it. A Mac-style window plays the app step by step, and every frame is a pure function of one clock, View(t), drawn on a fixed 1200 × 750 stage that one CSS scale fits to any width. The pointer is scripted, labels and pictures come from the real app, a steps bar sits under the window, it plays only while on screen, and reduced motion gets designed end frames. Use when someone wants a product demo, an animated app window or hero, a feature walkthrough, "the UI animated and simulated in HTML", "like a screen recordi
repo: MengTo/Skills
인기도
- GitHub 스타
- 7.2k
- 순위
- #13442
- 라이선스
- MIT
- 업데이트
- 2026. 11. 1.
댓글
- …
이 저장소의 다른 스킬
3d-cloth-material
7.2k에이전트가 Three.js에서 실 짜임, 부드러운 광택, 자연스러운 주름, 단, 솔기를 갖춘 실제 직물처럼 보이는 천을 만들도록 돕습니다.
3d-falling-leaves
7.2k에이전트가 3D 장면에 나뭇잎이 구르고 바람에 흩날리며 카메라 움직임에 따라 재사용되는 낙엽 효과를 추가하도록 돕습니다.
3d-four-seasons
7.2k에이전트가 3D 장면의 나무, 빛, 하늘, 눈을 바꿔 장면을 다시 만들지 않고 봄, 여름, 가을, 겨울을 표현하도록 돕습니다.
3d-high-poly-models
7.2k에이전트가 매끄러운 형태와 자연스러운 모서리를 가진 세밀한 3D 모델을 만들고, 웹에서 잘 돌아가는 가벼운 버전을 준비하도록 돕습니다.
비슷한 스킬
angular-developer
280k에이전트가 Angular 코드를 만들고 프로젝트 구조를 조언하도록 돕습니다. 새 프로젝트 시작, 코드 부분 생성, 성능과 접근성 개선에 유용합니다.
frontend-a11y
280k모든 사람이 웹 인터페이스를 쓸 수 있도록 에이전트를 돕습니다. 웹사이트와 앱이 화면 읽기 프로그램과 키보드 탐색에서 잘 작동하도록 합니다.
frontend-patterns
280k프론트엔드 개발의 현대적인 패턴을 적용하도록 에이전트를 돕습니다. React와 Next.js에서 성능을 최적화하고, 상태를 관리하며, 모범 사례를 따릅니다.