Habilidades building-chat-widgets
💬

building-chat-widgets

Seguro ⚡ Contém scripts⚙️ Comandos externos🌐 Acesso à rede📁 Acesso ao sistema de arquivos

インタラクティブなAIチャットウィジェットの構築

ボタン、フォーム、アクションを備えたチャットウィジェットの作成は複雑で文書化されていません。このスキルは、クライアントおよびサーバー側のウィジェット処理、エンティティタグ付け、コンポーザーツールのための完全なパターンを提供し、より迅速にインタラクティブなAIインターフェースを構築できます。

Suporta: Claude Codex Code(CC)
🥈 78 Prata
1

Baixar o ZIP da skill

2

Upload no Claude

Vá em Configurações → Capacidades → Skills → Upload skill

3

Ative e comece a usar

Testar

A utilizar "building-chat-widgets". Create a button widget that lets users select an item from a list

Resultado esperado:

  • Widget template with ListView and clickable ListViewItem components
  • Server action handler that processes item selection and updates the widget state
  • Client action callback for local state updates after selection

A utilizar "building-chat-widgets". Build a form that submits data to the backend

Resultado esperado:

  • Form widget with input fields and submit button
  • Server action handler that validates and processes form data
  • Synthetic user message creation to trigger agent response

A utilizar "building-chat-widgets". Add @mention functionality for tagging users

Resultado esperado:

  • Frontend onTagSearch callback for entity search
  • Backend entity converter for @mention replacement
  • Interactive entities with onClick handlers for navigation

Auditoria de Segurança

Seguro
v5 • 1/16/2026

This is a pure documentation skill containing only markdown files with code examples. The static analyzer incorrectly flagged markdown code fences as shell backticks and documentation examples as dangerous patterns. All findings are false positives. The only executable file (scripts/verify.py) is a benign file-existence checker with no security implications.

5
Arquivos analisados
1,055
Linhas analisadas
4
achados
5
Total de auditorias

Fatores de risco

⚡ Contém scripts (1)
⚙️ Comandos externos
Nenhuma localização específica registrada
🌐 Acesso à rede
Nenhuma localização específica registrada
📁 Acesso ao sistema de arquivos
Nenhuma localização específica registrada
Auditado por: claude Ver Histórico de Auditoria →

Pontuação de qualidade

64
Arquitetura
100
Manutenibilidade
87
Conteúdo
31
Comunidade
100
Segurança
91
Conformidade com especificações

O Que Você Pode Construir

クリック可能なチャットアクションの構築

バックエンドハンドラーにデータをミューテーションするためにアクションを送信するボタンとフォームを作成する

エージェント型チャットインターフェースのデザイン

ユーザーがAI会話内で選択、確認、ナビゲーションできるインタラクティブなウィジェットを構築する

ウィジェットをバックエンドに接続する

ウィジェットの更新、エフェクトのトリガー、エージェント応答の実行を行うサーバーアクションハンドラーを実装する

Tente Estes Prompts

基本ウィジェット
Create a Button widget that dispatches a server action when clicked. Include a ListView with clickable items that select items.
フォーム送信
Write a server action handler that processes a form submission, creates a synthetic user message, and triggers the agent response.
エンティティタグ化
Implement entity tagging so users can @mention articles. Show the frontend onTagSearch callback and backend entity conversion.
コンポーザーモード
Create a composer with tool mode selection. Show the TOOL_CHOICES configuration and how the backend routes based on tool_choice metadata.

Melhores Práticas

  • 競合を避けるため、同じアクションタイプに対してクライアントとサーバーのアクションを分離する
  • データアクセスにはaction.payloadを使用し、action.argumentsは決して使用しない
  • UserMessageItem作成時にすべての必須フィールドを含める:id、thread_id、created_at、inference_options

Evitar

  • 同じアクションタイプをクライアントとサーバーの両方で処理すると競合状態が発生する
  • UserMessageItemに必要なフィールドが不足するとバリデーションエラーが発生する
  • ユーザーメッセージコンテンツに'type='text'ではなく'type='input_text'を使用する

Perguntas Frequentes

このスキルはどのプラットフォームでサポートされていますか?
Claude、Codex、Claude Codeで動作します。パターンはPythonバックエンドとTypeScriptフロントエンドの例を示しています。
ウィジェットの複雑さに関する制限はありますか?
厳密な制限はありませんが、ウィジェットをFocusedに保つことをお勧めします。複雑なウィジェットは複数のシンプルなアクションを送信する必要があります。
既存のチャットアプリと統合するにはどうすればよいですか?
パターンはChatKit互換のウィジェットシステムを想定しています。アクションとエンティティのコアパターンは、他のフレームワークに適応できます。
ウィジェットを使用する場合、ユーザーデータは安全ですか?
はい。ウィジェットは定義したアクションペイロードのみを送信します。サーバーハンドラーは制御されたバックエンドでデータを処理します。
'Action has no attribute arguments'エラーが発生するのはなぜですか?
action.argumentsではなくaction.payloadを使用してください。スキルドキュメント全体に正しいアクセスパターンが示されています。
標準的なチャットUIとどう異なりますか?
ウィジェットは双方向コミュニケーションを可能にします。アクションはUIからバックエンドへ流れ、ウィジェットはサーバー応答に基づいて動的に更新されます。

Detalhes do Desenvolvedor

Estrutura de arquivos