minghinmatthewlam/agent-guards/record-screen
Claude Code and agent skill by minghinmatthewlam/agent-guards
- community
Checking that the SKILL.md file is still in the repository.
Record a small MP4 while demonstrating or verifying a UI change, then attach the video as proof. Linux cloud sessions record the private virtual display; macOS records only the app window under test. Use for any repo whenever a UI change is verified or demoed.
Install
npx vskill@latest install minghinmatthewlam/agent-guards/record-screenSKILL.md
Record screen
Video is the reviewer's main evidence for UI work. Record around the part of the run that shows the change, then attach the MP4.
- Linux cloud session: record the whole virtual X display with sections 1–3. Nothing else runs on it, so the whole display is safe to capture.
- macOS: the screen is the user's real desktop, with personal windows and notifications. Never record the full display. Use the macOS section, then continue at section 4.
Linux: 1. Start (just before the app launches)
Run as one command. It reuses a running display, else starts Xvfb on :99; installs ffmpeg if missing (about 30s with apt); records at 15 fps in the background.
The app under test must use the same DISPLAY. If you started Xvfb here, prefix later commands with DISPLAY=:99, since shell exports do not carry across tool calls.
Linux: 2. Demonstrate
Drive the app so the change is visible: open the affected screens, pause about 2 seconds on each (waitForTimeout in Playwright is fine for pacing), and show the before and after state where it applies. Nothing but the app appears on a virtual display, and Playwright clicks do not move a pointer, so screens change without a visible cursor.
Linux: 3. Stop and encode (always, even if the run failed)
Replace NAME with a short slug for the change. The stop is clean (SIGINT); the black lead-in before the first app frame is trimmed; the output is 10 fps H.264 with faststart, typically 0.2 MB for 20s and 4 MB for 90s at 1080p.
macOS: record only the app window
`scripts/mac-record.sh` captures one window's own pixels with screencapture -l, at about 5–10 fps, and encodes them with ffmpeg. Other windows, notifications and the rest of the screen never reach disk, even when they cover the window. Requires ffmpeg and Screen Recording permission for the app running the agent; if capture fails or macOS prompts, ask the user to allow it in System Settings → Privacy & Security → Screen Recording.
- Open the app window before
start. A minimized window or one on another Space is not on screen;startrefuses rather than guessing. - Pass a title substring when the app has several windows (for example a browser with personal tabs), so the recording picks the window under test.
- Launch the app under test in its own window with only test data in it. The window's contents are recorded as they are.
4. Check and attach
- Pull one frame (
ffmpeg -ss 5 -i "$OUT" -frames:v 1 /tmp/record-screen/check.png) and look at it. A black or empty frame means the app ran on another display. On macOS,stopalready wrotecheck.png; confirm it shows only the app under test, and delete the video if it shows anything else. - In a project thread, copy the MP4 under
/mnt/project-files/(for example/mnt/project-files/screen-recordings/NAME.mp4) and attach it to the reply that reports the result withattached_outputs: [{"kind": "file", "ref": "<that path>"}]. Elsewhere, give the path. - Say in one line what the video shows and its duration. The video supports assertions and screenshots; it does not replace them.
- Never record screens that show credentials or tokens.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/record-screen/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/minghinmatthewlam/agent-guards/record-screen)