AI Agent Hub
Back to skills
Outlook Email Assistant icon

Outlook Email Assistant

Office Efficiency Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_15292d5a/yjkj-outlook-hack according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

Some mail agents can inspect inboxes, but they still need a safer way to batch-read mail without send capability. outlook-hack targets read-only office automation: fetching, searching, and exporting mail across folders, indexing attachments, and producing readable summaries.

How It Works

It uses the Microsoft Graph API as the mail backend instead of scraping the Outlook web app. The main flow is:
- Extract an MSAL refresh token from the Microsoft Teams tab and exchange it for a Graph API access token;
- Use the Graph API to read, search, and bulk-fetch mail, plus access calendar events and contacts;
- Emit raw-emails.jsonl, attachments-index.jsonl, and email-summary.md with sender, subject, body preview, attachment index, and digest stats.

The script is explicitly send-blocked: it has no send, reply, or forward functions and can only create drafts in the Drafts folder. That makes it more suitable for inbox triage, attachment inventory, and digest generation.

Limits and Caveats

  • Token extraction should come from the Teams tab; New Outlook PoP tokens are hard to extract, and Classic Outlook is largely deprecated.
  • Refresh tokens last about 90 days and auto-rotate on use; access tokens last about one hour.
  • It fits read-only mail processing, drafts, summaries, attachment indexes, and calendar/contact lookups, not outbound email delivery.

Use Cases

  • Customer support leads triaging complaint mail need to bulk-fetch bodies and generate digests.
  • Project assistants summarizing vendor correspondence by subject and sender statistics.
  • Pre-sales engineers locating quotes, contracts, and technical docs from the attachment index.
  • Administrative staff auditing onboarding mail for unread counts, senders, and previews.

Best For

  • Support managers handling inbox triage who need bulk body extraction and readable digests.
  • Project assistants organizing client mail who need subject search and sender statistics.
  • Pre-sales engineers verifying attachments who need per-message attachment names and types.
  • Administrative staff auditing org mail who need unread counts, frequent senders, and indexes.