Skillpedia
الوكلاء40k · #7458

typespec-create-agent

ما الذي تفعله

تنشئ هذه المهارة مساعد ذكاء اصطناعي (يسمى « وكيلًا ») لـ Microsoft 365 Copilot. تحدد ما يستطيع الوكيل فعله، وكيف يتصرف، وكيف يبدأ الناس الحديث معه.

متى تستخدمها

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

رابط المهارة

https://github.com/github/awesome-copilot/blob/main/skills/typespec-create-agent/SKILL.md

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

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

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

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

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

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

“أنشئ وكيلًا يساعد في الإجابة عن أسئلة منتجات الشركة، مع إمكانية الوصول إلى الويب ومستندات SharePoint.”

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

كيف تعمل

تزوّد المهارة بتفاصيل عن غرض الوكيل وقدراته (مثل البحث في الويب وقراءة رسائل البريد)، وطريقة تصرفه. ثم تنشئ المهارة كود الإعداد الخاص بالوكيل.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Create TypeSpec Declarative Agent

Create a complete TypeSpec declarative agent for Microsoft 365 Copilot with the following structure:

Requirements

Generate a main.tsp file with:

  1. Agent Declaration

    • Use @agent decorator with a descriptive name and description
    • Name should be 100 characters or less
    • Description should be 1,000 characters or less
  2. Instructions

    • Use @instructions decorator with clear behavioral guidelines
    • Define the agent's role, expertise, and personality
    • Specify what the agent should and shouldn't do
    • Keep under 8,000 characters
  3. Conversation Starters

    • Include 2-4 @conversationStarter decorators
    • Each with a title and example query
    • Make them diverse and showcase different capabilities
  4. Capabilities (based on user needs)

    • WebSearch - for web content with optional site scoping
    • OneDriveAndSharePoint - for document access with URL filtering
    • TeamsMessages - for Teams channel/chat access
    • Email - for email access with folder filtering
    • People - for organization people search
    • CodeInterpreter - for Python code execution
    • GraphicArt - for image generation
    • GraphConnectors - for Copilot connector content
    • Dataverse - for Dataverse data access
    • Meetings - for meeting content access

Template Structure

import "@typespec/http";
import "@typespec/openapi3";
import "@microsoft/typespec-m365-copilot";

using TypeSpec.Http;
using TypeSpec.M365.Copilot.Agents;

@agent({
  name: "[Agent Name]",
  description: "[Agent Description]"
})
@instructions("""
  [Detailed instructions about agent behavior, role, and guidelines]
""")
@conversationStarter(#{
  title: "[Starter Title 1]",
  text: "[Example query 1]"
})
@conversationStarter(#{
  title: "[Starter Title 2]",
  text: "[Example query 2]"
})
namespace [AgentName] {
  // Add capabilities as operations here
  op capabilityName is AgentCapabilities.[CapabilityType]<[Parameters]>;
}

Best Practices

  • Use descriptive, role-based agent names (e.g., "Customer Support Assistant", "Research Helper")
  • Write instructions in second person ("You are...")
  • Be specific about the agent's expertise and limitations
  • Include diverse conversation starters that showcase different features
  • Only include capabilities the agent actually needs
  • Scope capabilities (URLs, folders, etc.) when possible for better performance
  • Use triple-quoted strings for multi-line instructions

Examples

Ask the user:

  1. What is the agent's purpose and role?
  2. What capabilities does it need?
  3. What knowledge sources should it access?
  4. What are typical user interactions?

Then generate the complete TypeSpec agent definition.

الأسئلة الشائعة

ما هو « الوكيل » في Microsoft 365 Copilot؟

الوكيل مساعد ذكاء اصطناعي يمكنك ضبطه لأداء مهام محددة داخل Microsoft 365، مثل الإجابة عن الأسئلة أو إدارة المعلومات.

ما هي « القدرات »؟

القدرات هي الأدوات التي يستطيع الوكيل استخدامها، مثل البحث في الإنترنت (WebSearch)، والوصول إلى الملفات في OneDrive وSharePoint، وقراءة رسائل البريد، وغيرها.

ما هو TypeSpec؟

TypeSpec لغة تُستخدم لوصف كيفية عمل وكلاء الذكاء الاصطناعي وما القدرات التي يملكونها.

التفاصيل

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

Generate a complete TypeSpec declarative agent with instructions, capabilities, and conversation starters for Microsoft 365 Copilot

repo: github/awesome-copilot

الشعبية

نجوم GitHub
40k
الترتيب
#7458
الترخيص
MIT
آخر تحديث
15‏/10‏/2026

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

0

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

التعليقات

  • …

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

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