browser-extension-testing

browser-extension-testing is a skill for Claude Code from joao-aires/agent-skills-public. It costs 42 tokens per session (962 once invoked), scanned A, original, MIT.

A testing guide for Chrome Manifest V3 extensions, covering isolated code, interface components, packaged extensions, and real browser journeys. It distinguishes simulated tests from tests that run the installed extension in Chrome.

In plain words
What is it for?
Use it to test extension workers, popups and panels, permission denial, message passing, packaged files, and user actions in a compatible browser.
Why use it?
Mocks can check logic but cannot reveal problems with worker restarts, popup closure, permissions, browser messaging, or the production package.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to test extension workers, popups and panels, permission denial, message passing, packaged files, and user actions in a compatible browser.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/joao-aires/agent-skills-public/browser-extension-testing
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 joao-aires/agent-skills-public --skill browser-extension-testing
Clone the repo
git clone --depth 1 https://github.com/joao-aires/agent-skills-public

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-extension-testing

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/joao-aires/agent-skills-public/browser-extension-testing"><img src="https://agentmods.dev/badge/skills/joao-aires/agent-skills-public/browser-extension-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 962 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.00042 $0.00962
Opus 5.5 $0.00017 $0.00385
Sonnet 5.5 $0.00008 $0.00192
Haiku 4.5 $0.00004 $0.00096

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

Security

Grade A, and why

browser-extension-testing 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 2d 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.

plugins/browser-extension-development/skills/browser-extension-testing/SKILL.md · 53 lines

How it starts

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

Test the boundary the user depends on

Start with the changed behavior, supported Chrome versions, existing test runner and available execution target. Preserve Jest, Vitest, Playwright or Puppeteer where they already meet the need. A stack-specific example is not a reason to replace the application's suite. Build meaningful acceptance around observable effects, including denial and lifecycle behavior that the change can affect.

Separate evidence levels

Level What it can establish What remains outside it
Unit/API mocks Parsing, state transitions, permission/error handling and message construction Browser grants, isolated worlds, actual worker termination or Chrome API behavior
Component/stories Rendered states, keyboard interaction, shared tokens and overlays in that setup Browser toolbar activation, popup dismissal and installed permissions
Loaded production extension Integration of packaged manifest/resources and real extension contexts Store acceptance, other browsers or a signed store-delivered update
Real surface/journey Actual invocation, page effects, closure/reopening and relevant persisted outcomes Untested OS/browser variants or external services replaced by fixtures

Opening chrome-extension://.../popup.html in a normal tab is useful for component integration but does not reproduce the toolbar popup's destruction or an activeTab invocation grant. Check the actual surface when those behaviors matter. Do not convert a missing driver into a passing claim; complete independent checks and record the exact remaining boundary.

Prepare a compatible isolated browser

Read runtime drivers and lifecycle checks before writing browser tests. Use a disposable profile, local controlled pages/providers and the production build directory. Record driver/browser versions and artifact identity. Do not load into a personal browser profile, reuse account sessions or disable sandboxing by default.

Read the full file on GitHub · 53 lines

Files

What ships with it

1 file 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. 2d ago First seen · 53 lines · 42 tokens per session scan A cda8582c65f9

Subscribe to this mod's changes

browser-extension-testing is a skill published in the GitHub repository joao-aires/agent-skills-public (2 stars, last pushed yesterday), licensed MIT. It adds 42 tokens to every session and 962 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-10-24.

Related

Other skills, from other repositories

test-conversion-researcher

Researcher for converting unit tests to browser tests for Project Bedrock. Invoke this when the user needs to understand the current codebase behavior while removing complex Browser dependencies from tests.

chromium/chromium · 42 tokens

06-test

Write and iterate developer-side tests until they pass, or validate a user journey end to end in the browser during implementation. Use when the user wants to add coverage, find what's untested, or walk a flow while building it. Do NOT use for independent acceptance QA or reviewer evidence, auditing test health, or…

ai-driven-dev/framework · 69 tokens

aif-web-testing

Test web apps with Playwright, Vitest and k6: E2E, unit, integration, load, security, visual and a11y.

ainative-build/skills · 36 tokens

chrome-ext-testing

This skill should be used when writing or setting up tests for a Chrome extension. Trigger when: "test chrome extension", "extension unit test", "extension e2e test", "Vitest extension", "Playwright extension", "@webext-core/fake-browser", "test content script", "test service worker", "test messaging", "test storage"…

RadOrigin-LLC/RAD-Claude-Skills · 101 tokens

hs-test

Provide executable feedback on changed behavior with the smallest relevant white-box or black-box probe, then classify the result and report real evidence. Diagnose failures against accepted intent, domain rules, and current implementation before deciding whether code, tests, fixtures, or environment are wrong. Use…

Unibean9/harness-skills · 84 tokens

webapp-testing

Write and run comprehensive web app tests — unit, integration, E2E with Playwright/Cypress, and visual regression.

inbharatai/claude-skills · 29 tokens