[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BXNCQ0HSADEWKBYMHWW911":3,"skill-same:01M6BXNCQ0HSADEWKBYMHWW911":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":52,"linkOnly":53,"markdownContent":54,"markdownBody":55,"frontMatter":56,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":62,"ownerHtmlUrl":63,"ownerBlogUrl":64,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M6BXNCQ0HSADEWKBYMHWW911","vertesia-plugin","Vertesia 插件架构参考","Reference for plugin architecture, dual build system, import hooks, and deployment. Use when understanding plugin structure or build configuration. For creating resources use vertesia-tool-server-resource; for UI use vertesia-ui; for client API use vertesia-api.","关于插件架构、双构建系统、导入钩子和部署的参考资料。用于理解插件结构或构建配置。创建资源请使用 vertesia-tool-server-resource；构建 UI 请使用 vertesia-ui；客户端 API 请使用 vertesia-api。","vertesia\u002Fcomposableai","vertesia","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F143534049?v=4","01M6BXMXK8EF2HWVKP7PKVM3FY","Vertesia","01M6BXMXPZ80586HD1BDGV7RYR",5,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fvertesia\u002Fcomposableai\u002Fblob\u002Fmain\u002Ftemplates\u002Fplugin-template\u002F.agents\u002Fskills\u002Fvertesia-plugin\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],"plugin","vertesia plugin","reference","client","build","structure","when","use","hooks","plugin architecture","for","resources","import","Plugin Structure","api","architecture","ui","tool","system","deployment","server","2026-11-10 10:12:30",false,"---\nname: vertesia-plugin\ndescription: Reference for plugin architecture, dual build system, import hooks, and deployment. Use when understanding plugin structure or build configuration. For creating resources use vertesia-tool-server-resource; for UI use vertesia-ui; for client API use vertesia-api.\n---\n\n# Vertesia Plugin Development\n\nThis project is a Vertesia plugin with a dual architecture: a **tool server** (Hono backend) and a **UI plugin** (React frontend), built and deployed as a single unit.\n\nUser-owned app code lives in `src\u002Fmodules\u002Fapp`. Add UI under `src\u002Fmodules\u002Fapp\u002Fui` and tool-server resources under `src\u002Fmodules\u002Fapp\u002Fresources`. The optional `src\u002Fmodules\u002Fexamples\u002Fresources` module contains starter code demonstrating each resource type. Use it as reference, then put your own implementation in the app module.\n\nFor extended documentation see `README-tools.md` (tool server), `README-ui.md` (UI plugin), and `TESTING-tools.md` (testing guide) at the project root.\n\nFor full code examples of all resource types, see REFERENCE.md.\n\n## Project Structure\n\n```text\nsrc\u002F\n  tool-server\u002F           # Backend (Hono) - compiled by Rollup\n    server.ts            # Hono server entry (createToolServer from @vertesia\u002Ftools-sdk)\n    server-node.ts       # Node.js HTTP adapter for local dev\n    config.ts            # Server configuration - imports generated module collections\n    app-server-modules.ts # Generated resource aggregator\n    settings.ts          # JSON Schema for plugin settings\n    mcp\u002F                 # Shared MCP provider infrastructure\n      MCPProvider.ts     # Base provider definition\n  ui\u002F                    # Frontend (React) - compiled by Vite\n    plugin.tsx           # Library entry - default export component for Vertesia host\n    main.tsx             # Standalone app entry for dev mode\n    app-ui-entry.tsx     # Generated AppEntry selector\n    app-ui-modules.tsx   # Generated route\u002Fprovider aggregator\n    shell\u002F               # Shared runtime shell\u002Fchrome, not app business logic\n      App.tsx            # Wraps module providers and NestedRouterProvider\n      AppEntry.tsx       # Default Studio shell entry\n      layouts\u002F           # Shared app layout primitives\n      components\u002F        # Shared shell primitives\n    env.ts               # Environment config (VITE_APP_NAME)\n    assets.ts            # Asset URL resolution (plugin mode vs dev mode)\n    index.css            # Tailwind CSS 4 with @source directives\n  modules\u002F\n    app\u002F                 # User-owned app module; always active\n      ui\u002F\n        routes.tsx       # User app route definitions\n        pages\u002F           # Route-level user pages\n        features\u002F        # User feature folders\n      resources\u002F\n        tools\u002F           # Tool collections\n        skills\u002F          # Skill collections\n        interactions\u002F    # Interaction collections\n        types\u002F           # Content type collections\n        templates\u002F       # Rendering template collections\n        activities\u002F      # Remote activity collections\n        dashboards\u002F      # App dashboard definitions\n        hooks\u002F           # App lifecycle and event hook definitions\n        mcp\u002F             # App-owned MCP provider registrations\n        subscriptions\u002F   # Event subscriptions targeting app event hooks\n    assistant\u002F           # Optional assistant UI module\n    examples\u002F            # Optional example resource module\n    app-gateway\u002F         # Optional app-gateway runtime entry\n    agent\u002F               # Optional agent-facing helper components\napi\u002F\n  index.js               # Vercel serverless adapter (forwards to Hono fetch)\ndist\u002F                    # Build outputs\nlib\u002F                     # Compiled server JS (ESM)\n```\n\n## Build System\n\nTwo independent build pipelines:\n\n| Build               | Tool                     | Entry                       | Output               | Config Files                                    |\n| ------------------- | ------------------------ | --------------------------- | -------------------- | ----------------------------------------------- |\n| Tool Server         | Rollup                   | `src\u002Ftool-server\u002Fserver.ts` | `lib\u002F*.js` (ESM)     | `rollup.config.js`, `tsconfig.tool-server.json` |\n| UI Plugin (library) | Vite                     | `src\u002Fui\u002Fplugin.tsx`         | `dist\u002Flib\u002Fplugin.js` | `vite.config.ts --mode lib`, `tsconfig.ui.json` |\n| UI App (standalone) | Vite                     | `src\u002Fui\u002Fmain.tsx`           | `dist\u002Fui\u002F`           | `vite.config.ts --mode app`, `tsconfig.ui.json` |\n| Skill Widgets       | Rollup (via build-tools) | `skills\u002F**\u002F*.tsx`           | `dist\u002Fwidgets\u002F*.js`  | `tsconfig.widgets.json`                         |\n\n### Commands\n\n```bash\npnpm build                 # Full build: server + UI (lib and app)\npnpm build:server          # Rollup server only\npnpm dev                   # Build server + start on port 3000\npnpm dev:ui                # Vite dev server with HMR (https:\u002F\u002Flocalhost:5173)\npnpm build:ui:lib          # Plugin library build (dist\u002Flib\u002Fplugin.js)\npnpm build:ui:app          # Standalone app build (dist\u002Fui\u002F)\npnpm start                 # Run compiled server\npnpm start:watch           # Run with --watch (auto-restart on lib\u002F changes)\npnpm start:debug           # Run with --inspect for Node debugger\n```\n\n## Import Hooks (@vertesia\u002Fbuild-tools)\n\nThese Rollup import transformations only work in `src\u002Ftool-server\u002F` code:\n\n| Import                                      | Produces                                                     |\n| ------------------------------------------- | ------------------------------------------------------------ |\n| `import x from '.\u002Fmy-skill\u002FSKILL.md'`       | `SkillDefinition` object (convention-based)                  |\n| `import x from '.\u002Fdefinition.md?skill'`     | `SkillDefinition` object (query-based)                       |\n| `import x from '.\u002Fall?skills'`              | `SkillDefinition[]` (auto-discovers subdirs with SKILL.md)   |\n| `import x from '.\u002Fmy-template\u002FTEMPLATE.md'` | `RenderingTemplateDefinition` object                         |\n| `import x from '.\u002Fall?templates'`           | `RenderingTemplateDefinition[]` (auto-discovers TEMPLATE.md) |\n| `import x from '.\u002Fprompt.hbs?prompt'`       | `PromptDefinition { role, content, content_type, schema? }`  |\n| `import x from '.\u002Ffile.html?raw'`           | Raw string content                                           |\n\n## Creating Resources\n\nTo create tools, skills, interactions, content types, templates, hooks, or subscriptions, use the **vertesia-tool-server-resource** skill. It provides step-by-step scaffolding with full code examples.\n\nEach user resource follows the same pattern: create files under `src\u002Fmodules\u002Fapp\u002Fresources\u002F\u003Ctype>\u002F\u003Ccollection>\u002F`, export from the collection, then add the collection to `src\u002Fmodules\u002Fapp\u002Fresources\u002F\u003Ctype>\u002Findex.ts`. Non-collection contributions such as hooks, subscriptions, and MCP providers also expose arrays from their app-module resource indexes. `src\u002Ftool-server\u002Fconfig.ts` imports the generated `app-server-modules.ts` arrays.\n\nApp-owned contribution registries never belong in the tool-server bootstrap. A new contribution type must have a\ntyped empty default under `src\u002Fmodules\u002Fapp\u002Fresources`, be exported by that module's resource index, and be added to\nthe template codegen `SERVER_RESOURCES` list so `src\u002Ftool-server\u002Fapp-server-modules.ts` aggregates it.\n\n## App Identity And Portable IDs\n\nKeep the app name aligned across `package.json` `name`, `VITE_APP_NAME`, the app manifest name, and all\n`app:\u003Cname>:` ids. Do not hardcode a second app name in resource references.\n\n- Content type refs are `app:\u003Capp-name>:\u003Ctype-name>`; the type collection name is not part of the public id.\n- Interactions and activities are `app:\u003Capp-name>:\u003Ccollection>:\u003Cname>`.\n- Prefer `main` as the default interaction\u002Factivity collection name.\n- Do not resolve app-owned types to project-local ObjectIds; pass the in-code app type string directly to `client.objects.create`.\n- If the app registers backend resources, publish as `service`; `static` ships only UI assets.\n\n## UI Plugin\n\nFor UI component APIs, routing, layout, styling, and agent conversation patterns, use the **vertesia-ui** skill.\n\nWhen the task includes UI work, do not stop at \"it renders\". The UI pass should start with a `@vertesia\u002Fui` component inventory and end with a conformance check for duplicated primitives such as raw tables, native selects, local page headers, and inline styles.\n\nGenerated apps should feel like compact Vertesia Studio product surfaces: use light operational layouts, semantic\ntokens, tables\u002Fqueues\u002Fdetail pages, restrained typography, and small brand accents. Avoid dark-first, neon, oversized\nhero, or presentation-style layouts unless the user explicitly asks for them.\n\nKey entry points:\n\n- `src\u002Fui\u002Fplugin.tsx` — Library entry for Vertesia host (exports default component receiving `{ slot }`)\n- `src\u002Fui\u002Fmain.tsx` — Standalone dev entry (VertesiaShell + AdminApp at `\u002F`, plugin at `\u002Fapp\u002F`)\n- `src\u002Fui\u002Fshell\u002FApp.tsx` — Shared shell runtime wrapping module providers and routes\n- `src\u002Fmodules\u002Fapp\u002Fui\u002Froutes.tsx` — User app route definitions\n- `src\u002Fmodules\u002Fcontent-app\u002F` — Optional content-app module selected with `--module content-app`\n- `src\u002Fui\u002Fapp-ui-entry.tsx` and `src\u002Fui\u002Fapp-ui-modules.tsx` — Generated module wiring\n- `src\u002Fui\u002Fassets.ts` — `useAsset(path)` for URLs relative to the plugin bundle\n\n## Authentication\n\nTool endpoints receive JWT tokens via `Authorization: Bearer {token}`. The SDK validates automatically. Access the client via `const client = await context.getClient()` in tool `run()`. For full client API reference, use the **vertesia-api** skill.\n\nFor organization access restriction and deployment details, see REFERENCE.md.\n\n## Local Runtime Exposure\n\nFor project-connected testing, the local plugin server is not enough by itself. The installed Vertesia app manifest must point to a reachable package endpoint.\n\nUse this sequence:\n\n1. run the local HTTPS dev server\n2. expose it with a tunnel such as Cloudflare Tunnel\n3. update the installed app manifest `endpoint` to `\u003Cpublic-url>\u002Fapi\u002Fpackage`\n4. verify the app package from the public URL before debugging project-side failures\n\nIf the project does not see updated types, interactions, or activities, check the manifest endpoint before changing app code.\n\nWhen auth expires during this flow:\n\n1. refresh auth first\n2. verify the currently running dev server port still works\n3. verify the current public tunnel still resolves\n4. verify the installed app manifest still points to that live tunnel\n5. only then decide whether a new server or tunnel is needed\n\nDo not keep spawning new local ports and quick tunnels after an auth failure. The project can easily end up pointing at a dead tunnel even while the local app appears healthy.\n\n## Key Dependencies\n\n| Package                    | Role                                                                                     |\n| -------------------------- | ---------------------------------------------------------------------------------------- |\n| `@vertesia\u002Ftools-sdk`      | Tool server framework: `createToolServer`, `ToolCollection`, `SkillCollection`, auth     |\n| `@vertesia\u002Ftools-admin-ui` | Admin UI: browsable interface for all plugin resources                                   |\n| `@vertesia\u002Fbuild-tools`    | Rollup import plugins: `?skill`, `?skills`, `?template`, `?templates`, `?prompt`, `?raw` |\n| `@vertesia\u002Fplugin-builder` | Vite plugin for UI library builds (CSS extraction\u002Finjection)                             |\n| `@vertesia\u002Fclient`         | Vertesia API client for tool implementations                                             |\n| `@vertesia\u002Fcommon`         | Shared types: `InteractionSpec`, `InCodeTypeSpec`, etc.                                  |\n| `@vertesia\u002Fui`             | UI component library: `core`, `features`, `router`, `layout`, `session`, `shell`         |\n| `hono`                     | Lightweight web framework for the tool server                                            |\n\n## Code Conventions\n\n- ESM with `.js` import extensions: `import { x } from \".\u002Ffoo.js\"`\n- Type-safe definitions with inference: `{} satisfies Tool\u003CT>`, `{} satisfies InCodeTypeSpec`\n- Icons are SVG strings exported as default from `.ts` files\n- User collections must be exported from `src\u002Fmodules\u002Fapp\u002Fresources\u002F\u003Ctype>\u002Findex.ts`; do not hand-edit generated `src\u002Ftool-server\u002Fapp-server-modules.ts`\n- Skills use YAML frontmatter in `SKILL.md`; templates in `TEMPLATE.md`; prompts in `.hbs`\u002F`.jst`\u002F`.md` with `?prompt`\n","# Vertesia Plugin Development\n\nThis project is a Vertesia plugin with a dual architecture: a **tool server** (Hono backend) and a **UI plugin** (React frontend), built and deployed as a single unit.\n\nUser-owned app code lives in `src\u002Fmodules\u002Fapp`. Add UI under `src\u002Fmodules\u002Fapp\u002Fui` and tool-server resources under `src\u002Fmodules\u002Fapp\u002Fresources`. The optional `src\u002Fmodules\u002Fexamples\u002Fresources` module contains starter code demonstrating each resource type. Use it as reference, then put your own implementation in the app module.\n\nFor extended documentation see `README-tools.md` (tool server), `README-ui.md` (UI plugin), and `TESTING-tools.md` (testing guide) at the project root.\n\nFor full code examples of all resource types, see REFERENCE.md.\n\n## Project Structure\n\n```text\nsrc\u002F\n  tool-server\u002F           # Backend (Hono) - compiled by Rollup\n    server.ts            # Hono server entry (createToolServer from @vertesia\u002Ftools-sdk)\n    server-node.ts       # Node.js HTTP adapter for local dev\n    config.ts            # Server configuration - imports generated module collections\n    app-server-modules.ts # Generated resource aggregator\n    settings.ts          # JSON Schema for plugin settings\n    mcp\u002F                 # Shared MCP provider infrastructure\n      MCPProvider.ts     # Base provider definition\n  ui\u002F                    # Frontend (React) - compiled by Vite\n    plugin.tsx           # Library entry - default export component for Vertesia host\n    main.tsx             # Standalone app entry for dev mode\n    app-ui-entry.tsx     # Generated AppEntry selector\n    app-ui-modules.tsx   # Generated route\u002Fprovider aggregator\n    shell\u002F               # Shared runtime shell\u002Fchrome, not app business logic\n      App.tsx            # Wraps module providers and NestedRouterProvider\n      AppEntry.tsx       # Default Studio shell entry\n      layouts\u002F           # Shared app layout primitives\n      components\u002F        # Shared shell primitives\n    env.ts               # Environment config (VITE_APP_NAME)\n    assets.ts            # Asset URL resolution (plugin mode vs dev mode)\n    index.css            # Tailwind CSS 4 with @source directives\n  modules\u002F\n    app\u002F                 # User-owned app module; always active\n      ui\u002F\n        routes.tsx       # User app route definitions\n        pages\u002F           # Route-level user pages\n        features\u002F        # User feature folders\n      resources\u002F\n        tools\u002F           # Tool collections\n        skills\u002F          # Skill collections\n        interactions\u002F    # Interaction collections\n        types\u002F           # Content type collections\n        templates\u002F       # Rendering template collections\n        activities\u002F      # Remote activity collections\n        dashboards\u002F      # App dashboard definitions\n        hooks\u002F           # App lifecycle and event hook definitions\n        mcp\u002F             # App-owned MCP provider registrations\n        subscriptions\u002F   # Event subscriptions targeting app event hooks\n    assistant\u002F           # Optional assistant UI module\n    examples\u002F            # Optional example resource module\n    app-gateway\u002F         # Optional app-gateway runtime entry\n    agent\u002F               # Optional agent-facing helper components\napi\u002F\n  index.js               # Vercel serverless adapter (forwards to Hono fetch)\ndist\u002F                    # Build outputs\nlib\u002F                     # Compiled server JS (ESM)\n```\n\n## Build System\n\nTwo independent build pipelines:\n\n| Build               | Tool                     | Entry                       | Output               | Config Files                                    |\n| ------------------- | ------------------------ | --------------------------- | -------------------- | ----------------------------------------------- |\n| Tool Server         | Rollup                   | `src\u002Ftool-server\u002Fserver.ts` | `lib\u002F*.js` (ESM)     | `rollup.config.js`, `tsconfig.tool-server.json` |\n| UI Plugin (library) | Vite                     | `src\u002Fui\u002Fplugin.tsx`         | `dist\u002Flib\u002Fplugin.js` | `vite.config.ts --mode lib`, `tsconfig.ui.json` |\n| UI App (standalone) | Vite                     | `src\u002Fui\u002Fmain.tsx`           | `dist\u002Fui\u002F`           | `vite.config.ts --mode app`, `tsconfig.ui.json` |\n| Skill Widgets       | Rollup (via build-tools) | `skills\u002F**\u002F*.tsx`           | `dist\u002Fwidgets\u002F*.js`  | `tsconfig.widgets.json`                         |\n\n### Commands\n\n```bash\npnpm build                 # Full build: server + UI (lib and app)\npnpm build:server          # Rollup server only\npnpm dev                   # Build server + start on port 3000\npnpm dev:ui                # Vite dev server with HMR (https:\u002F\u002Flocalhost:5173)\npnpm build:ui:lib          # Plugin library build (dist\u002Flib\u002Fplugin.js)\npnpm build:ui:app          # Standalone app build (dist\u002Fui\u002F)\npnpm start                 # Run compiled server\npnpm start:watch           # Run with --watch (auto-restart on lib\u002F changes)\npnpm start:debug           # Run with --inspect for Node debugger\n```\n\n## Import Hooks (@vertesia\u002Fbuild-tools)\n\nThese Rollup import transformations only work in `src\u002Ftool-server\u002F` code:\n\n| Import                                      | Produces                                                     |\n| ------------------------------------------- | ------------------------------------------------------------ |\n| `import x from '.\u002Fmy-skill\u002FSKILL.md'`       | `SkillDefinition` object (convention-based)                  |\n| `import x from '.\u002Fdefinition.md?skill'`     | `SkillDefinition` object (query-based)                       |\n| `import x from '.\u002Fall?skills'`              | `SkillDefinition[]` (auto-discovers subdirs with SKILL.md)   |\n| `import x from '.\u002Fmy-template\u002FTEMPLATE.md'` | `RenderingTemplateDefinition` object                         |\n| `import x from '.\u002Fall?templates'`           | `RenderingTemplateDefinition[]` (auto-discovers TEMPLATE.md) |\n| `import x from '.\u002Fprompt.hbs?prompt'`       | `PromptDefinition { role, content, content_type, schema? }`  |\n| `import x from '.\u002Ffile.html?raw'`           | Raw string content                                           |\n\n## Creating Resources\n\nTo create tools, skills, interactions, content types, templates, hooks, or subscriptions, use the **vertesia-tool-server-resource** skill. It provides step-by-step scaffolding with full code examples.\n\nEach user resource follows the same pattern: create files under `src\u002Fmodules\u002Fapp\u002Fresources\u002F\u003Ctype>\u002F\u003Ccollection>\u002F`, export from the collection, then add the collection to `src\u002Fmodules\u002Fapp\u002Fresources\u002F\u003Ctype>\u002Findex.ts`. Non-collection contributions such as hooks, subscriptions, and MCP providers also expose arrays from their app-module resource indexes. `src\u002Ftool-server\u002Fconfig.ts` imports the generated `app-server-modules.ts` arrays.\n\nApp-owned contribution registries never belong in the tool-server bootstrap. A new contribution type must have a\ntyped empty default under `src\u002Fmodules\u002Fapp\u002Fresources`, be exported by that module's resource index, and be added to\nthe template codegen `SERVER_RESOURCES` list so `src\u002Ftool-server\u002Fapp-server-modules.ts` aggregates it.\n\n## App Identity And Portable IDs\n\nKeep the app name aligned across `package.json` `name`, `VITE_APP_NAME`, the app manifest name, and all\n`app:\u003Cname>:` ids. Do not hardcode a second app name in resource references.\n\n- Content type refs are `app:\u003Capp-name>:\u003Ctype-name>`; the type collection name is not part of the public id.\n- Interactions and activities are `app:\u003Capp-name>:\u003Ccollection>:\u003Cname>`.\n- Prefer `main` as the default interaction\u002Factivity collection name.\n- Do not resolve app-owned types to project-local ObjectIds; pass the in-code app type string directly to `client.objects.create`.\n- If the app registers backend resources, publish as `service`; `static` ships only UI assets.\n\n## UI Plugin\n\nFor UI component APIs, routing, layout, styling, and agent conversation patterns, use the **vertesia-ui** skill.\n\nWhen the task includes UI work, do not stop at \"it renders\". The UI pass should start with a `@vertesia\u002Fui` component inventory and end with a conformance check for duplicated primitives such as raw tables, native selects, local page headers, and inline styles.\n\nGenerated apps should feel like compact Vertesia Studio product surfaces: use light operational layouts, semantic\ntokens, tables\u002Fqueues\u002Fdetail pages, restrained typography, and small brand accents. Avoid dark-first, neon, oversized\nhero, or presentation-style layouts unless the user explicitly asks for them.\n\nKey entry points:\n\n- `src\u002Fui\u002Fplugin.tsx` — Library entry for Vertesia host (exports default component receiving `{ slot }`)\n- `src\u002Fui\u002Fmain.tsx` — Standalone dev entry (VertesiaShell + AdminApp at `\u002F`, plugin at `\u002Fapp\u002F`)\n- `src\u002Fui\u002Fshell\u002FApp.tsx` — Shared shell runtime wrapping module providers and routes\n- `src\u002Fmodules\u002Fapp\u002Fui\u002Froutes.tsx` — User app route definitions\n- `src\u002Fmodules\u002Fcontent-app\u002F` — Optional content-app module selected with `--module content-app`\n- `src\u002Fui\u002Fapp-ui-entry.tsx` and `src\u002Fui\u002Fapp-ui-modules.tsx` — Generated module wiring\n- `src\u002Fui\u002Fassets.ts` — `useAsset(path)` for URLs relative to the plugin bundle\n\n## Authentication\n\nTool endpoints receive JWT tokens via `Authorization: Bearer {token}`. The SDK validates automatically. Access the client via `const client = await context.getClient()` in tool `run()`. For full client API reference, use the **vertesia-api** skill.\n\nFor organization access restriction and deployment details, see REFERENCE.md.\n\n## Local Runtime Exposure\n\nFor project-connected testing, the local plugin server is not enough by itself. The installed Vertesia app manifest must point to a reachable package endpoint.\n\nUse this sequence:\n\n1. run the local HTTPS dev server\n2. expose it with a tunnel such as Cloudflare Tunnel\n3. update the installed app manifest `endpoint` to `\u003Cpublic-url>\u002Fapi\u002Fpackage`\n4. verify the app package from the public URL before debugging project-side failures\n\nIf the project does not see updated types, interactions, or activities, check the manifest endpoint before changing app code.\n\nWhen auth expires during this flow:\n\n1. refresh auth first\n2. verify the currently running dev server port still works\n3. verify the current public tunnel still resolves\n4. verify the installed app manifest still points to that live tunnel\n5. only then decide whether a new server or tunnel is needed\n\nDo not keep spawning new local ports and quick tunnels after an auth failure. The project can easily end up pointing at a dead tunnel even while the local app appears healthy.\n\n## Key Dependencies\n\n| Package                    | Role                                                                                     |\n| -------------------------- | ---------------------------------------------------------------------------------------- |\n| `@vertesia\u002Ftools-sdk`      | Tool server framework: `createToolServer`, `ToolCollection`, `SkillCollection`, auth     |\n| `@vertesia\u002Ftools-admin-ui` | Admin UI: browsable interface for all plugin resources                                   |\n| `@vertesia\u002Fbuild-tools`    | Rollup import plugins: `?skill`, `?skills`, `?template`, `?templates`, `?prompt`, `?raw` |\n| `@vertesia\u002Fplugin-builder` | Vite plugin for UI library builds (CSS extraction\u002Finjection)                             |\n| `@vertesia\u002Fclient`         | Vertesia API client for tool implementations                                             |\n| `@vertesia\u002Fcommon`         | Shared types: `InteractionSpec`, `InCodeTypeSpec`, etc.                                  |\n| `@vertesia\u002Fui`             | UI component library: `core`, `features`, `router`, `layout`, `session`, `shell`         |\n| `hono`                     | Lightweight web framework for the tool server                                            |\n\n## Code Conventions\n\n- ESM with `.js` import extensions: `import { x } from \".\u002Ffoo.js\"`\n- Type-safe definitions with inference: `{} satisfies Tool\u003CT>`, `{} satisfies InCodeTypeSpec`\n- Icons are SVG strings exported as default from `.ts` files\n- User collections must be exported from `src\u002Fmodules\u002Fapp\u002Fresources\u002F\u003Ctype>\u002Findex.ts`; do not hand-edit generated `src\u002Ftool-server\u002Fapp-server-modules.ts`\n- Skills use YAML frontmatter in `SKILL.md`; templates in `TEMPLATE.md`; prompts in `.hbs`\u002F`.jst`\u002F`.md` with `?prompt`\n",{"name":5,"description":7},"main","8539475c1fe2b5c28892aee0ebf4ae2ede63d6fe","templates\u002Fplugin-template\u002F.agents\u002Fskills\u002Fvertesia-plugin",2,"https:\u002F\u002Fgithub.com\u002Fvertesia\u002Fcomposableai","https:\u002F\u002Fdocs.vertesiahq.com\u002F","https:\u002F\u002Fgithub.com\u002Fvertesia","https:\u002F\u002Fvertesiahq.com\u002F","Vertesia Platform enables the delivery of AI agents for the enterprise","2026-11-14 17:11:16",{"source":9,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add vertesia\u002Fcomposableai --skill vertesia-plugin",{"tool":73,"command":74},"bunx","bunx skills add vertesia\u002Fcomposableai --skill vertesia-plugin",{"tool":76,"command":77},"pnpm","pnpm dlx skills add vertesia\u002Fcomposableai --skill vertesia-plugin","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvertesia\u002Fcomposableai\u002Fblob\u002Fmain\u002Ftemplates\u002Fplugin-template\u002F.agents\u002Fskills\u002Fvertesia-plugin\u002FSKILL.md",true,[81],{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"REFERENCE.md","REFERENCE","参考文档",8630,"https:\u002F\u002Fgithub.com\u002Fvertesia\u002Fcomposableai\u002Fblob\u002Fmain\u002Ftemplates\u002Fplugin-template\u002F.agents\u002Fskills\u002Fvertesia-plugin\u002FREFERENCE.md",[88,118,150,175,208,229],{"skillNo":89,"name":90,"nameZh":91,"description":92,"descriptionZh":93,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":94,"categories":95,"keywords":102,"publishedAt":52},"01M6BXNN3ZE6PEC91D9ZZTQE2N","user-select","用户选项收集","Present users with choices and collect their selections for interactive decision-making","向用户呈现选项并收集其选择，用于交互式决策","https:\u002F\u002Fgithub.com\u002Fvertesia\u002Fcomposableai\u002Fblob\u002Fmain\u002Ftemplates\u002Fplugin-template\u002Fsrc\u002Fmodules\u002Fexamples\u002Fresources\u002Fskills\u002Fuser-select\u002FSKILL.md",[96,99],{"categoryNo":97,"categoryName":98,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BS5011KJDVSRXG1DC4P666","普通用户",{"categoryNo":100,"categoryName":101,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C9XZ92SSCN913ZXMSBA095","通用助手与问答",[103,104,105,106,107,108,109,110,111,41,112,113,114,115,116,117],"user select","user","choice","select","choose","collect","option","pick","decision","selection","decision-making","interactive","users","with","present",{"skillNo":119,"name":120,"nameZh":121,"description":122,"descriptionZh":123,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":124,"categories":125,"keywords":130,"publishedAt":52},"01M6BXNJ345BFTENXS7FX21HF5","vertesia-ui","Vertesia React UI 组件开发","Reference for building UIs with @vertesia\u002Fui. Covers component API (Input, Button, VModal, VTabs, Table), list\u002Fdetail tables with infinite scroll, sortable headers, FilterProvider with URL persistence and inline row filters, layout (Sidebar, FullHeightLayout, GenericPageNavHeader), routing (NestedRouterProvider, useParams, useNavigate), agent conversation (ModernAgentConversation), styling, and security. Use when creating or modifying React UI pages or components.","使用 @vertesia\u002Fui 构建 UI 的参考资料。涵盖组件 API（Input、Button、VModal、VTabs、Table）、支持无限滚动的列表\u002F详情表格、可排序表头、带 URL 持久化和内联行过滤的 FilterProvider、布局组件（Sidebar、FullHeightLayout、GenericPageNavHeader）、路由（NestedRouterProvider、useParams、useNavigate）、智能体对话（ModernAgentConversation）、样式与安全。当创建或修改 React UI 页面或组件时使用。","https:\u002F\u002Fgithub.com\u002Fvertesia\u002Fcomposableai\u002Fblob\u002Fmain\u002Ftemplates\u002Fplugin-template\u002F.agents\u002Fskills\u002Fvertesia-ui\u002FSKILL.md",[126,127],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":128,"categoryName":129,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[131,47,132,133,134,135,136,45,137,138,139,140,141,37,142,143,144,145,146,147,148,149,41],"vertesia ui","routing","component","security","persistence","components","react ui","react","table","conversation","filters","URL","inline","layout","headers","input","list","styling","tables",{"skillNo":151,"name":152,"nameZh":153,"description":154,"descriptionZh":155,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":156,"categories":157,"keywords":160,"publishedAt":52},"01M6BXNFE34HBA36Z762ZFX5KZ","vertesia-tool-server-resource","Vertesia 工具服务器资源创建","Creates tools, skills, interactions, content types, rendering templates, hooks, and event subscriptions for the Vertesia plugin tool server. Handles file scaffolding and module resource index wiring. Use when adding new tool server resources to this plugin.","为 Vertesia 插件工具服务器创建工具、技能、交互、内容类型、渲染模板、钩子和事件订阅。处理文件脚手架搭建与模块资源索引接线。当向此插件添加新的工具服务器资源时使用。","https:\u002F\u002Fgithub.com\u002Fvertesia\u002Fcomposableai\u002Fblob\u002Fmain\u002Ftemplates\u002Fplugin-template\u002F.agents\u002Fskills\u002Fvertesia-tool-server-resource\u002FSKILL.md",[158,159],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[51,161,48,32,31,162,163,164,165,166,42,167,41,168,169,39,170,171,38,37,172,173,174],"vertesia tool server resource","templates","index","Tools","file","content","types","event","scaffolding","module","new","wiring","subscriptions","rendering",{"skillNo":176,"name":177,"nameZh":178,"description":179,"descriptionZh":180,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":181,"categories":182,"keywords":187,"publishedAt":52},"01M6BXNADJ2AVJ13K483WGYX52","vertesia-gap-assessment","Vertesia 需求能力差距评估","Assess the gap between arbitrary requirements and existing Vertesia capabilities before proposing implementation work. Use when reviewing requirement documents, discovery notes, demo asks, or feature requests for a Vertesia app, plugin, workflow, or agent so you can separate native platform support, installed project capabilities, current app implementation, and true custom work.","在提出实现方案之前，评估任意需求与现有 Vertesia 能力之间的差距。在审查 Vertesia 应用、插件、工作流或智能体的需求文档、调研笔记、演示请求或功能请求时使用，以便区分平台原生支持、已安装的项目能力、当前应用实现和真正需要自定义开发的工作。","https:\u002F\u002Fgithub.com\u002Fvertesia\u002Fcomposableai\u002Fblob\u002Fmain\u002Ftemplates\u002Fplugin-template\u002F.agents\u002Fskills\u002Fvertesia-gap-assessment\u002FSKILL.md",[183,184],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":185,"categoryName":186,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C4MZTN2Z748WNZF599EMBT","需求澄清与上下文补全",[188,189,190,191,31,192,193,194,195,196,197,198,199,200,37,201,202,203,204,205,41,206,207],"assessment","vertesia gap assessment","gap","notes","support","discovery","feature requests","documents","workflow","capabilities","demo","app","project","you","work","native","feature","platform","custom","true",{"skillNo":209,"name":210,"nameZh":211,"description":212,"descriptionZh":213,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":214,"categories":215,"keywords":220,"publishedAt":52},"01M6BXN8KCREMS04Z0NF2Z77RP","vertesia-dsl-workflow","Vertesia DSL 工作流参考","Reference for DSL workflow definitions, remote activities, variable resolution, and conditions. Use when creating or debugging DSL workflows that call remote activities from plugins.","DSL 工作流定义、远程活动、变量解析和条件处理的参考。在创建或调试调用插件远程活动的 DSL 工作流时使用。","https:\u002F\u002Fgithub.com\u002Fvertesia\u002Fcomposableai\u002Fblob\u002Fmain\u002Ftemplates\u002Fplugin-template\u002F.agents\u002Fskills\u002Fvertesia-dsl-workflow\u002FSKILL.md",[216,219],{"categoryNo":217,"categoryName":218,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[221,196,222,223,224,225,41,226,227,38,37,228,33],"vertesia dsl workflow","dsl","plugins","debugging","workflows","call","remote","resolution",{"skillNo":230,"name":231,"nameZh":232,"description":233,"descriptionZh":234,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":235,"categories":236,"keywords":241,"publishedAt":52},"01M6BXN66CVTSYFTGZ26HYAA9H","vertesia-demo-content","Vertesia 演示种子内容生成","Generate realistic reusable demo or seed content for Vertesia applications and upload it through the Vertesia CLI, API, or browser session. Use when building Vertesia custom apps, plugins, prototypes, repository workflows, AI extraction workflows, search\u002Ffilter pages, or demos where the app should use real store objects instead of hardcoded mock arrays; includes checking the active CLI profile and asking before mutating a Vertesia project.","为 Vertesia 应用生成真实且可复用的演示或种子内容，并通过 Vertesia CLI、API 或浏览器会话上传。在构建 Vertesia 自定义应用、插件、原型、仓库工作流、AI 提取工作流、搜索\u002F筛选页面，或需要使用真实存储对象而非硬编码模拟数组的演示时使用；包括检查当前活动的 CLI 配置文件，以及在修改 Vertesia 项目前先询问确认。","https:\u002F\u002Fgithub.com\u002Fvertesia\u002Fcomposableai\u002Fblob\u002Fmain\u002Ftemplates\u002Fplugin-template\u002F.agents\u002Fskills\u002Fvertesia-demo-content\u002FSKILL.md",[237,238],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":239,"categoryName":240,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BWKS60NTYJHFE9FQSXGDKS","低代码应用开发",[242,166,198,243,244,245,246,247,248,223,225,45,249,199,41,200,250,251,252,253,206,254,38,255,256,37,257],"vertesia demo content","browser","cli","generate","search","applications","repository","extraction","browser session","session","arrays","objects","pages","mock","apps","reusable"]