Source profileQuality 69/100

github/awesome-copilot/skills/typespec-create-agent/SKILL.md

typespec-create-agent

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

Source repository stars
37,126
Declared platforms
0
Static risk flags
1
Last source update
2026-07-28
Source checked
2026-07-28

Decision brief

What it does—and where it fits

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

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/github/awesome-copilot --skill "skills/typespec-create-agent"
    Safe inspection promptEditorial

    Inspect the Agent Skill "typespec-create-agent" from https://github.com/github/awesome-copilot/blob/9933dcad5be5caeb288cebcd370eeeb2fc2f1685/skills/typespec-create-agent/SKILL.md at commit 9933dcad5be5caeb288cebcd370eeeb2fc2f1685. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      Requirements

      Generate a main.tsp file with:

      Agent DeclarationUse @agent decorator with a descriptive name and descriptionName should be 100 characters or less
    2. 02

      Template Structure

      Review the “Template Structure” section in the pinned source before continuing.

      Review and apply the “Template Structure” source section.
    3. 03

      Best Practices

      Use descriptive, role-based agent names (e.g., "Customer Support Assistant", "Research Helper")

      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
    4. 04

      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?

      What is the agent's purpose and role?What capabilities does it need?What knowledge sources should it access?

    Permission review

    Static risk signals and limitations

    Reads files

    low · line 29

    The documentation asks the agent to read local files, directories, or repositories.

    `Email` - for email access with folder filtering

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score69/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars37,126SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    github/awesome-copilot
    Skill path
    skills/typespec-create-agent/SKILL.md
    Commit
    9933dcad5be5caeb288cebcd370eeeb2fc2f1685
    License
    MIT
    Collected
    2026-07-28
    Default branch
    main
    View the original SKILL.md

    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.