agent-demo-frontend
Provides design and component patterns for complex AI-agent user interfaces.
Install
mkdir -p .claude/skills/agent-demo-frontend && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15153" && unzip -o skill.zip -d .claude/skills/agent-demo-frontend && rm skill.zipInstalls to .claude/skills/agent-demo-frontend
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
旅行マーケティング AI パイプラインのフロントエンド UI 設計・実装ガイド。 チャット UI、SSE ストリーミング表示、ツール呼び出し可視化、承認フロー、 Generative UI(グラフ・画像・ブローシャプレビュー)、マルチエージェント表現、 多言語対応(i18n: 日英中)、ダーク/ライトモードをカバーする。 Triggers: "フロントエンド", "UI", "チャット", "コンポーネント", "デモ画面", "デザイン", "ストリーミング", "承認フロー", "i18n", "ダークモード"Key capabilities
- →Display progress for a 7-agent pipeline with optional Agent6
- →Animate badges for tool usage events
- →Show analysis graphs and summaries from Agent1
- →Present a document preview with approval/correction buttons
- →Display generated images from GPT Image 2, GPT Image 1.5, or MAI-Image-2
- →Switch between Japanese, English, and Chinese languages
How it works
The skill describes how SSE events trigger updates in specific UI components, such as updating a step indicator for agent progress or displaying images in a gallery.
Inputs & outputs
When to use agent-demo-frontend
- →Design agent pipeline UI
- →Implement streaming chat interface
- →Add multi-agent visualization
About this skill
旅行マーケティング AI — フロントエンド設計ガイド
ビジュアルテーゼ
明るく落ち着いた、余白の多いプロフェッショナルな操作画面。 旅行会社のマーケ担当者が安心して使えるエンタープライズ品質。
コンポーネント構成(§6.2 準拠、28 コンポーネント)
frontend/src/
├── components/
│ ├── InputForm.tsx # 自然言語入力・地域/季節/予算の選択
│ ├── PipelineStepper.tsx # 7 エージェント + 承認ステップの進捗表示(Agent1〜5, Agent6 オプショナル)
│ ├── ToolEventBadges.tsx # ツール使用状況のアニメーションバッジ
│ ├── AnalysisView.tsx # Agent1 の分析グラフ・サマリ表示
│ ├── PlanApproval.tsx # 企画書プレビュー + 承認/修正ボタン
│ ├── RegulationResults.tsx # 規制チェック結果のハイライト表示
│ ├── BrochurePreview.tsx # HTML ブローシャのプレビュー
│ ├── ImageGallery.tsx # GPT Image 2(既定)/ GPT Image 1.5 / MAI-Image-2 生成画像表示
│ ├── ArtifactTabs.tsx # 企画書/ブローシャ/画像のタブ切替
│ ├── VersionSelector.tsx # 成果物バージョンの切替
│ ├── RefineChat.tsx # マルチターン修正対話の入力
│ ├── SafetyBadge.tsx # Content Safety 結果の動的バッジ
│ ├── MetricsBar.tsx # 処理メトリクス(レイテンシ・トークン等)
│ ├── LanguageSwitcher.tsx # 言語切替(日/英/中)
│ ├── ThemeToggle.tsx # ダーク/ライト切替
│ └── ErrorRetry.tsx # エラー表示 + リトライボタン
├── hooks/
│ ├── useSSE.ts # SSE 接続管理(approval_token 保持を含む)
│ ├── useTheme.ts # テーマ管理(system 連動)
│ └── useI18n.ts # 多言語管理
└── lib/
├── sse-client.ts # SSE クライアント
├── i18n.ts # 翻訳データ(ja/en/zh)
├── export.ts # 成果物エクスポート(PDF/HTML/画像)
├── msal-auth.ts # MSAL 認証(Work IQ 用 user_impersonation token)
└── speech-stt.ts # Azure Speech STT 統合(音声入力)
画面レイアウト
┌──────────────────────────────────────────────┐
│ ヘッダー: ロゴ + プロダクト名 + 言語 + テーマ │
├────────────────────┬─────────────────────────┤
│ │ │
│ チャット領域 │ 成果物プレビュー │
│ (MessageList) │ (Markdown/HTML/画像) │
│ │ │
│ ├ AgentProgress │ ├ MarkdownPreview │
│ ├ ToolCallDisplay │ ├ BrochurePreview │
│ ├ ApprovalCard │ ├ ImageGallery │
│ └ AgentMessage │ └ ExportPanel │
│ │ │
├────────────────────┤ SafetyBadge │
│ ChatInput │ MetricsPanel │
└────────────────────┴─────────────────────────┘
SSE イベントと UI の対応(§3.4 準拠)
| SSE イベント | 表示コンポーネント | 動作 |
|---|---|---|
agent_progress | PipelineStepper | ステップインジケーターを更新 |
tool_event | ToolEventBadges | ツール使用バッジをアニメーション表示 |
text | AnalysisView / RegulationResults / BrochurePreview | チャットに追記・成果物プレビュー反映 |
approval_request | PlanApproval | 承認/修正ボタンを表示(approval_token を useSSE state に保存し、POST /api/chat/{id}/approve に echo) |
image | ImageGallery | 画像をインライン表示(base64) |
safety | SafetyBadge | 4 カテゴリのスコアをバッジ表示 |
error | ErrorRetry | エラー内容 + リトライボタン |
done | MetricsBar | 処理メトリクス表示。修正対話モードに切替 |
デザインルール
- カードはデフォルトで使わない。 背景色の差とスペースで区切る
- フォント: Noto Sans JP(日本語対応、Inter/Roboto 禁止)
- アクセントカラー: 1 色(旅行テーマならブルー系)
- ダークモード: Tailwind の
dark:クラスで全対応。CSS 変数でカラー管理 - ストリーミング: テキストはチャンク単位で段階表示。一括表示禁止
- ツール呼び出し: インラインで折りたたみ。別パネルに飛ばさない
- 承認フロー: フォーカスはデフォルトで「修正」側(誤承認防止)
- エージェント表示: アバター(アイコン + 名前 + 役割)で区別。擬人化しない
- エラー: 隠さない。何が起きたか説明 + リトライボタン
参照
- 詳細なデザインルール・アンチパターン・Trust UX は
agent-demo-frontend汎用スキルを参照 - 要件定義 §6:
docs/requirements_v4.0.md - 承認 token セキュリティ:
docs/approval-security.md
When not to use it
- →When the UI does not require a multi-agent representation
- →When the application does not use Server-Sent Events for streaming updates
- →When the design does not need to cover dark/light mode
Limitations
- →The skill does not use card-based layouts by default; it separates sections with background color differences and spacing
- →The skill does not use Inter/Roboto fonts; it specifies Noto Sans JP for Japanese support
- →The skill does not display text all at once; it streams text in chunks
How it compares
This approach uses SSE events to dynamically update UI components, providing real-time feedback without requiring full page reloads or complex client-side polling.
Compared to similar skills
agent-demo-frontend side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| agent-demo-frontend (this skill) | 0 | 1mo | No flags | Intermediate |
| web-artifacts-builder | 49 | 3mo | Review | Intermediate |
| radix-ui-design-system | 33 | 2mo | Review | Intermediate |
| figma-integration | 23 | 7mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by naoki1213mj
View all by naoki1213mj →You might also like
web-artifacts-builder
anthropics
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
radix-ui-design-system
sickn33
Build accessible design systems with Radix UI primitives. Headless component customization, theming strategies, and compound component patterns for production-grade UI libraries.
figma-integration
duongdev
Guides design-to-code workflow using Figma integration. Helps extract designs, analyze components, and generate implementation specs. Auto-activates when users mention Figma URLs, design implementation, component conversion, or design-to-code workflows. Works with /ccpm:planning:design-ui, design-approve, design-refine, and /ccpm:utils:figma-refresh commands.
figma-implement-design
openai
Translate Figma nodes into production-ready code with 1:1 visual fidelity using the Figma MCP workflow (design context, screenshots, assets, and project-convention translation). Trigger when the user provides Figma URLs or node IDs, or asks to implement designs or components that must match Figma specs. Requires a working Figma MCP server connection.
react-flow-node-ts
microsoft
Create React Flow node components with TypeScript types, handles, and Zustand integration. Use when building custom nodes for React Flow canvas, creating visual workflow editors, or implementing node-based UI components.
frontend-ui-dark-ts
microsoft
Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.