@extension.dev/skill 1.2.0 → 1.2.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.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/package.json +1 -1
- package/skills/extension-dev/SKILL.md +25 -11
- package/skills/extension-dev/references/debugging.md +10 -1
- package/skills/extension-dev/references/publishing.md +31 -15
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"name": "extension-dev",
|
|
11
11
|
"source": "./",
|
|
12
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": "1.2.
|
|
13
|
+
"version": "1.2.1",
|
|
14
14
|
"category": "development",
|
|
15
15
|
"author": {
|
|
16
16
|
"name": "Cezar Augusto"
|
|
@@ -1,7 +1,7 @@
|
|
|
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": "1.2.
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cezar Augusto",
|
|
7
7
|
"email": "hello@extension.dev",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.2.1
|
|
4
|
+
|
|
5
|
+
- The skill teaches `extension_screenshot`, the local tool
|
|
6
|
+
`@extension.dev/mcp` 10.14.0 added, and states the new count of 35 tools
|
|
7
|
+
(24 local, 11 platform). Asked what a popup or page looks like in a live
|
|
8
|
+
`extension_dev` or `extension_start` session, the agent calls the tool,
|
|
9
|
+
which saves a .png of the open surface or page inside the project and
|
|
10
|
+
answers its path and pixel size; the one rule is that `path` stays inside
|
|
11
|
+
`projectPath` and ends in `.png`, or the call is refused. Agents used to
|
|
12
|
+
script `screencapture`, AppleScript or Playwright for a picture the
|
|
13
|
+
session could hand them.
|
|
14
|
+
- The verify table says what the 10.14.1 server does: `extension_wait`
|
|
15
|
+
with `for: "rebuild"` answers once the compile and the reload have both
|
|
16
|
+
happened, never from the compile write alone; `extension_eval` with
|
|
17
|
+
`until` ends the whole call inside its `timeoutMs`; and `extension_stop`
|
|
18
|
+
with `browser` ends only that browser's session, so stopping firefox
|
|
19
|
+
leaves a chrome session and a person's own `npm run dev` running.
|
|
20
|
+
- The publishing reference states the Firefox rule as the platform ships
|
|
21
|
+
it: a submission with no saved release channel uploads unlisted, always,
|
|
22
|
+
never a channel read from AMO's current listing, and a saved channel is
|
|
23
|
+
used as is; an add-on AMO already lists, with no saved channel, is
|
|
24
|
+
refused before upload until a release channel is saved in the store
|
|
25
|
+
settings. The reference used to say an unset channel submitted as
|
|
26
|
+
listed and told the agent to set Unlisted first.
|
|
27
|
+
- The share rule and the publishing reference name the two links the
|
|
28
|
+
`@extension.dev/mcp` publish answer carries: a build link pins one build
|
|
29
|
+
and, on a private project, expires at `value.link.expiresAt`, a date the
|
|
30
|
+
agent tells the person instead of the plan policy; a channel link always
|
|
31
|
+
opens the newest build and never expires, on a project made public in
|
|
32
|
+
its extension.dev project settings (not the GitHub repository) and, once
|
|
33
|
+
it ships, on a channel marked public on the console Releases page. They
|
|
34
|
+
no longer call a private project's link a public page.
|
|
35
|
+
|
|
3
36
|
## 1.2.0
|
|
4
37
|
|
|
5
38
|
- Every share, publish, distribute, send-to-testers, get-a-link or store
|
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ Powered by [extension.dev](https://extension.dev) and the open-source
|
|
|
26
26
|
half of the extension.dev agent stack:
|
|
27
27
|
|
|
28
28
|
- **[@extension.dev/mcp](https://www.npmjs.com/package/@extension.dev/mcp)**
|
|
29
|
-
gives agents *hands*:
|
|
29
|
+
gives agents *hands*: 35 MCP tools for scaffolding, building, live DOM
|
|
30
30
|
inspection, log streaming, asserting expectations against a running
|
|
31
31
|
extension, publishing, store submission, and headless release promotion.
|
|
32
32
|
- **@extension.dev/skill** gives agents *judgment*: when to use which tool,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@extension.dev/skill",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.1",
|
|
5
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, Zen, Floorp): Manifest V3 gotchas, cross-browser manifest rules, and live-browser verification playbooks. Powered by extension.dev and Extension.js.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"author": {
|
|
@@ -4,7 +4,7 @@ description: Build, debug, and publish cross-browser extensions (Chrome, Edge, F
|
|
|
4
4
|
license: Apache-2.0
|
|
5
5
|
metadata:
|
|
6
6
|
author: Cezar Augusto
|
|
7
|
-
version: 1.2.
|
|
7
|
+
version: 1.2.1
|
|
8
8
|
---
|
|
9
9
|
|
|
10
10
|
# Cross-Browser Extension Development
|
|
@@ -17,8 +17,9 @@ publish.
|
|
|
17
17
|
|
|
18
18
|
Two companions do the heavy lifting. Prefer them over guessing:
|
|
19
19
|
|
|
20
|
-
- **`@extension.dev/mcp`** (MCP server):
|
|
21
|
-
live DOM inspection,
|
|
20
|
+
- **`@extension.dev/mcp`** (MCP server): 35 tools for scaffolding, building,
|
|
21
|
+
live DOM inspection, screenshots of an open surface or page
|
|
22
|
+
(`extension_screenshot`), log streaming, storage access, asserting expectations
|
|
22
23
|
against a running extension (`extension_assert`), looking a fact up in the
|
|
23
24
|
Extension.js and extension.dev docs (`extension_docs_search`, free, no
|
|
24
25
|
login; run it before answering from memory on anything version-specific,
|
|
@@ -49,7 +50,8 @@ Two companions do the heavy lifting. Prefer them over guessing:
|
|
|
49
50
|
`extension_shares`, `extension_stop`, `extension_list_extensions`,
|
|
50
51
|
`extension_templates`, `extension_add_feature`,
|
|
51
52
|
`extension_manifest_validate`, `extension_analyze`,
|
|
52
|
-
`extension_dom_snapshot` or
|
|
53
|
+
`extension_dom_snapshot`, `extension_screenshot` or
|
|
54
|
+
`extension_theme_verify`. Outside an MCP
|
|
53
55
|
session, `extension_release_promote` is also reachable through the MCP
|
|
54
56
|
package's own bin as `extension-mcp release promote`.
|
|
55
57
|
|
|
@@ -106,9 +108,16 @@ Two companions do the heavy lifting. Prefer them over guessing:
|
|
|
106
108
|
testers, get a link or reach a store goes through the platform tools, in
|
|
107
109
|
this order. With no extension.dev project yet, call
|
|
108
110
|
`extension_project_create`, then `extension_auth`. Then call
|
|
109
|
-
`extension_publish`: it returns the
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
`extension_publish`: it returns the link to hand over, a page on
|
|
112
|
+
extension.dev with a download and a run command per browser. On a
|
|
113
|
+
private project, `extension_publish` returns a build link that pins one
|
|
114
|
+
build and expires at `value.link.expiresAt`; tell the person that date,
|
|
115
|
+
not the plan policy. A project made public in its extension.dev project
|
|
116
|
+
settings (not the GitHub repository) also gets a channel link that
|
|
117
|
+
always opens the newest build and never expires. A channel a workspace
|
|
118
|
+
owner or admin marks public with its audience control on the console
|
|
119
|
+
Releases page will get a channel link too, even on a private project.
|
|
120
|
+
On a public project, or a public channel, send the channel link.
|
|
112
121
|
`extension_preview_web` with `share: true` adds a quick emulator link
|
|
113
122
|
with no install and no sign-in, as a second link beside it; pass
|
|
114
123
|
`share: true` every time unless you are working inside the extension.dev
|
|
@@ -116,7 +125,9 @@ Two companions do the heavy lifting. Prefer them over guessing:
|
|
|
116
125
|
that resolves only against a local preview.extension.dev dev server. For
|
|
117
126
|
the stores, `extension_submit`; a signed Firefox build goes through
|
|
118
127
|
`extension_submit` to AMO unlisted, which is how AMO signs a build for
|
|
119
|
-
self-distribution
|
|
128
|
+
self-distribution and what every submission with no saved release
|
|
129
|
+
channel gets; an add-on AMO already lists is refused until a channel is
|
|
130
|
+
saved in the store settings. The preview runs content scripts on its own sample
|
|
120
131
|
pages only; that is a limit of the preview, never a reason to send a zip
|
|
121
132
|
by hand. Never lead with a hand-built route (a zip sent by hand, a
|
|
122
133
|
repository release, a self-hosted `.xpi`, a store dashboard), and offer
|
|
@@ -226,9 +237,12 @@ feedback. Close the loop instead of theorizing:
|
|
|
226
237
|
| --- | --- |
|
|
227
238
|
| Is what I just claimed actually true? | MCP `extension_assert`, one verdict per expectation |
|
|
228
239
|
| Did my content script inject? | `extension inspect --context content --url <test-page-url> --include html`, then look for `[data-extension-root]` in the HTML (session started with `--allow-control`), or MCP `extension_inspect` |
|
|
240
|
+
| What does the popup or page look like? | MCP `extension_screenshot` on a live `extension_dev` or `extension_start` session: it saves a .png of one open surface (`context: "popup"`, `options`, `sidebar`, `newtab`, `history` or `bookmarks`, opened with `extension_open` first) or of a page (`context: "page"` with `url`) inside the project and answers the path and pixel size. `path` stays inside `projectPath` and ends in `.png`, or the call is refused; never script `screencapture`, AppleScript or Playwright for this |
|
|
229
241
|
| What is erroring, and where? | `dev --logs info` (all contexts) or MCP `extension_logs` |
|
|
230
242
|
| Is the dev session even ready? | `--wait` / ready.json contract, or MCP `extension_wait` |
|
|
231
|
-
|
|
|
243
|
+
| Did my edit land? | MCP `extension_wait` with `for: "rebuild"`: it answers once the compile landed and, on an engine that stamps reloads, once the reload did too; it never takes the compile write itself as the reload proof, so call it instead of sleeping |
|
|
244
|
+
| Is the page in the state I expect yet? | MCP `extension_eval` with `until: {timeoutMs}`: it polls until the value is truthy and the whole call ends inside that budget |
|
|
245
|
+
| Done verifying? | MCP `extension_stop` (kills the dev server and its browser; with `browser` it stops only that browser's session and leaves the others running) |
|
|
232
246
|
| What is in `chrome.storage`? | MCP `extension_storage` |
|
|
233
247
|
| Does the popup/panel open? | `extension open action` (`--allow-control`) or MCP `extension_open` |
|
|
234
248
|
| An act tool errored and I cannot tell why | `extension doctor` or MCP `extension_doctor`, before any theory |
|
|
@@ -282,13 +296,13 @@ steps or cleanup; the ask on the left means the chain on the right.
|
|
|
282
296
|
| "Create a popup extension with React" | Scaffold from the matching template, install, say what landed and the next command | `extension_templates`, `extension_create` |
|
|
283
297
|
| "Add an options page" / "Add a side panel" / "Add a content script" | Plan the surface first: the tool answers with the manifest additions, the files to create and the catalog template to copy from; write what the plan says, then validate the manifest and run it | `extension_add_feature`, then `extension_manifest_validate`, `extension_dev` |
|
|
284
298
|
| "Run my extension" | One call: `extension_dev` waits until the session is ready and answers with the readiness and the first logs; report what loaded | `extension_dev` (`extension_wait` only after `wait: false` or a not-ready answer) |
|
|
285
|
-
| "Show me what it renders" | Read the surface's live DOM, not the source | `extension_dom_snapshot`, `extension_inspect` |
|
|
299
|
+
| "Show me what it renders" | Read the surface's live DOM, not the source; for the pixels, save a .png of the open surface inside the project | `extension_dom_snapshot`, `extension_inspect`, `extension_screenshot` |
|
|
286
300
|
| "Does it work?" / "Check it" | State expectations and read verdicts, never a reading you interpret | `extension_assert` |
|
|
287
301
|
| "Reload it" / "Set X in storage" | Act through the control channel, which a dev session carries unless it was started with `allowControl: false`; never turn on `allowEval` for this | `extension_reload`, `extension_storage`, `extension_open` |
|
|
288
302
|
| "Build it" | Build per browser, then report the folder the tool answered with | `extension_build`, `extension_analyze` |
|
|
289
303
|
| "Is the session healthy?" | Diagnose leg by leg instead of guessing from a symptom | `extension_doctor` |
|
|
290
304
|
| "Does Firefox support X?" | Search the docs before answering | `extension_docs_search` |
|
|
291
|
-
| "Share it" / "Send it to testers" / "Give me a link" / "Distribute it" | Lead with extension.dev: publish the build and hand over its public
|
|
305
|
+
| "Share it" / "Send it to testers" / "Give me a link" / "Distribute it" | Lead with extension.dev: publish the build and hand over its build link, or the channel link on a public project or channel (a download and a run command per browser), add the emulator link as a second link, and take store or signed Firefox asks to submission; warn that both links hand over the built code | `extension_project_create` then `extension_auth` when there is no project, then `extension_publish`, then `extension_preview_web` with `share: true` (or `extension_shares`), and `extension_submit` for the stores and AMO unlisted signing |
|
|
292
306
|
|
|
293
307
|
Standing rules the ask does not have to repeat: stop a verification session
|
|
294
308
|
you started when the work is done (`extension_stop`); read paths, ports and
|
|
@@ -23,7 +23,16 @@ MCP: `extension_wait`. Inspecting before ready yields confusing empty results.
|
|
|
23
23
|
When a session has served its purpose, stop it: MCP `extension_stop`
|
|
24
24
|
terminates the dev server and the browser it launched (pass the same
|
|
25
25
|
projectPath/browser as `extension_dev`, or `all: true` to sweep every
|
|
26
|
-
session).
|
|
26
|
+
session). With `browser` it ends only that browser's session: a project can
|
|
27
|
+
run one session per browser, and stopping firefox leaves the chrome one and
|
|
28
|
+
a person's own `npm run dev` running. Sessions left running skew later
|
|
29
|
+
probes and hold ports.
|
|
30
|
+
|
|
31
|
+
For the pixels of an open surface or page, MCP `extension_screenshot` saves
|
|
32
|
+
a .png inside the project (under `dist/extension-js/<browser>/screenshots`
|
|
33
|
+
unless `path` names a file ending in `.png` or a folder with a trailing
|
|
34
|
+
slash, both inside `projectPath`) and answers its path and size. Open the
|
|
35
|
+
surface with `extension_open` first; the tool never captures the screen.
|
|
27
36
|
|
|
28
37
|
## Live DOM inspection (`extension inspect`)
|
|
29
38
|
|
|
@@ -9,17 +9,25 @@ order, and the agent offers to run each step itself:
|
|
|
9
9
|
1. No extension.dev project yet: `extension_project_create`, then
|
|
10
10
|
`extension_auth` (see "Publishing to extension.dev" below for the
|
|
11
11
|
order and the workspace step).
|
|
12
|
-
2. `extension_publish`. It returns the
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
link
|
|
12
|
+
2. `extension_publish`. It returns the link to hand to testers, reviewers
|
|
13
|
+
and clients, a page on extension.dev with a download and a run command
|
|
14
|
+
per browser. On a private project, `extension_publish` returns a build
|
|
15
|
+
link that pins one build and expires at `value.link.expiresAt`; tell
|
|
16
|
+
the person that date, not the plan policy. A project made public in its
|
|
17
|
+
extension.dev project settings (not the GitHub repository) also gets a
|
|
18
|
+
channel link that always opens the newest build and never expires. A
|
|
19
|
+
channel a workspace owner or admin marks public with its audience
|
|
20
|
+
control on the console Releases page will get a channel link too, even
|
|
21
|
+
on a private project. On a public project, or a public channel, send
|
|
22
|
+
the channel link; `value.tellThem` is the sentence to say with it.
|
|
16
23
|
3. `extension_preview_web` with `share: true`, or `extension_shares`, for a
|
|
17
24
|
quick emulator link with no install and no sign-in. It is the second
|
|
18
25
|
link, beside the build page, never in place of it.
|
|
19
26
|
4. `extension_submit` for the stores. For a signed Firefox build, AMO
|
|
20
27
|
unlisted is the default route: it is how AMO signs a build for
|
|
21
|
-
self-distribution,
|
|
22
|
-
site
|
|
28
|
+
self-distribution, it goes through `extension_submit`, not the AMO
|
|
29
|
+
site, and it is what every submission with no saved release channel
|
|
30
|
+
gets.
|
|
23
31
|
|
|
24
32
|
The preview runs content scripts on its own sample pages only. That is a
|
|
25
33
|
limit of the preview, never a reason to send a zip by hand: the build page
|
|
@@ -123,8 +131,13 @@ Credential shapes and portals:
|
|
|
123
131
|
requires an existing add-on GUID. Unlisted with an empty GUID creates a
|
|
124
132
|
NEW add-on; copy the assigned GUID back into the store settings after the
|
|
125
133
|
first submission, or every later empty-GUID submission creates another
|
|
126
|
-
add-on.
|
|
127
|
-
|
|
134
|
+
add-on. With no saved release channel the platform uploads unlisted,
|
|
135
|
+
always, never a channel read from AMO's current listing; a saved channel
|
|
136
|
+
is used as is. AMO is read only as a guard: an add-on AMO already lists,
|
|
137
|
+
with no saved channel, is refused before upload until a release channel
|
|
138
|
+
is saved in the store settings, because an unlisted upload of a listed
|
|
139
|
+
add-on burns the version number, and the refusal holds while AMO cannot
|
|
140
|
+
be read.
|
|
128
141
|
- Edge: Client ID (GUID) and API key from the Partner Center Publish API
|
|
129
142
|
page (partner.microsoft.com/dashboard/microsoftedge/publishapi, "Turn on
|
|
130
143
|
API" / "+ New API key"). This is the current ApiKey model, not an Azure AD
|
|
@@ -154,9 +167,11 @@ never leave the console, so no submission command takes one.
|
|
|
154
167
|
[cross-browser.md](cross-browser.md).
|
|
155
168
|
- A signed Firefox build for testers or self-distribution goes through
|
|
156
169
|
`extension_submit` to AMO's unlisted channel, the default route for it:
|
|
157
|
-
AMO signs the build without a public listing.
|
|
158
|
-
|
|
159
|
-
channel
|
|
170
|
+
AMO signs the build without a public listing. With no saved release
|
|
171
|
+
channel the submission is unlisted, always, so nothing needs setting
|
|
172
|
+
first; a saved channel is used as is, and an add-on AMO already lists is
|
|
173
|
+
refused before upload until a release channel is saved (see the
|
|
174
|
+
credential notes above).
|
|
160
175
|
- If the build targets MV2 on Firefox (`firefox:manifest_version: 2`), the
|
|
161
176
|
AMO listing and the Chrome listing will differ in manifest claims; that is
|
|
162
177
|
expected and fine.
|
|
@@ -166,9 +181,10 @@ never leave the console, so no submission command takes one.
|
|
|
166
181
|
## Publishing to extension.dev
|
|
167
182
|
|
|
168
183
|
`extension_publish` is the lead for every share or distribution ask. It
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
184
|
+
returns a build link, `<workspace>.extension.dev/<project>/builds/<sha>`,
|
|
185
|
+
or on a public project also a channel link,
|
|
186
|
+
`<workspace>.extension.dev/<project>/channels/<channel>`, each with a
|
|
187
|
+
download and a run command per browser. The CLI path, for when the MCP server is not
|
|
172
188
|
connected:
|
|
173
189
|
|
|
174
190
|
```bash
|
|
@@ -176,7 +192,7 @@ connected:
|
|
|
176
192
|
npx @extension.dev/mcp login --project <workspace>/<project> # MCP: extension_auth action:login
|
|
177
193
|
npx @extension.dev/mcp whoami # MCP: extension_auth action:status
|
|
178
194
|
|
|
179
|
-
# Publish the built extension (
|
|
195
|
+
# Publish the built extension (build link)
|
|
180
196
|
EXTENSION_DEV_TOKEN=<token> extension publish # MCP: extension_publish
|
|
181
197
|
```
|
|
182
198
|
|