设计与 UI
acryl-build-extension
Use when the user asks you to add a feature, tool, panel, command or integration to ACRYL itself (build a plugin or extension). The end-to-end workflow, from reading the docs to a live plugin.
acryldev · 已有 AI 审核记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add acryldev/acryl --skill acryl-build-extension技能说明
name: acryl-build-extension description: Use when the user asks you to add a feature, tool, panel, command or integration to ACRYL itself (build a plugin or extension). The end-to-end workflow, from reading the docs to a live plugin.
Build an ACRYL extension
- Read {{pack}}/docs/start-here/this-runtime.md completely (contracts, delivery).
- Pick the plugin type(s) the feature needs and open the matching doc from {{pack}}/docs/README.md (tool, service, event hook, config, prompt, client UI, host route, tui command). Read it completely and follow its cross-references.
- Open the closest working example in {{pack}}/examples/README.md and read every file of it. Copy it into a NEW directory /.acryl-extensions// (outside the pack) and change it. Never guess a plugin's shape from memory.
- Write the package (package.json, cordis.patch.yml, index.js, and client.js for UI).
- Call the acryl_install_plugin tool with the ABSOLUTE path of that directory. Read its result. Fix the named cause and call it again if it fails; it undoes failed installs.
- Tell the user what you built, whether it is live, and (for UI) that they should reload the page or window. Do not claim it works before the tool result says so. You cannot publish to the marketplace; say what remains if the user wants that.