[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72YXJ554W8ESN94D8C5RXKM":3,"skill-same:01M72YXJ554W8ESN94D8C5RXKM":101},{"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":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M72YXJ554W8ESN94D8C5RXKM","browser-trace",null,"Capture a full DevTools-protocol trace of any browser automation — CDP firehose, screenshots, and DOM dumps — then bisect the stream into per-page searchable buckets. Use when the user wants to debug a failed run, audit network\u002Fconsole\u002FDOM activity, attach a trace to an in-progress session, or feed structured per-page summaries back into an agent loop so its next iteration learns from the last one.","JOHNadonis\u002Fclaude-code-skills","JOHNadonis","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F31716775?v=4","01M72YRBKCVM4ZYJFF7Z71KVQQ","Hongcai Wang","01M72YRBMFSBZNVRJ4D48MWMZ3",0,"MIT","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbrowser-trace\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbrowser-trace\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: browser-trace\ndescription: Capture a full DevTools-protocol trace of any browser automation — CDP firehose, screenshots, and DOM dumps — then bisect the stream into per-page searchable buckets. Use when the user wants to debug a failed run, audit network\u002Fconsole\u002FDOM activity, attach a trace to an in-progress session, or feed structured per-page summaries back into an agent loop so its next iteration learns from the last one.\ncompatibility: \"Requires Node 18+, the browse CLI (`npm install -g @browserbasehq\u002Fbrowse-cli@alpha` or 0.5.1+ once released — `browse cdp` is alpha-tagged), and optionally `jq` for ad-hoc querying of the bisected JSONL files. For remote Browserbase sessions, also requires the `bb` CLI (`npm install -g @browserbasehq\u002Fcli`) and `BROWSERBASE_API_KEY`. The skill scripts themselves use only the Node standard library — no `npm install` step.\"\nlicense: MIT\nallowed-tools: Bash, Read, Grep\n---\n\n# Browser Trace\n\nAttach a **second, read-only CDP client** to a browser session that is already being driven by your main automation. The trace records the full DevTools firehose to NDJSON, polls for screenshots and DOM dumps in parallel, and slices everything into a directory tree that bash tools can search.\n\nThis skill does **not** drive pages — it only listens. Pair it with the `browser` skill, `bb`, Stagehand, Playwright, or anything else that speaks CDP.\n\n## When to use\n\n- The user wants to debug a browser-automation run (failing form, missing element, hung navigation, JS exception).\n- The user has a running automation and wants to attach a trace mid-flight without restarting it.\n- The user wants to split a CDP firehose into network \u002F console \u002F DOM \u002F page buckets.\n- The user wants screenshots + DOM snapshots over time, joined to CDP events by timestamp.\n\nIf the user just wants to **drive** the browser, use the `browser` skill instead.\n\n## Setup check\n\n```bash\nnode --version                                  # require Node 18+\nwhich browse || npm install -g @browserbasehq\u002Fbrowse-cli@alpha\nwhich bb     || npm install -g @browserbasehq\u002Fcli   # only needed for Browserbase remote\nwhich jq     || true                                # optional — used only for ad-hoc querying\n```\n\nVerify `browse cdp` exists (it ships in 0.5.0-alpha-a4ca430+):\n\n```bash\nbrowse --help | grep -q \"^\\s*cdp \" || echo \"browse cdp not in this version — install @alpha\"\n```\n\n## How it works\n\nEvery Chrome DevTools target accepts **multiple concurrent CDP clients**. Your main automation is one client; this skill adds a second one that only enables observation domains (Network, Console, Runtime, Log, Page) and never sends action commands.\n\nThe tracer has three pieces:\n\n1. **Firehose**: `browse cdp \u003Ctarget>` streams every CDP event as one JSON object per line to `cdp\u002Fraw.ndjson`.\n2. **Sampler**: a polling loop calls `browse --ws \u003Ctarget> screenshot` and `browse --ws \u003Ctarget> get html body` on an interval (default 2s). `--ws` is one-shot and bypasses the daemon, so it doesn't fight the main automation.\n3. **Bisector**: after the run, `bisect-cdp.mjs` walks `raw.ndjson` once, slices it into per-bucket JSONL files keyed by CDP method, and additionally bisects per page using top-level `Page.frameNavigated` events as boundaries.\n\n## Quickstart\n\n### Local Chrome\n\n```bash\n# 1. Launch Chrome with a debugger port (any user-data-dir keeps it isolated).\n\"\u002FApplications\u002FGoogle Chrome.app\u002FContents\u002FMacOS\u002FGoogle Chrome\" \\\n  --remote-debugging-port=9222 \\\n  --user-data-dir=\u002Ftmp\u002Fchrome-o11y \\\n  about:blank &\n\n# 2. Start the tracer.\nnode scripts\u002Fstart-capture.mjs 9222 my-run\n\n# 3. Run your main automation against port 9222.\nbrowse env local 9222\nbrowse open https:\u002F\u002Fexample.com\n# ...whatever the run does...\n\n# 4. Stop and bisect.\nnode scripts\u002Fstop-capture.mjs my-run\nnode scripts\u002Fbisect-cdp.mjs my-run\n```\n\n### Browserbase remote\n\nTwo helpers wrap the platform-side bookkeeping: `bb-capture.mjs` creates or attaches to a session and starts the tracer; `bb-finalize.mjs` pulls platform artifacts (final session metadata, server logs, downloads) into the run dir at the end.\n\n> Browserbase ends a session as soon as its last CDP client disconnects. **Always create with `--keep-alive` and attach an automation client before (or together with) the tracer.** `bb-capture.mjs --new` does this for you.\n\n```bash\nexport BROWSERBASE_API_KEY=...\n\n# 1. Create a keep-alive session AND start the tracer in one step.\n#    Prints the session id, connectUrl prefix, and a live debugger URL you\n#    can open in a browser to watch the run interactively.\nnode scripts\u002Fbb-capture.mjs --new my-run\n\n# 2. Drive automation. bb-capture stamped the session id into the manifest.\nSID=$(jq -r .browserbase.session_id .o11y\u002Fmy-run\u002Fmanifest.json)\nbrowse --connect \"$SID\" open https:\u002F\u002Fexample.com\nbrowse --connect \"$SID\" open https:\u002F\u002Fnews.ycombinator.com\n\n# 3. Stop the tracer, bisect, then pull platform artifacts and release.\nnode scripts\u002Fstop-capture.mjs my-run\nnode scripts\u002Fbisect-cdp.mjs my-run\nnode scripts\u002Fbb-finalize.mjs my-run --release\n```\n\nAttaching to a session that's *already running* (e.g. one your production worker created) — `bb-capture.mjs` accepts a session id instead of `--new`:\n\n```bash\n# Pick a running session (filter client-side; bb sessions list has no --status flag)\nbb sessions list | jq -r '.[] | select(.status == \"RUNNING\") | .id'\n\nnode scripts\u002Fbb-capture.mjs \u003Csession-id> mid-flight-debug\n# ...tracer runs alongside the existing automation client; no disruption...\nnode scripts\u002Fstop-capture.mjs mid-flight-debug\nnode scripts\u002Fbisect-cdp.mjs mid-flight-debug\nnode scripts\u002Fbb-finalize.mjs mid-flight-debug   # without --release: leave the session running\n```\n\n#### What you get from the Browserbase platform\n\n`bb-capture.mjs` adds a `browserbase` block to `manifest.json` (session id, project, region, started_at, expires_at, debugger URL). `bb-finalize.mjs` writes:\n\n- `\u003Crun>\u002Fbrowserbase\u002Fsession.json` — final `bb sessions get` snapshot (proxyBytes, status, ended_at, viewport, …)\n- `\u003Crun>\u002Fbrowserbase\u002Flogs.json` — `bb sessions logs` output. **Often empty.** The CDP firehose in `cdp\u002Fraw.ndjson` is the source of truth; this is a side channel.\n- `\u003Crun>\u002Fbrowserbase\u002Fdownloads.zip` — files the session downloaded, if any (the script discards the empty 22-byte zip you get when there are none)\n\n`bb sessions recording` (rrweb session replay) is **deprecated** and isn't fetched. Use the screenshots + DOM dumps in `screenshots\u002F` and `dom\u002F` for visual ground truth.\n\nThe live `debugger_url` in the manifest opens an interactive Chrome DevTools view served by Browserbase — handy for *watching* a long-running automation while the tracer captures the firehose to disk.\n\n## Filesystem layout\n\n```\n.o11y\u002F\u003Crun-id>\u002F\n  manifest.json                 run metadata: target, domains, started_at, stopped_at\n  index.jsonl                   one line per sample: {ts, screenshot, dom, url}\n  cdp\u002F\n    raw.ndjson                  full CDP firehose (one JSON object per line)\n    summary.json                {sessionId, duration, totalEvents, pages[]} — see shape below\n    network\u002F{requests,responses,finished,failed,websocket}.jsonl   session-wide buckets (always written)\n    console\u002F{logs,exceptions}.jsonl\n    runtime\u002Fall.jsonl\n    log\u002Fentries.jsonl\n    page\u002F{navigations,lifecycle,frames,dialogs,all}.jsonl\n    dom\u002Fall.jsonl                                                  (only if O11Y_DOMAINS includes DOM)\n    target\u002F{attached,detached}.jsonl\n    pages\u002F                      per-page slices, indexed by top-level frameNavigated boundaries\n      000\u002F                      first concrete page\n        url.txt                 the URL for this page\n        summary.json            this page's domains\u002Fnetwork\u002Ftiming block (same shape as a pages[] entry)\n        raw.jsonl               firehose scoped to this page\n        network\u002F, console\u002F, page\u002F, runtime\u002F, log\u002F, target\u002F, dom\u002F    same buckets, only non-empty files\n  screenshots\u002F\u003Ciso-ts>.png      one PNG per sample interval\n  dom\u002F\u003Ciso-ts>.html             one HTML dump per sample interval\n  browserbase\u002F                  added by bb-finalize.mjs (Browserbase runs only)\n    session.json                final `bb sessions get` snapshot (proxyBytes, status, ended_at, …)\n    logs.json                   `bb sessions logs` output (often [])\n    downloads.zip               `bb sessions downloads get` output (only if the session downloaded files)\n```\n\nWhen a run was started via `bb-capture.mjs`, `manifest.json` also carries a top-level `browserbase` block: `session_id`, `project_id`, `region`, `started_at`, `expires_at`, `keep_alive`, `debugger_url`.\n\n### Summary shape\n\n`cdp\u002Fsummary.json` is the entry point for any analysis: it has session-level totals and a `pages[]` array indexed by top-level `Page.frameNavigated`. Per-page entries are emitted in navigation order (page 0 = first concrete URL).\n\n```json\n{\n  \"sessionId\": \"45f28023-…\",\n  \"duration\": { \"startMs\": 1777312533000, \"endMs\": 1777312609000, \"totalMs\": 76000 },\n  \"totalEvents\": 420,\n  \"pages\": [\n    {\n      \"pageId\": 0,\n      \"url\": \"https:\u002F\u002Fexample.com\u002F\",\n      \"startMs\": 1777312533000, \"endMs\": 1777312538886, \"durationMs\": 5886,\n      \"eventCount\": 60,\n      \"domains\": {\n        \"Network\": { \"count\": 18, \"errors\": 1 },\n        \"Console\": { \"count\": 2 },\n        \"Page\":    { \"count\": 24 },\n        \"Runtime\": { \"count\": 13 }\n      },\n      \"network\": { \"requests\": 4, \"failed\": 1, \"byType\": { \"Document\": 2, \"Script\": 1, \"Other\": 1 } }\n    }\n  ]\n}\n```\n\n`startMs` \u002F `endMs` \u002F `durationMs` are wall-clock ms, derived from `manifest.started_at` plus the offset of each event's CDP monotonic timestamp. `domains[*]` only includes `errors`\u002F`warnings` keys when non-zero.\n\n### Drilling in with `query.mjs`\n\nFor interactive exploration, use `scripts\u002Fquery.mjs \u003Crun-id> \u003Ccommand>` instead of remembering paths:\n\n```bash\nnode scripts\u002Fquery.mjs my-run list                    # one-line table of pages\nnode scripts\u002Fquery.mjs my-run page 1                  # full summary for page 1\nnode scripts\u002Fquery.mjs my-run page 1 network\u002Ffailed   # cat failed.jsonl for page 1\nnode scripts\u002Fquery.mjs my-run errors                  # all errors across pages, attributed by pid\nnode scripts\u002Fquery.mjs my-run errors 2                # errors from page 2 only\nnode scripts\u002Fquery.mjs my-run hosts                   # top hosts by request count\nnode scripts\u002Fquery.mjs my-run host api.example.com    # all requests\u002Fresponses for a host\nnode scripts\u002Fquery.mjs my-run summary                 # full summary.json\n```\n\nBehind the scenes it just reads `cdp\u002Fsummary.json` and the `cdp\u002Fpages\u002F\u003Cpid>\u002F` tree — feel free to bypass it with raw `jq`\u002F`rg` once you know the shape.\n\n## Top traversal recipes\n\n```bash\n# All failed network requests (use jq -c to keep it line-delimited)\njq -c '.params' .o11y\u002F\u003Crun>\u002Fcdp\u002Fnetwork\u002Ffailed.jsonl\n\n# Find requests to a specific host\njq -c 'select(.params.request.url | test(\"api\\\\.example\\\\.com\"))' \\\n  .o11y\u002F\u003Crun>\u002Fcdp\u002Fnetwork\u002Frequests.jsonl\n\n# 4xx\u002F5xx responses\njq -c 'select(.params.response.status >= 400)\n       | {status: .params.response.status, url: .params.response.url}' \\\n  .o11y\u002F\u003Crun>\u002Fcdp\u002Fnetwork\u002Fresponses.jsonl\n\n# Console errors only\njq -c 'select(.params.type == \"error\")' .o11y\u002F\u003Crun>\u002Fcdp\u002Fconsole\u002Flogs.jsonl\n\n# Sequence of URLs visited\njq -r '.params.frame.url' .o11y\u002F\u003Crun>\u002Fcdp\u002Fpage\u002Fnavigations.jsonl\n\n# Find the screenshot taken closest to a timestamp (e.g., when an exception fired)\nls .o11y\u002F\u003Crun>\u002Fscreenshots\u002F | sort | awk -v t=20260427T1714123NZ '\n  $0 >= t { print; exit }'\n```\n\nSee **REFERENCE.md** for the full jq recipe library and a method-by-method bisect map. See **EXAMPLES.md** for end-to-end debug scenarios.\n\n## Best practices\n\n1. **Use `bb-capture.mjs` on Browserbase**: it enforces `--keep-alive`, fetches the connectUrl, captures the debugger URL, and stamps the manifest. Doing it manually invites mistakes.\n2. **Don't `--release` a session you don't own**: `bb-finalize.mjs --release` is for sessions *you* created with `--new`. When attaching to a production session via `bb-capture.mjs \u003Csession-id>`, run `bb-finalize.mjs` without `--release` so the original automation keeps running.\n3. **Order matters for remote**: on Browserbase, attach the main automation client before (or together with) the tracer, and create the session with `--keep-alive`. Otherwise the session ends as soon as the tracer's WS closes.\n4. **Don't poll faster than ~1s**: each sample opens a one-shot CDP connection and screenshots Chrome. 2s is a good default.\n5. **Pick domains deliberately**: defaults (`Network Console Runtime Log Page`) cover most debugging. Add `DOM` for DOM-tree mutations (very noisy) via `O11Y_DOMAINS=\"$O11Y_DOMAINS DOM\"`.\n6. **Use `--connect \u003Csession-id>` for the automation client on remote**, not a fresh `browse env remote` (which would create a new session each time).\n7. **Always run `stop-capture.mjs`**, even after a crash, so background processes don't linger and the manifest gets `stopped_at`.\n8. **Bisect once per run**: `bisect-cdp.mjs` is idempotent — it overwrites the per-bucket files from `raw.ndjson` each time.\n\n## Troubleshooting\n\n- **`browse cdp exited immediately`**: usually means the target is unreachable (wrong port) or the Browserbase session has already ended. For remote, verify with `bb sessions get \u003Cid>` — if `status` is `COMPLETED`, recreate with `--keep-alive` and attach automation first.\n- **Empty `raw.ndjson` even though processes are running**: confirm a CDP client is actually driving the page. The tracer only emits events that the browser generates, so an idle browser produces ~5 lines of attach\u002Fdiscover messages and nothing else.\n- **Screenshots all look identical**: check `index.jsonl` — if `url` doesn't change, the page hasn't navigated yet. The polling loop runs independently of the main automation's pace.\n- **Browserbase session ends mid-run**: it likely hit `--timeout`. Recreate with a higher timeout (`BB_SESSION_TIMEOUT=1800 node scripts\u002Fbb-capture.mjs --new ...`) or remove the timeout flag.\n- **`bb-capture.mjs \u003Cid>` says \"not RUNNING\"**: the session you tried to attach to ended. List candidates with `bb sessions list | jq '.[] | select(.status == \"RUNNING\")'` and try again.\n- **`browserbase\u002Flogs.json` is empty `[]`**: expected — `bb sessions logs` is sparse in practice. The CDP firehose in `cdp\u002Fraw.ndjson` is the source of truth.\n- **Where's the session recording (rrweb)?**: `bb sessions recording` is deprecated; this skill doesn't fetch it. Use the screenshot stream in `screenshots\u002F` and DOM dumps in `dom\u002F`.\n\nFor full reference, see [REFERENCE.md](REFERENCE.md).\nFor example debug runs, see [EXAMPLES.md](EXAMPLES.md).\n","# Browser Trace\n\nAttach a **second, read-only CDP client** to a browser session that is already being driven by your main automation. The trace records the full DevTools firehose to NDJSON, polls for screenshots and DOM dumps in parallel, and slices everything into a directory tree that bash tools can search.\n\nThis skill does **not** drive pages — it only listens. Pair it with the `browser` skill, `bb`, Stagehand, Playwright, or anything else that speaks CDP.\n\n## When to use\n\n- The user wants to debug a browser-automation run (failing form, missing element, hung navigation, JS exception).\n- The user has a running automation and wants to attach a trace mid-flight without restarting it.\n- The user wants to split a CDP firehose into network \u002F console \u002F DOM \u002F page buckets.\n- The user wants screenshots + DOM snapshots over time, joined to CDP events by timestamp.\n\nIf the user just wants to **drive** the browser, use the `browser` skill instead.\n\n## Setup check\n\n```bash\nnode --version                                  # require Node 18+\nwhich browse || npm install -g @browserbasehq\u002Fbrowse-cli@alpha\nwhich bb     || npm install -g @browserbasehq\u002Fcli   # only needed for Browserbase remote\nwhich jq     || true                                # optional — used only for ad-hoc querying\n```\n\nVerify `browse cdp` exists (it ships in 0.5.0-alpha-a4ca430+):\n\n```bash\nbrowse --help | grep -q \"^\\s*cdp \" || echo \"browse cdp not in this version — install @alpha\"\n```\n\n## How it works\n\nEvery Chrome DevTools target accepts **multiple concurrent CDP clients**. Your main automation is one client; this skill adds a second one that only enables observation domains (Network, Console, Runtime, Log, Page) and never sends action commands.\n\nThe tracer has three pieces:\n\n1. **Firehose**: `browse cdp \u003Ctarget>` streams every CDP event as one JSON object per line to `cdp\u002Fraw.ndjson`.\n2. **Sampler**: a polling loop calls `browse --ws \u003Ctarget> screenshot` and `browse --ws \u003Ctarget> get html body` on an interval (default 2s). `--ws` is one-shot and bypasses the daemon, so it doesn't fight the main automation.\n3. **Bisector**: after the run, `bisect-cdp.mjs` walks `raw.ndjson` once, slices it into per-bucket JSONL files keyed by CDP method, and additionally bisects per page using top-level `Page.frameNavigated` events as boundaries.\n\n## Quickstart\n\n### Local Chrome\n\n```bash\n# 1. Launch Chrome with a debugger port (any user-data-dir keeps it isolated).\n\"\u002FApplications\u002FGoogle Chrome.app\u002FContents\u002FMacOS\u002FGoogle Chrome\" \\\n  --remote-debugging-port=9222 \\\n  --user-data-dir=\u002Ftmp\u002Fchrome-o11y \\\n  about:blank &\n\n# 2. Start the tracer.\nnode scripts\u002Fstart-capture.mjs 9222 my-run\n\n# 3. Run your main automation against port 9222.\nbrowse env local 9222\nbrowse open https:\u002F\u002Fexample.com\n# ...whatever the run does...\n\n# 4. Stop and bisect.\nnode scripts\u002Fstop-capture.mjs my-run\nnode scripts\u002Fbisect-cdp.mjs my-run\n```\n\n### Browserbase remote\n\nTwo helpers wrap the platform-side bookkeeping: `bb-capture.mjs` creates or attaches to a session and starts the tracer; `bb-finalize.mjs` pulls platform artifacts (final session metadata, server logs, downloads) into the run dir at the end.\n\n> Browserbase ends a session as soon as its last CDP client disconnects. **Always create with `--keep-alive` and attach an automation client before (or together with) the tracer.** `bb-capture.mjs --new` does this for you.\n\n```bash\nexport BROWSERBASE_API_KEY=...\n\n# 1. Create a keep-alive session AND start the tracer in one step.\n#    Prints the session id, connectUrl prefix, and a live debugger URL you\n#    can open in a browser to watch the run interactively.\nnode scripts\u002Fbb-capture.mjs --new my-run\n\n# 2. Drive automation. bb-capture stamped the session id into the manifest.\nSID=$(jq -r .browserbase.session_id .o11y\u002Fmy-run\u002Fmanifest.json)\nbrowse --connect \"$SID\" open https:\u002F\u002Fexample.com\nbrowse --connect \"$SID\" open https:\u002F\u002Fnews.ycombinator.com\n\n# 3. Stop the tracer, bisect, then pull platform artifacts and release.\nnode scripts\u002Fstop-capture.mjs my-run\nnode scripts\u002Fbisect-cdp.mjs my-run\nnode scripts\u002Fbb-finalize.mjs my-run --release\n```\n\nAttaching to a session that's *already running* (e.g. one your production worker created) — `bb-capture.mjs` accepts a session id instead of `--new`:\n\n```bash\n# Pick a running session (filter client-side; bb sessions list has no --status flag)\nbb sessions list | jq -r '.[] | select(.status == \"RUNNING\") | .id'\n\nnode scripts\u002Fbb-capture.mjs \u003Csession-id> mid-flight-debug\n# ...tracer runs alongside the existing automation client; no disruption...\nnode scripts\u002Fstop-capture.mjs mid-flight-debug\nnode scripts\u002Fbisect-cdp.mjs mid-flight-debug\nnode scripts\u002Fbb-finalize.mjs mid-flight-debug   # without --release: leave the session running\n```\n\n#### What you get from the Browserbase platform\n\n`bb-capture.mjs` adds a `browserbase` block to `manifest.json` (session id, project, region, started_at, expires_at, debugger URL). `bb-finalize.mjs` writes:\n\n- `\u003Crun>\u002Fbrowserbase\u002Fsession.json` — final `bb sessions get` snapshot (proxyBytes, status, ended_at, viewport, …)\n- `\u003Crun>\u002Fbrowserbase\u002Flogs.json` — `bb sessions logs` output. **Often empty.** The CDP firehose in `cdp\u002Fraw.ndjson` is the source of truth; this is a side channel.\n- `\u003Crun>\u002Fbrowserbase\u002Fdownloads.zip` — files the session downloaded, if any (the script discards the empty 22-byte zip you get when there are none)\n\n`bb sessions recording` (rrweb session replay) is **deprecated** and isn't fetched. Use the screenshots + DOM dumps in `screenshots\u002F` and `dom\u002F` for visual ground truth.\n\nThe live `debugger_url` in the manifest opens an interactive Chrome DevTools view served by Browserbase — handy for *watching* a long-running automation while the tracer captures the firehose to disk.\n\n## Filesystem layout\n\n```\n.o11y\u002F\u003Crun-id>\u002F\n  manifest.json                 run metadata: target, domains, started_at, stopped_at\n  index.jsonl                   one line per sample: {ts, screenshot, dom, url}\n  cdp\u002F\n    raw.ndjson                  full CDP firehose (one JSON object per line)\n    summary.json                {sessionId, duration, totalEvents, pages[]} — see shape below\n    network\u002F{requests,responses,finished,failed,websocket}.jsonl   session-wide buckets (always written)\n    console\u002F{logs,exceptions}.jsonl\n    runtime\u002Fall.jsonl\n    log\u002Fentries.jsonl\n    page\u002F{navigations,lifecycle,frames,dialogs,all}.jsonl\n    dom\u002Fall.jsonl                                                  (only if O11Y_DOMAINS includes DOM)\n    target\u002F{attached,detached}.jsonl\n    pages\u002F                      per-page slices, indexed by top-level frameNavigated boundaries\n      000\u002F                      first concrete page\n        url.txt                 the URL for this page\n        summary.json            this page's domains\u002Fnetwork\u002Ftiming block (same shape as a pages[] entry)\n        raw.jsonl               firehose scoped to this page\n        network\u002F, console\u002F, page\u002F, runtime\u002F, log\u002F, target\u002F, dom\u002F    same buckets, only non-empty files\n  screenshots\u002F\u003Ciso-ts>.png      one PNG per sample interval\n  dom\u002F\u003Ciso-ts>.html             one HTML dump per sample interval\n  browserbase\u002F                  added by bb-finalize.mjs (Browserbase runs only)\n    session.json                final `bb sessions get` snapshot (proxyBytes, status, ended_at, …)\n    logs.json                   `bb sessions logs` output (often [])\n    downloads.zip               `bb sessions downloads get` output (only if the session downloaded files)\n```\n\nWhen a run was started via `bb-capture.mjs`, `manifest.json` also carries a top-level `browserbase` block: `session_id`, `project_id`, `region`, `started_at`, `expires_at`, `keep_alive`, `debugger_url`.\n\n### Summary shape\n\n`cdp\u002Fsummary.json` is the entry point for any analysis: it has session-level totals and a `pages[]` array indexed by top-level `Page.frameNavigated`. Per-page entries are emitted in navigation order (page 0 = first concrete URL).\n\n```json\n{\n  \"sessionId\": \"45f28023-…\",\n  \"duration\": { \"startMs\": 1777312533000, \"endMs\": 1777312609000, \"totalMs\": 76000 },\n  \"totalEvents\": 420,\n  \"pages\": [\n    {\n      \"pageId\": 0,\n      \"url\": \"https:\u002F\u002Fexample.com\u002F\",\n      \"startMs\": 1777312533000, \"endMs\": 1777312538886, \"durationMs\": 5886,\n      \"eventCount\": 60,\n      \"domains\": {\n        \"Network\": { \"count\": 18, \"errors\": 1 },\n        \"Console\": { \"count\": 2 },\n        \"Page\":    { \"count\": 24 },\n        \"Runtime\": { \"count\": 13 }\n      },\n      \"network\": { \"requests\": 4, \"failed\": 1, \"byType\": { \"Document\": 2, \"Script\": 1, \"Other\": 1 } }\n    }\n  ]\n}\n```\n\n`startMs` \u002F `endMs` \u002F `durationMs` are wall-clock ms, derived from `manifest.started_at` plus the offset of each event's CDP monotonic timestamp. `domains[*]` only includes `errors`\u002F`warnings` keys when non-zero.\n\n### Drilling in with `query.mjs`\n\nFor interactive exploration, use `scripts\u002Fquery.mjs \u003Crun-id> \u003Ccommand>` instead of remembering paths:\n\n```bash\nnode scripts\u002Fquery.mjs my-run list                    # one-line table of pages\nnode scripts\u002Fquery.mjs my-run page 1                  # full summary for page 1\nnode scripts\u002Fquery.mjs my-run page 1 network\u002Ffailed   # cat failed.jsonl for page 1\nnode scripts\u002Fquery.mjs my-run errors                  # all errors across pages, attributed by pid\nnode scripts\u002Fquery.mjs my-run errors 2                # errors from page 2 only\nnode scripts\u002Fquery.mjs my-run hosts                   # top hosts by request count\nnode scripts\u002Fquery.mjs my-run host api.example.com    # all requests\u002Fresponses for a host\nnode scripts\u002Fquery.mjs my-run summary                 # full summary.json\n```\n\nBehind the scenes it just reads `cdp\u002Fsummary.json` and the `cdp\u002Fpages\u002F\u003Cpid>\u002F` tree — feel free to bypass it with raw `jq`\u002F`rg` once you know the shape.\n\n## Top traversal recipes\n\n```bash\n# All failed network requests (use jq -c to keep it line-delimited)\njq -c '.params' .o11y\u002F\u003Crun>\u002Fcdp\u002Fnetwork\u002Ffailed.jsonl\n\n# Find requests to a specific host\njq -c 'select(.params.request.url | test(\"api\\\\.example\\\\.com\"))' \\\n  .o11y\u002F\u003Crun>\u002Fcdp\u002Fnetwork\u002Frequests.jsonl\n\n# 4xx\u002F5xx responses\njq -c 'select(.params.response.status >= 400)\n       | {status: .params.response.status, url: .params.response.url}' \\\n  .o11y\u002F\u003Crun>\u002Fcdp\u002Fnetwork\u002Fresponses.jsonl\n\n# Console errors only\njq -c 'select(.params.type == \"error\")' .o11y\u002F\u003Crun>\u002Fcdp\u002Fconsole\u002Flogs.jsonl\n\n# Sequence of URLs visited\njq -r '.params.frame.url' .o11y\u002F\u003Crun>\u002Fcdp\u002Fpage\u002Fnavigations.jsonl\n\n# Find the screenshot taken closest to a timestamp (e.g., when an exception fired)\nls .o11y\u002F\u003Crun>\u002Fscreenshots\u002F | sort | awk -v t=20260427T1714123NZ '\n  $0 >= t { print; exit }'\n```\n\nSee **REFERENCE.md** for the full jq recipe library and a method-by-method bisect map. See **EXAMPLES.md** for end-to-end debug scenarios.\n\n## Best practices\n\n1. **Use `bb-capture.mjs` on Browserbase**: it enforces `--keep-alive`, fetches the connectUrl, captures the debugger URL, and stamps the manifest. Doing it manually invites mistakes.\n2. **Don't `--release` a session you don't own**: `bb-finalize.mjs --release` is for sessions *you* created with `--new`. When attaching to a production session via `bb-capture.mjs \u003Csession-id>`, run `bb-finalize.mjs` without `--release` so the original automation keeps running.\n3. **Order matters for remote**: on Browserbase, attach the main automation client before (or together with) the tracer, and create the session with `--keep-alive`. Otherwise the session ends as soon as the tracer's WS closes.\n4. **Don't poll faster than ~1s**: each sample opens a one-shot CDP connection and screenshots Chrome. 2s is a good default.\n5. **Pick domains deliberately**: defaults (`Network Console Runtime Log Page`) cover most debugging. Add `DOM` for DOM-tree mutations (very noisy) via `O11Y_DOMAINS=\"$O11Y_DOMAINS DOM\"`.\n6. **Use `--connect \u003Csession-id>` for the automation client on remote**, not a fresh `browse env remote` (which would create a new session each time).\n7. **Always run `stop-capture.mjs`**, even after a crash, so background processes don't linger and the manifest gets `stopped_at`.\n8. **Bisect once per run**: `bisect-cdp.mjs` is idempotent — it overwrites the per-bucket files from `raw.ndjson` each time.\n\n## Troubleshooting\n\n- **`browse cdp exited immediately`**: usually means the target is unreachable (wrong port) or the Browserbase session has already ended. For remote, verify with `bb sessions get \u003Cid>` — if `status` is `COMPLETED`, recreate with `--keep-alive` and attach automation first.\n- **Empty `raw.ndjson` even though processes are running**: confirm a CDP client is actually driving the page. The tracer only emits events that the browser generates, so an idle browser produces ~5 lines of attach\u002Fdiscover messages and nothing else.\n- **Screenshots all look identical**: check `index.jsonl` — if `url` doesn't change, the page hasn't navigated yet. The polling loop runs independently of the main automation's pace.\n- **Browserbase session ends mid-run**: it likely hit `--timeout`. Recreate with a higher timeout (`BB_SESSION_TIMEOUT=1800 node scripts\u002Fbb-capture.mjs --new ...`) or remove the timeout flag.\n- **`bb-capture.mjs \u003Cid>` says \"not RUNNING\"**: the session you tried to attach to ended. List candidates with `bb sessions list | jq '.[] | select(.status == \"RUNNING\")'` and try again.\n- **`browserbase\u002Flogs.json` is empty `[]`**: expected — `bb sessions logs` is sparse in practice. The CDP firehose in `cdp\u002Fraw.ndjson` is the source of truth.\n- **Where's the session recording (rrweb)?**: `bb sessions recording` is deprecated; this skill doesn't fetch it. Use the screenshot stream in `screenshots\u002F` and DOM dumps in `dom\u002F`.\n\nFor full reference, see [REFERENCE.md](REFERENCE.md).\nFor example debug runs, see [EXAMPLES.md](EXAMPLES.md).\n",{"name":5,"license":15,"description":7,"allowed-tools":25,"compatibility":26},"Bash, Read, Grep","Requires Node 18+, the browse CLI (`npm install -g @browserbasehq\u002Fbrowse-cli@alpha` or 0.5.1+ once released — `browse cdp` is alpha-tagged), and optionally `jq` for ad-hoc querying of the bisected JSONL files. For remote Browserbase sessions, also requires the `bb` CLI (`npm install -g @browserbasehq\u002Fcli`) and `BROWSERBASE_API_KEY`. The skill scripts themselves use only the Node standard library — no `npm install` step.","main","4ac29a24db9fc8bba16c61b1cdaa3f5058934247","skills\u002Fbrowser-trace","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills","https:\u002F\u002Fgithub.com\u002FJOHNadonis","Java\u002FGo\u002FC++，student majoring in computer.","2026-10-26 22:44:45",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add JOHNadonis\u002Fclaude-code-skills --skill browser-trace",{"tool":40,"command":41},"bunx","bunx skills add JOHNadonis\u002Fclaude-code-skills --skill browser-trace",{"tool":43,"command":44},"pnpm","pnpm dlx skills add JOHNadonis\u002Fclaude-code-skills --skill browser-trace","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbrowser-trace\u002FSKILL.md",true,[48,54,59,63,67,73,77,81,85,89,93,97],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"EXAMPLES.md","REFERENCE","参考文档",8404,"https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbrowser-trace\u002FEXAMPLES.md",{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":16},"LICENSE.txt","LICENSE","许可证",1074,{"path":60,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":61,"sourceHtmlUrl":62},"package.json",91,"https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbrowser-trace\u002Fpackage.json",{"path":64,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":65,"sourceHtmlUrl":66},"REFERENCE.md",20023,"https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbrowser-trace\u002FREFERENCE.md",{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"scripts\u002Fbb-capture.mjs","SCRIPT","脚本",3751,"https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbrowser-trace\u002Fscripts\u002Fbb-capture.mjs",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"scripts\u002Fbb-finalize.mjs",3162,"https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbrowser-trace\u002Fscripts\u002Fbb-finalize.mjs",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"scripts\u002Fbisect-cdp.mjs",7833,"https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbrowser-trace\u002Fscripts\u002Fbisect-cdp.mjs",{"path":82,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Flib.mjs",4304,"https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbrowser-trace\u002Fscripts\u002Flib.mjs",{"path":86,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":87,"sourceHtmlUrl":88},"scripts\u002Fquery.mjs",8809,"https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbrowser-trace\u002Fscripts\u002Fquery.mjs",{"path":90,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":91,"sourceHtmlUrl":92},"scripts\u002Fsnapshot-loop.mjs",2381,"https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbrowser-trace\u002Fscripts\u002Fsnapshot-loop.mjs",{"path":94,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":95,"sourceHtmlUrl":96},"scripts\u002Fstart-capture.mjs",2954,"https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbrowser-trace\u002Fscripts\u002Fstart-capture.mjs",{"path":98,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":99,"sourceHtmlUrl":100},"scripts\u002Fstop-capture.mjs",1526,"https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fbrowser-trace\u002Fscripts\u002Fstop-capture.mjs",[102,110,118,127,134,142],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":106,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":20},"01M7317QQ43D8KSNYCMQ9YSVV4","youtube-clipper","YouTube 视频智能剪辑工具。下载视频和字幕，AI 分析生成精细章节（几分钟级别）， 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频，并生成总结文案。 使用场景：当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词：视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":114,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":20},"01M7316R2JBWWT24DEVFGVZ1WW","yao-meta-skill","Create, refactor, evaluate, and package agent skills from workflows, prompts, transcripts, docs, or notes. Use when asked to create a skill, turn a repeated process into a reusable skill, improve an existing skill, add evals, or package a skill for team reuse.","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyao-meta-skill\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyao-meta-skill\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":122,"licenseFileUrl":123,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":20},"01M7314XDMF1VN8H6GE0RXWX3V","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":20},"01M73142X503419G1YEBQZVRWJ","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-react-best-practices\u002FSKILL.md",[],[],{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":138,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":20},"01M7313E33KEXPQSJ6JBSW7CT5","ui-test","AI-powered adversarial UI testing via the browse CLI. Analyzes git diffs to test only what changed, or explores the full app to find bugs. Tests functional correctness, accessibility, responsive layout, and UX heuristics. Use when the user asks to test UI changes, QA a pull request, audit accessibility, or run exploratory testing. Supports local browser (localhost) and remote Browserbase (deployed sites).","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fui-test\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Fui-test\u002FSKILL.md",[],[],{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":122,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":20},"01M73123QNJHSG1XT7XJPQD0HK","technical-seo-checker","Use when the user asks to \"technical SEO audit\", \"check page speed\", \"crawl issues\", \"Core Web Vitals\", \"site indexing problems\", \"my site is slow\", \"Google cannot crawl my site\", \"mobile issues\", or \"indexing problems\". Performs technical SEO audits covering site speed, crawlability, indexability, mobile-friendliness, security, and structured data. Identifies technical issues preventing optimal search performance. For content and heading element issues, see on-page-seo-auditor. For link architecture, see internal-linking-optimizer.","https:\u002F\u002Fgithub.com\u002FJOHNadonis\u002Fclaude-code-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftechnical-seo-checker\u002FSKILL.md",[],[]]