agent-ui
AIチャットやSaaSコパイロットなど、人間が介在する高度なAIアシスタントUIをReact/Next.jsで簡単に構築するSkill。
📜 元の英語説明(参考)
Batteries-included agent component for React/Next.js from ui.inference.sh. One component with runtime, tools, streaming, approvals, and widgets built in. Capabilities: drop-in agent, human-in-the-loop, client-side tools, form filling. Use for: building AI chat interfaces, agentic UIs, SaaS copilots, assistants. Triggers: agent component, agent ui, chat agent, shadcn agent, react agent, agentic ui, ai assistant ui, copilot ui, inference ui, human in the loop
🇯🇵 日本人クリエイター向け解説
AIチャットやSaaSコパイロットなど、人間が介在する高度なAIアシスタントUIをReact/Next.jsで簡単に構築するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o agent-ui.zip https://jpskill.com/download/6161.zip && unzip -o agent-ui.zip && rm agent-ui.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/6161.zip -OutFile "$d\agent-ui.zip"; Expand-Archive "$d\agent-ui.zip" -DestinationPath $d -Force; ri "$d\agent-ui.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
agent-ui.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
agent-uiフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-17
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
エージェントコンポーネント

ui.inference.sh から提供される、必要な機能がすべて含まれたエージェントコンポーネントです。
クイックスタート
# エージェントコンポーネントをインストールします
npx shadcn@latest add https://ui.inference.sh/r/agent.json
# プロキシルート用のSDKを追加します
npm install @inferencesh/sdk
セットアップ
1. APIプロキシルート (Next.js)
// app/api/inference/proxy/route.ts
import { route } from '@inferencesh/sdk/proxy/nextjs';
export const { GET, POST, PUT } = route;
2. 環境変数
# .env.local
INFERENCE_API_KEY=inf_...
3. コンポーネントの使用
import { Agent } from "@/registry/blocks/agent/agent"
export default function Page() {
return (
<Agent
proxyUrl="/api/inference/proxy"
agentConfig={{
core_app: { ref: 'openrouter/claude-haiku-45@0fkg6xwb' },
description: 'a helpful ai assistant',
system_prompt: 'you are helpful.',
}}
/>
)
}
機能
| 機能 | 説明 |
|---|---|
| ランタイム内蔵 | バックエンドロジックは不要です |
| ツールライフサイクル | 保留中、進行中、承認、結果 |
| ヒューマン・イン・ザ・ループ | 組み込みの承認フロー |
| ウィジェット | エージェントの応答からの宣言的JSON UI |
| ストリーミング | リアルタイムトークンストリーミング |
| クライアントサイドツール | ブラウザで実行されるツール |
クライアントサイドツールの例
import { Agent } from "@/registry/blocks/agent/agent"
import { createScopedTools } from "./blocks/agent/lib/client-tools"
const formRef = useRef<HTMLFormElement>(null)
const scopedTools = createScopedTools(formRef)
<Agent
proxyUrl="/api/inference/proxy"
config={{
core_app: { ref: 'openrouter/claude-haiku-45@0fkg6xwb' },
tools: scopedTools,
system_prompt: 'You can fill forms using scan_ui and fill_field tools.',
}}
/>
プロパティ
| プロパティ | 型 | 説明 |
|---|---|---|
proxyUrl |
string | APIプロキシエンドポイント |
name |
string | エージェント名 (オプション) |
config |
AgentConfig | エージェント設定 |
allowFiles |
boolean | ファイルアップロードを有効にする |
allowImages |
boolean | 画像アップロードを有効にする |
関連スキル
# チャットUIのビルディングブロック
npx skills add inferencesh/skills@chat-ui
# JSONからの宣言的ウィジェット
npx skills add inferencesh/skills@widgets-ui
# ツールライフサイクルUI
npx skills add inferencesh/skills@tools-ui
ドキュメント
- エージェントの概要 - AIエージェントの構築
- エージェントSDK - プログラムによるエージェント制御
- ヒューマン・イン・ザ・ループ - 承認フロー
- UIを生成するエージェント - 生成UIの構築
- エージェントUXパターン - ベストプラクティス
コンポーネントのドキュメント: ui.inference.sh/blocks/agent
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Agent Component

Batteries-included agent component from ui.inference.sh.
Quick Start
# Install the agent component
npx shadcn@latest add https://ui.inference.sh/r/agent.json
# Add the SDK for the proxy route
npm install @inferencesh/sdk
Setup
1. API Proxy Route (Next.js)
// app/api/inference/proxy/route.ts
import { route } from '@inferencesh/sdk/proxy/nextjs';
export const { GET, POST, PUT } = route;
2. Environment Variable
# .env.local
INFERENCE_API_KEY=inf_...
3. Use the Component
import { Agent } from "@/registry/blocks/agent/agent"
export default function Page() {
return (
<Agent
proxyUrl="/api/inference/proxy"
agentConfig={{
core_app: { ref: 'openrouter/claude-haiku-45@0fkg6xwb' },
description: 'a helpful ai assistant',
system_prompt: 'you are helpful.',
}}
/>
)
}
Features
| Feature | Description |
|---|---|
| Runtime included | No backend logic needed |
| Tool lifecycle | Pending, progress, approval, results |
| Human-in-the-loop | Built-in approval flows |
| Widgets | Declarative JSON UI from agent responses |
| Streaming | Real-time token streaming |
| Client-side tools | Tools that run in the browser |
Client-Side Tools Example
import { Agent } from "@/registry/blocks/agent/agent"
import { createScopedTools } from "./blocks/agent/lib/client-tools"
const formRef = useRef<HTMLFormElement>(null)
const scopedTools = createScopedTools(formRef)
<Agent
proxyUrl="/api/inference/proxy"
config={{
core_app: { ref: 'openrouter/claude-haiku-45@0fkg6xwb' },
tools: scopedTools,
system_prompt: 'You can fill forms using scan_ui and fill_field tools.',
}}
/>
Props
| Prop | Type | Description |
|---|---|---|
proxyUrl |
string | API proxy endpoint |
name |
string | Agent name (optional) |
config |
AgentConfig | Agent configuration |
allowFiles |
boolean | Enable file uploads |
allowImages |
boolean | Enable image uploads |
Related Skills
# Chat UI building blocks
npx skills add inferencesh/skills@chat-ui
# Declarative widgets from JSON
npx skills add inferencesh/skills@widgets-ui
# Tool lifecycle UI
npx skills add inferencesh/skills@tools-ui
Documentation
- Agents Overview - Building AI agents
- Agent SDK - Programmatic agent control
- Human-in-the-Loop - Approval flows
- Agents That Generate UI - Building generative UIs
- Agent UX Patterns - Best practices
Component docs: ui.inference.sh/blocks/agent