@extension.dev/skill 0.4.1 → 0.5.0
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/package.json +1 -1
- package/skills/extension-dev/SKILL.md +9 -4
- package/skills/extension-dev/references/cross-browser.md +37 -0
- package/skills/extension-dev/references/publishing.md +17 -2
- package/skills/extension-dev/references/store-md.md +123 -0
|
@@ -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": "0.
|
|
13
|
+
"version": "0.5.0",
|
|
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": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cezar Augusto",
|
|
7
7
|
"email": "boss@cezaraugusto.net",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
Introduces the `STORE.md` convention: one tracked file at the project root
|
|
6
|
+
holding listing copy, permission justifications, privacy disclosures, per
|
|
7
|
+
store reviewer notes, and version history, one section per store.
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- New reference `references/store-md.md` with the template, the maintenance
|
|
12
|
+
rules (manifest change, release, rejection, privacy shift), and the table
|
|
13
|
+
of fields `extension-deploy` 1.4.0 submits automatically (Firefox reviewer
|
|
14
|
+
and release notes, Edge certification notes).
|
|
15
|
+
- Workflow step 6 and `references/publishing.md` now direct the agent to
|
|
16
|
+
create and maintain `STORE.md` as soon as publishing intent appears.
|
|
17
|
+
- The Chrome section mirrors the `CHROMEWEBSTORE.md` shape other agent
|
|
18
|
+
tooling expects, so those agents find their sections here.
|
|
19
|
+
- Firefox `data_collection_permissions` coverage: cross-browser.md documents
|
|
20
|
+
the manifest key (mandatory for new AMO add-ons since 2025-11-03, all
|
|
21
|
+
extensions during 2026), the store readiness checklist gains a matching
|
|
22
|
+
item, and STORE.md maintenance rules require the privacy section, the
|
|
23
|
+
policy, and the manifest declaration to agree.
|
|
24
|
+
|
|
25
|
+
## 0.4.2
|
|
26
|
+
|
|
27
|
+
Accuracy release alongside @extension.dev/mcp 5.1.0.
|
|
28
|
+
|
|
29
|
+
### Changed
|
|
30
|
+
|
|
31
|
+
- The MCP companion's tool count is 31 (the deploy tool joined the surface);
|
|
32
|
+
the stack table said 30.
|
|
33
|
+
- Ships the em dash cleanup across docs, comments, and shipped strings that
|
|
34
|
+
landed after 0.4.1.
|
|
35
|
+
|
|
3
36
|
## 0.4.1
|
|
4
37
|
|
|
5
38
|
Docs-only release: trims a retired entry from the stack table so the companion
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@extension.dev/skill",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
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, LibreWolf): 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": {
|
|
@@ -4,7 +4,7 @@ description: Build, debug, and publish cross-browser extensions (Chrome, Edge, F
|
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
6
|
author: Cezar Augusto
|
|
7
|
-
version: 0.
|
|
7
|
+
version: 0.5.0
|
|
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):
|
|
20
|
+
- **`@extension.dev/mcp`** (MCP server): 31 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`).
|
|
61
|
-
|
|
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
|
|
|
@@ -170,3 +174,4 @@ Read the one that matches the task; skip the rest.
|
|
|
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
176
|
| [references/publishing.md](references/publishing.md) | Building zips, store listings, permission justifications, 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
|
|
@@ -43,13 +43,28 @@ 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
|
|
49
|
-
reinvent them.
|
|
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.
|
|
50
60
|
|
|
51
61
|
## Firefox specifics
|
|
52
62
|
|
|
63
|
+
- New add-ons (first submission, no existing GUID) must declare
|
|
64
|
+
`browser_specific_settings.gecko.data_collection_permissions` in the
|
|
65
|
+
manifest or AMO rejects the submission; `{"required": ["none"]}` when the
|
|
66
|
+
extension transmits nothing. See the data collection section in
|
|
67
|
+
[cross-browser.md](cross-browser.md).
|
|
53
68
|
- AMO accepts unlisted submissions for self-distribution; useful for testing
|
|
54
69
|
signed builds without a public listing.
|
|
55
70
|
- 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.
|