You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 33b9740
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .claude/skills/record-pr-demo/SKILL.md
+21-8Lines changed: 21 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,36 +17,49 @@ Before showing the video, record its absolute path and SHA-256 digest. Immediate
17
17
18
18
Do not upload previews, rejected takes, raw WebM recordings, or files the user has not reviewed. Never commit demo media to the repository.
19
19
20
+
## Gesture-based scenarios
21
+
22
+
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 [recording.md](references/recording.md#gesture-based-interactions) for the interaction contract and examples.
23
+
20
24
## Required presentation chrome
21
25
22
-
Every scenario must export `presentation` with a change kind (`Feature` or `Fix`), title, and description. Read [window-chrome.md](references/window-chrome.md) and use the shared component and live preview; do not invent wrapper CSS. Recordings, screenshot previews, and validation always mount the chrome. Keep the change description constant and use `showAnnotation({ title, body, index, total })` / `hideAnnotation()` for panel notes. Floating annotations and placement options (`type`, `position`, `width`) are unsupported. Use `resizeWindow` only when responsive reflow is part of the story.
26
+
Every scenario must export `presentation` with a change kind (`Feature` or `Fix`), title, and description. Read [window-chrome.md](references/window-chrome.md) and use the shared component and live preview; do not invent wrapper CSS. Recordings, screenshot previews, and validation always mount the chrome. Keep the change description constant and use `showAnnotation({ title, body, index, total })` / `hideAnnotation()` for panel notes. Floating annotations and placement options (`type`, `position`, `width`) are unsupported.
27
+
28
+
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.
29
+
30
+
## Accessibility demonstrations
31
+
32
+
Set `presentation.accessibility: true` to show keyboard history and `presentation.showAnnouncements: true` to include observed live-region text. The shared component renders all feedback; Payload retains its native 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 [recording.md](references/recording.md#accessibility-observations) for privacy filtering and evidence limits.
23
33
24
34
## Workflow
25
35
26
36
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.
27
-
2. Write a brief plan in `/tmp` with the opening state, 2–6 visible actions, and the final proof a reviewer should see. Default to one current-state feature demo; create Before/After recordings only when requested. For editorial annotations, use the [recording.md style specification](references/recording.md#editorial-annotations-over-the-recording).
37
+
2. Write a brief plan in `/tmp` with the opening state, 2–6 visible actions, and the final proof a reviewer should see. Default to one current-state feature demo; create Before/After recordings only when requested. For annotation content and APIs, use [recording.md](references/recording.md#editorial-annotations-over-the-recording).
28
38
3. Start the relevant dev server and make its initial state deterministic. Do not expose credentials, personal data, tokens, or unrelated records.
29
-
4. Read [recording.md](references/recording.md) and create a temporary scenario module in `/tmp`. Call `ready()` once after the opening UI is visible; this marks where the finished video starts. Put deterministic recording-only data in optional scenario `setup` and `teardown` exports instead of recreating it manually between takes.
39
+
4. Read [recording.md](references/recording.md) 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.
30
40
5. Use a take-specific label and run the candidate command from the repository root, for example `node .claude/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.
31
-
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:
41
+
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:
7. 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.
38
50
8. Only after explicit approval of that recording, read [publishing.md](references/publishing.md) and verify the reviewed manifest. Preserve the complete existing PR description and append a final `## Preview` section with the approved video in its own paragraph. Use a PR comment only when the user explicitly asks for one.
39
-
9. Verify the PR renders the uploaded video, then remove temporary scenarios, plans, raw recordings, and temporary fixture changes. Preserve the approved MP4 until the upload is confirmed.
51
+
9. 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.
40
52
41
53
## Completion criteria
42
54
43
55
- The recording tells one understandable visual story and ends on visible proof.
56
+
- The recorded walkthrough uses browser gestures; optional API fixtures establish only its starting data and clean up afterward.
44
57
- The first decoded frame shows the intended opening UI, without a blank startup screen.
45
58
- Pointer movement is smooth, clicks have readable dwell time and visible ring feedback, and the cursor stays visible above popup menus and dialogs.
46
-
- Editorial annotations follow the [recording.md style specification](references/recording.md#editorial-annotations-over-the-recording) and leave important UI visible.
59
+
- Editorial annotations use the shared component and [annotation API](references/recording.md#editorial-annotations-over-the-recording) and leave important UI visible.
47
60
- Overflowing content, including popup menu lists, uses the scenario `scroll` helper for paced movement.
48
-
- The approved artifact is an H.264 `.mp4`, within GitHub's applicable upload limit.
49
-
- The candidate command produced a contact sheetand manifest, and the manifest still matches before upload.
61
+
- The approved artifact is an H.264 `.mp4`, within GitHub's applicable upload limit. Capture at the composition’s native dimensions.
62
+
- 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.
50
63
- The user reviewed the exact bytes that were uploaded.
51
64
- The existing PR description is preserved and ends with `## Preview` and the approved inline player, unless the user explicitly requested a comment.
52
65
- GitHub contains no rejected or superseded takes.
This recomputes the SHA-256 digest and file size for the manifest's MP4. If verification fails, do not upload. Show the changed file and request approval again.
14
+
This recomputes the SHA-256 digest and file size for the manifest's MP4 and checks the saved scenario snapshot against its recorded hash. If verification fails, do not upload. Show the changed file and request approval again.
15
15
16
16
Confirm `gh auth status` succeeds and that the installed GitHub CLI command supports `--attach`. If it does not, use available browser automation to attach the approved local file through GitHub's PR description editor. Use the comment editor only when the user explicitly requests a comment. If the environment cannot select a local file, give the approved MP4 to the user for manual drag-and-drop into the same destination; do not commit it or substitute a release, LFS, or repository URL.
17
17
@@ -55,4 +55,4 @@ gh pr comment <number-or-url> \
55
55
56
56
Re-read the PR description and confirm the saved existing body is intact and the final `## Preview` section contains the uploaded attachment in its own paragraph. Open the PR and confirm the inline player renders at the bottom of the description. For an explicitly requested comment, verify its player in that comment instead. Do not treat a successful command exit as sufficient proof.
57
57
58
-
After verification, remove temporary body snapshots, combined body/comment files, scenario, plan, raw WebM, and recording-only fixtures. Preserve the approved MP4 until the upload and rendering are confirmed; remove it afterward only if the user does not want to keep it. Check `git status --short` and confirm no recording artifacts or temporary config changes remain.
58
+
After verification, remove temporary body snapshots, combined body/comment files, scenario, plan, raw WebM, and recording-only fixtures. Preserve the approved MP4 and its take-specific `.scenario.mjs` snapshot until the upload and rendering are confirmed; keep the script available alongside any retained video. Remove these review artifacts afterward only if the user does not want to keep them. Check `git status --short` and confirm no recording artifacts or temporary config changes remain.
0 commit comments