Borrowing it
Nothing to install: this file belongs to TranHuyQn/cc-chrome-extension. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/TranHuyQn/cc-chrome-extension/claude/claude-code-chrome-extension-q9a5sg/.claude/skills/add-chrome-tool/SKILL.mdgit clone --depth 1 https://github.com/TranHuyQn/cc-chrome-extensionWrote 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/tranhuyqn/cc-chrome-extension/add-chrome-tool)<a href="https://agentmods.dev/skills/tranhuyqn/cc-chrome-extension/add-chrome-tool"><img src="https://agentmods.dev/badge/skills/tranhuyqn/cc-chrome-extension/add-chrome-tool/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/tranhuyqn/cc-chrome-extension/add-chrome-tool"><img src="https://agentmods.dev/badge/skills/tranhuyqn/cc-chrome-extension/add-chrome-tool.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00057 | $0.00806 |
| Opus 5 | $0.00028 | $0.00403 |
| Sonnet 5 | $0.00011 | $0.00161 |
| Haiku 4.5 | $0.00006 | $0.00081 |
Grade A, and why
add-chrome-tool 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 11d 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 — 75 lines — stays where its author put it; the contents beside it link to each section on GitHub.
A tool only works when all four pieces exist. Do them in this order and stop at the first mismatch.
1. Extension handler — extension/background.js
Add a key to the handlers object. The key is the wire method name.
async my_tool(params) {
const tab = await resolveTab(params); // honors params.tabId, falls back to active tab
return await execInTab(tab, pageMyTool, [params.someArg ?? default]);
}
- Anything touching the DOM goes through
execInTabwith apageXxxfunction. Those are injected into the page: no closures, inline every helper, and end the body with} catch (e) { return { __cc_err: e.message }; }— thrown exceptions are swallowed bychrome.scriptingand surface as a useless "no result". - Anything needing CDP (keyboard, eval, console, network, full-page screenshot) goes through
ensureDebugger(tabId, [domains])+cdp(tabId, method, params)instead. - Element refs: read them from
window.__cc_refs; a missing ref must produce a message telling Claude to callread_pageagain, matching the existing "stale ref" wording. - Throw
Errorwith an actionable message rather than returning error objects.
2. MCP tool — server/index.js
Inside buildMcpServer(), register with the same name as the handler key:
tool(
"my_tool",
"One line telling Claude when to reach for this and what it gets back.",
{
someArg: z.string().describe("..."),
tabId: tabIdSchema,
},
async (args) => textResult(await call("my_tool", args))
);
Reuse tabIdSchema for tab targeting and textResult for the response. Pass a custom
timeoutMs as the third arg of call() only for tools that can legitimately outrun the default 45s.
Descriptions are read by the model at every session — say when to use the tool, not how it works.
3. E2E coverage — test/e2e.mjs
The test serves its own fixture pages from an in-process HTTP server and drives the real MCP client. Add an assertion next to the related tools:
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.
- 11d ago First seen · 75 lines · 57 tokens per session scan A c6ad0b5bbb7a
add-chrome-tool is a skill published in the GitHub repository TranHuyQn/cc-chrome-extension (4 stars, last pushed 12d ago), licensed MIT. It adds 57 tokens to every session and 806 once invoked, about $0.0003 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-31.
Other skills, from other repositories
browser
Use this skill when the user says browser, /browser, test in Chrome, inspect a webpage, verify a localhost app, capture screenshots, check console/network errors, run browser QA, or automate browser flows with the Mochi browser MCP.
qa-runner
Use when asked to "run QA", "qa check", "test checklist", or execute QA checklists against a running app via browser automation. Requires the browser-bridge MCP server and Chrome extension.
e2e-tester
Test a web app like a QA person — open it in a real browser, click through flows, and report what's broken with screenshots and code references. Works on localhost. Use when the user wants to test their app, verify a flow works, check for visual bugs, or validate changes before pushing.
e2e-testing
Playwright E2E testing patterns, Page Object Model, configuration, CI/CD integration, artifact management, and flaky test strategies. Use when writing Playwright tests, structuring page objects, or fixing flaky E2E runs in CI.
dogfood
Exploratory QA of web apps: find bugs, evidence, reports.
e2e-testing-patterns
Master end-to-end testing with Playwright and Cypress to build reliable test suites that catch bugs, improve confidence, and enable fast deployment. Use when implementing E2E tests, debugging flaky tests, or establishing testing standards.