
Microsoft 365 Declarative Agents
OfficialFreeDevelop Microsoft 365 Copilot agents with ease.
Free · Opens the source repo
What Microsoft 365 Declarative Agents does
The Microsoft 365 Declarative Agents Development Kit provides a structured approach to creating and managing declarative agents for Microsoft 365 Copilot. This toolkit is designed for developers looking to leverage the latest v1.5 schema while integrating seamlessly with TypeSpec and the Microsoft 365 Agents Toolkit. It offers three distinct workflows tailored to different development needs: Basic Agent Creation, Advanced Enterprise Agent Design, and Validation & Optimization.
In the Basic Agent Creation workflow, users can quickly prototype simple agents. This workflow guides you through essential steps such as agent planning, capability selection from a list of 11 options, and schema creation. It also introduces TypeSpec for type-safe definitions and sets up a testing environment using Agents Playground, ensuring that even new developers can efficiently create functional agents.
For those working on more complex projects, the Advanced Enterprise Agent Design workflow addresses the needs of enterprise-level applications. It focuses on analyzing enterprise requirements, configuring advanced capabilities, and implementing custom behaviors. Additionally, it includes strategies for localization and user engagement, making it suitable for production deployments that require robust features and compliance with multi-tenant environments.
Lastly, the Validation & Optimization workflow is essential for maintaining and improving existing agents. It performs schema compliance checks, optimizes character limits, and audits capabilities. This workflow is particularly useful for developers looking to troubleshoot issues or enhance performance, ensuring that agents operate efficiently and adhere to Microsoft guidelines. Overall, this development kit is an invaluable resource for both novice and experienced developers aiming to create powerful agents within the Microsoft 365 ecosystem.
When to use it
Use this toolkit when you need to create, manage, or optimize Microsoft 365 Copilot agents, especially in enterprise environments.
When not to use it
This skill may not be suitable for projects that do not involve Microsoft 365 or require non-declarative agent frameworks.
What you can build with it
Creating a Basic Agent
A new developer can use the Basic Agent Creation workflow to quickly prototype a simple agent, defining its purpose and capabilities.
Deploying an Enterprise Agent
An enterprise team can utilize the Advanced Enterprise Agent Design workflow to build a complex agent that meets multi-tenant compliance and security requirements.
Optimizing an Existing Agent
A developer can apply the Validation & Optimization workflow to troubleshoot and enhance the performance of an existing Microsoft 365 Copilot agent.
How to install Microsoft 365 Declarative Agents
View source1. Install with the skills CLI
npx skills add github/awesome-copilot/declarative-agents --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by githubMicrosoft 365 Declarative Agents Development Kit
I'll help you create and develop Microsoft 365 Copilot declarative agents using the latest v1.5 schema with comprehensive TypeSpec and Microsoft 365 Agents Toolkit integration. Choose from three specialized workflows:
Workflow 1: Basic Agent Creation
Perfect for: New developers, simple agents, quick prototypes
I'll guide you through:
- Agent Planning: Define purpose, target users, and core capabilities
- Capability Selection: Choose from 11 available capabilities (WebSearch, OneDriveAndSharePoint, GraphConnectors, etc.)
- Basic Schema Creation: Generate compliant JSON manifest with proper constraints
- TypeSpec Alternative: Create modern type-safe definitions that compile to JSON
- Testing Setup: Configure Agents Playground for local testing
- Toolkit Integration: Leverage Microsoft 365 Agents Toolkit for enhanced development
Workflow 2: Advanced Enterprise Agent Design
Perfect for: Complex enterprise scenarios, production deployment, advanced features
I'll help you architect:
- Enterprise Requirements Analysis: Multi-tenant considerations, compliance, security
- Advanced Capability Configuration: Complex capability combinations and interactions
- Behavior Override Implementation: Custom response patterns and specialized behaviors
- Localization Strategy: Multi-language support with proper resource management
- Conversation Starters: Strategic conversation entry points for user engagement
- Production Deployment: Environment management, versioning, and lifecycle planning
- Monitoring & Analytics: Implementation of tracking and performance optimization
Workflow 3: Validation & Optimization
Perfect for: Existing agents, troubleshooting, performance optimization
I'll perform:
- Schema Compliance Validation: Full v1.5 specification adherence checking
- Character Limit Optimization: Name (100), description (1000), instructions (8000)
- Capability Audit: Verify proper capability configuration and usage
- TypeSpec Migration: Convert existing JSON to modern TypeSpec definitions
- Testing Protocol: Comprehensive validation using Agents Playground
- Performance Analysis: Identify bottlenecks and optimization opportunities
- Best Practices Review: Alignment with Microsoft guidelines and recommendations
Core Features Across All Workflows
Microsoft 365 Agents Toolkit Integration
- VS Code Extension: Full integration with
teamsdevapp.ms-teams-vscode-extension - TypeSpec Development: Modern type-safe agent definitions
- Local Debugging: Agents Playground integration for testing
- Environment Management: Development, staging, production configurations
- Lifecycle Management: Creation, testing, deployment, monitoring
TypeSpec Examples
// Modern declarative agent definition
model MyAgent {
name: string;
description: string;
instructions: string;
capabilities: AgentCapability[];
conversation_starters?: ConversationStarter[];
}
JSON Schema v1.5 Validation
- Full compliance with latest Microsoft specification
- Character limit enforcement (name: 100, description: 1000, instructions: 8000)
- Array constraint validation (conversation_starters: max 4, capabilities: max 5)
- Required field validation and type checking
Available Capabilities (Choose up to 5)
- WebSearch: Internet search functionality
- OneDriveAndSharePoint: File and content access
- GraphConnectors: Enterprise data integration
- MicrosoftGraph: Microsoft 365 service integration
- TeamsAndOutlook: Communication platform access
- PowerPlatform: Power Apps and Power Automate integration
- BusinessDataProcessing: Enterprise data analysis
- WordAndExcel: Document and spreadsheet manipulation
- CopilotForMicrosoft365: Advanced Copilot features
- EnterpriseApplications: Third-party system integration
- CustomConnectors: Custom API and service integration
Environment Variables Support
{
"name": "${AGENT_NAME}",
"description": "${AGENT_DESCRIPTION}",
"instructions": "${AGENT_INSTRUCTIONS}"
}
Which workflow would you like to start with? Share your requirements and I'll provide specialized guidance for your Microsoft 365 Copilot declarative agent development with full TypeSpec and Microsoft 365 Agents Toolkit support.
Frequently asked questions about Microsoft 365 Declarative Agents
Similar skills
WinMD API Search
Easily find and explore Windows desktop APIs.
WebMCPify
Transform any web app into an agent-ready platform.
Phoenix Tracing
Instrument LLM applications with OpenInference tracing.
Foundry Hosted Agent CopilotKit
Guidance for developing agentic web apps on Azure.
Power Automate Foundation
Connect AI agents to Power Automate seamlessly.
Power Automate Flow Builder
Efficiently build and deploy Power Automate flows programmatically.
