Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add oaustegard/claude-skills --skill capturing-browser-logsgit clone --depth 1 https://github.com/oaustegard/claude-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/oaustegard/claude-skills/capturing-browser-logs)<a href="https://agentmods.dev/skills/oaustegard/claude-skills/capturing-browser-logs"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/capturing-browser-logs/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/capturing-browser-logs"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/capturing-browser-logs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00164 | $0.03451 |
| Opus 5.5 | $0.00066 | $0.01380 |
| Sonnet 5.5 | $0.00033 | $0.00690 |
| Haiku 4.5 | $0.00016 | $0.00345 |
Grade A, and why
capturing-browser-logs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Capturing browser logs
The user runs the page; you read what it did. Agent Log records the page's console output, uncaught errors, unhandled rejections, failed resource loads, CSP violations and fetch/XHR calls into the browser's IndexedDB, shows a red Logging badge while it records, and exports an OTLP/JSON file the user hands back to you. Nothing is uploaded.
Docs, bookmarklet and console snippet: https://austegard.com/web-utilities/agent-log.html
Applicability
Use it when the bug happens in a real browser that you do not control: the user's phone, a GPU-specific failure, a page behind their login, timing that a headless run does not reproduce. If you can run the page yourself in Playwright or a browser tool, do that instead and read the console directly. Agent Log does not see iframes, web workers or service workers, and it does not record request or response bodies.
Procedure
- Pick how the user turns it on. Give them exactly one route:
- A page whose source you can edit: add
<script src="https://austegard.com/web-utilities/agent-log.js"></script>to its<head>, ship it, and ask the user to open the page with?logging=true(or&logging=truewhen the URL already has a query). Logging stays on in that tab across reloads until they press Stop logging. For a page that should always log, use<script src="…" data-start></script>. - Any other page: ask the user to drag the bookmarklet from the docs page to their bookmarks bar, open the page and click it.
- A page with a strict Content Security Policy (GitHub, many banks and mail clients): the bookmarklet silently fails there. Ask the user to press Copy the full script on the docs page and paste it into the page's devtools console.
raw.githubusercontent.comcannot serve the script to a<script>tag (it sendstext/plainwithnosniff). Use the austegard.com URL, or jsDelivr:https://cdn.jsdelivr.net/gh/oaustegard/oaustegard.github.io@main/web-utilities/agent-log.js.
- A page whose source you can edit: add
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 14d ago Changed 3d1b9689c40b
- 15d ago First seen · 153 lines · 164 tokens per session scan A dfe17c6f93f9
capturing-browser-logs is a skill published in the GitHub repository oaustegard/claude-skills (421 stars, last pushed today), licensed MIT. It adds 164 tokens to every session and 3,451 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.
capturing-browser-logs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| capturing-browser-logsoaustegard/claude-skills | Skill | 421 | today | MIT | A | 164 | Claude Code, Codex |
| browser-debuggingvibeeval/vibecosystem | Skill | 554 | 18d ago | MIT | A | 22 | Claude Code, Codex |
| debug-logsWeaverse/.agents | Skill | 1 | 19d ago | MIT | A | 42 | Claude Code |
| chrome-devtools-axin-n-code/n-n-code-skills | Skill | 4 | 29d ago | MIT | A | 79 | Claude Code, Codex |
| safari-mcp-workflowgaelic-ghost/socket | Skill | 11 | 3mo ago | Apache-2.0 | A | 48 | Claude Code, Codex |
| browser-testing-with-devtoolscharlieviettq/awesome-agent-skill | Skill | 27 | 4mo ago | MIT | A | 39 | Claude Code |
| download-xhs-videosYijiaDuan/download-xhs-videos | Skill | 3 | 4mo ago | MIT | A | 181 | Claude Code, Codex |