Langsung ke konten
Skillpedia
Agen40k · #7458

typespec-create-agent

Fungsinya

Tool ini membuat asisten AI (disebut 'agent') untuk Microsoft 365 Copilot. Tool ini menentukan apa saja yang bisa dilakukan agent, bagaimana agent harus berperilaku, dan bagaimana orang bisa mulai berbicara dengannya.

Kapan dipakai

  • ✓Saat Anda ingin membuat asisten AI khusus untuk tugas tertentu.
  • ✓Saat menentukan kemampuan agent, misalnya mencari di web atau dokumen.
  • ✓Saat mengatur bagaimana agent harus berinteraksi dengan pengguna.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/github/awesome-copilot/blob/main/skills/typespec-create-agent/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Buatkan agent yang membantu menjawab pertanyaan tentang produk perusahaan, dengan akses ke web dan dokumen SharePoint.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Anda memberikan detail tentang tujuan agent, kemampuannya (seperti mencari di web, membaca email, dan sebagainya), serta cara agent harus bertindak. Tool kemudian menghasilkan kode konfigurasi untuk agent tersebut.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

Pertanyaan umum

Apa itu 'agent' di Microsoft 365 Copilot?

Agent adalah asisten AI yang bisa Anda atur untuk melakukan tugas tertentu di dalam Microsoft 365, misalnya menjawab pertanyaan atau mengelola informasi.

Apa itu 'capabilities'?

Capabilities adalah alat yang bisa digunakan agent, seperti mencari di internet (WebSearch), mengakses file di OneDrive/SharePoint, membaca email, dan lain-lain.

Apa itu 'TypeSpec'?

TypeSpec adalah bahasa yang digunakan untuk mendeskripsikan dan mendefinisikan cara kerja agent AI serta kemampuan yang dimilikinya.

Detail

Deskripsi asli dari pembuat

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

repo: github/awesome-copilot

Popularitas

Bintang GitHub
40k
Peringkat
#7458
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa