github avatar

Typespec Create Agent

The typespec-create-agent skill generates a complete TypeSpec declarative agent configuration file for Microsoft 365 Copilot, including agent metadata, behavioral instructions, conversation starters, and capability declarations. It serves developers and organizations building custom Copilot agents by automating the creation of properly structured agent definitions that specify the agent's role, expertise, and available integrations with Microsoft 365 services. The skill solves the problem of manually writing and validating TypeSpec agent syntax by providing a guided generation process that ensures compliance with Copilot's agent requirements and best practices.

skills.sh installs
8.7K
GitHub stars
41K
last updated
Aug 21, 2026

Install

$ npx -y skills add github/awesome-copilot --skill typespec-create-agent --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/github/awesome-copilot
Categories
Git & Pull Requests, AI & Agent Building

More from github/awesome-copilot

All 318
1github avatarcentos-linux-triagegithub/awesome-copilotTriage and resolve CentOS issues using RHEL-compatible tooling, SELinux-aware practices, and firewalld.8.7Kskills.sh installs
2github avatarcontainerize-aspnet-frameworkgithub/awesome-copilotContainerize an ASP.NET .NET Framework project by creating Dockerfile and .dockerfile files customized for the project.8.7Kskills.sh installs
3github avatarentra-agent-usergithub/awesome-copilotCreate Agent Users in Microsoft Entra ID from Agent Identities, enabling AI agents to act as digital workers with user identity capabilities in Microsoft 365 an8.6Kskills.sh installs
4github avatarruby-mcp-server-generatorgithub/awesome-copilotGenerate a complete Model Context Protocol server project in Ruby using the official MCP Ruby SDK gem.8.6Kskills.sh installs
5github avatarwinapp-cligithub/awesome-copilotWindows App Development CLI (winapp) for building, packaging, signing, debugging, and UI-automating Windows applications. Use when asked to initialize Windows a8.4Kskills.sh installs
6github avatarmodel-recommendationgithub/awesome-copilotAnalyze chatmode or prompt files and recommend optimal AI models based on task complexity, required capabilities, and cost-efficiency8.4Kskills.sh installs