[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BSA038XMM1DQXCDK6EMBS4":3,"skill-same:01M7BSA038XMM1DQXCDK6EMBS4":72},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7BSA038XMM1DQXCDK6EMBS4","cloud",null,"Sets up assistant-ui Cloud persistence and authorization with the assistant-cloud package and AssistantCloud client. Use when adding cross-session thread\u002Fmessage persistence, multi-device chat history, file uploads, or auth to an assistant-ui app: passing the cloud option to useChatRuntime (with AssistantChatTransport from @assistant-ui\u002Freact-ai-sdk), configuring AssistantCloud with authToken (JWT), apiKey plus userId\u002FworkspaceId (server-side), or anonymous mode, and wiring auth providers like NextAuth, Clerk, or Firebase. Covers cloud.threads.list\u002Fget\u002Fcreate\u002Fupdate\u002Fdelete, cloud.threads.messages(threadId), cloud.files.generatePresignedUploadUrl, the aui\u002Fv0 message format, custom adapters (CloudMessagePersistence, createFormattedPersistence, ThreadHistoryAdapter, RemoteThreadListAdapter), auto title generation, external_id\u002Fmetadata mapping, and env vars NEXT_PUBLIC_ASSISTANT_BASE_URL and ASSISTANT_API_KEY. For the thread-list sidebar UI itself use thread-list.","om-scogo\u002Fskillsh-scraper","om-scogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160466840?v=4","01M79AWB6DFVCQ7RK70CS34B96","Om Achrekar","01M79AWB6ZM9SKR8KDH1WSSM22",0,"MIT","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fassistant-ui-skills\u002Fcloud\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cloud\ndescription: \"Sets up assistant-ui Cloud persistence and authorization with the assistant-cloud package and AssistantCloud client. Use when adding cross-session thread\u002Fmessage persistence, multi-device chat history, file uploads, or auth to an assistant-ui app: passing the cloud option to useChatRuntime (with AssistantChatTransport from @assistant-ui\u002Freact-ai-sdk), configuring AssistantCloud with authToken (JWT), apiKey plus userId\u002FworkspaceId (server-side), or anonymous mode, and wiring auth providers like NextAuth, Clerk, or Firebase. Covers cloud.threads.list\u002Fget\u002Fcreate\u002Fupdate\u002Fdelete, cloud.threads.messages(threadId), cloud.files.generatePresignedUploadUrl, the aui\u002Fv0 message format, custom adapters (CloudMessagePersistence, createFormattedPersistence, ThreadHistoryAdapter, RemoteThreadListAdapter), auto title generation, external_id\u002Fmetadata mapping, and env vars NEXT_PUBLIC_ASSISTANT_BASE_URL and ASSISTANT_API_KEY. For the thread-list sidebar UI itself use thread-list.\"\nlicense: MIT\n---\n\n# assistant-ui Cloud\n\n**Always consult [assistant-ui.com\u002Fllms.txt](https:\u002F\u002Fwww.assistant-ui.com\u002Fllms.txt) for the latest API.**\n\nCloud persistence for threads, messages, and files.\n\n## References\n\n- [.\u002Freferences\u002Fpersistence.md](.\u002Freferences\u002Fpersistence.md) -- Thread and message persistence\n- [.\u002Freferences\u002Fauthorization.md](.\u002Freferences\u002Fauthorization.md) -- Authentication patterns\n- [.\u002Freferences\u002Fcustom-persistence.md](.\u002Freferences\u002Fcustom-persistence.md) -- Self-hosted message persistence\n- [.\u002Freferences\u002Fauth-integrations.md](.\u002Freferences\u002Fauth-integrations.md) -- better-auth and Clerk integrations\n\n## Installation\n\n```bash\nnpm install assistant-cloud\n```\n\n## Quick Start\n\n```tsx\nimport { AssistantCloud } from \"assistant-cloud\";\nimport { useChatRuntime, AssistantChatTransport } from \"@assistant-ui\u002Freact-ai-sdk\";\nimport { AssistantRuntimeProvider } from \"@assistant-ui\u002Freact\";\nimport { Thread } from \"@\u002Fcomponents\u002Fassistant-ui\u002Fthread\";\nimport { ThreadList } from \"@\u002Fcomponents\u002Fassistant-ui\u002Fthread-list\";\n\nconst cloud = new AssistantCloud({\n  baseUrl: process.env.NEXT_PUBLIC_ASSISTANT_BASE_URL,\n  authToken: async () => getAuthToken(),\n});\n\nfunction Chat() {\n  const runtime = useChatRuntime({\n    transport: new AssistantChatTransport({ api: \"\u002Fapi\u002Fchat\" }),\n    cloud,\n  });\n\n  return (\n    \u003CAssistantRuntimeProvider runtime={runtime}>\n      \u003CThreadList \u002F>\n      \u003CThread \u002F>\n    \u003C\u002FAssistantRuntimeProvider>\n  );\n}\n```\n\n## Authentication Options\n\n```tsx\n\u002F\u002F JWT Token (recommended)\nconst cloud = new AssistantCloud({\n  baseUrl: process.env.NEXT_PUBLIC_ASSISTANT_BASE_URL,\n  authToken: async () => session?.accessToken,\n});\n\n\u002F\u002F API Key (server-side)\nconst cloud = new AssistantCloud({\n  baseUrl: process.env.ASSISTANT_BASE_URL,\n  apiKey: process.env.ASSISTANT_API_KEY,\n  userId: user.id,\n  workspaceId: user.workspaceId,\n});\n\n\u002F\u002F Anonymous (public apps)\nconst cloud = new AssistantCloud({\n  baseUrl: process.env.NEXT_PUBLIC_ASSISTANT_BASE_URL,\n  anonymous: true,\n});\n```\n\n## Cloud API\n\n```tsx\nconst threads = await cloud.threads.list();\nawait cloud.threads.create({ title: \"New Chat\" });\nawait cloud.threads.update(threadId, { title: \"Updated\" });\nawait cloud.threads.delete(threadId);\n\nconst messages = await cloud.threads.messages(threadId).list();\n\nconst { signedUrl, publicUrl } = await cloud.files.generatePresignedUploadUrl({\n  filename: \"document.pdf\",\n});\nawait fetch(signedUrl, { method: \"PUT\", body: file });\n```\n\n## Environment Variables\n\n```env\nNEXT_PUBLIC_ASSISTANT_BASE_URL=https:\u002F\u002Fapi.assistant-ui.com\nASSISTANT_API_KEY=your-api-key  # Server-side only\n```\n\n## Common Gotchas\n\n**Threads not persisting**\n- Pass `cloud` to runtime\n- Check authentication\n\n**Auth errors**\n- Verify `authToken` returns valid token\n- Check `baseUrl` is correct\n","# assistant-ui Cloud\n\n**Always consult [assistant-ui.com\u002Fllms.txt](https:\u002F\u002Fwww.assistant-ui.com\u002Fllms.txt) for the latest API.**\n\nCloud persistence for threads, messages, and files.\n\n## References\n\n- [.\u002Freferences\u002Fpersistence.md](.\u002Freferences\u002Fpersistence.md) -- Thread and message persistence\n- [.\u002Freferences\u002Fauthorization.md](.\u002Freferences\u002Fauthorization.md) -- Authentication patterns\n- [.\u002Freferences\u002Fcustom-persistence.md](.\u002Freferences\u002Fcustom-persistence.md) -- Self-hosted message persistence\n- [.\u002Freferences\u002Fauth-integrations.md](.\u002Freferences\u002Fauth-integrations.md) -- better-auth and Clerk integrations\n\n## Installation\n\n```bash\nnpm install assistant-cloud\n```\n\n## Quick Start\n\n```tsx\nimport { AssistantCloud } from \"assistant-cloud\";\nimport { useChatRuntime, AssistantChatTransport } from \"@assistant-ui\u002Freact-ai-sdk\";\nimport { AssistantRuntimeProvider } from \"@assistant-ui\u002Freact\";\nimport { Thread } from \"@\u002Fcomponents\u002Fassistant-ui\u002Fthread\";\nimport { ThreadList } from \"@\u002Fcomponents\u002Fassistant-ui\u002Fthread-list\";\n\nconst cloud = new AssistantCloud({\n  baseUrl: process.env.NEXT_PUBLIC_ASSISTANT_BASE_URL,\n  authToken: async () => getAuthToken(),\n});\n\nfunction Chat() {\n  const runtime = useChatRuntime({\n    transport: new AssistantChatTransport({ api: \"\u002Fapi\u002Fchat\" }),\n    cloud,\n  });\n\n  return (\n    \u003CAssistantRuntimeProvider runtime={runtime}>\n      \u003CThreadList \u002F>\n      \u003CThread \u002F>\n    \u003C\u002FAssistantRuntimeProvider>\n  );\n}\n```\n\n## Authentication Options\n\n```tsx\n\u002F\u002F JWT Token (recommended)\nconst cloud = new AssistantCloud({\n  baseUrl: process.env.NEXT_PUBLIC_ASSISTANT_BASE_URL,\n  authToken: async () => session?.accessToken,\n});\n\n\u002F\u002F API Key (server-side)\nconst cloud = new AssistantCloud({\n  baseUrl: process.env.ASSISTANT_BASE_URL,\n  apiKey: process.env.ASSISTANT_API_KEY,\n  userId: user.id,\n  workspaceId: user.workspaceId,\n});\n\n\u002F\u002F Anonymous (public apps)\nconst cloud = new AssistantCloud({\n  baseUrl: process.env.NEXT_PUBLIC_ASSISTANT_BASE_URL,\n  anonymous: true,\n});\n```\n\n## Cloud API\n\n```tsx\nconst threads = await cloud.threads.list();\nawait cloud.threads.create({ title: \"New Chat\" });\nawait cloud.threads.update(threadId, { title: \"Updated\" });\nawait cloud.threads.delete(threadId);\n\nconst messages = await cloud.threads.messages(threadId).list();\n\nconst { signedUrl, publicUrl } = await cloud.files.generatePresignedUploadUrl({\n  filename: \"document.pdf\",\n});\nawait fetch(signedUrl, { method: \"PUT\", body: file });\n```\n\n## Environment Variables\n\n```env\nNEXT_PUBLIC_ASSISTANT_BASE_URL=https:\u002F\u002Fapi.assistant-ui.com\nASSISTANT_API_KEY=your-api-key  # Server-side only\n```\n\n## Common Gotchas\n\n**Threads not persisting**\n- Pass `cloud` to runtime\n- Check authentication\n\n**Auth errors**\n- Verify `authToken` returns valid token\n- Check `baseUrl` is correct\n",{"name":5,"license":15,"description":7},"main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fassistant-ui-skills\u002Fcloud",1,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper","https:\u002F\u002Fgithub.com\u002Fom-scogo","SDE-1 @ Scogo ","2026-07-18 12:22:46",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill cloud",{"tool":38,"command":39},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill cloud",{"tool":41,"command":42},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill cloud","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fassistant-ui-skills\u002Fcloud\u002FSKILL.md",true,[46,52,56,60,64,68],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"metadata.json","REFERENCE","参考文档",400,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fassistant-ui-skills\u002Fcloud\u002Fmetadata.json",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fauth-integrations.md",10636,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fassistant-ui-skills\u002Fcloud\u002Freferences\u002Fauth-integrations.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fauthorization.md",5529,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fassistant-ui-skills\u002Fcloud\u002Freferences\u002Fauthorization.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fcustom-persistence.md",13670,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fassistant-ui-skills\u002Fcloud\u002Freferences\u002Fcustom-persistence.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fpersistence.md",5781,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fassistant-ui-skills\u002Fcloud\u002Freferences\u002Fpersistence.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"Skill.md",3784,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fassistant-ui-skills\u002Fcloud\u002FSkill.md",[73,80,85,92,97,104],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7D6MC9FAAEV4CMNYX8W7JTG","arxiv-search","Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":81,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7D4ZTCS4DR3CE4JY06X84T2","working-with-legacy-code","Safely change and test untested codebases using Feathers' \"Working Effectively with Legacy Code\". Use when the user mentions \"legacy code\", \"no tests\", \"untested codebase\", \"how do I test this\", \"seams\", \"characterization tests\", \"golden master\", \"sprout method\", \"afraid to change this code\", \"monster method\", \"dependency breaking\", or \"inherited a messy codebase\". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout\u002Fwrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002Fworking-with-legacy-code\u002FSKILL.md",[],[],{"skillNo":93,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7D4ZB4CJBFW5JE67CPH2QRV","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", \"typographic scale\", or \"the text is hard to read\". Also trigger when choosing between system fonts and web fonts, optimizing font-loading performance, or designing readable long-form content. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":105,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]