delegate-to-agent
できること
このスキルは、アプリのボタンやワークフローが、AIの作業をエージェントのチャットにどう渡すべきかを説明します。決まった操作はアプリに残し、エージェントが推論と複数の手順のあるタスクを扱います。アプリにAI機能を追加する開発者向けです。
使う場面
- ✓AIによる推論、リサーチ、生成が必要なボタンを追加するとき。
- ✓ユーザーが見守って操作できる、複数の手順のワークフローがあるとき。
- ✓チャットの中で、エージェントが後続の動作を扱うべきとき。
スキルのリンク
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/delegate-to-agent/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のアプリの要約ボタンで、ドキュメントをエージェントのチャットに送り、要約の過程を追えるようにしてもらえますか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
アプリは、ユーザーの依頼を、短い補足の文脈とともにエージェントのチャットに送り、作業が見えるようにサイドバーを開きます。エージェントは、アプリの認可されたアクションを通して、非公開のデータを読みます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Delegate AI Work to Agent Chat
Rule
Use the agent chat for work that needs AI reasoning, research, generation, or multi-step decisions. Keep app actions deterministic; let the agent orchestrate them so the user can see and steer the work.
Start a visible agent turn
Call sendToAgentChat() from the UI and open the AgentSidebar for user-initiated
work:
import { sendToAgentChat } from "@agent-native/core/client/agent-chat";
sendToAgentChat({
message: userRequest,
context: JSON.stringify({ documentId }),
submit: true,
openSidebar: true,
});
Keep the user's request in message. Put only concise supporting context—such
as a selected record id, current view, or bounded excerpt—in context. Use
attachments or image fields for files and visuals; do not serialize full
records or credentials into a prompt. The agent should read private or large
data through the app's authorized actions.
Use submit: true when a clear user action already states the intent. Use
submit: false to open the composer with a prefill when the user should review
or complete the request. Do not auto-submit a generic generation prompt before
the user has supplied the request.
Reserve background: true with openSidebar: false for work the product
intentionally runs silently, such as a system-initiated task. A button that
asks the user to do AI work should open the sidebar.
Keep the boundary clear
- Use focused actions for provider reads, validation, deterministic transformations, database writes, and other explicit operations.
- Let the agent choose and sequence those actions for AI-shaped workflows.
- Keep a user's freeform prompt in the AgentSidebar composer. Use controls for structured parameters; do not add a second prompt or follow-up textbox.
- Do not call model-provider SDKs,
completeText(), or AI SDK generation functions from app UI, actions, or server helpers. Do not make an action a hidden second agent.
Related skills
actions— define deterministic operations shared by the UI and agent.context-awareness— provide navigation and selected-record context.
よくある質問
すべてのAIのボタンは自動で送信すべきですか?
いいえ。ユーザーの操作が意図をはっきり示す場合だけ自動で送信すべきだとスキルは述べています。
大きなレコードはメッセージに含めるべきですか?
いいえ。簡潔な文脈だけを送り、データは認可されたアクションを通してエージェントに読ませるべきだとスキルは述べています。
バックグラウンドの作業はいつ許されますか?
プロダクトが意図的に実行する、システムが始めたタスクだけです。ユーザーが押すボタンでは許されません。
詳細
作者による元の説明
Route user-facing AI work through the app's agent chat. Use when adding an AI-powered button, workflow, research task, generation flow, or follow-up.
repo: BuilderIO/agent-native
人気
- GitHubのスター
- 7.6k
- ランキング
- #13154
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
design-exploration
7.6kUIの複数のデザインの方向性を並べて検討し、1つを選んでもらい、選んだデザインを磨き上げるようエージェントを支援します。
visual-edit
7.6k実行中のローカルのアプリをビジュアルエディターで開き、本物の画面をまとめて確認し編集できるようエージェントを支援します。
turn-into-app
7.6kワークフロー、スプレッドシート、プロジェクトを、画面にデータが入り、操作の裏でエージェントが働く、洗練されたビジュアルアプリに変えます。
visual-plan
7.6kプレーンテキストの計画を、図、ファイルのマップ、コードの断片、未解決の質問を含む、対話できるビジュアルな計画に変えます。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。