[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JWY00R6YNMHAEVF337KAYP":3,"skill-same:01M6JWY00R6YNMHAEVF337KAYP":79},{"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":23,"publishedAt":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":51,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M6JWY00R6YNMHAEVF337KAYP","assistant-ui",null,"Guide for assistant-ui library - AI chat UI components. Use when asking about architecture, debugging, or understanding the codebase.","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\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000032","设计师","PROFESSION","适用职业",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"assistant","ui","assistant ui","components","architecture","debugging","library","guide","use","chat","ui components","about","chat ui","for","codebase","when","2026-11-10 10:12:30",false,"---\nname: assistant-ui\ndescription: Guide for assistant-ui library - AI chat UI components. Use when asking about architecture, debugging, or understanding the codebase.\nversion: 0.0.1\nlicense: MIT\n---\n\n# assistant-ui\n\n**Always consult [assistant-ui.com\u002Fllms.txt](https:\u002F\u002Fassistant-ui.com\u002Fllms.txt) for latest API.**\n\nReact library for building AI chat interfaces with composable primitives.\n\n## References\n\n- [.\u002Freferences\u002Farchitecture.md](.\u002Freferences\u002Farchitecture.md) -- Core architecture and layered system\n- [.\u002Freferences\u002Fpackages.md](.\u002Freferences\u002Fpackages.md) -- Package overview and selection guide\n\n## When to Use\n\n| Use Case | Best For |\n|----------|----------|\n| Chat UI from scratch | Full control over UX |\n| Existing AI backend | Connects to any streaming backend |\n| Custom message types | Tools, images, files, custom parts |\n| Multi-thread apps | Built-in thread list management |\n| Production apps | Cloud persistence, auth, analytics |\n\n## Architecture\n\n```\n┌─────────────────────────────────────────────────────────┐\n│                  UI Components (Primitives)             │\n│    ThreadPrimitive, MessagePrimitive, ComposerPrimitive │\n└─────────────────────────┬───────────────────────────────┘\n                          │\n┌─────────────────────────▼───────────────────────────────┐\n│                   Context Hooks                         │\n│   useAui, useAuiState, useAuiEvent │\n└─────────────────────────┬───────────────────────────────┘\n                          │\n┌─────────────────────────▼───────────────────────────────┐\n│                    Runtime Layer                        │\n│  AssistantRuntime → ThreadRuntime → MessageRuntime      │\n└─────────────────────────┬───────────────────────────────┘\n                          │\n┌─────────────────────────▼───────────────────────────────┐\n│                   Adapters\u002FBackend                      │\n│   AI SDK · LangGraph · Custom · Cloud Persistence       │\n└─────────────────────────────────────────────────────────┘\n```\n\n## Pick a Runtime\n\n```\nUsing AI SDK?\n├─ Yes → useChatRuntime (recommended)\n└─ No\n   ├─ External state (Redux\u002FZustand)? → useExternalStoreRuntime\n   ├─ LangGraph agent? → useLangGraphRuntime\n   ├─ AG-UI protocol? → useAgUiRuntime\n   ├─ A2A protocol? → useA2ARuntime\n   └─ Custom API → useLocalRuntime\n```\n\n## Core Packages\n\n| Package | Purpose |\n|---------|---------|\n| `@assistant-ui\u002Freact` | UI primitives & hooks |\n| `@assistant-ui\u002Freact-ai-sdk` | Vercel AI SDK v6 adapter |\n| `@assistant-ui\u002Freact-langgraph` | LangGraph adapter |\n| `@assistant-ui\u002Freact-markdown` | Markdown rendering |\n| `assistant-stream` | Streaming protocol |\n| `assistant-cloud` | Cloud persistence |\n\n## Quick Start\n\n```tsx\nimport { AssistantRuntimeProvider } from \"@assistant-ui\u002Freact\";\nimport { Thread } from \"@\u002Fcomponents\u002Fassistant-ui\u002Fthread\";\nimport { useChatRuntime, AssistantChatTransport } from \"@assistant-ui\u002Freact-ai-sdk\";\n\nfunction App() {\n  const runtime = useChatRuntime({\n    transport: new AssistantChatTransport({ api: \"\u002Fapi\u002Fchat\" }),\n  });\n  return (\n    \u003CAssistantRuntimeProvider runtime={runtime}>\n      \u003CThread \u002F>\n    \u003C\u002FAssistantRuntimeProvider>\n  );\n}\n```\n\n## State Access\n\n```tsx\nimport { useAui, useAuiState } from \"@assistant-ui\u002Freact\";\n\nconst api = useAui();\napi.thread().append({ role: \"user\", content: [{ type: \"text\", text: \"Hi\" }] });\napi.thread().cancelRun();\n\nconst messages = useAuiState(s => s.thread.messages);\nconst isRunning = useAuiState(s => s.thread.isRunning);\n```\n\n## Related Skills\n\n- `\u002Fsetup` - Installation and configuration\n- `\u002Fprimitives` - UI component customization\n- `\u002Fruntime` - State management deep dive\n- `\u002Ftools` - Tool registration and UI\n- `\u002Fstreaming` - Streaming protocols\n- `\u002Fcloud` - Persistence and auth\n- `\u002Fthread-list` - Multi-thread management\n- `\u002Fupdate` - Version updates and migrations\n","# assistant-ui\n\n**Always consult [assistant-ui.com\u002Fllms.txt](https:\u002F\u002Fassistant-ui.com\u002Fllms.txt) for latest API.**\n\nReact library for building AI chat interfaces with composable primitives.\n\n## References\n\n- [.\u002Freferences\u002Farchitecture.md](.\u002Freferences\u002Farchitecture.md) -- Core architecture and layered system\n- [.\u002Freferences\u002Fpackages.md](.\u002Freferences\u002Fpackages.md) -- Package overview and selection guide\n\n## When to Use\n\n| Use Case | Best For |\n|----------|----------|\n| Chat UI from scratch | Full control over UX |\n| Existing AI backend | Connects to any streaming backend |\n| Custom message types | Tools, images, files, custom parts |\n| Multi-thread apps | Built-in thread list management |\n| Production apps | Cloud persistence, auth, analytics |\n\n## Architecture\n\n```\n┌─────────────────────────────────────────────────────────┐\n│                  UI Components (Primitives)             │\n│    ThreadPrimitive, MessagePrimitive, ComposerPrimitive │\n└─────────────────────────┬───────────────────────────────┘\n                          │\n┌─────────────────────────▼───────────────────────────────┐\n│                   Context Hooks                         │\n│   useAui, useAuiState, useAuiEvent │\n└─────────────────────────┬───────────────────────────────┘\n                          │\n┌─────────────────────────▼───────────────────────────────┐\n│                    Runtime Layer                        │\n│  AssistantRuntime → ThreadRuntime → MessageRuntime      │\n└─────────────────────────┬───────────────────────────────┘\n                          │\n┌─────────────────────────▼───────────────────────────────┐\n│                   Adapters\u002FBackend                      │\n│   AI SDK · LangGraph · Custom · Cloud Persistence       │\n└─────────────────────────────────────────────────────────┘\n```\n\n## Pick a Runtime\n\n```\nUsing AI SDK?\n├─ Yes → useChatRuntime (recommended)\n└─ No\n   ├─ External state (Redux\u002FZustand)? → useExternalStoreRuntime\n   ├─ LangGraph agent? → useLangGraphRuntime\n   ├─ AG-UI protocol? → useAgUiRuntime\n   ├─ A2A protocol? → useA2ARuntime\n   └─ Custom API → useLocalRuntime\n```\n\n## Core Packages\n\n| Package | Purpose |\n|---------|---------|\n| `@assistant-ui\u002Freact` | UI primitives & hooks |\n| `@assistant-ui\u002Freact-ai-sdk` | Vercel AI SDK v6 adapter |\n| `@assistant-ui\u002Freact-langgraph` | LangGraph adapter |\n| `@assistant-ui\u002Freact-markdown` | Markdown rendering |\n| `assistant-stream` | Streaming protocol |\n| `assistant-cloud` | Cloud persistence |\n\n## Quick Start\n\n```tsx\nimport { AssistantRuntimeProvider } from \"@assistant-ui\u002Freact\";\nimport { Thread } from \"@\u002Fcomponents\u002Fassistant-ui\u002Fthread\";\nimport { useChatRuntime, AssistantChatTransport } from \"@assistant-ui\u002Freact-ai-sdk\";\n\nfunction App() {\n  const runtime = useChatRuntime({\n    transport: new AssistantChatTransport({ api: \"\u002Fapi\u002Fchat\" }),\n  });\n  return (\n    \u003CAssistantRuntimeProvider runtime={runtime}>\n      \u003CThread \u002F>\n    \u003C\u002FAssistantRuntimeProvider>\n  );\n}\n```\n\n## State Access\n\n```tsx\nimport { useAui, useAuiState } from \"@assistant-ui\u002Freact\";\n\nconst api = useAui();\napi.thread().append({ role: \"user\", content: [{ type: \"text\", text: \"Hi\" }] });\napi.thread().cancelRun();\n\nconst messages = useAuiState(s => s.thread.messages);\nconst isRunning = useAuiState(s => s.thread.isRunning);\n```\n\n## Related Skills\n\n- `\u002Fsetup` - Installation and configuration\n- `\u002Fprimitives` - UI component customization\n- `\u002Fruntime` - State management deep dive\n- `\u002Ftools` - Tool registration and UI\n- `\u002Fstreaming` - Streaming protocols\n- `\u002Fcloud` - Persistence and auth\n- `\u002Fthread-list` - Multi-thread management\n- `\u002Fupdate` - Version updates and migrations\n",{"name":5,"license":15,"version":45,"description":7},"0.0.1","main","a427be50111dfd18e0cc37aa36359e26745b04dc",".agents\u002Fskills\u002Fassistant-ui\u002Fassistant-ui",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":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add compozy\u002Fcompozy --skill assistant-ui",{"tool":61,"command":62},"bunx","bunx skills add compozy\u002Fcompozy --skill assistant-ui",{"tool":64,"command":65},"pnpm","pnpm dlx skills add compozy\u002Fcompozy --skill assistant-ui","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fassistant-ui\u002Fassistant-ui\u002FSKILL.md",true,[69,75],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Farchitecture.md","REFERENCE","参考文档",3534,"https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fassistant-ui\u002Fassistant-ui\u002Freferences\u002Farchitecture.md",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fpackages.md",4864,"https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fassistant-ui\u002Fassistant-ui\u002Freferences\u002Fpackages.md",[80,113,136,159,170,182],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":84,"licenseFileUrl":85,"sourceHtmlUrl":86,"categories":87,"keywords":93,"publishedAt":40},"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",[88],{"categoryNo":89,"categoryName":90,"taxonomyType":91,"taxonomyTypeDesc":92},"01JBSEEDCAT000000000000007","代码审查","SCENARIO","使用场景",[94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,37,32,111,39,112],"security","security review","review","injection","authentication","code review","issues","Bash","code","xss","audit","systematic","read","reporting","cryptography","owasp","systematic review","task","audit security",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":122,"publishedAt":40},"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",[119],{"categoryNo":120,"categoryName":121,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000039","教师与教育",[123,124,125,37,126,127,128,129,130,131,132,133,32,134,135],"learned","lesson learned","lesson","changes","evidence","incidents","workflow","engineering","updates","extract","rule","lessons","reflection",{"skillNo":137,"name":9,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":40},"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,142,143,144,145,37,146,147,32,148,149,150,151,152,153,154,155,156,157,158,39],"sessions","windows","projects","operate","runtime","true","automation","tasks","extensions","with","loops","unrelated","goals","native","terminal","configuration","Tools",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":40},"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",[],[166,167,168,169],"remotion upgrade","upgrade","Remotion","packages",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":40},"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",[],[177,178,168,179,180,181],"studio","remotion studio","Video","preview","remotion video",{"skillNo":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"publishedAt":40},"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",[],[189,190,168,151,191,192],"saas","remotion saas","app","build"]