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.
npx skills add ericrisco/rsc-harness --skill chrome-extensiongit clone --depth 1 https://github.com/ericrisco/rsc-harnessWrote 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.
[](https://agentmods.dev/skills/ericrisco/rsc-harness/chrome-extension)<a href="https://agentmods.dev/skills/ericrisco/rsc-harness/chrome-extension"><img src="https://agentmods.dev/badge/skills/ericrisco/rsc-harness/chrome-extension/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.
<a href="https://agentmods.dev/skills/ericrisco/rsc-harness/chrome-extension"><img src="https://agentmods.dev/badge/skills/ericrisco/rsc-harness/chrome-extension.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00076 | $0.02699 |
| Opus 5.5 | $0.00030 | $0.01080 |
| Sonnet 5.5 | $0.00015 | $0.00540 |
| Haiku 4.5 | $0.00008 | $0.00270 |
Grade A, and why
chrome-extension 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.
How it starts
The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Chrome extension (Manifest V3)
An MV3 extension is three isolated JavaScript contexts that never share memory and only talk via messages:
- Service worker (
background.service_worker) — the logic and lifecycle brain. Ephemeral: Chrome kills it when idle and restarts it on the next event. It has no DOM and nowindow. - Content scripts — run inside a web page, can read/write that page's DOM, live in an isolated JS world by default. No access to most
chrome.*APIs except messaging andstorage. - UI surfaces — popup (
action.default_popup), options page, side panel. Normal web pages that load and unload as the user opens/closes them.
Internalize that picture first. Most extension bugs are someone treating one of these as if it shared state with another. They do not. The wire between them is chrome.runtime messaging and chrome.storage.
Manifest V3 is the only version the Chrome Web Store accepts; MV2 phase-out began June 2024 and is still rolling out. Build MV3 from the start.
Pick a skeleton
| Setup | Pick when | Cost |
|---|---|---|
Vanilla (raw files, load unpacked) |
tiny extension, no npm imports, you want the fastest possible reload loop | no TS, no HMR, manual reloads |
Vite + CRXJS (@crxjs/vite-plugin) |
TS, npm imports, React/Vue popup, you want HMR | a build step; you ship dist/, not the repo |
Default to Vite + CRXJS the moment you want TypeScript or a framework popup — it does the manifest wiring and HMR for you. Reach for vanilla only for a one-file experiment.
Minimal tree (Vite + CRXJS):
my-ext/
manifest.json # source of truth; CRXJS reads it
src/
background.ts # service worker
content.ts # content script
popup/
index.html
popup.tsx
public/icons/ # 16, 48, 128 px PNGs
vite.config.ts
# build output -> dist/ (this is what you zip)
manifest.json — minimum viable shape
{
"manifest_version": 3,
"name": "Highlighter",
"version": "1.0.0",
"description": "Highlights selected text on the current page.",
"icons": { "16": "icons/16.png", "48": "icons/48.png", "128": "icons/128.png" },
"action": { "default_popup": "popup/index.html" },
"background": { "service_worker": "background.js", "type": "module" },
"permissions": ["activeTab", "storage", "scripting"],
"host_permissions": [],
"minimum_chrome_version": "120"
}
What ships with it
4 files 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.
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.
- 1mo ago First seen · 170 lines · 76 tokens per session scan A 9b83c8236571
chrome-extension is a skill published in the GitHub repository ericrisco/rsc-harness (289 stars, last pushed today), licensed MIT. It adds 76 tokens to every session and 2,699 once invoked, about $0.0003 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.
Other skills, from other repositories
browser-extension-patterns
Build browser extensions with Manifest V3 for Chrome, Firefox, and cross-browser compatibility. Covers content scripts, background workers, popup UI, storage APIs, and extension messaging. Triggers on browser extension development, Manifest V3, or Chrome extension requests.
agent-browser
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a…
opencli-usage
Use when running OpenCLI commands to interact with websites (Bilibili, Twitter, Reddit, Xiaohongshu, etc.), desktop apps (Cursor, Notion), or public APIs (HackerNews, arXiv). Covers installation, command reference, and output formats for 100+ adapters.
metis-browser
Control Metis Desktop Inspector built-in browser for local preview (HTML/SVG/file paths), page interaction, accessibility snapshots, and screenshots. Use when the user asks to open, show, preview, inspect, click, type, or verify UI in the in-app/built-in browser. Prefer browsernavigate over bash…
checking-a-page
Check that a web page you wrote or changed actually works, by opening it in a browser and driving every control on it. Use after creating or editing an HTML page, or the JavaScript or CSS that a page loads.
browser-qa
Testing web apps through a real browser: reconnaissance before acting, selector discovery, state capture, console errors and screenshot evidence. Use on a web surface end to end, or to reproduce a front-end bug.