Firefox Extension logo

Firefox Extension

Organization
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

Overview

PublisherCodeAtCode
Repositoryoss-ai-skills
Skill namefirefox-extension
Stars
30
Forks
3
Bundled files
7
LicenseGPL-3.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by CodeAtCode on GitHub. Read the source before you install it.

Installation

Install the Firefox Extension AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/CodeAtCode/oss-ai-skills/tree/master/extend/firefox-extension
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Firefox Extension in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Firefox Extension on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Firefox Extension is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Firefox Extension AI skill do?

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

Why use Firefox Extension on TypingMind?

Because you install it once and use it with any model. Firefox Extension is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Firefox Extension in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/CodeAtCode/oss-ai-skills/tree/master/extend/firefox-extension. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Firefox Extension?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Firefox Extension?

As many as you like. As long as a model supports skills, you can use Firefox Extension with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Firefox Extension AI skill free?

Yes. It is published on GitHub by CodeAtCode under the GPL-3.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇