microsoft-teams

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Microsoft Teams Skill

Microsoft Teams Skill

Overview

概述

Claude can interact with Microsoft Teams to send messages, manage channels, schedule meetings, and collaborate with team members. Supports chat, channels, file sharing, and meeting management.
Claude可以与Microsoft Teams进行交互,发送消息、管理频道、安排会议并与团队成员协作。支持聊天、频道、文件共享和会议管理。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/microsoft-teams/install.sh | bash
Or manually:
bash
cp -r skills/microsoft-teams ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/microsoft-teams/install.sh | bash
或者手动安装:
bash
cp -r skills/microsoft-teams ~/.canifi/skills/

Setup

配置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

首先,确保已安装canifi-env:

canifi-env set MICROSOFT_EMAIL "your-email@outlook.com"
undefined
canifi-env set MICROSOFT_EMAIL "your-email@outlook.com"
undefined

Privacy & Authentication

隐私与认证

Your credentials, your choice. Canifi LifeOS respects your privacy.
你的凭据,由你掌控。 Canifi LifeOS尊重你的隐私。

Option 1: Manual Browser Login (Recommended)

选项1:手动浏览器登录(推荐)

If you prefer not to share credentials with Claude Code:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭据:
  1. 使用CDP模式完成浏览器自动化设置
  2. 在Playwright控制的Chrome窗口中手动登录该服务
  3. Claude将使用你的已认证会话,全程不会获取你的密码

Option 2: Environment Variables

选项2:环境变量

If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果你愿意共享凭据,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
注意:存储在canifi-env中的凭据仅能在你的本地机器上访问,绝不会被传输。

Capabilities

功能

  • Send and read chat messages
  • Post in team channels
  • Create and manage channels
  • Schedule and join meetings
  • Share files in conversations
  • Mention team members
  • React to messages
  • Create and manage teams
  • Search messages and files
  • Set status and availability
  • Create meeting notes
  • Manage team membership
  • 发送和读取聊天消息
  • 在团队频道中发布内容
  • 创建和管理频道
  • 安排和加入会议
  • 在对话中共享文件
  • 提及团队成员
  • 对消息做出反应
  • 创建和管理团队
  • 搜索消息和文件
  • 设置状态和可用性
  • 创建会议笔记
  • 管理团队成员

Usage Examples

使用示例

Example 1: Send Message

示例1:发送消息

User: "Send a message to the Marketing channel about the campaign launch"
Claude: Opens Teams, navigates to Marketing channel, posts message.
        Confirms: "Message posted to Marketing channel"
用户:"给Marketing频道发送一条关于活动启动的消息"
Claude:打开Teams,导航到Marketing频道,发布消息。
        确认:"消息已发布到Marketing频道"

Example 2: Schedule Meeting

示例2:安排会议

User: "Schedule a team meeting for tomorrow at 2pm"
Claude: Creates meeting invite for tomorrow 2pm,
        adds team members, sends invitation.
        Returns: "Meeting scheduled, invite sent to team"
用户:"安排明天下午2点的团队会议"
Claude:创建明天下午2点的会议邀请,
        添加团队成员,发送邀请。
        返回:"会议已安排,邀请已发送给团队成员"

Example 3: Read Channel

示例3:查看频道内容

User: "What's new in the Engineering channel?"
Claude: Opens Engineering channel, reads recent messages.
        Reports: "Recent updates:
        1. John posted about API changes
        2. Sarah shared test results..."
用户:"Engineering频道有什么新内容?"
Claude:打开Engineering频道,读取最近的消息。
        汇报:"最新更新:
        1. John发布了关于API变更的内容
        2. Sarah分享了测试结果..."

Example 4: Direct Message

示例4:发送私信

User: "Send Mike a message about the deadline extension"
Claude: Opens chat with Mike, sends message about deadline.
        Confirms: "Message sent to Mike"
用户:"给Mike发一条关于截止日期延期的消息"
Claude:打开与Mike的聊天窗口,发送关于截止日期的消息。
        确认:"消息已发送给Mike"

Authentication Flow

认证流程

  1. Claude navigates to teams.microsoft.com via Playwright MCP
  2. Authenticates with MICROSOFT_EMAIL if needed
  3. Handles 2FA if prompted (notifies user via iMessage)
  4. Maintains session for Teams operations
  1. Claude通过Playwright MCP导航到teams.microsoft.com
  2. 如有需要,使用MICROSOFT_EMAIL进行认证
  3. 若提示双因素认证(2FA),通过iMessage通知用户
  4. 维持会话以进行Teams操作

Selectors Reference

选择器参考

javascript
// Teams list
'[aria-label="Teams and Channels"]'

// Channel list
'.channel-list'

// Chat list
'[aria-label="Chats"]'

// Message compose
'[aria-label="Type a new message"]'

// Send button
'[aria-label="Send"]'

// New meeting
'[aria-label="New meeting"]'

// Calendar
'[aria-label="Calendar"]'

// Search
'[aria-label="Search"]'

// New team
'[aria-label="Create a new team"]'

// Add member
'[aria-label="Add member"]'

// Files tab
'[aria-label="Files"]'
javascript
// Teams列表
'[aria-label="Teams and Channels"]'

// 频道列表
'.channel-list'

// 聊天列表
'[aria-label="Chats"]'

// 消息输入框
'[aria-label="Type a new message"]'

// 发送按钮
'[aria-label="Send"]'

// 新建会议
'[aria-label="New meeting"]'

// 日历
'[aria-label="Calendar"]'

// 搜索
'[aria-label="Search"]'

// 新建团队
'[aria-label="Create a new team"]'

// 添加成员
'[aria-label="Add member"]'

// 文件标签页
'[aria-label="Files"]'

Error Handling

错误处理

  • Login Failed: Retry 3 times, notify user via iMessage
  • Session Expired: Re-authenticate automatically
  • Channel Not Found: List available channels, ask for clarification
  • Message Send Failed: Retry, save as draft
  • Meeting Create Failed: Check calendar conflicts, retry
  • Team Not Accessible: Notify user of permission issue
  • 登录失败:重试3次,通过iMessage通知用户
  • 会话过期:自动重新认证
  • 频道未找到:列出可用频道,请求用户澄清
  • 消息发送失败:重试,保存为草稿
  • 会议创建失败:检查日历冲突,重试
  • 团队无法访问:通知用户权限问题

Self-Improvement Instructions

自我改进说明

When you learn a better way to accomplish a task with Teams:
  1. Document the improvement in your response
  2. Suggest updating this skill file with the new approach
  3. Include specific navigation patterns that work better
  4. Note any new features or integrations
当你学会了使用Teams完成任务的更好方法时:
  1. 在回复中记录改进内容
  2. 建议用新方法更新此技能文件
  3. 包含更有效的特定导航模式
  4. 记录任何新功能或集成

Notes

注意事项

  • Teams web app has most desktop features
  • Notifications may require permissions
  • File sharing integrates with OneDrive/SharePoint
  • Meeting recordings saved to OneDrive or SharePoint
  • @mentions notify specific users
  • Status syncs with Outlook calendar
  • Loop components enable collaborative content
  • Keyboard shortcuts available for navigation
  • Teams网页应用具备桌面端的大部分功能
  • 通知可能需要权限
  • 文件共享与OneDrive/SharePoint集成
  • 会议录制内容保存到OneDrive或SharePoint
  • @提及会通知特定用户
  • 状态与Outlook日历同步
  • Loop组件支持协作内容创作
  • 提供导航快捷键