chat-ui — Claude Code skill: what it does, how to install
chat-ui gives your agent ready-made chat building blocks for React and Next.js: container, messages, input field, typing indicator. Useful when the app needs a conversation screen.
no license 242 installs ★ 31 updated 2026-08-31
npx skills add 101-skills/superpowers --skill chat-ui -a claude-codeWhat chat-ui does
The skill puts a set of chat components from ui.inference.sh in front of the agent. Container, message list, input, typing indicator, avatars. Instead of drawing markup from nothing, the agent picks the block that fits and adjusts it.
The blocks come into the project with npx shadcn@latest add https://ui.inference.sh/r/chat.json. Imports live under @/registry/blocks/chat, with ChatContainer, ChatMessage, ChatInput and TypingIndicator as separate files. A message has one of three roles: user sits right, assistant left, system centered. The worked example wires a message list, a waiting indicator and sending through onSubmit.
Styling leans on Tailwind CSS and shadcn/ui design tokens. In a project without that setup the components arrive bare, so you finish the look yourself. Check the Tailwind config before asking the agent for a chat screen.
What it helps with
- build a chat window for an AI assistant in React
- render a message list with
userandassistantroles - wire an input that locks while the reply loads
- show a typing indicator during the wait
- pull the chat blocks in through the shadcn registry
Example prompts for the agent
- Build a chat screen with
ChatContainerandChatMessageforuserandassistantturns - Hook
ChatInputtoonSubmitand disable it while the response is loading - Put
TypingIndicatorunder the message list until the answer arrives
How to install chat-ui
1Skills CLI (Vercel)
npx skills add 101-skills/superpowers --skill chat-ui -a claude-code2Manually: put the files in place
~/.claude/skills/chat-ui/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/chat-ui/
1Skills CLI (Vercel)
npx skills add 101-skills/superpowers --skill chat-ui -a codex2Manually: put the files in place
.agents/skills/chat-ui/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add 101-skills/superpowers --skill chat-ui -a cursor2Manually: put the files in place
.cursor/skills/chat-ui/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install 101-skills/superpowers ui/chat-ui/SKILL.md2Manually: put the files in place
.github/skills/chat-ui/SKILL.md1Skills CLI (Vercel)
npx skills add 101-skills/superpowers --skill chat-ui -a gemini-cli2Platform CLI
gemini skills install https://github.com/101-skills/superpowers --path ui/chat-uiManually: put the files in place
.devin/skills/chat-ui/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add 101-skills/superpowers --skill chat-ui -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about chat-ui
How do I install chat-ui in Claude Code?
Run npx skills add 101-skills/superpowers --skill chat-ui -a claude-code. The skill file lands at ~/.claude/skills/chat-ui/SKILL.md.
What does chat-ui do?
It hands the agent chat UI blocks for React and Next.js: container, messages, input, typing indicator, avatars. The components themselves install through the shadcn CLI.
Does chat-ui require shadcn/ui in my project?
The components are styled with Tailwind CSS and shadcn/ui tokens. Add the blocks with npx shadcn@latest add https://ui.inference.sh/r/chat.json.