teams-hack
by globalcaos
Browser & AutomationBrief
Your agent reads Teams chats, posts to channels, searches everything.
Description
What This Skill Does
Extracts an MSAL refresh token from Microsoft Teams localStorage to give an agent persistent access to Teams chats, channels, org directory, and calendar. The token lasts 90+ days, auto-rotates on use, and is shared with the outlook-hack skill so a single extraction covers both.
One token extraction covers both Teams and Outlook access, and auto-rotation means no re-authentication for months.
When to Use It
- Reading group chat history before a meeting
- Posting a status update to a team channel
- Searching all Teams messages for a decision or file link
- Checking a colleague's presence before reaching out
- Pulling upcoming Teams meeting join links from calendar
Example Workflow
User asks: find everything said about the Q2 budget in Teams this week and summarize it
- 1
Run
teams search "Q2 budget"to retrieve matching messages across all chats and channels - 2
Identify the most relevant conversations from search results
- 3
Read full thread context with
teams chat <id>for each relevant chat - 4
Extract key decisions, figures, and participants mentioned
- 5
Compose a summary grouped by conversation
A structured summary of Q2 budget discussions, including who said what, in which channel or chat, with dates
Installation
clawhub install globalcaos/teams-hackRun the CLI command, or paste the prompt into Claude Code, Cursor, Codex or whichever coding agent you use.