[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FDGWDP0MNBAVRN7SFTFMKZ":3,"skill-same:01M6FDGWDP0MNBAVRN7SFTFMKZ":47},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M6FDGWDP0MNBAVRN7SFTFMKZ","ai-elements",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",66,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fmxyhi\u002Fok-skills\u002Fai-elements\u002FSKILL.md",[],[18,19],"ai elements","elements","2026-11-10 10:12:30",false,"# AI Elements\n\n[AI Elements](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fai-elements) is a component library and custom registry built on top of [shadcn\u002Fui](https:\u002F\u002Fui.shadcn.com\u002F) to help you build AI-native applications faster. It provides pre-built components like conversations, messages and more.\n\nInstalling AI Elements is straightforward and can be done in a couple of ways. You can use the dedicated CLI command for the fastest setup, or integrate via the standard shadcn\u002Fui CLI if you've already adopted shadcn's workflow.\n\n> **IMPORTANT:** Run all CLI commands using the project's package runner: `npx ai-elements@latest`, `pnpm dlx ai-elements@latest`, or `bunx --bun ai-elements@latest` — based on the project's `packageManager`. Examples below use `npx ai-elements@latest` but substitute the correct runner for the project.\n\n## Prerequisites\n\nBefore installing AI Elements, make sure your environment meets the following requirements:\n\n- [Node.js](https:\u002F\u002Fnodejs.org\u002Fen\u002Fdownload\u002F), version 18 or later\n- A [Next.js](https:\u002F\u002Fnextjs.org\u002F) project with the [AI SDK](https:\u002F\u002Fai-sdk.dev\u002F) installed.\n- [shadcn\u002Fui](https:\u002F\u002Fui.shadcn.com\u002F) installed in your project. If you don't have it installed, running any install command will automatically install it for you.\n- We also highly recommend using the [AI Gateway](https:\u002F\u002Fvercel.com\u002Fdocs\u002Fai-gateway) and adding `AI_GATEWAY_API_KEY` to your `env.local` so you don't have to use an API key from every provider. AI Gateway also gives $5 in usage per month so you can experiment with models. You can obtain an API key [here](https:\u002F\u002Fvercel.com\u002Fd?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys&title=Get%20your%20AI%20Gateway%20key).\n\n## Installing Components\n\nYou can install AI Elements components using either the AI Elements CLI or the shadcn\u002Fui CLI. Both achieve the same result: adding the selected component’s code and any needed dependencies to your project.\n\nThe CLI will download the component’s code and integrate it into your project’s directory (usually under your components folder). By default, AI Elements components are added to the `@\u002Fcomponents\u002Fai-elements\u002F` directory (or whatever folder you’ve configured in your shadcn components settings).\n\nAfter running the command, you should see a confirmation in your terminal that the files were added. You can then proceed to use the component in your code.\n\n## Usage\n\nOnce an AI Elements component is installed, you can import it and use it in your application like any other React component. The components are added as part of your codebase (not hidden in a library), so the usage feels very natural.\n\n## Example\n\nAfter installing AI Elements components, you can use them in your application like any other React component. For example:\n\n```tsx title=\"conversation.tsx\"\n\"use client\";\n\nimport {\n  Message,\n  MessageContent,\n  MessageResponse,\n} from \"@\u002Fcomponents\u002Fai-elements\u002Fmessage\";\nimport { useChat } from \"@ai-sdk\u002Freact\";\n\nconst Example = () => {\n  const { messages } = useChat();\n\n  return (\n    \u003C>\n      {messages.map(({ role, parts }, index) => (\n        \u003CMessage from={role} key={index}>\n          \u003CMessageContent>\n            {parts.map((part, i) => {\n              switch (part.type) {\n                case \"text\":\n                  return (\n                    \u003CMessageResponse key={`${role}-${i}`}>\n                      {part.text}\n                    \u003C\u002FMessageResponse>\n                  );\n              }\n            })}\n          \u003C\u002FMessageContent>\n        \u003C\u002FMessage>\n      ))}\n    \u003C\u002F>\n  );\n};\n\nexport default Example;\n```\n\nIn the example above, we import the `Message` component from our AI Elements directory and include it in our JSX. Then, we compose the component with the `MessageContent` and `MessageResponse` subcomponents. You can style or configure the component just as you would if you wrote it yourself – since the code lives in your project, you can even open the component file to see how it works or make custom modifications.\n\n## Extensibility\n\nAll AI Elements components take as many primitive attributes as possible. For example, the `Message` component extends `HTMLAttributes\u003CHTMLDivElement>`, so you can pass any props that a `div` supports. This makes it easy to extend the component with your own styles or functionality.\n\n## Customization\n\nAfter installation, no additional setup is needed. The component’s styles (Tailwind CSS classes) and scripts are already integrated. You can start interacting with the component in your app immediately.\n\nFor example, if you'd like to remove the rounding on `Message`, you can go to `components\u002Fai-elements\u002Fmessage.tsx` and remove `rounded-lg` as follows:\n\n```tsx title=\"components\u002Fai-elements\u002Fmessage.tsx\" highlight=\"8\"\nexport const MessageContent = ({\n  children,\n  className,\n  ...props\n}: MessageContentProps) => (\n  \u003Cdiv\n    className={cn(\n      \"flex flex-col gap-2 text-sm text-foreground\",\n      \"group-[.is-user]:bg-primary group-[.is-user]:text-primary-foreground group-[.is-user]:px-4 group-[.is-user]:py-3\",\n      className\n    )}\n    {...props}\n  >\n    \u003Cdiv className=\"is-user:dark\">{children}\u003C\u002Fdiv>\n  \u003C\u002Fdiv>\n);\n```\n\n## Troubleshooting\n\n### Why are my components not styled?\n\nMake sure your project is configured correctly for shadcn\u002Fui in Tailwind 4 - this means having a `globals.css` file that imports Tailwind and includes the shadcn\u002Fui base styles.\n\n### I ran the AI Elements CLI but nothing was added to my project\n\nDouble-check that:\n\n- Your current working directory is the root of your project (where `package.json` lives).\n- Your components.json file (if using shadcn-style config) is set up correctly.\n- You’re using the latest version of the AI Elements CLI:\n\n```bash title=\"Terminal\"\nnpx ai-elements@latest\n```\n\nIf all else fails, feel free to open an [issue on GitHub](https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai-elements\u002Fissues).\n\n### Theme switching doesn’t work — my app stays in light mode\n\nEnsure your app is using the same data-theme system that shadcn\u002Fui and AI Elements expect. The default implementation toggles a data-theme attribute on the `\u003Chtml>` element. Make sure your tailwind.config.js is using class or data- selectors accordingly.\n\n### The component imports fail with “module not found”\n\nCheck the file exists. If it does, make sure your `tsconfig.json` has a proper paths alias for `@\u002F` i.e.\n\n```json title=\"tsconfig.json\"\n{\n  \"compilerOptions\": {\n    \"baseUrl\": \".\",\n    \"paths\": {\n      \"@\u002F*\": [\".\u002F*\"]\n    }\n  }\n}\n```\n\n### My AI coding assistant can't access AI Elements components\n\n1. Verify your config file syntax is valid JSON.\n2. Check that the file path is correct for your AI tool.\n3. Restart your coding assistant after making changes.\n4. Ensure you have a stable internet connection.\n\n### Still stuck?\n\nIf none of these answers help, open an [issue on GitHub](https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai-elements\u002Fissues) and someone will be happy to assist.\n\n## Available Components\n\nSee the `references\u002F` folder for detailed documentation on each component.\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fmxyhi\u002Fok-skills\u002Fai-elements",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill ai-elements",{"tool":39,"command":40},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill ai-elements",{"tool":42,"command":43},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill ai-elements","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fmxyhi\u002Fok-skills\u002Fai-elements\u002FSKILL.md",true,[],[48,62,72,81,87,94],{"skillNo":49,"name":50,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":58,"publishedAt":20},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[53],{"categoryNo":54,"categoryName":55,"taxonomyType":56,"taxonomyTypeDesc":57},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[59,60,61],"model","model hierarchy","model hierarchy skill",{"skillNo":63,"name":64,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":68,"publishedAt":20},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[67],{"categoryNo":54,"categoryName":55,"taxonomyType":56,"taxonomyTypeDesc":57},[69,70,71],"MCP","zoom","zoom mcp",{"skillNo":73,"name":74,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":20},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[78,79,80,70],"sdk","zoom apps sdk","apps",{"skillNo":82,"name":83,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":20},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[83],{"skillNo":88,"name":89,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":93,"publishedAt":20},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[92],{"categoryNo":54,"categoryName":55,"taxonomyType":56,"taxonomyTypeDesc":57},[89],{"skillNo":95,"name":96,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":20},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[96]]