mog (Microsoft Ops Gadget) for Openclaw

A comprehensive command-line interface for managing the entire Microsoft 365 ecosystem including Mail, Calendar, Drive, and Office documents.

visionik
v0.3.1
Jan 26, 2026
6
3.5k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install mogcli

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install mogcli using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is mog (Microsoft Ops Gadget)?

mog (Microsoft Ops Gadget) is a robust command-line interface specifically engineered for developers and power users who need to interact with the Microsoft 365 suite without leaving the terminal. As a specialized tool within the Openclaw Skills ecosystem, mog provides a standardized way to access Outlook, OneDrive, Microsoft Teams Tasks, and Office applications like Excel and OneNote. It serves as the Microsoft-centric counterpart to Google-focused automation tools, sharing similar patterns and logic to ensure a seamless cross-cloud experience.

By leveraging the Microsoft Graph API, this skill enables programmatic access to virtually every corner of a user's digital workspace. Whether you are managing complex calendar schedules, piping data into Excel spreadsheets, or searching through OneNote notebooks, mog translates the often-cumbersome Microsoft identifiers into manageable workflows. This tool is essential for anyone building automated pipelines or seeking to enhance their terminal-based productivity using Openclaw Skills.

mog (Microsoft Ops Gadget) Use Cases

  • Automating the delivery of system reports and notifications via Outlook mail directly from the CLI.
  • Managing enterprise-level calendar events, checking colleague availability with freebusy commands, and responding to invites.
  • Performing bulk file operations in OneDrive, such as synchronizing assets or downloading specific project documents using slugs.
  • Streamlining task management by adding, listing, and completing Microsoft To-Do items from a single terminal interface.
  • Programmatically updating Excel tables and searching for specific information across multiple OneNote sections and pages.

How mog (Microsoft Ops Gadget) Works

  1. The user interacts with the skill through specific module commands (e.g., mail, calendar, drive) followed by an action.
  2. The system utilizes an OAuth-based authentication flow to securely connect to the Microsoft 365 environment.
  3. Complex Microsoft GUIDs are automatically mapped to unique 8-character slugs, which the user can use for all subsequent interactions to keep commands concise.
  4. Data can be passed through standard input (stdin) or file flags, allowing for seamless integration with other Openclaw Skills and shell utilities.
  5. The tool maintains a local cache of settings and slugs to ensure high performance and consistency across terminal sessions.

mog (Microsoft Ops Gadget) Setup

To begin using mog as part of your Openclaw Skills toolkit, you can access the interactive help and setup guide directly from your terminal:

mog --ai-help

This will provide the specific steps for registering your application in the Microsoft Azure portal and obtaining the necessary client credentials. Your OAuth tokens and settings will be stored securely in the following locations depending on your operating system:

  • macOS/Linux: ~/.config/mog/
  • Windows: %USERPROFILE%\.config\mog\

Ensure that the tokens.json and settings.json files are properly initialized before running complex automation tasks.

mog (Microsoft Ops Gadget) Data Schema & Taxonomy

The mog skill organizes its internal data and Microsoft 365 mappings through a simple yet effective file structure:

File Name Purpose
tokens.json Stores encrypted OAuth access and refresh tokens for Microsoft 365 services.
settings.json Contains the Client ID and specific configuration parameters for the Microsoft Graph API.
slugs.json A local database that maps 8-character human-readable slugs to the long GUIDs used by Microsoft.

All commands output standard text or JSON-compatible data that can be parsed by other Openclaw Skills for further processing.

mog (Microsoft Ops Gadget) Advanced Features

  • Intelligent slug system that converts long Microsoft IDs into manageable 8-character strings for faster CLI input.
  • Extensive support for Office document metadata, allowing for the export and manipulation of Excel, Word, and PowerPoint files.
  • Full OneNote integration with the ability to create, search, and delete notebooks, sections, and pages programmatically.
  • Command-line aliases such as mog cal for calendar and mog todo for tasks to further reduce typing requirements.
  • Advanced mail features including the ability to send HTML-formatted emails and manage folder structures within the Openclaw Skills environment.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*