html-demo
Fungsinya
Skill ini memandu agent AI membangun demo aplikasi yang hidup di halaman web. Cocok untuk tim produk yang ingin aplikasinya tampak sedang bekerja, dengan teks yang tajam dan tanpa file video.
Kapan dipakai
- βSaat Anda ingin halaman produk menampilkan aplikasi yang bekerja langkah demi langkah.
- βSaat Anda membutuhkan demo yang tetap tajam di ukuran apa pun dan bisa diputar ulang.
- βSaat demo sebaiknya hanya berjalan selama terlihat di layar.
Link skill
https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/html-demo/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBuat jendela demo langkah demi langkah yang hidup di halaman produk saya, yang menunjukkan aplikasi kami mengimpor file lalu mengekspornya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent menggambar setiap langkah jendela aplikasi dalam HTML dari satu nilai waktu, sehingga setiap bingkai dihitung. Bilah langkah, penunjuk yang sudah diskrip, dan label nyata membuatnya tampak direkam, dan demo dapat diulang, dilewati, atau dibekukan untuk tangkapan layar.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah ini video?
Tidak. Ini adalah HTML dan CSS yang digambar di browser, sehingga teksnya tetap nyata dan tajam.
Bisakah pengunjung melompat ke langkah tertentu?
Bisa. Skill ini menyatakan demo dapat melompat ke langkah, digeser, diulang, dan dibekukan untuk pengunjung dengan gerakan terbatas.
Kapan sebaiknya saya merekam video asli?
Saat Anda membutuhkan rekaman browser asli dalam format MP4, skill ini menunjuk skill video yang berbeda.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 7.2k
- Peringkat
- #13442
- Lisensi
- MIT
- Diperbarui
- 1/11/2026
Komentar
- β¦
Skill lain dari repositori ini
3d-cloth-material
7.2kMembantu agent Anda membuat kain tenun yang realistis di Three.js, dengan anyaman benang, kilau lembut, lipatan alami, kelim, dan jahitan.
3d-falling-leaves
7.2kMembantu agent Anda menambahkan daun berguguran yang realistis ke scene 3D, dengan daun yang berputar, terbawa angin, dan digunakan ulang saat kamera bergerak.
3d-four-seasons
7.2kMembantu agent Anda menambahkan tampilan musim semi, panas, gugur, dan dingin ke scene 3D, dengan mengubah dedaunan, cahaya, langit, dan salju tanpa membangun ulang scene.
3d-high-poly-models
7.2kMembantu agent Anda membangun model 3D yang detail dengan bentuk halus dan tepi yang meyakinkan, lalu menyiapkan versi lebih ringan yang berjalan baik di web.
Skill serupa
angular-developer
280kMembantu agent Anda membuat kode Angular dan memberi saran struktur proyek. Berguna saat memulai proyek baru, membuat komponen, atau meningkatkan performa.
frontend-a11y
280kMembantu agent Anda membuat antarmuka web dapat diakses semua orang. Memastikan website dan aplikasi berfungsi baik dengan screen reader dan navigasi keyboard.
frontend-patterns
280kMembuat agent Anda menerapkan pola modern dalam frontend. Mengoptimalkan performa, mengelola state, dan mengikuti praktik terbaik React dan Next.js.