[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BTDY1VTMCPZ1RVKR0CWCF1":3,"skill-same:01M7BTDY1VTMCPZ1RVKR0CWCF1":51},{"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":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7BTDY1VTMCPZ1RVKR0CWCF1","autobrowse",null,"Self-improving browser automation via the auto-research loop. Iteratively runs a browsing task, reads the trace, and improves the navigation skill (strategy.md) until it reliably passes. Supports parallel runs across multiple tasks using sub-agents. Use when you want to build or improve browser automation skills for specific website tasks.","om-scogo\u002Fskillsh-scraper","om-scogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160466840?v=4","01M79AWB6DFVCQ7RK70CS34B96","Om Achrekar","01M79AWB6ZM9SKR8KDH1WSSM22",0,"MIT","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fbrowserbase-skills\u002Fautobrowse\u002Fskills\u002Fautobrowse\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: autobrowse\ndescription: Self-improving browser automation via the auto-research loop. Iteratively runs a browsing task, reads the trace, and improves the navigation skill (strategy.md) until it reliably passes. Supports parallel runs across multiple tasks using sub-agents. Use when you want to build or improve browser automation skills for specific website tasks.\nlicense: MIT\ncompatibility: \"Requires Node.js 18+, browse CLI, and ANTHROPIC_API_KEY. Run from the autobrowse app directory.\"\nallowed-tools: Bash Read Write Edit Glob Grep Agent\nmetadata:\n  author: browserbase\n  homepage: https:\u002F\u002Fgithub.com\u002Fbrowserbase\u002Fskills\n---\n\n# AutoBrowse — Self-Improving Browser Skill\n\nBuild reliable browser automation skills through iterative experimentation. An inner agent browses the site (`evaluate.ts`). You — the outer agent — read what happened and improve the instructions (`strategy.md`). Repeat until it passes consistently.\n\n## Entry Points\n\nInvocation is flexible — both explicit flags and free-form natural language work:\n\n```\n\u002Fautobrowse --task google-flights\n\u002Fautobrowse --task google-flights --iterations 10 --env remote\n\u002Fautobrowse --task google-flights --browser-trace\n\u002Fautobrowse --tasks google-flights,amazon-add-to-cart\n\u002Fautobrowse --all\n\n# Also fine — parse freely:\n\u002Fautobrowse https:\u002F\u002Fflights.google.com\u002F\n\u002Fautobrowse book a flight on delta.com\n\u002Fautobrowse fix the existing google-flights skill\n```\n\n`--browser-trace` (default off, remote-only): pairs each iteration with the sibling `browser-trace` skill — wraps the inner agent in a CDP capture for per-page network\u002Fconsole\u002Fpage-lifecycle evidence. Implies `--env remote`; errors if combined with `--env local`. Requires the sibling `browser-trace` skill present at `${CLAUDE_SKILL_DIR}\u002F..\u002Fbrowser-trace\u002F`, and the `BROWSERBASE_API_KEY` env var.\n\nWhen the user drops a URL or free-form instruction instead of `--task \u003Cname>`:\n- If an existing task in `${WORKSPACE}\u002Ftasks\u002F` clearly matches the site\u002Fintent, use it.\n- Otherwise, pick a short kebab-case name, create `${WORKSPACE}\u002Ftasks\u002F\u003Cname>\u002Ftask.md` from `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fexample-task.md`, fill in the URL\u002Fgoal based on what the user said, and proceed. Tell the user the chosen name in one line.\n\n---\n\n## How to run\n\n### Step 1 — Parse arguments and orient\n\nCheck what was passed:\n- `--task \u003Cname>` → single task mode\n- `--tasks a,b,c` or `--all` → multi-task mode (spawn sub-agents)\n- `--iterations N` → how many evaluate → improve cycles (default: 5)\n- `--env local|remote` → browser environment (default: local; use remote for bot-protected sites)\n- `--browser-trace` → opt in to the browser-trace integration (default off). Implies `--env remote`. If `--env local --browser-trace` are both passed explicitly, error with: `browser-trace requires Browserbase; drop --env local or drop --browser-trace.`\n\nIf the user passed free-form text instead, map it to one of the above before continuing.\n\n### Step 2 — Set up the workspace\n\nAll training artifacts (task definitions, strategy iterations, traces, reports) live in a workspace directory in the **current working directory** — NOT inside `~\u002F.claude\u002Fskills\u002F`. This keeps the inner agent's file writes out of Claude's home dir and away from permission friction.\n\nDefault workspace: `${CWD}\u002Fautobrowse\u002F`\n\n```bash\nmkdir -p .\u002Fautobrowse\u002Ftasks .\u002Fautobrowse\u002Ftraces .\u002Fautobrowse\u002Freports\n```\n\nIf the task directory (`.\u002Fautobrowse\u002Ftasks\u002F\u003Ctask>\u002Ftask.md`) doesn't exist yet, scaffold it:\n\n```bash\nmkdir -p .\u002Fautobrowse\u002Ftasks\u002F\u003Ctask>\ncp ${CLAUDE_SKILL_DIR}\u002Freferences\u002Fexample-task.md .\u002Fautobrowse\u002Ftasks\u002F\u003Ctask>\u002Ftask.md\n# Then edit task.md to describe the URL, inputs, steps, and expected JSON output\n```\n\nThe skill source at `${CLAUDE_SKILL_DIR}` stays read-only — only `.\u002Fautobrowse\u002F` in CWD gets written to during training. Graduation (final step) writes a single file to `~\u002F.claude\u002Fskills\u002F\u003Ctask>\u002FSKILL.md`.\n\nList available tasks:\n```bash\nls .\u002Fautobrowse\u002Ftasks\u002F\n```\n\n### Step 3 — Multi-task: spawn parallel sub-agents\n\nIf running multiple tasks, use the Agent tool to spawn one sub-agent per task simultaneously. Each sub-agent receives a self-contained prompt to run the full autobrowse loop for its task:\n\n> \"You are running the autobrowse skill for task `\u003Cname>`. Workspace: `\u003Cabsolute-path-to-workspace>` (e.g. `\u002Fpath\u002Fto\u002Fproject\u002Fautobrowse`). Run `\u003CN>` iterations of: evaluate → read trace → improve strategy.md → repeat. Use `--env \u003Cenv>`. Pass `--workspace \u003Cworkspace>` to every evaluate.mjs invocation. If the parent invocation used `--browser-trace`, you MUST use the traced-path block of the SKILL.md loop for every iteration (pre-create session, attach bb-capture, pass `--connect-url` to evaluate.mjs, stop+bisect, release) — do not fall back to the default single-command path. Follow the autobrowse loop instructions exactly.\n>\n> When graduating, install the skill to `~\u002F.claude\u002Fskills\u002F\u003Ctask-name>\u002FSKILL.md` with proper agentskills frontmatter (name + description). Do not just copy strategy.md — write a self-contained skill.\n>\n> At the end, output a structured summary with: task name, pass\u002Ffail on final run, total cumulative cost, iterations completed, per-iteration table (iter number, turns, cost, status, hypothesis tested), and 2-3 bullet key learnings.\"\n\nSpawn all sub-agents in parallel, wait for all to complete, then collect their summaries and write the session report.\n\n**For single task**, skip this step and run the loop directly below.\n\n---\n\n## The Loop (run this for each task)\n\n### Iteration start\n\nCheck that `.\u002Fautobrowse\u002Ftasks\u002F\u003Ctask>\u002Ftask.md` exists (scaffold it from the template if not — see Step 2). `strategy.md` is auto-created empty by the harness on first run.\n\n### Requirements\n\n- `ANTHROPIC_API_KEY` must be in the environment (or in a `.env` file in CWD — `evaluate.mjs` auto-loads it). If missing, the harness prints a clear error and exits; don't hunt for keys in other paths.\n\n### Run the inner agent\n\n**Default path (no `--browser-trace`)** — single command, no orchestration:\n\n```bash\nnode ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fevaluate.mjs --task \u003Ctask-name> --workspace .\u002Fautobrowse\n# or for bot-protected sites:\nnode ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fevaluate.mjs --task \u003Ctask-name> --workspace .\u002Fautobrowse --env remote\n```\n\nThis runs the browser session and writes a full trace to `.\u002Fautobrowse\u002Ftraces\u002F\u003Ctask>\u002Flatest\u002F`.\n\n**Traced path (`--browser-trace`, remote only)** — the outer harness pre-creates a Browserbase session, attaches `bb-capture` as a passive observer, and passes the session's `connectUrl` to `evaluate.mjs` so every inner `browse` call uses `--cdp $connectUrl --session autobrowse-main` (the canonical browser-trace pattern that gives observers full Network\u002FConsole events). Run this block once per iteration with `$N` set to the 1-indexed iteration number:\n\n```bash\n# Preflight — fail fast if browser-trace isn't installed alongside autobrowse.\nBT_DIR=\"${CLAUDE_SKILL_DIR}\u002F..\u002Fbrowser-trace\"\nif [ ! -f \"$BT_DIR\u002Fscripts\u002Fbb-capture.mjs\" ]; then\n  echo \"ERROR: --browser-trace requires the browser-trace skill at $BT_DIR.\" >&2\n  echo \"Install it by cloning github.com\u002Fbrowserbase\u002Fskills and copying skills\u002Fbrowser-trace\u002F\" >&2\n  echo \"into the same parent directory as autobrowse (e.g. ~\u002F.claude\u002Fskills\u002Fbrowser-trace\u002F).\" >&2\n  exit 1\nfi\n\n# a. SESSION SETUP — pre-create the keep-alive session and derive its connectUrl\nsid=$(browse cloud sessions create --keep-alive --verified --proxies \\\n  | node -e \"let s='';process.stdin.on('data',c=>s+=c).on('end',()=>process.stdout.write(JSON.parse(s).id))\")\nconnect_url=$(browse cloud sessions get \"$sid\" \\\n  | node -e \"let s='';process.stdin.on('data',c=>s+=c).on('end',()=>process.stdout.write(JSON.parse(s).connectUrl))\")\n\nRUN_ID=\"run-$(printf '%03d' \"$N\")\"\nTRACE_ROOT=\".\u002Fautobrowse\u002Ftraces\u002F\u003Ctask-name>\u002F$RUN_ID\"\nmkdir -p \"$TRACE_ROOT\"\nexport O11Y_ROOT=\"$TRACE_ROOT\u002F.o11y\"   # park browser-trace output inside the autobrowse run dir\nexport O11Y_RUN_ID=\"$RUN_ID\"           # tells the browse CLI which run dir to write descriptors.ndjson into\n\n# b. ATTACH BROWSER-TRACE — passive observer; runs in background\nnode ${CLAUDE_SKILL_DIR}\u002F..\u002Fbrowser-trace\u002Fscripts\u002Fbb-capture.mjs \"$sid\" \"$RUN_ID\" &\nsleep 2\n\n# c. RUN AUTOBROWSE — connectUrl flag tells evaluate.mjs to inject --cdp\u002F--session\n#    into every inner browse call. The inner agent never sees --remote.\nnode ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fevaluate.mjs \\\n  --task \u003Ctask-name> --workspace .\u002Fautobrowse --env remote \\\n  --connect-url \"$connect_url\" --run-number \"$N\"\n\n# d. STOP + BISECT + UNIFY — order matters; bisect needs the session to still\n#    exist, and unify-trace joins the bisect output with autobrowse's trace.json\n#    into a single time-ordered NDJSON the outer agent reads first each iter.\nnode ${CLAUDE_SKILL_DIR}\u002F..\u002Fbrowser-trace\u002Fscripts\u002Fstop-capture.mjs \"$RUN_ID\"\nnode ${CLAUDE_SKILL_DIR}\u002F..\u002Fbrowser-trace\u002Fscripts\u002Fbisect-cdp.mjs \"$RUN_ID\"\nnode ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Funify-trace.mjs \\\n  --trace-dir \"$TRACE_ROOT\" \\\n  --o11y-dir \"$O11Y_ROOT\u002F$RUN_ID\"\n\n# e. RELEASE\nbrowse cloud sessions update \"$sid\" --status REQUEST_RELEASE\n```\n\nThis writes the inner-agent trace to `.\u002Fautobrowse\u002Ftraces\u002F\u003Ctask-name>\u002Flatest\u002F` and the CDP bisect to `.\u002Fautobrowse\u002Ftraces\u002F\u003Ctask-name>\u002Flatest\u002F.o11y\u002F\u003Crun-id>\u002F`. The traced `browse` CLI also emits per-command rich node descriptors to `.o11y\u002F\u003Crun-id>\u002Fcdp\u002Fdescriptors.ndjson` (one JSON object per page-driving call: target tag\u002Fid\u002Frole\u002FaccessibleName\u002Fattributes\u002Fxpath\u002Fbounding-rect). The descriptors file feeds downstream codegen; it is **not** required for hypothesis formation — skip it when reading the trace.\n\n### Read the trace\n\n```bash\ncat .\u002Fautobrowse\u002Ftraces\u002F\u003Ctask-name>\u002Flatest\u002Fsummary.md\n```\n\nThe summary has duration, cost, turns, the decision log, and the final JSON output.\n\nIf the agent failed or got stuck, look deeper:\n- Read `.\u002Fautobrowse\u002Ftraces\u002F\u003Ctask-name>\u002Flatest\u002Ftrace.json` — search for the failure turn\n- Read screenshots around the failure point with the Read tool\n\n**When `--browser-trace` was used — start with `unified-events.jsonl`.** The harness joins the agent's turn log and the browser's CDP firehose into one time-ordered NDJSON stream at the run root. One file, source-tagged (`source: \"agent\" | \"browser\"`), interleaved by wall-clock timestamp. Skim it top-to-bottom; the failure cause is usually one or two adjacent lines (the agent issued command X, the browser responded with Y).\n\n```bash\ncat .\u002Fautobrowse\u002Ftraces\u002F\u003Ctask-name>\u002Flatest\u002Funified-events.jsonl\n```\n\nThe structured files (`trace.json`, `.o11y\u002F\u003Crun-id>\u002Fcdp\u002F*`) are **also agent-consumable as drill-downs** when the unified stream points at something you need more of:\n\n| Need | Drill-down file or command |\n|---|---|\n| Per-page totals + timing (events, network counts, errors by page) | `.o11y\u002F\u003Crun-id>\u002Fcdp\u002Fsummary.json` |\n| All failed network requests in one place | `.o11y\u002F\u003Crun-id>\u002Fcdp\u002Fnetwork\u002Ffailed.jsonl` |\n| Full console exception payloads (stacktraces, etc.) | `.o11y\u002F\u003Crun-id>\u002Fcdp\u002Fconsole\u002Fexceptions.jsonl` |\n| Per-page slice (only events on page N) | `.o11y\u002F\u003Crun-id>\u002Fcdp\u002Fpages\u002F\u003Cpid>\u002F` |\n| Full reasoning text \u002F untruncated tool outputs for a specific turn | `trace.json` (filter by `turn === N`) |\n| Ad-hoc grouped query (e.g. top hosts, errors-by-page) | `O11Y_ROOT=.\u002Fautobrowse\u002Ftraces\u002F\u003Ctask-name>\u002Flatest\u002F.o11y node ${CLAUDE_SKILL_DIR}\u002F..\u002Fbrowser-trace\u002Fscripts\u002Fquery.mjs \u003Crun-id> \u003Ccmd>` |\n\nThe unified stream is the default; drill into structured files only when you need a grouped query, a full-text payload, or filtering the stream can't give you.\n\n### Form one hypothesis\n\nFind the exact turn where things went wrong. What single heuristic would have prevented it?\n\nUnder `--browser-trace`, the hypothesis must cite a **specific event from `unified-events.jsonl`** (line number or timestamp) — or name the drill-down file if you had to descend into one. This keeps updates evidence-grounded rather than vibes-driven. A hypothesis based only on the agent's commands might say \"the click didn't work\"; grounded in the unified stream, it can say \"line 47 of unified-events.jsonl: `browse open` was followed by `Network.responseReceived` status 403 on `\u002Fapi\u002Fcheckout` — switch to `--verified --proxies`.\"\n\nExamples:\n- \"After clicking the dropdown, wait 1s — options animate in before they're clickable\"\n- \"Navigate directly to `\u002Fpay-invoice\u002F` — skip the landing page entirely\"\n- \"Use `browse fill #field_3 value` not `browse type` — this field clears on focus\"\n- \"The page shows a spinner at turn 8 — add `browse wait timeout 2000` before snapshot\"\n- (with `--browser-trace`) \"At line 47 of unified-events.jsonl, 3 consecutive `Network.responseReceived` events on `\u002Fapi\u002Favailability` returned 403 right after `browse open` — the site is fingerprinting; the next iter needs `--verified --proxies`.\"\n\n### Update strategy.md\n\nEdit `.\u002Fautobrowse\u002Ftasks\u002F\u003Ctask-name>\u002Fstrategy.md`. Keep everything that worked. Fix the specific failure. Add a concrete heuristic.\n\nGood strategies have:\n- **Fast path**: direct URL or shortcuts to skip exploration\n- **Step-by-step workflow**: exact sequence with timing notes\n- **Site-specific knowledge**: selector IDs, form field names, success indicators\n- **Failure recovery**: what to do when X goes wrong\n\n### Judge the result\n\nRead the new summary. Did it pass? Make clear progress?\n- **Pass or progress** → keep, next iteration\n- **No progress or regression** → revert strategy.md to the previous version and try a different hypothesis\n\n### Generate a runnable script (optional)\n\nOnce the task has converged, you can produce a deterministic, runnable script\nin one or more frameworks via `scripts\u002Fcodegen.mjs`. This is one shot of an\nLLM call per framework, cached by content hash, with optional verify-against-\nfresh-session and rewrite-on-failure.\n\n```bash\nnode ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcodegen.mjs \\\n  --task \u003Cname> \\\n  --workspace .\u002Fautobrowse \\\n  --frameworks playwright,stagehand \\\n  --verify\n```\n\nEach framework gets its own subdirectory under `tasks\u002F\u003Cname>\u002F\u003Cframework>\u002F`\nwith the emitted script and a self-contained scaffold (`package.json`,\n`tsconfig.json`). The directory is runnable standalone with\n`cd tasks\u002F\u003Cname>\u002Fplaywright && npm install && npx tsx \u003Cname>.ts` — the only\nruntime requirement is `BROWSERBASE_API_KEY` (plus `ANTHROPIC_API_KEY` for\nthe Stagehand target).\n\nBuiltin frameworks: `playwright`, `stagehand`. Add a custom framework with\n`--prompt-template \u003Cpath> --frameworks custom` (and provide your own runner\nor pass `--no-verify`).\n\nCommon flags:\n\n| Flag | Purpose |\n|---|---|\n| `--frameworks a,b,...` | Comma-separated; default `playwright` |\n| `--verify` \u002F `--no-verify` | Run the produced script against a fresh BB session; default `--verify` |\n| `--max-retries N` | Rewrite-on-verify-failure cap; default 2 |\n| `--cache-only` | Error if cache miss (CI-friendly) |\n| `--force` | Bust the cache |\n| `--dry-run` | Estimate prompt size + cost; don't call the LLM |\n| `--run \u003Cid>` | Force a specific `run-NNN` (default: latest passing) |\n\nOutput is one JSON line per framework on stdout. Non-zero exit if any\nselected framework's final state is `passed: false`.\n\nSee `references\u002Fplaywright-cdp-bridge.md` for the canonical\n`connectOverCDP` patterns the emitted scripts follow.\n\n### After all iterations — publish if ready\n\nIf the task passed on 2+ of the last 3 iterations **or has reached the max iteration limit**, install it as a Claude Code skill. **Do not just copy strategy.md** — the skill must be self-contained and useful to someone who has never seen this codebase. If graduating at max iterations without a clean pass, note the known failure point but still document everything learned.\n\nInstall by writing to `~\u002F.claude\u002Fskills\u002F\u003Ctask-name>\u002FSKILL.md`:\n\n```bash\nmkdir -p ~\u002F.claude\u002Fskills\u002F\u003Ctask-name>\n```\n\nUse this structure for the SKILL.md:\n\n```markdown\n---\nname: \u003Ctask-name>\ndescription: \u003C1-2 sentences describing what this skill does and when to use it. Include trigger keywords.>\n---\n\n# \u003CTask Title> — Browser Skill\n\n## Purpose\n\u003C1-2 sentences: what this automates and why it exists.>\n\n## When to Use\n\u003CWhen should someone reach for this skill.>\n\n## Browse CLI Reference\nThe inner agent uses the `browse` CLI. Key commands for this task:\n- `browse stop` — kill existing session (always run before switching to remote)\n- `browse open \u003Curl> --remote` — start a fresh Browserbase cloud session and navigate\n- `browse open \u003Curl> --local` — start a clean local browser and navigate\n- `browse tab new \u003Curl>` — open URL in a new tab\n- `browse wait load` — wait for page to finish loading\n- `browse wait timeout \u003Cms>` — wait a fixed amount of time for spinners or animations\n- `browse wait selector \"\u003Cselector>\"` — wait for an element to become visible\n- `browse get title` — verify you're on the right page\n- `browse get text body` — extract all visible text (preferred for content extraction)\n- `browse snapshot` — get accessibility tree; each node has a ref in `[X-Y]` format (e.g. `[0-5]`, `[2-147]`)\n- `browse click [X-Y]` — click element by ref from the latest snapshot (include the brackets)\n\n**Never use `--session \u003Cname>` flags in SKILL.md.** Named sessions are a parallel-run workaround — they contaminate skills with infrastructure concerns. Skills must work in isolation with the default session.\n\n## Workflow\n\n### Step 1 — Start session\n\u003Cexact browse commands in order>\n\n### Step 2 — Navigate\n\u003Cexact URL and verification steps>\n\n### Step 3 — Extract\n\u003Cexact extraction commands>\n\n### Step 4 — Output\n\u003Cwhat JSON to emit, referencing the schema below>\n\n## Site-Specific Gotchas\n\u003CBullet list of every hard-won heuristic from the iterations. This is the core value of the skill.>\n\n## Failure Recovery\n\u003CWhat to do when navigation fails, session is contaminated, or extraction returns garbage>\n\n## Expected Output\n```json\n\u003Cpaste the exact expected output schema from task.md>\n```\n```\n\nAfter writing the SKILL.md, confirm it's installed:\n```bash\nls ~\u002F.claude\u002Fskills\u002F\u003Ctask-name>\u002FSKILL.md\n```\n\nThe skill is now available as `\u002F\u003Ctask-name>` in Claude Code.\n\n---\n\n## Final report (multi-task mode)\n\nAfter all sub-agents complete, print a markdown table:\n\n| Task | Iterations | Final Status | Graduated | Cost |\n|------|-----------|--------------|-----------|------|\n| google-flights | 5 | ✅ pass | yes | $0.42 |\n| amazon-add-to-cart | 5 | ❌ fail | no | $1.20 |\n\nThen write a persistent session report to `.\u002Fautobrowse\u002Freports\u002F` so there's a durable record of the run inside the workspace:\n\n```bash\nmkdir -p .\u002Fautobrowse\u002Freports\n```\n\nWrite the file `.\u002Fautobrowse\u002Freports\u002FYYYY-MM-DD-HH-MM-\u003Ctasks>.md` with:\n\n```markdown\n# AutoBrowse Session Report\n**Date:** \u003CISO date>\n**Tasks:** \u003Ccomma-separated list>\n**Environment:** remote|local\n**Total cost:** $X.XX\n\n## Results\n\n| Task | Iterations | Pass Rate | Final Status | Graduated | Cost |\n|------|-----------|-----------|--------------|-----------|------|\n| ... | ... | X\u002F5 | ✅\u002F❌ | yes\u002Fno | $X.XX |\n\n## Per-Task Learnings\n\n### \u003Ctask-name>\n- **Key insight 1:** \u003Cwhat the agent learned>\n- **Key insight 2:** \u003Canother heuristic>\n- **Failure mode fixed:** \u003Cwhat was failing and how it was resolved>\n\n## Iteration Log\n\n### \u003Ctask-name>\n| Iter | Turns | Cost | Status | Hypothesis tested |\n|------|-------|------|--------|-------------------|\n| 1 | 79 | $18.75 | ❌ fail | baseline |\n| 2 | 9 | $0.26 | ✅ pass | session contamination fix |\n| ... | ... | ... | ... | ... |\n```\n\n---\n\n## Rules\n\n- **Only edit `strategy.md`** — never touch `task.md` (unless creating it from the template) or `evaluate.mjs`\n- **Stay in the workspace** — all training writes go to `.\u002Fautobrowse\u002F`, never to `~\u002F.claude\u002Fskills\u002Fautobrowse\u002F`. The skill source is read-only.\n- **One hypothesis per iteration** — test one change at a time\n- **Build on wins** — keep what worked, add to it\n- **Trust the trace** — the inner agent shows exactly what it saw and did\n- **Graduate to `~\u002F.claude\u002Fskills\u002F`** — the only file you write there is the final graduated `SKILL.md`\n- **Don't release before bisecting** — under `--browser-trace`, the order at the end of each iteration is non-negotiable: `stop-capture` → `bisect-cdp` → `browse cloud sessions update REQUEST_RELEASE`. Bisect depends on the session still existing when the trace stops.\n","# AutoBrowse — Self-Improving Browser Skill\n\nBuild reliable browser automation skills through iterative experimentation. An inner agent browses the site (`evaluate.ts`). You — the outer agent — read what happened and improve the instructions (`strategy.md`). Repeat until it passes consistently.\n\n## Entry Points\n\nInvocation is flexible — both explicit flags and free-form natural language work:\n\n```\n\u002Fautobrowse --task google-flights\n\u002Fautobrowse --task google-flights --iterations 10 --env remote\n\u002Fautobrowse --task google-flights --browser-trace\n\u002Fautobrowse --tasks google-flights,amazon-add-to-cart\n\u002Fautobrowse --all\n\n# Also fine — parse freely:\n\u002Fautobrowse https:\u002F\u002Fflights.google.com\u002F\n\u002Fautobrowse book a flight on delta.com\n\u002Fautobrowse fix the existing google-flights skill\n```\n\n`--browser-trace` (default off, remote-only): pairs each iteration with the sibling `browser-trace` skill — wraps the inner agent in a CDP capture for per-page network\u002Fconsole\u002Fpage-lifecycle evidence. Implies `--env remote`; errors if combined with `--env local`. Requires the sibling `browser-trace` skill present at `${CLAUDE_SKILL_DIR}\u002F..\u002Fbrowser-trace\u002F`, and the `BROWSERBASE_API_KEY` env var.\n\nWhen the user drops a URL or free-form instruction instead of `--task \u003Cname>`:\n- If an existing task in `${WORKSPACE}\u002Ftasks\u002F` clearly matches the site\u002Fintent, use it.\n- Otherwise, pick a short kebab-case name, create `${WORKSPACE}\u002Ftasks\u002F\u003Cname>\u002Ftask.md` from `${CLAUDE_SKILL_DIR}\u002Freferences\u002Fexample-task.md`, fill in the URL\u002Fgoal based on what the user said, and proceed. Tell the user the chosen name in one line.\n\n---\n\n## How to run\n\n### Step 1 — Parse arguments and orient\n\nCheck what was passed:\n- `--task \u003Cname>` → single task mode\n- `--tasks a,b,c` or `--all` → multi-task mode (spawn sub-agents)\n- `--iterations N` → how many evaluate → improve cycles (default: 5)\n- `--env local|remote` → browser environment (default: local; use remote for bot-protected sites)\n- `--browser-trace` → opt in to the browser-trace integration (default off). Implies `--env remote`. If `--env local --browser-trace` are both passed explicitly, error with: `browser-trace requires Browserbase; drop --env local or drop --browser-trace.`\n\nIf the user passed free-form text instead, map it to one of the above before continuing.\n\n### Step 2 — Set up the workspace\n\nAll training artifacts (task definitions, strategy iterations, traces, reports) live in a workspace directory in the **current working directory** — NOT inside `~\u002F.claude\u002Fskills\u002F`. This keeps the inner agent's file writes out of Claude's home dir and away from permission friction.\n\nDefault workspace: `${CWD}\u002Fautobrowse\u002F`\n\n```bash\nmkdir -p .\u002Fautobrowse\u002Ftasks .\u002Fautobrowse\u002Ftraces .\u002Fautobrowse\u002Freports\n```\n\nIf the task directory (`.\u002Fautobrowse\u002Ftasks\u002F\u003Ctask>\u002Ftask.md`) doesn't exist yet, scaffold it:\n\n```bash\nmkdir -p .\u002Fautobrowse\u002Ftasks\u002F\u003Ctask>\ncp ${CLAUDE_SKILL_DIR}\u002Freferences\u002Fexample-task.md .\u002Fautobrowse\u002Ftasks\u002F\u003Ctask>\u002Ftask.md\n# Then edit task.md to describe the URL, inputs, steps, and expected JSON output\n```\n\nThe skill source at `${CLAUDE_SKILL_DIR}` stays read-only — only `.\u002Fautobrowse\u002F` in CWD gets written to during training. Graduation (final step) writes a single file to `~\u002F.claude\u002Fskills\u002F\u003Ctask>\u002FSKILL.md`.\n\nList available tasks:\n```bash\nls .\u002Fautobrowse\u002Ftasks\u002F\n```\n\n### Step 3 — Multi-task: spawn parallel sub-agents\n\nIf running multiple tasks, use the Agent tool to spawn one sub-agent per task simultaneously. Each sub-agent receives a self-contained prompt to run the full autobrowse loop for its task:\n\n> \"You are running the autobrowse skill for task `\u003Cname>`. Workspace: `\u003Cabsolute-path-to-workspace>` (e.g. `\u002Fpath\u002Fto\u002Fproject\u002Fautobrowse`). Run `\u003CN>` iterations of: evaluate → read trace → improve strategy.md → repeat. Use `--env \u003Cenv>`. Pass `--workspace \u003Cworkspace>` to every evaluate.mjs invocation. If the parent invocation used `--browser-trace`, you MUST use the traced-path block of the SKILL.md loop for every iteration (pre-create session, attach bb-capture, pass `--connect-url` to evaluate.mjs, stop+bisect, release) — do not fall back to the default single-command path. Follow the autobrowse loop instructions exactly.\n>\n> When graduating, install the skill to `~\u002F.claude\u002Fskills\u002F\u003Ctask-name>\u002FSKILL.md` with proper agentskills frontmatter (name + description). Do not just copy strategy.md — write a self-contained skill.\n>\n> At the end, output a structured summary with: task name, pass\u002Ffail on final run, total cumulative cost, iterations completed, per-iteration table (iter number, turns, cost, status, hypothesis tested), and 2-3 bullet key learnings.\"\n\nSpawn all sub-agents in parallel, wait for all to complete, then collect their summaries and write the session report.\n\n**For single task**, skip this step and run the loop directly below.\n\n---\n\n## The Loop (run this for each task)\n\n### Iteration start\n\nCheck that `.\u002Fautobrowse\u002Ftasks\u002F\u003Ctask>\u002Ftask.md` exists (scaffold it from the template if not — see Step 2). `strategy.md` is auto-created empty by the harness on first run.\n\n### Requirements\n\n- `ANTHROPIC_API_KEY` must be in the environment (or in a `.env` file in CWD — `evaluate.mjs` auto-loads it). If missing, the harness prints a clear error and exits; don't hunt for keys in other paths.\n\n### Run the inner agent\n\n**Default path (no `--browser-trace`)** — single command, no orchestration:\n\n```bash\nnode ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fevaluate.mjs --task \u003Ctask-name> --workspace .\u002Fautobrowse\n# or for bot-protected sites:\nnode ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fevaluate.mjs --task \u003Ctask-name> --workspace .\u002Fautobrowse --env remote\n```\n\nThis runs the browser session and writes a full trace to `.\u002Fautobrowse\u002Ftraces\u002F\u003Ctask>\u002Flatest\u002F`.\n\n**Traced path (`--browser-trace`, remote only)** — the outer harness pre-creates a Browserbase session, attaches `bb-capture` as a passive observer, and passes the session's `connectUrl` to `evaluate.mjs` so every inner `browse` call uses `--cdp $connectUrl --session autobrowse-main` (the canonical browser-trace pattern that gives observers full Network\u002FConsole events). Run this block once per iteration with `$N` set to the 1-indexed iteration number:\n\n```bash\n# Preflight — fail fast if browser-trace isn't installed alongside autobrowse.\nBT_DIR=\"${CLAUDE_SKILL_DIR}\u002F..\u002Fbrowser-trace\"\nif [ ! -f \"$BT_DIR\u002Fscripts\u002Fbb-capture.mjs\" ]; then\n  echo \"ERROR: --browser-trace requires the browser-trace skill at $BT_DIR.\" >&2\n  echo \"Install it by cloning github.com\u002Fbrowserbase\u002Fskills and copying skills\u002Fbrowser-trace\u002F\" >&2\n  echo \"into the same parent directory as autobrowse (e.g. ~\u002F.claude\u002Fskills\u002Fbrowser-trace\u002F).\" >&2\n  exit 1\nfi\n\n# a. SESSION SETUP — pre-create the keep-alive session and derive its connectUrl\nsid=$(browse cloud sessions create --keep-alive --verified --proxies \\\n  | node -e \"let s='';process.stdin.on('data',c=>s+=c).on('end',()=>process.stdout.write(JSON.parse(s).id))\")\nconnect_url=$(browse cloud sessions get \"$sid\" \\\n  | node -e \"let s='';process.stdin.on('data',c=>s+=c).on('end',()=>process.stdout.write(JSON.parse(s).connectUrl))\")\n\nRUN_ID=\"run-$(printf '%03d' \"$N\")\"\nTRACE_ROOT=\".\u002Fautobrowse\u002Ftraces\u002F\u003Ctask-name>\u002F$RUN_ID\"\nmkdir -p \"$TRACE_ROOT\"\nexport O11Y_ROOT=\"$TRACE_ROOT\u002F.o11y\"   # park browser-trace output inside the autobrowse run dir\nexport O11Y_RUN_ID=\"$RUN_ID\"           # tells the browse CLI which run dir to write descriptors.ndjson into\n\n# b. ATTACH BROWSER-TRACE — passive observer; runs in background\nnode ${CLAUDE_SKILL_DIR}\u002F..\u002Fbrowser-trace\u002Fscripts\u002Fbb-capture.mjs \"$sid\" \"$RUN_ID\" &\nsleep 2\n\n# c. RUN AUTOBROWSE — connectUrl flag tells evaluate.mjs to inject --cdp\u002F--session\n#    into every inner browse call. The inner agent never sees --remote.\nnode ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fevaluate.mjs \\\n  --task \u003Ctask-name> --workspace .\u002Fautobrowse --env remote \\\n  --connect-url \"$connect_url\" --run-number \"$N\"\n\n# d. STOP + BISECT + UNIFY — order matters; bisect needs the session to still\n#    exist, and unify-trace joins the bisect output with autobrowse's trace.json\n#    into a single time-ordered NDJSON the outer agent reads first each iter.\nnode ${CLAUDE_SKILL_DIR}\u002F..\u002Fbrowser-trace\u002Fscripts\u002Fstop-capture.mjs \"$RUN_ID\"\nnode ${CLAUDE_SKILL_DIR}\u002F..\u002Fbrowser-trace\u002Fscripts\u002Fbisect-cdp.mjs \"$RUN_ID\"\nnode ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Funify-trace.mjs \\\n  --trace-dir \"$TRACE_ROOT\" \\\n  --o11y-dir \"$O11Y_ROOT\u002F$RUN_ID\"\n\n# e. RELEASE\nbrowse cloud sessions update \"$sid\" --status REQUEST_RELEASE\n```\n\nThis writes the inner-agent trace to `.\u002Fautobrowse\u002Ftraces\u002F\u003Ctask-name>\u002Flatest\u002F` and the CDP bisect to `.\u002Fautobrowse\u002Ftraces\u002F\u003Ctask-name>\u002Flatest\u002F.o11y\u002F\u003Crun-id>\u002F`. The traced `browse` CLI also emits per-command rich node descriptors to `.o11y\u002F\u003Crun-id>\u002Fcdp\u002Fdescriptors.ndjson` (one JSON object per page-driving call: target tag\u002Fid\u002Frole\u002FaccessibleName\u002Fattributes\u002Fxpath\u002Fbounding-rect). The descriptors file feeds downstream codegen; it is **not** required for hypothesis formation — skip it when reading the trace.\n\n### Read the trace\n\n```bash\ncat .\u002Fautobrowse\u002Ftraces\u002F\u003Ctask-name>\u002Flatest\u002Fsummary.md\n```\n\nThe summary has duration, cost, turns, the decision log, and the final JSON output.\n\nIf the agent failed or got stuck, look deeper:\n- Read `.\u002Fautobrowse\u002Ftraces\u002F\u003Ctask-name>\u002Flatest\u002Ftrace.json` — search for the failure turn\n- Read screenshots around the failure point with the Read tool\n\n**When `--browser-trace` was used — start with `unified-events.jsonl`.** The harness joins the agent's turn log and the browser's CDP firehose into one time-ordered NDJSON stream at the run root. One file, source-tagged (`source: \"agent\" | \"browser\"`), interleaved by wall-clock timestamp. Skim it top-to-bottom; the failure cause is usually one or two adjacent lines (the agent issued command X, the browser responded with Y).\n\n```bash\ncat .\u002Fautobrowse\u002Ftraces\u002F\u003Ctask-name>\u002Flatest\u002Funified-events.jsonl\n```\n\nThe structured files (`trace.json`, `.o11y\u002F\u003Crun-id>\u002Fcdp\u002F*`) are **also agent-consumable as drill-downs** when the unified stream points at something you need more of:\n\n| Need | Drill-down file or command |\n|---|---|\n| Per-page totals + timing (events, network counts, errors by page) | `.o11y\u002F\u003Crun-id>\u002Fcdp\u002Fsummary.json` |\n| All failed network requests in one place | `.o11y\u002F\u003Crun-id>\u002Fcdp\u002Fnetwork\u002Ffailed.jsonl` |\n| Full console exception payloads (stacktraces, etc.) | `.o11y\u002F\u003Crun-id>\u002Fcdp\u002Fconsole\u002Fexceptions.jsonl` |\n| Per-page slice (only events on page N) | `.o11y\u002F\u003Crun-id>\u002Fcdp\u002Fpages\u002F\u003Cpid>\u002F` |\n| Full reasoning text \u002F untruncated tool outputs for a specific turn | `trace.json` (filter by `turn === N`) |\n| Ad-hoc grouped query (e.g. top hosts, errors-by-page) | `O11Y_ROOT=.\u002Fautobrowse\u002Ftraces\u002F\u003Ctask-name>\u002Flatest\u002F.o11y node ${CLAUDE_SKILL_DIR}\u002F..\u002Fbrowser-trace\u002Fscripts\u002Fquery.mjs \u003Crun-id> \u003Ccmd>` |\n\nThe unified stream is the default; drill into structured files only when you need a grouped query, a full-text payload, or filtering the stream can't give you.\n\n### Form one hypothesis\n\nFind the exact turn where things went wrong. What single heuristic would have prevented it?\n\nUnder `--browser-trace`, the hypothesis must cite a **specific event from `unified-events.jsonl`** (line number or timestamp) — or name the drill-down file if you had to descend into one. This keeps updates evidence-grounded rather than vibes-driven. A hypothesis based only on the agent's commands might say \"the click didn't work\"; grounded in the unified stream, it can say \"line 47 of unified-events.jsonl: `browse open` was followed by `Network.responseReceived` status 403 on `\u002Fapi\u002Fcheckout` — switch to `--verified --proxies`.\"\n\nExamples:\n- \"After clicking the dropdown, wait 1s — options animate in before they're clickable\"\n- \"Navigate directly to `\u002Fpay-invoice\u002F` — skip the landing page entirely\"\n- \"Use `browse fill #field_3 value` not `browse type` — this field clears on focus\"\n- \"The page shows a spinner at turn 8 — add `browse wait timeout 2000` before snapshot\"\n- (with `--browser-trace`) \"At line 47 of unified-events.jsonl, 3 consecutive `Network.responseReceived` events on `\u002Fapi\u002Favailability` returned 403 right after `browse open` — the site is fingerprinting; the next iter needs `--verified --proxies`.\"\n\n### Update strategy.md\n\nEdit `.\u002Fautobrowse\u002Ftasks\u002F\u003Ctask-name>\u002Fstrategy.md`. Keep everything that worked. Fix the specific failure. Add a concrete heuristic.\n\nGood strategies have:\n- **Fast path**: direct URL or shortcuts to skip exploration\n- **Step-by-step workflow**: exact sequence with timing notes\n- **Site-specific knowledge**: selector IDs, form field names, success indicators\n- **Failure recovery**: what to do when X goes wrong\n\n### Judge the result\n\nRead the new summary. Did it pass? Make clear progress?\n- **Pass or progress** → keep, next iteration\n- **No progress or regression** → revert strategy.md to the previous version and try a different hypothesis\n\n### Generate a runnable script (optional)\n\nOnce the task has converged, you can produce a deterministic, runnable script\nin one or more frameworks via `scripts\u002Fcodegen.mjs`. This is one shot of an\nLLM call per framework, cached by content hash, with optional verify-against-\nfresh-session and rewrite-on-failure.\n\n```bash\nnode ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcodegen.mjs \\\n  --task \u003Cname> \\\n  --workspace .\u002Fautobrowse \\\n  --frameworks playwright,stagehand \\\n  --verify\n```\n\nEach framework gets its own subdirectory under `tasks\u002F\u003Cname>\u002F\u003Cframework>\u002F`\nwith the emitted script and a self-contained scaffold (`package.json`,\n`tsconfig.json`). The directory is runnable standalone with\n`cd tasks\u002F\u003Cname>\u002Fplaywright && npm install && npx tsx \u003Cname>.ts` — the only\nruntime requirement is `BROWSERBASE_API_KEY` (plus `ANTHROPIC_API_KEY` for\nthe Stagehand target).\n\nBuiltin frameworks: `playwright`, `stagehand`. Add a custom framework with\n`--prompt-template \u003Cpath> --frameworks custom` (and provide your own runner\nor pass `--no-verify`).\n\nCommon flags:\n\n| Flag | Purpose |\n|---|---|\n| `--frameworks a,b,...` | Comma-separated; default `playwright` |\n| `--verify` \u002F `--no-verify` | Run the produced script against a fresh BB session; default `--verify` |\n| `--max-retries N` | Rewrite-on-verify-failure cap; default 2 |\n| `--cache-only` | Error if cache miss (CI-friendly) |\n| `--force` | Bust the cache |\n| `--dry-run` | Estimate prompt size + cost; don't call the LLM |\n| `--run \u003Cid>` | Force a specific `run-NNN` (default: latest passing) |\n\nOutput is one JSON line per framework on stdout. Non-zero exit if any\nselected framework's final state is `passed: false`.\n\nSee `references\u002Fplaywright-cdp-bridge.md` for the canonical\n`connectOverCDP` patterns the emitted scripts follow.\n\n### After all iterations — publish if ready\n\nIf the task passed on 2+ of the last 3 iterations **or has reached the max iteration limit**, install it as a Claude Code skill. **Do not just copy strategy.md** — the skill must be self-contained and useful to someone who has never seen this codebase. If graduating at max iterations without a clean pass, note the known failure point but still document everything learned.\n\nInstall by writing to `~\u002F.claude\u002Fskills\u002F\u003Ctask-name>\u002FSKILL.md`:\n\n```bash\nmkdir -p ~\u002F.claude\u002Fskills\u002F\u003Ctask-name>\n```\n\nUse this structure for the SKILL.md:\n\n```markdown\n---\nname: \u003Ctask-name>\ndescription: \u003C1-2 sentences describing what this skill does and when to use it. Include trigger keywords.>\n---\n\n# \u003CTask Title> — Browser Skill\n\n## Purpose\n\u003C1-2 sentences: what this automates and why it exists.>\n\n## When to Use\n\u003CWhen should someone reach for this skill.>\n\n## Browse CLI Reference\nThe inner agent uses the `browse` CLI. Key commands for this task:\n- `browse stop` — kill existing session (always run before switching to remote)\n- `browse open \u003Curl> --remote` — start a fresh Browserbase cloud session and navigate\n- `browse open \u003Curl> --local` — start a clean local browser and navigate\n- `browse tab new \u003Curl>` — open URL in a new tab\n- `browse wait load` — wait for page to finish loading\n- `browse wait timeout \u003Cms>` — wait a fixed amount of time for spinners or animations\n- `browse wait selector \"\u003Cselector>\"` — wait for an element to become visible\n- `browse get title` — verify you're on the right page\n- `browse get text body` — extract all visible text (preferred for content extraction)\n- `browse snapshot` — get accessibility tree; each node has a ref in `[X-Y]` format (e.g. `[0-5]`, `[2-147]`)\n- `browse click [X-Y]` — click element by ref from the latest snapshot (include the brackets)\n\n**Never use `--session \u003Cname>` flags in SKILL.md.** Named sessions are a parallel-run workaround — they contaminate skills with infrastructure concerns. Skills must work in isolation with the default session.\n\n## Workflow\n\n### Step 1 — Start session\n\u003Cexact browse commands in order>\n\n### Step 2 — Navigate\n\u003Cexact URL and verification steps>\n\n### Step 3 — Extract\n\u003Cexact extraction commands>\n\n### Step 4 — Output\n\u003Cwhat JSON to emit, referencing the schema below>\n\n## Site-Specific Gotchas\n\u003CBullet list of every hard-won heuristic from the iterations. This is the core value of the skill.>\n\n## Failure Recovery\n\u003CWhat to do when navigation fails, session is contaminated, or extraction returns garbage>\n\n## Expected Output\n```json\n\u003Cpaste the exact expected output schema from task.md>\n```\n```\n\nAfter writing the SKILL.md, confirm it's installed:\n```bash\nls ~\u002F.claude\u002Fskills\u002F\u003Ctask-name>\u002FSKILL.md\n```\n\nThe skill is now available as `\u002F\u003Ctask-name>` in Claude Code.\n\n---\n\n## Final report (multi-task mode)\n\nAfter all sub-agents complete, print a markdown table:\n\n| Task | Iterations | Final Status | Graduated | Cost |\n|------|-----------|--------------|-----------|------|\n| google-flights | 5 | ✅ pass | yes | $0.42 |\n| amazon-add-to-cart | 5 | ❌ fail | no | $1.20 |\n\nThen write a persistent session report to `.\u002Fautobrowse\u002Freports\u002F` so there's a durable record of the run inside the workspace:\n\n```bash\nmkdir -p .\u002Fautobrowse\u002Freports\n```\n\nWrite the file `.\u002Fautobrowse\u002Freports\u002FYYYY-MM-DD-HH-MM-\u003Ctasks>.md` with:\n\n```markdown\n# AutoBrowse Session Report\n**Date:** \u003CISO date>\n**Tasks:** \u003Ccomma-separated list>\n**Environment:** remote|local\n**Total cost:** $X.XX\n\n## Results\n\n| Task | Iterations | Pass Rate | Final Status | Graduated | Cost |\n|------|-----------|-----------|--------------|-----------|------|\n| ... | ... | X\u002F5 | ✅\u002F❌ | yes\u002Fno | $X.XX |\n\n## Per-Task Learnings\n\n### \u003Ctask-name>\n- **Key insight 1:** \u003Cwhat the agent learned>\n- **Key insight 2:** \u003Canother heuristic>\n- **Failure mode fixed:** \u003Cwhat was failing and how it was resolved>\n\n## Iteration Log\n\n### \u003Ctask-name>\n| Iter | Turns | Cost | Status | Hypothesis tested |\n|------|-------|------|--------|-------------------|\n| 1 | 79 | $18.75 | ❌ fail | baseline |\n| 2 | 9 | $0.26 | ✅ pass | session contamination fix |\n| ... | ... | ... | ... | ... |\n```\n\n---\n\n## Rules\n\n- **Only edit `strategy.md`** — never touch `task.md` (unless creating it from the template) or `evaluate.mjs`\n- **Stay in the workspace** — all training writes go to `.\u002Fautobrowse\u002F`, never to `~\u002F.claude\u002Fskills\u002Fautobrowse\u002F`. The skill source is read-only.\n- **One hypothesis per iteration** — test one change at a time\n- **Build on wins** — keep what worked, add to it\n- **Trust the trace** — the inner agent shows exactly what it saw and did\n- **Graduate to `~\u002F.claude\u002Fskills\u002F`** — the only file you write there is the final graduated `SKILL.md`\n- **Don't release before bisecting** — under `--browser-trace`, the order at the end of each iteration is non-negotiable: `stop-capture` → `bisect-cdp` → `browse cloud sessions update REQUEST_RELEASE`. Bisect depends on the session still existing when the trace stops.\n",{"name":5,"license":15,"metadata":24,"description":7,"allowed-tools":27,"compatibility":28},{"author":25,"homepage":26},"browserbase","https:\u002F\u002Fgithub.com\u002Fbrowserbase\u002Fskills","Bash Read Write Edit Glob Grep Agent","Requires Node.js 18+, browse CLI, and ANTHROPIC_API_KEY. Run from the autobrowse app directory.","main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fbrowserbase-skills\u002Fautobrowse\u002Fskills\u002Fautobrowse",1,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper","https:\u002F\u002Fgithub.com\u002Fom-scogo","SDE-1 @ Scogo ","2026-07-18 12:22:46",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill autobrowse",{"tool":43,"command":44},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill autobrowse",{"tool":46,"command":47},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill autobrowse","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fbrowserbase-skills\u002Fautobrowse\u002Fskills\u002Fautobrowse\u002FSKILL.md",true,[],[52,59,64,71,76,83],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7D6MC9FAAEV4CMNYX8W7JTG","arxiv-search","Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":60,"name":54,"nameZh":6,"description":55,"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},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\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},"01M7D4ZTCS4DR3CE4JY06X84T2","working-with-legacy-code","Safely change and test untested codebases using Feathers' \"Working Effectively with Legacy Code\". Use when the user mentions \"legacy code\", \"no tests\", \"untested codebase\", \"how do I test this\", \"seams\", \"characterization tests\", \"golden master\", \"sprout method\", \"afraid to change this code\", \"monster method\", \"dependency breaking\", or \"inherited a messy codebase\". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout\u002Fwrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002Fworking-with-legacy-code\u002FSKILL.md",[],[],{"skillNo":72,"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":73,"categories":74,"keywords":75,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7D4ZB4CJBFW5JE67CPH2QRV","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", \"typographic scale\", or \"the text is hard to read\". Also trigger when choosing between system fonts and web fonts, optimizing font-loading performance, or designing readable long-form content. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":84,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]