agentleFS
click6067-ship-itclick6067-ship-it/ultrapowers/skills/demo/SKILL.md

demo

Skill2 starsChanged 4 months agoMITView on GitHub

Use when the user says 데모/demo/데모영상/GIF 만들어/screencast/시연영상, or wants a launch video for Reddit/X/GeekNews. Records a scripted headless-browser product demo of a web page → MP4 + GIF (retina PNG frames @30fps — far crisper than hand-recorded capture).

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No scenario → default smooth top-to-bottom scroll-through of the page.

    line 16
  2. Distinctive:

    Keep total length ~8–12s. Frame densely (30fps) + ease for smoothness.

    line 49

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

demo — scripted product demo recorder

Produces a launch-quality MP4 (1280px, crisp) + GIF from a scripted interaction. Consistent motion (the "Telegram-style" feel) because every frame is rendered, not hand-captured.

How to run

node ~/.claude/tools/headless/demo.mjs <url> [scenario.mjs|-] [outdir]
  • No scenario → default smooth top-to-bottom scroll-through of the page.
  • Custom interaction → write a scenario file (below).
  • Self-injects chromium libs; outputs demo.mp4 + demo.gif to the out dir.

Writing a scenario (custom interactions)

A scenario is an ES module exporting a default async function (page, h). Helpers in h:

  • await h.shoot() — capture one frame.
  • h.hold(n) — duplicate the last frame n times (a pause; n frames ÷ 30 = seconds).
  • await h.scrollTween(toY, frames) — eased scroll, capturing each frame.
  • await h.setSlider(value, selector='#ctxSlider') — set a controlled <input range> (fires React onChange).
  • h.page, h.ease — raw Playwright page + easing fn.

Example (drag a slider, then reveal a section):

export default async function (page, h) {
  await h.shoot(); h.hold(8);
  const top = await page.evaluate(() => document.getElementById('ctxSlider').getBoundingClientRect().top + scrollY);
  await h.scrollTween(top - 90, 24); h.hold(8);
  for (let i = 0; i <= 60; i++) { await h.setSlider(Math.round((8192 + 250000 * h.ease(i/60))/1024)*1024); await page.waitForTimeout(6); await h.shoot(); }
  h.hold(30);
}

After running

  • Post MP4, not GIF (Reddit/X autoplay video natively; sharper + smaller). GIF is the fallback for GitHub READMEs / Discord.
  • Offer to open the out folder in Windows: explorer.exe "$(wslpath -w <outdir>)".
  • Extract a few frames and Read them to verify the capture looks right before handing off. 시스템 ffmpeg는 미설치 — ffmpeg-static 바이너리 사용: FF=$(node -e "console.log(require('${HOME}/.claude/tools/headless/node_modules/ffmpeg-static'))") && "$FF" -ss <t> -i demo.mp4 -frames:v 1 f.png

Tips

  • Click buttons via page.evaluate(() => [...document.querySelectorAll('button')].find(b=>b.textContent.trim()==='X').click()) to avoid Playwright auto-scroll jumping the framing.
  • Keep total length ~8–12s. Frame densely (30fps) + ease for smoothness.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.