mog
Microsoft Ops Gadget — CLI for Microsoft 365 (Mail, Calendar, Drive, Contacts, Tasks, Word, PowerPoint, Excel, OneNote).
Why use this skill?
Use the mog CLI skill to automate Microsoft 365 workflows including Mail, Calendar, OneDrive, and Excel. Simplify Microsoft Graph API tasks with 8-character slugs.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/visionik/mogcliWhat This Skill Does
The mog (Microsoft Ops Gadget) skill is a powerful command-line interface tool integrated into OpenClaw for seamless interaction with the Microsoft 365 ecosystem. Designed as the Microsoft-centric counterpart to gog, it allows users to perform CRUD operations on Mail, Calendar, OneDrive, Contacts, Tasks, Word, PowerPoint, Excel, and OneNote. It abstracts complex Microsoft Graph API requests into human-readable, CLI-compliant commands. A standout feature is its slug system, which maps cumbersome 36-character Microsoft GUIDs into 8-character, easily referenced slugs, significantly simplifying file and item management workflows.
Installation
You can install this skill directly via the OpenClaw plugin manager by executing the command: clawhub install openclaw/skills/skills/visionik/mogcli. Upon installation, the skill requires initial authentication. It automatically creates a configuration directory at ~/.config/mog/ (or equivalent on Windows) where it stores encrypted OAuth tokens and metadata to ensure secure session persistence without requiring manual re-authentication for every task.
Use Cases
This skill is ideal for power users and developers who need to bridge the gap between their terminal environments and Microsoft 365.
- Automated Reporting: Use
mog excel appendto push logs or data directly into shared workbooks from your scripts. - Task Management: Integrate terminal-based task tracking with Microsoft To-Do for synchronization across mobile and desktop devices.
- File Operations: Quickly search and retrieve files from OneDrive using short-form slugs instead of navigating the web browser interface.
- Calendar Coordination: Retrieve free/busy information for colleagues directly from the CLI to schedule meetings without switching contexts.
Example Prompts
- "Use mog to find the most recent email from my manager and download any attached PDFs to the local directory."
- "Can you check my calendar for tomorrow and add a meeting with Sarah at 2 PM using mog calendar?"
- "Summarize the task list currently in my Microsoft Tasks using the mog tasks module and tell me what is due today."
Tips & Limitations
- Slug Utility: Always use the
mog [command] listvariants to generate and refresh your localslugs.jsoncache before referencing items by short ID. - Security: Since this tool accesses sensitive personal data like emails and private files, ensure that the
~/.config/mog/directory permissions remain restricted to your user account. - Aliases: Leverage the built-in aliases
mog calandmog todoto save keystrokes during frequent operations. - Limitations: While
mogcovers extensive functionality, complex document formatting in Word or high-level advanced Excel macro manipulation may still require the web interface or dedicated SDKs. Always runmog --ai-helpfor the latest documentation on unsupported edge cases.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-visionik-mogcli": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, file-read, external-api
Related Skills
ecto
Ghost.io Admin API CLI for managing blog posts, pages, tags, and content.
sog
Standards Ops Gadget — CLI for IMAP/SMTP/CalDAV/CardDAV/WebDAV. Open-standards alternative to gog (Google) and mog (Microsoft).
oura-ring-data
Access Oura Ring health data using the ouracli CLI tool. Use when user asks about "oura data", "sleep stats", "activity data", "heart rate", "readiness score", "stress levels", or wants health metrics from their Oura Ring.