@extension.dev/skill 0.5.1 → 1.0.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 +2 -2
- package/.claude-plugin/plugin.json +2 -2
- package/CHANGELOG.md +121 -2
- package/LICENSE +201 -21
- package/README.md +52 -16
- package/package.json +15 -7
- package/skills/extension-dev/SKILL.md +111 -29
- package/skills/extension-dev/references/cross-browser.md +49 -33
- package/skills/extension-dev/references/debugging.md +149 -48
- package/skills/extension-dev/references/migrating.md +72 -0
- package/skills/extension-dev/references/project-structure.md +42 -6
- package/skills/extension-dev/references/publishing.md +159 -26
- package/skills/extension-dev/references/store-md.md +19 -5
- package/skills/extension-dev/references/surface-content.md +54 -0
- package/skills/extension-dev/references/surface-devtools.md +49 -0
- package/skills/extension-dev/references/surface-newtab.md +44 -0
- package/skills/extension-dev/references/surface-options.md +41 -0
- package/skills/extension-dev/references/surface-popup.md +44 -0
- package/skills/extension-dev/references/surface-sidepanel.md +52 -0
- package/skills/extension-dev/references/templates.md +8 -5
|
@@ -14,8 +14,8 @@ reference for the pattern.
|
|
|
14
14
|
|
|
15
15
|
## Discovering templates
|
|
16
16
|
|
|
17
|
-
Use the MCP
|
|
18
|
-
framework, tags, or free text, and `
|
|
17
|
+
Use the MCP tool `extension_templates`: `action: "list"` filters the catalog by
|
|
18
|
+
surface, framework, tags, or free text, and `action: "source"` reads a
|
|
19
19
|
template's files without cloning. These cover discovery end to end.
|
|
20
20
|
|
|
21
21
|
The underlying registry is `templates-meta.json`, a static JSON asset
|
|
@@ -39,9 +39,12 @@ the SPA HTML. Use the GitHub release asset or raw.githubusercontent.com.
|
|
|
39
39
|
| Content script | `content` | `content-react` | `content-vue` | `content-svelte` | |
|
|
40
40
|
| Sidebar | `sidebar` | `sidebar-shadcn` | | | `ai-claude` |
|
|
41
41
|
| Action popup | `action` | | | | `ai-chatgpt` |
|
|
42
|
-
| New tab | `
|
|
42
|
+
| New tab | `newtab` | `newtab-react` | `newtab-vue` | `newtab-svelte` | |
|
|
43
43
|
| Full framework | `javascript` | `react` | `vue` | `svelte` | |
|
|
44
44
|
|
|
45
|
+
`newtab-preact` and `newtab-typescript` cover Preact and plain TypeScript
|
|
46
|
+
for the new tab surface.
|
|
47
|
+
|
|
45
48
|
For complex content script patterns (multi-level imports, main-world
|
|
46
49
|
isolation), read `content-multi-one-entry`, `content-multi-three-entries`,
|
|
47
50
|
and `content-main-world`.
|
|
@@ -67,8 +70,8 @@ and zip URLs also work as `--template` values.
|
|
|
67
70
|
|
|
68
71
|
When building an unfamiliar feature, read the actual source of the closest
|
|
69
72
|
template instead of recalling API shapes from memory. The MCP tool
|
|
70
|
-
`
|
|
71
|
-
browsing by hand, each template lives at:
|
|
73
|
+
`extension_templates` with `action: "source"` returns a template's files
|
|
74
|
+
directly. For browsing by hand, each template lives at:
|
|
72
75
|
|
|
73
76
|
```
|
|
74
77
|
https://github.com/extension-js/examples/tree/main/examples/<slug>/src
|