agentleFS
mcpwaremcpware/pagecast/.claude/skills/record-demo/SKILL.md

record-demo

Skill48 starsChanged 8 months agoMITView on GitHub

Record a polished product demo GIF/MP4 with auto-zoom. Reads the product README, plans a storytelling flow, records with Pagecast, auto-zooms key interactions, reviews and iterates until GitHub-README quality. Use when you need a demo GIF for a README or product page.

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. WatermelonBros/reado★ 30same 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

8 rules. 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before touching the browser, understand what you're demoing.

    line 15
  2. Distinctive:

    If demos exist, review them to understand what was shown before and what can be improved.

    line 56
  3. Distinctive:

    Before recording, write your demo plan as a comment:

    line 83
  4. Distinctive:

    Wait for user response. Adjust your demo plan based on their feedback before proceeding.

    line 111
  5. Distinctive:

    If localhost, ensure it's running:

    line 119
  6. Distinctive:

    Read each frame and check:

    line 211
  7. Very specific:

    If too large: reduce fps (10→8), reduce width (800→640), or trim duration.

    line 226
  8. Distinctive:

    If any review check fails:

    line 234

“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 Demo — Storytelling Product Demo with Auto-Zoom

Record a polished, story-driven product demo using Pagecast's auto-zoom pipeline.

This is NOT random clicking. You are a demo director — you plan the story, choreograph the interactions, and iterate until the output is GitHub-README quality.

Phase 1: Understand the Product

Before touching the browser, understand what you're demoing.

1a. Read the product

Read: <product-path>/README.md
Read: <product-path>/package.json

Extract:

  • One-liner: What does this product do? (1 sentence)
  • Pain point: What problem does it solve?
  • Key features: List 3-5 demo-worthy features, ranked by wow-factor
  • Target audience: Who is this README for? (developers, designers, managers)

1a.1. Sandbox mode (if available)

If the product has E2E tests with a sandbox/fixture setup, use that to create fake demo data instead of exposing real user data. Look for test fixtures that create temp directories with realistic content. Start the app pointing to the sandbox (e.g., HOME=/tmp/sandbox node app.js). This lets you safely demo ALL features including destructive ones like delete and move.

1b. Read the frontend (if web app)

Find the actual CSS selectors you'll need:

Read: <product-path>/src/ui/index.html   (or equivalent)
Read: <product-path>/src/ui/app.js       (or equivalent)

Extract:

  • Search input selector
  • Main list/card selectors
  • Button/action selectors
  • Navigation elements
  • Loading indicator (to know when page is ready)
  • Any data-* attributes useful for targeting

1c. Check existing demos

ls <product-path>/docs/demo* <product-path>/docs/screenshot* 2>/dev/null

If demos exist, review them to understand what was shown before and what can be improved.

Phase 2: Plan the Demo Story

A good demo tells a story: Problem → Discovery → Solution → Wow moment

Story structure (8-15 seconds total)

BeatTimeWhat happensWhy
1. Context0-1sShow the full UI, let viewer orientFirst frame must work as static screenshot
2. Pain point1-3sShow the problem the product solves"Look how messy/hard this is"
3. Feature A3-6sFirst key interactionThe primary use case
4. Feature B6-9sSecond interactionShows breadth
5. Wow moment9-12sThe "aha" featureMost impressive capability
6. Result12-15sPause on the outcomeLet viewer see what happened

Planning rules

  • Show, don't tell — no text overlays needed, the interactions speak for themselves
  • One feature per beat — don't rush multiple actions into one moment
  • Wait after each action — give the viewer 0.8-1.5s to process what happened
  • End on value — the last frame should show the product working, not a loading state
  • Hide sensitive data — never show company names, personal info, API keys in demos

Write the plan

Before recording, write your demo plan as a comment:

// Demo plan for [Product Name]:
// Beat 1 (0-1s): Full UI loads, show 3-panel layout
// Beat 2 (1-3s): Search for "memory" — shows search works
// Beat 3 (3-6s): Click filter pill — shows categorization
// Beat 4 (6-9s): Click item — shows detail panel with preview
// Beat 5 (9-12s): Drag item to new scope — the wow moment
// Beat 6 (12-14s): Pause on result with undo toast

Phase 2.5: Align with User

STOP HERE. Present your demo plan to the user and ask:

我準備錄呢個 demo,以下係我嘅 plan:

[Show the beat-by-beat plan from Phase 2]

幾個問題:
1. 有冇邊個功能你特別想重點 showcase?
2. 有冇啲功能唔應該出現喺 demo 入面?
3. 你想 demo 嘅 tone 係咩?(quick/snappy vs detailed/educational)
4. 有冇特定嘅 data 或 scenario 你想用?

Wait for user response. Adjust your demo plan based on their feedback before proceeding.

Do NOT skip this step. The user knows their product's selling points better than you.

Phase 3: Record

3a. Start the target app

If localhost, ensure it's running:

cd <product-path> && npm start &
sleep 3  # wait for server
curl -s http://localhost:<port> | head -1  # verify

3b. Write and run the recording script

import { startRecording, interactWithPage, stopRecording, cleanup } from '<pagecast>/src/recorder.js';
import { convertWithZoomGif, convertWithZoomMp4 } from '<pagecast>/src/converter.js';

// Pagecast path: ~/MyGithub/pagecast

const rec = await startRecording(url, {
  width: 1280,    // 16:9 for GitHub README
  height: 720,
  outputDir: '<product-path>/docs',
});

// Wait for page to fully load
await interactWithPage(rec.sessionId, [
  { type: 'waitForSelector', selector: '<loading-done-selector>', state: 'attached' },
  { type: 'waitForSelector', selector: '<main-content-selector>', state: 'visible' },
  { type: 'wait', ms: 800 },  // let render settle — first frame matters!
]);

// Beat 1: Context — let viewer see the full UI
await interactWithPage(rec.sessionId, [
  { type: 'wait', ms: 1000 },
]);

// Beat 2-5: Interactions (one feature per beat)
await interactWithPage(rec.sessionId, [
  { type: 'click', selector: '#searchInput' },
  { type: 'wait', ms: 300 },
  { type: 'type', text: 'memory', delay: 80 },
  { type: 'wait', ms: 1200 },  // hold for viewer to read
  // ... more interactions
]);

// Beat 6: Result — pause on outcome
await interactWithPage(rec.sessionId, [
  { type: 'wait', ms: 1500 },
]);

const stop = await stopRecording(rec.sessionId);

// Export with auto-zoom
const gif = await convertWithZoomGif(stop.webmPath, stop.timelinePath, {
  zoomLevel: 2.5,          // 2.5x zoom on interactions
  transitionDuration: 0.35, // smooth zoom ease
  holdPerTarget: 0.8,       // hold each zoom target
  fps: 12,
  width: 800,               // 800px wide for README
});

console.log(`Demo GIF: ${gif.gifPath} (${gif.sizeMB} MB)`);
await cleanup();

Viewport presets

FormatWidthHeightUse case
--readme (default)1280720GitHub README, YouTube
--reel10801920IG Reels, TikTok, Shorts
--square10801080Instagram, LinkedIn

Interaction timing guidelines

ActionWait afterWhy
Page load800msLet CSS animations finish
Click navigation800-1000msShow the result of navigation
Click to reveal content1200-1500msLet viewer read the revealed content
Type text80ms per char + 1000msNatural typing speed + read time
Drag and drop1500-2000msComplex action needs more processing time
Final result1500msEnd frame must be clear

Phase 4: Review

4a. Extract and review key frames

# Extract frames at each beat timestamp
for t in 0 1 3 5 8 12; do
  ffmpeg -i <webm-path> -ss $t -frames:v 1 /tmp/frame-$t.png 2>/dev/null
done

Read each frame and check:

  • Frame 0: Is the UI loaded? No blank/white screen?
  • Frame 1: Is the full UI visible and oriented?
  • Interaction frames: Is the zoom targeting the right element?
  • Can you read the text in zoomed areas?
  • Final frame: Does it show a satisfying result?
  • No sensitive data visible?

4b. Check file size

TargetMax size
GitHub README GIF< 3 MB (ideal), < 5 MB (acceptable)
IG Reel MP4< 10 MB

If too large: reduce fps (10→8), reduce width (800→640), or trim duration.

4c. Compare zoom vs no-zoom

Export both versions and visually compare. The zoom version should clearly show each interaction up close while panning between them.

Phase 5: Iterate

If any review check fails:

  1. Bad timing → adjust wait durations, re-record
  2. Wrong element zoomed → check selector specificity, use more targeted selectors
  3. Zoom too aggressive → reduce zoomLevel from 2.5 to 2.0
  4. Zoom too subtle → increase zoomLevel to 3.0
  5. Page not loaded → increase initial wait, use waitForSelector for data load
  6. Sensitive data → add masking or use test data
  7. GIF too large → reduce fps, width, or duration

Iterate until you'd be proud to put this GIF on the product's GitHub README.

Phase 6: Deliver

# Copy to product's docs folder
cp <zoom-gif-path> <product-path>/docs/demo.gif

# Optionally update README
# (only if user asks)

Report to user:

  • Final GIF path and size
  • What the demo shows (the story beats)
  • Zoom events count
  • Whether it replaces an existing demo

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.