{"id":"8e7f42b2-753c-4e68-98e3-d824e0a31937","shortId":"bPxZJC","kind":"skill","title":"chrome-extension","tagline":"Comprehensive guide for building Chrome extensions with Manifest V3. Use this skill whenever the user mentions Chrome extension, browser extension, manifest.json, content script, service worker (in extension context), popup, side panel, chrome.runtime, chrome.tabs, chrome.storage","description":"# Chrome Extension Development (Manifest V3)\n\nThis skill covers everything needed to build, debug, and publish Chrome extensions with MV3. It is organized as a routing document: read this file first to understand the architecture and decision points, then load the relevant reference file for implementation details.\n\n## Reference files\n\nRead only the reference files relevant to the current task. Each file is self-contained.\n\n| File | When to read |\n| --- | --- |\n| `references/manifest-v3.md` | Setting up or modifying manifest.json, configuring icons, versioning |\n| `references/service-worker.md` | Background logic, lifecycle, state persistence, alarms, events |\n| `references/content-scripts.md` | Injecting code into pages, isolated/main world, dynamic injection, SPA handling, orphaning |\n| `references/messaging-rpc.md` | Communication between any contexts, typed protocols, RPC layer, async handler patterns |\n| `references/ui-surfaces.md` | Popup, options page, side panel, context menus, commands, notifications, omnibox, devtools panel |\n| `references/storage.md` | chrome.storage (local/sync/session), quotas, reactive patterns, framework hooks |\n| `references/network-csp.md` | HTTP requests from content scripts, CSP bypass relay, declarativeNetRequest, offscreen docs, CORS |\n| `references/permissions.md` | Required/optional permissions, host permissions, activeTab, runtime request flow |\n| `references/web-accessible-resources.md` | Exposing extension files to web pages, security implications |\n| `references/typescript-build.md` | TypeScript setup, project structure, build tools comparison, bundling |\n| `references/publishing.md` | Chrome Web Store submission, review process, rejection reasons, updates, privacy policy |\n| `references/execution-contexts.md` | Communication flow diagrams, per-context capabilities/limits, choosing the right messaging method |\n| `references/debugging-mistakes.md` | DevTools for extensions, testing SW termination, common gotchas, error patterns |\n\n## Architecture overview\n\nA Chrome extension has up to 5 execution contexts that communicate via message passing:\n\n```\n┌──────────────────────────────────────────────────────────┐\n│ Extension Process                                        │\n│  ┌─────────────────┐  ┌───────┐  ┌─────────┐  ┌──────┐ │\n│  │ Service Worker   │  │ Popup │  │ Options │  │ Side │ │\n│  │ (background)     │  │       │  │  Page   │  │Panel │ │\n│  │ - No DOM         │  │ Full  │  │  Full   │  │ Full │ │\n│  │ - Ephemeral      │  │ DOM   │  │  DOM    │  │ DOM  │ │\n│  │ - All chrome.*   │  │ All   │  │  All    │  │ All  │ │\n│  │   APIs           │  │ APIs  │  │  APIs   │  │ APIs │ │\n│  └────────┬─────────┘  └───┬───┘  └────┬────┘  └──┬───┘ │\n│           │ chrome.runtime.sendMessage / connect   │     │\n└───────────┼────────────────┼───────────┼──────────┼──────┘\n            │                │           │          │\n    chrome.tabs.sendMessage  │           │          │\n            │                │           │          │\n┌───────────┼────────────────┼───────────┼──────────┼──────┐\n│ Web Page  ▼                                              │\n│  ┌──────────────────┐    ┌──────────────────┐            │\n│  │ Content Script    │    │ Main World Script │            │\n│  │ (isolated world)  │◄──►│ (page context)    │            │\n│  │ - Shared DOM      │    │ - Shared DOM      │            │\n│  │ - Own JS scope    │    │ - Page JS scope   │            │\n│  │ - chrome.runtime  │    │ - No chrome.* API │            │\n│  │ - chrome.storage  │    │ - Full page access│            │\n│  │ - Subject to CSP  │    │ - Subject to CSP  │            │\n│  │   (network only)  │    │   (fully)         │            │\n│  └──────────────────┘    └──────────────────┘            │\n│           ▲ window.postMessage                           │\n│           │ (through shared DOM)                         │\n└──────────────────────────────────────────────────────────┘\n```\n\n### Communication flows (labeled channels)\n\n```\n┌───────────────────────────────────────────────────────────────────────────┐\n│ Extension Process                                                         │\n│                                                                           │\n│  ┌─────────────────┐  chrome.runtime   ┌───────┐  ┌─────────┐  ┌──────┐ │\n│  │ Service Worker   │◄─.sendMessage()──│ Popup │  │ Options │  │ Side │ │\n│  │ (background)     │◄─.connect()──────│       │  │  Page   │  │Panel │ │\n│  │                  │                  └───────┘  └─────────┘  └──────┘ │\n│  │ - No DOM         │  ┌────────────────────────────────────────────┐   │\n│  │ - Ephemeral 30s  │  │ SW cannot push to these pages.             │   │\n│  │ - All chrome.*   │  │ Use: ports (.connect) or storage.onChanged │   │\n│  └────────┬─────────┘  └────────────────────────────────────────────┘   │\n│           │                                                              │\n│  chrome.storage.onChanged ◄── fires across ALL contexts simultaneously  │\n│                                                                           │\n└───────────┼──────────────────────────────────────────────────────────────┘\n            │ chrome.tabs.sendMessage(tabId, ...) [SW must know tabId]\n            │\n┌───────────┼──────────────────────────────────────────────────────────────┐\n│ Web Page  ▼                                                              │\n│  ┌──────────────────┐  window.postMessage  ┌──────────────────┐         │\n│  │ Content Script    │◄───────────────────►│ Main World Script │         │\n│  │ (isolated world)  │  Custom DOM events  │ (page context)    │         │\n│  │                   │                     │                   │         │\n│  │ chrome.runtime ───┼── to/from SW        │ No chrome.* APIs  │         │\n│  │ chrome.storage    │                     │ Full page JS      │         │\n│  │ Shared DOM        │                     │ Shared DOM        │         │\n│  │ Page CSP (network)│                     │ Page CSP (full)   │         │\n│  └──────────────────┘                     └──────────────────┘         │\n└──────────────────────────────────────────────────────────────────────────┘\n```\n\nFor detailed flow diagrams (three-layer bridge, cross-extension, storage broadcast) and a per-context breakdown of permissions, limits, and workarounds: → Read `references/execution-contexts.md`\n\n### Communication methods at a glance\n\n| Method | Direction | Best for |\n| --- | --- | --- |\n| `chrome.runtime.sendMessage` | Any ext context → SW | One-shot request/response (90% of cases) |\n| `chrome.tabs.sendMessage` | SW → content script (by tabId) | Pushing data to a specific tab |\n| `chrome.runtime.connect` (Port) | Bidirectional | Streaming, progress, SW ↔ popup |\n| `window.postMessage` | Between worlds on same page | Page JS ↔ content script bridge |\n| `chrome.storage.onChanged` | Broadcast to all contexts | Settings sync, no messaging needed |\n\n→ Full matrix with limits and edge cases: `references/execution-contexts.md` → Implementation patterns, typed protocols, RPC layer: `references/messaging-rpc.md`\n\n### Key architectural rules\n\n1. **Service worker is ephemeral.** It terminates after 30s of inactivity. All state must be persisted to chrome.storage. All event listeners must be registered synchronously at the top level. Never use setTimeout/setInterval for anything beyond a few seconds. → Read `references/service-worker.md`\n\n2. **Content scripts run in the page's origin.** Network requests from content scripts are subject to the page's CSP and CORS. To bypass, relay through the service worker. → Read `references/network-csp.md`\n\n3. **Messaging is the backbone.** Every cross-context interaction uses chrome.runtime messaging. The #1 bug: forgetting to `return true` from async message listeners. → Read `references/messaging-rpc.md`\n\n4. **Permissions determine CWS review speed.** Broad host_permissions trigger manual review (weeks). activeTab + optional permissions = fast automated review. → Read `references/permissions.md`\n\n5. **Popup is destroyed on blur.** Side panel persists. Choose based on interaction duration. → Read `references/ui-surfaces.md`\n\n## Decision tree: which context handles what?\n\n### \"I need to run code when the user visits a page\"\n\n→ Content script. Static (manifest) for known URL patterns, dynamic (chrome.scripting) for user-triggered injection. Default to isolated world unless you need page JS access. → Read `references/content-scripts.md`\n\n### \"I need to make an HTTP request to my API\"\n\n- From popup/options/side panel: direct fetch() works (extension origin, no CSP issues)\n- From content script on a page with restrictive CSP: relay through service worker\n- From service worker: direct fetch() works (requires host_permissions for the target domain) → Read `references/network-csp.md`\n\n### \"I need to store user settings\"\n\n- Settings that sync across devices: chrome.storage.sync (100KB limit)\n- Large data or caches: chrome.storage.local (10MB, or unlimited with permission)\n- Ephemeral state surviving SW restarts: chrome.storage.session → Read `references/storage.md`\n\n### \"I need to modify HTTP headers or block requests\"\n\n→ declarativeNetRequest (NOT webRequest, which lost blocking in MV3) → Read `references/network-csp.md`\n\n### \"I need the page's JavaScript to talk to my extension\"\n\n→ Three-layer bridge: page (window.postMessage) → content script → service worker → Read `references/messaging-rpc.md`\n\n### \"I need to understand what each context can and cannot do\"\n\n→ Read `references/execution-contexts.md` — per-context cards listing chrome.\\* access, DOM, network, storage, lifetime, hard limits, and practical workarounds.\n\n### \"I need periodic background tasks\"\n\n→ chrome.alarms (minimum 30s interval). NOT setTimeout. → Read `references/service-worker.md`\n\n### \"I need DOM APIs in the background\" (DOMParser, Canvas, Audio)\n\n→ Offscreen document. One per extension, only chrome.runtime available. → Read `references/network-csp.md`\n\n### \"I need to authenticate with OAuth\"\n\n→ chrome.identity.launchWebAuthFlow() or chrome.identity.getAuthToken() (Google only) → Read `references/service-worker.md` (identity section)\n\n## Workflow: new extension from scratch\n\n1. **Define the manifest** with minimum permissions. Start with `activeTab` + `scripting`. → Read `references/manifest-v3.md`\n\n2. **Set up TypeScript and build tooling** (or use CRXJS for Vite-based dev). → Read `references/typescript-build.md`\n\n3. **Implement the service worker** with all event listeners at the top level. → Read `references/service-worker.md`\n\n4. **Add content scripts** if you need page interaction. → Read `references/content-scripts.md`\n\n5. **Build UI surfaces** (popup, options, side panel) as needed. → Read `references/ui-surfaces.md`\n\n6. **Wire up messaging** between all contexts. → Read `references/messaging-rpc.md`\n\n7. **Test with DevTools**, specifically test service worker termination. → Read `references/debugging-mistakes.md`\n\n8. **Publish to Chrome Web Store.** → Read `references/publishing.md`\n\n## Workflow: adding a feature to an existing extension\n\n1. Identify which context the feature belongs to (see decision tree above).\n2. Read the relevant reference file(s) for that context.\n3. Check if new permissions are needed. Prefer optional_permissions for new capabilities. → Read `references/permissions.md`\n4. Update the manifest if adding new content scripts, UI surfaces, or permissions.\n5. Handle extension updates gracefully (content script orphaning). → Read `references/content-scripts.md` (orphaning section)\n\n## Minimal manifest.json template\n\n```json\n{\n  \"manifest_version\": 3,\n  \"name\": \"My Extension\",\n  \"version\": \"1.0.0\",\n  \"description\": \"What it does in one sentence\",\n  \"permissions\": [\"storage\", \"activeTab\", \"scripting\"],\n  \"action\": {\n    \"default_popup\": \"popup.html\",\n    \"default_icon\": {\n      \"16\": \"icons/icon16.png\",\n      \"48\": \"icons/icon48.png\",\n      \"128\": \"icons/icon128.png\"\n    }\n  },\n  \"background\": {\n    \"service_worker\": \"background.js\",\n    \"type\": \"module\"\n  },\n  \"icons\": {\n    \"16\": \"icons/icon16.png\",\n    \"48\": \"icons/icon48.png\",\n    \"128\": \"icons/icon128.png\"\n  }\n}\n```\n\n→ For the full manifest reference with all fields: `references/manifest-v3.md`\n\n## Code patterns quick reference\n\n### Async message handler (the safe pattern)\n\n```typescript\n// Wrap async handlers to avoid the return-true trap\nfunction asyncHandler(\n  fn: (msg: any, sender: chrome.runtime.MessageSender) => Promise<any>,\n) {\n  return (\n    message: any,\n    sender: chrome.runtime.MessageSender,\n    sendResponse: (r: any) => void,\n  ) => {\n    fn(message, sender)\n      .then(sendResponse)\n      .catch((e) => sendResponse({ __error: true, message: e.message }));\n    return true; // literal true, not Promise<true>\n  };\n}\n\nchrome.runtime.onMessage.addListener(\n  asyncHandler(async (msg, sender) => {\n    if (msg.type === \"FETCH\") {\n      const res = await fetch(msg.url);\n      return { ok: res.ok, data: await res.text() };\n    }\n  }),\n);\n```\n\n### CSP bypass relay (content script → service worker → API)\n\n```typescript\n// content-script.ts\nasync function apiCall(endpoint: string, options?: RequestInit) {\n  return chrome.runtime.sendMessage({ type: \"API_RELAY\", endpoint, options });\n}\n\n// background.ts\nconst ALLOWED_ENDPOINTS = [\"https://api.example.com\"];\nchrome.runtime.onMessage.addListener(\n  asyncHandler(async (msg) => {\n    if (msg.type !== \"API_RELAY\") return;\n    if (!ALLOWED_ENDPOINTS.some((e) => msg.endpoint.startsWith(e))) {\n      throw new Error(\"Blocked endpoint\");\n    }\n    const res = await fetch(msg.endpoint, msg.options);\n    return { ok: res.ok, status: res.status, data: await res.text() };\n  }),\n);\n```\n\n### Persist state across SW restarts\n\n```typescript\n// Use chrome.storage.session for ephemeral state\nchrome.storage.session.setAccessLevel({\n  accessLevel: \"TRUSTED_AND_UNTRUSTED_CONTEXTS\",\n});\n\nasync function getState<T>(key: string, fallback: T): Promise<T> {\n  const result = await chrome.storage.session.get(key);\n  return result[key] ?? fallback;\n}\nasync function setState<T>(key: string, value: T): Promise<void> {\n  await chrome.storage.session.set({ [key]: value });\n}\n```\n\n### Orphaned content script detection\n\n```typescript\nfunction isExtensionContextValid(): boolean {\n  try {\n    return !!chrome.runtime?.id;\n  } catch {\n    return false;\n  }\n}\n\n// Before any chrome.runtime call\nif (!isExtensionContextValid()) {\n  showRefreshBanner();\n  return;\n}\n```\n\n## What NOT to do\n\n- Do NOT use `eval()`, `new Function()`, or load remote scripts. MV3 forbids it.\n- Do NOT use `setTimeout`/`setInterval` for anything > 5s in service workers.\n- Do NOT register event listeners inside callbacks or async functions.\n- Do NOT use `<all_urls>` host permission unless absolutely necessary.\n- Do NOT rely on DevTools keeping the service worker alive during testing.\n- Do NOT forget `return true` in async message listeners.\n- Do NOT use `localStorage` or `sessionStorage` in service workers (they don't exist there).\n- Do NOT assume content scripts survive extension updates.\n- Do NOT use `webRequest` blocking (removed in MV3). Use `declarativeNetRequest`.\n- Do NOT use `chrome.extension.getBackgroundPage()` (removed in MV3).","tags":["chrome","extension","skills","samber","agent","agent-skills","antigravity","claude","claude-code","code","codex","coding"],"capabilities":["skill","source-samber","skill-chrome-extension","topic-agent","topic-agent-skills","topic-antigravity","topic-claude","topic-claude-code","topic-code","topic-codex","topic-coding","topic-copilot","topic-cursor","topic-gemini","topic-gemini-cli-extension"],"categories":["cc-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/samber/cc-skills/chrome-extension","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add samber/cc-skills","source_repo":"https://github.com/samber/cc-skills","install_from":"skills.sh"}},"qualityScore":"0.489","qualityRationale":"deterministic score 0.49 from registry signals: · indexed on github topic:agent-skills · 79 github stars · SKILL.md body (15,217 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-02T06:55:37.168Z","embedding":null,"createdAt":"2026-04-18T22:13:29.913Z","updatedAt":"2026-05-02T06:55:37.168Z","lastSeenAt":"2026-05-02T06:55:37.168Z","tsv":"'1':519,605,903,1007 '1.0.0':1080 '100kb':759 '10mb':766 '128':1102,1115 '16':1098,1111 '2':559,916,1019 '3':591,933,1029,1075 '30s':353,527,857 '4':617,948,1044 '48':1100,1113 '5':252,638,959,1057 '5s':1356 '6':971 '7':980 '8':991 '90':458 'absolut':1376 'access':319,695,840 'accesslevel':1275 'across':369,756,1265 'action':1092 'activetab':186,630,912,1090 'ad':1000,1049 'add':949 'alarm':121 'aliv':1387 'allow':1227 'allowed_endpoints.some':1240 'anyth':552,1355 'api':284,285,286,287,315,399,707,866,1208,1221,1236 'api.example.com':1229 'apical':1213 'architectur':71,244,517 'assum':1415 'async':144,612,1130,1138,1184,1211,1232,1280,1297,1368,1396 'asynchandl':1148,1183,1231 'audio':872 'authent':886 'autom':634 'avail':880 'avoid':1141 'await':1192,1199,1251,1261,1290,1305 'backbon':595 'background':116,267,346,853,869,1104 'background.js':1107 'background.ts':1225 'base':648,929 'belong':1013 'best':447 'beyond':553 'bidirect':475 'block':786,793,1247,1425 'blur':643 'boolean':1316 'breakdown':432 'bridg':421,490,812 'broad':623 'broadcast':426,492 'browser':22 'bug':606 'build':7,49,204,921,960 'bundl':207 'bypass':175,583,1202 'cach':764 'call':1327 'callback':1366 'cannot':355,830 'canva':871 'capabilities/limits':227 'capabl':1041 'card':837 'case':460,507 'catch':1169,1321 'channel':336 'check':1030 'choos':228,647 'chrome':2,8,20,38,53,209,247,280,314,361,398,839,994 'chrome-extens':1 'chrome.alarms':855 'chrome.extension.getbackgroundpage':1434 'chrome.identity.getauthtoken':891 'chrome.identity.launchwebauthflow':889 'chrome.runtime':35,312,339,394,602,879,1319,1326 'chrome.runtime.connect':473 'chrome.runtime.messagesender':1153,1159 'chrome.runtime.onmessage.addlistener':1182,1230 'chrome.runtime.sendmessage':288,449,1219 'chrome.scripting':680 'chrome.storage':37,161,316,400,536 'chrome.storage.local':765 'chrome.storage.onchanged':367,491 'chrome.storage.session':776,1270 'chrome.storage.session.get':1291 'chrome.storage.session.set':1306 'chrome.storage.session.setaccesslevel':1274 'chrome.storage.sync':758 'chrome.tabs':36 'chrome.tabs.sendmessage':290,373,461 'code':125,664,1126 'command':155 'common':240 'communic':136,221,256,333,440 'comparison':206 'comprehens':4 'configur':112 'connect':289,347,364 'const':1190,1226,1249,1288 'contain':101 'content':25,172,293,382,463,488,560,571,671,720,815,950,1051,1062,1204,1310,1416 'content-script.ts':1210 'context':31,139,153,226,254,301,371,393,431,452,495,599,657,827,836,977,1010,1028,1279 'cor':180,581 'cover':45 'cross':423,598 'cross-context':597 'cross-extens':422 'crxjs':925 'csp':174,322,325,409,412,579,717,727,1201 'current':94 'custom':389 'cws':620 'data':468,762,1198,1260 'debug':50 'decis':73,654,1016 'declarativenetrequest':177,788,1430 'default':686,1093,1096 'defin':904 'descript':1081 'destroy':641 'detail':83,415 'detect':1312 'determin':619 'dev':930 'develop':40 'devic':757 'devtool':158,234,983,1382 'diagram':223,417 'direct':446,711,735 'doc':179 'document':63,874 'dom':271,276,277,278,303,305,332,351,390,405,407,841,865 'domain':744 'dompars':870 'durat':651 'dynam':130,679 'e':1170,1241,1243 'e.message':1175 'edg':506 'endpoint':1214,1223,1228,1248 'ephemer':275,352,523,771,1272 'error':242,1172,1246 'eval':1339 'event':122,391,538,940,1363 'everi':596 'everyth':46 'execut':253 'exist':1005,1411 'expos':191 'ext':451 'extens':3,9,21,23,30,39,54,192,236,248,260,337,424,714,808,877,900,1006,1059,1078,1419 'fallback':1285,1296 'fals':1323 'fast':633 'featur':1002,1012 'fetch':712,736,1189,1193,1252 'field':1124 'file':66,80,85,90,97,102,193,1024 'fire':368 'first':67 'flow':189,222,334,416 'fn':1149,1164 'forbid':1347 'forget':607,1392 'framework':166 'full':272,273,274,317,401,413,501,1119 'fulli':328 'function':1147,1212,1281,1298,1314,1341,1369 'getstat':1282 'glanc':444 'googl':892 'gotcha':241 'grace':1061 'guid':5 'handl':133,658,1058 'handler':145,1132,1139 'hard':845 'header':784 'hook':167 'host':184,624,739,1373 'http':169,703,783 'icon':113,1097,1110 'icons/icon128.png':1103,1116 'icons/icon16.png':1099,1112 'icons/icon48.png':1101,1114 'id':1320 'ident':896 'identifi':1008 'implement':82,509,934 'implic':198 'inact':529 'inject':124,131,685 'insid':1365 'interact':600,650,956 'interv':858 'isextensioncontextvalid':1315,1329 'isol':298,387,688 'isolated/main':128 'issu':718 'javascript':803 'js':307,310,403,487,694 'json':1072 'keep':1383 'key':516,1283,1292,1295,1300,1307 'know':377 'known':676 'label':335 'larg':761 'layer':143,420,514,811 'level':547,945 'lifecycl':118 'lifetim':844 'limit':435,504,760,846 'list':838 'listen':539,614,941,1364,1398 'liter':1178 'load':76,1343 'local/sync/session':162 'localstorag':1402 'logic':117 'lost':792 'main':295,384 'make':701 'manifest':11,41,674,906,1047,1073,1120 'manifest.json':24,111,1070 'manual':627 'matrix':502 'mention':19 'menus':154 'messag':231,258,499,592,603,613,974,1131,1156,1165,1174,1397 'method':232,441,445 'minim':1069 'minimum':856,908 'modifi':110,782 'modul':1109 'msg':1150,1185,1233 'msg.endpoint':1253 'msg.endpoint.startswith':1242 'msg.options':1254 'msg.type':1188,1235 'msg.url':1194 'must':376,532,540 'mv3':56,795,1346,1428,1437 'name':1076 'necessari':1377 'need':47,500,661,692,699,748,780,799,822,851,864,884,954,968,1035 'network':326,410,568,842 'never':548 'new':899,1032,1040,1050,1245,1340 'notif':156 'oauth':888 'offscreen':178,873 'ok':1196,1256 'omnibox':157 'one':455,875,1086 'one-shot':454 'option':149,265,344,631,964,1037,1216,1224 'organ':59 'origin':567,715 'orphan':134,1064,1067,1309 'overview':245 'page':127,150,196,268,292,300,309,318,348,359,380,392,402,408,411,485,486,565,577,670,693,724,801,813,955 'panel':34,152,159,269,349,645,710,966 'pass':259 'pattern':146,165,243,510,678,1127,1135 'per':225,430,835,876 'per-context':224,429,834 'period':852 'permiss':183,185,434,618,625,632,740,770,909,1033,1038,1056,1088,1374 'persist':120,534,646,1263 'point':74 'polici':219 'popup':32,148,264,343,479,639,963,1094 'popup.html':1095 'popup/options/side':709 'port':363,474 'practic':848 'prefer':1036 'privaci':218 'process':214,261,338 'progress':477 'project':202 'promis':1154,1181,1287,1304 'protocol':141,512 'publish':52,992 'push':356,467 'quick':1128 'quota':163 'r':1161 'reactiv':164 'read':64,86,105,438,557,589,615,636,652,696,745,777,796,819,832,861,881,894,914,931,946,957,969,978,989,997,1020,1042,1065 'reason':216 'refer':79,84,89,1023,1121,1129 'references/content-scripts.md':123,697,958,1066 'references/debugging-mistakes.md':233,990 'references/execution-contexts.md':220,439,508,833 'references/manifest-v3.md':106,915,1125 'references/messaging-rpc.md':135,515,616,820,979 'references/network-csp.md':168,590,746,797,882 'references/permissions.md':181,637,1043 'references/publishing.md':208,998 'references/service-worker.md':115,558,862,895,947 'references/storage.md':160,778 'references/typescript-build.md':199,932 'references/ui-surfaces.md':147,653,970 'references/web-accessible-resources.md':190 'regist':542,1362 'reject':215 'relay':176,584,728,1203,1222,1237 'relev':78,91,1022 'reli':1380 'remot':1344 'remov':1426,1435 'request':170,188,569,704,787 'request/response':457 'requestinit':1217 'requir':738 'required/optional':182 'res':1191,1250 'res.ok':1197,1257 'res.status':1259 'res.text':1200,1262 'restart':775,1267 'restrict':726 'result':1289,1294 'return':609,1144,1155,1176,1195,1218,1238,1255,1293,1318,1322,1331,1393 'return-tru':1143 'review':213,621,628,635 'right':230 'rout':62 'rpc':142,513 'rule':518 'run':562,663 'runtim':187 'safe':1134 'scope':308,311 'scratch':902 'script':26,173,294,297,383,386,464,489,561,572,672,721,816,913,951,1052,1063,1091,1205,1311,1345,1417 'second':556 'section':897,1068 'secur':197 'see':1015 'self':100 'self-contain':99 'sender':1152,1158,1166,1186 'sendmessag':342 'sendrespons':1160,1168,1171 'sentenc':1087 'servic':27,262,340,520,587,730,733,817,936,986,1105,1206,1358,1385,1406 'sessionstorag':1404 'set':107,496,752,753,917 'setinterv':1353 'setstat':1299 'settimeout':860,1352 'settimeout/setinterval':550 'setup':201 'share':302,304,331,404,406 'shot':456 'showrefreshbann':1330 'side':33,151,266,345,644,965 'simultan':372 'skill':15,44 'skill-chrome-extension' 'source-samber' 'spa':132 'specif':471,984 'speed':622 'start':910 'state':119,531,772,1264,1273 'static':673 'status':1258 'storag':425,843,1089 'storage.onchanged':366 'store':211,750,996 'stream':476 'string':1215,1284,1301 'structur':203 'subject':320,323,574 'submiss':212 'surfac':962,1054 'surviv':773,1418 'sw':238,354,375,396,453,462,478,774,1266 'sync':497,755 'synchron':543 'tab':472 'tabid':374,378,466 'talk':805 'target':743 'task':95,854 'templat':1071 'termin':239,525,988 'test':237,981,985,1389 'three':419,810 'three-lay':418,809 'throw':1244 'to/from':395 'tool':205,922 'top':546,944 'topic-agent' 'topic-agent-skills' 'topic-antigravity' 'topic-claude' 'topic-claude-code' 'topic-code' 'topic-codex' 'topic-coding' 'topic-copilot' 'topic-cursor' 'topic-gemini' 'topic-gemini-cli-extension' 'trap':1146 'tree':655,1017 'tri':1317 'trigger':626,684 'true':610,1145,1173,1177,1179,1394 'trust':1276 'type':140,511,1108,1220 'typescript':200,919,1136,1209,1268,1313 'ui':961,1053 'understand':69,824 'unless':690,1375 'unlimit':768 'untrust':1278 'updat':217,1045,1060,1420 'url':677 'use':13,362,549,601,924,1269,1338,1351,1372,1401,1423,1429,1433 'user':18,667,683,751 'user-trigg':682 'v3':12,42 'valu':1302,1308 'version':114,1074,1079 'via':257 'visit':668 'vite':928 'vite-bas':927 'void':1163 'web':195,210,291,379,995 'webrequest':790,1424 'week':629 'whenev':16 'window.postmessage':329,381,480,814 'wire':972 'work':713,737 'workaround':437,849 'worker':28,263,341,521,588,731,734,818,937,987,1106,1207,1359,1386,1407 'workflow':898,999 'world':129,296,299,385,388,482,689 'wrap':1137","prices":[{"id":"0b673632-de93-4521-8955-cf01ab85b5c8","listingId":"8e7f42b2-753c-4e68-98e3-d824e0a31937","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"samber","category":"cc-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T22:13:29.913Z"}],"sources":[{"listingId":"8e7f42b2-753c-4e68-98e3-d824e0a31937","source":"github","sourceId":"samber/cc-skills/chrome-extension","sourceUrl":"https://github.com/samber/cc-skills/tree/main/skills/chrome-extension","isPrimary":false,"firstSeenAt":"2026-04-18T22:13:29.913Z","lastSeenAt":"2026-05-02T06:55:37.168Z"}],"details":{"listingId":"8e7f42b2-753c-4e68-98e3-d824e0a31937","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"samber","slug":"chrome-extension","github":{"repo":"samber/cc-skills","stars":79,"topics":["agent","agent-skills","ai","antigravity","claude","claude-code","code","codex","coding","copilot","cursor","gemini","gemini-cli-extension","openclaw","opencode","plugin","skills","skillsmp","vibe-coding"],"license":"mit","html_url":"https://github.com/samber/cc-skills","pushed_at":"2026-05-01T17:07:53Z","description":"🧑‍🎨 A collection of agentic skills that works","skill_md_sha":"089a53dbd6f54fd13826f4ca626cd1a4ab6ac0db","skill_md_path":"skills/chrome-extension/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/samber/cc-skills/tree/main/skills/chrome-extension"},"layout":"multi","source":"github","category":"cc-skills","frontmatter":{"name":"chrome-extension","license":"MIT","description":"Comprehensive guide for building Chrome extensions with Manifest V3. Use this skill whenever the user mentions Chrome extension, browser extension, manifest.json, content script, service worker (in extension context), popup, side panel, chrome.runtime, chrome.tabs, chrome.storage, chrome.scripting, background script, MV3, Manifest V3, or any Chrome extension API. Also trigger when the user wants to inject scripts into web pages, communicate between page and background, bypass CSP from a content script, build an RPC layer over chrome messaging, or publish to the Chrome Web Store. Covers both new extension projects and adding features to existing ones. Do NOT use for framework-specific questions.","compatibility":"Designed for Claude Code or similar AI coding agents. Requires git, node."},"skills_sh_url":"https://skills.sh/samber/cc-skills/chrome-extension"},"updatedAt":"2026-05-02T06:55:37.168Z"}}