Token导航 LogoToken导航TokenDH.com
开发external-servicegithub未标认证来源可访问许可证需确认审计异常

m365-agent-developerm365 Agent 开发商

Agent Skill

m365-agent-developer 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

465

周安装

19

GitHub Stars

4

下载量

149
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:m365-agent-developer(m365 Agent 开发商)
来源仓库:https://github.com/sebastienlevert/m365-copilot-skills
仓库路径:skills/m365-agent-developer
安装命令:
npx skills add https://github.com/sebastienlevert/m365-copilot-skills --skill m365-agent-developer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sebastienlevert/m365-copilot-skills --skill m365-agent-developer

简介

m365-agent-developer 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。

  • 它可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 安装命令为 npx skills add https://github.com/sebastienlevert/m365-copilot-skills --skill m365-agent-developer。
  • 当前分类为开发,适用于 Codex、Claude、Cursor、Gemini CLI。

SKILL.md

M365 Agent Developer

This comprehensive skill provides expert guidance on the Microsoft 365 Copilot agent development lifecycle: from architectural design through TypeSpec implementation to deployment and publishing using the Agents Toolkit (ATK) CLI.

⚠️ For creating new projects, use the m365-agent-scaffolder skill first ⚠️

🚨 CRITICAL DEPLOYMENT RULE 🚨 When using this skill to make edits to an agent, you MUST ALWAYS deploy the agent using atk provision before returning to the user. This ensures changes are immediately reflected in M365 Copilot. Never return to the user with undeployed changes.


When to Use This Skill

Use this skill when:

  • Designing the architecture for a new M365 Copilot agent
  • Implementing TypeSpec code for agent capabilities and API plugins
  • Configuring agent instructions and conversation starters
  • Provisioning and deploying agents using ATK CLI
  • Managing agent lifecycle across environments (dev, staging, production)
  • Reviewing existing agent architectures for best practices
  • Troubleshooting TypeSpec compilation or deployment issues
  • Adding new capabilities or API plugins to existing agents
  • Implementing security patterns and compliance requirements
  • Packaging and publishing agents for sharing

Do NOT use this skill for creating new empty projects - use the m365-agent-scaffolder skill instead.

Key References


Instructions

Follow these step-by-step instructions when working with M365 Copilot agents:

Step 1: Understand the Requirements

Action: Gather and analyze the agent requirements:

  • Identify the agent's primary purpose and target users
  • Determine required data sources (M365 services, external APIs)
  • List necessary actions the agent must perform
  • Identify security and compliance requirements

Why it's important: Clear requirements drive architectural decisions and ensure the agent meets user needs.

Step 2: Design the Agent Architecture

Action: Create a comprehensive architectural design:

  • Select deployment model (personal or shared)
  • Choose appropriate M365 capabilities with scoping
  • Design API plugin integrations if needed
  • Plan authentication and authorization strategy
  • Design conversation flow and instructions

Reference: Follow the Architectural Design section and patterns-and-frameworks.md

Step 3: Implement TypeSpec Code

Action: Write type-safe agent code using TypeSpec:

  • Define agent with @agent decorator
  • Configure capabilities with appropriate scoping
  • Implement API plugin actions with authentication
  • Write clear instructions and conversation starters
  • Document all models and operations with @doc

Reference: Follow TypeSpec Best Practices and official typespec-decorators.md

⚠️ IMPORTANT: After making any edits to TypeSpec code, you MUST compile and deploy the agent (Steps 4-5) before returning to the user.

Step 4: Compile and Validate

Action: Compile TypeSpec to validate the implementation:

npm run compile

Why it's important: Compilation catches syntax errors and validates decorator usage before deployment.

Step 5: Provision Azure Resources

Action: Provision required Azure resources and register the agent:

npx -p @microsoft/m365agentstoolkit-cli@latest atk provision --env local

Result: Returns a test URL like https://m365.cloud.microsoft/chat/?titleId=U_abc123xyz

Step 6: Test and Iterate

Action: Test the agent in Microsoft 365 Copilot:

  • Use the provisioned test URL
  • Test all conversation starters
  • Verify capability access and scoping
  • Test error handling and edge cases
  • Validate security controls

Step 7: Deploy to Environments

Action: Deploy to staging/production environments:

npx -p @microsoft/m365agentstoolkit-cli@latest atk provision --env prod

Reference: Follow deployment.md for environment management and CI/CD patterns

Step 8: Package and Share

Action: Package and share the agent:

# Package the agent
npx -p @microsoft/m365agentstoolkit-cli@latest atk provision --env dev

# Share to tenant (for shared agents)
npx -p @microsoft/m365agentstoolkit-cli@latest atk share --scope tenant --env dev

Reference: See deployment.md for sharing strategies


Critical Workflow Rules

Always Deploy After Edits

RULE: When making any changes to an agent (TypeSpec code, instructions, capabilities, API plugins), you MUST complete the following workflow before returning to the user:

  1. Compile the TypeSpec code: npm run compile
  2. Provision/deploy the agent: npx -p @microsoft/m365agentstoolkit-cli@latest atk provision --env local
  3. Confirm deployment succeeded and provide the test URL

Why this is critical:

  • Changes are not reflected in M365 Copilot until the agent is redeployed
  • Users expect to test changes immediately after you make them
  • Undeployed changes create confusion and waste time
  • This ensures a complete, testable solution is always delivered

Never skip deployment: Even for minor changes like updating instructions or conversation starters, always redeploy. M365 Copilot only sees the deployed version.

Always Clean Up Unused Files

RULE: Every time you work on an agent project, check for and remove unused or obsolete files:

  1. Check for orphaned files: Look for files not referenced anywhere in the project
  2. Remove generated artifacts: Delete old build outputs, temp files, and stale generated code
  3. Clean unused dependencies: Remove unused imports and dependencies
  4. Delete obsolete documentation: Remove outdated docs that no longer apply

Files to check and potentially remove:

  • TODO.md or planning files no longer needed
  • Old backup files (.bak, .old, .orig)
  • Unused TypeSpec files not imported anywhere
  • Stale environment files (.env.old, .env.backup)
  • Empty or placeholder files
  • Commented-out code blocks that will never be used
  • Unused model definitions or operations

Why this is critical:

  • Clean projects are easier to understand and maintain
  • Unused files create confusion about what's active
  • Old files may contain outdated patterns or security issues
  • Smaller projects are faster to compile and deploy

Before returning to the user: Always verify the project contains only necessary, actively-used files.


Best Practices

Follow these best practices for successful M365 Copilot agent development:

CategoryKey Focus
SecurityLeast privilege scoping, credential management, input validation
PerformanceScoped queries, efficient API design, caching strategies
Error HandlingGraceful degradation, clear messages, retry logic
TestingConversation starters, edge cases, security testing
ComplianceData residency, retention policies, RBAC
MaintainabilityDocumentation, naming conventions, version control
Conversation DesignClear instructions, actionable starters, appropriate tone
DeploymentEnvironment strategy, CI/CD, version management

Reference: best-practices.md for detailed guidelines.


Examples

Common workflow examples for M365 Copilot agent development:

ExampleDescription
Compile and ValidateLocal TypeSpec validation before deployment
Development and ProvisioningFull dev workflow with test URL
Provision and ShareDeploy and share agent with tenant users
Package for DistributionCreate distributable package for production

Reference: examples.md for complete workflow scripts.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.64%
按下载量换算52

Claude

31.82%
按下载量换算47

Cursor

21.37%
按下载量换算32

Gemini CLI

9.59%
按下载量换算14

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills