[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JWXR45ZB3186VMJMXPZG5M":3,"skill-same:01M6JWXR45ZB3186VMJMXPZG5M":91},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":28,"publishedAt":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":57,"repositoryHtmlUrl":58,"repositoryHomepageUrl":59,"ownerHtmlUrl":60,"ownerBlogUrl":59,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M6JWXR45ZB3186VMJMXPZG5M","assistant-ui-tools",null,"Guide for tool registration and tool UI in assistant-ui. Use when implementing LLM tools, tool call rendering, or human-in-the-loop patterns.","compozy\u002Fcompozy","compozy","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F205107042?v=4","01M6JWVTXX4DX38AWZ7SPFEKEV","CompozyOS","01M6JWVV2P34GM1PDATVB2EV05",2871,"MIT","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fassistant-ui\u002Fassistant-ui-tools\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000032","设计师","PROFESSION","适用职业",[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"ui","Tools","assistant","assistant ui","assistant ui tools","when","for","implementing","rendering","human","llm tools","call","patterns","registration","use","guide","tool","loop","human-in-the-loop","2026-11-10 10:12:30",false,"---\nname: assistant-ui-tools\ndescription: Guide for tool registration and tool UI in assistant-ui. Use when implementing LLM tools, tool call rendering, or human-in-the-loop patterns.\nversion: 0.0.1\nlicense: MIT\n---\n\n# assistant-ui Tools\n\n**Always consult [assistant-ui.com\u002Fllms.txt](https:\u002F\u002Fassistant-ui.com\u002Fllms.txt) for latest API.**\n\nTools let LLMs trigger actions with custom UI rendering.\n\n## References\n\n- [.\u002Freferences\u002Fmake-tool.md](.\u002Freferences\u002Fmake-tool.md) -- makeAssistantTool\u002FuseAssistantTool\n- [.\u002Freferences\u002Ftool-ui.md](.\u002Freferences\u002Ftool-ui.md) -- makeAssistantToolUI rendering\n- [.\u002Freferences\u002Fhuman-in-loop.md](.\u002Freferences\u002Fhuman-in-loop.md) -- Confirmation patterns\n\n## Tool Types\n\n```\nWhere does the tool execute?\n├─ Backend (LLM calls API) → AI SDK tool()\n│  └─ Want custom UI? → makeAssistantToolUI\n└─ Frontend (browser-only) → makeAssistantTool\n   └─ Want custom UI? → makeAssistantToolUI\n```\n\n## Backend Tool with UI\n\n```ts\n\u002F\u002F Backend (app\u002Fapi\u002Fchat\u002Froute.ts)\nimport { tool, stepCountIs } from \"ai\";\nimport { z } from \"zod\";\n\nconst tools = {\n  get_weather: tool({\n    description: \"Get weather for a city\",\n    inputSchema: z.object({ city: z.string() }),\n    execute: async ({ city }) => ({ temp: 22, city }),\n  }),\n};\n\nconst result = streamText({\n  model: openai(\"gpt-4o\"),\n  messages,\n  tools,\n  stopWhen: stepCountIs(5),\n});\n```\n\n```tsx\n\u002F\u002F Frontend\nimport { makeAssistantToolUI } from \"@assistant-ui\u002Freact\";\n\nconst WeatherToolUI = makeAssistantToolUI({\n  toolName: \"get_weather\",\n  render: ({ args, result, status }) => {\n    if (status === \"running\") return \u003Cdiv>Loading weather...\u003C\u002Fdiv>;\n    return \u003Cdiv>{result?.city}: {result?.temp}°C\u003C\u002Fdiv>;\n  },\n});\n\n\u002F\u002F Register in app\n\u003CAssistantRuntimeProvider runtime={runtime}>\n  \u003CWeatherToolUI \u002F>\n  \u003CThread \u002F>\n\u003C\u002FAssistantRuntimeProvider>\n```\n\n## Frontend-Only Tool\n\n```tsx\nimport { makeAssistantTool } from \"@assistant-ui\u002Freact\";\nimport { z } from \"zod\";\n\nconst CopyTool = makeAssistantTool({\n  toolName: \"copy_to_clipboard\",\n  parameters: z.object({ text: z.string() }),\n  execute: async ({ text }) => {\n    await navigator.clipboard.writeText(text);\n    return { success: true };\n  },\n});\n\n\u003CAssistantRuntimeProvider runtime={runtime}>\n  \u003CCopyTool \u002F>\n  \u003CThread \u002F>\n\u003C\u002FAssistantRuntimeProvider>\n```\n\n## API Reference\n\n```tsx\n\u002F\u002F makeAssistantToolUI props\ninterface ToolUIProps {\n  toolCallId: string;\n  toolName: string;\n  args: Record\u003Cstring, unknown>;\n  argsText: string;\n  result?: unknown;\n  status: \"running\" | \"complete\" | \"incomplete\" | \"requires-action\";\n  submitResult: (result: unknown) => void;  \u002F\u002F For interactive tools\n}\n```\n\n## Human-in-the-Loop\n\n```tsx\nconst DeleteToolUI = makeAssistantToolUI({\n  toolName: \"delete_file\",\n  render: ({ args, status, submitResult }) => {\n    if (status === \"requires-action\") {\n      return (\n        \u003Cdiv>\n          \u003Cp>Delete {args.path}?\u003C\u002Fp>\n          \u003Cbutton onClick={() => submitResult({ confirmed: true })}>Confirm\u003C\u002Fbutton>\n          \u003Cbutton onClick={() => submitResult({ confirmed: false })}>Cancel\u003C\u002Fbutton>\n        \u003C\u002Fdiv>\n      );\n    }\n    return \u003Cdiv>File deleted\u003C\u002Fdiv>;\n  },\n});\n```\n\n## Common Gotchas\n\n**Tool UI not rendering**\n- `toolName` must match exactly (case-sensitive)\n- Register UI inside `AssistantRuntimeProvider`\n\n**Tool not being called**\n- Check tool description is clear\n- Use `stopWhen: stepCountIs(n)` to allow multi-step\n\n**Result not showing**\n- Tool must return a value\n- Check `status === \"complete\"` before accessing result\n","# assistant-ui Tools\n\n**Always consult [assistant-ui.com\u002Fllms.txt](https:\u002F\u002Fassistant-ui.com\u002Fllms.txt) for latest API.**\n\nTools let LLMs trigger actions with custom UI rendering.\n\n## References\n\n- [.\u002Freferences\u002Fmake-tool.md](.\u002Freferences\u002Fmake-tool.md) -- makeAssistantTool\u002FuseAssistantTool\n- [.\u002Freferences\u002Ftool-ui.md](.\u002Freferences\u002Ftool-ui.md) -- makeAssistantToolUI rendering\n- [.\u002Freferences\u002Fhuman-in-loop.md](.\u002Freferences\u002Fhuman-in-loop.md) -- Confirmation patterns\n\n## Tool Types\n\n```\nWhere does the tool execute?\n├─ Backend (LLM calls API) → AI SDK tool()\n│  └─ Want custom UI? → makeAssistantToolUI\n└─ Frontend (browser-only) → makeAssistantTool\n   └─ Want custom UI? → makeAssistantToolUI\n```\n\n## Backend Tool with UI\n\n```ts\n\u002F\u002F Backend (app\u002Fapi\u002Fchat\u002Froute.ts)\nimport { tool, stepCountIs } from \"ai\";\nimport { z } from \"zod\";\n\nconst tools = {\n  get_weather: tool({\n    description: \"Get weather for a city\",\n    inputSchema: z.object({ city: z.string() }),\n    execute: async ({ city }) => ({ temp: 22, city }),\n  }),\n};\n\nconst result = streamText({\n  model: openai(\"gpt-4o\"),\n  messages,\n  tools,\n  stopWhen: stepCountIs(5),\n});\n```\n\n```tsx\n\u002F\u002F Frontend\nimport { makeAssistantToolUI } from \"@assistant-ui\u002Freact\";\n\nconst WeatherToolUI = makeAssistantToolUI({\n  toolName: \"get_weather\",\n  render: ({ args, result, status }) => {\n    if (status === \"running\") return \u003Cdiv>Loading weather...\u003C\u002Fdiv>;\n    return \u003Cdiv>{result?.city}: {result?.temp}°C\u003C\u002Fdiv>;\n  },\n});\n\n\u002F\u002F Register in app\n\u003CAssistantRuntimeProvider runtime={runtime}>\n  \u003CWeatherToolUI \u002F>\n  \u003CThread \u002F>\n\u003C\u002FAssistantRuntimeProvider>\n```\n\n## Frontend-Only Tool\n\n```tsx\nimport { makeAssistantTool } from \"@assistant-ui\u002Freact\";\nimport { z } from \"zod\";\n\nconst CopyTool = makeAssistantTool({\n  toolName: \"copy_to_clipboard\",\n  parameters: z.object({ text: z.string() }),\n  execute: async ({ text }) => {\n    await navigator.clipboard.writeText(text);\n    return { success: true };\n  },\n});\n\n\u003CAssistantRuntimeProvider runtime={runtime}>\n  \u003CCopyTool \u002F>\n  \u003CThread \u002F>\n\u003C\u002FAssistantRuntimeProvider>\n```\n\n## API Reference\n\n```tsx\n\u002F\u002F makeAssistantToolUI props\ninterface ToolUIProps {\n  toolCallId: string;\n  toolName: string;\n  args: Record\u003Cstring, unknown>;\n  argsText: string;\n  result?: unknown;\n  status: \"running\" | \"complete\" | \"incomplete\" | \"requires-action\";\n  submitResult: (result: unknown) => void;  \u002F\u002F For interactive tools\n}\n```\n\n## Human-in-the-Loop\n\n```tsx\nconst DeleteToolUI = makeAssistantToolUI({\n  toolName: \"delete_file\",\n  render: ({ args, status, submitResult }) => {\n    if (status === \"requires-action\") {\n      return (\n        \u003Cdiv>\n          \u003Cp>Delete {args.path}?\u003C\u002Fp>\n          \u003Cbutton onClick={() => submitResult({ confirmed: true })}>Confirm\u003C\u002Fbutton>\n          \u003Cbutton onClick={() => submitResult({ confirmed: false })}>Cancel\u003C\u002Fbutton>\n        \u003C\u002Fdiv>\n      );\n    }\n    return \u003Cdiv>File deleted\u003C\u002Fdiv>;\n  },\n});\n```\n\n## Common Gotchas\n\n**Tool UI not rendering**\n- `toolName` must match exactly (case-sensitive)\n- Register UI inside `AssistantRuntimeProvider`\n\n**Tool not being called**\n- Check tool description is clear\n- Use `stopWhen: stepCountIs(n)` to allow multi-step\n\n**Result not showing**\n- Tool must return a value\n- Check `status === \"complete\"` before accessing result\n",{"name":5,"license":15,"version":53,"description":7},"0.0.1","main","a427be50111dfd18e0cc37aa36359e26745b04dc",".agents\u002Fskills\u002Fassistant-ui\u002Fassistant-ui-tools",187,"https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy","https:\u002F\u002Fcompozy.com","https:\u002F\u002Fgithub.com\u002Fcompozy","An OS for AI agents","2026-11-15 03:55:11",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add compozy\u002Fcompozy --skill assistant-ui-tools",{"tool":69,"command":70},"bunx","bunx skills add compozy\u002Fcompozy --skill assistant-ui-tools",{"tool":72,"command":73},"pnpm","pnpm dlx skills add compozy\u002Fcompozy --skill assistant-ui-tools","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fassistant-ui\u002Fassistant-ui-tools\u002FSKILL.md",true,[77,83,87],{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fhuman-in-loop.md","REFERENCE","参考文档",8679,"https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fassistant-ui\u002Fassistant-ui-tools\u002Freferences\u002Fhuman-in-loop.md",{"path":84,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fmake-tool.md",5641,"https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fassistant-ui\u002Fassistant-ui-tools\u002Freferences\u002Fmake-tool.md",{"path":88,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Ftool-ui.md",6269,"https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fassistant-ui\u002Fassistant-ui-tools\u002Freferences\u002Ftool-ui.md",[92,123,146,168,179,191],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":96,"licenseFileUrl":97,"sourceHtmlUrl":98,"categories":99,"keywords":103,"publishedAt":48},"01M6MD7W312X49RNEJRKKVKTTD","security-review","Security code review for vulnerabilities. Use when asked to \"security review\", \"find vulnerabilities\", \"check for security issues\", \"audit security\", \"OWASP review\", or review code for injection, XSS, authentication, authorization, cryptography issues. Provides systematic review with confidence-based reporting.","CC-BY-SA-4.0","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsecurity-review\u002FSKILL.md",[100],{"categoryNo":101,"categoryName":102,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000007","代码审查",[104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,35,43,121,34,122],"security","security review","review","injection","authentication","code review","issues","Bash","code","xss","audit","systematic","read","reporting","cryptography","owasp","systematic review","task","audit security",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":132,"publishedAt":48},"01M6MD5K93G1GP8VA56V2FEPZV","lesson-learned","Extract evidence-backed engineering lessons from recent changes or incidents. Use for requested reflection, lesson updates, or retiring an obsolete workflow rule.","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Flesson-learned\u002FSKILL.md",[129],{"categoryNo":130,"categoryName":131,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000039","教师与教育",[133,134,135,35,136,137,138,139,140,141,142,143,43,144,145],"learned","lesson learned","lesson","changes","evidence","incidents","workflow","engineering","updates","extract","rule","lessons","reflection",{"skillNo":147,"name":9,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":151,"publishedAt":48},"01M6MDPNH3J60VRCGTPHVTHZR8","Operate CompozyOS. Use when working with CompozyOS sessions, agents, native tools, skills, tasks, Loops, Goals, Terminal, desktops and windows, automation, extensions, or configuration. Don't use for unrelated projects.","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002Fskills\u002Fcompozy\u002FSKILL.md",[],[9,152,153,154,155,35,156,157,43,158,159,160,161,162,163,164,165,166,167,30,34],"sessions","windows","projects","operate","runtime","true","automation","tasks","extensions","with","loops","unrelated","goals","native","terminal","configuration",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":48},"01M6MDPHKNPQHJ1TF21E1HSFNF","remotion-upgrade","Upgrade Remotion, and related packages","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002Fpackages\u002Flaunch-video\u002F.agents\u002Fskills\u002Fremotion-upgrade\u002FSKILL.md",[],[175,176,177,178],"remotion upgrade","upgrade","Remotion","packages",{"skillNo":180,"name":181,"nameZh":6,"description":182,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":183,"categories":184,"keywords":185,"publishedAt":48},"01M6MDPFT91ZWC7Z09MRNZPAJG","remotion-studio","Preview a Remotion video","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002Fpackages\u002Flaunch-video\u002F.agents\u002Fskills\u002Fremotion-studio\u002FSKILL.md",[],[186,187,177,188,189,190],"studio","remotion studio","Video","preview","remotion video",{"skillNo":192,"name":193,"nameZh":6,"description":194,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":195,"categories":196,"keywords":197,"publishedAt":48},"01M6MDPD5XDZPYB5NAZGKMPXWC","remotion-saas","Build an app with Remotion","https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002Fpackages\u002Flaunch-video\u002F.agents\u002Fskills\u002Fremotion-saas\u002FSKILL.md",[],[198,199,177,161,200,201],"saas","remotion saas","app","build"]