browser-module

browser-module is a skill for Claude Code from langwatch/langwatch. It costs 175 tokens per session (2,110 once invoked), scanned A, original, Apache-2.0.

A guide to the browser-side half of a module: screens, drawers, user-interface sections, browser state, and data fetching. It explains how these pieces are arranged and how they connect to the server.

In plain words
What is it for?
Use it when adding a screen, drawer, hook, browser store, cached read, or data fetch, or when deciding where a new browser feature belongs.
Why use it?
It helps keep presentation, browser behavior, and data access in the expected places. This avoids putting fetching or state logic into simple visual components.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it when adding a screen, drawer, hook, browser store, cached read, or data fetch, or when deciding where a new browser feature belongs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/langwatch/langwatch/browser-module
About the project

LangWatch is a platform for testing, evaluating, and monitoring LLM-powered agents before release and in production. Teams use it to run agent simulations, trace and evaluate behavior, improve prompts and models, review failures, and manage provider costs and governance.

langwatch/langwatch · 5,059 stars · on GitHub · langwatch.ai

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 langwatch/langwatch --skill browser-module
Clone the repo
git clone --depth 1 https://github.com/langwatch/langwatch

Made for: Claude Code.

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 browser-module

README.md
[![agentmods](https://agentmods.dev/badge/skills/langwatch/langwatch/browser-module/github.svg)](https://agentmods.dev/skills/langwatch/langwatch/browser-module)
Your own site
<a href="https://agentmods.dev/skills/langwatch/langwatch/browser-module"><img src="https://agentmods.dev/badge/skills/langwatch/langwatch/browser-module/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 browser-module

Your own site · 80×15
<a href="https://agentmods.dev/skills/langwatch/langwatch/browser-module"><img src="https://agentmods.dev/badge/skills/langwatch/langwatch/browser-module.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 175 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,110 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.00175 $0.02110
Opus 5.5 $0.00070 $0.00844
Sonnet 5.5 $0.00035 $0.00422
Haiku 4.5 $0.00017 $0.00211

Measured 1mo ago against content hash 3464093f97eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

browser-module 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 1mo 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.

.claude/skills/browser-module/SKILL.md · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.

A module's browser half

Read dev/docs/ARCHITECTURE.md §3.4, §10 and §10.2. This skill is the short version. Exemplar: modules/organization/browser (screens, drawers, hooks, features/ nesting, a colocated test). §16 says per row whether the new name has landed; the declaration is defineBrowserModule from @langwatch/browser. The declaration stem stays <name>.web.ts.

The shape

modules/organization/browser/src/
  organization.web.ts   the declaration; package.json exports ./declaration and nothing else
  model/                pure values and the module's *HostApi contract
  behavior/             hooks, the api binding, stores (organization-api.ts, use-*.ts)
  ui/elements|blocks|sections/
  features/<name>/      a feature owns model/behavior/ui again, one level, past 30 files
  testing.tsx           the module's test harness

Imports run one way: entry, then model, behavior, ui/elements, ui/blocks, ui/sections. Elements and blocks take props or a query result and never fetch. A section is where data meets layout. A feature that is one component is a section, not a feature.

Rules that matter

Each rule lives in the record; this table only points at it.

Rule Record
Closed package: exports ./declaration only; types cross, values do not §3.4
No kits: shared UI to the design system, another module's data to its <name>-client §3.4
Screens declared with .withScreens, guarded by the router, never self-guarded §10
Drawers are URL-routed singletons (?drawer.open=<name>); the name is the wire §10
A screen expects missing data: skeleton in final shape, held data stays, inline Retry §3.4
Four state tiers: React Query, router, the one global UI store (<module>:<key>), useState §10.2
Every read cached (React Query + IndexedDB mirror); no staleTime at a call site §10
No polling, but two bounded exceptions (below); visible tabs stay live, hidden tabs make none §10
Deployment facts from useUiDeployment() or the module's *HostApi, never env §6
Reads take an opaque id plus tenant scope; mutations setData, never hand-invalidate §10.2

Read the full file on GitHub · 139 lines

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. 1mo ago Changed · +32 lines 3464093f97eb
  2. 1mo ago First seen · 107 lines · 175 tokens per session scan A ce1aad25af48

Subscribe to this mod's changes

browser-module is a skill published in the GitHub repository langwatch/langwatch (5,059 stars, last pushed today), licensed Apache-2.0. It adds 175 tokens to every session and 2,110 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-10-13.

Related

browser-module compared with skills from other repositories

browser-module next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
browser-modulelangwatch/langwatchSkill5.1ktodayApache-2.0A175Claude Code
trulens-evaluation-setuptruera/trulensSkill3.7k2d agoMITA17Claude Code, Codex
trulens-diagnosistruera/trulensSkill3.7k2d agoMITA17Claude Code, Codex
evalscopemodelscope/evalscopeSkill3.7k2d agoApache-2.0A195Claude Code, Codex
trulens-evaluation-workflowtruera/trulensSkill3.7k2d agoMITA18Claude Code, Codex
trulens-dataset-curationtruera/trulensSkill3.7k2d agoMITA19Claude Code, Codex
qaSkyvern-AI/skyvernSkill24ktodayAGPL-3.0A33Claude Code, Codex