[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JWXBK06K5C17CDJ07NX20Y":3,"skill-same:01M6JWXBK06K5C17CDJ07NX20Y":93},{"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":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":53,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M6JWXBK06K5C17CDJ07NX20Y","assistant-ui-runtime",null,"Guide for assistant-ui runtime system and state management. Use when working with runtimes, accessing state, or managing thread\u002Fmessage data.","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-runtime\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,40,41],"assistant ui","ui","assistant ui runtime","assistant","runtime","message","when","thread","for","with","runtimes","use","guide","management","system","data","state","state management","2026-11-10 10:12:30",false,"---\nname: assistant-ui-runtime\ndescription: Guide for assistant-ui runtime system and state management. Use when working with runtimes, accessing state, or managing thread\u002Fmessage data.\nversion: 0.0.1\nlicense: MIT\n---\n\n# assistant-ui Runtime\n\n**Always consult [assistant-ui.com\u002Fllms.txt](https:\u002F\u002Fassistant-ui.com\u002Fllms.txt) for latest API.**\n\n## References\n\n- [.\u002Freferences\u002Flocal-runtime.md](.\u002Freferences\u002Flocal-runtime.md) -- useLocalRuntime deep dive\n- [.\u002Freferences\u002Fexternal-store.md](.\u002Freferences\u002Fexternal-store.md) -- useExternalStoreRuntime deep dive\n- [.\u002Freferences\u002Fthread-list.md](.\u002Freferences\u002Fthread-list.md) -- Thread list management\n- [.\u002Freferences\u002Fstate-hooks.md](.\u002Freferences\u002Fstate-hooks.md) -- State access hooks\n- [.\u002Freferences\u002Ftypes.md](.\u002Freferences\u002Ftypes.md) -- Type definitions\n\n## Runtime Hierarchy\n\n```\nAssistantRuntime\n├── ThreadListRuntime (thread management)\n│   ├── ThreadListItemRuntime (per-thread item)\n│   └── ...\n└── ThreadRuntime (current thread)\n    ├── ComposerRuntime (input state)\n    └── MessageRuntime[] (per-message)\n        └── MessagePartRuntime[] (per-content-part)\n```\n\n## State Access (Modern API)\n\n```tsx\nimport { useAui, useAuiState, useAuiEvent } from \"@assistant-ui\u002Freact\";\n\nfunction ChatControls() {\n  const api = useAui();\n  const messages = useAuiState(s => s.thread.messages);\n  const isRunning = useAuiState(s => s.thread.isRunning);\n\n  useAuiEvent(\"composer.send\", (e) => {\n    console.log(\"Sent in thread:\", e.threadId);\n  });\n\n  return (\n    \u003Cdiv>\n      \u003Cbutton onClick={() => api.thread().append({\n        role: \"user\",\n        content: [{ type: \"text\", text: \"Hello!\" }],\n      })}>\n        Send\n      \u003C\u002Fbutton>\n      {isRunning && (\n        \u003Cbutton onClick={() => api.thread().cancelRun()}>Cancel\u003C\u002Fbutton>\n      )}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Thread Operations\n\n```tsx\nconst api = useAui();\nconst thread = api.thread();\n\n\u002F\u002F Append message\nthread.append({ role: \"user\", content: [{ type: \"text\", text: \"Hello\" }] });\n\n\u002F\u002F Cancel generation\nthread.cancelRun();\n\n\u002F\u002F Get current state\nconst state = thread.getState();  \u002F\u002F { messages, isRunning, ... }\n```\n\n## Message Operations\n\n```tsx\nconst message = api.thread().message(0);  \u002F\u002F By index\n\nmessage.edit({ role: \"user\", content: [{ type: \"text\", text: \"Updated\" }] });\nmessage.reload();\n```\n\n## Events\n\n```tsx\nuseAuiEvent(\"thread.runStart\", () => {});\nuseAuiEvent(\"thread.runEnd\", () => {});\nuseAuiEvent(\"composer.send\", ({ threadId }) => {\n  console.log(\"Sent in thread:\", threadId);\n});\nuseAuiEvent(\"thread.modelContextUpdate\", () => {});\n```\n\n## Capabilities\n\n```tsx\nconst caps = useAuiState(s => s.thread.capabilities);\n\u002F\u002F { cancel, edit, reload, copy, speak, attachments }\n```\n\n## Quick Reference\n\n```tsx\n\u002F\u002F Get messages\nconst messages = useAuiState(s => s.thread.messages);\n\n\u002F\u002F Check running state\nconst isRunning = useAuiState(s => s.thread.isRunning);\n\n\u002F\u002F Append message\napi.thread().append({ role: \"user\", content: [{ type: \"text\", text: \"Hi\" }] });\n\n\u002F\u002F Cancel generation\napi.thread().cancelRun();\n\n\u002F\u002F Edit message\napi.thread().message(index).edit({ ... });\n\n\u002F\u002F Reload message\napi.thread().message(index).reload();\n```\n\n## Common Gotchas\n\n**\"Cannot read property of undefined\"**\n- Ensure hooks are called inside `AssistantRuntimeProvider`\n\n**State not updating**\n- Use selectors with `useAuiState` to prevent unnecessary re-renders\n\n**Messages array empty**\n- Check runtime is configured\n- Verify API response format\n","# assistant-ui Runtime\n\n**Always consult [assistant-ui.com\u002Fllms.txt](https:\u002F\u002Fassistant-ui.com\u002Fllms.txt) for latest API.**\n\n## References\n\n- [.\u002Freferences\u002Flocal-runtime.md](.\u002Freferences\u002Flocal-runtime.md) -- useLocalRuntime deep dive\n- [.\u002Freferences\u002Fexternal-store.md](.\u002Freferences\u002Fexternal-store.md) -- useExternalStoreRuntime deep dive\n- [.\u002Freferences\u002Fthread-list.md](.\u002Freferences\u002Fthread-list.md) -- Thread list management\n- [.\u002Freferences\u002Fstate-hooks.md](.\u002Freferences\u002Fstate-hooks.md) -- State access hooks\n- [.\u002Freferences\u002Ftypes.md](.\u002Freferences\u002Ftypes.md) -- Type definitions\n\n## Runtime Hierarchy\n\n```\nAssistantRuntime\n├── ThreadListRuntime (thread management)\n│   ├── ThreadListItemRuntime (per-thread item)\n│   └── ...\n└── ThreadRuntime (current thread)\n    ├── ComposerRuntime (input state)\n    └── MessageRuntime[] (per-message)\n        └── MessagePartRuntime[] (per-content-part)\n```\n\n## State Access (Modern API)\n\n```tsx\nimport { useAui, useAuiState, useAuiEvent } from \"@assistant-ui\u002Freact\";\n\nfunction ChatControls() {\n  const api = useAui();\n  const messages = useAuiState(s => s.thread.messages);\n  const isRunning = useAuiState(s => s.thread.isRunning);\n\n  useAuiEvent(\"composer.send\", (e) => {\n    console.log(\"Sent in thread:\", e.threadId);\n  });\n\n  return (\n    \u003Cdiv>\n      \u003Cbutton onClick={() => api.thread().append({\n        role: \"user\",\n        content: [{ type: \"text\", text: \"Hello!\" }],\n      })}>\n        Send\n      \u003C\u002Fbutton>\n      {isRunning && (\n        \u003Cbutton onClick={() => api.thread().cancelRun()}>Cancel\u003C\u002Fbutton>\n      )}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Thread Operations\n\n```tsx\nconst api = useAui();\nconst thread = api.thread();\n\n\u002F\u002F Append message\nthread.append({ role: \"user\", content: [{ type: \"text\", text: \"Hello\" }] });\n\n\u002F\u002F Cancel generation\nthread.cancelRun();\n\n\u002F\u002F Get current state\nconst state = thread.getState();  \u002F\u002F { messages, isRunning, ... }\n```\n\n## Message Operations\n\n```tsx\nconst message = api.thread().message(0);  \u002F\u002F By index\n\nmessage.edit({ role: \"user\", content: [{ type: \"text\", text: \"Updated\" }] });\nmessage.reload();\n```\n\n## Events\n\n```tsx\nuseAuiEvent(\"thread.runStart\", () => {});\nuseAuiEvent(\"thread.runEnd\", () => {});\nuseAuiEvent(\"composer.send\", ({ threadId }) => {\n  console.log(\"Sent in thread:\", threadId);\n});\nuseAuiEvent(\"thread.modelContextUpdate\", () => {});\n```\n\n## Capabilities\n\n```tsx\nconst caps = useAuiState(s => s.thread.capabilities);\n\u002F\u002F { cancel, edit, reload, copy, speak, attachments }\n```\n\n## Quick Reference\n\n```tsx\n\u002F\u002F Get messages\nconst messages = useAuiState(s => s.thread.messages);\n\n\u002F\u002F Check running state\nconst isRunning = useAuiState(s => s.thread.isRunning);\n\n\u002F\u002F Append message\napi.thread().append({ role: \"user\", content: [{ type: \"text\", text: \"Hi\" }] });\n\n\u002F\u002F Cancel generation\napi.thread().cancelRun();\n\n\u002F\u002F Edit message\napi.thread().message(index).edit({ ... });\n\n\u002F\u002F Reload message\napi.thread().message(index).reload();\n```\n\n## Common Gotchas\n\n**\"Cannot read property of undefined\"**\n- Ensure hooks are called inside `AssistantRuntimeProvider`\n\n**State not updating**\n- Use selectors with `useAuiState` to prevent unnecessary re-renders\n\n**Messages array empty**\n- Check runtime is configured\n- Verify API response format\n",{"name":5,"license":15,"version":47,"description":7},"0.0.1","main","a427be50111dfd18e0cc37aa36359e26745b04dc",".agents\u002Fskills\u002Fassistant-ui\u002Fassistant-ui-runtime",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":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add compozy\u002Fcompozy --skill assistant-ui-runtime",{"tool":63,"command":64},"bunx","bunx skills add compozy\u002Fcompozy --skill assistant-ui-runtime",{"tool":66,"command":67},"pnpm","pnpm dlx skills add compozy\u002Fcompozy --skill assistant-ui-runtime","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fassistant-ui\u002Fassistant-ui-runtime\u002FSKILL.md",true,[71,77,81,85,89],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fexternal-store.md","REFERENCE","参考文档",7515,"https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fassistant-ui\u002Fassistant-ui-runtime\u002Freferences\u002Fexternal-store.md",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Flocal-runtime.md",6524,"https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fassistant-ui\u002Fassistant-ui-runtime\u002Freferences\u002Flocal-runtime.md",{"path":82,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fstate-hooks.md",6214,"https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fassistant-ui\u002Fassistant-ui-runtime\u002Freferences\u002Fstate-hooks.md",{"path":86,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fthread-list.md",7325,"https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fassistant-ui\u002Fassistant-ui-runtime\u002Freferences\u002Fthread-list.md",{"path":90,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Ftypes.md",3810,"https:\u002F\u002Fgithub.com\u002Fcompozy\u002Fcompozy\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fassistant-ui\u002Fassistant-ui-runtime\u002Freferences\u002Ftypes.md",[94,127,150,171,182,194],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":98,"licenseFileUrl":99,"sourceHtmlUrl":100,"categories":101,"keywords":107,"publishedAt":42},"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",[102],{"categoryNo":103,"categoryName":104,"taxonomyType":105,"taxonomyTypeDesc":106},"01JBSEEDCAT000000000000007","代码审查","SCENARIO","使用场景",[108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,32,35,125,30,126],"security","security review","review","injection","authentication","code review","issues","Bash","code","xss","audit","systematic","read","reporting","cryptography","owasp","systematic review","task","audit security",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":136,"publishedAt":42},"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",[133],{"categoryNo":134,"categoryName":135,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000039","教师与教育",[137,138,139,32,140,141,142,143,144,145,146,147,35,148,149],"learned","lesson learned","lesson","changes","evidence","incidents","workflow","engineering","updates","extract","rule","lessons","reflection",{"skillNo":151,"name":9,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":42},"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,156,157,158,159,32,28,160,35,161,162,163,33,164,165,166,167,168,169,170,30],"sessions","windows","projects","operate","true","automation","tasks","extensions","loops","unrelated","goals","native","terminal","configuration","Tools",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":42},"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",[],[178,179,180,181],"remotion upgrade","upgrade","Remotion","packages",{"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":42},"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",[],[189,190,180,191,192,193],"studio","remotion studio","Video","preview","remotion video",{"skillNo":195,"name":196,"nameZh":6,"description":197,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":198,"categories":199,"keywords":200,"publishedAt":42},"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",[],[201,202,180,33,203,204],"saas","remotion saas","app","build"]