简介
基于 Playwright 浏览器自动化的 Microsoft 365 CLI 工具,无需 Azure AD 注册即可管理 Outlook 日历邮件,适合追求便捷但需承担安全风险的开发者。
原始描述
Microsoft 365 / Outlook CLI for calendar and email. Use when managing Outlook calendar (view, create, update, delete events, find meeting times, respond to invitations), sending/reading emails, or searching for people/rooms in the organization.
通过你的 Agent 添加
安装目录:clippy/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
Clippy 综合评估
核心用法
Clippy 是一款通过浏览器自动化(Playwright)操控 Microsoft 365 / Outlook 的命令行工具,并非直接调用 Microsoft Graph API。用户需先通过 clippy login --interactive 完成浏览器交互式登录,建议使用 clippy keepalive 保持会话活跃以避免频繁重新认证。
日历管理:支持查看当日/指定日期/周视图日程、创建单次或周期性会议(含 Teams 链接与会议室自动查找)、更新/删除事件、响应会议邀请(接受/拒绝/暂定),以及基于多参会人空闲时间的智能排期 (findtime)。
邮件操作:支持收件箱/已发送/草稿箱浏览、未读邮件筛选、关键词搜索、邮件阅读、附件下载、发送邮件(支持 Markdown 格式、CC、附件)、回复/转发/全部回复,以及邮件标记已读、旗帜标记、归档等管理动作。
组织查询:可搜索人员与会议室资源。
显著优点
- 零配置门槛:无需 Azure AD 应用注册,省去管理员权限申请流程,个人即可快速上手
- 功能覆盖完整:涵盖日历、邮件、人员搜索三大高频办公场景,支持周期性会议、智能排期等进阶功能
- 浏览器自动化透明:基于 Playwright 的自动化逻辑清晰,用户可见浏览器操作过程
- JSON 输出支持:便于与其他 CLI 工具或脚本管道集成
- 开源可查:GitHub 源码公开,社区驱动维护
潜在缺点与局限性
- 稳定性依赖浏览器:受 Outlook Web UI 改版影响,CSS 选择器可能失效导致功能中断
- 会话管理成本:需常驻 keepalive 进程或系统服务维持登录状态,容器/无服务器环境部署困难
- 性能瓶颈:浏览器自动化相比原生 API 响应延迟更高,不适合高频批量操作
- 安全合规风险:部分企业 IT 策略禁止浏览器自动化工具,可能触发安全审计告警
- 无官方背书:Microsoft 未认证此工具,企业级 SLA 与支持缺失
适合人群
- 命令行重度用户、开发者、DevOps 工程师
- 无 Azure 管理员权限但需要自动化 M365 操作的个体用户
- 偏好脚本化办公流程的技术型知识工作者
- 不适合:对数据合规要求严苛的金融/医疗/政府机构,或需要大规模企业集成的场景
常规风险
- 凭据安全:登录会话存储于本地
~/.config/clippy/,需确保目录权限正确(建议 700)
- 网络环境敏感:企业 SSO/MFA 环境可能中断自动化流程
- 操作不可撤销:CLI 删除/发送操作无二次确认,建议先
--dry-run 或备份
- 隐私泄露:keepalive 进程持续运行可能暴露屏幕内容,共享机器需谨慎
- 稳定性依赖浏览器:受 Outlook Web UI 改版影响,CSS 选择器可能失效导致功能中断
- 会话管理成本:需常驻 keepalive 进程或系统服务维持登录状态,容器/无服务器环境部署困难
- 性能瓶颈:浏览器自动化相比原生 API 响应延迟更高,不适合高频批量操作
- 安全合规风险:部分企业 IT 策略禁止浏览器自动化工具,可能触发安全审计告警
- 无官方背书:Microsoft 未认证此工具,企业级 SLA 与支持缺失
适合人群
- 命令行重度用户、开发者、DevOps 工程师
- 无 Azure 管理员权限但需要自动化 M365 操作的个体用户
- 偏好脚本化办公流程的技术型知识工作者
- 不适合:对数据合规要求严苛的金融/医疗/政府机构,或需要大规模企业集成的场景
常规风险
- 凭据安全:登录会话存储于本地
~/.config/clippy/,需确保目录权限正确(建议 700)
- 网络环境敏感:企业 SSO/MFA 环境可能中断自动化流程
- 操作不可撤销:CLI 删除/发送操作无二次确认,建议先
--dry-run 或备份
- 隐私泄露:keepalive 进程持续运行可能暴露屏幕内容,共享机器需谨慎
- 凭据安全:登录会话存储于本地
~/.config/clippy/,需确保目录权限正确(建议 700) - 网络环境敏感:企业 SSO/MFA 环境可能中断自动化流程
- 操作不可撤销:CLI 删除/发送操作无二次确认,建议先
--dry-run或备份 - 隐私泄露:keepalive 进程持续运行可能暴露屏幕内容,共享机器需谨慎
技能正文
name: clippy
description: Microsoft 365 / Outlook CLI for calendar and email. Use when managing Outlook calendar (view, create, update, delete events, find meeting times, respond to invitations), sending/reading emails, or searching for people/rooms in the organization.
metadata: {"clawdbot":{"requires":{"bins":["clippy"]}}}
Clippy - Microsoft 365 CLI
Source: https://github.com/foeken/clippy
Works through the M365 web UI via browser automation (Playwright), not the Graph API. No Azure AD app registration required - just login with your browser.
Install
git clone https://github.com/foeken/clippy.git
cd clippy && bun install
bun run src/cli.ts --help
git clone https://github.com/foeken/clippy.git
cd clippy && bun install
bun run src/cli.ts --help
Or link globally: bun link
Authentication
# Interactive login (opens browser, establishes session)
clippy login --interactive
# Check auth status
clippy whoami
Keepalive (recommended)
# Interactive login (opens browser, establishes session)
clippy login --interactive
# Check auth status
clippy whoami
Keep a browser session alive to prevent token expiry:
# Start keepalive (keeps browser open, refreshes every 10min)
clippy keepalive --interval 10
For persistent operation, set up as a launchd service (macOS) or systemd (Linux).
Health monitoring: Keepalive writes to ~/.config/clippy/keepalive-health.txt on each successful refresh. Check if this file is stale (>15min) to detect failures.
Calendar
# Today's events
clippy calendar
# Specific day
clippy calendar --day tomorrow
clippy calendar --day monday
clippy calendar --day 2024-02-15
# Week view
clippy calendar --week
# With details (description, attendees)
clippy calendar --details
Create Events
# Today's events
clippy calendar
# Specific day
clippy calendar --day tomorrow
clippy calendar --day monday
clippy calendar --day 2024-02-15
# Week view
clippy calendar --week
# With details (description, attendees)
clippy calendar --details
clippy create-event "Title" 09:00 10:00
# Full options
clippy create-event "Meeting" 14:00 15:00 \
--day tomorrow \
--description "Meeting notes" \
--attendees "alice@company.com,bob@company.com" \
--teams \
--find-room
# Recurring
clippy create-event "Standup" 09:00 09:15 --repeat daily
clippy create-event "Sync" 14:00 15:00 --repeat weekly --days mon,wed,fri
Update/Delete Events
clippy update-event 1 --title "New Title"
clippy update-event 1 --start 10:00 --end 11:00
clippy delete-event 1
clippy delete-event 1 --message "Need to reschedule"
Respond to Invitations
clippy respond # List pending
clippy respond accept --id <eventId>
clippy respond decline --id <eventId> --message "Conflict"
clippy respond tentative --id <eventId>
Find Meeting Times
clippy findtime
clippy findtime --attendees "alice@company.com,bob@company.com"
clippy findtime --duration 60 --days 5
Email
# Inbox
clippy mail
clippy mail --unread
clippy mail -n 20
clippy mail --search "invoice"
# Other folders
clippy mail sent
clippy mail drafts
clippy mail archive
# Read email
clippy mail -r <number>
# Download attachments
clippy mail -d <number> -o ~/Downloads
Send Email
clippy send \
--to "recipient@example.com" \
--subject "Subject" \
--body "Message body"
# With CC, attachments, markdown
clippy send \
--to "alice@example.com" \
--cc "manager@example.com" \
--subject "Report" \
--body "**See attached**" \
--markdown \
--attach "report.pdf"
Reply/Forward
clippy mail --reply <number> --message "Thanks!"
clippy mail --reply-all <number> --message "Got it"
clippy mail --forward <number> --to-addr "colleague@example.com"
Email Actions
clippy mail --mark-read <number>
clippy mail --flag <number>
clippy mail --move <number> --to archive
People/Room Search
clippy find "john" # People
clippy find "conference" --rooms # Rooms
JSON Output
clippy calendar --json
clippy mail --json
Configuration
clippy update-event 1 --title "New Title"
clippy update-event 1 --start 10:00 --end 11:00
clippy delete-event 1
clippy delete-event 1 --message "Need to reschedule"
clippy respond # List pending
clippy respond accept --id <eventId>
clippy respond decline --id <eventId> --message "Conflict"
clippy respond tentative --id <eventId>
Find Meeting Times
clippy findtime
clippy findtime --attendees "alice@company.com,bob@company.com"
clippy findtime --duration 60 --days 5
Email
# Inbox
clippy mail
clippy mail --unread
clippy mail -n 20
clippy mail --search "invoice"
# Other folders
clippy mail sent
clippy mail drafts
clippy mail archive
# Read email
clippy mail -r <number>
# Download attachments
clippy mail -d <number> -o ~/Downloads
Send Email
clippy send \
--to "recipient@example.com" \
--subject "Subject" \
--body "Message body"
# With CC, attachments, markdown
clippy send \
--to "alice@example.com" \
--cc "manager@example.com" \
--subject "Report" \
--body "**See attached**" \
--markdown \
--attach "report.pdf"
Reply/Forward
clippy mail --reply <number> --message "Thanks!"
clippy mail --reply-all <number> --message "Got it"
clippy mail --forward <number> --to-addr "colleague@example.com"
Email Actions
clippy mail --mark-read <number>
clippy mail --flag <number>
clippy mail --move <number> --to archive
People/Room Search
clippy find "john" # People
clippy find "conference" --rooms # Rooms
JSON Output
clippy calendar --json
clippy mail --json
Configuration
clippy findtime
clippy findtime --attendees "alice@company.com,bob@company.com"
clippy findtime --duration 60 --days 5
# Inbox
clippy mail
clippy mail --unread
clippy mail -n 20
clippy mail --search "invoice"
# Other folders
clippy mail sent
clippy mail drafts
clippy mail archive
# Read email
clippy mail -r <number>
# Download attachments
clippy mail -d <number> -o ~/Downloads
Send Email
clippy send \
--to "recipient@example.com" \
--subject "Subject" \
--body "Message body"
# With CC, attachments, markdown
clippy send \
--to "alice@example.com" \
--cc "manager@example.com" \
--subject "Report" \
--body "**See attached**" \
--markdown \
--attach "report.pdf"
clippy mail --reply <number> --message "Thanks!"
clippy mail --reply-all <number> --message "Got it"
clippy mail --forward <number> --to-addr "colleague@example.com"
Email Actions
clippy mail --mark-read <number>
clippy mail --flag <number>
clippy mail --move <number> --to archive
People/Room Search
clippy find "john" # People
clippy find "conference" --rooms # Rooms
JSON Output
clippy calendar --json
clippy mail --json
Configuration
clippy mail --mark-read <number>
clippy mail --flag <number>
clippy mail --move <number> --to archive
clippy find "john" # People
clippy find "conference" --rooms # Rooms
JSON Output
clippy calendar --json
clippy mail --json
Configuration
clippy calendar --json
clippy mail --json
Profile directory can be overridden:
export CLIPPY_PROFILE_DIR=~/.config/clippy/my-profile
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。