delegate-to-agent
ما الذي تفعله
تشرح هذه المهارة كيف يجب أن يسلّم زر التطبيق أو سير العمل عمل الذكاء الاصطناعي إلى محادثة الوكيل. تبقى الإجراءات الحتمية داخل التطبيق، ويتولى الوكيل الاستدلال والمهام متعددة الخطوات. وهي مخصصة للمطورين الذين يضيفون ميزات ذكاء اصطناعي إلى التطبيق.
متى تستخدمها
- ✓عندما تضيف زراً يحتاج إلى استدلال أو بحث أو توليد بالذكاء الاصطناعي.
- ✓عندما يحتوي سير العمل على عدة خطوات يجب أن يراقبها المستخدم ويوجهها.
- ✓عندما ينبغي أن يتولى الوكيل في المحادثة متابعة إجراء لاحق.
رابط المهارة
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/delegate-to-agent/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“هل يمكنك جعل زر التلخيص في تطبيقي يرسل المستند إلى محادثة الوكيل، حتى أتابع الملخص؟”
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
التعليقات
- …
المزيد من المهارات من هذا المستودع
design-exploration
7.6kيساعد وكيلك على استكشاف عدة اتجاهات تصميم لواجهة المستخدم جنباً إلى جنب، ثم تختار أنت واحداً، ويحسّن الوكيل التصميم المختار.
visual-edit
7.6kيساعد وكيلك على فتح تطبيق محلي يعمل في محرر مرئي، لتراجع شاشاته الحقيقية وتحررها معاً.
turn-into-app
7.6kيحوّل سير عمل أو جدول بيانات أو مشروعاً إلى تطبيق مرئي مصقول، فيه شاشات مملوءة بالبيانات ووكيل يعمل خلف أدوات التحكم.
visual-plan
7.6kيحوّل خطة نصية عادية إلى خطة مرئية تفاعلية فيها مخططات وخرائط ملفات ومقتطفات كود وأسئلة مفتوحة.
مهارات مشابهة
add-model-provider
394kتتيح لوكيلك ربط مزوّد نموذج ذكاء اصطناعي جديد بـ OpenClaw باستخدام أوامر إعداد آمنة، وإبقاء مفاتيح API خارج النص العادي، وإجراء اختبار حي.
acp-router
394kيساعد وكيلك على إرسال مهمة إلى مساعد برمجة مثل Claude Code أو Cursor عبر OpenClaw، فيعمل العمل داخل تلك الأداة.
browser-automation
394kتعلّم وكيلك التحكم في صفحات الويب خطوة بخطوة، بما في ذلك تسجيل الدخول والتبويبات والتعافي عندما تتوقف الصفحة عن الاستجابة.