# chat-ui

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 242 installs · ★ 31 repo stars
- Author: 101-skills
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/101-skills/superpowers/tree/HEAD/ui/chat-ui/SKILL.md
- Updated: 2026-08-31
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/chat-ui

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill chat-ui -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/chat-ui/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/chat-ui/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill chat-ui -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/chat-ui/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill chat-ui -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/chat-ui/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install 101-skills/superpowers ui/chat-ui/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/chat-ui/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill chat-ui -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/101-skills/superpowers --path ui/chat-ui
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/chat-ui/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add 101-skills/superpowers --skill chat-ui -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/101-skills/superpowers/tree/HEAD/ui/chat-ui/SKILL.md

## When to use it
- build a chat window for an AI assistant in React
- render a message list with `user` and `assistant` roles
- 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
- Build a chat screen with `ChatContainer` and `ChatMessage` for `user` and `assistant` turns
- Hook `ChatInput` to `onSubmit` and disable it while the response is loading
- Put `TypingIndicator` under the message list until the answer arrives

## Similar
- [ai-elements](https://affpapa.org/en/nevibecode/skills/vercel-ai-elements.md) — skill · 21000 installs
- [avoid-ai-design](https://affpapa.org/en/nevibecode/skills/avoid-ai-design.md) — skill · 998 installs
- [agent-elements](https://affpapa.org/en/nevibecode/skills/agent-elements.md) — skill · 738 installs
- [oma-frontend](https://affpapa.org/en/nevibecode/skills/first-fluke-oma-frontend.md) — skill · ★ 1472 repo stars
- [aceternity-ui](https://affpapa.org/en/nevibecode/skills/aceternity-ui.md) — skill · 1600 installs
- [magic-ui](https://affpapa.org/en/nevibecode/skills/magic-ui.md) — skill · 1500 installs

From the same set: [101-skills/superpowers](https://affpapa.org/en/nevibecode/by/101-skills/superpowers.md) — 81 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
