ericrisco/rsc-harness / skills/chrome-extension
chrome-extension
VerifiedUse when building or shipping a Manifest V3 browser extension and hitting its quirks — service worker dying and losing state, permission warnings, a Chrome Web Store rejection, content-script/worker/popup messaging, or an MV2-to-V3 migration. NOT a generic web app (that is `nextjs`), NOT a desktop shell (that is `electron`).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 10.8 KB |
| evals/README.md | markdown | 754 B |
| evals/cases.yaml | config | 2.7 KB |
| references/store-and-migration.md | markdown | 4.9 KB |
| scripts/verify.shexecutable | script | 2.1 KB |
evals/cases.yaml
View on GitHubskill: chrome-extension
should_trigger:
- prompt: "Build me a Chrome extension that highlights selected text on the page."
why: "Clear scaffolding-from-zero request — the core use case (manifest + content script + popup)."
- prompt: "My extension's background script keeps losing its state between events — the counter resets to zero."
why: "Non-obvious symptom of the ephemeral service worker killing globals; the fix (chrome.storage, top-level listeners) is this skill's heart."
- prompt: "The Chrome Web Store rejected my extension for excessive permissions. Help me fix the manifest."
why: "Store review + least-privilege permission model — activeTab vs host_permissions, justifications."
- prompt: "Migrate this Manifest V2 extension to V3 — it uses background scripts and blocking webRequest."
why: "MV2->MV3 migration map: background page->service worker, webRequest->declarativeNetRequest."
- prompt: "Crear una extensión para Chrome que bloquee anuncios con declarativeNetRequest."
why: "Spanish phrasing + DNR ad-blocking, the canonical replacement for blocking webRequest."
- prompt: "How do I send a message from my content script to the popup when the popup is closed?"
why: "Non-obvious cross-context messaging — there is no direct channel; route via service worker or storage."
should_not_trigger:
- prompt: "Build a desktop app with web technologies that runs outside the browser."
route_to: electron
why: "Standalone desktop shell, not a browser extension package."
- prompt: "Build me a Next.js dashboard with server components."
route_to: nextjs
why: "Generic web app — the explicit NOT boundary in the description."
- prompt: "Write the privacy policy text for my app's data collection."
route_to: gdpr-privacy
why: "Legal copy; this skill only says where the privacy URL plugs into the store listing."
- prompt: "Build a cross-platform desktop app in Rust with a web frontend."
route_to: tauri
why: "Native desktop via Rust, not a Chrome extension."
capability:
- scenario: "Scaffold a Manifest V3 extension that injects a content script on toolbar click (activeTab, not <all_urls>) and shows a click count in the popup that survives service worker restarts."
must_include:
- "manifest_version set to 3"
- "background.service_worker declared as a string (no background.scripts/page/persistent)"
- "activeTab permission rather than <all_urls> host_permissions"
- "count persisted with chrome.storage, not a background global variable"
- "event listeners registered synchronously at the top level"
- "chrome.scripting.executeScript or a declarative content_scripts entry"
- "icons (16/48/128) and a privacy/store note for shipping"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |