
Typespec Create Agent
- 8.6k installs
- 37.1k repo stars
- Updated July 28, 2026
- github/awesome-copilot
typespec-create-agent is an agent skill that Generate a complete TypeSpec declarative agent with instructions, capabilities, and conversation starters for Microsoft 365 Copilot.
About
Generate a complete TypeSpec declarative agent with instructions capabilities and conversation starters for Microsoft 365 Copilot name typespec-create-agent description Generate a complete TypeSpec declarative agent with instructions capabilities and conversation starters for Microsoft 365 Copilot 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 fo.
- Create TypeSpec Declarative Agent
- **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
Typespec Create Agent by the numbers
- 8,595 all-time installs (skills.sh)
- +20 installs in the week ending Jul 28, 2026 (Skillselion tracking)
- Ranked #108 of 4,386 Backend & APIs skills by installs in the Skillselion catalog
- Security screen: MEDIUM risk (skills.sh audit)
- Data as of Jul 28, 2026 (Skillselion catalog sync)
typespec-create-agent capabilities & compatibility
- Capabilities
- create typespec declarative agent · **agent declaration** · use `@agent` decorator with a descriptive name a · name should be 100 characters or less · description should be 1,000 characters or less
- Use cases
- documentation
What typespec-create-agent says it does
**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.
**Conversation Starters** - Include 2-4 `@conversationStarter` decorators - Each with a title and example query - Make them diverse and showcase different capabilities 4.
Then generate the complete TypeSpec agent definition.
npx skills add https://github.com/github/awesome-copilot --skill typespec-create-agentAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 8.6k |
|---|---|
| repo stars | ★ 37.1k |
| Security audit | 2 / 3 scanners passed |
| Last updated | July 28, 2026 |
| Repository | github/awesome-copilot ↗ |
What problem does typespec-create-agent solve for developers using this skill?
Generate a complete TypeSpec declarative agent with instructions, capabilities, and conversation starters for Microsoft 365 Copilot
Who is it for?
Developers who need typespec-create-agent patterns described in the cached skill documentation.
Skip if: Skip when docs are empty or the task is outside the skill's documented scope.
When should I use this skill?
Generate a complete TypeSpec declarative agent with instructions, capabilities, and conversation starters for Microsoft 365 Copilot
What you get
Actionable workflows and conventions from SKILL.md for typespec-create-agent.
- main.tsp agent file
- Conversation starters
- Capability definitions
By the numbers
- Agent name limited to 100 characters in @agent decorator
- Agent description limited to 1,000 characters in @agent decorator
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
@agentdecorator with a descriptive name and description - Name should be 100 characters or less
- Description should be 1,000 characters or less
2. Instructions
- Use
@instructionsdecorator 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
@conversationStarterdecorators - 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 scopingOneDriveAndSharePoint- for document access with URL filteringTeamsMessages- for Teams channel/chat accessEmail- for email access with folder filteringPeople- for organization people searchCodeInterpreter- for Python code executionGraphicArt- for image generationGraphConnectors- for Copilot connector contentDataverse- for Dataverse data accessMeetings- 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.
Related skills
How it compares
Use typespec-create-agent to bootstrap a full Copilot declarative agent file rather than editing TypeSpec piecemeal without structure.
FAQ
What does typespec-create-agent do?
Generate a complete TypeSpec declarative agent with instructions, capabilities, and conversation starters for Microsoft 365 Copilot
When should I use typespec-create-agent?
Generate a complete TypeSpec declarative agent with instructions, capabilities, and conversation starters for Microsoft 365 Copilot
Is typespec-create-agent safe to install?
Review the Security Audits panel on this page before installing in production.