[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BXNJ345BFTENXS7FX21HF5":3,"skill-same:01M6BXNJ345BFTENXS7FX21HF5":93},{"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":54,"linkOnly":55,"markdownContent":56,"markdownBody":57,"frontMatter":58,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":64,"ownerHtmlUrl":65,"ownerBlogUrl":66,"ownerDescription":67,"updatedAt":68,"install":69,"resources":82},"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 页面或组件时使用。","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-ui\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53],"ui","vertesia ui","for","tables","styling","list","input","headers","layout","inline","URL","when","filters","conversation","table","react","react ui","api","components","persistence","security","component","routing","2026-11-10 10:12:30",false,"---\nname: vertesia-ui\ndescription: 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.\n---\n\n# Vertesia UI Development\n\nReact UI built with React 19, Tailwind CSS 4, and `@vertesia\u002Fui` components.\n\nFor the full component API reference, see also `composableai\u002Fpackages\u002Fui\u002Fllms.txt` (shipped with the npm package).\n\nFor a reusable list\u002Fdetail table example with backend search, sort, facets, inline filters, and back-navigation preservation, see `references\u002Fgeneric-table-pattern.md`.\n\n## Required First Step: Component Inventory\n\nBefore writing or refactoring UI code, explicitly check whether `@vertesia\u002Fui` already provides the surface you need.\n\nAt minimum, search for an existing component in these buckets:\n\n- `@vertesia\u002Fui\u002Fcore`\n- `@vertesia\u002Fui\u002Flayout`\n- `@vertesia\u002Fui\u002Ffeatures`\n\nIf a suitable component exists, use it. Do not reimplement it with raw HTML just because the local version is faster to type.\n\nThis is especially strict for:\n\n- tables\n- page headers\n- filters\n- modals\n- tabs\n- badges\n- buttons\n- selects\n- text inputs\n- side panels\n- empty\u002Floading\u002Ferror states\n\nIf you still introduce a custom wrapper, state which existing `@vertesia\u002Fui` component you checked and why it was insufficient.\n\n## Import Paths\n\n```tsx\nimport { Button, Card, Input, VModal, VTabs } from '@vertesia\u002Fui\u002Fcore';\nimport { useFetch, useToast, useIntersectionObserver } from '@vertesia\u002Fui\u002Fcore';\nimport { FilterProvider, FilterBtn, FilterBar, FilterClear } from '@vertesia\u002Fui\u002Fcore';\nimport { useNavigate, useParams, NavLink, NestedRouterProvider } from '@vertesia\u002Fui\u002Frouter';\nimport { useUserSession } from '@vertesia\u002Fui\u002Fsession';\nimport { Sidebar, SidebarSection, SidebarItem, useSidebarToggle, FullHeightLayout } from '@vertesia\u002Fui\u002Flayout';\nimport { GenericPageNavHeader, ModernAgentConversation } from '@vertesia\u002Fui\u002Ffeatures';\nimport { VertesiaShell, StandaloneApp } from '@vertesia\u002Fui\u002Fshell';\n```\n\n## Key Component APIs\n\n### Input — Value-based onChange (NOT event-based)\n\n```tsx\n\u002F\u002F CORRECT — passes value directly\n\u003CInput value={name} onChange={setName} \u002F>\n\u003CInput value={name} onChange={(value) => setName(value.trim())} \u002F>\n\n\u002F\u002F WRONG — this will NOT work\n\u003CInput onChange={(e) => setName(e.target.value)} \u002F>  \u002F\u002F ❌\n```\n\n**Textarea** uses standard React events: `onChange={(e) => setText(e.target.value)}`\n\n### Button\n\n```tsx\n\u003CButton onClick={handleClick}>Click Me\u003C\u002FButton>\n\u003CButton variant=\"outline\" size=\"sm\">Secondary\u003C\u002FButton>\n\u003CButton variant=\"destructive\">Delete\u003C\u002FButton>\n\u002F\u002F Variants: primary (default), destructive, outline, secondary, ghost, link, unstyled\n\u002F\u002F Sizes: xs, sm, md (default), lg, xl, icon\n```\n\n**Tooltip + accessible name are built in:** pass `alt=\"...\"` (or `title=\"...\"`) and `Button` auto-wraps with `VTooltip`. Don't wrap a `Button` in manual `VTooltip` (nested-button DOM) or add a separate `aria-label`. Manual `VTooltip` is only for non-Button triggers (span, icon, Badge) or non-default placement\u002Fsize.\n\nUse `isDisabled={...}` (documented prop). `size=\"icon\"` is `rounded-full` — for a _square_ icon button use `size=\"sm\"`\u002F`\"xs\"`. Example: `\u003CButton variant=\"ghost\" size=\"sm\" alt=\"Refresh\" onClick={refetch}>\u003CRefreshCw \u002F>\u003C\u002FButton>`.\n\n### VModal\n\n```tsx\n\u003CVModal isOpen={open} onClose={() => setOpen(false)} size=\"md\">\n  \u003CVModalTitle description=\"Optional subtitle\">Title\u003C\u002FVModalTitle>\n  \u003CVModalBody>Content\u003C\u002FVModalBody>\n  \u003CVModalFooter>\n    \u003CButton onClick={handleSubmit}>Submit\u003C\u002FButton>         {\u002F* Primary first *\u002F}\n    \u003CButton variant=\"outline\" onClick={onClose}>Cancel\u003C\u002FButton>\n  \u003C\u002FVModalFooter>\n\u003C\u002FVModal>\n```\n\n**Note:** VModalFooter uses `flex-row-reverse` — primary button first in code, appears on the right.\n\n### VTabs\n\n```tsx\n\u003CVTabs defaultValue=\"tab1\" tabs={[\n  { name: 'tab1', label: 'First', content: \u003CTab1 \u002F> },\n  { name: 'tab2', label: 'Second', content: \u003CTab2 \u002F> },\n]}>\n  \u003CVTabsBar \u002F>\n  \u003CVTabsPanel \u002F>\n\u003C\u002FVTabs>\n```\n\n### Table\n\n```tsx\nimport { Table, TBody, THead, Th, Tr, Td } from '@vertesia\u002Fui\u002Fcore';\n\n\u003CTable className=\"w-full\">\n  \u003CTHead>\n    \u003Ctr>\n      \u003Cth className=\"text-left\">Name\u003C\u002Fth>\n      \u003Cth className=\"text-left\">Status\u003C\u002Fth>\n    \u003C\u002Ftr>\n  \u003C\u002FTHead>\n  \u003CTBody isLoading={isFirstLoading} columns={2}>\n    {items.map(item => (\n      \u003Ctr key={item.id}>\n        \u003Ctd>{item.name}\u003C\u002Ftd>\n        \u003Ctd>{item.status}\u003C\u002Ftd>\n      \u003C\u002Ftr>\n    ))}\n  \u003C\u002FTBody>\n\u003C\u002FTable>\n```\n\n`TBody` renders loading skeletons when `isLoading=true`. **Only use `isLoading` for initial empty-state load**, not for \"load more\" — show a separate `\u003CSpinner \u002F>` below the table for appending.\n\nUse this instead of custom `\u003Ctable>` wrappers unless there is a documented gap.\n\n### Infinite Scroll (Lazy Loading)\n\n```tsx\nimport { useIntersectionObserver } from '@vertesia\u002Fui\u002Fcore';\n\nconst loadMoreRef = useRef\u003CHTMLDivElement>(null);\nconst fetchGenRef = useRef(0);\nconst [isReady, setIsReady] = useState(false);\n\n\u002F\u002F Fetch with stale-request prevention\nconst fetchItems = useCallback((currentOffset: number, append: boolean) => {\n    const gen = ++fetchGenRef.current;\n    setIsLoading(true);\n    client.someApi.list({ limit: PAGE_SIZE, offset: currentOffset })\n        .then(data => {\n            if (gen !== fetchGenRef.current) return; \u002F\u002F stale\n            setItems(prev => append ? [...prev, ...data.items] : data.items);\n            setHasMore(data.hasNext);\n            setOffset(currentOffset + data.items.length);\n            setIsReady(true);\n        })\n        .finally(() => { if (gen === fetchGenRef.current) setIsLoading(false); });\n}, [deps]);\n\n\u002F\u002F Trigger load when sentinel is visible\nuseIntersectionObserver(loadMoreRef, () => {\n    if (isReady && hasMore && !isLoading) {\n        setIsReady(false);\n        fetchItems(offset, true);\n    }\n}, { threshold: 0.1, deps: [isReady, hasMore, isLoading, offset] });\n\n\u002F\u002F Reset helper — reuse for initial load, filter changes, refresh\nconst resetAndFetch = useCallback(() => {\n    setItems([]); setOffset(0); setHasMore(true); setIsReady(false);\n    fetchItems(0, false);\n}, [fetchItems]);\n```\n\n```tsx\n{\u002F* After the table *\u002F}\n{isLoading && items.length > 0 && \u003Cdiv className=\"flex justify-center py-4\">\u003CSpinner \u002F>\u003C\u002Fdiv>}\n\u003Cdiv ref={loadMoreRef} className=\"h-4 w-full\" \u002F>\n{!isLoading && items.length === 0 && \u003Cdiv className=\"text-center text-sm text-muted-foreground py-8\">No items found\u003C\u002Fdiv>}\n```\n\n**Always** use a generation counter (`fetchGenRef`) to prevent stale responses from race conditions.\n\n### Filter System\n\n```tsx\nimport { FilterProvider, FilterBtn, FilterBar, FilterClear } from '@vertesia\u002Fui\u002Fcore';\n\nconst filterGroups: FilterGroup[] = [\n    { name: 'status', placeholder: 'Status', type: 'select', multiple: true,\n      options: [\n          { value: 'active', label: 'Active' },\n          { value: 'archived', label: 'Archived' },\n      ] },\n    { name: 'search', placeholder: 'Search', type: 'text', multiple: false },\n];\n\n\u003CFilterProvider filterGroups={filterGroups} filters={filters} setFilters={handleFilterChange}>\n    \u003Cdiv className=\"flex gap-2 items-center\">\n        \u003CFilterBtn \u002F>\n        \u003CFilterBar \u002F>\n        \u003CFilterClear \u002F>\n    \u003C\u002Fdiv>\n\u003C\u002FFilterProvider>\n```\n\nSort select options alphabetically by label. `FilterProvider` handles URL persistence automatically.\n\n### Spinner, ErrorBox, Badge\n\n```tsx\nimport { Spinner, ErrorBox, Badge } from '@vertesia\u002Fui\u002Fcore';\n\nif (isLoading) return \u003CSpinner \u002F>;\nif (error) return \u003CErrorBox>{error.message}\u003C\u002FErrorBox>;\n\u003CBadge variant=\"secondary\">Status\u003C\u002FBadge>\n```\n\n## Routing\n\nUse `NestedRouterProvider` for plugin routing (nested within host app):\n\n```tsx\nconst routes = [\n  { path: '\u002F', Component: HomePage },\n  { path: '\u002Fitems\u002F:id', Component: ItemPage },\n  { path: '*', Component: NotFound },\n];\n\u003CNestedRouterProvider routes={routes} index=\"\u002F\" \u002F>\n```\n\n### Navigation hooks\n\n```tsx\nconst navigate = useNavigate();\nnavigate('\u002Fitems\u002F123');    \u002F\u002F Push\nnavigate(-1);              \u002F\u002F Go back\n\nconst { id } = useParams();           \u002F\u002F From \u002Fitems\u002F:id\nconst [searchParams] = useSearchParams();\nconst path = useLocation().pathname;   \u002F\u002F Current path\n```\n\n### NavLink\n\n```tsx\n\u003CNavLink href=\"\u002Fitems\">Go to Items\u003C\u002FNavLink>\n```\n\n### List \u002F Detail Preservation\n\nIf a list page links to a detail page and users are expected to go back, do not keep the list state inside the list page component.\n\nPreserve these concerns above the route boundary when they matter:\n\n- active filters\n- search query\n- sort\n- pagination or loaded results\n- row selection\n- scroll position\n\nUse a provider above `NestedRouterProvider` or above the list\u002Fdetail route split. Do not use a module-level singleton.\n\nIf `FilterProvider` is involved, remember that it restores filters from the URL on mount. If your list state also survives route changes, normalize or dedupe filter writes at the provider boundary so the same filter does not get appended repeatedly on back-navigation.\n\nFor scroll restoration:\n\n- persist the list scroll position in provider state and `window.history.state.data`\n- restore it in `useLayoutEffect`\n- wait until the list has rendered before restoring, typically with `requestAnimationFrame`\n\nDo not treat list\u002Fdetail navigation as a cosmetic issue. If filters and scroll reset on back, the UX is wrong.\n\n### Search vs Find For Table Surfaces\n\nFor table\u002Flist surfaces that need any combination of:\n\n- full-text search\n- backend sort\n- backend facets\n\nuse one backend `search` path consistently.\n\nDo not mix `find` for the default state with `search` for filtered states if the page exposes sort and facet-driven filtering. That creates different backend behavior depending on UI state and weakens the table contract.\n\nUse `find` only for simple exact-match fetches that do not require backend sort, full-text behavior, or facets.\n\n## Completion Check\n\nBefore calling a UI task complete, run a short conformance pass:\n\n1. any raw `\u003Ctable>` where `Table` \u002F `THead` \u002F `TBody` should be used?\n2. any native `\u003Cselect>` where `SelectBox` should be used?\n3. any local page-header wrapper where `GenericPageNavHeader` would fit?\n4. any inline styles that should move to CSS or semantic utility classes?\n5. any custom wrapper that duplicates existing `@vertesia\u002Fui` behavior without a documented gap?\n6. any list\u002Fdetail flow where filters, sort, or scroll reset on back-navigation because the state lives below the route boundary?\n7. any `FilterProvider` usage that can double-restore URL filters into already-persisted React state?\n8. any hover-reveal Tailwind classes built from template strings instead of literal class names?\n\nIf the answer is yes to any of the above, the UI pass is not done yet.\n\n## Layout\n\n### Sidebar\n\n```tsx\n\u003CSidebarSection title=\"Navigation\">\n  \u003CSidebarItem href=\"\u002Fapp\u002Fsettings\" icon={SettingsIcon} current={path === '\u002Fapp\u002Fsettings'}>\n    Settings\n  \u003C\u002FSidebarItem>\n\u003C\u002FSidebarSection>\n\n\u002F\u002F Footer section (pushed to bottom)\n\u003CSidebarSection isFooter>\n  \u003CModeToggle label={isOpen ? 'Theme' : false} \u002F>\n\u003C\u002FSidebarSection>\n\n\u002F\u002F Truncate long labels\n\u003CSidebarItem href={href} icon={Icon} className=\"overflow-hidden\">\n  \u003Cspan className=\"truncate\">{longLabel}\u003C\u002Fspan>\n\u003C\u002FSidebarItem>\n\nconst { isOpen, toggleMobile } = useSidebarToggle();\n```\n\n### GenericPageNavHeader\n\n```tsx\n\u003CGenericPageNavHeader\n  useDynamicBreadcrumbs={false}\n  breadcrumbs={[\n    \u003CNavLink href=\"\u002F\" key=\"home\">Home\u003C\u002FNavLink>,\n    \u003Cspan key=\"current\">\u003Cspan>Current Page\u003C\u002Fspan>\u003C\u002Fspan>,\n  ]}\n  actions={\u003CButton>Create New\u003C\u002FButton>}\n\u002F>\n```\n\nPrefer `GenericPageNavHeader` over a local page-header abstraction when it fits the page.\n\n#### Breadcrumb rules\n\nThese bite repeatedly — apply them on every page that uses `GenericPageNavHeader`.\n\n1. **Always pass `useDynamicBreadcrumbs={false}`.** The default (`true`) reads `window.history.state?.historyChain` and falls back to URL path inference. Both produce surprises: stale entries from a previous detail visit (e.g. \"App > App\") leak onto a top-level list, and URL inference capitalizes raw segments (e.g. \"Objects\" instead of your i18n label \"Content Objects\"). Explicit beats inferred.\n\n2. **Don't combine `title=` with breadcrumbs for list\u002Fdetail flows.** `title=` renders a big bold heading _under_ the breadcrumb row, which on a detail page reads as a stacked title — not a breadcrumb. The real breadcrumb pattern is to put **all** segments in `breadcrumbs={[...]}` (parent → current) and omit `title=` entirely. composable-ui's `ContentObjectView` follows this.\n\n3. **Wrap string labels in a nested element to avoid 20-char truncation.** `Breadcrumbs.renderBreadcrumbItem` slices any _string_ label to 17 chars + `…`. Filenames and document titles hit this constantly. Pass a `ReactNode` instead and add CSS truncation:\n\n   ```tsx\n   \u003Cspan key=\"current\" title={fullName}>\n     \u003Cspan className=\"inline-block align-middle max-w-[60ch] truncate\">\n       {fullName}\n     \u003C\u002Fspan>\n   \u003C\u002Fspan>\n   ```\n\n   The outer `span`'s `children` is now a node, not a string, so the JS truncation path is skipped. The inner `span` truncates only when actually too wide for the layout. The `title=` gives a hover tooltip with the full name.\n\n4. **`NavLink` works as a clickable breadcrumb item.** `GenericPageNavHeader` extracts `href` from the element and wires its own `onClick` to `navigate(href)`. No need to add `onClick` yourself.\n\n5. **No back button.** The breadcrumb itself is the way back. Don't add a separate `\u003CButton>\u003CArrowLeft \u002F>Back\u003C\u002FButton>` — it duplicates the breadcrumb's affordance and clutters the header.\n\n#### Description prop\n\nThe `description` prop renders an `Info` tooltip icon in the breadcrumb row. When there are **no** breadcrumbs the icon orphans above the title — looks broken. Either omit `description=`, or always pair it with at least one breadcrumb.\n\n## Data Fetching\n\n### useFetch\n\n```tsx\nconst { data, isLoading, error, refetch } = useFetch(\n  async () => client.store.collections.list(),\n  [dependency1, dependency2]\n);\n```\n\n### useToast\n\n```tsx\nconst toast = useToast();\ntoast({ title: 'Success', description: 'Item created' });\ntoast({ title: 'Error', description: err.message, variant: 'destructive' });\n```\n\n## Agent Conversation\n\nUse `ModernAgentConversation` from `@vertesia\u002Fui\u002Ffeatures` for agent chat interfaces.\n\n**Props:**\n\n- `run` — `{ runId, workflowId } | undefined` — active conversation (undefined = start view)\n- `startWorkflow` — `(initialMessage?) => Promise\u003C{ run_id, workflow_id } | undefined>`\n- `resetWorkflow` — `() => void` — new conversation callback\n- `title`, `placeholder`, `startButtonText` — UI text\n- `hideObjectLinking` — hide document linking UI\n- `interactive` — enable user input during conversation\n- `fullWidth` — disable max-width constraint\n\n**URL persistence pattern:**\n\n- Route: `\u002Fchat\u002F:runId\u002F:workflowId`\n- Derive `run` from `useParams()` instead of React state\n- After `startWorkflow`, `navigate('\u002Fchat\u002F${result.runId}\u002F${result.workflowId}')`\n- `resetWorkflow` calls `navigate('\u002Fchat')`\n\n**Listing past conversations (sidebar):**\n\n- `client.store.workflows.listConversations({ interaction, page_size })` — returns `{ runs: WorkflowRun[] }`\n- Each run has `run_id`, `workflow_id`, `started_at`, `status`, `topic`\n- `listConversations` does NOT return `input` — only `topic` is available for labels\n- Use `getRunDetails(runId, workflowId)` for full data including `input`\n\n## Styling\n\n### Semantic color classes\n\n```tsx\n\u003Cspan className=\"text-success-foreground\">Success\u003C\u002Fspan>\n\u003Cspan className=\"text-attention-foreground\">Warning\u003C\u002Fspan>\n\u003Cspan className=\"text-destructive-foreground\">Error\u003C\u002Fspan>\n\u003Cspan className=\"text-muted-foreground\">Muted\u003C\u002Fspan>\n\u003Cdiv className=\"bg-success text-success-foreground\">Success message\u003C\u002Fdiv>\n```\n\n### Layout patterns\n\n- Use `flex flex-col gap-{n}` or `flex flex-row gap-{n}` for spacing (not `space-y-*`)\n- Use `p-4 space-y-4` for padding + vertical spacing within forms\n- Never hardcode colors — always use theme variables\n\n### CSS customization\n\nOverride CSS custom properties in `index.css` after the shared import:\n\n```css\n:root { --primary: oklch(40% 0.1 145); --primary-foreground: oklch(1 0 0); }\n.dark { --primary: oklch(45% 0.1 145); --primary-foreground: oklch(1 0 0); }\n```\n\nAvailable tokens: `--primary`, `--secondary`, `--success`, `--attention`, `--destructive`, `--done`, `--info`, `--muted` (each paired with `-foreground`), `--background`, `--foreground`, `--card-*`, `--sidebar-*`, `--border`, `--input`, `--ring`.\n\nBase tokens are surfaces; pair them with `-foreground` text\u002Ficons. The old status, muted, and secondary\n`-background` names are deprecated aliases; use base names in new code. Primary is solid, with a contrasting foreground.\n\n### Tailwind Variant Safety\n\nDo not build Tailwind variant classes dynamically in template strings when you need them emitted into CSS.\n\nBad:\n\n```tsx\nclassName={`opacity-0 group-hover\u002F${groupName}:opacity-100`}\n```\n\nThat class is usually invisible to Tailwind’s static analysis and will not be generated.\n\nUse literal class names or a static map instead:\n\n```tsx\nconst hoverClass = {\n  contract: \"group-hover\u002Fcontract:opacity-100\",\n  owner: \"group-hover\u002Fowner:opacity-100\",\n}[groupName];\n```\n\nThis matters especially for hover-reveal filter buttons and row actions.\n\n## Plugin Entry Points\n\n### plugin.tsx (library mode)\n\nDefault export receives `{ slot: string }`. Render app when `slot === \"page\"`.\n\n### main.tsx (standalone dev)\n\nWraps app in `VertesiaShell` + `RouterProvider`. Mounts `AdminApp` at `\u002F`, plugin at `\u002Fapp\u002F`. Requires `VITE_APP_NAME` in `.env.local`. Access at https:\u002F\u002Flocalhost:5173 (HTTPS for Firebase auth).\n\n## Security\n\nApply these rules to any page or component that takes user input or hits the API. Full patterns + code in `references\u002Fsecurity.md`.\n\n- Never pass unsanitized HTML to `dangerouslySetInnerHTML`.\n- Validate user-provided URLs before rendering as links.\n- Catch API errors, log details to console, surface a generic message via `useToast` — never leak internal error text.\n- Client-side env vars must use the `VITE_` prefix (they are embedded in the bundle); keep secrets server-side.\n- Throttle async button actions with an `isSubmitting` flag cleared in `finally`.\n\n## Development Practices\n\n- Extract components from map callbacks when the body has logic or is more than 2-3 lines\n- Use `\u003CSeparator \u002F>` from `@vertesia\u002Fui\u002Fcore` for dividers instead of `border-t\u002Fb`\n- Debounce expensive search operations\n- Always throttle async button actions with `isSubmitting` (see `references\u002Fsecurity.md`)\n- Show generic user-facing error messages; log details to console\n","# Vertesia UI Development\n\nReact UI built with React 19, Tailwind CSS 4, and `@vertesia\u002Fui` components.\n\nFor the full component API reference, see also `composableai\u002Fpackages\u002Fui\u002Fllms.txt` (shipped with the npm package).\n\nFor a reusable list\u002Fdetail table example with backend search, sort, facets, inline filters, and back-navigation preservation, see `references\u002Fgeneric-table-pattern.md`.\n\n## Required First Step: Component Inventory\n\nBefore writing or refactoring UI code, explicitly check whether `@vertesia\u002Fui` already provides the surface you need.\n\nAt minimum, search for an existing component in these buckets:\n\n- `@vertesia\u002Fui\u002Fcore`\n- `@vertesia\u002Fui\u002Flayout`\n- `@vertesia\u002Fui\u002Ffeatures`\n\nIf a suitable component exists, use it. Do not reimplement it with raw HTML just because the local version is faster to type.\n\nThis is especially strict for:\n\n- tables\n- page headers\n- filters\n- modals\n- tabs\n- badges\n- buttons\n- selects\n- text inputs\n- side panels\n- empty\u002Floading\u002Ferror states\n\nIf you still introduce a custom wrapper, state which existing `@vertesia\u002Fui` component you checked and why it was insufficient.\n\n## Import Paths\n\n```tsx\nimport { Button, Card, Input, VModal, VTabs } from '@vertesia\u002Fui\u002Fcore';\nimport { useFetch, useToast, useIntersectionObserver } from '@vertesia\u002Fui\u002Fcore';\nimport { FilterProvider, FilterBtn, FilterBar, FilterClear } from '@vertesia\u002Fui\u002Fcore';\nimport { useNavigate, useParams, NavLink, NestedRouterProvider } from '@vertesia\u002Fui\u002Frouter';\nimport { useUserSession } from '@vertesia\u002Fui\u002Fsession';\nimport { Sidebar, SidebarSection, SidebarItem, useSidebarToggle, FullHeightLayout } from '@vertesia\u002Fui\u002Flayout';\nimport { GenericPageNavHeader, ModernAgentConversation } from '@vertesia\u002Fui\u002Ffeatures';\nimport { VertesiaShell, StandaloneApp } from '@vertesia\u002Fui\u002Fshell';\n```\n\n## Key Component APIs\n\n### Input — Value-based onChange (NOT event-based)\n\n```tsx\n\u002F\u002F CORRECT — passes value directly\n\u003CInput value={name} onChange={setName} \u002F>\n\u003CInput value={name} onChange={(value) => setName(value.trim())} \u002F>\n\n\u002F\u002F WRONG — this will NOT work\n\u003CInput onChange={(e) => setName(e.target.value)} \u002F>  \u002F\u002F ❌\n```\n\n**Textarea** uses standard React events: `onChange={(e) => setText(e.target.value)}`\n\n### Button\n\n```tsx\n\u003CButton onClick={handleClick}>Click Me\u003C\u002FButton>\n\u003CButton variant=\"outline\" size=\"sm\">Secondary\u003C\u002FButton>\n\u003CButton variant=\"destructive\">Delete\u003C\u002FButton>\n\u002F\u002F Variants: primary (default), destructive, outline, secondary, ghost, link, unstyled\n\u002F\u002F Sizes: xs, sm, md (default), lg, xl, icon\n```\n\n**Tooltip + accessible name are built in:** pass `alt=\"...\"` (or `title=\"...\"`) and `Button` auto-wraps with `VTooltip`. Don't wrap a `Button` in manual `VTooltip` (nested-button DOM) or add a separate `aria-label`. Manual `VTooltip` is only for non-Button triggers (span, icon, Badge) or non-default placement\u002Fsize.\n\nUse `isDisabled={...}` (documented prop). `size=\"icon\"` is `rounded-full` — for a _square_ icon button use `size=\"sm\"`\u002F`\"xs\"`. Example: `\u003CButton variant=\"ghost\" size=\"sm\" alt=\"Refresh\" onClick={refetch}>\u003CRefreshCw \u002F>\u003C\u002FButton>`.\n\n### VModal\n\n```tsx\n\u003CVModal isOpen={open} onClose={() => setOpen(false)} size=\"md\">\n  \u003CVModalTitle description=\"Optional subtitle\">Title\u003C\u002FVModalTitle>\n  \u003CVModalBody>Content\u003C\u002FVModalBody>\n  \u003CVModalFooter>\n    \u003CButton onClick={handleSubmit}>Submit\u003C\u002FButton>         {\u002F* Primary first *\u002F}\n    \u003CButton variant=\"outline\" onClick={onClose}>Cancel\u003C\u002FButton>\n  \u003C\u002FVModalFooter>\n\u003C\u002FVModal>\n```\n\n**Note:** VModalFooter uses `flex-row-reverse` — primary button first in code, appears on the right.\n\n### VTabs\n\n```tsx\n\u003CVTabs defaultValue=\"tab1\" tabs={[\n  { name: 'tab1', label: 'First', content: \u003CTab1 \u002F> },\n  { name: 'tab2', label: 'Second', content: \u003CTab2 \u002F> },\n]}>\n  \u003CVTabsBar \u002F>\n  \u003CVTabsPanel \u002F>\n\u003C\u002FVTabs>\n```\n\n### Table\n\n```tsx\nimport { Table, TBody, THead, Th, Tr, Td } from '@vertesia\u002Fui\u002Fcore';\n\n\u003CTable className=\"w-full\">\n  \u003CTHead>\n    \u003Ctr>\n      \u003Cth className=\"text-left\">Name\u003C\u002Fth>\n      \u003Cth className=\"text-left\">Status\u003C\u002Fth>\n    \u003C\u002Ftr>\n  \u003C\u002FTHead>\n  \u003CTBody isLoading={isFirstLoading} columns={2}>\n    {items.map(item => (\n      \u003Ctr key={item.id}>\n        \u003Ctd>{item.name}\u003C\u002Ftd>\n        \u003Ctd>{item.status}\u003C\u002Ftd>\n      \u003C\u002Ftr>\n    ))}\n  \u003C\u002FTBody>\n\u003C\u002FTable>\n```\n\n`TBody` renders loading skeletons when `isLoading=true`. **Only use `isLoading` for initial empty-state load**, not for \"load more\" — show a separate `\u003CSpinner \u002F>` below the table for appending.\n\nUse this instead of custom `\u003Ctable>` wrappers unless there is a documented gap.\n\n### Infinite Scroll (Lazy Loading)\n\n```tsx\nimport { useIntersectionObserver } from '@vertesia\u002Fui\u002Fcore';\n\nconst loadMoreRef = useRef\u003CHTMLDivElement>(null);\nconst fetchGenRef = useRef(0);\nconst [isReady, setIsReady] = useState(false);\n\n\u002F\u002F Fetch with stale-request prevention\nconst fetchItems = useCallback((currentOffset: number, append: boolean) => {\n    const gen = ++fetchGenRef.current;\n    setIsLoading(true);\n    client.someApi.list({ limit: PAGE_SIZE, offset: currentOffset })\n        .then(data => {\n            if (gen !== fetchGenRef.current) return; \u002F\u002F stale\n            setItems(prev => append ? [...prev, ...data.items] : data.items);\n            setHasMore(data.hasNext);\n            setOffset(currentOffset + data.items.length);\n            setIsReady(true);\n        })\n        .finally(() => { if (gen === fetchGenRef.current) setIsLoading(false); });\n}, [deps]);\n\n\u002F\u002F Trigger load when sentinel is visible\nuseIntersectionObserver(loadMoreRef, () => {\n    if (isReady && hasMore && !isLoading) {\n        setIsReady(false);\n        fetchItems(offset, true);\n    }\n}, { threshold: 0.1, deps: [isReady, hasMore, isLoading, offset] });\n\n\u002F\u002F Reset helper — reuse for initial load, filter changes, refresh\nconst resetAndFetch = useCallback(() => {\n    setItems([]); setOffset(0); setHasMore(true); setIsReady(false);\n    fetchItems(0, false);\n}, [fetchItems]);\n```\n\n```tsx\n{\u002F* After the table *\u002F}\n{isLoading && items.length > 0 && \u003Cdiv className=\"flex justify-center py-4\">\u003CSpinner \u002F>\u003C\u002Fdiv>}\n\u003Cdiv ref={loadMoreRef} className=\"h-4 w-full\" \u002F>\n{!isLoading && items.length === 0 && \u003Cdiv className=\"text-center text-sm text-muted-foreground py-8\">No items found\u003C\u002Fdiv>}\n```\n\n**Always** use a generation counter (`fetchGenRef`) to prevent stale responses from race conditions.\n\n### Filter System\n\n```tsx\nimport { FilterProvider, FilterBtn, FilterBar, FilterClear } from '@vertesia\u002Fui\u002Fcore';\n\nconst filterGroups: FilterGroup[] = [\n    { name: 'status', placeholder: 'Status', type: 'select', multiple: true,\n      options: [\n          { value: 'active', label: 'Active' },\n          { value: 'archived', label: 'Archived' },\n      ] },\n    { name: 'search', placeholder: 'Search', type: 'text', multiple: false },\n];\n\n\u003CFilterProvider filterGroups={filterGroups} filters={filters} setFilters={handleFilterChange}>\n    \u003Cdiv className=\"flex gap-2 items-center\">\n        \u003CFilterBtn \u002F>\n        \u003CFilterBar \u002F>\n        \u003CFilterClear \u002F>\n    \u003C\u002Fdiv>\n\u003C\u002FFilterProvider>\n```\n\nSort select options alphabetically by label. `FilterProvider` handles URL persistence automatically.\n\n### Spinner, ErrorBox, Badge\n\n```tsx\nimport { Spinner, ErrorBox, Badge } from '@vertesia\u002Fui\u002Fcore';\n\nif (isLoading) return \u003CSpinner \u002F>;\nif (error) return \u003CErrorBox>{error.message}\u003C\u002FErrorBox>;\n\u003CBadge variant=\"secondary\">Status\u003C\u002FBadge>\n```\n\n## Routing\n\nUse `NestedRouterProvider` for plugin routing (nested within host app):\n\n```tsx\nconst routes = [\n  { path: '\u002F', Component: HomePage },\n  { path: '\u002Fitems\u002F:id', Component: ItemPage },\n  { path: '*', Component: NotFound },\n];\n\u003CNestedRouterProvider routes={routes} index=\"\u002F\" \u002F>\n```\n\n### Navigation hooks\n\n```tsx\nconst navigate = useNavigate();\nnavigate('\u002Fitems\u002F123');    \u002F\u002F Push\nnavigate(-1);              \u002F\u002F Go back\n\nconst { id } = useParams();           \u002F\u002F From \u002Fitems\u002F:id\nconst [searchParams] = useSearchParams();\nconst path = useLocation().pathname;   \u002F\u002F Current path\n```\n\n### NavLink\n\n```tsx\n\u003CNavLink href=\"\u002Fitems\">Go to Items\u003C\u002FNavLink>\n```\n\n### List \u002F Detail Preservation\n\nIf a list page links to a detail page and users are expected to go back, do not keep the list state inside the list page component.\n\nPreserve these concerns above the route boundary when they matter:\n\n- active filters\n- search query\n- sort\n- pagination or loaded results\n- row selection\n- scroll position\n\nUse a provider above `NestedRouterProvider` or above the list\u002Fdetail route split. Do not use a module-level singleton.\n\nIf `FilterProvider` is involved, remember that it restores filters from the URL on mount. If your list state also survives route changes, normalize or dedupe filter writes at the provider boundary so the same filter does not get appended repeatedly on back-navigation.\n\nFor scroll restoration:\n\n- persist the list scroll position in provider state and `window.history.state.data`\n- restore it in `useLayoutEffect`\n- wait until the list has rendered before restoring, typically with `requestAnimationFrame`\n\nDo not treat list\u002Fdetail navigation as a cosmetic issue. If filters and scroll reset on back, the UX is wrong.\n\n### Search vs Find For Table Surfaces\n\nFor table\u002Flist surfaces that need any combination of:\n\n- full-text search\n- backend sort\n- backend facets\n\nuse one backend `search` path consistently.\n\nDo not mix `find` for the default state with `search` for filtered states if the page exposes sort and facet-driven filtering. That creates different backend behavior depending on UI state and weakens the table contract.\n\nUse `find` only for simple exact-match fetches that do not require backend sort, full-text behavior, or facets.\n\n## Completion Check\n\nBefore calling a UI task complete, run a short conformance pass:\n\n1. any raw `\u003Ctable>` where `Table` \u002F `THead` \u002F `TBody` should be used?\n2. any native `\u003Cselect>` where `SelectBox` should be used?\n3. any local page-header wrapper where `GenericPageNavHeader` would fit?\n4. any inline styles that should move to CSS or semantic utility classes?\n5. any custom wrapper that duplicates existing `@vertesia\u002Fui` behavior without a documented gap?\n6. any list\u002Fdetail flow where filters, sort, or scroll reset on back-navigation because the state lives below the route boundary?\n7. any `FilterProvider` usage that can double-restore URL filters into already-persisted React state?\n8. any hover-reveal Tailwind classes built from template strings instead of literal class names?\n\nIf the answer is yes to any of the above, the UI pass is not done yet.\n\n## Layout\n\n### Sidebar\n\n```tsx\n\u003CSidebarSection title=\"Navigation\">\n  \u003CSidebarItem href=\"\u002Fapp\u002Fsettings\" icon={SettingsIcon} current={path === '\u002Fapp\u002Fsettings'}>\n    Settings\n  \u003C\u002FSidebarItem>\n\u003C\u002FSidebarSection>\n\n\u002F\u002F Footer section (pushed to bottom)\n\u003CSidebarSection isFooter>\n  \u003CModeToggle label={isOpen ? 'Theme' : false} \u002F>\n\u003C\u002FSidebarSection>\n\n\u002F\u002F Truncate long labels\n\u003CSidebarItem href={href} icon={Icon} className=\"overflow-hidden\">\n  \u003Cspan className=\"truncate\">{longLabel}\u003C\u002Fspan>\n\u003C\u002FSidebarItem>\n\nconst { isOpen, toggleMobile } = useSidebarToggle();\n```\n\n### GenericPageNavHeader\n\n```tsx\n\u003CGenericPageNavHeader\n  useDynamicBreadcrumbs={false}\n  breadcrumbs={[\n    \u003CNavLink href=\"\u002F\" key=\"home\">Home\u003C\u002FNavLink>,\n    \u003Cspan key=\"current\">\u003Cspan>Current Page\u003C\u002Fspan>\u003C\u002Fspan>,\n  ]}\n  actions={\u003CButton>Create New\u003C\u002FButton>}\n\u002F>\n```\n\nPrefer `GenericPageNavHeader` over a local page-header abstraction when it fits the page.\n\n#### Breadcrumb rules\n\nThese bite repeatedly — apply them on every page that uses `GenericPageNavHeader`.\n\n1. **Always pass `useDynamicBreadcrumbs={false}`.** The default (`true`) reads `window.history.state?.historyChain` and falls back to URL path inference. Both produce surprises: stale entries from a previous detail visit (e.g. \"App > App\") leak onto a top-level list, and URL inference capitalizes raw segments (e.g. \"Objects\" instead of your i18n label \"Content Objects\"). Explicit beats inferred.\n\n2. **Don't combine `title=` with breadcrumbs for list\u002Fdetail flows.** `title=` renders a big bold heading _under_ the breadcrumb row, which on a detail page reads as a stacked title — not a breadcrumb. The real breadcrumb pattern is to put **all** segments in `breadcrumbs={[...]}` (parent → current) and omit `title=` entirely. composable-ui's `ContentObjectView` follows this.\n\n3. **Wrap string labels in a nested element to avoid 20-char truncation.** `Breadcrumbs.renderBreadcrumbItem` slices any _string_ label to 17 chars + `…`. Filenames and document titles hit this constantly. Pass a `ReactNode` instead and add CSS truncation:\n\n   ```tsx\n   \u003Cspan key=\"current\" title={fullName}>\n     \u003Cspan className=\"inline-block align-middle max-w-[60ch] truncate\">\n       {fullName}\n     \u003C\u002Fspan>\n   \u003C\u002Fspan>\n   ```\n\n   The outer `span`'s `children` is now a node, not a string, so the JS truncation path is skipped. The inner `span` truncates only when actually too wide for the layout. The `title=` gives a hover tooltip with the full name.\n\n4. **`NavLink` works as a clickable breadcrumb item.** `GenericPageNavHeader` extracts `href` from the element and wires its own `onClick` to `navigate(href)`. No need to add `onClick` yourself.\n\n5. **No back button.** The breadcrumb itself is the way back. Don't add a separate `\u003CButton>\u003CArrowLeft \u002F>Back\u003C\u002FButton>` — it duplicates the breadcrumb's affordance and clutters the header.\n\n#### Description prop\n\nThe `description` prop renders an `Info` tooltip icon in the breadcrumb row. When there are **no** breadcrumbs the icon orphans above the title — looks broken. Either omit `description=`, or always pair it with at least one breadcrumb.\n\n## Data Fetching\n\n### useFetch\n\n```tsx\nconst { data, isLoading, error, refetch } = useFetch(\n  async () => client.store.collections.list(),\n  [dependency1, dependency2]\n);\n```\n\n### useToast\n\n```tsx\nconst toast = useToast();\ntoast({ title: 'Success', description: 'Item created' });\ntoast({ title: 'Error', description: err.message, variant: 'destructive' });\n```\n\n## Agent Conversation\n\nUse `ModernAgentConversation` from `@vertesia\u002Fui\u002Ffeatures` for agent chat interfaces.\n\n**Props:**\n\n- `run` — `{ runId, workflowId } | undefined` — active conversation (undefined = start view)\n- `startWorkflow` — `(initialMessage?) => Promise\u003C{ run_id, workflow_id } | undefined>`\n- `resetWorkflow` — `() => void` — new conversation callback\n- `title`, `placeholder`, `startButtonText` — UI text\n- `hideObjectLinking` — hide document linking UI\n- `interactive` — enable user input during conversation\n- `fullWidth` — disable max-width constraint\n\n**URL persistence pattern:**\n\n- Route: `\u002Fchat\u002F:runId\u002F:workflowId`\n- Derive `run` from `useParams()` instead of React state\n- After `startWorkflow`, `navigate('\u002Fchat\u002F${result.runId}\u002F${result.workflowId}')`\n- `resetWorkflow` calls `navigate('\u002Fchat')`\n\n**Listing past conversations (sidebar):**\n\n- `client.store.workflows.listConversations({ interaction, page_size })` — returns `{ runs: WorkflowRun[] }`\n- Each run has `run_id`, `workflow_id`, `started_at`, `status`, `topic`\n- `listConversations` does NOT return `input` — only `topic` is available for labels\n- Use `getRunDetails(runId, workflowId)` for full data including `input`\n\n## Styling\n\n### Semantic color classes\n\n```tsx\n\u003Cspan className=\"text-success-foreground\">Success\u003C\u002Fspan>\n\u003Cspan className=\"text-attention-foreground\">Warning\u003C\u002Fspan>\n\u003Cspan className=\"text-destructive-foreground\">Error\u003C\u002Fspan>\n\u003Cspan className=\"text-muted-foreground\">Muted\u003C\u002Fspan>\n\u003Cdiv className=\"bg-success text-success-foreground\">Success message\u003C\u002Fdiv>\n```\n\n### Layout patterns\n\n- Use `flex flex-col gap-{n}` or `flex flex-row gap-{n}` for spacing (not `space-y-*`)\n- Use `p-4 space-y-4` for padding + vertical spacing within forms\n- Never hardcode colors — always use theme variables\n\n### CSS customization\n\nOverride CSS custom properties in `index.css` after the shared import:\n\n```css\n:root { --primary: oklch(40% 0.1 145); --primary-foreground: oklch(1 0 0); }\n.dark { --primary: oklch(45% 0.1 145); --primary-foreground: oklch(1 0 0); }\n```\n\nAvailable tokens: `--primary`, `--secondary`, `--success`, `--attention`, `--destructive`, `--done`, `--info`, `--muted` (each paired with `-foreground`), `--background`, `--foreground`, `--card-*`, `--sidebar-*`, `--border`, `--input`, `--ring`.\n\nBase tokens are surfaces; pair them with `-foreground` text\u002Ficons. The old status, muted, and secondary\n`-background` names are deprecated aliases; use base names in new code. Primary is solid, with a contrasting foreground.\n\n### Tailwind Variant Safety\n\nDo not build Tailwind variant classes dynamically in template strings when you need them emitted into CSS.\n\nBad:\n\n```tsx\nclassName={`opacity-0 group-hover\u002F${groupName}:opacity-100`}\n```\n\nThat class is usually invisible to Tailwind’s static analysis and will not be generated.\n\nUse literal class names or a static map instead:\n\n```tsx\nconst hoverClass = {\n  contract: \"group-hover\u002Fcontract:opacity-100\",\n  owner: \"group-hover\u002Fowner:opacity-100\",\n}[groupName];\n```\n\nThis matters especially for hover-reveal filter buttons and row actions.\n\n## Plugin Entry Points\n\n### plugin.tsx (library mode)\n\nDefault export receives `{ slot: string }`. Render app when `slot === \"page\"`.\n\n### main.tsx (standalone dev)\n\nWraps app in `VertesiaShell` + `RouterProvider`. Mounts `AdminApp` at `\u002F`, plugin at `\u002Fapp\u002F`. Requires `VITE_APP_NAME` in `.env.local`. Access at https:\u002F\u002Flocalhost:5173 (HTTPS for Firebase auth).\n\n## Security\n\nApply these rules to any page or component that takes user input or hits the API. Full patterns + code in `references\u002Fsecurity.md`.\n\n- Never pass unsanitized HTML to `dangerouslySetInnerHTML`.\n- Validate user-provided URLs before rendering as links.\n- Catch API errors, log details to console, surface a generic message via `useToast` — never leak internal error text.\n- Client-side env vars must use the `VITE_` prefix (they are embedded in the bundle); keep secrets server-side.\n- Throttle async button actions with an `isSubmitting` flag cleared in `finally`.\n\n## Development Practices\n\n- Extract components from map callbacks when the body has logic or is more than 2-3 lines\n- Use `\u003CSeparator \u002F>` from `@vertesia\u002Fui\u002Fcore` for dividers instead of `border-t\u002Fb`\n- Debounce expensive search operations\n- Always throttle async button actions with `isSubmitting` (see `references\u002Fsecurity.md`)\n- Show generic user-facing error messages; log details to console\n",{"name":5,"description":7},"main","8539475c1fe2b5c28892aee0ebf4ae2ede63d6fe","templates\u002Fplugin-template\u002F.agents\u002Fskills\u002Fvertesia-ui",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":70,"prompt":80,"zipAvailable":81},[71,74,77],{"tool":72,"command":73},"npx","npx skills add vertesia\u002Fcomposableai --skill vertesia-ui",{"tool":75,"command":76},"bunx","bunx skills add vertesia\u002Fcomposableai --skill vertesia-ui",{"tool":78,"command":79},"pnpm","pnpm dlx skills add vertesia\u002Fcomposableai --skill vertesia-ui","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvertesia\u002Fcomposableai\u002Fblob\u002Fmain\u002Ftemplates\u002Fplugin-template\u002F.agents\u002Fskills\u002Fvertesia-ui\u002FSKILL.md",true,[83,89],{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fgeneric-table-pattern.md","REFERENCE","参考文档",16286,"https:\u002F\u002Fgithub.com\u002Fvertesia\u002Fcomposableai\u002Fblob\u002Fmain\u002Ftemplates\u002Fplugin-template\u002F.agents\u002Fskills\u002Fvertesia-ui\u002Freferences\u002Fgeneric-table-pattern.md",{"path":90,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fsecurity.md",2763,"https:\u002F\u002Fgithub.com\u002Fvertesia\u002Fcomposableai\u002Fblob\u002Fmain\u002Ftemplates\u002Fplugin-template\u002F.agents\u002Fskills\u002Fvertesia-ui\u002Freferences\u002Fsecurity.md",[94,124,158,179,212,233],{"skillNo":95,"name":96,"nameZh":97,"description":98,"descriptionZh":99,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":100,"categories":101,"keywords":108,"publishedAt":54},"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",[102,105],{"categoryNo":103,"categoryName":104,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BS5011KJDVSRXG1DC4P666","普通用户",{"categoryNo":106,"categoryName":107,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C9XZ92SSCN913ZXMSBA095","通用助手与问答",[109,110,111,112,113,114,115,116,117,33,118,119,120,121,122,123],"user select","user","choice","select","choose","collect","option","pick","decision","selection","decision-making","interactive","users","with","present",{"skillNo":125,"name":126,"nameZh":127,"description":128,"descriptionZh":129,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":130,"categories":131,"keywords":136,"publishedAt":54},"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",[132,133],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":134,"categoryName":135,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理",[137,138,139,140,141,142,143,144,145,146,147,148,33,149,150,151,152,153,154,42,155,156,157],"server","vertesia tool server resource","tool","vertesia plugin","plugin","templates","index","Tools","file","content","resources","types","event","scaffolding","hooks","module","new","use","wiring","subscriptions","rendering",{"skillNo":159,"name":160,"nameZh":161,"description":162,"descriptionZh":163,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":164,"categories":165,"keywords":168,"publishedAt":54},"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。","https:\u002F\u002Fgithub.com\u002Fvertesia\u002Fcomposableai\u002Fblob\u002Fmain\u002Ftemplates\u002Fplugin-template\u002F.agents\u002Fskills\u002Fvertesia-plugin\u002FSKILL.md",[166,167],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":134,"categoryName":135,"taxonomyType":28,"taxonomyTypeDesc":29},[140,141,137,169,170,139,31,171,48,172,173,147,33,174,151,154,42,175,176,177,178],"deployment","system","architecture","Plugin Structure","import","plugin architecture","structure","build","client","reference",{"skillNo":180,"name":181,"nameZh":182,"description":183,"descriptionZh":184,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":185,"categories":186,"keywords":191,"publishedAt":54},"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",[187,188],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":189,"categoryName":190,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C4MZTN2Z748WNZF599EMBT","需求澄清与上下文补全",[192,193,194,195,141,196,197,198,199,200,201,202,203,204,42,205,206,207,208,209,33,210,211],"assessment","vertesia gap assessment","gap","notes","support","discovery","feature requests","documents","workflow","capabilities","demo","app","project","you","work","native","feature","platform","custom","true",{"skillNo":213,"name":214,"nameZh":215,"description":216,"descriptionZh":217,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":218,"categories":219,"keywords":224,"publishedAt":54},"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",[220,223],{"categoryNo":221,"categoryName":222,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[225,200,226,227,228,229,33,230,231,154,42,232,178],"vertesia dsl workflow","dsl","plugins","debugging","workflows","call","remote","resolution",{"skillNo":234,"name":235,"nameZh":236,"description":237,"descriptionZh":238,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":239,"categories":240,"keywords":245,"publishedAt":54},"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",[241,242],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":243,"categoryName":244,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BWKS60NTYJHFE9FQSXGDKS","低代码应用开发",[246,146,202,247,248,249,250,251,252,227,229,48,253,203,33,204,254,255,256,257,210,258,154,259,260,42,261],"vertesia demo content","browser","cli","generate","search","applications","repository","extraction","browser session","session","arrays","objects","pages","mock","apps","reusable"]