Create Canvas Extension

Create Canvas Extension

Walks an agent through scaffolding and registering a canvas extension in the awesome-copilot repository, asking for missing metadata and wiring it into plugin manifests.

Skill files1 file
SKILL.md125 lines
1
---
2
name: create-canvas-extension
3
description: 'Create or register a canvas extension in the awesome-copilot repository. Use when asked to scaffold a new canvas extension, create its plugin.json, add a reusable extension to one or more plugins, or migrate extension metadata. Extensions are reusable source under extensions/; shippable plugin manifests belong under plugins/.'
4
argument-hint: '[optional extension name or description]'
5
---
6
7
# Create a canvas extension
8
9
Use this skill only for the `github/awesome-copilot` repository. Canvas extensions are reusable source components. They do not have a `plugin.json` under `extensions/`.
10
11
## Required decisions
12
13
Before creating files, ask for each missing value:
14
15
1. **Extension ID**: lowercase kebab-case, matching the source folder and plugin name.
16
2. **Display metadata**:
17
- description
18
- version (default `1.0.0`)
19
- author name and optional URL
20
- keywords (lowercase, hyphenated, maximum 10)
21
- repository and license (default to the repository URL and `MIT` when appropriate)
22
3. **Canvas entrypoint**: confirm whether the extension already has `extension.mjs`. If not, create a minimal entrypoint only when the user provides enough implementation details; otherwise create the directory and leave an explicit TODO.
23
4. **Preview image**: obtain an existing `assets/preview.png` path or ask the user to add it. Do not invent a binary image or silently use a misleading placeholder.
24
5. **Plugin registration**:
25
- For a standalone installable canvas plugin, create `plugins/<extension-id>`.
26
- For an extension that belongs to an existing plugin, ask for the parent plugin ID and add `./extensions/<extension-id>` to that plugin's `extensions.com.github.awesome-copilot.extensions`.
27
- If the extension should be shipped by multiple plugins, collect all plugin IDs and add the same extension ID to each mapping file.
28
29
## Files to create
30
31
For a new extension plugin, create this structure:
32
33
```text
34
extensions/<extension-id>/
35
├── extension.mjs
36
└── assets/
37
└── preview.png
38
39
plugins/<extension-id>/
40
├── plugin.json
41
└── README.md
42
```
43
44
The extension source may contain additional files such as `package.json`, canvas assets, or supporting modules. Keep all reusable implementation files under `extensions/<extension-id>/`.
45
46
Create `plugins/<extension-id>/plugin.json` with this shape:
47
48
```json
49
{
50
"$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
51
"name": "<extension-id>",
52
"description": "<description>",
53
"version": "1.0.0",
54
"author": {
55
"name": "<author>"
56
},
57
"repository": "https://github.com/github/awesome-copilot",
58
"license": "MIT",
59
"keywords": [
60
"<keyword>"
61
],
62
"extensions": {
63
"com.github.copilot": {
64
"logo": "assets/preview.png"
65
},
66
"com.github.awesome-copilot": {
67
"extensions": [
68
"./extensions/<extension-id>"
69
]
70
}
71
}
72
}
73
```
74
75
Keep Agent Plugins fields at the manifest top level. Repository composition belongs only under `extensions.com.github.awesome-copilot`; do not put `agents`, `commands`, `hooks`, or `skills` at the top level or directly under `extensions`. MCP servers are declared in `mcp.json` at the plugin root, never in `plugin.json`. Do not add `x-awesome-copilot`, `standalone`, or other repository-specific top-level fields.
76
77
For an existing parent plugin, create or update:
78
79
```text
80
plugins/<parent-plugin>/plugin.json (`extensions.com.github.awesome-copilot.extensions`)
81
```
82
83
Its `extensions` property must contain sorted repository-relative paths:
84
85
```json
86
{
87
"extensions": [
88
"./extensions/<extension-id>"
89
]
90
}
91
```
92
93
Do not copy the extension source into the parent plugin. Materialization resolves the IDs from the root `extensions/` directory, so the same source can be bundled by multiple plugins.
94
95
## Workflow
96
97
1. Inspect the repository before editing:
98
- confirm `extensions/<extension-id>` and `plugins/<extension-id>` do not already conflict
99
- inspect the target parent plugin, if any
100
- check whether a preview image and entrypoint already exist
101
2. Ask only the missing required questions from the decisions above.
102
3. Create the source and plugin directories with the required files.
103
4. If creating a new entrypoint, keep it minimal and clearly mark implementation TODOs rather than fabricating behavior.
104
5. Add or update `extensions.com.github.awesome-copilot.extensions` for every parent plugin that should ship the extension. Keep paths alphabetically sorted and unique.
105
6. Ensure there is no `extensions/<extension-id>/.github/plugin/plugin.json`.
106
7. Run:
107
108
```bash
109
npm run plugin:validate
110
npm run build
111
npm run website:data
112
```
113
114
8. Report the created paths, the plugins that ship the extension, and any missing user-provided assets or TODOs.
115
116
## Existing extension migration
117
118
When migrating an existing extension:
119
120
1. Move its existing manifest to `plugins/<extension-id>/plugin.json`.
121
2. Update the manifest to the namespace-based `extensions.com.github.copilot.logo` shape.
122
3. Remove the old manifest from `extensions/<extension-id>`.
123
4. Register the extension in any parent plugin's `extensions.com.github.awesome-copilot.extensions`.
124
5. Run the validation and build commands above.
125

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…