Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

moai-platform-chrome-extension

БесплатноБез исполняемых скриптовНе проверен

Chrome Extension Manifest V3 development specialist covering service workers, content scripts, message passing, chrome.* APIs, side panel…

modu-aiот modu-ai★ 1 264 звезды на GitHub

Об этом скилле

Chrome Extension Manifest V3 Development

Quick Reference

Chrome Extension Manifest V3 Development Specialist enables building modern browser extensions with the latest Chrome platform APIs.

Auto-Triggers: Chrome extension projects detected via manifest.json with manifest_version 3, service worker files, content script declarations, chrome API usage patterns

Core Capabilities

Manifest V3 Platform:

  • Service workers replace persistent background pages for event-driven architecture
  • Remote code execution removed for enhanced security
  • declarativeNetRequest replaces blocking webRequest for network filtering
  • Promise-based API methods across all chrome.* APIs
  • action API unifies browserAction and pageAction into single surface
  • Supported in Chrome 88 and later

Process Architecture:

  • Service worker runs as single event-driven background script terminating when idle
  • Content scripts execute in web page context within isolated worlds
  • Popup and side panel provide dedicated UI surfaces
  • Options page provides extension settings interface
  • DevTools panel extends Chrome Developer Tools

Communication Patterns:

  • One-time messages between service worker and content scripts via sendMessage
  • Long-lived connections via connect with port-based communication
  • Cross-extension messaging through externally_connectable declaration
  • Web page to extension messaging for verified origins

Security Model:

  • Content Security Policy restricts script sources to self only
  • No inline scripts or remote code execution permitted
  • Permissions declare required API access at install time
  • Optional permissions allow runtime-requested access with user consent
  • Host permissions control web page access patterns

Context7 Documentation Access

For latest Chrome Extension API documentation, use the Context7 MCP tools:

Step 1 - Resolve library ID: Use mcp__context7__resolve-library-id with query "chrome extension" to get the Context7-compatible library ID.

Step 2 - Fetch documentation: Use mcp__context7__get-library-docs with the resolved library ID, specifying topic and token allocation.

Example topics include "manifest v3 configuration", "service worker lifecycle", "content scripts injection", "message passing patterns", "chrome.storage API", "side panel API", and "declarativeNetRequest rules".


Module Index

This skill uses progressive disclosure with specialized modules for detailed implementation patterns.

Core Modules

manifest-v3-reference covers the complete manifest.json field reference for Manifest V3 extensions. Topics include required and optional fields, field types and constraints, permission declarations, MV2 to MV3 migration notes, and extension configuration best practices.

service-worker-patterns covers service worker lifecycle, event registration, state management, and debugging. Topics include event-driven architecture, top-level listener registration, state persistence with chrome.storage, keep-alive strategies, offscreen documents for DOM access, and debugging with chrome://extensions.

content-scripts-guide covers content script injection methods, isolated worlds, and communication. Topics include static declaration in manifest, dynamic registration with chrome.scripting, programmatic injection, isolated world architecture, DOM access patterns, and security considerations.

messaging-patterns covers message passing between extension components. Topics include one-time messages with sendMessage, long-lived connections with connect and ports, async response patterns, cross-extension messaging, web page messaging, and error handling strategies.

apis-quick-reference covers the major chrome.* APIs with method signatures and permission requirements. Topics include chrome.runtime, chrome.tabs, chrome.storage, chrome.action, chrome.scripting, chrome.alarms, chrome.notifications, chrome.contextMenus, chrome.sidePanel, chrome.declarativeNetRequest, chrome.offscreen, chrome.identity, and chrome.commands.

ui-components covers popup, side panel, options page, DevTools panel, and content script UI. Topics include popup HTML and lifecycle, side panel configuration and API, options page patterns, DevTools extension integration, and injected UI from content scripts.

security-csp covers Content Security Policy, permissions model, and secure coding practices. Topics include CSP configuration for extension pages, minimum privilege permissions, input validation, XSS prevention, secure messaging patterns, and HTTPS enforcement.

publishing-guide covers Chrome Web Store submission and distribution. Topics include developer account setup, extension packaging, privacy policy requirements, review process, update mechanisms, and self-hosted distribution.


Implementation Guide

Manifest V3 Structure

Every Chrome extension requires a manifest.json file at the project root. Three fields are mandatory: manifest_version set to integer 3, name as the extension display name with maximum 75

Полный SKILL.md на GitHub

Установить moai-platform-chrome-extension в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob
Bash(npm:*)
Bash(npx:*)
Bash(node:*)
WebFetch
WebSearch
mcp__context7__resolve-library-id
mcp__context7__get-library-docs

FAQ

Что делает скилл moai-platform-chrome-extension?

Chrome Extension Manifest V3 development specialist covering service workers, content scripts, message passing, chrome.* APIs, side panel, declarativeNetRequest, and Chrome Web Store publishing. Use when building browser extensions.

Как установить скилл moai-platform-chrome-extension?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл moai-platform-chrome-extension запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить moai-platform-chrome-extension с