[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EKSPNRZKCDWWV9FK57PFPB":3,"skill-same:01M6EKSPNRZKCDWWV9FK57PFPB":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6EKSPNRZKCDWWV9FK57PFPB","record-screen",null,"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.","minghinmatthewlam\u002Fagent-guards","minghinmatthewlam","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F14224566?v=4","01M6EKJNHJ92TMD70DDV4AJFQA","01M6EKJNNSX01GNTK9NJ5RKHFM",46,"MIT","https:\u002F\u002Fgithub.com\u002Fminghinmatthewlam\u002Fagent-guards\u002Fblob\u002Fmain\u002Fskills\u002Frecord-screen\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"record screen","screen","record","use","records","proof","app","as","attach","only","linux","repo","virtual","mp4","Video","cloud","ui","sessions","change","test","2026-11-10 10:12:30",false,"---\nname: \"record-screen\"\ndescription: \"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.\"\n---\n\n# Record screen\n\nVideo is the reviewer's main evidence for UI work. Record around the part of the run that shows the change, then attach the MP4.\n\n- **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.\n- **macOS:** the screen is the user's real desktop, with personal windows and notifications. Never record the full display. Use [the macOS section](#macos-record-only-the-app-window), then continue at section 4.\n\n## Linux: 1. Start (just before the app launches)\n\nRun 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.\n\n```sh\nREC=\u002Ftmp\u002Frecord-screen; mkdir -p \"$REC\"; SUDO=$([ \"$(id -u)\" = 0 ] || echo sudo)\nexport DISPLAY=${DISPLAY:-:99}; d=${DISPLAY#*:}; d=${d%%.*}\nif [ ! -S \"\u002Ftmp\u002F.X11-unix\u002FX$d\" ]; then\n  command -v Xvfb >\u002Fdev\u002Fnull || { $SUDO apt-get update -q || true; $SUDO apt-get install -y -q --no-install-recommends xvfb; }\n  setsid nohup Xvfb \"$DISPLAY\" -screen 0 1920x1080x24 -nolisten tcp >\"$REC\u002Fxvfb.log\" 2>&1 &\n  timeout 10 sh -c \"until [ -S \u002Ftmp\u002F.X11-unix\u002FX$d ]; do sleep 0.2; done\"\nfi\ncommand -v ffmpeg >\u002Fdev\u002Fnull || { $SUDO apt-get update -q || true; $SUDO apt-get install -y -q --no-install-recommends ffmpeg; }\nrm -f \"$REC\u002Fraw.mkv\"\nsetsid nohup ffmpeg -loglevel error -f x11grab -framerate 15 -draw_mouse 0 -i \"$DISPLAY\" \\\n  -c:v libx264 -preset ultrafast -crf 18 \"$REC\u002Fraw.mkv\" >\"$REC\u002Fffmpeg.log\" 2>&1 &\necho $! >\"$REC\u002Fffmpeg.pid\"; echo \"recording $DISPLAY (pid $(cat \"$REC\u002Fffmpeg.pid\"))\"\n```\n\nThe 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.\n\n## Linux: 2. Demonstrate\n\nDrive 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.\n\n## Linux: 3. Stop and encode (always, even if the run failed)\n\nReplace `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.\n\n```sh\nREC=\u002Ftmp\u002Frecord-screen; OUT=\"$REC\u002FNAME.mp4\"; pid=$(cat \"$REC\u002Fffmpeg.pid\")\nkill -INT \"$pid\"; timeout 30 tail --pid=\"$pid\" -f \u002Fdev\u002Fnull\nlead=$(ffmpeg -i \"$REC\u002Fraw.mkv\" -vf blackdetect=d=0.3:pix_th=0.05 -an -f null - 2>&1 \\\n  | awk -F'black_end:' '\u002Fblack_start:0 \u002F{split($2,a,\" \"); print a[1]; exit}')\nffmpeg -v error -y -ss \"${lead:-0}\" -i \"$REC\u002Fraw.mkv\" -vf fps=10 -c:v libx264 -preset slow -crf 28 \\\n  -pix_fmt yuv420p -movflags +faststart \"$OUT\"\nffprobe -v error -show_entries format=duration,size -of default=nw=1 \"$OUT\"\n```\n\n## macOS: record only the app window\n\n[`scripts\u002Fmac-record.sh`](scripts\u002Fmac-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.\n\n```sh\nS=\u003Cthis skill>\u002Fscripts\u002Fmac-record.sh\n$S start \"\u003CApp name as shown in the menu bar>\" \"\u003Coptional window title substring>\"\n# demonstrate the change, pausing about 2 seconds on each state\n$S stop NAME   # always, even if the run failed; writes \u002Ftmp\u002Frecord-screen\u002FNAME.mp4 and check.png\n```\n\n- Open the app window before `start`. A minimized window or one on another Space is not on screen; `start` refuses rather than guessing.\n- 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.\n- Launch the app under test in its own window with only test data in it. The window's contents are recorded as they are.\n\n## 4. Check and attach\n\n- Pull one frame (`ffmpeg -ss 5 -i \"$OUT\" -frames:v 1 \u002Ftmp\u002Frecord-screen\u002Fcheck.png`) and look at it. A black or empty frame means the app ran on another display. On macOS, `stop` already wrote `check.png`; confirm it shows only the app under test, and delete the video if it shows anything else.\n- In a project thread, copy the MP4 under `\u002Fmnt\u002Fproject-files\u002F` (for example `\u002Fmnt\u002Fproject-files\u002Fscreen-recordings\u002FNAME.mp4`) and attach it to the reply that reports the result with `attached_outputs: [{\"kind\": \"file\", \"ref\": \"\u003Cthat path>\"}]`. Elsewhere, give the path.\n- Say in one line what the video shows and its duration. The video supports assertions and screenshots; it does not replace them.\n- Never record screens that show credentials or tokens.","# Record screen\n\nVideo is the reviewer's main evidence for UI work. Record around the part of the run that shows the change, then attach the MP4.\n\n- **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.\n- **macOS:** the screen is the user's real desktop, with personal windows and notifications. Never record the full display. Use [the macOS section](#macos-record-only-the-app-window), then continue at section 4.\n\n## Linux: 1. Start (just before the app launches)\n\nRun 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.\n\n```sh\nREC=\u002Ftmp\u002Frecord-screen; mkdir -p \"$REC\"; SUDO=$([ \"$(id -u)\" = 0 ] || echo sudo)\nexport DISPLAY=${DISPLAY:-:99}; d=${DISPLAY#*:}; d=${d%%.*}\nif [ ! -S \"\u002Ftmp\u002F.X11-unix\u002FX$d\" ]; then\n  command -v Xvfb >\u002Fdev\u002Fnull || { $SUDO apt-get update -q || true; $SUDO apt-get install -y -q --no-install-recommends xvfb; }\n  setsid nohup Xvfb \"$DISPLAY\" -screen 0 1920x1080x24 -nolisten tcp >\"$REC\u002Fxvfb.log\" 2>&1 &\n  timeout 10 sh -c \"until [ -S \u002Ftmp\u002F.X11-unix\u002FX$d ]; do sleep 0.2; done\"\nfi\ncommand -v ffmpeg >\u002Fdev\u002Fnull || { $SUDO apt-get update -q || true; $SUDO apt-get install -y -q --no-install-recommends ffmpeg; }\nrm -f \"$REC\u002Fraw.mkv\"\nsetsid nohup ffmpeg -loglevel error -f x11grab -framerate 15 -draw_mouse 0 -i \"$DISPLAY\" \\\n  -c:v libx264 -preset ultrafast -crf 18 \"$REC\u002Fraw.mkv\" >\"$REC\u002Fffmpeg.log\" 2>&1 &\necho $! >\"$REC\u002Fffmpeg.pid\"; echo \"recording $DISPLAY (pid $(cat \"$REC\u002Fffmpeg.pid\"))\"\n```\n\nThe 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.\n\n## Linux: 2. Demonstrate\n\nDrive 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.\n\n## Linux: 3. Stop and encode (always, even if the run failed)\n\nReplace `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.\n\n```sh\nREC=\u002Ftmp\u002Frecord-screen; OUT=\"$REC\u002FNAME.mp4\"; pid=$(cat \"$REC\u002Fffmpeg.pid\")\nkill -INT \"$pid\"; timeout 30 tail --pid=\"$pid\" -f \u002Fdev\u002Fnull\nlead=$(ffmpeg -i \"$REC\u002Fraw.mkv\" -vf blackdetect=d=0.3:pix_th=0.05 -an -f null - 2>&1 \\\n  | awk -F'black_end:' '\u002Fblack_start:0 \u002F{split($2,a,\" \"); print a[1]; exit}')\nffmpeg -v error -y -ss \"${lead:-0}\" -i \"$REC\u002Fraw.mkv\" -vf fps=10 -c:v libx264 -preset slow -crf 28 \\\n  -pix_fmt yuv420p -movflags +faststart \"$OUT\"\nffprobe -v error -show_entries format=duration,size -of default=nw=1 \"$OUT\"\n```\n\n## macOS: record only the app window\n\n[`scripts\u002Fmac-record.sh`](scripts\u002Fmac-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.\n\n```sh\nS=\u003Cthis skill>\u002Fscripts\u002Fmac-record.sh\n$S start \"\u003CApp name as shown in the menu bar>\" \"\u003Coptional window title substring>\"\n# demonstrate the change, pausing about 2 seconds on each state\n$S stop NAME   # always, even if the run failed; writes \u002Ftmp\u002Frecord-screen\u002FNAME.mp4 and check.png\n```\n\n- Open the app window before `start`. A minimized window or one on another Space is not on screen; `start` refuses rather than guessing.\n- 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.\n- Launch the app under test in its own window with only test data in it. The window's contents are recorded as they are.\n\n## 4. Check and attach\n\n- Pull one frame (`ffmpeg -ss 5 -i \"$OUT\" -frames:v 1 \u002Ftmp\u002Frecord-screen\u002Fcheck.png`) and look at it. A black or empty frame means the app ran on another display. On macOS, `stop` already wrote `check.png`; confirm it shows only the app under test, and delete the video if it shows anything else.\n- In a project thread, copy the MP4 under `\u002Fmnt\u002Fproject-files\u002F` (for example `\u002Fmnt\u002Fproject-files\u002Fscreen-recordings\u002FNAME.mp4`) and attach it to the reply that reports the result with `attached_outputs: [{\"kind\": \"file\", \"ref\": \"\u003Cthat path>\"}]`. Elsewhere, give the path.\n- Say in one line what the video shows and its duration. The video supports assertions and screenshots; it does not replace them.\n- Never record screens that show credentials or tokens.",{"name":5,"description":7},"main","0c773e8ba99fe384310af3f9ee59741106a53d95","skills\u002Frecord-screen",3,"https:\u002F\u002Fgithub.com\u002Fminghinmatthewlam\u002Fagent-guards","https:\u002F\u002Fgithub.com\u002Fminghinmatthewlam","Builder. Less optimizing agents setup, more building","2026-11-08 05:41:31",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add minghinmatthewlam\u002Fagent-guards --skill record-screen",{"tool":57,"command":58},"bunx","bunx skills add minghinmatthewlam\u002Fagent-guards --skill record-screen",{"tool":60,"command":61},"pnpm","pnpm dlx skills add minghinmatthewlam\u002Fagent-guards --skill record-screen","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fminghinmatthewlam\u002Fagent-guards\u002Fblob\u002Fmain\u002Fskills\u002Frecord-screen\u002FSKILL.md",true,[65],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"scripts\u002Fmac-record.sh","SCRIPT","脚本",3066,"https:\u002F\u002Fgithub.com\u002Fminghinmatthewlam\u002Fagent-guards\u002Fblob\u002Fmain\u002Fskills\u002Frecord-screen\u002Fscripts\u002Fmac-record.sh",[72,95,120,140,159,175],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":38},"01M6EKT039SVAX6PXWNJZNZ4EX","teach","Build a working mental model of code: the components and how they interact, then the interfaces, schemas, and function signatures. Use when asked to teach or explain how code works, walk through an architecture, deep-dive a subsystem, or understand a change, including code outside the current repo. For a concept with no code, use pstack:teach.","https:\u002F\u002Fgithub.com\u002Fminghinmatthewlam\u002Fagent-guards\u002Fblob\u002Fmain\u002Fskills\u002Fteach\u002FSKILL.md",[],[74,36,79,80,81,29,82,21,83,84,85,86,87,88,89,90,91,92,93,94],"build","model","how","understand","code","explain","with","concept","deep","for","mental model","signatures","pstack","no code","components","when",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":38},"01M6EKSX03CR18TFCATJ5ARTN7","skills-audit","Audit agent skills for triggering quality, correctness, context efficiency, redundancy, structure, failure guidance, and coverage gaps. Use when the user asks to review, improve, compare, simplify, or evaluate skills in global, repo-local, Claude, Codex, or custom skill paths.","https:\u002F\u002Fgithub.com\u002Fminghinmatthewlam\u002Fagent-guards\u002Fblob\u002Fmain\u002Fskills\u002Fskills-audit\u002FSKILL.md",[],[102,103,104,105,106,29,107,108,109,110,111,21,112,113,114,115,116,117,118,119],"audit","skills audit","coverage","structure","codex","quality","local","guidance","paths","improve","custom skill","simplify","coverage gaps","user","context","compare","review","efficiency",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":38},"01M6EKSSTYVXDV0REZEF7J9X6F","repo-setup","Set up or refactor a repository so agents naturally follow its intended architecture and important mistakes fail mechanically. Use when the user invokes $repo-setup, asks to make a repo agent-friendly, or wants important repository rules enforced through structure, types, tooling, tests, or CI.","https:\u002F\u002Fgithub.com\u002Fminghinmatthewlam\u002Fagent-guards\u002Fblob\u002Fmain\u002Fskills\u002Frepo-setup\u002FSKILL.md",[],[29,127,128,129,105,130,131,132,133,134,135,21,136,137,138,115,139],"repo setup","setup","SET","types","tooling","repository","up","ci","tests","Rules","refactor","architecture","make",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":38},"01M6EKSME0SDX0X052A8ZY0SMB","ori-pr","Take an OpenRouterIncubator\u002Fori or OpenRouterTeam\u002Fopenrouter-web PR from ready to merged. Matthew runs \u002Fori-pr once he has decided the PR is ready and understands the change. Asks perry for review once CI is green, handles perry's comments, and enqueues the merge once perry approves the head and CI is green, within quiet hours.","https:\u002F\u002Fgithub.com\u002Fminghinmatthewlam\u002Fagent-guards\u002Fblob\u002Fmain\u002Fskills\u002Fori-pr\u002FSKILL.md",[],[147,148,149,150,36,151,152,153,118,134,154,155,156,88,157,158],"pr","ori pr","take","ready","head","green","merge","perry","openrouter","web","true","comments",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":38},"01M6EKSGFS2DZNXYFH7A9GJ4BD","new-task","Clarify a new task by stating the goal the agent believes the user wants, showing its current understanding, and asking only product-related or high-priority questions that could materially change the outcome. Use before planning or implementation when the task needs alignment.","https:\u002F\u002Fgithub.com\u002Fminghinmatthewlam\u002Fagent-guards\u002Fblob\u002Fmain\u002Fskills\u002Fnew-task\u002FSKILL.md",[],[166,167,168,27,36,169,170,21,171,172,173,174,115],"new task","task","alignment","implementation","clarify","product","planning","goal","outcome",{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":181,"publishedAt":38},"01M6EKSCFNX23HN02XW0HW7J11","learn-from-mistake","Find why an agent produced a bad result, strengthen the code, repository, verification, tooling, or workflow that enabled it, then retry the original task. Use when the user asks to learn from a mistake, prevent recurrence, or postmortem an agent failure.","https:\u002F\u002Fgithub.com\u002Fminghinmatthewlam\u002Fagent-guards\u002Fblob\u002Fmain\u002Fskills\u002Flearn-from-mistake\u002FSKILL.md",[],[182,183,184,131,185,186,187,188,132,21,189,83,190,115,167],"learn from mistake","learn","verification","find","why","bad","postmortem","workflow","it"]