Skillpedia
الوكلاء7.6k · #13154

delegate-to-agent

ما الذي تفعله

تشرح هذه المهارة كيف يجب أن يسلّم زر التطبيق أو سير العمل عمل الذكاء الاصطناعي إلى محادثة الوكيل. تبقى الإجراءات الحتمية داخل التطبيق، ويتولى الوكيل الاستدلال والمهام متعددة الخطوات. وهي مخصصة للمطورين الذين يضيفون ميزات ذكاء اصطناعي إلى التطبيق.

متى تستخدمها

  • ✓عندما تضيف زراً يحتاج إلى استدلال أو بحث أو توليد بالذكاء الاصطناعي.
  • ✓عندما يحتوي سير العمل على عدة خطوات يجب أن يراقبها المستخدم ويوجهها.
  • ✓عندما ينبغي أن يتولى الوكيل في المحادثة متابعة إجراء لاحق.

رابط المهارة

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/delegate-to-agent/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/delegate-to-agent/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“هل يمكنك جعل زر التلخيص في تطبيقي يرسل المستند إلى محادثة الوكيل، حتى أتابع الملخص؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يرسل التطبيق طلب المستخدم إلى محادثة الوكيل مع سياق داعم قصير، ويفتح الشريط الجانبي حتى يكون العمل مرئياً. ويقرأ الوكيل البيانات الخاصة عبر إجراءات التطبيق المصرح بها.

المحتوى التقني (ملف 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.
الأسئلة الشائعة

هل يجب أن يُرسل كل زر ذكاء اصطناعي تلقائياً؟

لا. تنص المهارة على الإرسال التلقائي فقط عندما يوضح فعل المستخدم النية بجلاء.

هل يجب إرسال السجلات الكبيرة في الرسالة؟

لا. تنص المهارة على إرسال سياق موجز فقط، ودع الوكيل يقرأ البيانات عبر الإجراءات المصرح بها.

متى يُسمح بالعمل في الخلفية؟

فقط للمهام التي يبدؤها النظام وينفذها المنتج عمداً، لا للأزرار التي يضغطها المستخدم.

التفاصيل

الوصف الأصلي من المؤلف

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
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة