browser4-coding

browser4-coding is a skill for Claude Code from platonai/Browser4. It costs 88 tokens per session (6,284 once invoked), scanned C, original, Apache-2.0.

A development toolkit for creating and checking Browser4 plugins, skills, browser scripts, and shell scripts, as well as modifying Browser4 itself.

In plain words
What is it for?
Use it to build or validate Browser4 extensions and scripts, plan changes to its Kotlin code, inspect module impact, run Maven builds, and check CDP-related pitfalls.
Why use it?
It provides project-aware guidance for scaffolding files, validating them, analyzing code dependencies, and diagnosing browser automation issues.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it to build or validate Browser4 extensions and scripts, plan changes to its Kotlin code, inspect module impact, run Maven builds, and check CDP-related pitfalls.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/platonai/browser4/browser4-coding
About the project

Browser4 is an AI-native browser engine that lets autonomous agents and people control real browsers, extract information from web pages, and automate tasks at scale. It combines browser interaction through a Rust CLI and MCP with deterministic selectors, machine-learning clustering, and language-model extraction. The catalogue entries provide skills and instructions for using Browser4.

platonai/Browser4 · 1,195 stars · on GitHub · browser4.io

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 platonai/Browser4 --skill browser4-coding
Clone the repo
git clone --depth 1 https://github.com/platonai/Browser4

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 browser4-coding

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/platonai/browser4/browser4-coding"><img src="https://agentmods.dev/badge/skills/platonai/browser4/browser4-coding.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,284 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 22
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 190
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium Agent Snooping · line 191
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
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.00088 $0.06284
Opus 5.5 $0.00035 $0.02514
Sonnet 5.5 $0.00018 $0.01257
Haiku 4.5 $0.00009 $0.00628

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

Security

Grade C, and why

browser4-coding scanned grade C with 1 finding 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 10d 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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

(`echo "$(cat ~/.ssh/id_rsa)"`). This check is advisory (fast-fail), not a security boundary:
skills/browser4-coding/SKILL.md · 309 lines

How it starts

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

browser4-coding

Quick Start

Create and validate a plugin, or a skill:

coding.scaffold(type="plugin", pluginName="My Plugin", domain="media",
                basePackage="ai.platon.pulsar.myplugin",
                toolMethod="detectMedia", toolDescription="Detect media on the page")
coding.validate(type="plugin", path="browser4-plugins/browser4-myplugin")

coding.scaffold(type="skill", name="my-skill", description="What it does")
coding.validate(type="skill", path="skills/my-skill/SKILL.md")

For self-development work (modifying Browser4 itself), start with coding.scaffoldFlow — see Workflows below.

The programming-agent kernel for Browser4: sandboxed shell + filesystem, artifact scaffolding/validation (plugins, skills, browser JS, scripts), and a full self-development toolset for modifying Browser4's own code (live module graph, impact analysis, Maven builds with structured diagnostics, CDP pitfall awareness, high-level dev-task planning).

When to Use

  • User wants to create a new Browser4 plugin, skill (SKILL.md), browser JS script, or build/deploy/run script
  • User wants to validate any of the above
  • User wants to modify Browser4's own code (Kotlin modules, Rust CLI, poms) — use the self-development tools below
  • User wants to check repo governance (versions, module registration) or the CDP pitfalls before editing the browser driver

How It Works

The coding tools fall into three layers: artifact tools generate and validate plugins, skills, JS, and scripts (templates from real code so they never go stale); self-development tools inspect and modify Browser4 itself (live module graph, impact analysis, Maven builds, CDP trap checks); and shell/filesystem tools provide a sandboxed environment for anything else.

Patterns

1. Create and validate a new plugin

coding.scaffold(type="plugin", pluginName="...", domain="...", basePackage="...", toolMethod="...", toolDescription="...")
coding.validate(type="plugin", path="browser4-plugins/browser4-xxx")
coding.mvnBuild(module="browser4-plugins/browser4-xxx")

Read the full file on GitHub · 309 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. 10d ago Changed · +2 lines d7d1afb22425
  2. 11d ago Changed 52d6933e9257
  3. 16d ago Changed e992a30092f3
  4. 18d ago Changed · +14 lines d1208c6bd543
  5. 1mo ago Changed · +17 lines 8778dbf4e574
  6. 1mo ago Changed · +49 lines scan A → C 6f279c10334a
  7. 1mo ago Changed · +17 lines d17c998305ce
  8. 3mo ago First seen · 210 lines · 88 tokens per session scan A faab6af06f5a

Subscribe to this mod's changes

browser4-coding is a skill published in the GitHub repository platonai/Browser4 (1,195 stars, last pushed yesterday), licensed Apache-2.0. It adds 88 tokens to every session and 6,284 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

browser4-coding compared with skills from other repositories

browser4-coding next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
browser4-codingplatonai/Browser4Skill1.2kyesterdayApache-2.0C88Claude Code
eric-task-masternpcworkspace-cmyk/eric-task-masterSkill14d agoMITA42Claude Code, Codex
browsebrowserbase/stagehandSkill26ktodayMITA109Claude Code
e2e-testing-patternswshobson/agentsSkill43kyesterdayMITA51Claude Code
computer-usekirodotdev/KiroCrewSkill5.2ktodayApache-2.0A67Claude Code, Codex
feature-demo-recordingkirodotdev/KiroCrewSkill5.2ktodayApache-2.0A90Claude Code, Codex
browser-recordingkirodotdev/KiroCrewSkill5.2ktodayApache-2.0A64Claude Code, Codex