@extension.dev/skill 0.4.2 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,15 +2,15 @@
2
2
  "name": "extensiondev",
3
3
  "owner": {
4
4
  "name": "Cezar Augusto",
5
- "email": "boss@cezaraugusto.net",
5
+ "email": "hello@extension.dev",
6
6
  "url": "https://extension.dev"
7
7
  },
8
8
  "plugins": [
9
9
  {
10
10
  "name": "extension-dev",
11
11
  "source": "./",
12
- "description": "Build, debug, and publish cross-browser extensions (Chrome, Edge, Firefox, Safari, and any Chromium- or Gecko-based browser): Manifest V3 gotchas, chromium:/firefox: manifest prefixes, live-browser verification playbooks, and store publishing checklists.",
13
- "version": "0.4.2",
12
+ "description": "Build, debug, and publish cross-browser extensions (Chrome, Edge, Firefox, and any Chromium- or Gecko-based browser, with Safari coming next): Manifest V3 gotchas, chromium:/firefox: manifest prefixes, live-browser verification playbooks, and store publishing checklists.",
13
+ "version": "0.5.1",
14
14
  "category": "development",
15
15
  "author": {
16
16
  "name": "Cezar Augusto"
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "extension-dev",
3
3
  "description": "Cross-browser extension development skill: Manifest V3 gotchas, chromium:/firefox: manifest prefixes, live-browser verification playbooks, and store publishing checklists for the extension.dev / Extension.js stack.",
4
- "version": "0.4.2",
4
+ "version": "0.5.1",
5
5
  "author": {
6
6
  "name": "Cezar Augusto",
7
- "email": "boss@cezaraugusto.net",
7
+ "email": "hello@extension.dev",
8
8
  "url": "https://cezaraugusto.com"
9
9
  },
10
10
  "homepage": "https://github.com/extensiondev/skill",
package/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.1
4
+
5
+ Honest browser support wording ahead of the Safari lane landing.
6
+
7
+ ### Changed
8
+
9
+ - The package description, README, and skill frontmatter now say Safari
10
+ is coming next instead of listing it alongside the browsers that are
11
+ store-ready today. Chrome, Edge, Firefox, and every Chromium- or
12
+ Gecko-based browser remain fully covered; nothing changes in the
13
+ skill content.
14
+ - The maintainer contact email is now hello@extension.dev.
15
+ - The em dash guard in the structure test now checks for the actual em
16
+ dash character instead of a substring that false-positived on AMO API
17
+ URLs.
18
+
19
+ ## 0.5.0
20
+
21
+ Introduces the `STORE.md` convention: one tracked file at the project root
22
+ holding listing copy, permission justifications, privacy disclosures, per
23
+ store reviewer notes, and version history, one section per store.
24
+
25
+ ### Added
26
+
27
+ - New reference `references/store-md.md` with the template, the maintenance
28
+ rules (manifest change, release, rejection, privacy shift), and the table
29
+ of fields `extension-deploy` 1.4.0 submits automatically (Firefox reviewer
30
+ and release notes, Edge certification notes).
31
+ - Workflow step 6 and `references/publishing.md` now direct the agent to
32
+ create and maintain `STORE.md` as soon as publishing intent appears.
33
+ - The Chrome section mirrors the `CHROMEWEBSTORE.md` shape other agent
34
+ tooling expects, so those agents find their sections here.
35
+ - Firefox `data_collection_permissions` coverage: cross-browser.md documents
36
+ the manifest key (mandatory for new AMO add-ons since 2025-11-03, all
37
+ extensions during 2026), the store readiness checklist gains a matching
38
+ item, and STORE.md maintenance rules require the privacy section, the
39
+ policy, and the manifest declaration to agree.
40
+
3
41
  ## 0.4.2
4
42
 
5
43
  Accuracy release alongside @extension.dev/mcp 5.1.0.
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  # @extension.dev/skill [![Version][npm-version-image]][npm-version-url] [![skills.sh](https://skills.sh/b/extensiondev/skill)](https://skills.sh/extensiondev/skill/extension-dev) [![CI][action-image]][action-url] [![Discord][discord-image]][discord-url]
9
9
 
10
- > The Agent Skill for cross-browser extension development. Teaches your coding agent to build, debug, and publish for Chrome, Edge, Firefox, Safari, and every Chromium- or Gecko-based browser.
10
+ > The Agent Skill for cross-browser extension development. Teaches your coding agent to build, debug, and publish for Chrome, Edge, Firefox, and every Chromium- or Gecko-based browser, with Safari coming next.
11
11
 
12
12
  <img alt="Logo" align="right" src="https://media.extension.land/brand/extension-dev/logo-dock.png" width="18.3%" />
13
13
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@extension.dev/skill",
3
3
  "type": "module",
4
- "version": "0.4.2",
5
- "description": "Agent Skill that teaches AI coding agents (Claude Code, Cursor, Copilot, Codex) to build, debug, and publish browser extensions for Chrome, Edge, Firefox, Safari, and every Chromium- or Gecko-based browser (Brave, Opera, Vivaldi, Yandex, Waterfox, LibreWolf): Manifest V3 gotchas, cross-browser manifest rules, and live-browser verification playbooks. Powered by extension.dev and Extension.js.",
4
+ "version": "0.5.1",
5
+ "description": "Agent Skill that teaches AI coding agents (Claude Code, Cursor, Copilot, Codex) to build, debug, and publish browser extensions for Chrome, Edge, Firefox, and every Chromium- or Gecko-based browser (Brave, Opera, Vivaldi, Yandex, Waterfox, LibreWolf), with Safari coming next: Manifest V3 gotchas, cross-browser manifest rules, and live-browser verification playbooks. Powered by extension.dev and Extension.js.",
6
6
  "license": "MIT",
7
7
  "author": {
8
8
  "name": "Cezar Augusto",
9
- "email": "boss@cezaraugusto.net",
9
+ "email": "hello@extension.dev",
10
10
  "url": "https://cezaraugusto.com"
11
11
  },
12
12
  "repository": {
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  name: extension-dev
3
- description: Build, debug, and publish cross-browser extensions (Chrome, Edge, Firefox, Safari, and any Chromium- or Gecko-based browser such as Brave, Opera, Vivaldi, Yandex, Waterfox, or LibreWolf) with the extension.dev framework. Use this skill whenever the user mentions browser extensions, Chrome extensions, Firefox add-ons, Safari web extensions, WebExtensions, Manifest V3, manifest.json, content scripts, service workers, side panels, popups, options pages, chrome.* or browser.* APIs, or publishing to the Chrome Web Store or Firefox Add-ons, even if they never name extension.dev or Extension.js explicitly. Also use it when debugging why an extension does not load, inject, or update.
3
+ description: Build, debug, and publish cross-browser extensions (Chrome, Edge, Firefox, and any Chromium- or Gecko-based browser such as Brave, Opera, Vivaldi, Yandex, Waterfox, or LibreWolf, with Safari coming next) with the extension.dev framework. Use this skill whenever the user mentions browser extensions, Chrome extensions, Firefox add-ons, Safari web extensions, WebExtensions, Manifest V3, manifest.json, content scripts, service workers, side panels, popups, options pages, chrome.* or browser.* APIs, or publishing to the Chrome Web Store or Firefox Add-ons, even if they never name extension.dev or Extension.js explicitly. Also use it when debugging why an extension does not load, inject, or update.
4
4
  license: MIT
5
5
  metadata:
6
6
  author: Cezar Augusto
7
- version: 0.4.2
7
+ version: 0.5.1
8
8
  ---
9
9
 
10
10
  # Cross-Browser Extension Development
@@ -17,7 +17,7 @@ publish.
17
17
 
18
18
  Two companions do the heavy lifting. Prefer them over guessing:
19
19
 
20
- - **`@extension.dev/mcp`** (MCP server): 31 tools for scaffolding, building,
20
+ - **`@extension.dev/mcp`** (MCP server): 32 tools for scaffolding, building,
21
21
  live DOM inspection, log streaming, storage access, publishing, and headless
22
22
  release promotion. If its `extension_*` tools are available in the session,
23
23
  use them.
@@ -57,8 +57,12 @@ Two companions do the heavy lifting. Prefer them over guessing:
57
57
  done, shut it down (MCP: `extension_stop`) so dev servers and browsers do
58
58
  not pile up.
59
59
  6. **Publish deliberately.** Zip with `--zip`, check the store-readiness rules,
60
- then submit (or publish to extension.dev via `extension_publish`). See
61
- [references/publishing.md](references/publishing.md).
60
+ then submit (or publish to extension.dev via `extension_publish`). Track
61
+ listing copy, permission justifications, and per-store reviewer notes in a
62
+ root `STORE.md` from the moment publishing intent appears; deploy tooling
63
+ submits the API-accepted fields from it automatically. See
64
+ [references/publishing.md](references/publishing.md) and
65
+ [references/store-md.md](references/store-md.md).
62
66
 
63
67
  ## Core rules
64
68
 
@@ -169,4 +173,5 @@ Read the one that matches the task; skip the rest.
169
173
  | [references/cross-browser.md](references/cross-browser.md) | Anything touching Firefox, manifest prefixes, API namespace choices |
170
174
  | [references/api-gotchas.md](references/api-gotchas.md) | Service worker, permissions, tabs, messaging, or runtime API bugs |
171
175
  | [references/debugging.md](references/debugging.md) | The extension misbehaves and you need eyes on the live browser |
172
- | [references/publishing.md](references/publishing.md) | Building zips, store listings, permission justifications, publishing |
176
+ | [references/publishing.md](references/publishing.md) | Building zips, store accounts and credentials, listings, publishing |
177
+ | [references/store-md.md](references/store-md.md) | Creating or updating STORE.md, store metadata, reviewer notes, rejections |
@@ -65,6 +65,43 @@ These rules come from Extension.js's `filterKeysForThisBrowser` resolver
65
65
  }
66
66
  ```
67
67
 
68
+ ## Firefox data collection permissions (required for new AMO add-ons)
69
+
70
+ Since November 3, 2025, AMO rejects any NEW extension whose manifest lacks
71
+ `browser_specific_settings.gecko.data_collection_permissions`. Updates to
72
+ add-ons that existed before that date are exempt for now, but Mozilla has
73
+ said all extensions will need it during 2026, so declare it in every project.
74
+ Prefix it so only Firefox builds carry it:
75
+
76
+ ```json
77
+ {
78
+ "firefox:browser_specific_settings": {
79
+ "gecko": {
80
+ "data_collection_permissions": {
81
+ "required": ["none"]
82
+ }
83
+ }
84
+ }
85
+ }
86
+ ```
87
+
88
+ `"none"` is itself a declaration ("collects no data") and is only truthful
89
+ when the extension transmits nothing. If the extension sends any user data
90
+ anywhere (an AI provider, your own backend, analytics), declare the matching
91
+ categories instead, for example `["authenticationInfo",
92
+ "personalCommunications", "websiteContent"]` for a chat extension that sends
93
+ an API key, chat messages, and page content to a provider. Firefox shows the
94
+ declaration in the install prompt (desktop 140+, Android 142+), and the
95
+ `required` entries cannot be opted out of by the user. Categories in
96
+ `optional` must be requested at runtime via `permissions.request()`.
97
+ The declaration must match what the code actually does; a false `"none"` is
98
+ a policy violation. Full category list:
99
+ https://extensionworkshop.com/documentation/develop/firefox-builtin-data-consent/
100
+
101
+ Extension.dev templates ship this block by default. If the project already
102
+ declares `firefox:browser_specific_settings` (a gecko id, `strict_min_version`),
103
+ merge `data_collection_permissions` into the existing object.
104
+
68
105
  ## Side panel / sidebar open behavior
69
106
 
70
107
  Declaring the panel in the manifest renders nothing by itself. Wire an open
@@ -102,10 +102,18 @@ extension open action # requires --allow-control
102
102
  # Replay a keyboard command
103
103
  extension open command --name <cmd> # requires --allow-control
104
104
 
105
- # Evaluate code in an extension context
106
- extension eval ... # requires --allow-eval
105
+ # Evaluate code in a context; page = the active tab, runs on the
106
+ # default template as-is
107
+ extension eval "document.title" --context page # requires --allow-eval
107
108
  ```
108
109
 
110
+ Context caveat: on Chromium MV3 (the default template) the background is a
111
+ service worker whose CSP blocks eval, so `--context background` returns an
112
+ explanatory error there. Target `page` or `content` on Chromium MV3, or
113
+ evaluate in the background on a Firefox/MV2 build. The `extension_eval` MCP
114
+ tool defaults to `page` on Chromium MV3 sessions for this reason; on
115
+ Firefox/MV2 its default stays `background`.
116
+
109
117
  MCP equivalents: `extension_open`, `extension_eval`, `extension_storage`
110
118
  (read/write `chrome.storage`), `extension_reload` (reload extension or tab),
111
119
  `extension_list_extensions` (Chromium, read-only).
@@ -43,13 +43,84 @@ Run through this before any submission; each item is a common rejection:
43
43
  7. Privacy policy linked if any user data is touched, with disclosures
44
44
  matching what the code actually does.
45
45
  8. Version notes written; version number bumped from the last submission.
46
+ 9. Firefox: `data_collection_permissions` declared in the manifest and
47
+ matching the privacy disclosures (mandatory for new add-ons; AMO rejects
48
+ without it).
46
49
 
47
50
  Keep listing metadata, permission justifications, privacy disclosures, and
48
- release notes in one tracked document in the repo, so resubmissions do not
49
- reinvent them. Exclude that document from the zip.
51
+ release notes in a tracked `STORE.md` at the project root, one section per
52
+ store, so resubmissions do not reinvent them. The full convention, template,
53
+ and maintenance rules live in [store-md.md](store-md.md). Exclude the file
54
+ from the zip.
55
+
56
+ `extension-deploy` reads `STORE.md` automatically and submits the fields the
57
+ store APIs accept: Firefox reviewer and release notes, and Edge certification
58
+ notes. Chrome listing fields are dashboard-only by store policy and stay
59
+ copy-paste.
60
+
61
+ ## Store accounts and credentials
62
+
63
+ Full walkthroughs with portal paths live on the docs site under
64
+ "Publish to the stores" (extension.js.org/docs/publishing). The load-bearing
65
+ facts:
66
+
67
+ Account prerequisites (none of the store APIs can create the first listing
68
+ where noted; the first upload is manual):
69
+
70
+ - Chrome: register at the CWS Developer Dashboard (one-time $5 fee). The API
71
+ cannot create a new item; upload the first zip by hand in the dashboard.
72
+ The 32-character extension ID only exists after that upload.
73
+ - Firefox: AMO developer account plus acceptance of the Firefox Add-on
74
+ Distribution Agreement; the API key page stays locked until accepted.
75
+ - Edge: Partner Center enrollment in the Microsoft Edge program (free).
76
+ There is no create-product API and the Product ID is always required, so
77
+ the product must be created with a first manual Partner Center submission.
78
+
79
+ Credential shapes and portals:
80
+
81
+ - Chrome: publisher UUID (from chrome.google.com/webstore/devconsole/<UUID>)
82
+ plus either a GCP service account JSON (grant its email under dev console >
83
+ Account; preferred, no expiry) or the OAuth trio: Desktop-app client ID
84
+ (`123.apps.googleusercontent.com`), client secret (`GOCSPX-...`), refresh
85
+ token (`1//...`). Mint the refresh token with `npx extension-deploy init`
86
+ (local loopback consent flow). Never recommend the Google OAuth Playground
87
+ for this: it needs a Web-application redirect URI and fails a Desktop-app
88
+ client with redirect_uri_mismatch. If the OAuth consent screen is in
89
+ Testing status, Google revokes the refresh token after 7 days.
90
+ - Firefox: JWT issuer (`user:12345678:987`) and JWT secret (64 hex, shown
91
+ once) from addons.mozilla.org/developers/addon/api/key/. Listed channel
92
+ requires an existing add-on GUID. Unlisted with an empty GUID creates a
93
+ NEW add-on; copy the assigned GUID back into the store settings after the
94
+ first submission, or every later empty-GUID submission creates another
95
+ add-on. Set the channel explicitly; an unset channel defaults to listed at
96
+ submit time.
97
+ - Edge: Client ID (GUID) and API key from the Partner Center Publish API
98
+ page (partner.microsoft.com/dashboard/microsoftedge/publishapi, "Turn on
99
+ API" / "+ New API key"). This is the current ApiKey model, not an Azure AD
100
+ client secret. Keys expire about every 72 days; rotate before then. The
101
+ Product ID is the lowercase GUID from the product's Extension Identity
102
+ section, not the uppercase public Store ID.
103
+
104
+ Blast radius: all three stores' API credentials are account-wide, not
105
+ per-extension. For multi-client work, keep each client's listings under that
106
+ client's own store accounts.
107
+
108
+ Where they live on the platform track: per project, never per workspace.
109
+ Each project's credentials are written as write-only GitHub Actions secrets
110
+ on that project's managed mirror repo (STORE_CHROME_*, STORE_FIREFOX_API_KEY/
111
+ API_SECRET, STORE_EDGE_CLIENT_ID/CLIENT_SECRET; the Edge CLIENT_SECRET holds
112
+ the API key). Identifiers go to the mirror's _extension-dev/settings.json.
113
+ Rotation always means re-entering values. Direct mode keeps the same values
114
+ in a per-repo `.env.submit` (written by `npx extension-deploy init`, keep out
115
+ of git).
50
116
 
51
117
  ## Firefox specifics
52
118
 
119
+ - New add-ons (first submission, no existing GUID) must declare
120
+ `browser_specific_settings.gecko.data_collection_permissions` in the
121
+ manifest or AMO rejects the submission; `{"required": ["none"]}` when the
122
+ extension transmits nothing. See the data collection section in
123
+ [cross-browser.md](cross-browser.md).
53
124
  - AMO accepts unlisted submissions for self-distribution; useful for testing
54
125
  signed builds without a public listing.
55
126
  - If the build targets MV2 on Firefox (`firefox:manifest_version: 2`), the
@@ -0,0 +1,123 @@
1
+ # STORE.md: One Store Metadata File for Every Store
2
+
3
+ `STORE.md` is a single tracked file at the project root that holds everything
4
+ the stores will ask for at submission time: listing copy, permission
5
+ justifications, privacy disclosures, version history, and per-store notes.
6
+ Cross-browser extensions submit to several stores; this file is the one place
7
+ where that paperwork lives, so resubmissions never reinvent it.
8
+
9
+ It has a second job: `extension-deploy` (and platform releases through
10
+ extension.dev) read it automatically and attach the fields the store APIs
11
+ accept. Everything else stays a copy-paste reference for the dashboard forms.
12
+
13
+ ## When to create it
14
+
15
+ Create `STORE.md` the moment publishing intent appears:
16
+
17
+ - The user says they want to publish or "get ready for the store".
18
+ - A new extension is clearly headed for a store.
19
+ - The user asks about listing requirements or review.
20
+
21
+ Do not wait for the submission itself. The file earns its keep by being
22
+ maintained while the code changes, not written in a scramble at the end.
23
+
24
+ ## Structure
25
+
26
+ One `##` section per store, shared material above them. Store sections are
27
+ matched by heading text, so `## Firefox Add-ons`, `## firefox-amo`, and
28
+ `## AMO` all work; the same goes for Chrome and Edge.
29
+
30
+ ```markdown
31
+ # Store metadata
32
+
33
+ Last updated: 2026-07-20
34
+
35
+ ## Listing
36
+
37
+ Name, one-line summary, long description, category, screenshot list.
38
+ Write user benefits, not implementation. "Highlights matching results
39
+ on the page", never "Uses MutationObserver".
40
+
41
+ ## Privacy and data use
42
+
43
+ What is collected, stored, or transmitted, and the privacy policy URL.
44
+ Must match what the code actually does AND the manifest's Firefox
45
+ data_collection_permissions declaration (see cross-browser.md).
46
+
47
+ ## Chrome Web Store
48
+
49
+ ### Permissions justification
50
+
51
+ - tabs: reads the current tab URL to show per-site settings.
52
+ - storage: persists user preferences locally.
53
+
54
+ ### Single purpose
55
+
56
+ One sentence stating the extension's single purpose.
57
+
58
+ ## Firefox Add-ons
59
+
60
+ ### Reviewer notes
61
+
62
+ Test credentials and the steps a reviewer needs to exercise the
63
+ extension. Include build-from-source instructions when the zip is
64
+ minified (it is; AMO requires the sources zip).
65
+
66
+ ### Release notes
67
+
68
+ User-facing notes for this version.
69
+
70
+ ## Edge Add-ons
71
+
72
+ ### Certification notes
73
+
74
+ Anything the certification team needs to test the extension.
75
+
76
+ ## Version history
77
+
78
+ - 1.2.0 (2026-07-20): added per-site settings. Submitted to all three.
79
+ - 1.1.0 (2026-07-01): rejected on AMO for a vague tabs justification;
80
+ fixed by naming the exact data read.
81
+ ```
82
+
83
+ ## What gets submitted automatically
84
+
85
+ At deploy time these fields are read from the file and sent with the
86
+ submission; explicit CLI flags or config values win over the file:
87
+
88
+ | Store section | `###` field | Sent as |
89
+ | --- | --- | --- |
90
+ | Firefox | Reviewer notes | AMO `approval_notes` |
91
+ | Firefox | Release notes | AMO `release_notes` |
92
+ | Edge | Certification notes | Edge submission `notes` |
93
+
94
+ The Chrome Web Store accepts no listing metadata over its API, so the whole
95
+ Chrome section is dashboard-only. Its shape mirrors the `CHROMEWEBSTORE.md`
96
+ convention other agent tooling expects, so an agent looking for that file's
97
+ sections finds them here.
98
+
99
+ ## Maintenance rules
100
+
101
+ Update `STORE.md` in the same change that makes it stale:
102
+
103
+ - **Manifest changed** (`permissions`, `host_permissions`,
104
+ `content_scripts`): revisit every justification. Each permission gets a
105
+ specific, plain-English reason; "needed for the extension to work" fails
106
+ review on every store.
107
+ - **User-facing behavior changed**: refresh the listing copy and bump the
108
+ last-updated date.
109
+ - **New release**: add a version history entry and rewrite the release
110
+ notes section for the new version.
111
+ - **Data handling changed**: update the privacy section, the policy it
112
+ links to, and the manifest's Firefox `data_collection_permissions`
113
+ declaration together before submitting; the three must agree.
114
+ - **Store rejection**: record the reason and the fix in version history, so
115
+ the next submission does not repeat it.
116
+
117
+ ## Hygiene
118
+
119
+ - Track the file in git; it is part of the project, not a scratch note.
120
+ - Exclude it from the extension zip (the `--zip` flag already packages only
121
+ `dist/<browser>/`, so the default build is safe).
122
+ - Never put real user credentials in it; reviewer test accounts are
123
+ throwaway by construction.