← 返回 Skills 市场
okaris

Chat Ui

作者 Ömer Karışman · GitHub ↗ · v0.1.5
cross-platform ⚠ suspicious
1398
总下载
0
收藏
5
当前安装
2
版本数
在 OpenClaw 中安装
/install chat-ui
功能描述
Chat UI building blocks for React/Next.js from ui.inference.sh. Components: container, messages, input, typing indicators, avatars. Capabilities: chat interf...
使用说明 (SKILL.md)

Chat UI Components

Chat building blocks from ui.inference.sh.

Chat UI Components

Quick Start

# Install chat components
npx shadcn@latest add https://ui.inference.sh/r/chat.json

Components

Chat Container

import { ChatContainer } from "@/registry/blocks/chat/chat-container"

\x3CChatContainer>
  {/* messages go here */}
\x3C/ChatContainer>

Messages

import { ChatMessage } from "@/registry/blocks/chat/chat-message"

\x3CChatMessage
  role="user"
  content="Hello, how can you help me?"
/>

\x3CChatMessage
  role="assistant"
  content="I can help you with many things!"
/>

Chat Input

import { ChatInput } from "@/registry/blocks/chat/chat-input"

\x3CChatInput
  onSubmit={(message) => handleSend(message)}
  placeholder="Type a message..."
  disabled={isLoading}
/>

Typing Indicator

import { TypingIndicator } from "@/registry/blocks/chat/typing-indicator"

{isTyping && \x3CTypingIndicator />}

Full Example

import {
  ChatContainer,
  ChatMessage,
  ChatInput,
  TypingIndicator,
} from "@/registry/blocks/chat"

export function Chat() {
  const [messages, setMessages] = useState([])
  const [isLoading, setIsLoading] = useState(false)

  const handleSend = async (content: string) => {
    setMessages(prev => [...prev, { role: 'user', content }])
    setIsLoading(true)
    // Send to API...
    setIsLoading(false)
  }

  return (
    \x3CChatContainer>
      {messages.map((msg, i) => (
        \x3CChatMessage key={i} role={msg.role} content={msg.content} />
      ))}
      {isLoading && \x3CTypingIndicator />}
      \x3CChatInput onSubmit={handleSend} disabled={isLoading} />
    \x3C/ChatContainer>
  )
}

Message Variants

Role Description
user User messages (right-aligned)
assistant AI responses (left-aligned)
system System messages (centered)

Styling

Components use Tailwind CSS and shadcn/ui design tokens:

\x3CChatMessage
  role="assistant"
  content="Hello!"
  className="bg-muted"
/>

Related Skills

# Full agent component (recommended)
npx skills add inference-sh/skills@agent-ui

# Declarative widgets
npx skills add inference-sh/skills@widgets-ui

# Markdown rendering
npx skills add inference-sh/skills@markdown-ui

Documentation

Component docs: ui.inference.sh/blocks/chat

安全使用建议
This skill is a coherent instruction-only recipe for adding chat UI components. It does not request credentials or access to your system beyond running npx to fetch templates from ui.inference.sh. Before running the npx command, review the downloaded template files (or run in an isolated/dev environment) to ensure they match expectations. Treat network-downloaded code like any third-party package: inspect contents, run npm/yarn audits, and prefer running these commands in a sandbox if you are unsure. If you need higher assurance, ask the publisher for a pinned release or a package published to a public registry you can vet.
功能分析
Type: OpenClaw Skill Name: chat-ui Version: 0.1.5 The `SKILL.md` file contains `npx` commands (`npx shadcn@latest add` and `npx skills add`) that instruct the agent to download and execute code from external domains (ui.inference.sh, inference.sh/skills). While these commands are presented as legitimate steps to install UI components and related skills, they represent a risky capability involving shell execution and network access. This introduces a supply chain vulnerability, as a compromise of the remote servers could lead to arbitrary code execution on the agent's machine. There is no evidence of intentional malicious behavior within the skill bundle itself, but the presence of these commands constitutes a significant vulnerability, classifying it as suspicious.
能力评估
Purpose & Capability
Name, description, and instructions all describe installing and using chat UI building blocks for React/Next.js. The imports and example code match the stated purpose and do not request unrelated capabilities or credentials.
Instruction Scope
SKILL.md contains only component usage examples and a single install command (npx shadcn@latest add https://ui.inference.sh/r/chat.json). The instructions do not request reading arbitrary host files, environment secrets, or other unrelated system state. Note: the runtime instructions tell the user/agent to run npx which will fetch remote template data — this is expected for a UI component recipe but is the primary external action the agent would perform.
Install Mechanism
There is no registry install spec (the skill is instruction-only). The recommended install uses npx and a URL hosted at ui.inference.sh to pull component definitions. That URL aligns with the skill's branding (inference.sh) but it means running a network download via npx; users should inspect the fetched template before executing in production. No obscure URL shorteners or IP addresses are used.
Credentials
The skill declares no required environment variables, credentials, or config paths. The SKILL.md does not reference any secrets or unrelated environment variables.
Persistence & Privilege
The skill does not request always:true or any elevated persistent presence. It is user-invocable and allows normal autonomous invocation; this is typical and consistent for a utility skill of this type.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install chat-ui
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /chat-ui 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.5
- Added comprehensive documentation (SKILL.md) for chat-ui, detailing available components and usage. - Included code examples for ChatContainer, ChatMessage, ChatInput, and TypingIndicator. - Provided a full example for building a chat interface with message state and input handling. - Listed message role variants and associated UI behaviors. - Offered related skills, styling tips, and links to further documentation and best practices.
v0.1.0
Initial release of chat-ui: chat interface components for React/Next.js. - Provides building blocks: ChatContainer, ChatMessage, ChatInput, TypingIndicator, and avatar support. - Enables rapid construction of custom chat UIs, message lists, and streaming experiences. - All components use Tailwind CSS and shadcn/ui design tokens. - Includes installation, usage examples, message variants, and links to further documentation. - Related skills and integrations suggested for extended chat/agent capabilities.
元数据
Slug chat-ui
版本 0.1.5
许可证
累计安装 6
当前安装数 5
历史版本数 2
常见问题

Chat Ui 是什么?

Chat UI building blocks for React/Next.js from ui.inference.sh. Components: container, messages, input, typing indicators, avatars. Capabilities: chat interf... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1398 次。

如何安装 Chat Ui?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install chat-ui」即可一键安装,无需额外配置。

Chat Ui 是免费的吗?

是的,Chat Ui 完全免费(开源免费),可自由下载、安装和使用。

Chat Ui 支持哪些平台?

Chat Ui 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Chat Ui?

由 Ömer Karışman(@okaris)开发并维护,当前版本 v0.1.5。

💬 留言讨论