canvas-authoring — плагин для GitHub Copilot
Настраивает Microsoft Canvas Toolkit и добавляет стартеры для нативного скилла create-canvas, чтобы агент собрал canvas-приложение. Сам по себе canvas не открывает.
copilot plugin install canvas-authoring@awesome-copilotЧто делает canvas-authoring
Плагин работает как дополнение к нативному скиллу create-canvas в хосте GitHub Copilot. Он даёт инструкции по настройке Microsoft Canvas Toolkit и два стартера: счётчик и просмотрщик групп ресурсов Azure только на чтение. Собственный скилл плагина называется create-canvas-app. Без установленного скилла create-canvas в хосте плагин ничего не заменит и не поставит его за вас.
Перед работой нужен canvas-совместимый хост Copilot, Node.js 22+ и доступный пакет toolkit. Для Azure-стартера понадобится ещё Azure CLI 2.61+ и право читать подписку. Настройка принимает одну точную версию npm или локальный .tgz, не ставит зависимости и не ходит в Azure. Существующую выходную папку она не перезапишет, а откажется.
Собранное приложение ставится из dist/ по README — обновление страницы в браузере не подхватит новый код провайдера, о несовпадении скажет предупреждение о build ID. Azure-приложение ждёт ваших действий: загрузить профиль CLI, выбрать подписку, нажать список групп ресурсов. Само оно не входит в аккаунт и ничего в Azure не пишет. Плагин считает вызовы скилла create-canvas-app: имя, способ вызова, версия, время, хранит до 30 дней.
Какие задачи решает
- собрать canvas-приложение со стартовым счётчиком
- поднять просмотрщик групп ресурсов Azure только на чтение
- настроить Microsoft Canvas Toolkit под нативный
create-canvas - проверить сгенерированное приложение через
npm run smoke - выбрать подписку Azure вручную и посмотреть её ресурсы
Примеры запросов агенту
- Используй нативный скилл
create-canvasи стартер counter из компаньонаcreate-canvas-app, собери canvas-приложение. - Собери read-only canvas для Azure со списком групп ресурсов через нативный
create-canvasи Azure-стартер изcreate-canvas-app. - Прогони сборку и
npm run smokeв сгенерированном приложении перед установкойdist/.
Как установить canvas-authoring
Команда из источника
copilot plugin install canvas-authoring@awesome-copilotПо шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой
Вопросы о canvas-authoring
Как установить canvas-authoring в GitHub Copilot?
Добавьте маркетплейс и поставьте плагин: copilot plugin marketplace add github/awesome-copilot, затем copilot plugin install canvas-authoring@awesome-copilot. Для одобренного локального экспорта запустите copilot --plugin-dir "<export-directory>/plugins/canvas-authoring".
Что делает canvas-authoring?
Даёт нативному скиллу create-canvas настройку Canvas Toolkit и стартеры: счётчик и просмотр групп ресурсов Azure только на чтение. Плюс помощь по стилям, входу и подпискам.
Что нужно, чтобы Azure-стартер заработал?
Нужны Azure CLI 2.61+ и право читать подписку. Приложение не входит в аккаунт само: профиль CLI загружаете вы, подписку выбираете тоже вы.
Исходный текст
canvas-authoring · MIT
# Canvas authoring plugin Create a canvas app with the Microsoft Canvas Toolkit. This **skill-only companion** gives the host's native `create-canvas` workflow toolkit setup and a counter or read-only Azure resource-group starter; installing it does not open a canvas. ## Install If your GitHub Copilot host shows the **awesome-copilot** marketplace, open **Customize → Plugins** and install **canvas-authoring**. Its [listed 0.1.1 package](https://github.com/microsoft/azure-dev-tools/tree/a6d394bbaa6fb1dc0151257a85cbac0de772b138/plugins/canvas-authoring) is a skill-only companion, not a canvas extension. If the marketplace is missing, add it first: ```sh copilot plugin marketplace add github/awesome-copilot copilot plugin install canvas-authoring@awesome-copilot ``` For an approved local export, run: ```sh copilot --plugin-dir "<export-directory>/plugins/canvas-authoring" ``` Install the exported plugin, not this source folder. You need a canvas-capable Copilot host with the native `create-canvas` skill, Node.js 22+, and an available toolkit package; the Azure starter also needs Azure CLI and subscription read access. See [requirements](#requirements). ## Try it Ask your agent to **Build a read-only Azure canvas that lists resource groups. Use the native create-canvas skill and the create-canvas-app companion's Azure starter.** Choose a compatible toolkit package and project location when prompted. For a non-Azure example, ask for the counter starter. ## What you can do - Generate a native canvas scaffold with a working counter starter. - Start a read-only Azure resource-group viewer with explicit subscription choice. - Build and smoke-test the generated app before installing its complete output. ## Prompts to try > Use the native create-canvas skill and the create-canvas-app companion to build a counter canvas. > Build a read-only Azure canvas that lists resource groups. Use the native create-canvas skill and the create-canvas-app companion's Azure starter. ## Requirements - A canvas-capable GitHub Copilot host with its installed `create-canvas` skill. The plugin does not replace or install that host skill. - Node.js 22+ (24 recommended) and npm. - The exact `@microsoft/[email protected]` release exporting `@microsoft/canvas-toolkit/build`, once published, or an approved local `.tgz` containing that API. Do not treat a missing `/build` export as success. - For live Azure reads: Azure CLI 2.61+ and permission to read the subscription. ## Usage data The plugin counts how often its `create-canvas-app` skill is invoked. Each count records the skill name, how it was invoked, the plugin name and version, and a timestamp. Usage telemetry may include a pseudonymous account identifier to understand usage over time; it is retained for up to 30 days. The plugin does not send prompts, project files or source code. ## Create an app The agent creates the native scaffold, generates the source app, and connects the copied host entry. You choose the project location and toolkit package. Setup accepts one exact npm version or one local tarball. It does not install dependencies or contact Azure, and it refuses existing output directories rather than overwriting files. For command-line setup, see the [skill instructions](skills/create-canvas-app/SKILL.md). ## Build and run In the generated app: ```sh npm install npm run build npm test npm run smoke ``` `smoke` is available in the Azure starter. It uses installed Chrome, or the executable specified by `CANVAS_BROWSER`, with labelled synthetic data. Keep `package-lock.json` and use `npm ci` for later installs. Follow the generated README and host skill to install the complete `dist/` directory and reload the provider. A browser refresh does not load rebuilt provider code; a build-ID warning indicates a mismatch. The Azure app does nothing until you act: load the CLI profile, select a subscription, then choose **List resource groups**. It never signs in, chooses a subscription, or writes Azure resources automatically. Browser checks do not replace trying the app in the native host with your Azure account. ## Customize Start with the generated README's source map and the [Azure quickstart](skills/create-canvas-app/references/toolkit/quickstart.md). Keep the shared UI/agent actions, explicit scope and cancellation when changing the reader or display. The [integration reference](skills/create-canvas-app/references/toolkit.md) covers the host adapter and build settings. Toolkit guides are included in the plugin and generated from the toolkit sources. Their [provenance](skills/create-canvas-app/references/toolkit/provenance.json) records versions and checksums; it does not establish npm availability.
© Alex Weininger · MIT · microsoft/azure-dev-tools