@extension.dev/skill 0.5.0 → 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.5.0",
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.5.0",
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,21 @@
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
+
3
19
  ## 0.5.0
4
20
 
5
21
  Introduces the `STORE.md` convention: one tracked file at the project root
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.5.0",
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.5.0
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.
@@ -173,5 +173,5 @@ Read the one that matches the task; skip the rest.
173
173
  | [references/cross-browser.md](references/cross-browser.md) | Anything touching Firefox, manifest prefixes, API namespace choices |
174
174
  | [references/api-gotchas.md](references/api-gotchas.md) | Service worker, permissions, tabs, messaging, or runtime API bugs |
175
175
  | [references/debugging.md](references/debugging.md) | The extension misbehaves and you need eyes on the live browser |
176
- | [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
177
  | [references/store-md.md](references/store-md.md) | Creating or updating STORE.md, store metadata, reviewer notes, rejections |
@@ -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).
@@ -58,6 +58,62 @@ store APIs accept: Firefox reviewer and release notes, and Edge certification
58
58
  notes. Chrome listing fields are dashboard-only by store policy and stay
59
59
  copy-paste.
60
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).
116
+
61
117
  ## Firefox specifics
62
118
 
63
119
  - New add-ons (first submission, no existing GUID) must declare