Comprehensive Manifest V3 reference covering manifest.json structure, all fields, service workers, content scripts, permissions, CSP, icons, and side panel configuration. Use when creating or modifying Chrome Extension manifests.
Provides complete Manifest V3 schema reference for Chrome extensions, covering all fields, service workers, permissions, and configuration. Use when creating or modifying extension manifest.json files.
/plugin marketplace add francanete/fran-marketplace/plugin install chrome-extension-expert@fran-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
{
"manifest_version": 3,
"name": "Extension Name",
"version": "1.0.0",
"description": "Brief description (max 132 chars for store)"
}
| Field | Type | Description |
|---|---|---|
manifest_version | integer | Must be 3 |
name | string | Extension name (max 45 chars) |
version | string | Version string (e.g., "1.0.0") |
| Field | Type | Description |
|---|---|---|
description | string | Brief description |
icons | object | Extension icons |
action | object | Toolbar button config |
{
"icons": {
"16": "icons/icon16.png",
"32": "icons/icon32.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
}
}
| Size | Usage |
|---|---|
| 16x16 | Favicon, toolbar |
| 32x32 | Windows computers |
| 48x48 | Extensions management page |
| 128x128 | Chrome Web Store |
{
"background": {
"service_worker": "background.js",
"type": "module"
}
}
| Property | Description |
|---|---|
service_worker | Path to service worker file |
type | Set to "module" for ES module support |
Key Differences from MV2:
chrome.alarms for periodic tasks{
"action": {
"default_icon": {
"16": "icons/icon16.png",
"32": "icons/icon32.png"
},
"default_title": "Click to activate",
"default_popup": "popup.html"
}
}
| Property | Description |
|---|---|
default_icon | Icon shown in toolbar |
default_title | Tooltip text |
default_popup | Popup HTML file |
Note: Replaces both browser_action and page_action from MV2.
{
"content_scripts": [
{
"matches": ["*://*.example.com/*"],
"js": ["content.js"],
"css": ["content.css"],
"run_at": "document_idle",
"all_frames": false,
"match_about_blank": false,
"match_origin_as_fallback": false
}
]
}
| Property | Description |
|---|---|
matches | URL patterns to match (required) |
exclude_matches | URL patterns to exclude |
js | JavaScript files to inject |
css | CSS files to inject |
run_at | When to inject (document_start, document_end, document_idle) |
all_frames | Inject into all frames |
match_about_blank | Match about:blank frames |
world | Execution world (ISOLATED or MAIN) |
<scheme>://<host><path>
Examples:
*://*.google.com/* - All Google domains
https://example.com/* - Only HTTPS example.com
*://*/api/* - Any URL with /api/ path
<all_urls> - All URLs (requires justification)
{
"side_panel": {
"default_path": "sidepanel.html"
}
}
Required Permission: "sidePanel"
{
"permissions": [
"storage",
"tabs",
"activeTab",
"alarms",
"notifications",
"contextMenus",
"sidePanel"
]
}
| Permission | Description |
|---|---|
activeTab | Access active tab on user gesture |
alarms | Schedule code to run |
bookmarks | Read/write bookmarks |
contextMenus | Add context menu items |
cookies | Read/write cookies |
history | Read/write history |
identity | OAuth authentication |
notifications | Show notifications |
scripting | Execute scripts programmatically |
sidePanel | Use side panel |
storage | Use chrome.storage API |
tabs | Access tab information |
webNavigation | Track page navigation |
{
"host_permissions": [
"*://*.example.com/*",
"https://api.service.com/*"
]
}
Separated from permissions in MV3 for clearer security model.
{
"optional_permissions": ["tabs", "history"],
"optional_host_permissions": ["*://*.optional-site.com/*"]
}
Request at runtime:
chrome.permissions.request({
permissions: ['tabs'],
origins: ['*://*.optional-site.com/*']
});
{
"web_accessible_resources": [
{
"resources": ["images/*.png", "scripts/inject.js"],
"matches": ["*://*.example.com/*"]
},
{
"resources": ["fonts/*"],
"matches": ["<all_urls>"],
"use_dynamic_url": true
}
]
}
| Property | Description |
|---|---|
resources | Files accessible from web pages |
matches | Which pages can access |
extension_ids | Which extensions can access |
use_dynamic_url | Generate unique URL per session |
{
"content_security_policy": {
"extension_pages": "script-src 'self'; object-src 'self'",
"sandbox": "sandbox allow-scripts; script-src 'self'"
}
}
MV3 Restrictions:
unsafe-eval{
"declarative_net_request": {
"rule_resources": [
{
"id": "ruleset_1",
"enabled": true,
"path": "rules.json"
}
]
},
"permissions": ["declarativeNetRequest"]
}
rules.json:
[
{
"id": 1,
"priority": 1,
"action": { "type": "block" },
"condition": {
"urlFilter": "||ads.example.com",
"resourceTypes": ["script", "image"]
}
}
]
{
"options_page": "options.html",
// OR embedded in extensions page:
"options_ui": {
"page": "options.html",
"open_in_tab": false
}
}
{
"commands": {
"_execute_action": {
"suggested_key": {
"default": "Ctrl+Shift+Y",
"mac": "Command+Shift+Y"
},
"description": "Activate extension"
},
"custom_command": {
"suggested_key": {
"default": "Ctrl+Shift+U"
},
"description": "Custom action"
}
}
}
{
"externally_connectable": {
"ids": ["other_extension_id"],
"matches": ["https://example.com/*"]
}
}
Allows external websites or extensions to send messages.
{
"incognito": "spanning"
}
| Value | Description |
|---|---|
spanning | Single instance for normal and incognito |
split | Separate instances |
not_allowed | Disabled in incognito |
{
"minimum_chrome_version": "88"
}
{
"name": "__MSG_extension_name__",
"default_locale": "en"
}
Requires _locales/en/messages.json:
{
"extension_name": {
"message": "My Extension",
"description": "Extension name"
}
}
{
"manifest_version": 3,
"name": "My Extension",
"version": "1.0.0",
"description": "A helpful Chrome extension",
"icons": {
"16": "icons/icon16.png",
"48": "icons/icon48.png",
"128": "icons/icon128.png"
},
"action": {
"default_popup": "popup.html",
"default_icon": {
"16": "icons/icon16.png",
"32": "icons/icon32.png"
}
},
"background": {
"service_worker": "background.js",
"type": "module"
},
"content_scripts": [{
"matches": ["*://*.example.com/*"],
"js": ["content.js"],
"css": ["content.css"]
}],
"side_panel": {
"default_path": "sidepanel.html"
},
"permissions": [
"storage",
"activeTab",
"sidePanel",
"alarms"
],
"host_permissions": [
"*://*.example.com/*"
],
"web_accessible_resources": [{
"resources": ["images/*"],
"matches": ["*://*.example.com/*"]
}],
"options_ui": {
"page": "options.html",
"open_in_tab": false
},
"commands": {
"_execute_action": {
"suggested_key": {
"default": "Ctrl+Shift+E"
}
}
}
}
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.