[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B4P88M6VAZDJXZP25KBS34":3,"skill-same:01M7B4P88M6VAZDJXZP25KBS34":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M7B4P88M6VAZDJXZP25KBS34","capture",null,"Generic primitive for capturing a screenshot (image) or short walkthrough (video) of a URL, on either Playwright (primary) or system Chrome via CDP (config-driven fallback). Use whenever something needs a page rendered to a file on disk — not just previewed in an in-app browser tool. ALWAYS invoke this skill first when asked to \"capture\", \"screenshot\", \"take a screenshot of\", or \"record\" a URL or page, including pages that only render client-side, before writing any command: it supplies the configured viewport, output directory and file name, and the headless CDP recipe. Engine, browser, viewport, output type, and output directory are all config-driven (see Config resolution below), not hardcoded per call.","dfadler\u002Fagent-config","dfadler","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F728299?v=4","01M7B4BA8FAJ5P24T90G3PC8TY","Dustin Fadler","01M7B4BA97E5D2066FW0XMDQQY",1,"MIT","https:\u002F\u002Fgithub.com\u002Fdfadler\u002Fagent-config\u002Fblob\u002Fmain\u002Fplugins\u002Fscreen-capture\u002Fskills\u002Fcapture\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: capture\ndescription: >\n  Generic primitive for capturing a screenshot (image) or short walkthrough\n  (video) of a URL, on either Playwright (primary) or system Chrome via CDP\n  (config-driven fallback). Use whenever something needs a page rendered to a\n  file on disk — not just previewed in an in-app browser tool. ALWAYS invoke\n  this skill first when asked to \"capture\", \"screenshot\", \"take a screenshot\n  of\", or \"record\" a URL or page, including pages that only render\n  client-side, before writing any command: it supplies the configured\n  viewport, output directory and file name, and the headless CDP recipe.\n  Engine, browser, viewport, output type, and output directory are all\n  config-driven (see Config resolution below), not hardcoded per call.\nlicense: MIT\nmetadata:\n  version: \"0.1.0\"\n---\n\n# Screen capture\n\n## Contract\n\n- **Input:** a URL to render, with engine, viewport, output type, and output directory\n  resolved from config (see \"Config resolution\").\n- **Output:** an image or video file on disk, at a path the caller can hand to\n  `screen-capture:attach`.\n- **Does not:** decide what happens to the file afterwards, or start a dev server.\n\nA generic page-capture primitive: given a URL, produce an image or video file\non disk. Two engines are supported; which one runs is config, not a per-call\nchoice you make in prose.\n\nThis is the *mechanics* skill for producing the file. It has no opinion on\nwhat the caller does with it afterwards (attach to a PR, embed in a doc,\netc.) — for the PR\u002Fissue-attachment workflow specifically (before\u002Fafter\ntables, GitHub upload, responsive\u002FLighthouse passes), see\n`screen-capture:compare`, `screen-capture:attach`, and\n`screen-capture:lighthouse`.\n\n## Config resolution\n\nResolve each setting in this order — first source that defines the key wins,\notherwise fall through to the next:\n\n1. **`second-brain:config`** (vault-global config, from the sibling\n   `second-brain` plugin) — read via that skill under a `screen-capture.*`\n   namespace. **This dependency may not be installed yet** (it ships from a\n   separate epic issue); if the skill isn't available, skip straight to step 2\n   rather than failing.\n2. **`.claude\u002Fsettings.json`** in the current project, under a `screenCapture`\n   object.\n3. **`SCREEN_CAPTURE_*` environment variables.**\n4. **Built-in default**, listed below.\n\n| Setting | `second-brain:config` key | `settings.json` key | env var | default |\n|---|---|---|---|---|\n| engine | `screen-capture.engine` | `screenCapture.engine` | `SCREEN_CAPTURE_ENGINE` | `playwright` |\n| browser | `screen-capture.browser` | `screenCapture.browser` | `SCREEN_CAPTURE_BROWSER` | `chromium` |\n| viewport | `screen-capture.viewport` | `screenCapture.viewport` | `SCREEN_CAPTURE_VIEWPORT` | `1280x900` |\n| output_type | `screen-capture.output_type` | `screenCapture.outputType` | `SCREEN_CAPTURE_OUTPUT_TYPE` | `image` |\n| output_dir | `screen-capture.output_dir` | `screenCapture.outputDir` | `SCREEN_CAPTURE_OUTPUT_DIR` | this session's scratchpad directory |\n\n`engine` is the only key that changes which section below you follow;\n`viewport` is `WIDTHxHEIGHT` (CSS pixels); `output_type` is `image` or\n`video`.\n\n## Engine: Playwright (default)\n\nCheck for an already-installed Playwright before reaching for `npx` —\n`node_modules\u002F.bin\u002Fplaywright` or `playwright`\u002F`@playwright\u002Ftest` in the\ncurrent project's `package.json` means the project already owns the\ndependency and version; use that binary instead of pulling a possibly\ndifferent version via `npx`. Otherwise `npx --yes playwright ...` runs it\none-off with no project install needed. Either way, Chromium's own browser\nbinary is a one-time install if missing:\n\n```bash\nnpx --yes playwright install chromium\n```\n\n### `output_type: image`\n\nThe CLI covers a plain screenshot, including a client-rendered SPA — unlike\nraw headless Chrome's `--screenshot` flag (see the CDP path below), Playwright\nwaits for the `load` event and JS execution by default:\n\n```bash\nwidth=\"${viewport%x*}\"; height=\"${viewport#*x}\"\nnpx --yes playwright screenshot \\\n  --browser=\"$browser\" \\\n  --viewport-size=\"${width},${height}\" \\\n  --full-page \\\n  \"$url\" \"$output_dir\u002Fcapture.png\"\n```\n\nIf the page needs more readiness than `load` (a specific selector, a fetch\nthat resolves after paint), don't reach for a fixed sleep — drop to the short\nNode script below and poll before calling `page.screenshot()`.\n\n### `output_type: video`\n\nThe CLI has no video mode; use a short Node script — Playwright records video\nper browser *context*, and the file is only finalized once that context\ncloses:\n\n```js\nconst { chromium, firefox, webkit } = require('playwright');\nconst engines = { chromium, firefox, webkit };\n\n(async () => {\n  const [, , browserName, width, height, url, outputDir] = process.argv;\n  const browser = await engines[browserName].launch();\n  const context = await browser.newContext({\n    viewport: { width: Number(width), height: Number(height) },\n    recordVideo: { dir: outputDir, size: { width: Number(width), height: Number(height) } },\n  });\n  const page = await context.newPage();\n  await page.goto(url, { waitUntil: 'load' });\n  \u002F\u002F Add any interaction\u002Fwait steps here (page.click, page.waitForSelector, …)\n  \u002F\u002F before closing — the recording covers everything up to context.close().\n  await context.close(); \u002F\u002F finalizes the video file; the path is only known now\n  const video = await page.video().path();\n  console.log(video);\n  await browser.close();\n})();\n```\n\nRun it with `node script.js \"$browser\" \"$width\" \"$height\" \"$url\" \"$output_dir\"`\nand move\u002Frename the printed path to your expected output filename — Playwright\nnames the file with an internal UUID, not something you choose up front.\n\n## Engine: Chrome + CDP (fallback)\n\nUse this engine when `engine` resolves to `chrome-cdp` — e.g. a machine\nwithout Playwright's browser binaries available, or a project that already\nstandardizes on system Chrome. Mechanics below are a condensed\nrecipe; for Lighthouse\u002Fresponsive passes see `screen-capture:lighthouse`.\n\n**macOS-only paths below** (`\u002FApplications\u002FGoogle Chrome.app\u002F...`); on Linux\nsubstitute `google-chrome`\u002F`chromium`.\n\n### `output_type: image`, server-rendered page\n\nA page that paints on the initial HTML works with a plain headless\nscreenshot:\n\n```bash\nwidth=\"${viewport%x*}\"; height=\"${viewport#*x}\"\nrm -f \"$output_dir\u002Fcapture.png\"\n\"\u002FApplications\u002FGoogle Chrome.app\u002FContents\u002FMacOS\u002FGoogle Chrome\" \\\n  --headless=new --disable-gpu \\\n  --window-size=\"$width,$height\" --force-device-scale-factor=2 \\\n  --screenshot=\"$output_dir\u002Fcapture.png\" \\\n  \"$url\" &\nchrome_pid=$!\nfor _ in $(seq 1 100); do\n  [ -s \"$output_dir\u002Fcapture.png\" ] && break\n  kill -0 \"$chrome_pid\" 2>\u002Fdev\u002Fnull || { echo \"chrome exited before writing a screenshot\" >&2; exit 1; }\n  sleep 0.2\ndone\n[ -s \"$output_dir\u002Fcapture.png\" ] || { echo \"timed out waiting for the screenshot\" >&2; exit 1; }\nkill -9 \"$chrome_pid\" 2>\u002Fdev\u002Fnull\n```\n\n`--window-size` is the CSS viewport; with `--force-device-scale-factor=2` the\noutput image is `2W×2H`. If `--headless=new` hangs on the installed Chrome,\nfall back to `--headless=old`.\n\n### `output_type: image`, client-rendered page (SPA)\n\nPlain `--screenshot` fires before a client-rendered page's JS paints anything,\nproducing a blank image — drive Chrome over CDP instead (Node's built-in\n`WebSocket` speaks CDP directly, no extra dependency):\n\n1. Launch with an ephemeral debug port:\n   ```bash\n   profile_dir=$(mktemp -d)\n   \"\u002FApplications\u002FGoogle Chrome.app\u002FContents\u002FMacOS\u002FGoogle Chrome\" \\\n     --headless=new --disable-gpu --user-data-dir=\"$profile_dir\" \\\n     --remote-debugging-port=0 &\n   chrome_pid=$!\n   ```\n2. Poll (bounded, checking the process is still alive) for\n   `$profile_dir\u002FDevToolsActivePort`, then read the port from its first line.\n3. `Target.createTarget` a new tab, `Target.attachToTarget` with\n   `{flatten: true}` to get a `sessionId` — every following command must carry\n   it.\n4. `Page.enable`, then register a `Page.loadEventFired` listener *before*\n   navigating.\n5. `Emulation.setDeviceMetricsOverride` with the resolved viewport —\n   **required**; CDP-created tabs ignore `--window-size`.\n6. `Page.navigate` to `$url`, wait for `Page.loadEventFired`, then poll via\n   `Runtime.evaluate` for a concrete readiness signal (a selector, a value) —\n   `document.readyState === 'complete'` is a floor, not a guarantee. Stop and\n   report if the poll times out; don't capture a still-loading page.\n7. `Page.captureScreenshot`, then look at the result before trusting it.\n8. **Teardown, unconditionally, including on a failure path:**\n   `kill \"$chrome_pid\"; rm -rf \"$profile_dir\"`.\n\nIf Chrome rejects the CDP websocket connection, retry with\n`--remote-allow-origins=http:\u002F\u002F127.0.0.1:\u003Cport>` (the exact debugging origin, using the\nport Chrome reports for `--remote-debugging-port=0`).\nUse the `*` wildcard only as a last resort: it lets any page that can reach the\ndebugging port drive the capture browser, so keep the throwaway profile and\nephemeral port, and tear the browser down as soon as the capture finishes.\n\n### `output_type: video` (either Chrome path)\n\nChrome\u002FCDP has no built-in video capture, so build the video from stills:\ncapture one PNG per step with the recipe above (numbered\n`frame-001.png`, `frame-002.png`, …), then stitch with `ffmpeg`.\n\nGenerate the concat-demuxer input list (each still held for `frame_seconds`):\n\n```bash\nframe_seconds=1\npython3 - \"$output_dir\" \"$frame_seconds\" > \"$output_dir\u002Fframes.txt\" \u003C\u003C'PY'\nimport glob, os, sys\n\nframes_dir, duration = sys.argv[1], sys.argv[2]\nfiles = sorted(glob.glob(os.path.join(frames_dir, \"frame-*.png\")))\nif not files:\n    sys.exit(f\"no frame-*.png files found in {frames_dir}\")\n\ndef esc(path):\n    return \"'\" + path.replace(\"'\", \"'\\\\''\") + \"'\"\n\nfor f in files:\n    print(f\"file {esc(f)}\")\n    print(f\"duration {duration}\")\n# The concat demuxer ignores the last entry's duration, so repeat the final\n# file line once more with nothing after it.\nprint(f\"file {esc(files[-1])}\")\nPY\n```\n\n```bash\nffmpeg -f concat -safe 0 -i \"$output_dir\u002Fframes.txt\" -vf \"fps=30,format=yuv420p\" \\\n  -c:v h264_videotoolbox -b:v 5M \"$output_dir\u002Fcapture.mp4\"\n```\n\nOn macOS, use `h264_videotoolbox` if the system `ffmpeg` build has no\n`libx264` support for `-preset`; on Linux, `-c:v libx264` is the normal\nchoice.\n\n## Output\n\nWrite to `output_dir` (default: this session's scratchpad directory) as\n`capture.png` or `capture.mp4` unless the caller names a specific filename.\nConfirm the file is non-empty before reporting success — an interrupted\ncapture can leave a zero-byte or partial file.\n\n## When visual verification is required\n\nWhen a PR or issue changes what gets visually rendered (UI components, generated\nimages or diagrams, styled documents, anything a human looks at rather than reads as\ncode), provide before\u002Fafter screenshots in its description, not just prose. Skip it\nfor backend logic, config, migrations, scripts, tests, types, docs, and tooling. Do\nthis proactively, as part of finishing the PR, then run `compare` and `attach`.\n\nFor a change to layout, CSS, or responsive behavior, one fixed width is not proof:\noverflow, clipping, or dead space shows up at other widths. Do a manual resize pass\nacross representative breakpoints plus a Lighthouse mobile\u002Fdesktop pass (see\n`screen-capture:lighthouse`).\n","# Screen capture\n\n## Contract\n\n- **Input:** a URL to render, with engine, viewport, output type, and output directory\n  resolved from config (see \"Config resolution\").\n- **Output:** an image or video file on disk, at a path the caller can hand to\n  `screen-capture:attach`.\n- **Does not:** decide what happens to the file afterwards, or start a dev server.\n\nA generic page-capture primitive: given a URL, produce an image or video file\non disk. Two engines are supported; which one runs is config, not a per-call\nchoice you make in prose.\n\nThis is the *mechanics* skill for producing the file. It has no opinion on\nwhat the caller does with it afterwards (attach to a PR, embed in a doc,\netc.) — for the PR\u002Fissue-attachment workflow specifically (before\u002Fafter\ntables, GitHub upload, responsive\u002FLighthouse passes), see\n`screen-capture:compare`, `screen-capture:attach`, and\n`screen-capture:lighthouse`.\n\n## Config resolution\n\nResolve each setting in this order — first source that defines the key wins,\notherwise fall through to the next:\n\n1. **`second-brain:config`** (vault-global config, from the sibling\n   `second-brain` plugin) — read via that skill under a `screen-capture.*`\n   namespace. **This dependency may not be installed yet** (it ships from a\n   separate epic issue); if the skill isn't available, skip straight to step 2\n   rather than failing.\n2. **`.claude\u002Fsettings.json`** in the current project, under a `screenCapture`\n   object.\n3. **`SCREEN_CAPTURE_*` environment variables.**\n4. **Built-in default**, listed below.\n\n| Setting | `second-brain:config` key | `settings.json` key | env var | default |\n|---|---|---|---|---|\n| engine | `screen-capture.engine` | `screenCapture.engine` | `SCREEN_CAPTURE_ENGINE` | `playwright` |\n| browser | `screen-capture.browser` | `screenCapture.browser` | `SCREEN_CAPTURE_BROWSER` | `chromium` |\n| viewport | `screen-capture.viewport` | `screenCapture.viewport` | `SCREEN_CAPTURE_VIEWPORT` | `1280x900` |\n| output_type | `screen-capture.output_type` | `screenCapture.outputType` | `SCREEN_CAPTURE_OUTPUT_TYPE` | `image` |\n| output_dir | `screen-capture.output_dir` | `screenCapture.outputDir` | `SCREEN_CAPTURE_OUTPUT_DIR` | this session's scratchpad directory |\n\n`engine` is the only key that changes which section below you follow;\n`viewport` is `WIDTHxHEIGHT` (CSS pixels); `output_type` is `image` or\n`video`.\n\n## Engine: Playwright (default)\n\nCheck for an already-installed Playwright before reaching for `npx` —\n`node_modules\u002F.bin\u002Fplaywright` or `playwright`\u002F`@playwright\u002Ftest` in the\ncurrent project's `package.json` means the project already owns the\ndependency and version; use that binary instead of pulling a possibly\ndifferent version via `npx`. Otherwise `npx --yes playwright ...` runs it\none-off with no project install needed. Either way, Chromium's own browser\nbinary is a one-time install if missing:\n\n```bash\nnpx --yes playwright install chromium\n```\n\n### `output_type: image`\n\nThe CLI covers a plain screenshot, including a client-rendered SPA — unlike\nraw headless Chrome's `--screenshot` flag (see the CDP path below), Playwright\nwaits for the `load` event and JS execution by default:\n\n```bash\nwidth=\"${viewport%x*}\"; height=\"${viewport#*x}\"\nnpx --yes playwright screenshot \\\n  --browser=\"$browser\" \\\n  --viewport-size=\"${width},${height}\" \\\n  --full-page \\\n  \"$url\" \"$output_dir\u002Fcapture.png\"\n```\n\nIf the page needs more readiness than `load` (a specific selector, a fetch\nthat resolves after paint), don't reach for a fixed sleep — drop to the short\nNode script below and poll before calling `page.screenshot()`.\n\n### `output_type: video`\n\nThe CLI has no video mode; use a short Node script — Playwright records video\nper browser *context*, and the file is only finalized once that context\ncloses:\n\n```js\nconst { chromium, firefox, webkit } = require('playwright');\nconst engines = { chromium, firefox, webkit };\n\n(async () => {\n  const [, , browserName, width, height, url, outputDir] = process.argv;\n  const browser = await engines[browserName].launch();\n  const context = await browser.newContext({\n    viewport: { width: Number(width), height: Number(height) },\n    recordVideo: { dir: outputDir, size: { width: Number(width), height: Number(height) } },\n  });\n  const page = await context.newPage();\n  await page.goto(url, { waitUntil: 'load' });\n  \u002F\u002F Add any interaction\u002Fwait steps here (page.click, page.waitForSelector, …)\n  \u002F\u002F before closing — the recording covers everything up to context.close().\n  await context.close(); \u002F\u002F finalizes the video file; the path is only known now\n  const video = await page.video().path();\n  console.log(video);\n  await browser.close();\n})();\n```\n\nRun it with `node script.js \"$browser\" \"$width\" \"$height\" \"$url\" \"$output_dir\"`\nand move\u002Frename the printed path to your expected output filename — Playwright\nnames the file with an internal UUID, not something you choose up front.\n\n## Engine: Chrome + CDP (fallback)\n\nUse this engine when `engine` resolves to `chrome-cdp` — e.g. a machine\nwithout Playwright's browser binaries available, or a project that already\nstandardizes on system Chrome. Mechanics below are a condensed\nrecipe; for Lighthouse\u002Fresponsive passes see `screen-capture:lighthouse`.\n\n**macOS-only paths below** (`\u002FApplications\u002FGoogle Chrome.app\u002F...`); on Linux\nsubstitute `google-chrome`\u002F`chromium`.\n\n### `output_type: image`, server-rendered page\n\nA page that paints on the initial HTML works with a plain headless\nscreenshot:\n\n```bash\nwidth=\"${viewport%x*}\"; height=\"${viewport#*x}\"\nrm -f \"$output_dir\u002Fcapture.png\"\n\"\u002FApplications\u002FGoogle Chrome.app\u002FContents\u002FMacOS\u002FGoogle Chrome\" \\\n  --headless=new --disable-gpu \\\n  --window-size=\"$width,$height\" --force-device-scale-factor=2 \\\n  --screenshot=\"$output_dir\u002Fcapture.png\" \\\n  \"$url\" &\nchrome_pid=$!\nfor _ in $(seq 1 100); do\n  [ -s \"$output_dir\u002Fcapture.png\" ] && break\n  kill -0 \"$chrome_pid\" 2>\u002Fdev\u002Fnull || { echo \"chrome exited before writing a screenshot\" >&2; exit 1; }\n  sleep 0.2\ndone\n[ -s \"$output_dir\u002Fcapture.png\" ] || { echo \"timed out waiting for the screenshot\" >&2; exit 1; }\nkill -9 \"$chrome_pid\" 2>\u002Fdev\u002Fnull\n```\n\n`--window-size` is the CSS viewport; with `--force-device-scale-factor=2` the\noutput image is `2W×2H`. If `--headless=new` hangs on the installed Chrome,\nfall back to `--headless=old`.\n\n### `output_type: image`, client-rendered page (SPA)\n\nPlain `--screenshot` fires before a client-rendered page's JS paints anything,\nproducing a blank image — drive Chrome over CDP instead (Node's built-in\n`WebSocket` speaks CDP directly, no extra dependency):\n\n1. Launch with an ephemeral debug port:\n   ```bash\n   profile_dir=$(mktemp -d)\n   \"\u002FApplications\u002FGoogle Chrome.app\u002FContents\u002FMacOS\u002FGoogle Chrome\" \\\n     --headless=new --disable-gpu --user-data-dir=\"$profile_dir\" \\\n     --remote-debugging-port=0 &\n   chrome_pid=$!\n   ```\n2. Poll (bounded, checking the process is still alive) for\n   `$profile_dir\u002FDevToolsActivePort`, then read the port from its first line.\n3. `Target.createTarget` a new tab, `Target.attachToTarget` with\n   `{flatten: true}` to get a `sessionId` — every following command must carry\n   it.\n4. `Page.enable`, then register a `Page.loadEventFired` listener *before*\n   navigating.\n5. `Emulation.setDeviceMetricsOverride` with the resolved viewport —\n   **required**; CDP-created tabs ignore `--window-size`.\n6. `Page.navigate` to `$url`, wait for `Page.loadEventFired`, then poll via\n   `Runtime.evaluate` for a concrete readiness signal (a selector, a value) —\n   `document.readyState === 'complete'` is a floor, not a guarantee. Stop and\n   report if the poll times out; don't capture a still-loading page.\n7. `Page.captureScreenshot`, then look at the result before trusting it.\n8. **Teardown, unconditionally, including on a failure path:**\n   `kill \"$chrome_pid\"; rm -rf \"$profile_dir\"`.\n\nIf Chrome rejects the CDP websocket connection, retry with\n`--remote-allow-origins=http:\u002F\u002F127.0.0.1:\u003Cport>` (the exact debugging origin, using the\nport Chrome reports for `--remote-debugging-port=0`).\nUse the `*` wildcard only as a last resort: it lets any page that can reach the\ndebugging port drive the capture browser, so keep the throwaway profile and\nephemeral port, and tear the browser down as soon as the capture finishes.\n\n### `output_type: video` (either Chrome path)\n\nChrome\u002FCDP has no built-in video capture, so build the video from stills:\ncapture one PNG per step with the recipe above (numbered\n`frame-001.png`, `frame-002.png`, …), then stitch with `ffmpeg`.\n\nGenerate the concat-demuxer input list (each still held for `frame_seconds`):\n\n```bash\nframe_seconds=1\npython3 - \"$output_dir\" \"$frame_seconds\" > \"$output_dir\u002Fframes.txt\" \u003C\u003C'PY'\nimport glob, os, sys\n\nframes_dir, duration = sys.argv[1], sys.argv[2]\nfiles = sorted(glob.glob(os.path.join(frames_dir, \"frame-*.png\")))\nif not files:\n    sys.exit(f\"no frame-*.png files found in {frames_dir}\")\n\ndef esc(path):\n    return \"'\" + path.replace(\"'\", \"'\\\\''\") + \"'\"\n\nfor f in files:\n    print(f\"file {esc(f)}\")\n    print(f\"duration {duration}\")\n# The concat demuxer ignores the last entry's duration, so repeat the final\n# file line once more with nothing after it.\nprint(f\"file {esc(files[-1])}\")\nPY\n```\n\n```bash\nffmpeg -f concat -safe 0 -i \"$output_dir\u002Fframes.txt\" -vf \"fps=30,format=yuv420p\" \\\n  -c:v h264_videotoolbox -b:v 5M \"$output_dir\u002Fcapture.mp4\"\n```\n\nOn macOS, use `h264_videotoolbox` if the system `ffmpeg` build has no\n`libx264` support for `-preset`; on Linux, `-c:v libx264` is the normal\nchoice.\n\n## Output\n\nWrite to `output_dir` (default: this session's scratchpad directory) as\n`capture.png` or `capture.mp4` unless the caller names a specific filename.\nConfirm the file is non-empty before reporting success — an interrupted\ncapture can leave a zero-byte or partial file.\n\n## When visual verification is required\n\nWhen a PR or issue changes what gets visually rendered (UI components, generated\nimages or diagrams, styled documents, anything a human looks at rather than reads as\ncode), provide before\u002Fafter screenshots in its description, not just prose. Skip it\nfor backend logic, config, migrations, scripts, tests, types, docs, and tooling. Do\nthis proactively, as part of finishing the PR, then run `compare` and `attach`.\n\nFor a change to layout, CSS, or responsive behavior, one fixed width is not proof:\noverflow, clipping, or dead space shows up at other widths. Do a manual resize pass\nacross representative breakpoints plus a Lighthouse mobile\u002Fdesktop pass (see\n`screen-capture:lighthouse`).\n",{"name":5,"license":15,"metadata":24,"description":26},{"version":25},"0.1.0","Generic primitive for capturing a screenshot (image) or short walkthrough (video) of a URL, on either Playwright (primary) or system Chrome via CDP (config-driven fallback). Use whenever something needs a page rendered to a file on disk — not just previewed in an in-app browser tool. ALWAYS invoke this skill first when asked to \"capture\", \"screenshot\", \"take a screenshot of\", or \"record\" a URL or page, including pages that only render client-side, before writing any command: it supplies the configured viewport, output directory and file name, and the headless CDP recipe. Engine, browser, viewport, output type, and output directory are all config-driven (see Config resolution below), not hardcoded per call.\n","main","a924e3abb0a831866902dd0835353e108826e0a3","plugins\u002Fscreen-capture\u002Fskills\u002Fcapture",0,"https:\u002F\u002Fgithub.com\u002Fdfadler\u002Fagent-config","https:\u002F\u002Fgithub.com\u002Fdfadler","http:\u002F\u002Fdfadler.com","2026-11-15 05:22:24",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add dfadler\u002Fagent-config --skill capture",{"tool":41,"command":42},"bunx","bunx skills add dfadler\u002Fagent-config --skill capture",{"tool":44,"command":45},"pnpm","pnpm dlx skills add dfadler\u002Fagent-config --skill capture","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdfadler\u002Fagent-config\u002Fblob\u002Fmain\u002Fplugins\u002Fscreen-capture\u002Fskills\u002Fcapture\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7B4V2WXAHE2FC90KSD4GKRV","youtube-transcript","ALWAYS invoke before fetching a transcript, captions or description for a\nYouTube video, even when only asked how you would get them. Given a YouTube\nURL (youtube.com\u002Fwatch, youtu.be, shorts), save the video's English\nauto-captions as plain text and its description to files with `yt-dlp`, and\nprint the title, channel and duration. Use when asked to \"get the transcript\nfor this video\", \"grab the captions\", \"summarize this YouTube video\", \"put\nthese videos' transcripts in an artifact\", or when a YouTube link is pasted\nand its spoken content is needed. Do not drive the browser's transcript panel\nor try `youtube-transcript-api` first: both were tried and are slower or\nempty.","https:\u002F\u002Fgithub.com\u002Fdfadler\u002Fagent-config\u002Fblob\u002Fmain\u002Fplugins\u002Fyoutube-transcript\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7B4TNSGRRKJZ9A5B9TSRCC3","git-worktree-usage","Load this before pushing to, or opening a PR from, a branch whose earlier PR\nalready merged (a squash merge leaves its commits off the default branch, so\na new PR from it shows stale history), even when only advising: it defines\nthe fresh-branch and cherry-pick fix.\nCreate worktrees with the `EnterWorktree` tool, never raw `git worktree add`.\nGit worktree and branch mechanics for isolating non-trivial work: locking and\nthe stale-worktree sweep, picking what to parallelize by file surface, the\nrepo-wide `git stash` collision hazard and its `git restore` alternative,\nbranch naming, catching a branch up to a moved `main` via merge (not\nrebase), CI\u002Fcoverage gotchas after a merge, conflict-resolution escalation\nlevels, and PR-splitting sequencing. Also ships two SessionStart hooks that\nself-heal a project's own symlinked-worktree-directory convention and\nauto-prune merged worktrees, and a commit-branch guard hook that asks before\na git commit lands on the default or an unrelated checked-out branch. Use when creating, entering, or cleaning up a\ngit worktree, including before starting work in an existing worktree that\nanother session may be using; deciding how to parallelize agent sessions across a repo;\nhitting a `git stash` collision between sessions; resolving a merge\u002Frebase\nconflict; splitting an already-written diff into multiple PRs; or a stale\nor wrongly-linked worktree directory needs diagnosing. Do not use for a\nplain `git stash` in a single clone with no other worktrees or sessions,\nfor rewriting an unpushed branch's history, or for running commands in a\nworktree the user just created.","https:\u002F\u002Fgithub.com\u002Fdfadler\u002Fagent-config\u002Fblob\u002Fmain\u002Fplugins\u002Fworktree-core\u002Fskills\u002Fgit-worktree-usage\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7B4SGD3481322E9ZDQAFMTK","url-to-audio","ALWAYS invoke before answering any request to narrate or convert a URL or\narticle to audio, even when only asked what you would do or which backend you\nwould use (including when `OPENAI_API_KEY` is unset and the fallback is `say`).\nTurn a web article into a narrated audio file: fetch the page, extract the\nclean reading text, and synthesize it with macOS `say` by default (free,\nlocal, already installed, no API key) or OpenAI TTS optionally (when\n`OPENAI_API_KEY` is set and a `say` voice isn't good enough). Voice and\nspeed are configurable per call, with env var defaults. Produces a\n`.m4a`\u002F`.mp3` file at a predictable path and prints it. Use when asked to\n\"read this article to me\", \"convert this page\u002FURL to audio\", \"make an\naudio version of this link\", or \"text-to-speech this article\" — including\nwhen asked only for the commands or plan, or when `OPENAI_API_KEY` is unset.","https:\u002F\u002Fgithub.com\u002Fdfadler\u002Fagent-config\u002Fblob\u002Fmain\u002Fplugins\u002Furl-to-audio\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7B4RKYJQ16XGH8GR1WQ69ZT","subagent-orchestration","Use FIRST, before answering or planning, whenever the user hands over a list of two\nor more separate tasks (\"do A, B and C\", numbered or in no order) that each need real\nexploration, even if they only ask how you would tackle them: it triages which can run\nas parallel sub-agents and which must stay serial. Also use when asked how to\nconfigure a sub-agent already chosen for a large search or exploration (agent type,\nmodel tier), and when about to spawn a sub-agent, fan out with the Workflow tool, or run a task\nthat would put large tool output (more than ~50 lines, or ~3 file reads) into the\nmain context. Routes the work to the main context, a single Agent call, or a\nWorkflow; defines the compact handback a delegated agent should return; and picks\nthe model tier. Use for \"should I delegate this\", \"which agent do I use\", or\n\"keep my context small\".","https:\u002F\u002Fgithub.com\u002Fdfadler\u002Fagent-config\u002Fblob\u002Fmain\u002Fplugins\u002Fsubagent-orchestration\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7B4Q35VB7TKPF3Z3KA4E0YB","config","Internal primitive that reads YAML frontmatter from vault config files via\nmcp__obsidian__* tools, and returns it as merged key-value data. Not a\nuser-facing slash command — this skill is never triggered by a user\nrequest directly; other agent-config skills (screen-capture, and\nsecond-brain's own capture\u002Fquery skills) invoke it to load their own\nsettings. Degrades to an empty config, never a hard failure, when the\nObsidian MCP is disconnected or the config file doesn't exist. Parse\n`$ARGUMENTS` as `\u003Cskill-name> [project-name]`.","https:\u002F\u002Fgithub.com\u002Fdfadler\u002Fagent-config\u002Fblob\u002Fmain\u002Fplugins\u002Fsecond-brain\u002Fskills\u002Fconfig\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7B4PQ6KE886C346DH55GESM","lighthouse","Run a Lighthouse CLI pass (mobile + desktop) against a URL and store the results in the second-brain vault under knowledge\u002Flighthouse\u002F\u003Cproject>\u002F. ALWAYS invoke this skill first when asked to run, repeat or script a Lighthouse pass or performance\u002Faccessibility audit against a URL, before writing any `lighthouse` command, including when the config disables it (it defines the no-op behaviour). Complements, not replaces, a manual responsive resize-and-look pass. Not for advice about fixing a Lighthouse finding. Config-driven: which form factors run, whether the skill runs at all, and where results land are all controlled by lighthouse_enabled, lighthouse_form_factors, and lighthouse_output_dir.","https:\u002F\u002Fgithub.com\u002Fdfadler\u002Fagent-config\u002Fblob\u002Fmain\u002Fplugins\u002Fscreen-capture\u002Fskills\u002Flighthouse\u002FSKILL.md",[],[]]