Teams-Automation

SKILL效率
效率 未标注权限 许可证不明确
安装这个技能

Microsoft Graph API 统一调用封装,提供 Microsoft 365 办公自动化能力。 支持读取及发送:邮件、日历、Teams 聊天/频道消息(含私聊发送)、用户搜索、 在线状态、文件、SharePoint 站点、任务等全部已授权操作。 当用户需要查询/发送邮件、查看日历、读取/发送 Teams 消息、搜索用户、查看在线状态、 访问 SharePoint/OneDrive 文件时触发此技能。 Chinese: Microsoft Graph API 统一封装,提供邮件/日历/Teams消息收发/用户/文件/站点/任务 办公自动化全能力。

一句话选型结论

按资料字段整理

Teams-Automation是效率类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类效率 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_c334ae17/teams-automation
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

效率
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_c334ae17仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791737331
正文体量9.0 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
整理待办与日程

把零散任务收进清单,排出优先级。

批量处理重复任务

把固定动作做成模板,重复执行。

把流程写成清单

把口头流程整理成可复用的步骤。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在效率场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
Teams-Automation当前 未标注权限 未标注 未标注 未标注 有
Nano PDF 文档 联网访问 ClawHub 市场 424.9 万 OpenClaw 有
自动更新程序 浏览器控制 ClawHub 市场 296.4 万 OpenClaw 有
Gemini 助手 联网访问 ClawHub 市场 254.7 万 OpenClaw 有
word DOCX 文档 联网访问 ClawHub 市场 239.6 万 OpenClaw 有
Excel XLSX 前端 联网访问 ClawHub 市场 227.0 万 OpenClaw 有

SKILL.md 全文

9.0 KB
模型实际读到的说明书原文,来自技能仓库

Teams Automation Skill

Unified Microsoft Graph API client for Microsoft 365.
Supports the full office automation lifecycle: Mail, Calendar, Teams Chat/Channel
(read & send), Users, Presence, Files, SharePoint Sites, and Tasks.

When to Use

Trigger this skill when the user:
- Wants to read/search/send emails via Graph API
- Needs to query calendar events
- Asks about Teams messages (chats or channel) — read or send
- Wants to search/lookup users in the organization
- Checks someone's online/availability status
- Needs to access SharePoint sites or OneDrive files
- Wants to read Planner/To Do tasks
- Mentions "Graph API", "Teams", "teams-automation", "邮件", "日历", "Teams消息", "发送消息", etc.

Quick Start

Prerequisites

  1. Register an Azure AD application:
    - Go to Azure Portal → App registrations → New registration
    - Set redirect URI to https://login.microsoftonline.com/common/oauth2/nativeclient
    - Under API Permissions, add the required Microsoft Graph delegated permissions (see Permissions)
    - Under Authentication, enable "Allow public client flows" (for device-code flow)
    - 复制 config.example.yaml 为 config.yaml,填入你的 client_id 和 tenant

Authentication Flow

CRITICAL — AI caller must follow this procedure exactly:

Authentication is a two-step, user-driven process — never auto-poll:

Step 1: Check cache

Read ~/.workbuddy/.msal_token.json
If valid token exists → proceed to API call immediately (no user interaction)
If expired → try refresh, then proceed
If missing → go to Step 2

Step 2: Start device-code flow (ONLY when no cached token)

1. Run: python scripts/graph_client.py --start-auth
2. **ALWAYS output the device code to the user immediately:**
   "请在浏览器打开 https://login.microsoft.com/device 并输入代码: XXXXXXXX"
3. **STOP HERE and WAIT** — do NOT poll, do NOT continue
4. Tell the user: "完成后告诉我继续"

Step 3: Complete auth (ONLY after user confirms they finished in browser)

1. Run: python scripts/graph_client.py --complete-auth
2. Token is cached at ~/.workbuddy/.msal_token.json
3. Now proceed to the actual API call (email, calendar, etc.)

Mandatory rules:
- If cached token is valid → skip auth entirely, no output needed
- If auth required → MUST use --start-auth first, display the device code, and WAIT
- NEVER auto-poll — the user must explicitly tell you to continue before running --complete-auth
- Token cache path is fixed: ~/.workbuddy/.msal_token.json

The token is shared across all modules — authenticate once, use everywhere.

Basic Usage

# Authentication (two-step)
python scripts/graph_client.py --start-auth     # Step 1: display device code, wait for user
python scripts/graph_client.py --complete-auth  # Step 2: poll for token after user authenticates

# Send an email
python scripts/graph_client.py --send-email --to "user@example.com" --subject "Test" --body "Hello"

# Read emails
python scripts/graph_client.py --email-list 15

# Read calendar events
python scripts/graph_client.py --calendar --days 7

# List Teams chats
python scripts/graph_client.py --chats

# Read chat messages with a person
python scripts/graph_client.py --chat-messages --person "UserName"

# Send a message to a person by name (auto finds user, finds/creates chat, sends)
python scripts/graph_client.py --send-to-person "TargetUser" --message "Hi, this is a test"

# Send a message to yourself
python scripts/graph_client.py --send-to-self "Reminder for later"

# Send a message to an existing chat by ID
python scripts/graph_client.py --send-chat-message "Hello" --chat-id "19:xxx@thread.v2"

# Search users
python scripts/graph_client.py --user-search "UserName"

# Check user presence (by email/UPN)
python scripts/graph_client.py --presence "user@example.com"

# Quick presence check by name (search + status)
python scripts/graph_client.py --status "UserName"

# Get my profile
python scripts/graph_client.py --me

# List SharePoint sites
python scripts/graph_client.py --sites

# List document libraries in a SharePoint site
python scripts/graph_client.py --site-drives "SiteName"

# List folder contents (OneDrive root by default)
python scripts/graph_client.py --ls
# List specific folder
python scripts/graph_client.py --ls --folder "MyFolder"
# List SharePoint folder
python scripts/graph_client.py --ls --drive "DRIVE_ID" --folder "SubFolder"

# Download a file
python scripts/graph_client.py --download "ITEM_ID" --save "./file.xlsx"

From Python Code

from graph_client import GraphClient

client = GraphClient()
client.ensure_token()  # Auto auth

# Email
emails = client.list_emails(count=15)
unread = client.list_emails(count=10, filter_unread=True)
client.send_email("Subject", "Body text", "user@example.com")

# Calendar
events = client.list_events(days_back=7)

# Teams
chats = client.list_chats()
msgs = client.get_chat_messages(person_name="UserName")
channels = client.list_channels(team_name="TeamName")

# Teams — Send messages
result = client.send_message_to_person("TargetUser", "Hello!")
client.send_chat_message(chat_id="19:xxx@thread.v2", content="Hi")
client.ensure_self_chat()         # get or create self-chat
client.find_or_create_chat(user_id="xxx")  # find/create 1:1 chat

# Users
user = client.get_me()
results = client.search_users("UserName")
presence = client.get_presence("user@example.com")
status_results = client.quick_presence("UserName")
manager = client.get_manager()

# Files & Sites
files = client.list_recent_files()
sites = client.list_sites()
site = client.get_site("SiteName")                        # find site by name
drives = client.list_site_drives("SiteName")              # list doc libraries
items = client.list_folder_items("me", "MyFolder")        # OneDrive folder
items = client.list_folder_items(drive_id, "SubFolder")   # SharePoint folder
path = client.download_file("me", item_id, "./file.txt")  # download

# Tasks
tasks = client.list_tasks()

Permissions

Scope API
Mail.Read GET /me/messages
Mail.Send POST /me/sendMail
Calendars.Read GET /me/events
Chat.Read GET /me/chats, GET /chats/{id}/messages
Chat.ReadWrite POST /chats, POST /chats/{id}/messages
Team.ReadBasic.All GET /teams
Channel.ReadBasic.All GET /teams/{id}/channels
ChannelMessage.Read.All GET /teams/{id}/channels/{id}/messages
User.Read GET /me
User.Read.All GET /users
Presence.Read.All POST /communications/getPresencesByUserId
Files.Read.All GET /me/drive, GET /drives/{id}
Sites.Read.All GET /sites
Tasks.Read GET /me/planner/tasks

Files

teams-automation/
├── .gitignore              # Prevents config.yaml from leaking
├── SKILL.md                # Skill documentation
├── config.example.yaml     # Configuration template
├── config.yaml             # Your local config (gitignored)
└── scripts/
    └── graph_client.py     # Unified Graph API client

Configuration

config.yaml structure:

Field Required Description
client_id Yes Azure AD application (client) ID
tenant Yes Azure AD tenant domain (e.g. yourcompany.com)
scopes No Custom permission scopes (defaults to read + write scopes)

Token Cache

Token is stored at ~/.workbuddy/.msal_token.json — a persistent cache shared by all Graph API calls in this skill. Once authenticated, all subsequent calls reuse the cached token automatically; re-authentication only triggers when the token expires.

Path resolution:

OS Token cache file
Linux / macOS ~/.workbuddy/.msal_token.json
Windows %USERPROFILE%\.workbuddy\.msal_token.json

Important for AI callers: Before making Graph API calls, check if ~/.workbuddy/.msal_token.json exists and its token is still valid. If expired, run --auth to refresh. Do NOT re-authenticate on every call — read the cache first.

{
  "access_token": "eyJ...",
  "refresh_token": "0.A..."
}

常见问题

5 问
答案由本站依据条目字段整理
Teams-Automation怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_c334ae17/teams-automation。安装方式为未标注。装完刷新技能列表或重开客户端。

Teams-Automation支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

Teams-Automation权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

Teams-Automation收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

Teams-Automation用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。