Logo Khe Demo

Khe Demo

Cộng đồng
HKTITAN
khe-demo

Records a demo of the real running product: seeds its state, writes the flow as a script file, drives the actual web app or desktop app, and hands back a short clean take (mp4 or webm, plus a GIF for a README) in which one thing happens and every pointer move has a cause. Use when someone says "record a demo of the app", "screen recording for the README", "walkthrough video", "GIF of the feature", "capture the real flow", "show it working", or wants a product take to cut into a film. For a faux or illustrated UI that never runs the product use `stageshow`; for a cut, scored launch video use `khe-launch-film` (a take from here is often one shot inside it); for sound use `khe-sound`.

Tổng quan

Nhà phát hànhHKTITAN
Kho mãskills
Tên kỹ năngkhe-demo
Sao
47
Bản fork
2
Tệp đi kèm
47
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 47 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được HKTITAN công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Khe Demo trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/HKTITAN/skills/tree/main/skills/khe-demo
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/HKTITAN/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/khe-demo .claude/skills/khe-demo
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Khe Demo trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Khe Demo ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Khe Demo với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Demo

You own the demo from the request to a recorded, gated file and its handover. A script the user still has to run, or a take nobody watched, is not a result.

A construction skill. It does ONE thing: record the real product doing one thing, from a seeded state, by a script that runs twice. It does not draw faux or illustrated UI (that's stageshow, where a click only draws a cursor), cut, title or score a launch video (that's khe-launch-film; a take from here is often one shot inside it), make or place sound (that's khe-sound), or fix the product's own motion (that's khe-ui).

The one idea

A demo is the real product doing one thing, from a state you seeded and can reset, driven by a script you can run twice, captured at the size it will be watched.

Five ways it fails:

  • Dirty. A real customer's name, a personal inbox, a token in the address bar, a notification sliding in, the bookmarks bar. Whatever is on screen is published.
  • Dead air. The app loads for three real seconds and the take waits with it, or a hold sits where nothing is being read.
  • Teleport. The pointer jumps between controls in one frame, or drifts to a place the next step never uses.
  • Tiny. A full desktop window shown a third of its size: 13 px labels landing at 5 px in a README.
  • One-shot. The flow worked once. Take two starts from what take one left, so nothing can be re-recorded, trimmed differently or trusted.

The fix: seed the state, write the script, rehearse it dry, record it twice at a fixed size, then cut the waits and gate the file.

You cannot fake state here. A row that should be on screen is in the seed; a result that should appear is produced by the app. Injecting DOM to stage a result makes it faux UI, and that is another skill.

Initial response

When this skill is invoked with no request, reply only with:

I'm ready to record a demo of your running app. Usage: /khe-demo [plan | record | post | review] [url or app] [readme | site | social | film]

Then wait. Give nothing else until the user asks.

How hard to press

Work as someone who records product demos for a launch page and will be judged on one viewing. The scripts in examples/ are the bar, not a reference: set yours beside the closest one, and if yours has more beats, a hold with no reason, a target found by position or no reset, that is the first fix. Then picture the one frame the most exacting viewer would pause on and send back: the notification in the corner, the pointer parked on a label, the spinner at second four, the email address that is somebody's. That frame is the next fix.

Safety, before anything runs

  1. Record only the user's own app, or one they are authorised to demo. record.mjs refuses a host that is not local until it is named with --allow-host. Never record a production page that shows real users' data.
  2. Never type a real credential on camera. Start the take already signed in to a test account from the project's seed files. A password step is reported by the gate every time.
  3. Never record a real person's data. Names, emails, avatars and messages come from the seed; emails sit on example.com or a .test name.
  4. Ask before recording more than the app's window. A desktop take captures the window's rectangle. The whole display needs the user's yes, in chat.
  5. Recordings stay out of the repository. Write them to a scratch or out/ folder the project ignores, and commit only the script and DEMO.md.

Workflow

Most of the quality is decided before the browser opens. The second word picks the job: plan stops after step 5, post enters at step 7 with a take in hand, review enters at step 9. Under khe-auto the same loop runs with this skill's gate.

  1. Surface and place. Read pov and gotchas. Name the surface (web or desktop), its driver and its capture layer from surfaces, and the destination (readme, site, social, film), which sets the viewport, scale, length and size ceiling in capture. Exit: one line is written, web, playwright, readme, 1024 x 640 at 2, 30 fps.
  2. The story. Two to five beats and a payoff, one thing happening, each beat a sentence saying what the viewer sees (script, The story). No pointer move you cannot explain. Exit: every beat has its sentence, the last one is the payoff, and a person who reads only the sentences knows what the product did.
  3. Seed and reset. Write the state the take opens on and the steps that restore it: a test account, fixed data, a frozen clock, a clean window (state). Exit: the reset runs from a shell or the script's reset block, and running it twice gives the same first frame.
  4. Write the script as a file. Copy the closest gold in examples/ (the Examples table) and replace its product. Targets by test id or role and name, every action with the condition it waits for, holds with a reason (script). Exit: node scripts/demo-check.mjs demo.json --gate ends demo-check passed.
  5. Dry run. node scripts/record.mjs demo.json --dry-run. Every step meets its condition at real pace; read each wait it prints. Exit: it ends dry run finished, and every wait over 1000 ms is either fixed in the app or marked "ramp": true.
  6. Record. node scripts/record.mjs demo.json --out take.mp4 --takes 2 at the declared viewport, scale and frame rate (capture). A desktop app is walked with its driver while ffmpeg captures the window (surfaces). Exit: it prints repeatable: 2 takes ended on the same screen and recorded, and the frames arrived at viewport times scale.
  7. Post. Trim the handles, ramp the waits, push in on the action only when the text needs it, then export the delivery files with scripts/post.mjs (post). No captions, music or sound here. Exit: each delivery file exists, and a contact sheet of the final file is made.
  8. Gate. node scripts/demo-check.mjs demo.json take.take.json <the files you will hand over> --gate. Fix the largest fault first: state, then story, then pace, then size. Exit: the last line is demo-check passed. inconclusive is not a pass. Passing is necessary, not sufficient.
  9. Walk verify from evidence. Watch the file at full speed, then read the contact sheet frame by frame. Answer each question from a frame, never from the script. Exit: every answer is yes, or is written down as a finding and fixed.
  10. Fresh eye. Hand a reviewer the file, the sheet and the brief in review, never your reasons. Exit: the reviewer returns "nothing", or a ranked list you answered row by row.
  11. Hand over. Write DEMO.md beside the script from the template in verify. Exit: it holds the gate's last line pasted, each candidate line with its reason, the files with their sizes, and a Not checked: line.

Faults that come back every round

Check these before handing over.

  • A reset that only works in a fresh browser profile (state, Reset).
  • A sleep where a condition belongs (script, Waits).
  • A pointer resting on the words it just clicked (script, The pointer).
  • A take captured at scale 1, then pushed in on (capture, Scale).
  • Frames that arrived at CSS size and were upscaled (surfaces, What the screencast gives).
  • A GIF at 15 or 30 fps (capture, GIF).
  • A wait left at real time because "it is only two seconds" (post, Ramp).
  • A notification, an update badge or today's date in the take (state, The window).
  • A snapshot ref written into the script (surfaces, Refs).
  • "Recorded" claimed from the runner's exit code (verify, Gate).

Hard rules

  1. Seed the state; never stage it. Every row, name and number on screen comes from seed data the app loaded itself, because a faked result is a claim about the product that is not true.
  2. The script is a file, and it runs twice. A demo driven by hand, or by a chat of one-off commands, cannot be re-recorded when the copy changes next week.
  3. Wait on conditions, never on time. A sleep is too long on a fast machine and too short on a slow one. The only fixed pauses are holds for reading, capped at 1500 ms, and the payoff hold of 1500 to 3000 ms.
  4. One viewport, one scale, one frame rate, declared before recording. The gate checks the file against them, and a number chosen after the take is a number nobody can check.
  5. Nothing on camera that is secret or somebody's. The gate reads what the script types, loads and opens; the frames are checked by eye, one by one.
  6. Never upscale a take. If the frames did not arrive at viewport times scale, record again; record.mjs stops when they do not.
  7. A passing gate is not a watched take. Say what nobody looked at.

Examples

NeedExampleWhat to learn
A feature on a site, with seeded dataexamples/web-flow.demo.jsonOne reset step, four beats, a 900 ms save waited for by condition and marked for a ramp
A loop or a GIF for a READMEexamples/readme-loop.demo.jsonThe payoff is the last beat; loop.return undoes it by causes the viewer sees, so the last frame is the first
A phone-sized vertical takeexamples/mobile.demo.json360 x 640 at scale 3 is 1080 x 1920 with no resize; a touch dot, the app's own phone layout
A native desktop appexamples/desktop.demo.jsonThe driver acts, ffmpeg records the window, targets are role and name, no ref in the file
Something to run these againstexamples/app/A task list whose whole state is one localStorage key; node examples/app/serve.mjs serves it

teaching/ holds fourteen bad/good pairs (teaching) for diagnosing a script; the bad halves are never starting points.

Find the reference

Open a reference only when the job needs it. Never load the whole folder.

Job or symptomOpen
Web or desktop, which driver, which commands exist, what cannot recordsurfaces
Real data on screen, a take that works once, sign-in, the clock, notificationsstate
The script format, targets, waits, pointer speed, typing speed, holdsscript
Viewport per destination, scale, frame rate, codecs, GIF, size ceilingscapture
Trimming, speeding up a wait, zooming on the action, exportingpost
A gate line, the last pass, the DEMO.md templateverify
Briefing a reviewer who has not seen the scriptreview
The gate printed a line and the script still looks right to youteaching

Never ship

Check the work against this table before finishing.

NeverInstead
A take of production, or of a real accountA local or test host, a seeded test account, emails on example.com
A password typed on cameraA take that opens signed in; the reset loads the session
A result staged by editing the pageSeed data the app loads itself
sleep 3000 while the app loadsA wait on the row, text or URL the viewer is waiting for, marked "ramp": true when it takes over 1000 ms
A hold over 1500 ms before the payoffA hold sized to what is read; only the payoff holds 1500 to 3000 ms
A target by nth-child, a generated class, a coordinate or @e12A test id, or a role and its name
A pointer that arrives in one frame300 to 900 ms of travel, set by distance and target size, on a shallow arc
Text typed at 50 characters a second12 a second, and no more than 60 characters in one step
A 1920 px window shown 830 px wideThe destination's viewport: 1024 x 640 for a README, at scale 2
A take at scale 1 that is then zoomedScale 2, so a 2x push still shows one file pixel per screen pixel
A GIF at 15 or 30 fps, or over 10 MB20 fps at 800 px wide from a palette built for the clip; past 5 MB ship the mp4
An .mp4 in yuv444pH.264 in yuv420p with the index at the front
A loop whose last frame is not its firstloop.return: the demo undone by a cause the viewer sees
A recording committed to the repositoryThe script and DEMO.md committed; the files in an ignored folder
"Recorded" written for a file nobody probed or watchedThe gate's last line pasted, then a Not checked: line

Output

For a plan, in this order:

  1. The surface line: surface, driver, destination, viewport and scale, frame rate.
  2. The beats as a table, beat | what the viewer sees | waits for.
  3. The state: account, seed, reset steps, clock, what is hidden.
  4. The script as a file, and the gate's last line pasted.

For a recording: the delivery files with duration, size in pixels and megabytes; the gate's last line; the candidates that stand, each with its reason; then DEMO.md. For a review: findings as Frame | What | Fix rows, worst first, then one Not checked: line.

Leave out adjectives about the product, any number without its reason, and rows for checks that passed.

Tone

Plain and short. Say "the take works once; here is the missing reset" before any polish. Say "nothing fails; here is what I did not watch" when that is the result. When a driver cannot do something on this machine, say so and name the fallback you used.

Yours to edit

Read both before producing anything. They outrank the defaults in this skill.

  • gotchas: lived failures, one line each. Append one when something goes wrong.
  • pov: your taste calls.

Pairs with

  • stageshow: when the product cannot be run, seeded or shown, or the shot needs a simplified picture of it, the UI is authored there. Never mix the two in one take.
  • khe-launch-film: a take from here is one shot. The film's register, cuts, type and length are decided there, and its numbers outrank this skill's holds inside a film.
  • khe-sound: clicks, a bed or a voice are added there, after the take is locked, because the next trim moves every cue.
  • khe-ui: when the take shows the product's own motion is wrong, it is fixed in the product there, never painted over in post.
  • khe-auto: runs this skill's loop for a routed job, with scripts/demo-check.mjs as the gate.

Sources: the method (one idea, named failures, gold examples, teaching pairs, a gate, a fresh-eye review, a handover file) follows Benji Taylor's Stageshow (benjitaylor/skills). The drivers it can call are vercel-labs/agent-browser and vercel-labs/agent-desktop. They are tools this skill runs when they are installed; nothing of theirs is bundled. Names without the khe- prefix are other people's skills: install them from their own repos.

Harshit Khemani. MIT.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Khe Demo làm được gì?

Records a demo of the real running product: seeds its state, writes the flow as a script file, drives the actual web app or desktop app, and hands back a short clean take (mp4 or webm, plus a GIF for a README) in which one thing happens and every pointer move has a cause. Use when someone says "record a demo of the app", "screen recording for the README", "walkthrough video", "GIF of the feature", "capture the real flow", "show it working", or wants a product take to cut into a film. For a faux or illustrated UI that never runs the product use `stageshow`; for a cut, scored launch video use...

Vì sao nên dùng Khe Demo trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Khe Demo là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Khe Demo trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/HKTITAN/skills/tree/main/skills/khe-demo. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Khe Demo?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Khe Demo với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Khe Demo với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Khe Demo có miễn phí không?

Có. Kỹ năng này được HKTITAN phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇