Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

canvas-extension-api

БесплатноЗапускает вложенные скриптыНе проверен

This skill should be used when the user asks to "create an OpenHands App", "scaffold a Canvas App", "build an app with the Canvas Extensions API", "build an…

OpenHandsот OpenHands★ 190 звёзд на GitHub

Об этом скилле

Canvas Extensions API

Build and validate OpenHands Apps with the Canvas Extensions API, targeting the currently implemented manifest schema 1 and host API 1 routed-page ABI.

Use the naming layers consistently:

  • OpenHands Apps - customer-facing category for interfaces people discover, install, enable, and open.
  • Apps for Agent Canvas - product phrasing that clarifies where apps run.
  • Canvas Extensions API - developer platform used to build apps.
  • Canvas extension package - technical artifact containing canvas-extension.json and its entrypoint.
  • OpenHands Extensions - ecosystem and repository umbrella for apps, skills, plugins, automations, and integrations.

Use current product labels in user-facing instructions: Apps for Agent Canvas, Add app, Installed apps, App source, Enable trusted app, and Build an app. Keep technical identifiers such as canvas-extension.json, /api/canvas-extensions/*, host.extension, and /extensions/* unchanged unless the target implementation changes them.

Treat apps as trusted, same-realm browser code owned by the active Agent Server. Keep the categories distinct: apps extend what people can do in Agent Canvas, plugins extend agent runtime capabilities, and skills provide agent instructions and knowledge.

Prefer the proven App authoring loop

Treat an App as one authenticated browser dependency graph that Canvas imports from a Blob URL. Do not build a hosted SPA: the production result must be exactly one self-contained browser ESM entrypoint that exports activate(host). Always ship this UI package even when it uses an optional package-owned managed backend or a manual/deployment-owned Sidecar. Make the App page the guided UI for service setup after the App is opened. Never treat a service as another browser chunk or an automatic extension install hook.

For a new App, create an independent package in the target repository and implement its own UI, tests, and build tooling. Follow the Vite library-build reference in references/packaging-recipes.md; do not copy a shared starter or introduce a repository-wide runtime/workspace unless the target repository explicitly requires it.

Keep all source, scripts, dependencies, tests, and checked-in extension.js inside the App package. Implement one declared page with explicit root, nested, and unknown-route behavior. Inject scoped CSS per mount and clean it up with framework roots, requests, listeners, timers, Workers, and object URLs. Build validation must verify dist/extension.js before synchronizing it to the App root. Do not synchronize an unverified artifact. Use CHROME_PATH when the Chrome executable is elsewhere.

For an existing App, run the reusable static gate before and after its own checks:

node /path/to/canvas-extension-api/scripts/validate-extension.mjs /path/to/app
node /path/to/canvas-extension-api/scripts/validate-extension.mjs /path/to/app --dist --marker <required-feature-marker>

Treat the static validator as a gate, not a replacement for the browser Blob smoke test. Read references/packaging-recipes.md before adding CSS, raw assets, dynamic modules, Workers, or WASM. Read references/backend-safety.md before any Agent Server integration or persistence. Read references/sidecar-pattern.md before designing a separately installed service or its onboarding. Read references/acceptance-checklist.md before reporting local Canvas compatibility.

Establish the target

Start by locating the target directory instead of assuming the current workspace. Inspect repository instructions, existing package management, build tooling, tests, and git status before editing.

Make an early architecture decision: browser-only App, Agent Server-integrated App, package-owned managed-backend App, manual/deployment-owned Sidecar App, or explicitly deployment-specific App. Keep the portable host API 1 surface separate from optional Agent Server/host capabilities and deployment-owned behavior.

Use the package-owned managed-backend path only when the target stack includes the lifecycle contract from software-agent-sdk PR #5270 at ac7b322ddf7d2e0e90a3643c5e26d848236af9a3, the bridge contract from PR #5272 at 6d9c82973e765cce4843d6a2fb52f634efa64293, and the host version named in references/v1-contract.md. Until a release containing both SDK PRs lands, those exact revisions are the minimum Agent Server implementation. Feature-detect canvas_app_backend_bridge_v1 and app_backend_ingress_url through GET /server_info; absence is an actionable unsupported state. Do not convert manual Sidecars into managed backends unless the App owns checksum-pinned artifacts for every supported platform.

Clarify only choices that materially affect implementation:

  • app purpose and page behavior;
  • target repository and subdirectory;
  • dependen
Полный SKILL.md на GitHub

Установить canvas-extension-api в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.claude-plugin.codex-plugin.plugin/plugin.jsonREADME.mdreferences/acceptance-checklist.mdreferences/backend-safety.mdreferences/connections.mdreferences/native-design.mdreferences/packaging-recipes.mdreferences/sidecar-pattern.mdreferences/testing-and-installation.mdreferences/v1-contract.mdscripts/validate-extension.mjsscripts/validate-extension.test.mjs

FAQ

Что делает скилл canvas-extension-api?

This skill should be used when the user asks to "create an OpenHands App", "scaffold a Canvas App", "build an app with the Canvas Extensions API", "build an Agent Canvas App", "bundle a single-file Canvas App", "build a Sidecar-backed Canvas App", "add onboarding for an App service", "add a custom interface to Agent Canvas", "validate an OpenHands App", "make a Canvas App look native", "match Agent Canvas styles", "style a canvas extension", "reuse OpenHands design tokens", "add native Tailwind classes to an app", or mentions Canvas Apps, Agent Canvas extensions, Blob-importable app bundles, registerPage, app pages, Sidecars, or canvas extension packages.

Как установить скилл canvas-extension-api?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл canvas-extension-api запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить canvas-extension-api с