agentleFS
WatermelonBrosWatermelonBros/reado/.claude/skills/record-demo/SKILL.md

record-demo

Skill30 starsChanged 2 months agoMITView on GitHub

Record a video/GIF of the real Reado app doing something (leaving comments, reviews, agent loops) for the README or the website. Drives the dev build through the UI driver with a visible fake cursor and captions, captures only the Reado window with ffmpeg, exports MP4 + GIF to docs/media/. Use when asked to record, film, screen-capture or make a demo/GIF/video of Reado.

  • Installs packages

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 4

    1. apify/mcpc★ 968same name
    2. mcpware/pagecast★ 48same name
    3. dabico/skill-atlas★ 0same name
    4. fsmiamoto/skills★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Test: ffmpeg -f avfoundation -i "Capture screen 0:none" -frames:v 1 /tmp/t.png must produce an image of the desktop, not black.

    line 21
  2. Very specific:

    Look at it: before calling it done: ffmpeg -i docs/media/<name>.mp4 -vf "fps=1/2,scale=800:-2,tile=2x3" -frames:v 1 /tmp/contact.png, then …

    line 38
  3. Very specific:

    Wait for UI by polling (for (…) await __demo.sleep(50)), not fixed sleeps: useProject.open() is sync and the editor mounts later.

    line 55

“Common” is measured: kept by at least 6 in 10 of the 4 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

Record a Reado demo

Pieces (all in scripts/demo/):

filerole
run.mjs <scenario> [--record]runs a scenario against the dev app; with --record it also captures and exports
record.sh start|stop|export <name>ffmpeg capture cropped to the Reado window → docs/media/<name>.mp4 (≤1920 wide) + .gif (960 wide)
demo-kit.jsinjected into the webview: window.__demo = fake cursor (moveTo, click), human-paced type, caption pill say, hide
scenarios/*.mjsone clip each: name, setup(app) (before recording), default(app) (the take)

Prerequisites (check, don't assume)

  1. ffmpeg on PATH (brew install ffmpeg).
  2. Screen Recording permission for the app hosting this session (the terminal / Reado). Test: ffmpeg -f avfoundation -i "Capture screen 0:none" -frames:v 1 /tmp/t.png must produce an image of the desktop, not black.
  3. The dev build running with the UI driver, next to the installed app, on a throwaway fixture project — never the real repo (scenarios delete comments to get a clean take):
    bash scripts/bundle-cli.sh && npx tauri dev --config '{"identifier":"com.reado.dev"}' -- -- /path/to/fixture/src/cart.ts
    Launch it unsandboxed, in the background, from a short command. Wait until the bridge is up (lsof -nP -iTCP:1420 | grep -c com.apple ≥ 2) before sending anything. Fixture: a git repo with src/cart.ts (the discount bug from the site's OG image), src/types.ts, src/discounts.ts (VIP: { percent: 1.2 }).

Workflow

  1. Rehearse without recording: node scripts/demo/run.mjs scripts/demo/scenarios/<clip>.mjs. Fix selectors until it runs clean end to end.
  2. Record: node scripts/demo/run.mjs scripts/demo/scenarios/<clip>.mjs --record. The Reado dev window must stay in front and untouched for the whole take — the capture records the screen region, so anything on top of the window ends up in the video. Tell the user before a take.
  3. Look at it before calling it done: ffmpeg -i docs/media/<name>.mp4 -vf "fps=1/2,scale=800:-2,tile=2x3" -frames:v 1 /tmp/contact.png, then read the image.

Writing a scenario

  • app.js(body) runs a JS body in the webview (return a JSON value). Each call must finish in < 30 s (relay timeout); split long sequences. The kit is prefixed to every call, so a webview reload mid-take (Vite does reload on file changes) doesn't lose window.__demo.
  • Reach app state through window.__reado (Zustand stores: useProject, useComments, useEditorActions, useLayout, useSettings, useDocInfo…), never import() (different module instance after HMR).
  • Editor positions: useDocInfo.getState().view.coordsAtPos(pos) → viewport coords for __demo.moveTo({x,y}). Selections: view.dispatch({ selection: { anchor, head } }).
  • Commands with a shortcut: call the store action and show the shortcut with __demo.say("⌘⇧M Comment") (keyboard events don't reach CodeMirror/menus reliably from the driver).
  • Buttons: find them by structure or text, then __demo.click(el) (it sends pointerdown… for Ark UI).
  • Setup for legible footage: English UI (localStorage["reado.locale"] → reload), useSettings.setState({ zoom: 1.35 }), bottom panel hidden (useLayout.getState().toggleArea("bottom", true)). These only touch the dev profile.
  • Wait for UI by polling (for (…) await __demo.sleep(50)), not fixed sleeps: useProject.open() is sync and the editor mounts later.

Output

MP4 for the website (<video autoplay muted loop playsinline>), GIF for the README. Both land in docs/media/; the README already embeds docs/media/reado-loop.gif.

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.