capturing-browser-logs

capturing-browser-logs is a skill for Claude Code, Codex from oaustegard/claude-skills. It costs 164 tokens per session (3,451 once invoked), scanned A, original, MIT.

A browser logging method that records what happens on a user's web page and exports the results for an agent to inspect. It captures console messages, errors, network requests, and selected page changes without uploading the data.

In plain words
What is it for?
Use it to collect browser errors, failed resource loads, security-policy violations, fetch or XHR activity, and selected events or DOM changes for later debugging.
Why use it?
It provides evidence for bugs that only occur in a browser the agent cannot run, such as a user's phone, a login-protected page, or a device-specific failure. It avoids relying only on descriptions when the agent cannot reproduce the problem.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to collect browser errors, failed resource loads, security-policy violations, fetch or XHR activity, and selected events or DOM changes for later debugging.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oaustegard/claude-skills/capturing-browser-logs
Install

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.

Any agent
npx skills add oaustegard/claude-skills --skill capturing-browser-logs
Clone the repo
git clone --depth 1 https://github.com/oaustegard/claude-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for capturing-browser-logs

README.md
[![agentmods](https://agentmods.dev/badge/skills/oaustegard/claude-skills/capturing-browser-logs/github.svg)](https://agentmods.dev/skills/oaustegard/claude-skills/capturing-browser-logs)
Your own site
<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.

agentmods 80×15 button for capturing-browser-logs

Your own site · 80×15
<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>
Per session 164 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,451 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 14d ago against content hash 3d1b9689c40b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

capturing-browser-logs/SKILL.md · 153 lines

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

  1. 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=true when 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.com cannot serve the script to a <script> tag (it sends text/plain with nosniff). Use the austegard.com URL, or jsDelivr: https://cdn.jsdelivr.net/gh/oaustegard/oaustegard.github.io@main/web-utilities/agent-log.js.

Read the full file on GitHub · 153 lines

Files

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.

Changes

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.

  1. 14d ago Changed 3d1b9689c40b
  2. 15d ago First seen · 153 lines · 164 tokens per session scan A dfe17c6f93f9

Subscribe to this mod's changes

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.

Related

capturing-browser-logs compared with skills from other repositories

capturing-browser-logs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
capturing-browser-logsoaustegard/claude-skillsSkill421todayMITA164Claude Code, Codex
browser-debuggingvibeeval/vibecosystemSkill55418d agoMITA22Claude Code, Codex
debug-logsWeaverse/.agentsSkill119d agoMITA42Claude Code
chrome-devtools-axin-n-code/n-n-code-skillsSkill429d agoMITA79Claude Code, Codex
safari-mcp-workflowgaelic-ghost/socketSkill113mo agoApache-2.0A48Claude Code, Codex
browser-testing-with-devtoolscharlieviettq/awesome-agent-skillSkill274mo agoMITA39Claude Code
download-xhs-videosYijiaDuan/download-xhs-videosSkill34mo agoMITA181Claude Code, Codex