New to Claude Skills? Learn how to install them →

github on GitHub

Microsoft 365 Declarative Agents

OfficialFree

Develop Microsoft 365 Copilot agents with ease.

by github37.7k stars on github/awesome-copilot
2 views
Updated Aug 10, 2026
Get this skill

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 source

1. Install with the skills CLI

npx skills add github/awesome-copilot/declarative-agents --agent claude-code

2. 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 github

Microsoft 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:

  1. Agent Planning: Define purpose, target users, and core capabilities
  2. Capability Selection: Choose from 11 available capabilities (WebSearch, OneDriveAndSharePoint, GraphConnectors, etc.)
  3. Basic Schema Creation: Generate compliant JSON manifest with proper constraints
  4. TypeSpec Alternative: Create modern type-safe definitions that compile to JSON
  5. Testing Setup: Configure Agents Playground for local testing
  6. 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:

  1. Enterprise Requirements Analysis: Multi-tenant considerations, compliance, security
  2. Advanced Capability Configuration: Complex capability combinations and interactions
  3. Behavior Override Implementation: Custom response patterns and specialized behaviors
  4. Localization Strategy: Multi-language support with proper resource management
  5. Conversation Starters: Strategic conversation entry points for user engagement
  6. Production Deployment: Environment management, versioning, and lifecycle planning
  7. Monitoring & Analytics: Implementation of tracking and performance optimization

Workflow 3: Validation & Optimization

Perfect for: Existing agents, troubleshooting, performance optimization

I'll perform:

  1. Schema Compliance Validation: Full v1.5 specification adherence checking
  2. Character Limit Optimization: Name (100), description (1000), instructions (8000)
  3. Capability Audit: Verify proper capability configuration and usage
  4. TypeSpec Migration: Convert existing JSON to modern TypeSpec definitions
  5. Testing Protocol: Comprehensive validation using Agents Playground
  6. Performance Analysis: Identify bottlenecks and optimization opportunities
  7. 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)

  1. WebSearch: Internet search functionality
  2. OneDriveAndSharePoint: File and content access
  3. GraphConnectors: Enterprise data integration
  4. MicrosoftGraph: Microsoft 365 service integration
  5. TeamsAndOutlook: Communication platform access
  6. PowerPlatform: Power Apps and Power Automate integration
  7. BusinessDataProcessing: Enterprise data analysis
  8. WordAndExcel: Document and spreadsheet manipulation
  9. CopilotForMicrosoft365: Advanced Copilot features
  10. EnterpriseApplications: Third-party system integration
  11. 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