Record Pr Demo record-pr-demo

Use when a Payload pull request needs a concise visual walkthrough for reviewers.

Works in Claude, ChatGPT, Codex and more
Our test
8/10✓ Verified
tested Dec 6, 2026
GitHub stars
46k
payloadcms/payload
Added by
0
members
Updated
Dec 6
commit 977eb1a
Content
36 files
28 scripts · 356 KB
License
MIT
free to use

What our test found

The skill gives a detailed, review-first workflow with clear interaction, artifact-verification, and publishing requirements, though it depends on the Payload repository and its recording tools.

Request we tested it on“Record a short walkthrough of the new collection-filter feature in my Payload PR and post it to the PR when it is ready.”

Limits spotted

  • Requires repository-specific scripts, configuration, and a running Payload development server.
  • The lengthy instructions may be difficult to follow without access to the referenced files and tools.
View on GitHub ↗
name: record-pr-demo
description: Use when a Payload pull request needs a concise visual walkthrough for reviewers.

Record a PR Demo

Create a short, reviewer-focused screen recording of the current Payload feature. Produce and review the video locally before uploading anything to GitHub.

This skill is for feature demonstrations, not committed screenshot regression baselines.

Non-negotiable review gate

Uploading consumes GitHub storage and changes an external PR. Always stop after rendering the local MP4, show that exact file to the user, and request approval. A general request to “record and post a demo” does not waive this checkpoint.

Before showing the video, record its absolute path and SHA-256 digest. Immediately before an approved upload, recompute the digest. If it changed, show the new video and request approval again.

Do not upload previews, rejected takes, raw intermediate recordings, or files the user has not reviewed. Never commit demo media to the repository.

Gesture-based scenarios

Drive the application through browser gestures: paced pointer clicks, keystrokes, and wheel scrolling. Open the starting URL once, then navigate through visible controls. Use existing seeded data when possible. Optional setup/teardown hooks may seed and clean up recording-only data through the API outside the walkthrough. Within the scenario, use gestures to reach each demonstrated state; avoid API or Local API calls, direct navigation between steps, field filling, DOM mutations, and programmatic scrolling. Assertions and read-only DOM inspection may observe the result. Recording chrome, encoding, and verification remain harness operations. See for the interaction contract and examples.

Use circleCursor(locator) selectively to emphasize a value or result with two tight loops near the focus point and an eased finish. See for timing and radius options.

Use await click(chrome.back) and await click(chrome.forward) for browser-history steps. The shared window chrome provides these real history controls beside the live URL bar, with normal cursor movement and click feedback.

Required presentation chrome

Every scenario must export presentation with a change kind, title, and description. For a known sequence of steps, declare annotationSteps, then call showAnnotation to advance through that sequence. Use hideAnnotation when the explanation should no longer accompany the action. See for the API contract and examples. Scripts supply content and intent; the shared renderer owns presentation. Do not inject markup, styles, badges, or layout rules into the application or recording chrome.

Keep the default canvas and desktop viewport for ordinary demos. Use a smaller --viewport or resizeWindow only when demonstrating responsive reflow or breakpoints, or when the user explicitly requests different dimensions. Keep the canvas fixed while resizing the application. Do not shrink the viewport or canvas merely to crop surrounding content or emphasize a visual change.

For a before/after comparison, set change.kind: 'Bug' on the real unfixed scenario and 'Fix' on the corrected scenario. Set kind: 'Bug' on an individual step only when its action visibly demonstrates a failure; leave setup and ordinary navigation unmarked. Write a short description of the visible action or outcome, and assert that state in the script.

Accessibility demonstrations

Set presentation.accessibility: true when keyboard commands are part of the evidence, and presentation.showAnnouncements: true when relevant UI updates should be observed. The harness chooses the compatible presentation and preserves application focus styling. Captions are DOM observations, not screen-reader audio. Use --a11y on or --a11y off to override these options without editing the scenario; omit the flag to preserve its defaults. See for privacy filtering and evidence limits.

Workflow

  1. Inspect the feature, relevant diff, and available test configs. Choose the smallest existing Payload config that demonstrates the real feature. Create a temporary config only when no existing config can show it clearly.
  2. Write a brief plan in /tmp with the opening state, 2–6 visible actions, and the final proof a reviewer should see. For a fix with a visible before, plan Before/After recordings of the bug and the fix; otherwise default to one current-state feature demo. For annotation content and APIs, use .
  3. Start the relevant dev server and make its initial state deterministic. Do not expose credentials, personal data, tokens, or unrelated records.
  4. Read and create a temporary scenario module in /tmp. Write readable, multi-line JavaScript with clear preparation and visible-step sections so the script is easy to review. Call ready() once after the opening UI is visible; this marks where the finished video starts. Make preparation repeatable so validation and recording each begin in the same state. Use optional setup/teardown hooks for API fixtures, or prepare content through the UI before ready(). Keep recording-only data in a disposable database. If creating content is part of the story, show that creation through the Admin.
  5. When recording through an agent, use the and renew its lease only while the prompt is active. Use a take-specific label. For direct terminal use, run the candidate command from the repository root, for example node .agents/skills/record-pr-demo/scripts/prepare-demo.mjs candidate --scenario /tmp/payload-pr-demo-feature.mjs --label feature-take-1. It performs preflight checks, fast validation, human-paced recording, conversion, full decode verification, contact-sheet generation, hashing, manifest creation, and raw-video cleanup. Keep the demo concise enough to stay below the converter's default 10 MB budget.
  6. Watch the entire MP4, use the contact sheet for a quick state check, and show the exact local video inline using its absolute path. Include a clickable link to its take-specific .scenario.mjs snapshot beside the video and open that file in the Codex editor when available:
   ![Feature demo](/absolute/path/to/payload-pr-demo-feature.mp4)

   [Review recording script](/absolute/path/to/payload-pr-demo-feature.scenario.mjs)
  1. Stop and ask the user to approve, reject, or request another take. Do not call gh, open an upload UI, or otherwise upload the file yet.
  2. Only after explicit approval of that recording, read and verify the reviewed manifest. Preserve the complete existing PR description and append a final ## Preview section with each approved video in its own paragraph. Use a PR comment only when the user explicitly asks for one.
  3. Verify the PR renders the uploaded video, then remove temporary scenarios, plans, raw recordings, and temporary fixture changes. Preserve the approved MP4 and its script snapshot until the upload is confirmed.

Completion criteria

  • Each recording tells one understandable visual story and ends on visible proof.
  • The recorded walkthrough uses browser gestures; optional API fixtures establish only its starting data and clean up afterward.
  • The first decoded frame shows the intended opening UI, without a blank startup screen.
  • Pointer movement is smooth, clicks have readable dwell time and visible ring feedback, and the cursor stays visible above popup menus and dialogs.
  • Editorial annotations use the shared component and and leave important UI visible.
  • Overflowing content, including popup menu lists, uses the scenario scroll helper for paced movement.
  • The approved artifact is an H.264 .mp4, within GitHub's applicable upload limit. Capture at the composition’s native dimensions.
  • The candidate command produced a contact sheet, manifest, and take-specific script snapshot. The video review includes a link to that script, and the manifest still matches before upload.
  • The user reviewed the exact bytes that were uploaded.
  • The existing PR description is preserved and ends with ## Preview and the approved inline player, unless the user explicitly requested a comment.
  • GitHub contains no rejected or superseded takes.
  • No media or recording-only fixture remains in the working tree.

Explicit user instructions about the feature, scenario, length, destination, or presentation override this skill's preferences, except that upload still requires review of the final file.