firefox-publish

firefox-publish is a command for Claude Code from acaprino/daodan. It costs 54 tokens per session (1,153 once invoked), scanned A, original, MIT.

A release workflow for Firefox extensions, which are browser add-ons, and their submission to Mozilla Add-ons (AMO), Mozilla’s extension marketplace.

In plain words
What is it for?
It lints, signs, and uploads an extension, then explains the review follow-up. It also checks versioning and required credentials.
Why use it?
It checks the extension before upload, protects publishing credentials, and guides the choice between public listing and private distribution.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the browser-extensions plugin — 1 skill, 3 commands, 1 agent shipped together

Good fit It lints, signs, and uploads an extension, then explains the review follow-up. It also checks versioning and required credentials.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/acaprino/daodan/firefox-publish
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/acaprino/daodan

Made for: Claude Code.

Or install browser-extensions, the plugin that ships this one along with the rest of its 1 skill, 3 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for firefox-publish

README.md
[![agentmods](https://agentmods.dev/badge/commands/acaprino/daodan/firefox-publish.svg)](https://agentmods.dev/commands/acaprino/daodan/firefox-publish)
Your own site
<a href="https://agentmods.dev/commands/acaprino/daodan/firefox-publish"><img src="https://agentmods.dev/badge/commands/acaprino/daodan/firefox-publish.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,153 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.01153
Opus 5 $0.00027 $0.00576
Sonnet 5 $0.00011 $0.00231
Haiku 4.5 $0.00005 $0.00115

Measured 8d ago against content hash c10c739a7348, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

firefox-publish scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

exports/claude/plugins/browser-extensions/commands/firefox-publish.md · 117 lines

How it starts

The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Firefox Extension Publish

Signed publication to AMO. Covers pre-flight validation, signing via web-ext sign, and post-submission follow-up.

CRITICAL RULES

  1. Run lint first. Never submit unlinted -- Mozilla's AMO reviewers reject submissions for issues web-ext lint catches in 30 seconds.
  2. Never commit API credentials. Credentials live in env vars or a gitignored .env; refuse to proceed if they appear in the repo.
  3. Choose the right channel:
    • listed -- public AMO listing, goes through Mozilla review (1-14 days, sometimes longer)
    • unlisted -- self-distribution, auto-signed in seconds, not shown on AMO
  4. Bump version before submission. AMO rejects resubmissions with the same version string.
  5. Confirm with the user before upload. Signing is fast to revert; a listed review that starts is annoying to withdraw.

Procedure

1. Pre-flight

# Check credentials
test -n "$WEB_EXT_API_KEY" || fail "WEB_EXT_API_KEY not set"
test -n "$WEB_EXT_API_SECRET" || fail "WEB_EXT_API_SECRET not set"

# Check .env or credential files are gitignored
git check-ignore -v .env || fail ".env is not gitignored"

If credentials are missing, guide the user to https://addons.mozilla.org/en-US/developers/addon/api/key/ to generate them.

2. Run lint

Invoke /browser-extensions:firefox-lint first. If any blockers, stop.

3. Bump version

Read current version from manifest.json. If --version is supplied, use it; otherwise ask the user for:

  • patch (0.1.0 -> 0.1.1) -- bug fixes
  • minor (0.1.0 -> 0.2.0) -- new features
  • major (0.1.0 -> 1.0.0) -- breaking change (first public release is traditionally 1.0.0)

Update both manifest.json and package.json. Stage these edits but DO NOT commit automatically -- the user may want to do a final review.

4. Build

cd "$TARGET"
npx web-ext build --overwrite-dest
# Artifact: .web-ext-artifacts/<name>-<version>.zip

Verify the artifact exists and is reasonably sized (warn if > 10 MB -- large extensions get slower AMO review).

Read the full file on GitHub · 117 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 117 lines · 54 tokens per session scan A c10c739a7348

Subscribe to this mod's changes

firefox-publish is a command published in the GitHub repository acaprino/daodan (8 stars, last pushed today), licensed MIT. It adds 54 tokens to every session and 1,153 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.