Firefox Extensionのロゴ

Firefox Extension

組織
CodeAtCode
firefox-extension

Use when developing Firefox WebExtensions - Manifest V2/V3 configuration, WebExtension APIs, content security policy, web-ext CLI, cross-browser support with the polyfill, AMO submission, or debugging extensions

概要

公開者CodeAtCode
リポジトリoss-ai-skills
スキル名firefox-extension
スター
30
フォーク
3
同梱ファイル
7
ライセンスGPL-3.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 7個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    CodeAtCodeがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルFirefox ExtensionをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/CodeAtCode/oss-ai-skills/tree/master/extend/firefox-extension
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/CodeAtCode/oss-ai-skills.git /tmp/oss-ai-skills
mkdir -p .claude/skills
cp -r /tmp/oss-ai-skills/extend/firefox-extension .claude/skills/firefox-extension
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでFirefox Extensionを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にFirefox Extensionを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Firefox Extensionは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Objective: Use this skill to reduce CSP-violation rejections, manifest-schema breakages, AMO-review failures, and cross-browser compat bugs by enforcing manifest-version discipline, CSP-safe patterns, and web-ext-verification rules below.

Firefox WebExtension Development

Core Rules (do X because Y)

  • Use browser namespace because it is Promise-based natively in Firefox, avoiding callback boilerplate.
  • Pin manifest_version: 3 for new extensions because MV2 is sunsetting and AMO warns on new MV2 submissions.
  • Always include browser_specific_settings.gecko.id because AMO rejects extensions without a unique ID.
  • Set strict_min_version: "109.0" for MV3 because service workers and the action API require Firefox 109+.
  • Use web-ext run --profile-create-new for testing because stale profile state causes false positives.

See references/apis.md for the complete WebExtension API namespace list (51 APIs) and usage patterns.

Manifest V3 Rules

See references/manifest-v3.md for the full MV3 manifest schema reference.

MV2 vs MV3 Migration Rules

  • Use action instead of browser_action because MV3 requires the unified action key (Firefox 109+).
  • Use background.service_worker instead of background.scripts because MV3 enforces event-driven, ephemeral background logic.
  • Move permissions with host URLs to host_permissions because MV3 separates API permissions from host access.
  • Replace webRequest blocking with declarativeNetRequest because MV3 makes webRequest non-blocking only (max 30,000 static rules, 5,000 dynamic).
  • Remove all eval(), new Function(), and dynamic imports because MV3 CSP forbids remote code and AMO rejects it immediately.
  • Use addEventListener instead of inline onclick="" because MV3 CSP blocks inline scripts.

See references/manifest-keys.md for the complete manifest key enumeration with Firefox-specific keys.

Permissions Discipline

See references/permissions.md for the full permissions reference with AMO review triggers.

High-Risk Permissions (AMO Scrutiny)

  • Avoid <all_urls> because it triggers automatic reviewer scrutiny; use specific host patterns instead.
  • Justify cookies, history, bookmarks in AMO notes because reviewers reject vague justifications.
  • Prefer activeTab over tabs because it requests access only when the user interacts with your extension.
  • Use declarativeNetRequest instead of webRequest for static rules because it is MV3-compliant and AMO-favored.

web-ext CLI Rules

Development Workflow Rules

  • Run web-ext lint before every build because it catches manifest errors and AMO policy violations early.
  • Use web-ext run --verbose for debugging because it shows injection failures and CSP violations in real-time.
  • Test with --profile-create-new because stale cookies/cache mask real-world failures.
  • Run web-ext build to create the submission artifact because it validates the zip structure AMO expects.
  • Sign with --channel listed for AMO submission because unlisted bypasses human review.

See references/web-ext.md for the complete web-ext command reference with all flags.

CSP & Security Rules

See references/security-crossbrowser.md for the full CSP reference and cross-browser polyfill patterns.

CSP-Safe Patterns (do X because Y)

  • Never use eval(), new Function(), or Function("...") because AMO rejects remote code execution immediately.
  • Escape all dynamic content into DOM nodes instead of innerHTML because CSP blocks inline scripts and XSS.
  • Use 'wasm-unsafe-eval' only for WebAssembly because the broader 'unsafe-eval' triggers AMO rejection.
  • Remove http://localhost:<port> from CSP before submission because it allows remote scripts in production.
  • Bundle all dependencies locally instead of CDN scripts because CSP forbids remote script sources.

Cross-Browser Polyfill Rules

  • Use webextension-polyfill because Firefox's browser API is Promise-based while Chrome uses callbacks.
  • Feature-detect Firefox-only APIs (sidebarAction, userScripts) because they crash in Chrome without guards.
  • Use browser.action || browser.browserAction fallback because MV2/MV3 have different key names.

AMO Submission Rules

Pre-Submission Checklist (do X because Y)

  • Verify web-ext lint passes with no errors because AMO's automated gate rejects manifest/schema errors.
  • Ensure browser_specific_settings.gecko.id is set because AMO rejects extensions without a unique ID.
  • Provide 48x48 and 96x96 PNG icons because AMO's size rules cause automatic rejection.
  • Add a privacy policy URL if collecting data because AMO requires data collection disclosure.
  • Write a natural description (no keyword stuffing) because reviewers flag spammy listings.
  • Document permission usage in AMO notes because vague justifications lead to rejection.

Rejection Response Rules

  • Read reviewer notes in Developer Hub before resubmitting because fixes must address the specific issue.
  • Resubmit within 30 days because the review queue position expires.
  • Add clarifying notes for misunderstandings because reviewers may approve with explanation.

See references/testing-amo.md for the full AMO checklist, debugging commands, and troubleshooting table.

Deep Dives

Load these reference files on demand for detailed information:

  • WebExtension APIs (51 namespaces, core patterns, Firefox-specific APIs): references/apis.md
  • Manifest V3 Schema (complete MV3 manifest reference): references/manifest-v3.md
  • Manifest Keys (all keys with Firefox-specific extensions): references/manifest-keys.md
  • Permissions (AMO review triggers, narrower alternatives): references/permissions.md
  • web-ext CLI (complete command reference): references/web-ext.md
  • Security & Cross-Browser (CSP rules, polyfill patterns): references/security-crossbrowser.md
  • Testing & AMO (debugging, troubleshooting, submission checklist): references/testing-amo.md

External References

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Firefox Extension」では何ができますか?

Use when developing Firefox WebExtensions - Manifest V2/V3 configuration, WebExtension APIs, content security policy, web-ext CLI, cross-browser support with the polyfill, AMO submission, or debugging extensions

TypingMindでFirefox Extensionを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Firefox Extensionはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにFirefox Extensionをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/CodeAtCode/oss-ai-skills/tree/master/extend/firefox-extensionを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Firefox Extensionを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Firefox Extensionは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもFirefox Extensionを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Firefox Extension」は無料ですか?

はい。CodeAtCodeがGitHubでGPL-3.0ライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇