AI UI Patterns
Teaches design patterns for building AI-powered React interfaces. Use when creating chatbots, intelligent assistants, streaming UIs, or any AI-driven user experience in React.
Install
npx skills add PatternsDev/skills --skill ai-ui-patternsgit clone --depth 1 https://github.com/PatternsDev/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/react/ai-ui-patterns ~/.claude/skills/ai-ui-patternsPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# AI UI Patterns ## Table of Contents - [When to Use](#when-to-use) - [Instructions](#instructions) - [Details](#details) - [Source](#source) Building AI-powered interfaces – from chatbots to intelligent assistants – requires careful integration of backend AI services with reactive UI components. In this chapter, we explore design patterns in React for such interfaces, focusing on **two implementations**: a plain React app (using Vite) and a Next.js app. We'll use **OpenAI's API** (via the Vercel AI SDK) as our AI engine, and TailwindCSS for styling. Key topics include prompt management, streaming responses, input debouncing, error handling, and how these patterns differ between Vite and Next.js. We also highlight reusable component patterns and **Vercel's AI UI components (AI Elements)** for building polished chat UIs. ## When to Use - Use this when building conversational AI interfaces that stream responses from LLMs - This is helpful for integrating OpenAI, Anthropic, or other AI providers into React applications - Use this when you need patterns for prompt management, streaming, error handling, and AI-specific UI ## Instructions - Use the Vercel AI SDK's `useChat` hook for managing conversation state and streaming responses - Keep API keys on the server — use Next.js API routes or a separate backend for AI calls - Enable streaming (`stream: true`) for responsive real-time output in chat interfaces
Details
- Skill name
ai-ui-patterns- Repository
- PatternsDev/skills
- Path
react/ai-ui-patterns/SKILL.md- Repo updated
- 15 April 2026
FAQ
What does the AI UI Patterns skill do?
Teaches design patterns for building AI-powered React interfaces. Use when creating chatbots, intelligent assistants, streaming UIs, or any AI-driven user experience in React.
How do I install the AI UI Patterns skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add PatternsDev/skills --skill ai-ui-patterns. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is AI UI Patterns popular?
It lives in PatternsDev/skills, which has 259 GitHub stars and 28 forks.
Related skills
Async Components
259PatternsDev/skills
Teaches async component loading in Vue for performance optimization. Use when you have heavy components that aren't needed on initial render and can be loaded on demand.
Bundle Splitting
259PatternsDev/skills
Teaches bundle splitting techniques for web performance. Use when your application has a large JavaScript bundle that affects load times or when you need to reduce FCP/LCP.
Client Side Rendering
259PatternsDev/skills
Teaches client-side rendering (CSR) for React applications. Use when building highly interactive apps where SEO is not a priority and the UI is driven by user actions.
Space Logo Generator
189SpaceZephyr/design-buddy
批量生成品牌Logo。支持两种入口:(1)用户描述品牌/用途后批量生成10个Logo变体 (2)用户上传参考图片后分析并生成Logo。提供7种主流风格选择。调用Gemini API生成,保存到Obsidian图片目录。触发词:"生成Logo"、"设计Logo"、"做个Logo"、"批量Logo"、"帮我设计一个标志"。
Space Canvas Art
189SpaceZephyr/design-buddy
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
Components
259PatternsDev/skills
Teaches Vue component fundamentals including markup, logic, and styles. Use when building or structuring Vue single-file components as the foundational building blocks of your application.
Browse the most popular Claude skills, all frontend & design skills, or write your own with the skills generator.