test-production

test-production is a skill for Claude Code, Codex 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 CodeCodex

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.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/platonai/browser4/test-production.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00044 $0.01269
Opus 5 $0.00022 $0.00634
Sonnet 5 $0.00009 $0.00254
Haiku 4.5 $0.00004 $0.00127

Measured 4d ago against content hash 7292f1eef31c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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,120 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. 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.