test-production

test-production is a skill for Claude Code from platonai/Browser4. It costs 44 tokens per session (1,269 once invoked), scanned A, original, Apache-2.0.

An acceptance test for a released or prerelease version of browser4-cli, a command-line browser automation tool. It tests the published package as a real user would by downloading, installing, using, removing, and reinstalling it.

In plain words
What is it for?
Use it before tagging a release or in CI to verify the public CLI, including optional multi-scenario stress testing.
Why use it?
It checks the released package rather than only the source code in the repository, helping catch distribution or installation problems before a release.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Bash(pwsh:*), Bash(./bin/test-production.ps1:*).

Good fit Use it before tagging a release or in CI to verify the public CLI, including optional multi-scenario stress testing.

Compare 6 skills from other repositories ↓
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,161 stars · on GitHub · browser4.io

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/platonai/Browser4
agentmods
npx agentmods add skills/platonai/browser4/test-production

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 test-production

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/platonai/browser4/test-production"><img src="https://agentmods.dev/badge/skills/platonai/browser4/test-production.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,269 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, 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 Rogue Agent · line 71
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00044 $0.01269
Opus 5.5 $0.00018 $0.00508
Sonnet 5.5 $0.00009 $0.00254
Haiku 4.5 $0.00004 $0.00127

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

Security

Grade A, and why

test-production 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.

coworker/skills/test-production/SKILL.md · 135 lines

How it starts

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

Test Production

Runs bin/test-production.ps1 — an acceptance test that simulates a real end user's journey with the published browser4-cli release. It downloads, installs, exercises, uninstalls, and re-installs the global CLI from the public OSS distribution channel.

This is a separate entrypoint from bin/test.ps1 (covered by the run-tests skill). test-production.ps1 tests the released artifact — not the in-repo source — and is designed to be run in CI or locally before tagging a release.

When to Use

  • "run production tests"
  • "run the production acceptance test"
  • "acceptance-test the latest release"
  • "test the published CLI"
  • "verify the release before tagging"
  • "test a prerelease candidate"
  • "run production acceptance with stress"

Safe Default

Running with no arguments shows help (safe default):

./bin/test-production.ps1

Options

Flag Description
-WorkingDir <path> Working directory for temporary artifacts (default: random subdir under system temp)
-Stress Enable the multi-scenario stress suite (opt-in)
-MultiScenariosIterations <n> Iterations for the multi-scenario suite (default: 1, only with -Stress)
-RemoveWorkingDir Delete the working directory on exit (default: preserved for review)
-Version <tag> Test a specific release version (e.g. v4.12.0-rc.1, v4.11.0). Default: latest stable
-Help Show help message

What It Tests

  1. Release status report — queries GitHub Releases, npm registry, Aliyun OSS CDN, and custom mirrors to verify all distribution channels are reachable.
  2. Pre-clean — removes any existing global browser4-cli installation.
  3. Cycle 1 — Clean-room install (no pre-existing config):
    • Installs the CLI via the remote bootstrap script (unmodified — no patches).
    • Verifies the CLI is on PATH after install.
    • Smoke-tests: --help, --version, config --help, agent-run --help, invalid command.
    • Cold-starts the browser server (open), verifies health endpoint responds.
    • Shuts down the server (close-all, kill-all), verifies it's unreachable.
    • Uninstalls and verifies runtime data is removed.
  4. Cycle 2 — Re-install with config + timing:
    • Copies config (LLM keys, etc.) from the user's real ~/.browser4 into the test sandbox.
    • Repeats the install→exercise→uninstall cycle.
    • Measures warm-start latency vs cold-start.
  5. (With -Stress) Multi-scenarios stress test — runs browser4-tests/tests-production/multi-scenarios.ps1 against the global CLI.

Read the full file on GitHub · 135 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 First seen · 135 lines · 44 tokens per session scan A 7292f1eef31c

Subscribe to this mod's changes

test-production is a skill published in the GitHub repository platonai/Browser4 (1,161 stars, last pushed yesterday), licensed Apache-2.0. It adds 44 tokens to every session and 1,269 once invoked, about $0.0002 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-08-30.