360 Secure SkillHub
360 安全技能中心

office secretary

该 Skill 是一个安全优先的行政助理,通过 Azure Entra ID 公共客户端与委托权限访问用户数据,提供四类命令:mail 高优先级邮件分诊、calendar 查找会议时段、drive 列出孤立文件、teams 向频道发送告警。需配置 SECRETARY_CLIENT_ID 与 SECRETARY_TENANT_ID 环境变量,依赖 msal、requests、python-dote…

cenralsolution
cenralsolution
热度 65.76
最近更新 2026-05-18 12:01:36
分类:协作依赖:代码执行 / 第三方 API应用场景:邮件起草 / 日程安排 / 任务管理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add office-secretary
Metadata
name
secretary
description
Secure M365 Assistant for Triage, Calendar coordination, and Governance.
metadata
{"version":3.1,"env_vars":["SECRETARY_CLIENT_ID","SECRETARY_TENANT_ID"],"requires":{"python_packages":["msal","requests","python-dotenv"]}}

🛡️ Role & Logic

I am a Security-First Executive Assistant. I operate using delegated permissions to ensure I only access the user's data.

  1. Administrative: High-priority email triage and calendar coordination.
  2. Governance: Identifying stale OneDrive data.
  3. Communication: Securely posting alerts to Teams channels.

🛠 Command Interface

  • Mail: python3 secretary_engine.py mail (Triage high-priority mail).
  • Calendar: python3 secretary_engine.py calendar [email] (Find meeting slots).
  • Drive: python3 secretary_engine.py drive (List orphaned files).
  • Teams: python3 secretary_engine.py teams [team_id] [channel_id] [msg].

🏗 Setup

  1. App Registration: Create an Azure Entra ID app as a Public Client.
  2. Permissions: Grant Delegated Mail.ReadWrite, Calendars.ReadWrite, Files.ReadWrite, and ChatMessage.Send.
  3. Env: Provide SECRETARY_CLIENT_ID and SECRETARY_TENANT_ID in .env.